@Stability(value=Stable)
public static interface CfnContainer.ContainerServiceDeploymentProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnContainer.ContainerServiceDeploymentProperty.Builder
A builder for
CfnContainer.ContainerServiceDeploymentProperty |
static class |
CfnContainer.ContainerServiceDeploymentProperty.Jsii$Proxy
An implementation for
CfnContainer.ContainerServiceDeploymentProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnContainer.ContainerServiceDeploymentProperty.Builder |
builder() |
default Object |
getContainers()
An object that describes the configuration for the containers of the deployment.
|
default Object |
getPublicEndpoint()
An object that describes the endpoint of the deployment.
|
@Stability(value=Stable) @Nullable default Object getContainers()
@Stability(value=Stable) @Nullable default Object getPublicEndpoint()
@Stability(value=Stable) static CfnContainer.ContainerServiceDeploymentProperty.Builder builder()
Copyright © 2022. All rights reserved.