Skip to content

Commit

Permalink
Fix doc formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-rich committed Jun 22, 2021
1 parent 36cf3d7 commit 1894ccf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion aws/resource_aws_elasticsearch_domain_saml_options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
25 changes: 17 additions & 8 deletions website/docs/r/elasticsearch_domain_saml_options.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
```

0 comments on commit 1894ccf

Please sign in to comment.