class CpuArchitecture
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.CpuArchitecture |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#CpuArchitecture |
Java | software.amazon.awscdk.services.ecs.CpuArchitecture |
Python | aws_cdk.aws_ecs.CpuArchitecture |
TypeScript (source) | aws-cdk-lib » aws_ecs » CpuArchitecture |
The CpuArchitecture for Fargate Runtime Platform.
Example
// Create a Task Definition for the Windows container to start
const taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {
runtimePlatform: {
operatingSystemFamily: ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,
cpuArchitecture: ecs.CpuArchitecture.X86_64,
},
cpu: 1024,
memoryLimitMiB: 2048,
});
taskDefinition.addContainer('windowsservercore', {
logging: ecs.LogDriver.awsLogs({ streamPrefix: 'win-iis-on-fargate' }),
portMappings: [{ containerPort: 80 }],
image: ecs.ContainerImage.fromRegistry('mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019'),
});
Properties
Name | Type | Description |
---|---|---|
static ARM64 | Cpu | ARM64. |
static X86_64 | Cpu | X86_64. |
static ARM64
Type:
Cpu
ARM64.
static X86_64
Type:
Cpu
X86_64.
Methods
Name | Description |
---|---|
static of(cpuArchitecture) | Other cpu architecture. |
static of(cpuArchitecture)
public static of(cpuArchitecture: string): CpuArchitecture
Parameters
- cpuArchitecture
string
— cpu architecture.
Returns
Other cpu architecture.
See also: [https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-runtimeplatform.html#cfn-ecs-taskdefinition-runtimeplatform-cpuarchitecture for all available cpu architecture.](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-runtimeplatform.html#cfn-ecs-taskdefinition-runtimeplatform-cpuarchitecture for all available cpu architecture.)