Exposed aws_api_gw_domain_name.certificate_upload_date attribute (#9533)

This commit is contained in:
Ninir 2016-10-25 17:07:08 +02:00 committed by Paul Stack
parent 0c6a999a74
commit ef5ceb9681
3 changed files with 9 additions and 0 deletions

View File

@ -52,6 +52,11 @@ func resourceAwsApiGatewayDomainName() *schema.Resource {
Computed: true,
},
"certificate_upload_date": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},
"cloudfront_zone_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,

View File

@ -41,6 +41,9 @@ func TestAccAWSAPIGatewayDomainName_basic(t *testing.T) {
resource.TestCheckResourceAttr(
"aws_api_gateway_domain_name.test", "domain_name", name,
),
resource.TestCheckResourceAttrSet(
"aws_api_gateway_domain_name.test", "certificate_upload_date",
),
),
},
},

View File

@ -69,6 +69,7 @@ The following arguments are supported:
The following attributes are exported:
* `id` - The internal id assigned to this domain name by API Gateway.
* `certificate_upload_date` - The upload date associated with the domain certificate.
* `cloudfront_domain_name` - The hostname created by Cloudfront to represent
the distribution that implements this domain name mapping.
* `cloudfront_zone_id` - For convenience, the hosted zone id (`Z2FDTNDATAQYW2`)