pulumi-gcp 7.36.0a1723456487__py3-none-any.whl → 7.37.0__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.
Files changed (53) hide show
  1. pulumi_gcp/__init__.py +72 -0
  2. pulumi_gcp/accesscontextmanager/__init__.py +2 -0
  3. pulumi_gcp/accesscontextmanager/_inputs.py +780 -0
  4. pulumi_gcp/accesscontextmanager/outputs.py +601 -0
  5. pulumi_gcp/accesscontextmanager/service_perimeter_dry_run_egress_policy.py +323 -0
  6. pulumi_gcp/accesscontextmanager/service_perimeter_dry_run_ingress_policy.py +332 -0
  7. pulumi_gcp/accesscontextmanager/service_perimeter_egress_policy.py +2 -24
  8. pulumi_gcp/accesscontextmanager/service_perimeter_ingress_policy.py +2 -24
  9. pulumi_gcp/applicationintegration/client.py +2 -2
  10. pulumi_gcp/clouddeploy/_inputs.py +21 -1
  11. pulumi_gcp/clouddeploy/outputs.py +15 -1
  12. pulumi_gcp/cloudrunv2/_inputs.py +40 -0
  13. pulumi_gcp/cloudrunv2/outputs.py +46 -0
  14. pulumi_gcp/compute/region_target_https_proxy.py +28 -0
  15. pulumi_gcp/container/_inputs.py +26 -0
  16. pulumi_gcp/container/outputs.py +29 -0
  17. pulumi_gcp/dataform/repository.py +80 -2
  18. pulumi_gcp/discoveryengine/data_store.py +93 -2
  19. pulumi_gcp/gkehub/_inputs.py +63 -0
  20. pulumi_gcp/gkehub/outputs.py +38 -0
  21. pulumi_gcp/logging/get_log_view_iam_policy.py +28 -2
  22. pulumi_gcp/logging/log_view_iam_binding.py +512 -0
  23. pulumi_gcp/logging/log_view_iam_member.py +512 -0
  24. pulumi_gcp/logging/log_view_iam_policy.py +512 -0
  25. pulumi_gcp/netapp/_inputs.py +6 -6
  26. pulumi_gcp/netapp/outputs.py +4 -4
  27. pulumi_gcp/networkconnectivity/regional_endpoint.py +6 -6
  28. pulumi_gcp/organizations/get_project.py +11 -1
  29. pulumi_gcp/organizations/project.py +76 -21
  30. pulumi_gcp/pulumi-plugin.json +1 -1
  31. pulumi_gcp/securitycenter/__init__.py +8 -0
  32. pulumi_gcp/securitycenter/_inputs.py +191 -0
  33. pulumi_gcp/securitycenter/get_v2_organization_source_iam_policy.py +146 -0
  34. pulumi_gcp/securitycenter/outputs.py +115 -0
  35. pulumi_gcp/securitycenter/v2_folder_mute_config.py +679 -0
  36. pulumi_gcp/securitycenter/v2_organization_source.py +416 -0
  37. pulumi_gcp/securitycenter/v2_organization_source_iam_binding.py +722 -0
  38. pulumi_gcp/securitycenter/v2_organization_source_iam_member.py +722 -0
  39. pulumi_gcp/securitycenter/v2_organization_source_iam_policy.py +561 -0
  40. pulumi_gcp/securitycenter/v2_project_mute_config.py +684 -0
  41. pulumi_gcp/securitycenter/v2_project_notification_config.py +559 -0
  42. pulumi_gcp/spanner/instance.py +0 -7
  43. pulumi_gcp/sql/_inputs.py +3 -3
  44. pulumi_gcp/sql/outputs.py +6 -6
  45. pulumi_gcp/storage/bucket_object.py +28 -0
  46. pulumi_gcp/storage/get_bucket_object.py +14 -1
  47. pulumi_gcp/storage/get_bucket_object_content.py +11 -1
  48. pulumi_gcp/storage/managed_folder.py +72 -2
  49. pulumi_gcp/vmwareengine/network_policy.py +6 -6
  50. {pulumi_gcp-7.36.0a1723456487.dist-info → pulumi_gcp-7.37.0.dist-info}/METADATA +1 -1
  51. {pulumi_gcp-7.36.0a1723456487.dist-info → pulumi_gcp-7.37.0.dist-info}/RECORD +53 -43
  52. {pulumi_gcp-7.36.0a1723456487.dist-info → pulumi_gcp-7.37.0.dist-info}/WHEEL +1 -1
  53. {pulumi_gcp-7.36.0a1723456487.dist-info → pulumi_gcp-7.37.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,561 @@
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
+
17
+ __all__ = ['V2OrganizationSourceIamPolicyArgs', 'V2OrganizationSourceIamPolicy']
18
+
19
+ @pulumi.input_type
20
+ class V2OrganizationSourceIamPolicyArgs:
21
+ def __init__(__self__, *,
22
+ organization: pulumi.Input[str],
23
+ policy_data: pulumi.Input[str],
24
+ source: pulumi.Input[str]):
25
+ """
26
+ The set of arguments for constructing a V2OrganizationSourceIamPolicy resource.
27
+ :param pulumi.Input[str] policy_data: The policy data generated by
28
+ a `organizations_get_iam_policy` data source.
29
+ :param pulumi.Input[str] source: Used to find the parent resource to bind the IAM policy to
30
+ """
31
+ pulumi.set(__self__, "organization", organization)
32
+ pulumi.set(__self__, "policy_data", policy_data)
33
+ pulumi.set(__self__, "source", source)
34
+
35
+ @property
36
+ @pulumi.getter
37
+ def organization(self) -> pulumi.Input[str]:
38
+ return pulumi.get(self, "organization")
39
+
40
+ @organization.setter
41
+ def organization(self, value: pulumi.Input[str]):
42
+ pulumi.set(self, "organization", value)
43
+
44
+ @property
45
+ @pulumi.getter(name="policyData")
46
+ def policy_data(self) -> pulumi.Input[str]:
47
+ """
48
+ The policy data generated by
49
+ a `organizations_get_iam_policy` data source.
50
+ """
51
+ return pulumi.get(self, "policy_data")
52
+
53
+ @policy_data.setter
54
+ def policy_data(self, value: pulumi.Input[str]):
55
+ pulumi.set(self, "policy_data", value)
56
+
57
+ @property
58
+ @pulumi.getter
59
+ def source(self) -> pulumi.Input[str]:
60
+ """
61
+ Used to find the parent resource to bind the IAM policy to
62
+ """
63
+ return pulumi.get(self, "source")
64
+
65
+ @source.setter
66
+ def source(self, value: pulumi.Input[str]):
67
+ pulumi.set(self, "source", value)
68
+
69
+
70
+ @pulumi.input_type
71
+ class _V2OrganizationSourceIamPolicyState:
72
+ def __init__(__self__, *,
73
+ etag: Optional[pulumi.Input[str]] = None,
74
+ organization: Optional[pulumi.Input[str]] = None,
75
+ policy_data: Optional[pulumi.Input[str]] = None,
76
+ source: Optional[pulumi.Input[str]] = None):
77
+ """
78
+ Input properties used for looking up and filtering V2OrganizationSourceIamPolicy resources.
79
+ :param pulumi.Input[str] etag: (Computed) The etag of the IAM policy.
80
+ :param pulumi.Input[str] policy_data: The policy data generated by
81
+ a `organizations_get_iam_policy` data source.
82
+ :param pulumi.Input[str] source: Used to find the parent resource to bind the IAM policy to
83
+ """
84
+ if etag is not None:
85
+ pulumi.set(__self__, "etag", etag)
86
+ if organization is not None:
87
+ pulumi.set(__self__, "organization", organization)
88
+ if policy_data is not None:
89
+ pulumi.set(__self__, "policy_data", policy_data)
90
+ if source is not None:
91
+ pulumi.set(__self__, "source", source)
92
+
93
+ @property
94
+ @pulumi.getter
95
+ def etag(self) -> Optional[pulumi.Input[str]]:
96
+ """
97
+ (Computed) The etag of the IAM policy.
98
+ """
99
+ return pulumi.get(self, "etag")
100
+
101
+ @etag.setter
102
+ def etag(self, value: Optional[pulumi.Input[str]]):
103
+ pulumi.set(self, "etag", value)
104
+
105
+ @property
106
+ @pulumi.getter
107
+ def organization(self) -> Optional[pulumi.Input[str]]:
108
+ return pulumi.get(self, "organization")
109
+
110
+ @organization.setter
111
+ def organization(self, value: Optional[pulumi.Input[str]]):
112
+ pulumi.set(self, "organization", value)
113
+
114
+ @property
115
+ @pulumi.getter(name="policyData")
116
+ def policy_data(self) -> Optional[pulumi.Input[str]]:
117
+ """
118
+ The policy data generated by
119
+ a `organizations_get_iam_policy` data source.
120
+ """
121
+ return pulumi.get(self, "policy_data")
122
+
123
+ @policy_data.setter
124
+ def policy_data(self, value: Optional[pulumi.Input[str]]):
125
+ pulumi.set(self, "policy_data", value)
126
+
127
+ @property
128
+ @pulumi.getter
129
+ def source(self) -> Optional[pulumi.Input[str]]:
130
+ """
131
+ Used to find the parent resource to bind the IAM policy to
132
+ """
133
+ return pulumi.get(self, "source")
134
+
135
+ @source.setter
136
+ def source(self, value: Optional[pulumi.Input[str]]):
137
+ pulumi.set(self, "source", value)
138
+
139
+
140
+ class V2OrganizationSourceIamPolicy(pulumi.CustomResource):
141
+ @overload
142
+ def __init__(__self__,
143
+ resource_name: str,
144
+ opts: Optional[pulumi.ResourceOptions] = None,
145
+ organization: Optional[pulumi.Input[str]] = None,
146
+ policy_data: Optional[pulumi.Input[str]] = None,
147
+ source: Optional[pulumi.Input[str]] = None,
148
+ __props__=None):
149
+ """
150
+ 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:
151
+
152
+ * `securitycenter.V2OrganizationSourceIamPolicy`: Authoritative. Sets the IAM policy for the organizationsource and replaces any existing policy already attached.
153
+ * `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.
154
+ * `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.
155
+
156
+ A data source can be used to retrieve policy data in advent you do not need creation
157
+
158
+ * `securitycenter.V2OrganizationSourceIamPolicy`: Retrieves the IAM policy for the organizationsource
159
+
160
+ > **Note:** `securitycenter.V2OrganizationSourceIamPolicy` **cannot** be used in conjunction with `securitycenter.V2OrganizationSourceIamBinding` and `securitycenter.V2OrganizationSourceIamMember` or they will fight over what your policy should be.
161
+
162
+ > **Note:** `securitycenter.V2OrganizationSourceIamBinding` resources **can be** used in conjunction with `securitycenter.V2OrganizationSourceIamMember` resources **only if** they do not grant privilege to the same role.
163
+
164
+ ## securitycenter.V2OrganizationSourceIamPolicy
165
+
166
+ ```python
167
+ import pulumi
168
+ import pulumi_gcp as gcp
169
+
170
+ admin = gcp.organizations.get_iam_policy(bindings=[{
171
+ "role": "roles/viewer",
172
+ "members": ["user:jane@example.com"],
173
+ }])
174
+ policy = gcp.securitycenter.V2OrganizationSourceIamPolicy("policy",
175
+ source=custom_source["name"],
176
+ policy_data=admin.policy_data)
177
+ ```
178
+
179
+ ## securitycenter.V2OrganizationSourceIamBinding
180
+
181
+ ```python
182
+ import pulumi
183
+ import pulumi_gcp as gcp
184
+
185
+ binding = gcp.securitycenter.V2OrganizationSourceIamBinding("binding",
186
+ source=custom_source["name"],
187
+ role="roles/viewer",
188
+ members=["user:jane@example.com"])
189
+ ```
190
+
191
+ ## securitycenter.V2OrganizationSourceIamMember
192
+
193
+ ```python
194
+ import pulumi
195
+ import pulumi_gcp as gcp
196
+
197
+ member = gcp.securitycenter.V2OrganizationSourceIamMember("member",
198
+ source=custom_source["name"],
199
+ role="roles/viewer",
200
+ member="user:jane@example.com")
201
+ ```
202
+
203
+ ## > **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
204
+
205
+ full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
206
+ ---
207
+
208
+ # IAM policy for Security Command Center (SCC)v2 API OrganizationSource
209
+ 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:
210
+
211
+ * `securitycenter.V2OrganizationSourceIamPolicy`: Authoritative. Sets the IAM policy for the organizationsource and replaces any existing policy already attached.
212
+ * `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.
213
+ * `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.
214
+
215
+ A data source can be used to retrieve policy data in advent you do not need creation
216
+
217
+ * `securitycenter.V2OrganizationSourceIamPolicy`: Retrieves the IAM policy for the organizationsource
218
+
219
+ > **Note:** `securitycenter.V2OrganizationSourceIamPolicy` **cannot** be used in conjunction with `securitycenter.V2OrganizationSourceIamBinding` and `securitycenter.V2OrganizationSourceIamMember` or they will fight over what your policy should be.
220
+
221
+ > **Note:** `securitycenter.V2OrganizationSourceIamBinding` resources **can be** used in conjunction with `securitycenter.V2OrganizationSourceIamMember` resources **only if** they do not grant privilege to the same role.
222
+
223
+ ## securitycenter.V2OrganizationSourceIamPolicy
224
+
225
+ ```python
226
+ import pulumi
227
+ import pulumi_gcp as gcp
228
+
229
+ admin = gcp.organizations.get_iam_policy(bindings=[{
230
+ "role": "roles/viewer",
231
+ "members": ["user:jane@example.com"],
232
+ }])
233
+ policy = gcp.securitycenter.V2OrganizationSourceIamPolicy("policy",
234
+ source=custom_source["name"],
235
+ policy_data=admin.policy_data)
236
+ ```
237
+
238
+ ## securitycenter.V2OrganizationSourceIamBinding
239
+
240
+ ```python
241
+ import pulumi
242
+ import pulumi_gcp as gcp
243
+
244
+ binding = gcp.securitycenter.V2OrganizationSourceIamBinding("binding",
245
+ source=custom_source["name"],
246
+ role="roles/viewer",
247
+ members=["user:jane@example.com"])
248
+ ```
249
+
250
+ ## securitycenter.V2OrganizationSourceIamMember
251
+
252
+ ```python
253
+ import pulumi
254
+ import pulumi_gcp as gcp
255
+
256
+ member = gcp.securitycenter.V2OrganizationSourceIamMember("member",
257
+ source=custom_source["name"],
258
+ role="roles/viewer",
259
+ member="user:jane@example.com")
260
+ ```
261
+
262
+ ## Import
263
+
264
+ For all import syntaxes, the "resource in question" can take any of the following forms:
265
+
266
+ * organizations/{{organization}}/sources/{{source}}
267
+
268
+ * {{organization}}/{{source}}
269
+
270
+ * {{source}}
271
+
272
+ Any variables not passed in the import command will be taken from the provider configuration.
273
+
274
+ Security Command Center (SCC)v2 API organizationsource IAM resources can be imported using the resource identifiers, role, and member.
275
+
276
+ IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
277
+
278
+ ```sh
279
+ $ pulumi import gcp:securitycenter/v2OrganizationSourceIamPolicy:V2OrganizationSourceIamPolicy editor "organizations/{{organization}}/sources/{{source}} roles/viewer user:jane@example.com"
280
+ ```
281
+
282
+ IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
283
+
284
+ ```sh
285
+ $ pulumi import gcp:securitycenter/v2OrganizationSourceIamPolicy:V2OrganizationSourceIamPolicy editor "organizations/{{organization}}/sources/{{source}} roles/viewer"
286
+ ```
287
+
288
+ IAM policy imports use the identifier of the resource in question, e.g.
289
+
290
+ ```sh
291
+ $ pulumi import gcp:securitycenter/v2OrganizationSourceIamPolicy:V2OrganizationSourceIamPolicy editor organizations/{{organization}}/sources/{{source}}
292
+ ```
293
+
294
+ -> **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
295
+
296
+ full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
297
+
298
+ :param str resource_name: The name of the resource.
299
+ :param pulumi.ResourceOptions opts: Options for the resource.
300
+ :param pulumi.Input[str] policy_data: The policy data generated by
301
+ a `organizations_get_iam_policy` data source.
302
+ :param pulumi.Input[str] source: Used to find the parent resource to bind the IAM policy to
303
+ """
304
+ ...
305
+ @overload
306
+ def __init__(__self__,
307
+ resource_name: str,
308
+ args: V2OrganizationSourceIamPolicyArgs,
309
+ opts: Optional[pulumi.ResourceOptions] = None):
310
+ """
311
+ 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:
312
+
313
+ * `securitycenter.V2OrganizationSourceIamPolicy`: Authoritative. Sets the IAM policy for the organizationsource and replaces any existing policy already attached.
314
+ * `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.
315
+ * `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.
316
+
317
+ A data source can be used to retrieve policy data in advent you do not need creation
318
+
319
+ * `securitycenter.V2OrganizationSourceIamPolicy`: Retrieves the IAM policy for the organizationsource
320
+
321
+ > **Note:** `securitycenter.V2OrganizationSourceIamPolicy` **cannot** be used in conjunction with `securitycenter.V2OrganizationSourceIamBinding` and `securitycenter.V2OrganizationSourceIamMember` or they will fight over what your policy should be.
322
+
323
+ > **Note:** `securitycenter.V2OrganizationSourceIamBinding` resources **can be** used in conjunction with `securitycenter.V2OrganizationSourceIamMember` resources **only if** they do not grant privilege to the same role.
324
+
325
+ ## securitycenter.V2OrganizationSourceIamPolicy
326
+
327
+ ```python
328
+ import pulumi
329
+ import pulumi_gcp as gcp
330
+
331
+ admin = gcp.organizations.get_iam_policy(bindings=[{
332
+ "role": "roles/viewer",
333
+ "members": ["user:jane@example.com"],
334
+ }])
335
+ policy = gcp.securitycenter.V2OrganizationSourceIamPolicy("policy",
336
+ source=custom_source["name"],
337
+ policy_data=admin.policy_data)
338
+ ```
339
+
340
+ ## securitycenter.V2OrganizationSourceIamBinding
341
+
342
+ ```python
343
+ import pulumi
344
+ import pulumi_gcp as gcp
345
+
346
+ binding = gcp.securitycenter.V2OrganizationSourceIamBinding("binding",
347
+ source=custom_source["name"],
348
+ role="roles/viewer",
349
+ members=["user:jane@example.com"])
350
+ ```
351
+
352
+ ## securitycenter.V2OrganizationSourceIamMember
353
+
354
+ ```python
355
+ import pulumi
356
+ import pulumi_gcp as gcp
357
+
358
+ member = gcp.securitycenter.V2OrganizationSourceIamMember("member",
359
+ source=custom_source["name"],
360
+ role="roles/viewer",
361
+ member="user:jane@example.com")
362
+ ```
363
+
364
+ ## > **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
365
+
366
+ full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
367
+ ---
368
+
369
+ # IAM policy for Security Command Center (SCC)v2 API OrganizationSource
370
+ 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:
371
+
372
+ * `securitycenter.V2OrganizationSourceIamPolicy`: Authoritative. Sets the IAM policy for the organizationsource and replaces any existing policy already attached.
373
+ * `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.
374
+ * `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.
375
+
376
+ A data source can be used to retrieve policy data in advent you do not need creation
377
+
378
+ * `securitycenter.V2OrganizationSourceIamPolicy`: Retrieves the IAM policy for the organizationsource
379
+
380
+ > **Note:** `securitycenter.V2OrganizationSourceIamPolicy` **cannot** be used in conjunction with `securitycenter.V2OrganizationSourceIamBinding` and `securitycenter.V2OrganizationSourceIamMember` or they will fight over what your policy should be.
381
+
382
+ > **Note:** `securitycenter.V2OrganizationSourceIamBinding` resources **can be** used in conjunction with `securitycenter.V2OrganizationSourceIamMember` resources **only if** they do not grant privilege to the same role.
383
+
384
+ ## securitycenter.V2OrganizationSourceIamPolicy
385
+
386
+ ```python
387
+ import pulumi
388
+ import pulumi_gcp as gcp
389
+
390
+ admin = gcp.organizations.get_iam_policy(bindings=[{
391
+ "role": "roles/viewer",
392
+ "members": ["user:jane@example.com"],
393
+ }])
394
+ policy = gcp.securitycenter.V2OrganizationSourceIamPolicy("policy",
395
+ source=custom_source["name"],
396
+ policy_data=admin.policy_data)
397
+ ```
398
+
399
+ ## securitycenter.V2OrganizationSourceIamBinding
400
+
401
+ ```python
402
+ import pulumi
403
+ import pulumi_gcp as gcp
404
+
405
+ binding = gcp.securitycenter.V2OrganizationSourceIamBinding("binding",
406
+ source=custom_source["name"],
407
+ role="roles/viewer",
408
+ members=["user:jane@example.com"])
409
+ ```
410
+
411
+ ## securitycenter.V2OrganizationSourceIamMember
412
+
413
+ ```python
414
+ import pulumi
415
+ import pulumi_gcp as gcp
416
+
417
+ member = gcp.securitycenter.V2OrganizationSourceIamMember("member",
418
+ source=custom_source["name"],
419
+ role="roles/viewer",
420
+ member="user:jane@example.com")
421
+ ```
422
+
423
+ ## Import
424
+
425
+ For all import syntaxes, the "resource in question" can take any of the following forms:
426
+
427
+ * organizations/{{organization}}/sources/{{source}}
428
+
429
+ * {{organization}}/{{source}}
430
+
431
+ * {{source}}
432
+
433
+ Any variables not passed in the import command will be taken from the provider configuration.
434
+
435
+ Security Command Center (SCC)v2 API organizationsource IAM resources can be imported using the resource identifiers, role, and member.
436
+
437
+ IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
438
+
439
+ ```sh
440
+ $ pulumi import gcp:securitycenter/v2OrganizationSourceIamPolicy:V2OrganizationSourceIamPolicy editor "organizations/{{organization}}/sources/{{source}} roles/viewer user:jane@example.com"
441
+ ```
442
+
443
+ IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
444
+
445
+ ```sh
446
+ $ pulumi import gcp:securitycenter/v2OrganizationSourceIamPolicy:V2OrganizationSourceIamPolicy editor "organizations/{{organization}}/sources/{{source}} roles/viewer"
447
+ ```
448
+
449
+ IAM policy imports use the identifier of the resource in question, e.g.
450
+
451
+ ```sh
452
+ $ pulumi import gcp:securitycenter/v2OrganizationSourceIamPolicy:V2OrganizationSourceIamPolicy editor organizations/{{organization}}/sources/{{source}}
453
+ ```
454
+
455
+ -> **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
456
+
457
+ full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
458
+
459
+ :param str resource_name: The name of the resource.
460
+ :param V2OrganizationSourceIamPolicyArgs args: The arguments to use to populate this resource's properties.
461
+ :param pulumi.ResourceOptions opts: Options for the resource.
462
+ """
463
+ ...
464
+ def __init__(__self__, resource_name: str, *args, **kwargs):
465
+ resource_args, opts = _utilities.get_resource_args_opts(V2OrganizationSourceIamPolicyArgs, pulumi.ResourceOptions, *args, **kwargs)
466
+ if resource_args is not None:
467
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
468
+ else:
469
+ __self__._internal_init(resource_name, *args, **kwargs)
470
+
471
+ def _internal_init(__self__,
472
+ resource_name: str,
473
+ opts: Optional[pulumi.ResourceOptions] = None,
474
+ organization: Optional[pulumi.Input[str]] = None,
475
+ policy_data: Optional[pulumi.Input[str]] = None,
476
+ source: Optional[pulumi.Input[str]] = None,
477
+ __props__=None):
478
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
479
+ if not isinstance(opts, pulumi.ResourceOptions):
480
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
481
+ if opts.id is None:
482
+ if __props__ is not None:
483
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
484
+ __props__ = V2OrganizationSourceIamPolicyArgs.__new__(V2OrganizationSourceIamPolicyArgs)
485
+
486
+ if organization is None and not opts.urn:
487
+ raise TypeError("Missing required property 'organization'")
488
+ __props__.__dict__["organization"] = organization
489
+ if policy_data is None and not opts.urn:
490
+ raise TypeError("Missing required property 'policy_data'")
491
+ __props__.__dict__["policy_data"] = policy_data
492
+ if source is None and not opts.urn:
493
+ raise TypeError("Missing required property 'source'")
494
+ __props__.__dict__["source"] = source
495
+ __props__.__dict__["etag"] = None
496
+ super(V2OrganizationSourceIamPolicy, __self__).__init__(
497
+ 'gcp:securitycenter/v2OrganizationSourceIamPolicy:V2OrganizationSourceIamPolicy',
498
+ resource_name,
499
+ __props__,
500
+ opts)
501
+
502
+ @staticmethod
503
+ def get(resource_name: str,
504
+ id: pulumi.Input[str],
505
+ opts: Optional[pulumi.ResourceOptions] = None,
506
+ etag: Optional[pulumi.Input[str]] = None,
507
+ organization: Optional[pulumi.Input[str]] = None,
508
+ policy_data: Optional[pulumi.Input[str]] = None,
509
+ source: Optional[pulumi.Input[str]] = None) -> 'V2OrganizationSourceIamPolicy':
510
+ """
511
+ Get an existing V2OrganizationSourceIamPolicy resource's state with the given name, id, and optional extra
512
+ properties used to qualify the lookup.
513
+
514
+ :param str resource_name: The unique name of the resulting resource.
515
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
516
+ :param pulumi.ResourceOptions opts: Options for the resource.
517
+ :param pulumi.Input[str] etag: (Computed) The etag of the IAM policy.
518
+ :param pulumi.Input[str] policy_data: The policy data generated by
519
+ a `organizations_get_iam_policy` data source.
520
+ :param pulumi.Input[str] source: Used to find the parent resource to bind the IAM policy to
521
+ """
522
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
523
+
524
+ __props__ = _V2OrganizationSourceIamPolicyState.__new__(_V2OrganizationSourceIamPolicyState)
525
+
526
+ __props__.__dict__["etag"] = etag
527
+ __props__.__dict__["organization"] = organization
528
+ __props__.__dict__["policy_data"] = policy_data
529
+ __props__.__dict__["source"] = source
530
+ return V2OrganizationSourceIamPolicy(resource_name, opts=opts, __props__=__props__)
531
+
532
+ @property
533
+ @pulumi.getter
534
+ def etag(self) -> pulumi.Output[str]:
535
+ """
536
+ (Computed) The etag of the IAM policy.
537
+ """
538
+ return pulumi.get(self, "etag")
539
+
540
+ @property
541
+ @pulumi.getter
542
+ def organization(self) -> pulumi.Output[str]:
543
+ return pulumi.get(self, "organization")
544
+
545
+ @property
546
+ @pulumi.getter(name="policyData")
547
+ def policy_data(self) -> pulumi.Output[str]:
548
+ """
549
+ The policy data generated by
550
+ a `organizations_get_iam_policy` data source.
551
+ """
552
+ return pulumi.get(self, "policy_data")
553
+
554
+ @property
555
+ @pulumi.getter
556
+ def source(self) -> pulumi.Output[str]:
557
+ """
558
+ Used to find the parent resource to bind the IAM policy to
559
+ """
560
+ return pulumi.get(self, "source")
561
+