Interface CfnContainer.ContainerProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnContainer.ContainerProperty.Jsii$Proxy
Enclosing class:
CfnContainer

@Stability(Stable) public static interface CfnContainer.ContainerProperty extends software.amazon.jsii.JsiiSerializable
Container is a property of the ContainerServiceDeployment property. It describes the settings of a container that will be launched, or that is launched, to an Amazon Lightsail container service.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.lightsail.*;
 ContainerProperty containerProperty = ContainerProperty.builder()
         .command(List.of("command"))
         .containerName("containerName")
         .environment(List.of(EnvironmentVariableProperty.builder()
                 .value("value")
                 .variable("variable")
                 .build()))
         .image("image")
         .ports(List.of(PortInfoProperty.builder()
                 .port("port")
                 .protocol("protocol")
                 .build()))
         .build();
 

See Also: