1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. servicediscovery
  6. PrivateDnsNamespace

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.76.0
published on Monday, Aug 24, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.76.0
published on Monday, Aug 24, 2026 by Pulumi

    Resource Type definition for AWS::ServiceDiscovery::PrivateDnsNamespace

    Create PrivateDnsNamespace Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PrivateDnsNamespace(name: string, args?: PrivateDnsNamespaceArgs, opts?: CustomResourceOptions);
    @overload
    def PrivateDnsNamespace(resource_name: str,
                            args: Optional[PrivateDnsNamespaceArgs] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def PrivateDnsNamespace(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            description: Optional[str] = None,
                            name: Optional[str] = None,
                            properties: Optional[PrivateDnsNamespacePropertiesArgs] = None,
                            tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
                            vpc: Optional[str] = None)
    func NewPrivateDnsNamespace(ctx *Context, name string, args *PrivateDnsNamespaceArgs, opts ...ResourceOption) (*PrivateDnsNamespace, error)
    public PrivateDnsNamespace(string name, PrivateDnsNamespaceArgs? args = null, CustomResourceOptions? opts = null)
    public PrivateDnsNamespace(String name, PrivateDnsNamespaceArgs args)
    public PrivateDnsNamespace(String name, PrivateDnsNamespaceArgs args, CustomResourceOptions options)
    
    type: aws-native:servicediscovery:PrivateDnsNamespace
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_servicediscovery_private_dns_namespace" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args PrivateDnsNamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PrivateDnsNamespaceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PrivateDnsNamespaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PrivateDnsNamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PrivateDnsNamespaceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    PrivateDnsNamespace Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The PrivateDnsNamespace resource accepts the following input properties:

    Description string
    A description of the namespace.
    Name 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.
    Properties Pulumi.AwsNative.ServiceDiscovery.Inputs.PrivateDnsNamespaceProperties
    Properties of the private DNS namespace.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    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.
    Vpc string
    The ID of the Amazon VPC that you want to associate the namespace with.
    Description string
    A description of the namespace.
    Name 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.
    Properties PrivateDnsNamespacePropertiesArgs
    Properties of the private DNS namespace.
    Tags TagArgs
    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.
    Vpc string
    The ID of the Amazon VPC that you want to associate the namespace with.
    description string
    A description of the namespace.
    name 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.
    properties object
    Properties of the private DNS namespace.
    tags list(object)
    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.
    vpc string
    The ID of the Amazon VPC that you want to associate the namespace with.
    description String
    A description of the namespace.
    name 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.
    properties PrivateDnsNamespaceProperties
    Properties of the private DNS namespace.
    tags List<Tag>
    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.
    vpc String
    The ID of the Amazon VPC that you want to associate the namespace with.
    description string
    A description of the namespace.
    name 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.
    properties PrivateDnsNamespaceProperties
    Properties of the private DNS namespace.
    tags Tag[]
    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.
    vpc string
    The ID of the Amazon VPC that you want to associate the namespace with.
    description str
    A description of the namespace.
    name str
    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.
    properties PrivateDnsNamespacePropertiesArgs
    Properties of the private DNS namespace.
    tags Sequence[TagArgs]
    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.
    vpc str
    The ID of the Amazon VPC that you want to associate the namespace with.
    description String
    A description of the namespace.
    name 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.
    properties Property Map
    Properties of the private DNS namespace.
    tags List<Property Map>
    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.
    vpc String
    The ID of the Amazon VPC that you want to associate the namespace with.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PrivateDnsNamespace resource produces the following output properties:

    Arn string
    The Amazon Resource Name (ARN) of the private namespace.
    AwsId string
    The ID of the private namespace.
    HostedZoneId string
    The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    The Amazon Resource Name (ARN) of the private namespace.
    AwsId string
    The ID of the private namespace.
    HostedZoneId string
    The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.
    Id string
    The provider-assigned unique ID for this managed resource.
    arn string
    The Amazon Resource Name (ARN) of the private namespace.
    aws_id string
    The ID of the private namespace.
    hosted_zone_id string
    The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.
    id string
    The provider-assigned unique ID for this managed resource.
    arn String
    The Amazon Resource Name (ARN) of the private namespace.
    awsId String
    The ID of the private namespace.
    hostedZoneId String
    The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    The Amazon Resource Name (ARN) of the private namespace.
    awsId string
    The ID of the private namespace.
    hostedZoneId string
    The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    The Amazon Resource Name (ARN) of the private namespace.
    aws_id str
    The ID of the private namespace.
    hosted_zone_id str
    The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    The Amazon Resource Name (ARN) of the private namespace.
    awsId String
    The ID of the private namespace.
    hostedZoneId String
    The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    PrivateDnsNamespacePrivateDnsPropertiesMutable, PrivateDnsNamespacePrivateDnsPropertiesMutableArgs

    Soa Pulumi.AwsNative.ServiceDiscovery.Inputs.PrivateDnsNamespaceSoa
    Fields for the Start of Authority (SOA) record for the hosted zone for the private DNS namespace.
    Soa PrivateDnsNamespaceSoa
    Fields for the Start of Authority (SOA) record for the hosted zone for the private DNS namespace.
    soa object
    Fields for the Start of Authority (SOA) record for the hosted zone for the private DNS namespace.
    soa PrivateDnsNamespaceSoa
    Fields for the Start of Authority (SOA) record for the hosted zone for the private DNS namespace.
    soa PrivateDnsNamespaceSoa
    Fields for the Start of Authority (SOA) record for the hosted zone for the private DNS namespace.
    soa PrivateDnsNamespaceSoa
    Fields for the Start of Authority (SOA) record for the hosted zone for the private DNS namespace.
    soa Property Map
    Fields for the Start of Authority (SOA) record for the hosted zone for the private DNS namespace.

    PrivateDnsNamespaceProperties, PrivateDnsNamespacePropertiesArgs

    DnsProperties PrivateDnsNamespacePrivateDnsPropertiesMutable
    DNS properties for the private DNS namespace.
    dns_properties object
    DNS properties for the private DNS namespace.
    dnsProperties PrivateDnsNamespacePrivateDnsPropertiesMutable
    DNS properties for the private DNS namespace.
    dnsProperties PrivateDnsNamespacePrivateDnsPropertiesMutable
    DNS properties for the private DNS namespace.
    dns_properties PrivateDnsNamespacePrivateDnsPropertiesMutable
    DNS properties for the private DNS namespace.
    dnsProperties Property Map
    DNS properties for the private DNS namespace.

    PrivateDnsNamespaceSoa, PrivateDnsNamespaceSoaArgs

    Ttl double
    The time to live (TTL) for purposes of negative caching.
    Ttl float64
    The time to live (TTL) for purposes of negative caching.
    ttl number
    The time to live (TTL) for purposes of negative caching.
    ttl Double
    The time to live (TTL) for purposes of negative caching.
    ttl number
    The time to live (TTL) for purposes of negative caching.
    ttl float
    The time to live (TTL) for purposes of negative caching.
    ttl Number
    The time to live (TTL) for purposes of negative caching.

    Tag, TagArgs

    A set of tags to apply to the resource.
    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.76.0
    published on Monday, Aug 24, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial