@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.157Z") @Stability(value=Stable) public class PrivateDnsNamespace extends Resource implements IPrivateDnsNamespace
Example:
// Example automatically generated from non-compiling source. May contain errors.
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. |
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)
Creates a service within the namespace.
|
Service |
createService(String id,
DnsServiceProps props)
Creates a service within the namespace.
|
static IPrivateDnsNamespace |
fromPrivateDnsNamespaceAttributes(software.constructs.Construct scope,
String id,
PrivateDnsNamespaceAttributes attrs) |
String |
getNamespaceArn()
Namespace Arn of the namespace.
|
String |
getNamespaceHostedZoneId()
ID of hosted zone created by namespace.
|
String |
getNamespaceId()
Namespace Id of the PrivateDnsNamespace.
|
String |
getNamespaceName()
The name of the PrivateDnsNamespace.
|
String |
getPrivateDnsNamespaceArn() |
String |
getPrivateDnsNamespaceId() |
String |
getPrivateDnsNamespaceName() |
NamespaceType |
getType()
Type of the namespace.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected PrivateDnsNamespace(software.amazon.jsii.JsiiObjectRef objRef)
protected PrivateDnsNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
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=Stable) @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=Stable) @NotNull public Service createService(@NotNull String id, @Nullable DnsServiceProps props)
id - This parameter is required.props - @Stability(value=Stable) @NotNull public Service createService(@NotNull String id)
id - This parameter is required.@Stability(value=Stable) @NotNull public String getNamespaceArn()
getNamespaceArn in interface INamespace@Stability(value=Stable) @NotNull public String getNamespaceHostedZoneId()
@Stability(value=Stable) @NotNull public String getNamespaceId()
getNamespaceId in interface INamespace@Stability(value=Stable) @NotNull public String getNamespaceName()
getNamespaceName in interface INamespace@Stability(value=Stable) @NotNull public String getPrivateDnsNamespaceArn()
@Stability(value=Stable) @NotNull public String getPrivateDnsNamespaceId()
@Stability(value=Stable) @NotNull public String getPrivateDnsNamespaceName()
@Stability(value=Stable) @NotNull public NamespaceType getType()
getType in interface INamespaceCopyright © 2022. All rights reserved.