Interface RuntimePlatform
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RuntimePlatform.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.436Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRuntimePlatformstatic final classAn implementation forRuntimePlatform -
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimePlatform.Builderbuilder()default CpuArchitectureThe CpuArchitecture for Fargate Runtime Platform.default OperatingSystemFamilyThe 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.BuilderofRuntimePlatform
-