Interface IManagedEc2EcsComputeEnvironment.Jsii$Default
- All Superinterfaces:
IComputeEnvironment,IComputeEnvironment.Jsii$Default,IComputeEnvironmentRef,IComputeEnvironmentRef.Jsii$Default,IConnectable,IConnectable.Jsii$Default,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default,IEnvironmentAware,IEnvironmentAware.Jsii$Default,IManagedComputeEnvironment,IManagedComputeEnvironment.Jsii$Default,IManagedEc2EcsComputeEnvironment,IResource,IResource.Jsii$Default,ITaggable,ITaggable.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IManagedEc2EcsComputeEnvironment.Jsii$Proxy
- Enclosing interface:
IManagedEc2EcsComputeEnvironment
IManagedEc2EcsComputeEnvironment.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.batch.IComputeEnvironment
IComputeEnvironment.Jsii$Default, IComputeEnvironment.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.batch.IComputeEnvironmentRef
IComputeEnvironmentRef.Jsii$Default, IComputeEnvironmentRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectable
IConnectable.Jsii$Default, IConnectable.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.batch.IManagedComputeEnvironment
IManagedComputeEnvironment.Jsii$Default, IManagedComputeEnvironment.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.batch.IManagedEc2EcsComputeEnvironment
IManagedEc2EcsComputeEnvironment.Jsii$Default, IManagedEc2EcsComputeEnvironment.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddInstanceClass(InstanceClass instanceClass) Add an instance class to this compute environment.default voidaddInstanceType(InstanceType instanceType) Add an instance type to this compute environment.default AllocationStrategyThe allocation strategy to use if not enough instances of the best fitting instance type can be allocated.default List<EcsMachineImage> Configure which AMIs this Compute Environment can launch.default List<InstanceClass> The instance classes that this Compute Environment can launch.default IRoleThe execution Role that instances launched by this Compute Environment will use.default List<InstanceType> The instance types that this Compute Environment can launch.default ILaunchTemplateThe Launch Template that this Compute Environment will use to provision EC2 Instances.default NumberThe minimum vCPUs that an environment should maintain, even if the compute environment is DISABLED.default IPlacementGroupThe EC2 placement group to associate with your compute resources.default NumberThe maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that instance type before instances are launched.default IRoleThe service-linked role that Spot Fleet needs to launch instances on your behalf.default BooleanWhether or not to use batch's optimal instance type.Methods inherited from interface software.amazon.awscdk.services.batch.IComputeEnvironment.Jsii$Default
getComputeEnvironmentArn, getComputeEnvironmentName, getEnabled, getServiceRoleMethods inherited from interface software.amazon.awscdk.interfaces.batch.IComputeEnvironmentRef.Jsii$Default
getComputeEnvironmentRefMethods inherited from interface software.amazon.awscdk.services.ec2.IConnectable.Jsii$Default
getConnectionsMethods inherited from interface software.constructs.IConstruct.Jsii$Default
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware.Jsii$Default
getEnvMethods inherited from interface software.amazon.awscdk.services.batch.IManagedComputeEnvironment.Jsii$Default
getMaxvCpus, getReplaceComputeEnvironment, getSecurityGroups, getSpot, getTerminateOnUpdate, getUpdateTimeout, getUpdateToLatestImageVersion, getVpcSubnetsMethods inherited from interface software.amazon.awscdk.IResource.Jsii$Default
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.awscdk.ITaggable.Jsii$Default
getTagsMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstanceClasses
The instance classes that this Compute Environment can launch.Which one is chosen depends on the
AllocationStrategyused. Batch will automatically choose the size.- Specified by:
getInstanceClassesin interfaceIManagedEc2EcsComputeEnvironment
-
getInstanceTypes
The instance types that this Compute Environment can launch.Which one is chosen depends on the
AllocationStrategyused.- Specified by:
getInstanceTypesin interfaceIManagedEc2EcsComputeEnvironment
-
getAllocationStrategy
The allocation strategy to use if not enough instances of the best fitting instance type can be allocated.Default: - `BEST_FIT_PROGRESSIVE` if not using Spot instances, `SPOT_PRICE_CAPACITY_OPTIMIZED` if using Spot instances.
- Specified by:
getAllocationStrategyin interfaceIManagedEc2EcsComputeEnvironment
-
getImages
Configure which AMIs this Compute Environment can launch.Leave this
undefinedto allow Batch to choose the latest AMIs it supports for each instance that it launches.Default: - ECS_AL2 compatible AMI ids for non-GPU instances, ECS_AL2_NVIDIA compatible AMI ids for GPU instances
- Specified by:
getImagesin interfaceIManagedEc2EcsComputeEnvironment
-
getInstanceRole
The execution Role that instances launched by this Compute Environment will use.Default: - a role will be created
- Specified by:
getInstanceRolein interfaceIManagedEc2EcsComputeEnvironment
-
getLaunchTemplate
The Launch Template that this Compute Environment will use to provision EC2 Instances.Note: if
securityGroupsis specified on both your launch template and this Compute Environment, **thesecurityGroups on the Compute Environment override the ones on the launch template.Default: no launch template
- Specified by:
getLaunchTemplatein interfaceIManagedEc2EcsComputeEnvironment
-
getMinvCpus
The minimum vCPUs that an environment should maintain, even if the compute environment is DISABLED.Default: 0
- Specified by:
getMinvCpusin interfaceIManagedEc2EcsComputeEnvironment
-
getPlacementGroup
The EC2 placement group to associate with your compute resources.If you intend to submit multi-node parallel jobs to this Compute Environment, you should consider creating a cluster placement group and associate it with your compute resources. This keeps your multi-node parallel job on a logical grouping of instances within a single Availability Zone with high network flow potential.
Default: - no placement group
- Specified by:
getPlacementGroupin interfaceIManagedEc2EcsComputeEnvironment- See Also:
-
getSpotBidPercentage
The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that instance type before instances are launched.For example, if your maximum percentage is 20%, the Spot price must be less than 20% of the current On-Demand price for that Instance. You always pay the lowest market price and never more than your maximum percentage. For most use cases, Batch recommends leaving this field empty.
Default: - 100%
- Specified by:
getSpotBidPercentagein interfaceIManagedEc2EcsComputeEnvironment
-
getSpotFleetRole
The service-linked role that Spot Fleet needs to launch instances on your behalf.Default: - a new Role will be created
- Specified by:
getSpotFleetRolein interfaceIManagedEc2EcsComputeEnvironment- See Also:
-
getUseOptimalInstanceClasses
Whether or not to use batch's optimal instance type.The optimal instance type is equivalent to adding the C4, M4, and R4 instance classes. You can specify other instance classes (of the same architecture) in addition to the optimal instance classes.
Default: true
- Specified by:
getUseOptimalInstanceClassesin interfaceIManagedEc2EcsComputeEnvironment
-
addInstanceClass
Add an instance class to this compute environment.- Specified by:
addInstanceClassin interfaceIManagedEc2EcsComputeEnvironment- Parameters:
instanceClass- This parameter is required.
-
addInstanceType
Add an instance type to this compute environment.- Specified by:
addInstanceTypein interfaceIManagedEc2EcsComputeEnvironment- Parameters:
instanceType- This parameter is required.
-