Class CfnContainer.Builder

java.lang.Object
software.amazon.awscdk.services.lightsail.CfnContainer.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainer>
Enclosing class:
CfnContainer

@Stability(Stable) public static final class CfnContainer.Builder extends Object implements software.amazon.jsii.Builder<CfnContainer>
A fluent builder for CfnContainer.
  • Method Details

    • create

      @Stability(Stable) public static CfnContainer.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnContainer.Builder.
    • power

      @Stability(Stable) public CfnContainer.Builder power(String 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

      @Stability(Stable) public CfnContainer.Builder scale(Number 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

      @Stability(Stable) public CfnContainer.Builder serviceName(String 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

      @Stability(Stable) public CfnContainer.Builder isDisabled(Boolean 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

      @Stability(Stable) public CfnContainer.Builder isDisabled(IResolvable 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

      @Stability(Stable) public CfnContainer.Builder publicDomainNames(IResolvable publicDomainNames)
      The public domain name of the container service, such as example.com and www.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 as example.com and www.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 as example.com and www.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 as example.com and www.example.com . This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnContainer.Builder tags(List<? extends CfnTag> 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 of Tags 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

      @Stability(Stable) public CfnContainer build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnContainer>
      Returns:
      a newly built instance of CfnContainer.