# RuntimePlatformProperty

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

For more information about `RuntimePlatform` , see [RuntimePlatform](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#runtime-platform) in the *Amazon Elastic Container Service Developer Guide* .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `cpuArchitecture`: 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.

- `operatingSystemFamily`: string — The operating system.
