@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:29.521Z") @Stability(value=Experimental) 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()
(experimental) The CpuArchitecture for Fargate Runtime Platform.
|
default OperatingSystemFamily |
getOperatingSystemFamily()
(experimental) The operating system for Fargate Runtime Platform.
|
@Stability(value=Experimental) @Nullable default CpuArchitecture getCpuArchitecture()
Default: - Undefined.
@Stability(value=Experimental) @Nullable default OperatingSystemFamily getOperatingSystemFamily()
Default: - Undefined.
@Stability(value=Experimental) static RuntimePlatform.Builder builder()
RuntimePlatform.Builder of RuntimePlatformCopyright © 2022. All rights reserved.