Class PrivateDnsNamespace
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.servicediscovery.PrivateDnsNamespace
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,INamespace
,IPrivateDnsNamespace
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.657Z")
@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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
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.core.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.Namespace Id of the PrivateDnsNamespace.The name of the PrivateDnsNamespace.getType()
Type of the namespace.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
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.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.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
-
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
-