Data Source: aws_api_gateway_domain_name

Example Usage

data "aws_api_gateway_domain_name" "example" {
domain_name = "api.example.com"
}

Argument Reference

  • domain_name - (Required) Fully-qualified domain name to look up. If no domain name is found, an error will be returned.

Attributes Reference

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

  • arn - ARN of the found custom domain name.
  • certificate_arn - ARN for an AWS-managed certificate that is used by edge-optimized endpoint for this domain name.
  • certificate_name - Name of the certificate that is used by edge-optimized endpoint for this domain name.
  • certificate_upload_date - Upload date associated with the domain certificate.
  • cloudfront_domain_name - Hostname created by Cloudfront to represent the distribution that implements this domain name mapping.
  • cloudfront_zone_id - For convenience, the hosted zone ID (Z2FDTNDATAQYW2) that can be used to create a Route53 alias record for the distribution.
  • endpoint_configuration - List of objects with the endpoint configuration of this domain name.
  • types - List of endpoint types.
  • regional_certificate_arn - ARN for an AWS-managed certificate that is used for validating the regional domain name.
  • regional_certificate_name - User-friendly name of the certificate that is used by regional endpoint for this domain name.
  • regional_domain_name - Hostname for the custom domain's regional endpoint.
  • regional_zone_id - Hosted zone ID that can be used to create a Route53 alias record for the regional endpoint.
  • security_policy - Security policy for the domain name.
  • tags - Key-value map of tags for the resource.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store