Interface CloudMapNamespaceOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CloudMapNamespaceOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:47.239Z") @Stability(Stable) public interface CloudMapNamespaceOptions extends software.amazon.jsii.JsiiSerializable
The options for creating an AWS Cloud Map namespace.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ec2.*;
 import software.amazon.awscdk.services.ecs.*;
 import software.amazon.awscdk.services.servicediscovery.*;
 Vpc vpc;
 CloudMapNamespaceOptions cloudMapNamespaceOptions = CloudMapNamespaceOptions.builder()
         .name("name")
         // the properties below are optional
         .type(NamespaceType.HTTP)
         .vpc(vpc)
         .build();
 
  • Method Details

    • getName

      @Stability(Stable) @NotNull String getName()
      The name of the namespace, such as example.com.
    • getType

      @Stability(Stable) @Nullable default NamespaceType getType()
      The type of CloudMap Namespace to create.

      Default: PrivateDns

    • getVpc

      @Stability(Stable) @Nullable default IVpc getVpc()
      The VPC to associate the namespace with.

      This property is required for private DNS namespaces.

      Default: VPC of the cluster for Private DNS Namespace, otherwise none

    • builder

      @Stability(Stable) static CloudMapNamespaceOptions.Builder builder()
      Returns:
      a CloudMapNamespaceOptions.Builder of CloudMapNamespaceOptions