Interface IRuntimePlatform
The interface for Runtime Platform.
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface IRuntimePlatform
Syntax (vb)
Public Interface 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
Properties
CpuArchitecture | The CpuArchitecture for Fargate Runtime Platform. |
OperatingSystemFamily | The operating system for Fargate Runtime Platform. |
Properties
CpuArchitecture
The CpuArchitecture for Fargate Runtime Platform.
virtual CpuArchitecture CpuArchitecture { get; }
Property Value
Remarks
Default: - Undefined.
OperatingSystemFamily
The operating system for Fargate Runtime Platform.
virtual OperatingSystemFamily OperatingSystemFamily { get; }
Property Value
Remarks
Default: - Undefined.