RuntimePlatform

class aws_cdk.aws_ecs.RuntimePlatform(*, cpu_architecture=None, operating_system_family=None)

Bases: object

The interface for Runtime Platform.

Parameters:
  • cpu_architecture (Optional[CpuArchitecture]) – The CpuArchitecture for Fargate Runtime Platform. Default: - Undefined.

  • operating_system_family (Optional[OperatingSystemFamily]) – The operating system for Fargate Runtime Platform. Default: - Undefined.

ExampleMetadata:

infused

Example:

# cluster: ecs.Cluster

application_load_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateService(self, "Service",
    cluster=cluster,
    memory_limit_mi_b=512,
    task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
        image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
    ),
    min_healthy_percent=100,
    runtime_platform=ecs.RuntimePlatform(
        cpu_architecture=ecs.CpuArchitecture.ARM64,
        operating_system_family=ecs.OperatingSystemFamily.LINUX
    )
)

Attributes

cpu_architecture

The CpuArchitecture for Fargate Runtime Platform.

Default:
  • Undefined.

operating_system_family

The operating system for Fargate Runtime Platform.

Default:
  • Undefined.