class OperatingSystemFamily
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.OperatingSystemFamily |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#OperatingSystemFamily |
Java | software.amazon.awscdk.services.ecs.OperatingSystemFamily |
Python | aws_cdk.aws_ecs.OperatingSystemFamily |
TypeScript (source) | aws-cdk-lib » aws_ecs » OperatingSystemFamily |
The operating system for Fargate Runtime Platform.
Example
// Create a Task Definition for the Windows container to start
const taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {
runtimePlatform: {
operatingSystemFamily: ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,
cpuArchitecture: ecs.CpuArchitecture.X86_64,
},
cpu: 1024,
memoryLimitMiB: 2048,
});
taskDefinition.addContainer('windowsservercore', {
logging: ecs.LogDriver.awsLogs({ streamPrefix: 'win-iis-on-fargate' }),
portMappings: [{ containerPort: 80 }],
image: ecs.ContainerImage.fromRegistry('mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019'),
});
Properties
Name | Type | Description |
---|---|---|
static LINUX | Operating | LINUX. |
static WINDOWS_SERVER_2004_CORE | Operating | WINDOWS_SERVER_2004_CORE. |
static WINDOWS_SERVER_2016_FULL | Operating | WINDOWS_SERVER_2016_FULL. |
static WINDOWS_SERVER_2019_CORE | Operating | WINDOWS_SERVER_2019_CORE. |
static WINDOWS_SERVER_2019_FULL | Operating | WINDOWS_SERVER_2019_FULL. |
static WINDOWS_SERVER_2022_CORE | Operating | WINDOWS_SERVER_2022_CORE. |
static WINDOWS_SERVER_2022_FULL | Operating | WINDOWS_SERVER_2022_FULL. |
static WINDOWS_SERVER_20 | Operating | WINDOWS_SERVER_20H2_CORE. |
static LINUX
Type:
Operating
LINUX.
static WINDOWS_SERVER_2004_CORE
Type:
Operating
WINDOWS_SERVER_2004_CORE.
static WINDOWS_SERVER_2016_FULL
Type:
Operating
WINDOWS_SERVER_2016_FULL.
static WINDOWS_SERVER_2019_CORE
Type:
Operating
WINDOWS_SERVER_2019_CORE.
static WINDOWS_SERVER_2019_FULL
Type:
Operating
WINDOWS_SERVER_2019_FULL.
static WINDOWS_SERVER_2022_CORE
Type:
Operating
WINDOWS_SERVER_2022_CORE.
static WINDOWS_SERVER_2022_FULL
Type:
Operating
WINDOWS_SERVER_2022_FULL.
static WINDOWS_SERVER_20H2_CORE
Type:
Operating
WINDOWS_SERVER_20H2_CORE.
Methods
Name | Description |
---|---|
is | Indicates whether the operating system family is Linux. |
is | Indicates whether the operating system family is Windows. |
static of(family) | Other operating system family. |
Linux()
ispublic isLinux(): boolean
Returns
boolean
Indicates whether the operating system family is Linux.
Windows()
ispublic isWindows(): boolean
Returns
boolean
Indicates whether the operating system family is Windows.
static of(family)
public static of(family: string): OperatingSystemFamily
Parameters
- family
string
— operating system family.
Returns
Other operating system family.
See also: [https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-runtimeplatform.html#cfn-ecs-taskdefinition-runtimeplatform-operatingsystemfamily for all available operating system family.](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-runtimeplatform.html#cfn-ecs-taskdefinition-runtimeplatform-operatingsystemfamily for all available operating system family.)