Class OperatingSystemFamily
The operating system for Fargate Runtime Platform.
Inheritance
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class OperatingSystemFamily : DeputyBase
Syntax (vb)
Public Class OperatingSystemFamily
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
// Create a Task Definition for the Windows container to start
var taskDefinition = new FargateTaskDefinition(this, "TaskDef", new FargateTaskDefinitionProps {
RuntimePlatform = new RuntimePlatform {
OperatingSystemFamily = OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,
CpuArchitecture = CpuArchitecture.X86_64
},
Cpu = 1024,
MemoryLimitMiB = 2048
});
taskDefinition.AddContainer("windowsservercore", new ContainerDefinitionOptions {
Logging = LogDriver.AwsLogs(new AwsLogDriverProps { StreamPrefix = "win-iis-on-fargate" }),
PortMappings = new [] { new PortMapping { ContainerPort = 80 } },
Image = ContainerImage.FromRegistry("mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019")
});
Synopsis
Constructors
Operating |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Operating |
Used by jsii to construct an instance of this class from DeputyProps |
Properties
LINUX | LINUX. |
WINDOWS_SERVER_2004_CORE | WINDOWS_SERVER_2004_CORE. |
WINDOWS_SERVER_2016_FULL | WINDOWS_SERVER_2016_FULL. |
WINDOWS_SERVER_2019_CORE | WINDOWS_SERVER_2019_CORE. |
WINDOWS_SERVER_2019_FULL | WINDOWS_SERVER_2019_FULL. |
WINDOWS_SERVER_2022_CORE | WINDOWS_SERVER_2022_CORE. |
WINDOWS_SERVER_2022_FULL | WINDOWS_SERVER_2022_FULL. |
WINDOWS_SERVER_20H2_CORE | WINDOWS_SERVER_20H2_CORE. |
Methods
Is |
Indicates whether the operating system family is Linux. |
Is |
Indicates whether the operating system family is Windows. |
Of(String) | Other operating system family. |
Constructors
OperatingSystemFamily(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected OperatingSystemFamily(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
OperatingSystemFamily(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected OperatingSystemFamily(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
Properties
LINUX
WINDOWS_SERVER_2004_CORE
WINDOWS_SERVER_2004_CORE.
public static OperatingSystemFamily WINDOWS_SERVER_2004_CORE { get; }
Property Value
WINDOWS_SERVER_2016_FULL
WINDOWS_SERVER_2016_FULL.
public static OperatingSystemFamily WINDOWS_SERVER_2016_FULL { get; }
Property Value
WINDOWS_SERVER_2019_CORE
WINDOWS_SERVER_2019_CORE.
public static OperatingSystemFamily WINDOWS_SERVER_2019_CORE { get; }
Property Value
WINDOWS_SERVER_2019_FULL
WINDOWS_SERVER_2019_FULL.
public static OperatingSystemFamily WINDOWS_SERVER_2019_FULL { get; }
Property Value
WINDOWS_SERVER_2022_CORE
WINDOWS_SERVER_2022_CORE.
public static OperatingSystemFamily WINDOWS_SERVER_2022_CORE { get; }
Property Value
WINDOWS_SERVER_2022_FULL
WINDOWS_SERVER_2022_FULL.
public static OperatingSystemFamily WINDOWS_SERVER_2022_FULL { get; }
Property Value
WINDOWS_SERVER_20H2_CORE
WINDOWS_SERVER_20H2_CORE.
public static OperatingSystemFamily WINDOWS_SERVER_20H2_CORE { get; }
Property Value
Methods
IsLinux()
Indicates whether the operating system family is Linux.
public virtual bool IsLinux()
Returns
System.
IsWindows()
Indicates whether the operating system family is Windows.
public virtual bool IsWindows()
Returns
System.
Of(String)
Other operating system family.
public static OperatingSystemFamily Of(string family)
Parameters
- family System.
String operating system family.
Returns
Remarks
See: 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.