aws-cdk-lib.aws_ecs.CfnTaskDefinition.RuntimePlatformProperty

interface RuntimePlatformProperty

LanguageType name
.NETAmazon.CDK.AWS.ECS.CfnTaskDefinition.RuntimePlatformProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnTaskDefinition_RuntimePlatformProperty
Javasoftware.amazon.awscdk.services.ecs.CfnTaskDefinition.RuntimePlatformProperty
Pythonaws_cdk.aws_ecs.CfnTaskDefinition.RuntimePlatformProperty
TypeScript aws-cdk-lib » aws_ecs » CfnTaskDefinition » RuntimePlatformProperty

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

// 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',
};

Properties

NameTypeDescription
cpuArchitecture?stringThe CPU architecture.
operatingSystemFamily?stringThe operating system.

cpuArchitecture?

Type: string (optional)

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 or Linux containers on Fargate.


operatingSystemFamily?

Type: string (optional)

The operating system.