You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/identity/policy.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ Provides a policy resource.
6
6
7
7
```
8
8
resource "oci_identity_policy" "p" {
9
+
compartment_id = <Compartment or Tenancy OCID>
9
10
name = "pol"
10
11
description = "desc"
11
12
statements = ["statementX","statementY"]
@@ -16,10 +17,11 @@ Provides a policy resource.
16
17
17
18
The following arguments are supported:
18
19
20
+
*`compartment_id` - (Required) The OCID of the compartment containing the policy (either the tenancy or another compartment).
19
21
*`name` - (Required) The name you assign to the policy during creation. The name must be unique across all policies in the tenancy and cannot be changed.
20
22
*`statements` - (Required) An array of policy statements written in the policy language.
21
23
*`descriptions` - (Required) The description you assign to the policy during creation. Does not have to be unique, and it's changeable.
22
-
*`version_date` - (Optional) The version of the policy. If null or set to an empty string, when a request comes in for authorization, the policy will be evaluated according to the current behavior of the services at that moment. If set to a particular date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date.
0 commit comments