Class OperatingSystemFamily
The operating system for Fargate Runtime Platform.
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
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
IsLinux() | Indicates whether the operating system family is Linux. |
IsWindows() | Indicates whether the operating system family is Windows. |
Of(string) | Other operating system family. |
Properties
LINUX
LINUX.
public static OperatingSystemFamily LINUX { get; }
Property Value
Remarks
ExampleMetadata: infused
WINDOWS_SERVER_2004_CORE
WINDOWS_SERVER_2004_CORE.
public static OperatingSystemFamily WINDOWS_SERVER_2004_CORE { get; }
Property Value
Remarks
ExampleMetadata: infused
WINDOWS_SERVER_2016_FULL
WINDOWS_SERVER_2016_FULL.
public static OperatingSystemFamily WINDOWS_SERVER_2016_FULL { get; }
Property Value
Remarks
ExampleMetadata: infused
WINDOWS_SERVER_2019_CORE
WINDOWS_SERVER_2019_CORE.
public static OperatingSystemFamily WINDOWS_SERVER_2019_CORE { get; }
Property Value
Remarks
ExampleMetadata: infused
WINDOWS_SERVER_2019_FULL
WINDOWS_SERVER_2019_FULL.
public static OperatingSystemFamily WINDOWS_SERVER_2019_FULL { get; }
Property Value
Remarks
ExampleMetadata: infused
WINDOWS_SERVER_2022_CORE
WINDOWS_SERVER_2022_CORE.
public static OperatingSystemFamily WINDOWS_SERVER_2022_CORE { get; }
Property Value
Remarks
ExampleMetadata: infused
WINDOWS_SERVER_2022_FULL
WINDOWS_SERVER_2022_FULL.
public static OperatingSystemFamily WINDOWS_SERVER_2022_FULL { get; }
Property Value
Remarks
ExampleMetadata: infused
WINDOWS_SERVER_20H2_CORE
WINDOWS_SERVER_20H2_CORE.
public static OperatingSystemFamily WINDOWS_SERVER_20H2_CORE { get; }
Property Value
Remarks
ExampleMetadata: infused
Methods
IsLinux()
Indicates whether the operating system family is Linux.
public virtual bool IsLinux()
Returns
Remarks
ExampleMetadata: infused
IsWindows()
Indicates whether the operating system family is Windows.
public virtual bool IsWindows()
Returns
Remarks
ExampleMetadata: infused
Of(string)
Other operating system family.
public static OperatingSystemFamily Of(string family)
Parameters
- family string
operating system family.