Class AmiHardwareType
The ECS-optimized AMI variant to use.
Inheritance
System.Object
AmiHardwareType
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public sealed class AmiHardwareType : Enum
Syntax (vb)
Public NotInheritable Class AmiHardwareType
Inherits
Enum
Remarks
For more information, see Amazon ECS-optimized AMIs.
ExampleMetadata: infused
Examples
Cluster cluster;
cluster.AddCapacity("graviton-cluster", new AddCapacityOptions {
MinCapacity = 2,
InstanceType = new InstanceType("c6g.large"),
MachineImage = EcsOptimizedImage.AmazonLinux2(AmiHardwareType.ARM)
});
Synopsis
Fields
ARM | Use the Amazon ECS-optimized Amazon Linux 2 (arm64) AMI. |
GPU | Use the Amazon ECS GPU-optimized AMI. |
STANDARD | Use the standard Amazon ECS-optimized AMI. |
value__ |
Fields
ARM
Use the Amazon ECS-optimized Amazon Linux 2 (arm64) AMI.
public const AmiHardwareType ARM
Field Value
Type | Description |
---|---|
AmiHardwareType |
GPU
Use the Amazon ECS GPU-optimized AMI.
public const AmiHardwareType GPU
Field Value
Type | Description |
---|---|
AmiHardwareType |
STANDARD
Use the standard Amazon ECS-optimized AMI.
public const AmiHardwareType STANDARD
Field Value
Type | Description |
---|---|
AmiHardwareType |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |