Skip to content

Commit

Permalink
Add condition to the BigTable instance IAM documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahFrench committed Oct 2, 2024
1 parent bee75bc commit d9fa425
Showing 1 changed file with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ resource "google_bigtable_instance_iam_member" "editor" {

The following arguments are supported:

* `project` - (Optional) The project in which the instance belongs. If it
is not provided, Terraform will use the provider default.

* `instance` - (Required) The name or relative resource id of the instance to manage IAM policies for.

For `google_bigtable_instance_iam_member` or `google_bigtable_instance_iam_binding`:
Expand All @@ -78,13 +81,19 @@ For `google_bigtable_instance_iam_member` or `google_bigtable_instance_iam_bindi
`google_bigtable_instance_iam_binding` can be used per role. Note that custom roles must be of the format
`[projects|organizations]/{parent-name}/roles/{role-name}`. Read more about roles [here](https://cloud.google.com/bigtable/docs/access-control#roles).

`google_bigtable_instance_iam_policy` only:
* `policy_data` - (Required) The policy data generated by a `google_iam_policy` data source.
* `condition` - (Optional) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding. Structure is [documented below](#nested_condition).

- - -
<a name="nested_condition"></a>The `condition` block supports:

* `expression` - (Required) Textual representation of an expression in Common Expression Language syntax.

* `title` - (Required) A title for the expression, i.e. a short string describing its purpose.

* `description` - (Optional) An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

For `google_bigtable_instance_iam_policy` only:
* `policy_data` - (Required) The policy data generated by a `google_iam_policy` data source.

* `project` - (Optional) The project in which the instance belongs. If it
is not provided, Terraform will use the provider default.

## Attributes Reference

Expand Down

0 comments on commit d9fa425

Please sign in to comment.