enum AmiHardwareType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.AmiHardwareType |
Java | software.amazon.awscdk.services.ecs.AmiHardwareType |
Python | aws_cdk.aws_ecs.AmiHardwareType |
TypeScript (source) | @aws-cdk/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. |
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.