interface PrivateDnsNamespaceProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ServiceDiscovery.PrivateDnsNamespaceProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsservicediscovery#PrivateDnsNamespaceProps |
Java | software.amazon.awscdk.services.servicediscovery.PrivateDnsNamespaceProps |
Python | aws_cdk.aws_servicediscovery.PrivateDnsNamespaceProps |
TypeScript (source) | aws-cdk-lib » aws_servicediscovery » PrivateDnsNamespaceProps |
Implements
Base
Example
const vpc = new ec2.Vpc(this, 'vpc');
const namespace = new cloudmap.PrivateDnsNamespace(this, 'test-namespace', {
vpc,
name: 'domain.local',
});
const service = namespace.createService('Svc');
declare const mesh: appmesh.Mesh;
const node = mesh.addVirtualNode('virtual-node', {
serviceDiscovery: appmesh.ServiceDiscovery.cloudMap(service),
listeners: [appmesh.VirtualNodeListener.http({
port: 8081,
healthCheck: appmesh.HealthCheck.http({
healthyThreshold: 3,
interval: Duration.seconds(5), // minimum
path: '/health-check-path',
timeout: Duration.seconds(2), // minimum
unhealthyThreshold: 2,
}),
})],
accessLog: appmesh.AccessLog.fromFilePath('/dev/stdout'),
});
Properties
| Name | Type | Description |
|---|---|---|
| name | string | A name for the Namespace. |
| vpc | IVpc | The Amazon VPC that you want to associate the namespace with. |
| description? | string | A description of the Namespace. |
name
Type:
string
A name for the Namespace.
vpc
Type:
IVpc
The Amazon VPC that you want to associate the namespace with.
description?
Type:
string
(optional, default: none)
A description of the Namespace.

.NET
Go
Java
Python
TypeScript (