interface CfnPrivateDnsNamespaceProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ServiceDiscovery.CfnPrivateDnsNamespaceProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsservicediscovery#CfnPrivateDnsNamespaceProps |
Java | software.amazon.awscdk.services.servicediscovery.CfnPrivateDnsNamespaceProps |
Python | aws_cdk.aws_servicediscovery.CfnPrivateDnsNamespaceProps |
TypeScript | aws-cdk-lib » aws_servicediscovery » CfnPrivateDnsNamespaceProps |
Properties for defining a CfnPrivateDnsNamespace
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_servicediscovery as servicediscovery } from 'aws-cdk-lib';
const cfnPrivateDnsNamespaceProps: servicediscovery.CfnPrivateDnsNamespaceProps = {
name: 'name',
vpc: 'vpc',
// the properties below are optional
description: 'description',
properties: {
dnsProperties: {
soa: {
ttl: 123,
},
},
},
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
name | string | The name that you want to assign to this namespace. |
vpc | string | The ID of the Amazon VPC that you want to associate the namespace with. |
description? | string | A description for the namespace. |
properties? | IResolvable | Properties | Properties for the private DNS namespace. |
tags? | Cfn [] | The tags for the namespace. |
name
Type:
string
The name that you want to assign to this namespace.
When you create a private DNS namespace, AWS Cloud Map automatically creates an Amazon Route 53 private hosted zone that has the same name as the namespace.
vpc
Type:
string
The ID of the Amazon VPC that you want to associate the namespace with.
description?
Type:
string
(optional)
A description for the namespace.
properties?
Type:
IResolvable
|
Properties
(optional)
Properties for the private DNS namespace.
tags?
Type:
Cfn
[]
(optional)
The tags for the namespace.
Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.