From ab4396c5874db72d0a63aedf524dfe0bf9ce8e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Gonz=C3=A1lez?= Date: Tue, 10 Oct 2017 13:17:12 +0200 Subject: [PATCH] Fix documentation and include more examples --- website/docs/d/acm_certificate.html.markdown | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/website/docs/d/acm_certificate.html.markdown b/website/docs/d/acm_certificate.html.markdown index 1e7c3664b12..0d169a1bfda 100644 --- a/website/docs/d/acm_certificate.html.markdown +++ b/website/docs/d/acm_certificate.html.markdown @@ -20,6 +20,11 @@ them by domain without having to hard code the ARNs as input. data "aws_acm_certificate" "example" { domain = "tf.example.com" statuses = ["ISSUED"] +} + +data "aws_acm_certificate" "example" { + domain = "tf.example.com" + types = ["AMAZON_ISSUED"] most_recent = true } ``` @@ -30,8 +35,9 @@ data "aws_acm_certificate" "example" { * `statuses` - (Optional) A list of statuses on which to filter the returned list. Valid values are `PENDING_VALIDATION`, `ISSUED`, `INACTIVE`, `EXPIRED`, `VALIDATION_TIMED_OUT`, `REVOKED` and `FAILED`. If no value is specified, only certificates in the `ISSUED` state are returned. - * `types` - (Optional) A list of types on which to filter the returned list. Valid values are `AMAZON_ISSUED` and `IMPORTED` - * `most_recent` - (Optional) If set to true, it sorts certificates matched by previous criterias by the NotBefore field, returning only the most recent one. If set to false, it returns an error if more than one certificates are found. Defaults to false. + * `types` - (Optional) A list of types on which to filter the returned list. Valid values are `AMAZON_ISSUED` and `IMPORTED`. + * `most_recent` - (Optional) If set to true, it sorts the certificates matched by previous criteria by the NotBefore field, returning only the most recent one. If set to false, it returns an error if more than one certificate is found. Defaults to false. + ## Attributes Reference * `arn` - Set to the ARN of the found certificate, suitable for referencing in other resources that support ACM certificates.