interface PrivateDnsNamespaceAttributes
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ServiceDiscovery.PrivateDnsNamespaceAttributes |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsservicediscovery#PrivateDnsNamespaceAttributes |
Java | software.amazon.awscdk.services.servicediscovery.PrivateDnsNamespaceAttributes |
Python | aws_cdk.aws_servicediscovery.PrivateDnsNamespaceAttributes |
TypeScript (source) | aws-cdk-lib » aws_servicediscovery » PrivateDnsNamespaceAttributes |
Example
declare const vpc: ec2.Vpc;
const importedNamespace = cloudmap.PrivateDnsNamespace.fromPrivateDnsNamespaceAttributes(
this, 'ImportedNamespace', {
namespaceId: 'ns-xxxxxxxxxxxxx',
namespaceArn: 'arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-xxxxxxxxxxxxx',
namespaceName: 'example.local',
}
);
const cluster = new ecs.Cluster(this, 'Cluster', { vpc });
cluster.addExistingDefaultCloudMapNamespace({
namespace: importedNamespace,
});
Properties
| Name | Type | Description |
|---|---|---|
| namespace | string | Namespace ARN for the Namespace. |
| namespace | string | Namespace Id for the Namespace. |
| namespace | string | A name for the Namespace. |
namespaceArn
Type:
string
Namespace ARN for the Namespace.
namespaceId
Type:
string
Namespace Id for the Namespace.
namespaceName
Type:
string
A name for the Namespace.

.NET
Go
Java
Python
TypeScript (