Class RuntimePlatform
The interface for Runtime Platform.
Inheritance
System.Object
RuntimePlatform
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class RuntimePlatform : Object, IRuntimePlatform
Syntax (vb)
Public Class RuntimePlatform
Inherits Object
Implements IRuntimePlatform
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
RuntimePlatform() |
Properties
CpuArchitecture | The CpuArchitecture for Fargate Runtime Platform. |
OperatingSystemFamily | The operating system for Fargate Runtime Platform. |
Constructors
RuntimePlatform()
public RuntimePlatform()
Properties
CpuArchitecture
The CpuArchitecture for Fargate Runtime Platform.
public CpuArchitecture CpuArchitecture { get; set; }
Property Value
Remarks
Default: - Undefined.
OperatingSystemFamily
The operating system for Fargate Runtime Platform.
public OperatingSystemFamily OperatingSystemFamily { get; set; }
Property Value
Remarks
Default: - Undefined.