Skip to content

Commit 039c2b9

Browse files
modular-magicianEdward Sun
andauthored
adding id for exported attributes in more manual docs (#3551) (#2103)
Co-authored-by: Edward Sun <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Edward Sun <[email protected]>
1 parent 492d99f commit 039c2b9

15 files changed

+54
-3
lines changed

.changelog/3551.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

website/docs/r/logging_billing_account_bucket_config.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ The following arguments are supported:
4949
In addition to the arguments listed above, the following computed attributes are
5050
exported:
5151

52+
* `id` - an identifier for the resource with format `projects/{{project}}/locations/{{location}}/buckets/{{bucket}}`
53+
5254
* `name` - The resource name of the bucket. For example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id"
5355

5456
* `lifecycle_state` - The bucket's lifecycle such as active or deleted. See [LifecycleState](https://cloud.google.com/logging/docs/reference/v2/rest/v2/billingAccounts.buckets#LogBucket.LifecycleState).

website/docs/r/logging_billing_account_exclusion.html.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ The following arguments are supported:
4747
See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced-filters) for information on how to
4848
write a filter.
4949

50+
## Attributes Reference
51+
52+
In addition to the arguments listed above, the following computed attributes are exported:
53+
54+
* `id` - an identifier for the resource with format `billingAccounts/{{billing_account}}/exclusions/{{name}}`
55+
5056
## Import
5157

5258
Billing account logging exclusions can be imported using their URI, e.g.

website/docs/r/logging_billing_account_sink.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ The `bigquery_options` block supports:
7777
In addition to the arguments listed above, the following computed attributes are
7878
exported:
7979

80+
* `id` - an identifier for the resource with format `billingAccounts/{{billing_account_id}}/sinks/{{sink_id}}`
81+
8082
* `writer_identity` - The identity associated with this sink. This identity must be granted write access to the
8183
configured `destination`.
8284

website/docs/r/logging_folder_bucket_config.html.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ The following arguments are supported:
5050
In addition to the arguments listed above, the following computed attributes are
5151
exported:
5252

53+
* `id` - an identifier for the resource with format `folders/{{folder}}/locations/{{location}}/buckets/{{bucket_id}}`
54+
5355
* `name` - The resource name of the bucket. For example: "folders/my-folder-id/locations/my-location/buckets/my-bucket-id"
5456

5557
* `lifecycle_state` - The bucket's lifecycle such as active or deleted. See [LifecycleState](https://cloud.google.com/logging/docs/reference/v2/rest/v2/billingAccounts.buckets#LogBucket.LifecycleState).
@@ -60,4 +62,4 @@ This resource can be imported using the following format:
6062

6163
```
6264
$ terraform import google_logging_folder_bucket_config.default folders/{{folder}}/locations/{{location}}/buckets/{{bucket_id}}
63-
```
65+
```

website/docs/r/logging_folder_exclusion.html.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ The following arguments are supported:
5353
See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced-filters) for information on how to
5454
write a filter.
5555

56+
## Attributes Reference
57+
58+
In addition to the arguments listed above, the following computed attributes are exported:
59+
60+
* `id` - an identifier for the resource with format `folders/{{folder}}/exclusions/{{name}}`
61+
5662
## Import
5763

5864
Folder-level logging exclusions can be imported using their URI, e.g.

website/docs/r/logging_folder_sink.html.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ The `bigquery_options` block supports:
8787
In addition to the arguments listed above, the following computed attributes are
8888
exported:
8989

90+
* `id` - an identifier for the resource with format `folders/{{folder_id}}/sinks/{{name}}`
91+
9092
* `writer_identity` - The identity associated with this sink. This identity must be granted write access to the
9193
configured `destination`.
9294

@@ -95,5 +97,5 @@ exported:
9597
Folder-level logging sinks can be imported using this format:
9698

9799
```
98-
$ terraform import google_logging_folder_sink.my_sink folders/{{folder_id}}/sinks/{{sink_id}}
100+
$ terraform import google_logging_folder_sink.my_sink folders/{{folder_id}}/sinks/{{name}}
99101
```

website/docs/r/logging_organization_bucket_config.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ The following arguments are supported:
4949
In addition to the arguments listed above, the following computed attributes are
5050
exported:
5151

52+
* `id` - an identifier for the resource with format `organizations/{{organization}}/locations/{{location}}/buckets/{{bucket_id}}`
53+
5254
* `name` - The resource name of the bucket. For example: "organizations/my-organization-id/locations/my-location/buckets/my-bucket-id"
5355

5456
* `lifecycle_state` - The bucket's lifecycle such as active or deleted. See [LifecycleState](https://cloud.google.com/logging/docs/reference/v2/rest/v2/billingAccounts.buckets#LogBucket.LifecycleState).

website/docs/r/logging_organization_exclusion.html.markdown

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,16 @@ The following arguments are supported:
4747
See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced-filters) for information on how to
4848
write a filter.
4949

50+
## Attributes Reference
51+
52+
In addition to the arguments listed above, the following computed attributes are exported:
53+
54+
* `id` - an identifier for the resource with format `organizations/{{organization}}/exclusions/{{name}}`
55+
5056
## Import
5157

5258
Organization-level logging exclusions can be imported using their URI, e.g.
5359

5460
```
55-
$ terraform import google_logging_organization_exclusion.my_exclusion organizations/my-organization/exclusions/my-exclusion
61+
$ terraform import google_logging_organization_exclusion.my_exclusion organizations/{{organization}}/exclusions/{{name}}
5662
```

website/docs/r/logging_organization_sink.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ The `bigquery_options` block supports:
7979
In addition to the arguments listed above, the following computed attributes are
8080
exported:
8181

82+
* `id` - an identifier for the resource with format `organizations/{{organization}}/sinks/{{name}}`
83+
8284
* `writer_identity` - The identity associated with this sink. This identity must be granted write access to the
8385
configured `destination`.
8486

0 commit comments

Comments
 (0)