@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-02T20:25:35.628Z") public class PrivateDnsNamespace extends Resource implements IPrivateDnsNamespace
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());
Modifier and Type | Class and Description |
---|---|
static class |
PrivateDnsNamespace.Builder
A fluent builder for
PrivateDnsNamespace . |
IPrivateDnsNamespace.Jsii$Default, IPrivateDnsNamespace.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
PrivateDnsNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
PrivateDnsNamespace(software.amazon.jsii.JsiiObjectRef objRef) |
|
PrivateDnsNamespace(software.constructs.Construct scope,
java.lang.String id,
PrivateDnsNamespaceProps props) |
Modifier and Type | Method and Description |
---|---|
Service |
createService(java.lang.String id)
Creates a service within the namespace.
|
Service |
createService(java.lang.String id,
DnsServiceProps props)
Creates a service within the namespace.
|
static IPrivateDnsNamespace |
fromPrivateDnsNamespaceAttributes(software.constructs.Construct scope,
java.lang.String id,
PrivateDnsNamespaceAttributes attrs) |
java.lang.String |
getNamespaceArn()
Namespace Arn of the namespace.
|
java.lang.String |
getNamespaceId()
Namespace Id of the PrivateDnsNamespace.
|
java.lang.String |
getNamespaceName()
The name of the PrivateDnsNamespace.
|
java.lang.String |
getPrivateDnsNamespaceArn() |
java.lang.String |
getPrivateDnsNamespaceId() |
java.lang.String |
getPrivateDnsNamespaceName() |
NamespaceType |
getType()
Type of the namespace.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected PrivateDnsNamespace(software.amazon.jsii.JsiiObjectRef objRef)
protected PrivateDnsNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public PrivateDnsNamespace(software.constructs.Construct scope, java.lang.String id, PrivateDnsNamespaceProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IPrivateDnsNamespace fromPrivateDnsNamespaceAttributes(software.constructs.Construct scope, java.lang.String id, PrivateDnsNamespaceAttributes attrs)
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.public Service createService(java.lang.String id, DnsServiceProps props)
id
- This parameter is required.props
- public Service createService(java.lang.String id)
id
- This parameter is required.public java.lang.String getNamespaceArn()
getNamespaceArn
in interface INamespace
public java.lang.String getNamespaceId()
getNamespaceId
in interface INamespace
public java.lang.String getNamespaceName()
getNamespaceName
in interface INamespace
public java.lang.String getPrivateDnsNamespaceArn()
public java.lang.String getPrivateDnsNamespaceId()
public java.lang.String getPrivateDnsNamespaceName()
public NamespaceType getType()
getType
in interface INamespace