Interface CloudMapNamespaceOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CloudMapNamespaceOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:01.038Z")
@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) .serviceConnectConfiguration(ServiceConnectProps.builder() .services(List.of(ServiceConnectService.builder() .portMappingName("api") .dnsName("http-api") .port(80) .build())) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCloudMapNamespaceOptions
static final class
An implementation forCloudMapNamespaceOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
getName()
The name of the namespace, such as example.com.default NamespaceType
getType()
The type of CloudMap Namespace to create.default Boolean
This property specifies whether to set the provided namespace as the service connect default in the cluster properties.default IVpc
getVpc()
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.Builder
ofCloudMapNamespaceOptions
-