Skip to content
v2.278.0

RuntimePlatformProperty Struct ​

Information about the platform for the Amazon ECS service or task.

For more information about RuntimePlatform , see RuntimePlatform in the Amazon Elastic Container Service Developer Guide .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const runtimePlatformProperty: ecs.CfnTaskDefinition.RuntimePlatformProperty = {
  cpuArchitecture: 'cpuArchitecture',
  operatingSystemFamily: 'operatingSystemFamily',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs

runtime_platform_property = ecs.CfnTaskDefinition.RuntimePlatformProperty(
    cpu_architecture="cpuArchitecture",
    operating_system_family="operatingSystemFamily"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;

RuntimePlatformProperty runtimePlatformProperty = RuntimePlatformProperty.builder()
        .cpuArchitecture("cpuArchitecture")
        .operatingSystemFamily("operatingSystemFamily")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;

var runtimePlatformProperty = new RuntimePlatformProperty {
    CpuArchitecture = "cpuArchitecture",
    OperatingSystemFamily = "operatingSystemFamily"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

runtimePlatformProperty := &RuntimePlatformProperty{
	CpuArchitecture: jsii.String("cpuArchitecture"),
	OperatingSystemFamily: jsii.String("operatingSystemFamily"),
}

Properties ​

cpuArchitectureoptionalstringcpu_architectureoptionalstrcpuArchitectureoptionalStringCpuArchitectureoptionalstringCpuArchitectureoptional*string #
The CPU architecture.

You can run your Linux tasks on an ARM-based platform by setting the value to ARM64 . This option is available for tasks that run on Linux Amazon EC2 instance, Amazon ECS Managed Instances, or Linux containers on Fargate.

operatingSystemFamilyoptionalstringoperating_system_familyoptionalstroperatingSystemFamilyoptionalStringOperatingSystemFamilyoptionalstringOperatingSystemFamilyoptional*string #
The operating system.