@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:56.511Z") @Stability(value=Experimental) 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
(experimental) A fluent builder for
PrivateDnsNamespace. |
software.amazon.jsii.JsiiObject.InitializationModeIPrivateDnsNamespace.Jsii$Default, IPrivateDnsNamespace.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
PrivateDnsNamespace(software.constructs.Construct scope,
String id,
PrivateDnsNamespaceProps props) |
protected |
PrivateDnsNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
PrivateDnsNamespace(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Service |
createService(String id)
(experimental) Creates a service within the namespace.
|
Service |
createService(String id,
DnsServiceProps props)
(experimental) Creates a service within the namespace.
|
static IPrivateDnsNamespace |
fromPrivateDnsNamespaceAttributes(software.constructs.Construct scope,
String id,
PrivateDnsNamespaceAttributes attrs) |
String |
getNamespaceArn()
(experimental) Namespace Arn of the namespace.
|
String |
getNamespaceId()
(experimental) Namespace Id of the PrivateDnsNamespace.
|
String |
getNamespaceName()
(experimental) The name of the PrivateDnsNamespace.
|
String |
getPrivateDnsNamespaceArn() |
String |
getPrivateDnsNamespaceId() |
String |
getPrivateDnsNamespaceName() |
NamespaceType |
getType()
(experimental) Type of the namespace.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected PrivateDnsNamespace(software.amazon.jsii.JsiiObjectRef objRef)
protected PrivateDnsNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public PrivateDnsNamespace(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
PrivateDnsNamespaceProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IPrivateDnsNamespace fromPrivateDnsNamespaceAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull PrivateDnsNamespaceAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental) @NotNull public Service createService(@NotNull String id, @Nullable DnsServiceProps props)
id - This parameter is required.props - @Stability(value=Experimental) @NotNull public Service createService(@NotNull String id)
id - This parameter is required.@Stability(value=Experimental) @NotNull public String getNamespaceArn()
getNamespaceArn in interface INamespace@Stability(value=Experimental) @NotNull public String getNamespaceId()
getNamespaceId in interface INamespace@Stability(value=Experimental) @NotNull public String getNamespaceName()
getNamespaceName in interface INamespace@Stability(value=Experimental) @NotNull public String getPrivateDnsNamespaceArn()
@Stability(value=Experimental) @NotNull public String getPrivateDnsNamespaceId()
@Stability(value=Experimental) @NotNull public String getPrivateDnsNamespaceName()
@Stability(value=Experimental) @NotNull public NamespaceType getType()
getType in interface INamespaceCopyright © 2022. All rights reserved.