Class CfnContainerProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • power

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

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

      @Stability(Stable) public CfnContainerProps.Builder serviceName(String serviceName)
      Parameters:
      serviceName - The name of the container service. This parameter is required.
      Returns:
      this
    • containerServiceDeployment

      @Stability(Stable) public CfnContainerProps.Builder containerServiceDeployment(IResolvable containerServiceDeployment)
      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)
      Parameters:
      containerServiceDeployment - An object that describes the current container deployment of the container service.
      Returns:
      this
    • isDisabled

      @Stability(Stable) public CfnContainerProps.Builder isDisabled(Boolean isDisabled)
      Parameters:
      isDisabled - A Boolean value indicating whether the container service is disabled.
      Returns:
      this
    • isDisabled

      @Stability(Stable) public CfnContainerProps.Builder isDisabled(IResolvable isDisabled)
      Parameters:
      isDisabled - A Boolean value indicating whether the container service is disabled.
      Returns:
      this
    • publicDomainNames

      @Stability(Stable) public CfnContainerProps.Builder publicDomainNames(IResolvable publicDomainNames)
      Parameters:
      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.

      Returns:
      this
    • publicDomainNames

      @Stability(Stable) public CfnContainerProps.Builder publicDomainNames(List<? extends Object> publicDomainNames)
      Parameters:
      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.

      Returns:
      this
    • tags

      @Stability(Stable) public CfnContainerProps.Builder tags(List<? extends CfnTag> tags)
      Sets the value of CfnContainerProps.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 of Tags is optional for Lightsail resources.

      Returns:
      this
    • build

      @Stability(Stable) public CfnContainerProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnContainerProps>
      Returns:
      a new instance of CfnContainerProps
      Throws:
      NullPointerException - if any required attribute was not provided