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

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

    Using getPrivateDnsNamespace

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getPrivateDnsNamespace(args: GetPrivateDnsNamespaceArgs, opts?: InvokeOptions): Promise<GetPrivateDnsNamespaceResult>
    function getPrivateDnsNamespaceOutput(args: GetPrivateDnsNamespaceOutputArgs, opts?: InvokeOutputOptions): Output<GetPrivateDnsNamespaceResult>
    def get_private_dns_namespace(id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetPrivateDnsNamespaceResult
    def get_private_dns_namespace_output(id: pulumi.Input[Optional[str]] = None,
                                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetPrivateDnsNamespaceResult]
    func LookupPrivateDnsNamespace(ctx *Context, args *LookupPrivateDnsNamespaceArgs, opts ...InvokeOption) (*LookupPrivateDnsNamespaceResult, error)
    func LookupPrivateDnsNamespaceOutput(ctx *Context, args *LookupPrivateDnsNamespaceOutputArgs, opts ...InvokeOption) LookupPrivateDnsNamespaceResultOutput

    > Note: This function is named LookupPrivateDnsNamespace in the Go SDK.

    public static class GetPrivateDnsNamespace 
    {
        public static Task<GetPrivateDnsNamespaceResult> InvokeAsync(GetPrivateDnsNamespaceArgs args, InvokeOptions? opts = null)
        public static Output<GetPrivateDnsNamespaceResult> Invoke(GetPrivateDnsNamespaceInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetPrivateDnsNamespaceResult> Invoke(GetPrivateDnsNamespaceInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetPrivateDnsNamespaceResult> getPrivateDnsNamespace(GetPrivateDnsNamespaceArgs args, InvokeOptions options)
    public static Output<GetPrivateDnsNamespaceResult> getPrivateDnsNamespace(GetPrivateDnsNamespaceArgs args, InvokeOptions options)
    public static Output<GetPrivateDnsNamespaceResult> getPrivateDnsNamespace(GetPrivateDnsNamespaceArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:servicediscovery:getPrivateDnsNamespace
      arguments:
        # arguments dictionary
    data "aws-native_servicediscovery_get_private_dns_namespace" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The ID of the private namespace.
    Id string
    The ID of the private namespace.
    id string
    The ID of the private namespace.
    id String
    The ID of the private namespace.
    id string
    The ID of the private namespace.
    id str
    The ID of the private namespace.
    id String
    The ID of the private namespace.

    getPrivateDnsNamespace Result

    The following output properties are available:

    Arn string
    The Amazon Resource Name (ARN) of the private namespace.
    Description string
    A description of the namespace.
    HostedZoneId string
    The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.
    Id string
    The ID of the private namespace.
    Properties Pulumi.AwsNative.ServiceDiscovery.Outputs.PrivateDnsNamespaceProperties
    Properties of the private DNS namespace.
    Tags List<Pulumi.AwsNative.Outputs.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.
    Arn string
    The Amazon Resource Name (ARN) of the private namespace.
    Description string
    A description of the namespace.
    HostedZoneId string
    The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.
    Id string
    The ID of the private 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.
    arn string
    The Amazon Resource Name (ARN) of the private namespace.
    description string
    A description of the 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 ID of the private 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.
    arn String
    The Amazon Resource Name (ARN) of the private namespace.
    description String
    A description of the namespace.
    hostedZoneId String
    The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.
    id String
    The ID of the private 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.
    arn string
    The Amazon Resource Name (ARN) of the private namespace.
    description string
    A description of the namespace.
    hostedZoneId string
    The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.
    id string
    The ID of the private 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.
    arn str
    The Amazon Resource Name (ARN) of the private namespace.
    description str
    A description of the 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 ID of the private namespace.
    properties PrivateDnsNamespaceProperties
    Properties of the private DNS namespace.
    tags Sequence[root_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.
    arn String
    The Amazon Resource Name (ARN) of the private namespace.
    description String
    A description of the namespace.
    hostedZoneId String
    The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.
    id String
    The ID of the private 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.

    Supporting Types

    PrivateDnsNamespacePrivateDnsPropertiesMutable

    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

    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

    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

    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