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());
 
  • Method Details