Class CfnContainer.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainer>
- Enclosing class:
CfnContainer
CfnContainer
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
containerServiceDeployment
(IResolvable containerServiceDeployment) An object that describes the current container deployment of the container service.containerServiceDeployment
(CfnContainer.ContainerServiceDeploymentProperty containerServiceDeployment) An object that describes the current container deployment of the container service.static CfnContainer.Builder
isDisabled
(Boolean isDisabled) A Boolean value indicating whether the container service is disabled.isDisabled
(IResolvable isDisabled) A Boolean value indicating whether the container service is disabled.The power specification of the container service.publicDomainNames
(List<? extends Object> publicDomainNames) The public domain name of the container service, such asexample.com
andwww.example.com
.publicDomainNames
(IResolvable publicDomainNames) The public domain name of the container service, such asexample.com
andwww.example.com
.The scale specification of the container service.serviceName
(String serviceName) The name of the container service.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnContainer.Builder
.
-
power
The power specification of the container service.The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.
- Parameters:
power
- The power specification of the container service. This parameter is required.- Returns:
this
-
scale
The scale specification of the container service.The scale specifies the allocated compute nodes of the container service.
- Parameters:
scale
- The scale specification of the container service. This parameter is required.- Returns:
this
-
serviceName
The name of the container service.- Parameters:
serviceName
- The name of the container service. This parameter is required.- Returns:
this
-
containerServiceDeployment
@Stability(Stable) public CfnContainer.Builder containerServiceDeployment(IResolvable containerServiceDeployment) An object that describes the current container deployment of the container service.- Parameters:
containerServiceDeployment
- An object that describes the current container deployment of the container service. This parameter is required.- Returns:
this
-
containerServiceDeployment
@Stability(Stable) public CfnContainer.Builder containerServiceDeployment(CfnContainer.ContainerServiceDeploymentProperty containerServiceDeployment) An object that describes the current container deployment of the container service.- Parameters:
containerServiceDeployment
- An object that describes the current container deployment of the container service. This parameter is required.- Returns:
this
-
isDisabled
A Boolean value indicating whether the container service is disabled.- Parameters:
isDisabled
- A Boolean value indicating whether the container service is disabled. This parameter is required.- Returns:
this
-
isDisabled
A Boolean value indicating whether the container service is disabled.- Parameters:
isDisabled
- A Boolean value indicating whether the container service is disabled. This parameter is required.- Returns:
this
-
publicDomainNames
The public domain name of the container service, such asexample.com
andwww.example.com
.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.
- Parameters:
publicDomainNames
- The public domain name of the container service, such asexample.com
andwww.example.com
. This parameter is required.- Returns:
this
-
publicDomainNames
@Stability(Stable) public CfnContainer.Builder publicDomainNames(List<? extends Object> publicDomainNames) The public domain name of the container service, such asexample.com
andwww.example.com
.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.
- Parameters:
publicDomainNames
- The public domain name of the container service, such asexample.com
andwww.example.com
. This parameter is required.- Returns:
this
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag in the AWS CloudFormation User Guide .
The
Value
ofTags
is optional for Lightsail resources.- Parameters:
tags
- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContainer>
- Returns:
- a newly built instance of
CfnContainer
.
-