CfnPrivateDnsNamespaceProps Struct
Properties for defining a CfnPrivateDnsNamespace.
Example
ts
// 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',
// the properties below are optional
description: 'description',
properties: {
dnsProperties: {
soa: {
ttl: 123,
},
},
},
tags: [{
key: 'key',
value: 'value',
}],
vpc: 'vpc',
};
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#A description for the namespace.
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.
propertiesoptionalIResolvable | CfnPrivateDnsNamespace.PropertiesPropertypropertiesoptionaltyping.Union[IResolvable, PropertiesProperty]propertiesoptionalIResolvablePropertiesoptionalIResolvablePropertiesoptionalinterface{}#Properties for the private DNS namespace.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#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.
The ID of the Amazon VPC that you want to associate the namespace with.