Interface CloudMapNamespaceOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CloudMapNamespaceOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:03.896Z")
@Stability(Stable)
public interface CloudMapNamespaceOptions
extends software.amazon.jsii.JsiiSerializable
The options for creating an AWS Cloud Map namespace.
Example:
Cluster cluster;
TaskDefinition taskDefinition;
ContainerDefinitionOptions containerOptions;
ContainerDefinition container = taskDefinition.addContainer("MyContainer", containerOptions);
container.addPortMappings(PortMapping.builder()
.name("api")
.containerPort(8080)
.build());
cluster.addDefaultCloudMapNamespace(CloudMapNamespaceOptions.builder()
.name("local")
.build());
FargateService service = FargateService.Builder.create(this, "Service")
.cluster(cluster)
.taskDefinition(taskDefinition)
.minHealthyPercent(100)
.serviceConnectConfiguration(ServiceConnectProps.builder()
.services(List.of(ServiceConnectService.builder()
.portMappingName("api")
.dnsName("http-api")
.port(80)
.build()))
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCloudMapNamespaceOptionsstatic final classAn implementation forCloudMapNamespaceOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()getName()The name of the namespace, such as example.com.default NamespaceTypegetType()The type of CloudMap Namespace to create.default BooleanThis property specifies whether to set the provided namespace as the service connect default in the cluster properties.default IVpcgetVpc()The VPC to associate the namespace with.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The name of the namespace, such as example.com. -
getType
The type of CloudMap Namespace to create.Default: PrivateDns
-
getUseForServiceConnect
This property specifies whether to set the provided namespace as the service connect default in the cluster properties.Default: false
-
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
- Returns:
- a
CloudMapNamespaceOptions.BuilderofCloudMapNamespaceOptions
-