Class CfnContainerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerProps>
- Enclosing interface:
CfnContainerProps
CfnContainerProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerServiceDeployment
(IResolvable containerServiceDeployment) Sets the value ofCfnContainerProps.getContainerServiceDeployment()
containerServiceDeployment
(CfnContainer.ContainerServiceDeploymentProperty containerServiceDeployment) Sets the value ofCfnContainerProps.getContainerServiceDeployment()
isDisabled
(Boolean isDisabled) Sets the value ofCfnContainerProps.getIsDisabled()
isDisabled
(IResolvable isDisabled) Sets the value ofCfnContainerProps.getIsDisabled()
Sets the value ofCfnContainerProps.getPower()
publicDomainNames
(List<? extends Object> publicDomainNames) Sets the value ofCfnContainerProps.getPublicDomainNames()
publicDomainNames
(IResolvable publicDomainNames) Sets the value ofCfnContainerProps.getPublicDomainNames()
Sets the value ofCfnContainerProps.getScale()
serviceName
(String serviceName) Sets the value ofCfnContainerProps.getServiceName()
Sets the value ofCfnContainerProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
power
Sets the value ofCfnContainerProps.getPower()
- Parameters:
power
- The power specification of the container service. This parameter is required. The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.- Returns:
this
-
scale
Sets the value ofCfnContainerProps.getScale()
- Parameters:
scale
- The scale specification of the container service. This parameter is required. The scale specifies the allocated compute nodes of the container service.- Returns:
this
-
serviceName
Sets the value ofCfnContainerProps.getServiceName()
- Parameters:
serviceName
- The name of the container service. This parameter is required.- Returns:
this
-
containerServiceDeployment
@Stability(Stable) public CfnContainerProps.Builder containerServiceDeployment(IResolvable containerServiceDeployment) Sets the value ofCfnContainerProps.getContainerServiceDeployment()
- Parameters:
containerServiceDeployment
- An object that describes the current container deployment of the container service.- Returns:
this
-
containerServiceDeployment
@Stability(Stable) public CfnContainerProps.Builder containerServiceDeployment(CfnContainer.ContainerServiceDeploymentProperty containerServiceDeployment) Sets the value ofCfnContainerProps.getContainerServiceDeployment()
- Parameters:
containerServiceDeployment
- An object that describes the current container deployment of the container service.- Returns:
this
-
isDisabled
Sets the value ofCfnContainerProps.getIsDisabled()
- Parameters:
isDisabled
- A Boolean value indicating whether the container service is disabled.- Returns:
this
-
isDisabled
Sets the value ofCfnContainerProps.getIsDisabled()
- Parameters:
isDisabled
- A Boolean value indicating whether the container service is disabled.- Returns:
this
-
publicDomainNames
@Stability(Stable) public CfnContainerProps.Builder publicDomainNames(IResolvable publicDomainNames) Sets the value ofCfnContainerProps.getPublicDomainNames()
- Parameters:
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.
- Returns:
this
-
publicDomainNames
@Stability(Stable) public CfnContainerProps.Builder publicDomainNames(List<? extends Object> publicDomainNames) Sets the value ofCfnContainerProps.getPublicDomainNames()
- Parameters:
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.
- Returns:
this
-
tags
Sets the value ofCfnContainerProps.getTags()
- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContainerProps>
- Returns:
- a new instance of
CfnContainerProps
- Throws:
NullPointerException
- if any required attribute was not provided
-