Skip to content
v2.278.0

RuntimePlatformProperty Struct ​

An object that represents the compute environment architecture for AWS Batch jobs on Fargate.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const runtimePlatformProperty: batch.CfnJobDefinition.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_batch as batch

runtime_platform_property = batch.CfnJobDefinition.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.batch.*;

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.Batch;

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 vCPU architecture. The default value is `X86_64` . Valid values are `X86_64` and `ARM64` .
notes

This parameter must be set to X86_64 for Windows containers. > Fargate Spot is not supported on Windows-based containers on Fargate. A job queue will be blocked if a Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both FARGATE and FARGATE_SPOT compute environments to the same job queue.

operatingSystemFamilyoptionalstringoperating_system_familyoptionalstroperatingSystemFamilyoptionalStringOperatingSystemFamilyoptionalstringOperatingSystemFamilyoptional*string #
The operating system for the compute environment.
notes

Valid values are: LINUX (default), WINDOWS_SERVER_2019_CORE , WINDOWS_SERVER_2019_FULL , WINDOWS_SERVER_2022_CORE , and WINDOWS_SERVER_2022_FULL .

The following parameters can’t be set for Windows containers: linuxParameters , privileged , user , ulimits , readonlyRootFilesystem , and efsVolumeConfiguration . > The AWS Batch Scheduler checks the compute environments that are attached to the job queue before registering a task definition with Fargate. In this scenario, the job queue is where the job is submitted. If the job requires a Windows container and the first compute environment is LINUX , the compute environment is skipped and the next compute environment is checked until a Windows-based compute environment is found. > Fargate Spot is not supported on Windows-based containers on Fargate. A job queue will be blocked if a Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both FARGATE and FARGATE_SPOT compute environments to the same job queue.