Skip to content

Commit 3e8f551

Browse files
modular-magicianEdward Sun
andauthored
fixed audit_config in iam_policy doc (#3901) (#2423)
Co-authored-by: Edward Sun <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Edward Sun <[email protected]>
1 parent ee89988 commit 3e8f551

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.changelog/3901.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/d/iam_policy.html.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ from another resource is the only way to apply an IAM policy to a resource.
6161

6262
The following arguments are supported:
6363

64+
* `audit_config` (Optional) - A nested configuration block that defines logging additional configuration for your project.
65+
* `service` (Required) Defines a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
66+
* `audit_log_configs` (Required) A nested block that defines the operations you'd like to log.
67+
* `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.
68+
* `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`.
69+
6470
* `binding` (Required) - A nested configuration block (described below)
6571
defining a binding to be included in the policy document. Multiple
6672
`binding` arguments are supported.
@@ -81,12 +87,6 @@ each accept the following arguments:
8187
* **group:{emailid}**: An email address that represents a Google group. For example, [email protected].
8288
* **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
8389

84-
* `audit_config` (Optional) - A nested configuration block that defines logging additional configuration for your project.
85-
* `service` (Required) Defines a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
86-
* `audit_log_configs` (Required) A nested block that defines the operations you'd like to log.
87-
* `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.
88-
* `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`.
89-
9090
* `condition` - (Optional) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding. Structure is documented below.
9191

9292
The `condition` block supports:

0 commit comments

Comments
 (0)