@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.741Z") @Stability(value=Stable) public interface RuntimePlatform extends software.amazon.jsii.JsiiSerializable
Example:
// Create a Task Definition for the Windows container to start
FargateTaskDefinition taskDefinition = FargateTaskDefinition.Builder.create(this, "TaskDef")
.runtimePlatform(RuntimePlatform.builder()
.operatingSystemFamily(OperatingSystemFamily.WINDOWS_SERVER_2019_CORE)
.cpuArchitecture(CpuArchitecture.X86_64)
.build())
.cpu(1024)
.memoryLimitMiB(2048)
.build();
taskDefinition.addContainer("windowsservercore", ContainerDefinitionOptions.builder()
.logging(LogDriver.awsLogs(AwsLogDriverProps.builder().streamPrefix("win-iis-on-fargate").build()))
.portMappings(List.of(PortMapping.builder().containerPort(80).build()))
.image(ContainerImage.fromRegistry("mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019"))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
RuntimePlatform.Builder
A builder for
RuntimePlatform |
static class |
RuntimePlatform.Jsii$Proxy
An implementation for
RuntimePlatform |
| Modifier and Type | Method and Description |
|---|---|
static RuntimePlatform.Builder |
builder() |
default CpuArchitecture |
getCpuArchitecture()
The CpuArchitecture for Fargate Runtime Platform.
|
default OperatingSystemFamily |
getOperatingSystemFamily()
The operating system for Fargate Runtime Platform.
|
@Stability(value=Stable) @Nullable default CpuArchitecture getCpuArchitecture()
Default: - Undefined.
@Stability(value=Stable) @Nullable default OperatingSystemFamily getOperatingSystemFamily()
Default: - Undefined.
@Stability(value=Stable) static RuntimePlatform.Builder builder()
RuntimePlatform.Builder of RuntimePlatformCopyright © 2022. All rights reserved.