@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.638Z") @Stability(value=Stable) public interface CfnContainerProps extends software.amazon.jsii.JsiiSerializable
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.*;
CfnContainerProps cfnContainerProps = CfnContainerProps.builder()
.power("power")
.scale(123)
.serviceName("serviceName")
// the properties below are optional
.containerServiceDeployment(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())
.isDisabled(false)
.publicDomainNames(List.of(PublicDomainNameProperty.builder()
.certificateName("certificateName")
.domainNames(List.of("domainNames"))
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnContainerProps.Builder
A builder for
CfnContainerProps |
static class |
CfnContainerProps.Jsii$Proxy
An implementation for
CfnContainerProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnContainerProps.Builder |
builder() |
default Object |
getContainerServiceDeployment()
An object that describes the current container deployment of the container service.
|
default Object |
getIsDisabled()
A Boolean value indicating whether the container service is disabled.
|
String |
getPower()
The power specification of the container service.
|
default Object |
getPublicDomainNames()
The public domain name of the container service, such as `example.com` and `www.example.com` .
|
Number |
getScale()
The scale specification of the container service.
|
String |
getServiceName()
The name of the container service.
|
default List<CfnTag> |
getTags()
An array of key-value pairs to apply to this resource.
|
@Stability(value=Stable) @NotNull String getPower()
The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.
@Stability(value=Stable) @NotNull Number getScale()
The scale specifies the allocated compute nodes of the container service.
@Stability(value=Stable) @NotNull String getServiceName()
@Stability(value=Stable) @Nullable default Object getContainerServiceDeployment()
@Stability(value=Stable) @Nullable default Object getIsDisabled()
@Stability(value=Stable) @Nullable default Object getPublicDomainNames()
You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container that is configured as the public endpoint of your container service.
If you don't specify public domain names, then you can use the default domain of the container service.
You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the AWS::Lightsail::Certificate resource to create a certificate for the public domain names that you want to use with your container service.
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
For more information, see Tag in the AWS CloudFormation User Guide .
The
ValueofTagsis optional for Lightsail resources.
@Stability(value=Stable) static CfnContainerProps.Builder builder()
CfnContainerProps.Builder of CfnContainerPropsCopyright © 2022. All rights reserved.