Skip to content

Commit c87b9fe

Browse files
authored
Docs: add information on id and other exposed attributes where appropriate (#3237)
In many resources we didn't have attributes reference section at all, or it didn't have information about `id` attribute. This PR adds relevant information This fixes #3235
1 parent 0fee213 commit c87b9fe

25 files changed

+84
-10
lines changed

docs/data-sources/aws_unity_catalog_policy.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ This data source constructs necessary AWS Unity Catalog policy for you, which is
1212
```hcl
1313
data "databricks_aws_unity_catalog_policy" "this" {
1414
aws_account_id = var.aws_account_id
15-
bucket_name = "databricks-bucket"
16-
role_name = "databricks-role"
17-
kms_name = "databricks-kms"
15+
bucket_name = "databricks-bucket"
16+
role_name = "databricks-role"
17+
kms_name = "databricks-kms"
1818
}
1919
2020
data "aws_iam_policy_document" "passrole_for_uc" {
@@ -50,7 +50,7 @@ data "aws_iam_policy_document" "passrole_for_uc" {
5050
}
5151
5252
resource "aws_iam_policy" "unity_metastore" {
53-
name = "${var.prefix}-unity-catalog-metastore-access-iam-policy"
53+
name = "${var.prefix}-unity-catalog-metastore-access-iam-policy"
5454
policy = data.databricks_aws_unity_catalog_policy.this.json
5555
}
5656

docs/data-sources/volumes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Listing all volumes in a _things_ [databricks_schema](../resources/schema.md) of
1212
```hcl
1313
data "databricks_volumes" "this" {
1414
catalog_name = "sandbox"
15-
schema_name = "things"
15+
schema_name = "things"
1616
}
1717
1818
output "all_volumes" {

docs/guides/unity-catalog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ resource "aws_iam_policy" "external_data_access" {
297297
"${aws_s3_bucket.external.arn}/*"
298298
],
299299
"Effect" : "Allow"
300-
},
300+
},
301301
{
302302
"Action" : [
303303
"sts:AssumeRole"

docs/resources/access_control_rule_set.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,12 @@ Arguments of the `grant_rules` block are:
248248
* `groups/{groupname}` (also exposed as `acl_principal_id` attribute of `databricks_group` resource).
249249
* `servicePrincipals/{applicationId}` (also exposed as `acl_principal_id` attribute of `databricks_service_principal` resource).
250250

251+
## Attribute Reference
252+
253+
In addition to all arguments above, the following attributes are exported:
254+
255+
* `id` - ID of the access control rule set - the same as `name`.
256+
251257
## Related Resources
252258

253259
The following resources are often used in the same context:

docs/resources/artifact_allowlist.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,18 @@ In addition to all arguments above, the following attributes are exported:
4141
* `created_at` - Time at which this artifact allowlist was set.
4242
* `created_by` - Identity that set the artifact allowlist.
4343

44+
## Attribute Reference
45+
46+
In addition to all arguments above, the following attributes are exported:
47+
48+
* `id` - ID of the artifact allow list in form of `metastore_id|artifact_type`.
49+
4450
## Import
4551

4652
This resource can be imported by name:
4753

4854
```bash
49-
terraform import databricks_artifact_allowlist.this <metastore_id>|<artifact_type>
55+
terraform import databricks_artifact_allowlist.this '<metastore_id>|<artifact_type>'
5056
```
5157

5258
## Related Resources

docs/resources/catalog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ The following arguments are required:
4141

4242
In addition to all arguments above, the following attributes are exported:
4343

44-
* `metastore_id` - ID of the parent metastore.
4544
* `id` - ID of this catalog - same as the `name`.
45+
* `metastore_id` - ID of the parent metastore.
4646

4747
## Import
4848

docs/resources/cluster_policy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ The following arguments are supported:
148148

149149
In addition to all arguments above, the following attributes are exported:
150150

151-
* `id` - Canonical unique identifier for the cluster policy. This is equal to policy_id.
151+
* `id` - Canonical unique identifier for the cluster policy. This is equal to `policy_id`.
152152
* `policy_id` - Canonical unique identifier for the cluster policy.
153153

154154
## Import

docs/resources/ip_access_list.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ The following arguments are supported:
4040

4141
In addition to all arguments above, the following attributes are exported:
4242

43+
* `id` - Canonical unique identifier for the IP Access List, same as `list_id`.
4344
* `list_id` - Canonical unique identifier for the IP Access List.
4445

4546
## Import

docs/resources/mlflow_experiment.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ The following arguments are supported:
2525
* `artifact_location` - Path to dbfs:/ or s3:// artifact location of the MLflow experiment.
2626
* `description` - The description of the MLflow experiment.
2727

28+
## Attribute Reference
29+
30+
In addition to all arguments above, the following attributes are exported:
31+
32+
* `id` - ID of the MLflow experiment.
33+
2834
## Access Control
2935

3036
* [databricks_permissions](permissions.md#MLflow-Experiment-usage) can control which groups or individual users can *Read*, *Edit*, or *Manage* individual experiments.

docs/resources/mlflow_model.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ The following arguments are supported:
3434
* `description` - The description of the MLflow model.
3535
* `tags` - Tags for the MLflow model.
3636

37+
## Attribute Reference
38+
39+
In addition to all arguments above, the following attributes are exported:
40+
41+
* `id` - ID of the MLflow model, the same as `name`.
42+
3743
## Import
3844

3945
The model resource can be imported using the name

0 commit comments

Comments
 (0)