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

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::PublicDnsNamespace

    Using getPublicDnsNamespace

    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 getPublicDnsNamespace(args: GetPublicDnsNamespaceArgs, opts?: InvokeOptions): Promise<GetPublicDnsNamespaceResult>
    function getPublicDnsNamespaceOutput(args: GetPublicDnsNamespaceOutputArgs, opts?: InvokeOutputOptions): Output<GetPublicDnsNamespaceResult>
    def get_public_dns_namespace(id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetPublicDnsNamespaceResult
    def get_public_dns_namespace_output(id: pulumi.Input[Optional[str]] = None,
                                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetPublicDnsNamespaceResult]
    func LookupPublicDnsNamespace(ctx *Context, args *LookupPublicDnsNamespaceArgs, opts ...InvokeOption) (*LookupPublicDnsNamespaceResult, error)
    func LookupPublicDnsNamespaceOutput(ctx *Context, args *LookupPublicDnsNamespaceOutputArgs, opts ...InvokeOption) LookupPublicDnsNamespaceResultOutput

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

    public static class GetPublicDnsNamespace 
    {
        public static Task<GetPublicDnsNamespaceResult> InvokeAsync(GetPublicDnsNamespaceArgs args, InvokeOptions? opts = null)
        public static Output<GetPublicDnsNamespaceResult> Invoke(GetPublicDnsNamespaceInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetPublicDnsNamespaceResult> Invoke(GetPublicDnsNamespaceInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetPublicDnsNamespaceResult> getPublicDnsNamespace(GetPublicDnsNamespaceArgs args, InvokeOptions options)
    public static Output<GetPublicDnsNamespaceResult> getPublicDnsNamespace(GetPublicDnsNamespaceArgs args, InvokeOptions options)
    public static Output<GetPublicDnsNamespaceResult> getPublicDnsNamespace(GetPublicDnsNamespaceArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:servicediscovery:getPublicDnsNamespace
      arguments:
        # arguments dictionary
    data "aws-native_servicediscovery_get_public_dns_namespace" "name" {
        # arguments
    }

    The following arguments are supported:

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

    getPublicDnsNamespace Result

    The following output properties are available:

    Arn string
    The Amazon Resource Name (ARN) of the public namespace.
    Description string
    A description for 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 public namespace.
    Properties Pulumi.AwsNative.ServiceDiscovery.Outputs.PublicDnsNamespaceProperties
    Properties for the public 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 public namespace.
    Description string
    A description for 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 public namespace.
    Properties PublicDnsNamespaceProperties
    Properties for the public 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 public namespace.
    description string
    A description for 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 public namespace.
    properties object
    Properties for the public 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 public namespace.
    description String
    A description for 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 public namespace.
    properties PublicDnsNamespaceProperties
    Properties for the public 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 public namespace.
    description string
    A description for 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 public namespace.
    properties PublicDnsNamespaceProperties
    Properties for the public 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 public namespace.
    description str
    A description for 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 public namespace.
    properties PublicDnsNamespaceProperties
    Properties for the public 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 public namespace.
    description String
    A description for 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 public namespace.
    properties Property Map
    Properties for the public 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

    PublicDnsNamespaceProperties

    DnsProperties PublicDnsNamespacePublicDnsPropertiesMutable
    DNS properties for the public DNS namespace.
    dns_properties object
    DNS properties for the public DNS namespace.
    dnsProperties PublicDnsNamespacePublicDnsPropertiesMutable
    DNS properties for the public DNS namespace.
    dnsProperties PublicDnsNamespacePublicDnsPropertiesMutable
    DNS properties for the public DNS namespace.
    dns_properties PublicDnsNamespacePublicDnsPropertiesMutable
    DNS properties for the public DNS namespace.
    dnsProperties Property Map
    DNS properties for the public DNS namespace.

    PublicDnsNamespacePublicDnsPropertiesMutable

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

    PublicDnsNamespaceSoa

    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