aws-cdk-lib.aws_servicediscovery.CfnPrivateDnsNamespaceProps

interface CfnPrivateDnsNamespaceProps

LanguageType name
.NETAmazon.CDK.AWS.ServiceDiscovery.CfnPrivateDnsNamespaceProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsservicediscovery#CfnPrivateDnsNamespaceProps
Javasoftware.amazon.awscdk.services.servicediscovery.CfnPrivateDnsNamespaceProps
Pythonaws_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

NameTypeDescription
namestringThe name that you want to assign to this namespace.
vpcstringThe ID of the Amazon VPC that you want to associate the namespace with.
description?stringA description for the namespace.
properties?IResolvable | PropertiesPropertyProperties for the private DNS namespace.
tags?CfnTag[]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 | PropertiesProperty (optional)

Properties for the private DNS namespace.


tags?

Type: CfnTag[] (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.