|
| 1 | +# Copyright 2024 Google Inc. |
| 2 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | +# you may not use this file except in compliance with the License. |
| 4 | +# You may obtain a copy of the License at |
| 5 | +# |
| 6 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | +# |
| 8 | +# Unless required by applicable law or agreed to in writing, software |
| 9 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | +# See the License for the specific language governing permissions and |
| 12 | +# limitations under the License. |
| 13 | + |
| 14 | +--- |
| 15 | +name: 'PrincipalAccessBoundaryPolicy' |
| 16 | +description: An IAM Principal Access Boundary Policy resource |
| 17 | +references: |
| 18 | + guides: |
| 19 | + 'Create and apply Principal Access Boundaries': 'https://cloud.google.com/iam/docs/principal-access-boundary-policies-create' |
| 20 | + api: 'https://cloud.google.com/iam/docs/reference/rest/v3beta/organizations.locations.principalAccessBoundaryPolicies' |
| 21 | +min_version: 'beta' |
| 22 | +id_format: 'organizations/{{organization}}/locations/{{location}}/principalAccessBoundaryPolicies/{{principal_access_boundary_policy_id}}' |
| 23 | +base_url: 'organizations/{{organization}}/locations/{{location}}/principalAccessBoundaryPolicies' |
| 24 | +self_link: 'organizations/{{organization}}/locations/{{location}}/principalAccessBoundaryPolicies/{{principal_access_boundary_policy_id}}' |
| 25 | +create_url: 'organizations/{{organization}}/locations/{{location}}/principalAccessBoundaryPolicies?principalAccessBoundaryPolicyId={{principal_access_boundary_policy_id}}' |
| 26 | +update_verb: 'PATCH' |
| 27 | +update_mask: true |
| 28 | +import_format: |
| 29 | + - 'organizations/{{organization}}/locations/{{location}}/principalAccessBoundaryPolicies/{{principal_access_boundary_policy_id}}' |
| 30 | +timeouts: |
| 31 | + insert_minutes: 20 |
| 32 | + update_minutes: 20 |
| 33 | + delete_minutes: 20 |
| 34 | +autogen_async: true |
| 35 | +async: |
| 36 | + actions: ['create', 'delete', 'update'] |
| 37 | + type: 'OpAsync' |
| 38 | + operation: |
| 39 | + base_url: '{{op_id}}' |
| 40 | + path: 'name' |
| 41 | + wait_ms: 1000 |
| 42 | + result: |
| 43 | + path: 'response' |
| 44 | + resource_inside_response: true |
| 45 | + error: |
| 46 | + path: 'error' |
| 47 | + message: 'message' |
| 48 | +examples: |
| 49 | + - name: 'iam_principal_access_boundary_policy' |
| 50 | + min_version: 'beta' |
| 51 | + primary_resource_id: 'my-pab-policy' |
| 52 | + test_env_vars: |
| 53 | + org_id: 'ORG_ID' |
| 54 | + vars: |
| 55 | + display_name: 'test pab policy' |
| 56 | + pab_id: 'test-pab-policy' |
| 57 | +parameters: |
| 58 | + - name: 'organization' |
| 59 | + type: String |
| 60 | + description: | |
| 61 | + The parent organization of the principal access boundary policy. |
| 62 | + url_param_only: true |
| 63 | + required: true |
| 64 | + immutable: true |
| 65 | + - name: 'location' |
| 66 | + type: String |
| 67 | + description: | |
| 68 | + The location the principal access boundary policy is in. |
| 69 | + url_param_only: true |
| 70 | + required: true |
| 71 | + immutable: true |
| 72 | + - name: 'principalAccessBoundaryPolicyId' |
| 73 | + type: String |
| 74 | + description: | |
| 75 | + The ID to use to create the principal access boundary policy. |
| 76 | + This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, hyphens, or dots. Pattern, /a-z{2,62}/. |
| 77 | + url_param_only: true |
| 78 | + required: true |
| 79 | + immutable: true |
| 80 | +properties: |
| 81 | + - name: 'name' |
| 82 | + type: String |
| 83 | + description: | |
| 84 | + Identifier. The resource name of the principal access boundary policy. The following format is supported: |
| 85 | + `organizations/{organization_id}/locations/{location}/principalAccessBoundaryPolicies/{policy_id}` |
| 86 | + output: true |
| 87 | + - name: 'uid' |
| 88 | + type: String |
| 89 | + description: | |
| 90 | + Output only. The globally unique ID of the principal access boundary policy. |
| 91 | + output: true |
| 92 | + - name: 'etag' |
| 93 | + type: String |
| 94 | + description: | |
| 95 | + The etag for the principal access boundary. If this is provided on update, it must match the server's etag. |
| 96 | + output: true |
| 97 | + - name: 'displayName' |
| 98 | + type: String |
| 99 | + description: | |
| 100 | + The description of the principal access boundary policy. Must be less than or equal to 63 characters. |
| 101 | + - name: 'annotations' |
| 102 | + type: KeyValueAnnotations |
| 103 | + description: | |
| 104 | + User defined annotations. See https://google.aip.dev/148#annotations |
| 105 | + for more details such as format and size limitations |
| 106 | + - name: 'createTime' |
| 107 | + type: String |
| 108 | + description: | |
| 109 | + Output only. The time when the principal access boundary policy was created. |
| 110 | + output: true |
| 111 | + - name: 'updateTime' |
| 112 | + type: String |
| 113 | + description: | |
| 114 | + Output only. The time when the principal access boundary policy was most recently updated. |
| 115 | + output: true |
| 116 | + - name: 'details' |
| 117 | + type: NestedObject |
| 118 | + description: | |
| 119 | + Principal access boundary policy details |
| 120 | + default_from_api: true |
| 121 | + properties: |
| 122 | + - name: 'rules' |
| 123 | + type: Array |
| 124 | + description: | |
| 125 | + A list of principal access boundary policy rules. The number of rules in a policy is limited to 500. |
| 126 | + required: true |
| 127 | + item_type: |
| 128 | + type: NestedObject |
| 129 | + properties: |
| 130 | + - name: 'description' |
| 131 | + type: String |
| 132 | + description: | |
| 133 | + The description of the principal access boundary policy rule. Must be less than or equal to 256 characters. |
| 134 | + - name: 'resources' |
| 135 | + type: Array |
| 136 | + description: | |
| 137 | + A list of Cloud Resource Manager resources. The resource |
| 138 | + and all the descendants are included. The number of resources in a policy |
| 139 | + is limited to 500 across all rules. |
| 140 | + The following resource types are supported: |
| 141 | + * Organizations, such as `//cloudresourcemanager.googleapis.com/organizations/123`. |
| 142 | + * Folders, such as `//cloudresourcemanager.googleapis.com/folders/123`. |
| 143 | + * Projects, such as `//cloudresourcemanager.googleapis.com/projects/123` |
| 144 | + or `//cloudresourcemanager.googleapis.com/projects/my-project-id`. |
| 145 | + required: true |
| 146 | + item_type: |
| 147 | + type: String |
| 148 | + - name: 'effect' |
| 149 | + type: String |
| 150 | + description: | |
| 151 | + The access relationship of principals to the resources in this rule. |
| 152 | + Possible values: ALLOW |
| 153 | + required: true |
| 154 | + - name: 'enforcementVersion' |
| 155 | + type: String |
| 156 | + description: | |
| 157 | + The version number that indicates which Google Cloud services |
| 158 | + are included in the enforcement (e.g. \"latest\", \"1\", ...). If empty, the |
| 159 | + PAB policy version will be set to the current latest version, and this version |
| 160 | + won't get updated when new versions are released. |
| 161 | + default_from_api: true |
0 commit comments