enum AmiHardwareType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.AmiHardwareType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#AmiHardwareType |
Java | software.amazon.awscdk.services.ecs.AmiHardwareType |
Python | aws_cdk.aws_ecs.AmiHardwareType |
TypeScript (source) | aws-cdk-lib » aws_ecs » AmiHardwareType |
The ECS-optimized AMI variant to use.
For more information, see Amazon ECS-optimized AMIs.
Example
declare const cluster: ecs.Cluster;
cluster.addCapacity('graviton-cluster', {
minCapacity: 2,
instanceType: new ec2.InstanceType('c6g.large'),
machineImage: ecs.EcsOptimizedImage.amazonLinux2(ecs.AmiHardwareType.ARM),
});
Members
Name | Description |
---|---|
STANDARD | Use the standard Amazon ECS-optimized AMI. |
GPU | Use the Amazon ECS GPU-optimized AMI. |
ARM | Use the Amazon ECS-optimized Amazon Linux 2 (arm64) AMI. |
NEURON | Use the Amazon ECS-optimized Amazon Linux 2 (Neuron) AMI. |
STANDARD
Use the standard Amazon ECS-optimized AMI.
GPU
Use the Amazon ECS GPU-optimized AMI.
ARM
Use the Amazon ECS-optimized Amazon Linux 2 (arm64) AMI.
NEURON
Use the Amazon ECS-optimized Amazon Linux 2 (Neuron) AMI.