@Stability(value=Stable) public static final class CfnContainer.ContainerProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnContainer.ContainerProperty>
CfnContainer.ContainerProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnContainer.ContainerProperty.Builder command(List<String> command)
CfnContainer.ContainerProperty.getCommand()command - The launch command for the container.this@Stability(value=Stable) public CfnContainer.ContainerProperty.Builder containerName(String containerName)
CfnContainer.ContainerProperty.getContainerName()containerName - The name of the container.this@Stability(value=Stable) public CfnContainer.ContainerProperty.Builder environment(IResolvable environment)
CfnContainer.ContainerProperty.getEnvironment()environment - The environment variables of the container.this@Stability(value=Stable) public CfnContainer.ContainerProperty.Builder environment(List<? extends Object> environment)
CfnContainer.ContainerProperty.getEnvironment()environment - The environment variables of the container.this@Stability(value=Stable) public CfnContainer.ContainerProperty.Builder image(String image)
CfnContainer.ContainerProperty.getImage()image - The name of the image used for the container.
Container images that are sourced from (registered and stored on) your container service start with a colon ( : ). For example, if your container service name is container-service-1 , the container image label is mystaticsite , and you want to use the third version ( 3 ) of the registered container image, then you should specify :container-service-1.mystaticsite.3 . To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest ). Your container service will automatically use the highest numbered version of the registered container image.
Container images that are sourced from a public registry like Docker Hub don’t start with a colon. For example, nginx:latest or nginx .
this@Stability(value=Stable) public CfnContainer.ContainerProperty.Builder ports(IResolvable ports)
CfnContainer.ContainerProperty.getPorts()ports - An object that describes the open firewall ports and protocols of the container.this@Stability(value=Stable) public CfnContainer.ContainerProperty.Builder ports(List<? extends Object> ports)
CfnContainer.ContainerProperty.getPorts()ports - An object that describes the open firewall ports and protocols of the container.this@Stability(value=Stable) public CfnContainer.ContainerProperty build()
build in interface software.amazon.jsii.Builder<CfnContainer.ContainerProperty>CfnContainer.ContainerPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.