@Stability(value=Stable) public static final class CfnComputeEnvironment.Ec2ConfigurationObjectProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnComputeEnvironment.Ec2ConfigurationObjectProperty>
CfnComputeEnvironment.Ec2ConfigurationObjectProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnComputeEnvironment.Ec2ConfigurationObjectProperty |
build()
Builds the configured instance.
|
CfnComputeEnvironment.Ec2ConfigurationObjectProperty.Builder |
imageIdOverride(String imageIdOverride)
|
CfnComputeEnvironment.Ec2ConfigurationObjectProperty.Builder |
imageType(String imageType)
Sets the value of
CfnComputeEnvironment.Ec2ConfigurationObjectProperty.getImageType() |
@Stability(value=Stable) public CfnComputeEnvironment.Ec2ConfigurationObjectProperty.Builder imageType(String imageType)
CfnComputeEnvironment.Ec2ConfigurationObjectProperty.getImageType()imageType - The image type to match with the instance type to select an AMI. This parameter is required.
If the imageIdOverride parameter isn't specified, then a recent Amazon ECS-optimized Amazon Linux 2 AMI ( ECS_AL2 ) is used. If a new image type is specified in an update, but neither an imageId nor a imageIdOverride parameter is specified, then the latest Amazon ECS optimized AMI for that image type that's supported by AWS Batch is used.
P4 and G4 ) and can be used for all non AWS Graviton-based instance types.this@Stability(value=Stable) public CfnComputeEnvironment.Ec2ConfigurationObjectProperty.Builder imageIdOverride(String imageIdOverride)
imageIdOverride - The AMI ID used for instances launched in the compute environment that match the image type.
This setting overrides the imageId set in the computeResource object.
The AMI that you choose for a compute environment must match the architecture of the instance types that you intend to use for that compute environment. For example, if your compute environment uses A1 instance types, the compute resource AMI that you choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see Amazon ECS-optimized Amazon Linux 2 AMI in the Amazon Elastic Container Service Developer Guide .
this@Stability(value=Stable) public CfnComputeEnvironment.Ec2ConfigurationObjectProperty build()
build in interface software.amazon.jsii.Builder<CfnComputeEnvironment.Ec2ConfigurationObjectProperty>CfnComputeEnvironment.Ec2ConfigurationObjectPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.