AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

PrivateDnsNamespace

Define a Service Discovery HTTP Namespace.

Import

import { PrivateDnsNamespace } from 'aws-cdk-lib/aws-servicediscovery';

Or use the module namespace:

import * as servicediscovery from 'aws-cdk-lib/aws-servicediscovery';
// servicediscovery.PrivateDnsNamespace

Properties

Configuration passed to the constructor as PrivateDnsNamespaceProps.

vpcRequired
IVpc

The Amazon VPC that you want to associate the namespace with.

2 properties inherited from BaseNamespaceProps
nameRequiredinherited from BaseNamespaceProps
string

A name for the Namespace.

descriptionOptionalinherited from BaseNamespaceProps
string

A description of the Namespace.

Default: none

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter