Class CfnCluster.ServiceConnectDefaultsProperty.Builder

java.lang.Object
software.amazon.awscdk.services.ecs.CfnCluster.ServiceConnectDefaultsProperty.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ServiceConnectDefaultsProperty>
Enclosing interface:
CfnCluster.ServiceConnectDefaultsProperty

@Stability(Stable) public static final class CfnCluster.ServiceConnectDefaultsProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnCluster.ServiceConnectDefaultsProperty>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • namespace

      @Stability(Stable) public CfnCluster.ServiceConnectDefaultsProperty.Builder namespace(String namespace)
      Parameters:
      namespace - The namespace name or full Amazon Resource Name (ARN) of the AWS Cloud Map namespace that's used when you create a service and don't specify a Service Connect configuration. The namespace name can include up to 1024 characters. The name is case-sensitive. The name can't include hyphens (-), tilde (~), greater than (>), less than (<), or slash (/).

      If you enter an existing namespace name or ARN, then that namespace will be used. Any namespace type is supported. The namespace must be in this account and this AWS Region.

      If you enter a new name, a AWS Cloud Map namespace will be created. Amazon ECS creates a AWS Cloud Map namespace with the "API calls" method of instance discovery only. This instance discovery method is the "HTTP" namespace type in the AWS Command Line Interface . Other types of instance discovery aren't used by Service Connect.

      If you update the service with an empty string "" for the namespace name, the cluster configuration for Service Connect is removed. Note that the namespace will remain in AWS Cloud Map and must be deleted separately.

      For more information about AWS Cloud Map , see Working with Services in the AWS Cloud Map Developer Guide .

      Returns:
      this
    • build

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