CpuArchitecture
- class aws_cdk.aws_ecs.CpuArchitecture(*args: Any, **kwargs)
Bases:
object
The CpuArchitecture for Fargate Runtime Platform.
- ExampleMetadata:
infused
Example:
# Create a Task Definition for the Windows container to start task_definition = ecs.FargateTaskDefinition(self, "TaskDef", runtime_platform=ecs.RuntimePlatform( operating_system_family=ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE, cpu_architecture=ecs.CpuArchitecture.X86_64 ), cpu=1024, memory_limit_mi_b=2048 ) task_definition.add_container("windowsservercore", logging=ecs.LogDriver.aws_logs(stream_prefix="win-iis-on-fargate"), port_mappings=[ecs.PortMapping(container_port=80)], image=ecs.ContainerImage.from_registry("mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019") )
Attributes
- ARM64 = <aws_cdk.aws_ecs.CpuArchitecture object>
- X86_64 = <aws_cdk.aws_ecs.CpuArchitecture object>
Static Methods
- classmethod of(cpu_architecture)
Other cpu architecture.
- Parameters:
cpu_architecture (
str
) – cpu architecture.- See:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-runtimeplatform.html#cfn-ecs-taskdefinition-runtimeplatform-cpuarchitecture for all available cpu architecture.
- Return type: