From 1894ccf2f1ed79cc5b742a1fe00c71143e0fd431 Mon Sep 17 00:00:00 2001 From: bill-rich Date: Tue, 22 Jun 2021 10:13:20 -0700 Subject: [PATCH] Fix doc formatting --- ..._elasticsearch_domain_saml_options_test.go | 2 +- ...icsearch_domain_saml_options.html.markdown | 25 +++++++++++++------ 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/aws/resource_aws_elasticsearch_domain_saml_options_test.go b/aws/resource_aws_elasticsearch_domain_saml_options_test.go index abb9ff90ddb4..808a6b78c3c6 100644 --- a/aws/resource_aws_elasticsearch_domain_saml_options_test.go +++ b/aws/resource_aws_elasticsearch_domain_saml_options_test.go @@ -373,7 +373,7 @@ resource "aws_elasticsearch_domain_saml_options" "main" { domain_name = aws_elasticsearch_domain.example.domain_name saml_options { - enabled = false + enabled = false } } `, userName, domainName) diff --git a/website/docs/r/elasticsearch_domain_saml_options.html.markdown b/website/docs/r/elasticsearch_domain_saml_options.html.markdown index 321dae3e0e55..003ef48be727 100644 --- a/website/docs/r/elasticsearch_domain_saml_options.html.markdown +++ b/website/docs/r/elasticsearch_domain_saml_options.html.markdown @@ -32,13 +32,16 @@ resource "aws_elasticsearch_domain" "example" { } } -saml_options { - enabled = true - idp { - entity_id = "https://example.com" - metadata_content = file("./saml-metadata.xml") - } -} +resource "aws_elasticsearch_domain_saml_options" "example" { + domain_name = aws_elasticsearch_domain.example.domain_name + saml_options { + enabled = true + idp { + entity_id = "https://example.com" + metadata_content = file("./saml-metadata.xml") + } + } +} ``` ## Argument Reference @@ -67,10 +70,16 @@ The following arguments are optional: * `entity_id` - (Required) The unique Entity ID of the application in SAML Identity Provider. * `metadata_content` - (Required) The Metadata of the SAML application in xml format. +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - The name of the domain the SAML options are associated with. + ## Import Elasticsearch domains can be imported using the `domain_name`, e.g. ``` -$ terraform import aws_elasticsearch_domain.example domain_name +$ terraform import aws_elasticsearch_domain_saml_options.example domain_name ```