pulumi-gcp 7.36.0a1723631483__py3-none-any.whl → 7.37.0a1723638212__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_gcp/__init__.py +72 -0
- pulumi_gcp/accesscontextmanager/__init__.py +2 -0
- pulumi_gcp/accesscontextmanager/_inputs.py +780 -0
- pulumi_gcp/accesscontextmanager/outputs.py +601 -0
- pulumi_gcp/accesscontextmanager/service_perimeter_dry_run_egress_policy.py +323 -0
- pulumi_gcp/accesscontextmanager/service_perimeter_dry_run_ingress_policy.py +332 -0
- pulumi_gcp/accesscontextmanager/service_perimeter_egress_policy.py +2 -24
- pulumi_gcp/accesscontextmanager/service_perimeter_ingress_policy.py +2 -24
- pulumi_gcp/applicationintegration/client.py +2 -2
- pulumi_gcp/clouddeploy/_inputs.py +21 -1
- pulumi_gcp/clouddeploy/outputs.py +15 -1
- pulumi_gcp/cloudrunv2/_inputs.py +40 -0
- pulumi_gcp/cloudrunv2/outputs.py +46 -0
- pulumi_gcp/compute/region_target_https_proxy.py +28 -0
- pulumi_gcp/container/_inputs.py +26 -0
- pulumi_gcp/container/outputs.py +29 -0
- pulumi_gcp/dataform/repository.py +80 -2
- pulumi_gcp/discoveryengine/data_store.py +93 -2
- pulumi_gcp/gkehub/_inputs.py +63 -0
- pulumi_gcp/gkehub/outputs.py +38 -0
- pulumi_gcp/logging/get_log_view_iam_policy.py +28 -2
- pulumi_gcp/logging/log_view_iam_binding.py +512 -0
- pulumi_gcp/logging/log_view_iam_member.py +512 -0
- pulumi_gcp/logging/log_view_iam_policy.py +512 -0
- pulumi_gcp/netapp/_inputs.py +6 -6
- pulumi_gcp/netapp/outputs.py +4 -4
- pulumi_gcp/networkconnectivity/regional_endpoint.py +6 -6
- pulumi_gcp/organizations/get_project.py +11 -1
- pulumi_gcp/organizations/project.py +76 -21
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/securitycenter/__init__.py +8 -0
- pulumi_gcp/securitycenter/_inputs.py +191 -0
- pulumi_gcp/securitycenter/get_v2_organization_source_iam_policy.py +146 -0
- pulumi_gcp/securitycenter/outputs.py +115 -0
- pulumi_gcp/securitycenter/v2_folder_mute_config.py +679 -0
- pulumi_gcp/securitycenter/v2_organization_source.py +416 -0
- pulumi_gcp/securitycenter/v2_organization_source_iam_binding.py +722 -0
- pulumi_gcp/securitycenter/v2_organization_source_iam_member.py +722 -0
- pulumi_gcp/securitycenter/v2_organization_source_iam_policy.py +561 -0
- pulumi_gcp/securitycenter/v2_project_mute_config.py +684 -0
- pulumi_gcp/securitycenter/v2_project_notification_config.py +559 -0
- pulumi_gcp/spanner/instance.py +0 -7
- pulumi_gcp/sql/_inputs.py +3 -3
- pulumi_gcp/sql/outputs.py +6 -6
- pulumi_gcp/storage/bucket_object.py +28 -0
- pulumi_gcp/storage/get_bucket_object.py +14 -1
- pulumi_gcp/storage/get_bucket_object_content.py +11 -1
- pulumi_gcp/storage/managed_folder.py +72 -2
- pulumi_gcp/vmwareengine/network_policy.py +6 -6
- {pulumi_gcp-7.36.0a1723631483.dist-info → pulumi_gcp-7.37.0a1723638212.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.36.0a1723631483.dist-info → pulumi_gcp-7.37.0a1723638212.dist-info}/RECORD +53 -43
- {pulumi_gcp-7.36.0a1723631483.dist-info → pulumi_gcp-7.37.0a1723638212.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.36.0a1723631483.dist-info → pulumi_gcp-7.37.0a1723638212.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,722 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
from . import outputs
|
17
|
+
from ._inputs import *
|
18
|
+
|
19
|
+
__all__ = ['V2OrganizationSourceIamMemberArgs', 'V2OrganizationSourceIamMember']
|
20
|
+
|
21
|
+
@pulumi.input_type
|
22
|
+
class V2OrganizationSourceIamMemberArgs:
|
23
|
+
def __init__(__self__, *,
|
24
|
+
member: pulumi.Input[str],
|
25
|
+
organization: pulumi.Input[str],
|
26
|
+
role: pulumi.Input[str],
|
27
|
+
source: pulumi.Input[str],
|
28
|
+
condition: Optional[pulumi.Input['V2OrganizationSourceIamMemberConditionArgs']] = None):
|
29
|
+
"""
|
30
|
+
The set of arguments for constructing a V2OrganizationSourceIamMember resource.
|
31
|
+
:param pulumi.Input[str] member: Identities that will be granted the privilege in `role`.
|
32
|
+
Each entry can have one of the following values:
|
33
|
+
* **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
|
34
|
+
* **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
|
35
|
+
* **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
|
36
|
+
* **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
|
37
|
+
* **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
|
38
|
+
* **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.
|
39
|
+
* **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
|
40
|
+
* **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
|
41
|
+
* **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
|
42
|
+
:param pulumi.Input[str] role: The role that should be applied. Only one
|
43
|
+
`securitycenter.V2OrganizationSourceIamBinding` can be used per role. Note that custom roles must be of the format
|
44
|
+
`[projects|organizations]/{parent-name}/roles/{role-name}`.
|
45
|
+
:param pulumi.Input[str] source: Used to find the parent resource to bind the IAM policy to
|
46
|
+
"""
|
47
|
+
pulumi.set(__self__, "member", member)
|
48
|
+
pulumi.set(__self__, "organization", organization)
|
49
|
+
pulumi.set(__self__, "role", role)
|
50
|
+
pulumi.set(__self__, "source", source)
|
51
|
+
if condition is not None:
|
52
|
+
pulumi.set(__self__, "condition", condition)
|
53
|
+
|
54
|
+
@property
|
55
|
+
@pulumi.getter
|
56
|
+
def member(self) -> pulumi.Input[str]:
|
57
|
+
"""
|
58
|
+
Identities that will be granted the privilege in `role`.
|
59
|
+
Each entry can have one of the following values:
|
60
|
+
* **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
|
61
|
+
* **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
|
62
|
+
* **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
|
63
|
+
* **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
|
64
|
+
* **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
|
65
|
+
* **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.
|
66
|
+
* **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
|
67
|
+
* **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
|
68
|
+
* **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
|
69
|
+
"""
|
70
|
+
return pulumi.get(self, "member")
|
71
|
+
|
72
|
+
@member.setter
|
73
|
+
def member(self, value: pulumi.Input[str]):
|
74
|
+
pulumi.set(self, "member", value)
|
75
|
+
|
76
|
+
@property
|
77
|
+
@pulumi.getter
|
78
|
+
def organization(self) -> pulumi.Input[str]:
|
79
|
+
return pulumi.get(self, "organization")
|
80
|
+
|
81
|
+
@organization.setter
|
82
|
+
def organization(self, value: pulumi.Input[str]):
|
83
|
+
pulumi.set(self, "organization", value)
|
84
|
+
|
85
|
+
@property
|
86
|
+
@pulumi.getter
|
87
|
+
def role(self) -> pulumi.Input[str]:
|
88
|
+
"""
|
89
|
+
The role that should be applied. Only one
|
90
|
+
`securitycenter.V2OrganizationSourceIamBinding` can be used per role. Note that custom roles must be of the format
|
91
|
+
`[projects|organizations]/{parent-name}/roles/{role-name}`.
|
92
|
+
"""
|
93
|
+
return pulumi.get(self, "role")
|
94
|
+
|
95
|
+
@role.setter
|
96
|
+
def role(self, value: pulumi.Input[str]):
|
97
|
+
pulumi.set(self, "role", value)
|
98
|
+
|
99
|
+
@property
|
100
|
+
@pulumi.getter
|
101
|
+
def source(self) -> pulumi.Input[str]:
|
102
|
+
"""
|
103
|
+
Used to find the parent resource to bind the IAM policy to
|
104
|
+
"""
|
105
|
+
return pulumi.get(self, "source")
|
106
|
+
|
107
|
+
@source.setter
|
108
|
+
def source(self, value: pulumi.Input[str]):
|
109
|
+
pulumi.set(self, "source", value)
|
110
|
+
|
111
|
+
@property
|
112
|
+
@pulumi.getter
|
113
|
+
def condition(self) -> Optional[pulumi.Input['V2OrganizationSourceIamMemberConditionArgs']]:
|
114
|
+
return pulumi.get(self, "condition")
|
115
|
+
|
116
|
+
@condition.setter
|
117
|
+
def condition(self, value: Optional[pulumi.Input['V2OrganizationSourceIamMemberConditionArgs']]):
|
118
|
+
pulumi.set(self, "condition", value)
|
119
|
+
|
120
|
+
|
121
|
+
@pulumi.input_type
|
122
|
+
class _V2OrganizationSourceIamMemberState:
|
123
|
+
def __init__(__self__, *,
|
124
|
+
condition: Optional[pulumi.Input['V2OrganizationSourceIamMemberConditionArgs']] = None,
|
125
|
+
etag: Optional[pulumi.Input[str]] = None,
|
126
|
+
member: Optional[pulumi.Input[str]] = None,
|
127
|
+
organization: Optional[pulumi.Input[str]] = None,
|
128
|
+
role: Optional[pulumi.Input[str]] = None,
|
129
|
+
source: Optional[pulumi.Input[str]] = None):
|
130
|
+
"""
|
131
|
+
Input properties used for looking up and filtering V2OrganizationSourceIamMember resources.
|
132
|
+
:param pulumi.Input[str] etag: (Computed) The etag of the IAM policy.
|
133
|
+
:param pulumi.Input[str] member: Identities that will be granted the privilege in `role`.
|
134
|
+
Each entry can have one of the following values:
|
135
|
+
* **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
|
136
|
+
* **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
|
137
|
+
* **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
|
138
|
+
* **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
|
139
|
+
* **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
|
140
|
+
* **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.
|
141
|
+
* **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
|
142
|
+
* **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
|
143
|
+
* **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
|
144
|
+
:param pulumi.Input[str] role: The role that should be applied. Only one
|
145
|
+
`securitycenter.V2OrganizationSourceIamBinding` can be used per role. Note that custom roles must be of the format
|
146
|
+
`[projects|organizations]/{parent-name}/roles/{role-name}`.
|
147
|
+
:param pulumi.Input[str] source: Used to find the parent resource to bind the IAM policy to
|
148
|
+
"""
|
149
|
+
if condition is not None:
|
150
|
+
pulumi.set(__self__, "condition", condition)
|
151
|
+
if etag is not None:
|
152
|
+
pulumi.set(__self__, "etag", etag)
|
153
|
+
if member is not None:
|
154
|
+
pulumi.set(__self__, "member", member)
|
155
|
+
if organization is not None:
|
156
|
+
pulumi.set(__self__, "organization", organization)
|
157
|
+
if role is not None:
|
158
|
+
pulumi.set(__self__, "role", role)
|
159
|
+
if source is not None:
|
160
|
+
pulumi.set(__self__, "source", source)
|
161
|
+
|
162
|
+
@property
|
163
|
+
@pulumi.getter
|
164
|
+
def condition(self) -> Optional[pulumi.Input['V2OrganizationSourceIamMemberConditionArgs']]:
|
165
|
+
return pulumi.get(self, "condition")
|
166
|
+
|
167
|
+
@condition.setter
|
168
|
+
def condition(self, value: Optional[pulumi.Input['V2OrganizationSourceIamMemberConditionArgs']]):
|
169
|
+
pulumi.set(self, "condition", value)
|
170
|
+
|
171
|
+
@property
|
172
|
+
@pulumi.getter
|
173
|
+
def etag(self) -> Optional[pulumi.Input[str]]:
|
174
|
+
"""
|
175
|
+
(Computed) The etag of the IAM policy.
|
176
|
+
"""
|
177
|
+
return pulumi.get(self, "etag")
|
178
|
+
|
179
|
+
@etag.setter
|
180
|
+
def etag(self, value: Optional[pulumi.Input[str]]):
|
181
|
+
pulumi.set(self, "etag", value)
|
182
|
+
|
183
|
+
@property
|
184
|
+
@pulumi.getter
|
185
|
+
def member(self) -> Optional[pulumi.Input[str]]:
|
186
|
+
"""
|
187
|
+
Identities that will be granted the privilege in `role`.
|
188
|
+
Each entry can have one of the following values:
|
189
|
+
* **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
|
190
|
+
* **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
|
191
|
+
* **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
|
192
|
+
* **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
|
193
|
+
* **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
|
194
|
+
* **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.
|
195
|
+
* **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
|
196
|
+
* **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
|
197
|
+
* **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
|
198
|
+
"""
|
199
|
+
return pulumi.get(self, "member")
|
200
|
+
|
201
|
+
@member.setter
|
202
|
+
def member(self, value: Optional[pulumi.Input[str]]):
|
203
|
+
pulumi.set(self, "member", value)
|
204
|
+
|
205
|
+
@property
|
206
|
+
@pulumi.getter
|
207
|
+
def organization(self) -> Optional[pulumi.Input[str]]:
|
208
|
+
return pulumi.get(self, "organization")
|
209
|
+
|
210
|
+
@organization.setter
|
211
|
+
def organization(self, value: Optional[pulumi.Input[str]]):
|
212
|
+
pulumi.set(self, "organization", value)
|
213
|
+
|
214
|
+
@property
|
215
|
+
@pulumi.getter
|
216
|
+
def role(self) -> Optional[pulumi.Input[str]]:
|
217
|
+
"""
|
218
|
+
The role that should be applied. Only one
|
219
|
+
`securitycenter.V2OrganizationSourceIamBinding` can be used per role. Note that custom roles must be of the format
|
220
|
+
`[projects|organizations]/{parent-name}/roles/{role-name}`.
|
221
|
+
"""
|
222
|
+
return pulumi.get(self, "role")
|
223
|
+
|
224
|
+
@role.setter
|
225
|
+
def role(self, value: Optional[pulumi.Input[str]]):
|
226
|
+
pulumi.set(self, "role", value)
|
227
|
+
|
228
|
+
@property
|
229
|
+
@pulumi.getter
|
230
|
+
def source(self) -> Optional[pulumi.Input[str]]:
|
231
|
+
"""
|
232
|
+
Used to find the parent resource to bind the IAM policy to
|
233
|
+
"""
|
234
|
+
return pulumi.get(self, "source")
|
235
|
+
|
236
|
+
@source.setter
|
237
|
+
def source(self, value: Optional[pulumi.Input[str]]):
|
238
|
+
pulumi.set(self, "source", value)
|
239
|
+
|
240
|
+
|
241
|
+
class V2OrganizationSourceIamMember(pulumi.CustomResource):
|
242
|
+
@overload
|
243
|
+
def __init__(__self__,
|
244
|
+
resource_name: str,
|
245
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
246
|
+
condition: Optional[pulumi.Input[Union['V2OrganizationSourceIamMemberConditionArgs', 'V2OrganizationSourceIamMemberConditionArgsDict']]] = None,
|
247
|
+
member: Optional[pulumi.Input[str]] = None,
|
248
|
+
organization: Optional[pulumi.Input[str]] = None,
|
249
|
+
role: Optional[pulumi.Input[str]] = None,
|
250
|
+
source: Optional[pulumi.Input[str]] = None,
|
251
|
+
__props__=None):
|
252
|
+
"""
|
253
|
+
Three different resources help you manage your IAM policy for Security Command Center (SCC)v2 API OrganizationSource. Each of these resources serves a different use case:
|
254
|
+
|
255
|
+
* `securitycenter.V2OrganizationSourceIamPolicy`: Authoritative. Sets the IAM policy for the organizationsource and replaces any existing policy already attached.
|
256
|
+
* `securitycenter.V2OrganizationSourceIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the organizationsource are preserved.
|
257
|
+
* `securitycenter.V2OrganizationSourceIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the organizationsource are preserved.
|
258
|
+
|
259
|
+
A data source can be used to retrieve policy data in advent you do not need creation
|
260
|
+
|
261
|
+
* `securitycenter.V2OrganizationSourceIamPolicy`: Retrieves the IAM policy for the organizationsource
|
262
|
+
|
263
|
+
> **Note:** `securitycenter.V2OrganizationSourceIamPolicy` **cannot** be used in conjunction with `securitycenter.V2OrganizationSourceIamBinding` and `securitycenter.V2OrganizationSourceIamMember` or they will fight over what your policy should be.
|
264
|
+
|
265
|
+
> **Note:** `securitycenter.V2OrganizationSourceIamBinding` resources **can be** used in conjunction with `securitycenter.V2OrganizationSourceIamMember` resources **only if** they do not grant privilege to the same role.
|
266
|
+
|
267
|
+
## securitycenter.V2OrganizationSourceIamPolicy
|
268
|
+
|
269
|
+
```python
|
270
|
+
import pulumi
|
271
|
+
import pulumi_gcp as gcp
|
272
|
+
|
273
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
274
|
+
"role": "roles/viewer",
|
275
|
+
"members": ["user:jane@example.com"],
|
276
|
+
}])
|
277
|
+
policy = gcp.securitycenter.V2OrganizationSourceIamPolicy("policy",
|
278
|
+
source=custom_source["name"],
|
279
|
+
policy_data=admin.policy_data)
|
280
|
+
```
|
281
|
+
|
282
|
+
## securitycenter.V2OrganizationSourceIamBinding
|
283
|
+
|
284
|
+
```python
|
285
|
+
import pulumi
|
286
|
+
import pulumi_gcp as gcp
|
287
|
+
|
288
|
+
binding = gcp.securitycenter.V2OrganizationSourceIamBinding("binding",
|
289
|
+
source=custom_source["name"],
|
290
|
+
role="roles/viewer",
|
291
|
+
members=["user:jane@example.com"])
|
292
|
+
```
|
293
|
+
|
294
|
+
## securitycenter.V2OrganizationSourceIamMember
|
295
|
+
|
296
|
+
```python
|
297
|
+
import pulumi
|
298
|
+
import pulumi_gcp as gcp
|
299
|
+
|
300
|
+
member = gcp.securitycenter.V2OrganizationSourceIamMember("member",
|
301
|
+
source=custom_source["name"],
|
302
|
+
role="roles/viewer",
|
303
|
+
member="user:jane@example.com")
|
304
|
+
```
|
305
|
+
|
306
|
+
## > **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
|
307
|
+
|
308
|
+
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
309
|
+
---
|
310
|
+
|
311
|
+
# IAM policy for Security Command Center (SCC)v2 API OrganizationSource
|
312
|
+
Three different resources help you manage your IAM policy for Security Command Center (SCC)v2 API OrganizationSource. Each of these resources serves a different use case:
|
313
|
+
|
314
|
+
* `securitycenter.V2OrganizationSourceIamPolicy`: Authoritative. Sets the IAM policy for the organizationsource and replaces any existing policy already attached.
|
315
|
+
* `securitycenter.V2OrganizationSourceIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the organizationsource are preserved.
|
316
|
+
* `securitycenter.V2OrganizationSourceIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the organizationsource are preserved.
|
317
|
+
|
318
|
+
A data source can be used to retrieve policy data in advent you do not need creation
|
319
|
+
|
320
|
+
* `securitycenter.V2OrganizationSourceIamPolicy`: Retrieves the IAM policy for the organizationsource
|
321
|
+
|
322
|
+
> **Note:** `securitycenter.V2OrganizationSourceIamPolicy` **cannot** be used in conjunction with `securitycenter.V2OrganizationSourceIamBinding` and `securitycenter.V2OrganizationSourceIamMember` or they will fight over what your policy should be.
|
323
|
+
|
324
|
+
> **Note:** `securitycenter.V2OrganizationSourceIamBinding` resources **can be** used in conjunction with `securitycenter.V2OrganizationSourceIamMember` resources **only if** they do not grant privilege to the same role.
|
325
|
+
|
326
|
+
## securitycenter.V2OrganizationSourceIamPolicy
|
327
|
+
|
328
|
+
```python
|
329
|
+
import pulumi
|
330
|
+
import pulumi_gcp as gcp
|
331
|
+
|
332
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
333
|
+
"role": "roles/viewer",
|
334
|
+
"members": ["user:jane@example.com"],
|
335
|
+
}])
|
336
|
+
policy = gcp.securitycenter.V2OrganizationSourceIamPolicy("policy",
|
337
|
+
source=custom_source["name"],
|
338
|
+
policy_data=admin.policy_data)
|
339
|
+
```
|
340
|
+
|
341
|
+
## securitycenter.V2OrganizationSourceIamBinding
|
342
|
+
|
343
|
+
```python
|
344
|
+
import pulumi
|
345
|
+
import pulumi_gcp as gcp
|
346
|
+
|
347
|
+
binding = gcp.securitycenter.V2OrganizationSourceIamBinding("binding",
|
348
|
+
source=custom_source["name"],
|
349
|
+
role="roles/viewer",
|
350
|
+
members=["user:jane@example.com"])
|
351
|
+
```
|
352
|
+
|
353
|
+
## securitycenter.V2OrganizationSourceIamMember
|
354
|
+
|
355
|
+
```python
|
356
|
+
import pulumi
|
357
|
+
import pulumi_gcp as gcp
|
358
|
+
|
359
|
+
member = gcp.securitycenter.V2OrganizationSourceIamMember("member",
|
360
|
+
source=custom_source["name"],
|
361
|
+
role="roles/viewer",
|
362
|
+
member="user:jane@example.com")
|
363
|
+
```
|
364
|
+
|
365
|
+
## Import
|
366
|
+
|
367
|
+
For all import syntaxes, the "resource in question" can take any of the following forms:
|
368
|
+
|
369
|
+
* organizations/{{organization}}/sources/{{source}}
|
370
|
+
|
371
|
+
* {{organization}}/{{source}}
|
372
|
+
|
373
|
+
* {{source}}
|
374
|
+
|
375
|
+
Any variables not passed in the import command will be taken from the provider configuration.
|
376
|
+
|
377
|
+
Security Command Center (SCC)v2 API organizationsource IAM resources can be imported using the resource identifiers, role, and member.
|
378
|
+
|
379
|
+
IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
|
380
|
+
|
381
|
+
```sh
|
382
|
+
$ pulumi import gcp:securitycenter/v2OrganizationSourceIamMember:V2OrganizationSourceIamMember editor "organizations/{{organization}}/sources/{{source}} roles/viewer user:jane@example.com"
|
383
|
+
```
|
384
|
+
|
385
|
+
IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
|
386
|
+
|
387
|
+
```sh
|
388
|
+
$ pulumi import gcp:securitycenter/v2OrganizationSourceIamMember:V2OrganizationSourceIamMember editor "organizations/{{organization}}/sources/{{source}} roles/viewer"
|
389
|
+
```
|
390
|
+
|
391
|
+
IAM policy imports use the identifier of the resource in question, e.g.
|
392
|
+
|
393
|
+
```sh
|
394
|
+
$ pulumi import gcp:securitycenter/v2OrganizationSourceIamMember:V2OrganizationSourceIamMember editor organizations/{{organization}}/sources/{{source}}
|
395
|
+
```
|
396
|
+
|
397
|
+
-> **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
|
398
|
+
|
399
|
+
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
400
|
+
|
401
|
+
:param str resource_name: The name of the resource.
|
402
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
403
|
+
:param pulumi.Input[str] member: Identities that will be granted the privilege in `role`.
|
404
|
+
Each entry can have one of the following values:
|
405
|
+
* **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
|
406
|
+
* **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
|
407
|
+
* **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
|
408
|
+
* **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
|
409
|
+
* **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
|
410
|
+
* **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.
|
411
|
+
* **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
|
412
|
+
* **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
|
413
|
+
* **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
|
414
|
+
:param pulumi.Input[str] role: The role that should be applied. Only one
|
415
|
+
`securitycenter.V2OrganizationSourceIamBinding` can be used per role. Note that custom roles must be of the format
|
416
|
+
`[projects|organizations]/{parent-name}/roles/{role-name}`.
|
417
|
+
:param pulumi.Input[str] source: Used to find the parent resource to bind the IAM policy to
|
418
|
+
"""
|
419
|
+
...
|
420
|
+
@overload
|
421
|
+
def __init__(__self__,
|
422
|
+
resource_name: str,
|
423
|
+
args: V2OrganizationSourceIamMemberArgs,
|
424
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
425
|
+
"""
|
426
|
+
Three different resources help you manage your IAM policy for Security Command Center (SCC)v2 API OrganizationSource. Each of these resources serves a different use case:
|
427
|
+
|
428
|
+
* `securitycenter.V2OrganizationSourceIamPolicy`: Authoritative. Sets the IAM policy for the organizationsource and replaces any existing policy already attached.
|
429
|
+
* `securitycenter.V2OrganizationSourceIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the organizationsource are preserved.
|
430
|
+
* `securitycenter.V2OrganizationSourceIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the organizationsource are preserved.
|
431
|
+
|
432
|
+
A data source can be used to retrieve policy data in advent you do not need creation
|
433
|
+
|
434
|
+
* `securitycenter.V2OrganizationSourceIamPolicy`: Retrieves the IAM policy for the organizationsource
|
435
|
+
|
436
|
+
> **Note:** `securitycenter.V2OrganizationSourceIamPolicy` **cannot** be used in conjunction with `securitycenter.V2OrganizationSourceIamBinding` and `securitycenter.V2OrganizationSourceIamMember` or they will fight over what your policy should be.
|
437
|
+
|
438
|
+
> **Note:** `securitycenter.V2OrganizationSourceIamBinding` resources **can be** used in conjunction with `securitycenter.V2OrganizationSourceIamMember` resources **only if** they do not grant privilege to the same role.
|
439
|
+
|
440
|
+
## securitycenter.V2OrganizationSourceIamPolicy
|
441
|
+
|
442
|
+
```python
|
443
|
+
import pulumi
|
444
|
+
import pulumi_gcp as gcp
|
445
|
+
|
446
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
447
|
+
"role": "roles/viewer",
|
448
|
+
"members": ["user:jane@example.com"],
|
449
|
+
}])
|
450
|
+
policy = gcp.securitycenter.V2OrganizationSourceIamPolicy("policy",
|
451
|
+
source=custom_source["name"],
|
452
|
+
policy_data=admin.policy_data)
|
453
|
+
```
|
454
|
+
|
455
|
+
## securitycenter.V2OrganizationSourceIamBinding
|
456
|
+
|
457
|
+
```python
|
458
|
+
import pulumi
|
459
|
+
import pulumi_gcp as gcp
|
460
|
+
|
461
|
+
binding = gcp.securitycenter.V2OrganizationSourceIamBinding("binding",
|
462
|
+
source=custom_source["name"],
|
463
|
+
role="roles/viewer",
|
464
|
+
members=["user:jane@example.com"])
|
465
|
+
```
|
466
|
+
|
467
|
+
## securitycenter.V2OrganizationSourceIamMember
|
468
|
+
|
469
|
+
```python
|
470
|
+
import pulumi
|
471
|
+
import pulumi_gcp as gcp
|
472
|
+
|
473
|
+
member = gcp.securitycenter.V2OrganizationSourceIamMember("member",
|
474
|
+
source=custom_source["name"],
|
475
|
+
role="roles/viewer",
|
476
|
+
member="user:jane@example.com")
|
477
|
+
```
|
478
|
+
|
479
|
+
## > **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
|
480
|
+
|
481
|
+
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
482
|
+
---
|
483
|
+
|
484
|
+
# IAM policy for Security Command Center (SCC)v2 API OrganizationSource
|
485
|
+
Three different resources help you manage your IAM policy for Security Command Center (SCC)v2 API OrganizationSource. Each of these resources serves a different use case:
|
486
|
+
|
487
|
+
* `securitycenter.V2OrganizationSourceIamPolicy`: Authoritative. Sets the IAM policy for the organizationsource and replaces any existing policy already attached.
|
488
|
+
* `securitycenter.V2OrganizationSourceIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the organizationsource are preserved.
|
489
|
+
* `securitycenter.V2OrganizationSourceIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the organizationsource are preserved.
|
490
|
+
|
491
|
+
A data source can be used to retrieve policy data in advent you do not need creation
|
492
|
+
|
493
|
+
* `securitycenter.V2OrganizationSourceIamPolicy`: Retrieves the IAM policy for the organizationsource
|
494
|
+
|
495
|
+
> **Note:** `securitycenter.V2OrganizationSourceIamPolicy` **cannot** be used in conjunction with `securitycenter.V2OrganizationSourceIamBinding` and `securitycenter.V2OrganizationSourceIamMember` or they will fight over what your policy should be.
|
496
|
+
|
497
|
+
> **Note:** `securitycenter.V2OrganizationSourceIamBinding` resources **can be** used in conjunction with `securitycenter.V2OrganizationSourceIamMember` resources **only if** they do not grant privilege to the same role.
|
498
|
+
|
499
|
+
## securitycenter.V2OrganizationSourceIamPolicy
|
500
|
+
|
501
|
+
```python
|
502
|
+
import pulumi
|
503
|
+
import pulumi_gcp as gcp
|
504
|
+
|
505
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
506
|
+
"role": "roles/viewer",
|
507
|
+
"members": ["user:jane@example.com"],
|
508
|
+
}])
|
509
|
+
policy = gcp.securitycenter.V2OrganizationSourceIamPolicy("policy",
|
510
|
+
source=custom_source["name"],
|
511
|
+
policy_data=admin.policy_data)
|
512
|
+
```
|
513
|
+
|
514
|
+
## securitycenter.V2OrganizationSourceIamBinding
|
515
|
+
|
516
|
+
```python
|
517
|
+
import pulumi
|
518
|
+
import pulumi_gcp as gcp
|
519
|
+
|
520
|
+
binding = gcp.securitycenter.V2OrganizationSourceIamBinding("binding",
|
521
|
+
source=custom_source["name"],
|
522
|
+
role="roles/viewer",
|
523
|
+
members=["user:jane@example.com"])
|
524
|
+
```
|
525
|
+
|
526
|
+
## securitycenter.V2OrganizationSourceIamMember
|
527
|
+
|
528
|
+
```python
|
529
|
+
import pulumi
|
530
|
+
import pulumi_gcp as gcp
|
531
|
+
|
532
|
+
member = gcp.securitycenter.V2OrganizationSourceIamMember("member",
|
533
|
+
source=custom_source["name"],
|
534
|
+
role="roles/viewer",
|
535
|
+
member="user:jane@example.com")
|
536
|
+
```
|
537
|
+
|
538
|
+
## Import
|
539
|
+
|
540
|
+
For all import syntaxes, the "resource in question" can take any of the following forms:
|
541
|
+
|
542
|
+
* organizations/{{organization}}/sources/{{source}}
|
543
|
+
|
544
|
+
* {{organization}}/{{source}}
|
545
|
+
|
546
|
+
* {{source}}
|
547
|
+
|
548
|
+
Any variables not passed in the import command will be taken from the provider configuration.
|
549
|
+
|
550
|
+
Security Command Center (SCC)v2 API organizationsource IAM resources can be imported using the resource identifiers, role, and member.
|
551
|
+
|
552
|
+
IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
|
553
|
+
|
554
|
+
```sh
|
555
|
+
$ pulumi import gcp:securitycenter/v2OrganizationSourceIamMember:V2OrganizationSourceIamMember editor "organizations/{{organization}}/sources/{{source}} roles/viewer user:jane@example.com"
|
556
|
+
```
|
557
|
+
|
558
|
+
IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
|
559
|
+
|
560
|
+
```sh
|
561
|
+
$ pulumi import gcp:securitycenter/v2OrganizationSourceIamMember:V2OrganizationSourceIamMember editor "organizations/{{organization}}/sources/{{source}} roles/viewer"
|
562
|
+
```
|
563
|
+
|
564
|
+
IAM policy imports use the identifier of the resource in question, e.g.
|
565
|
+
|
566
|
+
```sh
|
567
|
+
$ pulumi import gcp:securitycenter/v2OrganizationSourceIamMember:V2OrganizationSourceIamMember editor organizations/{{organization}}/sources/{{source}}
|
568
|
+
```
|
569
|
+
|
570
|
+
-> **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
|
571
|
+
|
572
|
+
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
573
|
+
|
574
|
+
:param str resource_name: The name of the resource.
|
575
|
+
:param V2OrganizationSourceIamMemberArgs args: The arguments to use to populate this resource's properties.
|
576
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
577
|
+
"""
|
578
|
+
...
|
579
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
580
|
+
resource_args, opts = _utilities.get_resource_args_opts(V2OrganizationSourceIamMemberArgs, pulumi.ResourceOptions, *args, **kwargs)
|
581
|
+
if resource_args is not None:
|
582
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
583
|
+
else:
|
584
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
585
|
+
|
586
|
+
def _internal_init(__self__,
|
587
|
+
resource_name: str,
|
588
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
589
|
+
condition: Optional[pulumi.Input[Union['V2OrganizationSourceIamMemberConditionArgs', 'V2OrganizationSourceIamMemberConditionArgsDict']]] = None,
|
590
|
+
member: Optional[pulumi.Input[str]] = None,
|
591
|
+
organization: Optional[pulumi.Input[str]] = None,
|
592
|
+
role: Optional[pulumi.Input[str]] = None,
|
593
|
+
source: Optional[pulumi.Input[str]] = None,
|
594
|
+
__props__=None):
|
595
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
596
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
597
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
598
|
+
if opts.id is None:
|
599
|
+
if __props__ is not None:
|
600
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
601
|
+
__props__ = V2OrganizationSourceIamMemberArgs.__new__(V2OrganizationSourceIamMemberArgs)
|
602
|
+
|
603
|
+
__props__.__dict__["condition"] = condition
|
604
|
+
if member is None and not opts.urn:
|
605
|
+
raise TypeError("Missing required property 'member'")
|
606
|
+
__props__.__dict__["member"] = member
|
607
|
+
if organization is None and not opts.urn:
|
608
|
+
raise TypeError("Missing required property 'organization'")
|
609
|
+
__props__.__dict__["organization"] = organization
|
610
|
+
if role is None and not opts.urn:
|
611
|
+
raise TypeError("Missing required property 'role'")
|
612
|
+
__props__.__dict__["role"] = role
|
613
|
+
if source is None and not opts.urn:
|
614
|
+
raise TypeError("Missing required property 'source'")
|
615
|
+
__props__.__dict__["source"] = source
|
616
|
+
__props__.__dict__["etag"] = None
|
617
|
+
super(V2OrganizationSourceIamMember, __self__).__init__(
|
618
|
+
'gcp:securitycenter/v2OrganizationSourceIamMember:V2OrganizationSourceIamMember',
|
619
|
+
resource_name,
|
620
|
+
__props__,
|
621
|
+
opts)
|
622
|
+
|
623
|
+
@staticmethod
|
624
|
+
def get(resource_name: str,
|
625
|
+
id: pulumi.Input[str],
|
626
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
627
|
+
condition: Optional[pulumi.Input[Union['V2OrganizationSourceIamMemberConditionArgs', 'V2OrganizationSourceIamMemberConditionArgsDict']]] = None,
|
628
|
+
etag: Optional[pulumi.Input[str]] = None,
|
629
|
+
member: Optional[pulumi.Input[str]] = None,
|
630
|
+
organization: Optional[pulumi.Input[str]] = None,
|
631
|
+
role: Optional[pulumi.Input[str]] = None,
|
632
|
+
source: Optional[pulumi.Input[str]] = None) -> 'V2OrganizationSourceIamMember':
|
633
|
+
"""
|
634
|
+
Get an existing V2OrganizationSourceIamMember resource's state with the given name, id, and optional extra
|
635
|
+
properties used to qualify the lookup.
|
636
|
+
|
637
|
+
:param str resource_name: The unique name of the resulting resource.
|
638
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
639
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
640
|
+
:param pulumi.Input[str] etag: (Computed) The etag of the IAM policy.
|
641
|
+
:param pulumi.Input[str] member: Identities that will be granted the privilege in `role`.
|
642
|
+
Each entry can have one of the following values:
|
643
|
+
* **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
|
644
|
+
* **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
|
645
|
+
* **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
|
646
|
+
* **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
|
647
|
+
* **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
|
648
|
+
* **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.
|
649
|
+
* **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
|
650
|
+
* **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
|
651
|
+
* **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
|
652
|
+
:param pulumi.Input[str] role: The role that should be applied. Only one
|
653
|
+
`securitycenter.V2OrganizationSourceIamBinding` can be used per role. Note that custom roles must be of the format
|
654
|
+
`[projects|organizations]/{parent-name}/roles/{role-name}`.
|
655
|
+
:param pulumi.Input[str] source: Used to find the parent resource to bind the IAM policy to
|
656
|
+
"""
|
657
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
658
|
+
|
659
|
+
__props__ = _V2OrganizationSourceIamMemberState.__new__(_V2OrganizationSourceIamMemberState)
|
660
|
+
|
661
|
+
__props__.__dict__["condition"] = condition
|
662
|
+
__props__.__dict__["etag"] = etag
|
663
|
+
__props__.__dict__["member"] = member
|
664
|
+
__props__.__dict__["organization"] = organization
|
665
|
+
__props__.__dict__["role"] = role
|
666
|
+
__props__.__dict__["source"] = source
|
667
|
+
return V2OrganizationSourceIamMember(resource_name, opts=opts, __props__=__props__)
|
668
|
+
|
669
|
+
@property
|
670
|
+
@pulumi.getter
|
671
|
+
def condition(self) -> pulumi.Output[Optional['outputs.V2OrganizationSourceIamMemberCondition']]:
|
672
|
+
return pulumi.get(self, "condition")
|
673
|
+
|
674
|
+
@property
|
675
|
+
@pulumi.getter
|
676
|
+
def etag(self) -> pulumi.Output[str]:
|
677
|
+
"""
|
678
|
+
(Computed) The etag of the IAM policy.
|
679
|
+
"""
|
680
|
+
return pulumi.get(self, "etag")
|
681
|
+
|
682
|
+
@property
|
683
|
+
@pulumi.getter
|
684
|
+
def member(self) -> pulumi.Output[str]:
|
685
|
+
"""
|
686
|
+
Identities that will be granted the privilege in `role`.
|
687
|
+
Each entry can have one of the following values:
|
688
|
+
* **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
|
689
|
+
* **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
|
690
|
+
* **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
|
691
|
+
* **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
|
692
|
+
* **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
|
693
|
+
* **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.
|
694
|
+
* **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
|
695
|
+
* **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
|
696
|
+
* **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
|
697
|
+
"""
|
698
|
+
return pulumi.get(self, "member")
|
699
|
+
|
700
|
+
@property
|
701
|
+
@pulumi.getter
|
702
|
+
def organization(self) -> pulumi.Output[str]:
|
703
|
+
return pulumi.get(self, "organization")
|
704
|
+
|
705
|
+
@property
|
706
|
+
@pulumi.getter
|
707
|
+
def role(self) -> pulumi.Output[str]:
|
708
|
+
"""
|
709
|
+
The role that should be applied. Only one
|
710
|
+
`securitycenter.V2OrganizationSourceIamBinding` can be used per role. Note that custom roles must be of the format
|
711
|
+
`[projects|organizations]/{parent-name}/roles/{role-name}`.
|
712
|
+
"""
|
713
|
+
return pulumi.get(self, "role")
|
714
|
+
|
715
|
+
@property
|
716
|
+
@pulumi.getter
|
717
|
+
def source(self) -> pulumi.Output[str]:
|
718
|
+
"""
|
719
|
+
Used to find the parent resource to bind the IAM policy to
|
720
|
+
"""
|
721
|
+
return pulumi.get(self, "source")
|
722
|
+
|