AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Batch::ServiceEnvironment

CfnServiceEnvironment

Creates a service environment for running service jobs. Service environments define capacity limits for specific service types such as SageMaker Training jobs.

Import

import { CfnServiceEnvironment } from 'aws-cdk-lib/aws-batch';

Or use the module namespace:

import * as batch from 'aws-cdk-lib/aws-batch';
// batch.CfnServiceEnvironment

Properties

Configuration passed to the constructor as CfnServiceEnvironmentProps.

capacityLimitsRequired
IResolvable | IResolvable | CapacityLimitProperty[]

The capacity limits for the service environment. This defines the maximum resources that can be used by service jobs in this environment.

serviceEnvironmentTypeRequired
string

The type of service environment. For SageMaker Training jobs, this value is `SAGEMAKER_TRAINING` .

serviceEnvironmentNameOptional
string

The name of the service environment.

stateOptional
string

The state of the service environment. Valid values are `ENABLED` and `DISABLED` .

tagsOptional
{ [key: string]: string }

The tags associated with the service environment. Each tag consists of a key and an optional value. For more information, see [Tagging your AWS Batch resources](https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html) .

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter