Interface CfnContainer.ContainerServiceDeploymentProperty

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

@Stability(Stable) public static interface CfnContainer.ContainerServiceDeploymentProperty extends software.amazon.jsii.JsiiSerializable
ContainerServiceDeployment is a property of the AWS::Lightsail::Container resource. It describes a container deployment configuration of a container service.

A deployment specifies the settings, such as the ports and launch command, of containers that are deployed to your 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.*;
 ContainerServiceDeploymentProperty containerServiceDeploymentProperty = ContainerServiceDeploymentProperty.builder()
         .containers(List.of(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()))
         .publicEndpoint(PublicEndpointProperty.builder()
                 .containerName("containerName")
                 .containerPort(123)
                 .healthCheckConfig(HealthCheckConfigProperty.builder()
                         .healthyThreshold(123)
                         .intervalSeconds(123)
                         .path("path")
                         .successCodes("successCodes")
                         .timeoutSeconds(123)
                         .unhealthyThreshold(123)
                         .build())
                 .build())
         .build();
 

See Also: