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.privateRegistryAccess
(IResolvable privateRegistryAccess) An object that describes the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry ( Amazon ECR ) private repositories.privateRegistryAccess
(CfnContainer.PrivateRegistryAccessProperty privateRegistryAccess) An object that describes the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry ( Amazon ECR ) private repositories.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
@Stability(Stable) public static CfnContainer.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- 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
- See Also:
-
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
- See Also:
-
serviceName
The name of the container service.- Parameters:
serviceName
- The name of the container service. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
privateRegistryAccess
@Stability(Stable) public CfnContainer.Builder privateRegistryAccess(IResolvable privateRegistryAccess) An object that describes the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry ( 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 .
- Parameters:
privateRegistryAccess
- An object that describes the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry ( Amazon ECR ) private repositories. This parameter is required.- Returns:
this
- See Also:
-
privateRegistryAccess
@Stability(Stable) public CfnContainer.Builder privateRegistryAccess(CfnContainer.PrivateRegistryAccessProperty privateRegistryAccess) An object that describes the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry ( 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 .
- Parameters:
privateRegistryAccess
- An object that describes the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry ( Amazon ECR ) private repositories. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContainer>
- Returns:
- a newly built instance of
CfnContainer
.
-