Class PrivateDnsNamespace
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.servicediscovery.PrivateDnsNamespace
- All Implemented Interfaces:
IResource
,INamespace
,IPrivateDnsNamespace
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:23.828Z")
@Stability(Stable)
public class PrivateDnsNamespace
extends Resource
implements IPrivateDnsNamespace
Define a Service Discovery HTTP Namespace.
Example:
Mesh mesh; // Cloud Map service discovery is currently required for host ejection by outlier detection Vpc vpc = new Vpc(this, "vpc"); PrivateDnsNamespace namespace = PrivateDnsNamespace.Builder.create(this, "test-namespace") .vpc(vpc) .name("domain.local") .build(); Service service = namespace.createService("Svc"); VirtualNode node = mesh.addVirtualNode("virtual-node", VirtualNodeBaseProps.builder() .serviceDiscovery(ServiceDiscovery.cloudMap(service)) .listeners(List.of(VirtualNodeListener.http(HttpVirtualNodeListenerOptions.builder() .outlierDetection(OutlierDetection.builder() .baseEjectionDuration(Duration.seconds(10)) .interval(Duration.seconds(30)) .maxEjectionPercent(50) .maxServerErrors(5) .build()) .build()))) .build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.servicediscovery.IPrivateDnsNamespace
IPrivateDnsNamespace.Jsii$Default, IPrivateDnsNamespace.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
PrivateDnsNamespace
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
PrivateDnsNamespace
(software.amazon.jsii.JsiiObjectRef objRef) PrivateDnsNamespace
(software.constructs.Construct scope, String id, PrivateDnsNamespaceProps props) -
Method Summary
Modifier and TypeMethodDescriptioncreateService
(String id) Creates a service within the namespace.createService
(String id, DnsServiceProps props) Creates a service within the namespace.static IPrivateDnsNamespace
fromPrivateDnsNamespaceAttributes
(software.constructs.Construct scope, String id, PrivateDnsNamespaceAttributes attrs) Namespace Arn of the namespace.ID of hosted zone created by namespace.Namespace Id of the PrivateDnsNamespace.The name of the PrivateDnsNamespace.getType()
Type of the namespace.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
PrivateDnsNamespace
protected PrivateDnsNamespace(software.amazon.jsii.JsiiObjectRef objRef) -
PrivateDnsNamespace
protected PrivateDnsNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
PrivateDnsNamespace
@Stability(Stable) public PrivateDnsNamespace(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull PrivateDnsNamespaceProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
fromPrivateDnsNamespaceAttributes
@Stability(Stable) @NotNull public static IPrivateDnsNamespace fromPrivateDnsNamespaceAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull PrivateDnsNamespaceAttributes attrs) - Parameters:
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.
-
createService
@Stability(Stable) @NotNull public Service createService(@NotNull String id, @Nullable DnsServiceProps props) Creates a service within the namespace.- Parameters:
id
- This parameter is required.props
-
-
createService
Creates a service within the namespace.- Parameters:
id
- This parameter is required.
-
getNamespaceArn
Namespace Arn of the namespace.- Specified by:
getNamespaceArn
in interfaceINamespace
-
getNamespaceHostedZoneId
ID of hosted zone created by namespace. -
getNamespaceId
Namespace Id of the PrivateDnsNamespace.- Specified by:
getNamespaceId
in interfaceINamespace
-
getNamespaceName
The name of the PrivateDnsNamespace.- Specified by:
getNamespaceName
in interfaceINamespace
-
getPrivateDnsNamespaceArn
-
getPrivateDnsNamespaceId
-
getPrivateDnsNamespaceName
-
getType
Type of the namespace.- Specified by:
getType
in interfaceINamespace
-