Interface RuntimePlatform
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RuntimePlatform.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-15T10:24:58.865Z")
@Stability(Stable)
public interface RuntimePlatform
extends software.amazon.jsii.JsiiSerializable
The interface for Runtime Platform.
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());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forRuntimePlatform
static final class
An implementation forRuntimePlatform
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimePlatform.Builder
builder()
default CpuArchitecture
The CpuArchitecture for Fargate Runtime Platform.default OperatingSystemFamily
The operating system for Fargate Runtime Platform.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCpuArchitecture
The CpuArchitecture for Fargate Runtime Platform.Default: - Undefined.
-
getOperatingSystemFamily
The operating system for Fargate Runtime Platform.Default: - Undefined.
-
builder
- Returns:
- a
RuntimePlatform.Builder
ofRuntimePlatform
-