Skip to content

Commit

Permalink
make iam condition ga (#3729) (#2255)
Browse files Browse the repository at this point in the history
* move iam condition block to ga

* add docs for condition and update docs for ga

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Jul 7, 2020
1 parent 1f5062b commit ba538ae
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .changelog/3729.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
iam: made the `condition` block GA for all IAM resource and datasource types.
```
9 changes: 9 additions & 0 deletions website/docs/d/iam_policy.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ each accept the following arguments:
* `log_type` (Required) Defines the logging level. `DATA_READ`, `DATA_WRITE` and `ADMIN_READ` capture different types of events. See [the audit configuration documentation](https://cloud.google.com/resource-manager/reference/rest/Shared.Types/AuditConfig) for more details.
* `exempted_members` (Optional) Specifies the identities that are exempt from these types of logging operations. Follows the same format of the `members` array for `binding`.

* `condition` - (Optional) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding. Structure is documented below.

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.

## Attributes Reference

Expand Down
8 changes: 4 additions & 4 deletions website/docs/r/google_project_iam.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ data "google_iam_policy" "admin" {
}
```

With IAM Conditions ([beta](https://terraform.io/docs/providers/google/provider_versions.html)):
With IAM Conditions:

```hcl
resource "google_project_iam_policy" "project" {
Expand Down Expand Up @@ -88,7 +88,7 @@ resource "google_project_iam_binding" "project" {
}
```

With IAM Conditions ([beta](https://terraform.io/docs/providers/google/provider_versions.html)):
With IAM Conditions:

```hcl
resource "google_project_iam_binding" "project" {
Expand Down Expand Up @@ -117,7 +117,7 @@ resource "google_project_iam_member" "project" {
}
```

With IAM Conditions ([beta](https://terraform.io/docs/providers/google/provider_versions.html)):
With IAM Conditions:

```hcl
resource "google_project_iam_member" "project" {
Expand Down Expand Up @@ -183,7 +183,7 @@ will not be inferred from the provider.

* `audit_log_config` - (Required only by google\_project\_iam\_audit\_config) The configuration for logging of each type of permission. This can be specified multiple times. Structure is documented below.

* `condition` - (Optional, [Beta](https://terraform.io/docs/providers/google/provider_versions.html)) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
* `condition` - (Optional) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
Structure is documented below.

---
Expand Down
6 changes: 3 additions & 3 deletions website/docs/r/google_service_account_iam.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ resource "google_service_account_iam_binding" "admin-account-iam" {
}
```

With IAM Conditions ([beta](https://terraform.io/docs/providers/google/provider_versions.html)):
With IAM Conditions:

```hcl
resource "google_service_account" "sa" {
Expand Down Expand Up @@ -112,7 +112,7 @@ resource "google_service_account_iam_member" "gce-default-account-iam" {
}
```

With IAM Conditions ([beta](https://terraform.io/docs/providers/google/provider_versions.html)):
With IAM Conditions:

```hcl
resource "google_service_account" "sa" {
Expand Down Expand Up @@ -155,7 +155,7 @@ The following arguments are supported:
* `policy_data` - (Required only by `google_service_account_iam_policy`) The policy data generated by
a `google_iam_policy` data source.

* `condition` - (Optional, [Beta](https://terraform.io/docs/providers/google/provider_versions.html)) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
* `condition` - (Optional) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
Structure is documented below.

The `condition` block supports:
Expand Down

0 comments on commit ba538ae

Please sign in to comment.