interface RuntimePlatform
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.RuntimePlatform |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#RuntimePlatform |
Java | software.amazon.awscdk.services.ecs.RuntimePlatform |
Python | aws_cdk.aws_ecs.RuntimePlatform |
TypeScript (source) | aws-cdk-lib » aws_ecs » RuntimePlatform |
The interface for Runtime Platform.
Example
declare const cluster: ecs.Cluster;
const applicationLoadBalancedFargateService = new ecsPatterns.ApplicationLoadBalancedFargateService(this, 'Service', {
cluster,
memoryLimitMiB: 512,
taskImageOptions: {
image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),
},
minHealthyPercent: 100,
runtimePlatform: {
cpuArchitecture: ecs.CpuArchitecture.ARM64,
operatingSystemFamily: ecs.OperatingSystemFamily.LINUX,
},
});
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
Go
Java
Python
TypeScript (