interface RuntimePlatform
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.ECS.RuntimePlatform | 
  Java | software.amazon.awscdk.services.ecs.RuntimePlatform | 
  Python | aws_cdk.aws_ecs.RuntimePlatform | 
  TypeScript (source) | @aws-cdk/aws-ecs » RuntimePlatform | 
The interface for 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 | 
|---|---|---|
| cpu | Cpu | The CpuArchitecture for Fargate Runtime Platform. | 
| operating | Operating | The operating system for Fargate Runtime Platform. | 
cpuArchitecture?
Type:
Cpu
(optional, default: Undefined.)
The CpuArchitecture for Fargate Runtime Platform.
operatingSystemFamily?
Type:
Operating
(optional, default: Undefined.)
The operating system for Fargate Runtime Platform.

 .NET
 Java
 Python
 TypeScript (