Class CfnContainerMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerMixinProps>
- Enclosing interface:
CfnContainerMixinProps
CfnContainerMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.containerServiceDeployment(CfnContainerPropsMixin.ContainerServiceDeploymentProperty containerServiceDeployment) Sets the value ofCfnContainerMixinProps.getContainerServiceDeployment()containerServiceDeployment(IResolvable containerServiceDeployment) Sets the value ofCfnContainerMixinProps.getContainerServiceDeployment()isDisabled(Boolean isDisabled) Sets the value ofCfnContainerMixinProps.getIsDisabled()isDisabled(IResolvable isDisabled) Sets the value ofCfnContainerMixinProps.getIsDisabled()Sets the value ofCfnContainerMixinProps.getPower()privateRegistryAccess(CfnContainerPropsMixin.PrivateRegistryAccessProperty privateRegistryAccess) Sets the value ofCfnContainerMixinProps.getPrivateRegistryAccess()privateRegistryAccess(IResolvable privateRegistryAccess) Sets the value ofCfnContainerMixinProps.getPrivateRegistryAccess()publicDomainNames(List<? extends Object> publicDomainNames) Sets the value ofCfnContainerMixinProps.getPublicDomainNames()publicDomainNames(IResolvable publicDomainNames) Sets the value ofCfnContainerMixinProps.getPublicDomainNames()Sets the value ofCfnContainerMixinProps.getScale()serviceName(String serviceName) Sets the value ofCfnContainerMixinProps.getServiceName()Sets the value ofCfnContainerMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerServiceDeployment
@Stability(Stable) public CfnContainerMixinProps.Builder containerServiceDeployment(IResolvable containerServiceDeployment) Sets the value ofCfnContainerMixinProps.getContainerServiceDeployment()- Parameters:
containerServiceDeployment- An object that describes the current container deployment of the container service.- Returns:
this
-
containerServiceDeployment
@Stability(Stable) public CfnContainerMixinProps.Builder containerServiceDeployment(CfnContainerPropsMixin.ContainerServiceDeploymentProperty containerServiceDeployment) Sets the value ofCfnContainerMixinProps.getContainerServiceDeployment()- Parameters:
containerServiceDeployment- An object that describes the current container deployment of the container service.- Returns:
this
-
isDisabled
Sets the value ofCfnContainerMixinProps.getIsDisabled()- Parameters:
isDisabled- A Boolean value indicating whether the container service is disabled.- Returns:
this
-
isDisabled
Sets the value ofCfnContainerMixinProps.getIsDisabled()- Parameters:
isDisabled- A Boolean value indicating whether the container service is disabled.- Returns:
this
-
power
Sets the value ofCfnContainerMixinProps.getPower()- Parameters:
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.- Returns:
this
-
privateRegistryAccess
@Stability(Stable) public CfnContainerMixinProps.Builder privateRegistryAccess(IResolvable privateRegistryAccess) Sets the value ofCfnContainerMixinProps.getPrivateRegistryAccess()- Parameters:
privateRegistryAccess- An object that describes the configuration for the container service to access private container image repositories, such as ( Amazon ECR ) private repositories. For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide .- Returns:
this
-
privateRegistryAccess
@Stability(Stable) public CfnContainerMixinProps.Builder privateRegistryAccess(CfnContainerPropsMixin.PrivateRegistryAccessProperty privateRegistryAccess) Sets the value ofCfnContainerMixinProps.getPrivateRegistryAccess()- Parameters:
privateRegistryAccess- An object that describes the configuration for the container service to access private container image repositories, such as ( Amazon ECR ) private repositories. For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide .- Returns:
this
-
publicDomainNames
@Stability(Stable) public CfnContainerMixinProps.Builder publicDomainNames(IResolvable publicDomainNames) Sets the value ofCfnContainerMixinProps.getPublicDomainNames()- Parameters:
publicDomainNames- The public domain name of the container service, such asexample.comandwww.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 CfnContainerMixinProps.Builder publicDomainNames(List<? extends Object> publicDomainNames) Sets the value ofCfnContainerMixinProps.getPublicDomainNames()- Parameters:
publicDomainNames- The public domain name of the container service, such asexample.comandwww.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
-
scale
Sets the value ofCfnContainerMixinProps.getScale()- Parameters:
scale- The scale specification of the container service. The scale specifies the allocated compute nodes of the container service.- Returns:
this
-
serviceName
Sets the value ofCfnContainerMixinProps.getServiceName()- Parameters:
serviceName- The name of the container service.- Returns:
this
-
tags
Sets the value ofCfnContainerMixinProps.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
ValueofTagsis optional for Lightsail resources.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerMixinProps>- Returns:
- a new instance of
CfnContainerMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-