Skip to content

Commit 117fdfd

Browse files
committed
aws_lakeformation_lf_tag_expression: update documentation
1 parent 4005666 commit 117fdfd

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

website/docs/r/lakeformation_lf_tag_expression.html.markdown

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,33 @@ Terraform resource for managing an AWS Lake Formation LF Tag Expression.
1414
### Basic Usage
1515

1616
```terraform
17+
resource "aws_lakeformation_lf_tag" "example" {
18+
key = "example"
19+
values = ["value"]
20+
}
21+
1722
resource "aws_lakeformation_lf_tag_expression" "example" {
18-
name = "example-tag-expression"
19-
20-
tag_expression = {
21-
"Environment" = ["dev", "staging", "prod"]
22-
"Department" = ["engineering", "marketing"]
23+
name = "example"
24+
25+
expression {
26+
tag_key = aws_lakeformation_lf_tag.example.key
27+
tag_values = aws_lakeformation_lf_tag.example.values
2328
}
24-
25-
description = "Example LF Tag Expression for demo purposes"
2629
}
30+
2731
```
2832

2933
## Argument Reference
3034

3135
The following arguments are required:
3236

3337
* `name` - (Required) Name of the LF-Tag Expression.
34-
* `tag_expression` - (Required) Mapping of tag keys to lists of allowed values.
38+
* `expression` - (Required) A list of LF-Tag conditions (key-value pairs). See [expression](#expression) for more details.
39+
40+
### expression
41+
42+
* `tag_key` - (Required) The key-name for the LF-Tag.
43+
* `tag_values` - (Required) A list of possible values for the LF-Tag
3544

3645
The following arguments are optional:
3746

@@ -40,31 +49,21 @@ The following arguments are optional:
4049

4150
## Attribute Reference
4251

43-
This resource exports the following attributes in addition to the arguments above:
44-
45-
* `id` - Primary identifier (catalog_id:name).
46-
47-
## Timeouts
48-
49-
[Configuration options](https://developer.hashicorp.com/terraform/language/resources/syntax#operation-timeouts):
50-
51-
* `create` - (Default `30m`)
52-
* `update` - (Default `30m`)
53-
* `delete` - (Default `30m`)
52+
This resource exports no additional attributes.
5453

5554
## Import
5655

57-
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import Lake Formation LF Tag Expression using the `catalog_id:name`. For example:
56+
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import Lake Formation LF Tag Expression using the `name,catalog_id`. For example:
5857

5958
```terraform
6059
import {
6160
to = aws_lakeformation_lf_tag_expression.example
62-
id = "123456789012:example-tag-expression"
61+
id = "example-tag-expression,123456789012"
6362
}
6463
```
6564

66-
Using `terraform import`, import Lake Formation LF Tag Expression using the `catalog_id:name`. For example:
65+
Using `terraform import`, import Lake Formation LF Tag Expression using the `name,catalog_id`. For example:
6766

6867
```console
69-
% terraform import aws_lakeformation_lf_tag_expression.example 123456789012:example-tag-expression
68+
% terraform import aws_lakeformation_lf_tag_expression.example example-tag-expression,123456789012
7069
```

0 commit comments

Comments
 (0)