Skip to content

Resource: awsServiceDiscoveryPublicDnsNamespace

Provides a Service Discovery Public DNS Namespace resource.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.serviceDiscoveryPublicDnsNamespace.ServiceDiscoveryPublicDnsNamespace(
  this,
  "example",
  {
    description: "example",
    name: "hoge.example.com",
  }
);

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the namespace.
  • description - (Optional) The description that you specify for the namespace when you create it.
  • tags - (Optional) A map of tags to assign to the namespace. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The ID of a namespace.
  • arn - The ARN that Amazon Route 53 assigns to the namespace when you create it.
  • hostedZone - The ID for the hosted zone that Amazon Route 53 creates when you create a namespace.
  • tagsAll - A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

Import

Service Discovery Public DNS Namespace can be imported using the namespace ID, e.g.,

$ terraform import aws_service_discovery_public_dns_namespace.example 0123456789