pulumi-gcp 8.21.0a1741156431__py3-none-any.whl → 8.21.0a1741183435__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 (56) hide show
  1. pulumi_gcp/__init__.py +64 -0
  2. pulumi_gcp/alloydb/cluster.py +148 -0
  3. pulumi_gcp/alloydb/instance.py +28 -28
  4. pulumi_gcp/apihub/__init__.py +1 -0
  5. pulumi_gcp/apihub/host_project_registration.py +535 -0
  6. pulumi_gcp/bigquery/table.py +1 -1
  7. pulumi_gcp/compute/__init__.py +5 -0
  8. pulumi_gcp/compute/_inputs.py +770 -0
  9. pulumi_gcp/compute/backend_service.py +14 -7
  10. pulumi_gcp/compute/ca_external_account_key.py +48 -3
  11. pulumi_gcp/compute/disk.py +295 -0
  12. pulumi_gcp/compute/get_disk.py +56 -1
  13. pulumi_gcp/compute/get_instant_snapshot_iam_policy.py +182 -0
  14. pulumi_gcp/compute/instant_snapshot.py +796 -0
  15. pulumi_gcp/compute/instant_snapshot_iam_binding.py +1087 -0
  16. pulumi_gcp/compute/instant_snapshot_iam_member.py +1087 -0
  17. pulumi_gcp/compute/instant_snapshot_iam_policy.py +906 -0
  18. pulumi_gcp/compute/outputs.py +1329 -6
  19. pulumi_gcp/compute/region_backend_service.py +14 -7
  20. pulumi_gcp/compute/route.py +228 -2
  21. pulumi_gcp/compute/url_map.py +8 -0
  22. pulumi_gcp/container/_inputs.py +3 -3
  23. pulumi_gcp/container/outputs.py +4 -4
  24. pulumi_gcp/datacatalog/entry.py +4 -0
  25. pulumi_gcp/datacatalog/tag.py +4 -0
  26. pulumi_gcp/dataproc/_inputs.py +12 -15
  27. pulumi_gcp/dataproc/outputs.py +8 -10
  28. pulumi_gcp/discoveryengine/target_site.py +4 -4
  29. pulumi_gcp/eventarc/__init__.py +1 -0
  30. pulumi_gcp/eventarc/_inputs.py +40 -0
  31. pulumi_gcp/eventarc/message_bus.py +927 -0
  32. pulumi_gcp/eventarc/outputs.py +41 -0
  33. pulumi_gcp/gemini/__init__.py +1 -0
  34. pulumi_gcp/gemini/data_sharing_with_google_setting_binding.py +20 -8
  35. pulumi_gcp/gemini/gemini_gcp_enablement_setting.py +6 -0
  36. pulumi_gcp/gemini/gemini_gcp_enablement_setting_binding.py +734 -0
  37. pulumi_gcp/gemini/logging_setting_binding.py +7 -7
  38. pulumi_gcp/iam/_inputs.py +33 -9
  39. pulumi_gcp/iam/outputs.py +22 -6
  40. pulumi_gcp/iam/workforce_pool_provider.py +2 -2
  41. pulumi_gcp/memorystore/__init__.py +1 -0
  42. pulumi_gcp/memorystore/get_instance.py +425 -0
  43. pulumi_gcp/memorystore/outputs.py +582 -0
  44. pulumi_gcp/networkconnectivity/hub.py +84 -0
  45. pulumi_gcp/networkservices/grpc_route.py +116 -12
  46. pulumi_gcp/notebooks/location.py +4 -0
  47. pulumi_gcp/pulumi-plugin.json +1 -1
  48. pulumi_gcp/storage/__init__.py +1 -0
  49. pulumi_gcp/storage/_inputs.py +74 -0
  50. pulumi_gcp/storage/anywhere_cache.py +552 -0
  51. pulumi_gcp/storage/outputs.py +65 -0
  52. pulumi_gcp/storage/transfer_job.py +67 -0
  53. {pulumi_gcp-8.21.0a1741156431.dist-info → pulumi_gcp-8.21.0a1741183435.dist-info}/METADATA +1 -1
  54. {pulumi_gcp-8.21.0a1741156431.dist-info → pulumi_gcp-8.21.0a1741183435.dist-info}/RECORD +56 -46
  55. {pulumi_gcp-8.21.0a1741156431.dist-info → pulumi_gcp-8.21.0a1741183435.dist-info}/WHEEL +0 -0
  56. {pulumi_gcp-8.21.0a1741156431.dist-info → pulumi_gcp-8.21.0a1741183435.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1087 @@
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__ = ['InstantSnapshotIamBindingArgs', 'InstantSnapshotIamBinding']
20
+
21
+ @pulumi.input_type
22
+ class InstantSnapshotIamBindingArgs:
23
+ def __init__(__self__, *,
24
+ members: pulumi.Input[Sequence[pulumi.Input[str]]],
25
+ role: pulumi.Input[str],
26
+ condition: Optional[pulumi.Input['InstantSnapshotIamBindingConditionArgs']] = None,
27
+ name: Optional[pulumi.Input[str]] = None,
28
+ project: Optional[pulumi.Input[str]] = None,
29
+ zone: Optional[pulumi.Input[str]] = None):
30
+ """
31
+ The set of arguments for constructing a InstantSnapshotIamBinding resource.
32
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] members: Identities that will be granted the privilege in `role`.
33
+ Each entry can have one of the following values:
34
+ * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
35
+ * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
36
+ * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
37
+ * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
38
+ * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
39
+ * **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.
40
+ * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
41
+ * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
42
+ * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
43
+ :param pulumi.Input[str] role: The role that should be applied. Only one
44
+ `compute.InstantSnapshotIamBinding` can be used per role. Note that custom roles must be of the format
45
+ `[projects|organizations]/{parent-name}/roles/{role-name}`.
46
+ :param pulumi.Input['InstantSnapshotIamBindingConditionArgs'] condition: An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
47
+ Structure is documented below.
48
+ :param pulumi.Input[str] name: Used to find the parent resource to bind the IAM policy to
49
+ :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
50
+ If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
51
+ :param pulumi.Input[str] zone: A reference to the zone where the disk is located. Used to find the parent resource to bind the IAM policy to. If not specified,
52
+ the value will be parsed from the identifier of the parent resource. If no zone is provided in the parent identifier and no
53
+ zone is specified, it is taken from the provider configuration.
54
+ """
55
+ pulumi.set(__self__, "members", members)
56
+ pulumi.set(__self__, "role", role)
57
+ if condition is not None:
58
+ pulumi.set(__self__, "condition", condition)
59
+ if name is not None:
60
+ pulumi.set(__self__, "name", name)
61
+ if project is not None:
62
+ pulumi.set(__self__, "project", project)
63
+ if zone is not None:
64
+ pulumi.set(__self__, "zone", zone)
65
+
66
+ @property
67
+ @pulumi.getter
68
+ def members(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
69
+ """
70
+ Identities that will be granted the privilege in `role`.
71
+ Each entry can have one of the following values:
72
+ * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
73
+ * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
74
+ * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
75
+ * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
76
+ * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
77
+ * **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.
78
+ * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
79
+ * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
80
+ * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
81
+ """
82
+ return pulumi.get(self, "members")
83
+
84
+ @members.setter
85
+ def members(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
86
+ pulumi.set(self, "members", value)
87
+
88
+ @property
89
+ @pulumi.getter
90
+ def role(self) -> pulumi.Input[str]:
91
+ """
92
+ The role that should be applied. Only one
93
+ `compute.InstantSnapshotIamBinding` can be used per role. Note that custom roles must be of the format
94
+ `[projects|organizations]/{parent-name}/roles/{role-name}`.
95
+ """
96
+ return pulumi.get(self, "role")
97
+
98
+ @role.setter
99
+ def role(self, value: pulumi.Input[str]):
100
+ pulumi.set(self, "role", value)
101
+
102
+ @property
103
+ @pulumi.getter
104
+ def condition(self) -> Optional[pulumi.Input['InstantSnapshotIamBindingConditionArgs']]:
105
+ """
106
+ An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
107
+ Structure is documented below.
108
+ """
109
+ return pulumi.get(self, "condition")
110
+
111
+ @condition.setter
112
+ def condition(self, value: Optional[pulumi.Input['InstantSnapshotIamBindingConditionArgs']]):
113
+ pulumi.set(self, "condition", value)
114
+
115
+ @property
116
+ @pulumi.getter
117
+ def name(self) -> Optional[pulumi.Input[str]]:
118
+ """
119
+ Used to find the parent resource to bind the IAM policy to
120
+ """
121
+ return pulumi.get(self, "name")
122
+
123
+ @name.setter
124
+ def name(self, value: Optional[pulumi.Input[str]]):
125
+ pulumi.set(self, "name", value)
126
+
127
+ @property
128
+ @pulumi.getter
129
+ def project(self) -> Optional[pulumi.Input[str]]:
130
+ """
131
+ The ID of the project in which the resource belongs.
132
+ If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
133
+ """
134
+ return pulumi.get(self, "project")
135
+
136
+ @project.setter
137
+ def project(self, value: Optional[pulumi.Input[str]]):
138
+ pulumi.set(self, "project", value)
139
+
140
+ @property
141
+ @pulumi.getter
142
+ def zone(self) -> Optional[pulumi.Input[str]]:
143
+ """
144
+ A reference to the zone where the disk is located. Used to find the parent resource to bind the IAM policy to. If not specified,
145
+ the value will be parsed from the identifier of the parent resource. If no zone is provided in the parent identifier and no
146
+ zone is specified, it is taken from the provider configuration.
147
+ """
148
+ return pulumi.get(self, "zone")
149
+
150
+ @zone.setter
151
+ def zone(self, value: Optional[pulumi.Input[str]]):
152
+ pulumi.set(self, "zone", value)
153
+
154
+
155
+ @pulumi.input_type
156
+ class _InstantSnapshotIamBindingState:
157
+ def __init__(__self__, *,
158
+ condition: Optional[pulumi.Input['InstantSnapshotIamBindingConditionArgs']] = None,
159
+ etag: Optional[pulumi.Input[str]] = None,
160
+ members: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
161
+ name: Optional[pulumi.Input[str]] = None,
162
+ project: Optional[pulumi.Input[str]] = None,
163
+ role: Optional[pulumi.Input[str]] = None,
164
+ zone: Optional[pulumi.Input[str]] = None):
165
+ """
166
+ Input properties used for looking up and filtering InstantSnapshotIamBinding resources.
167
+ :param pulumi.Input['InstantSnapshotIamBindingConditionArgs'] condition: An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
168
+ Structure is documented below.
169
+ :param pulumi.Input[str] etag: (Computed) The etag of the IAM policy.
170
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] members: Identities that will be granted the privilege in `role`.
171
+ Each entry can have one of the following values:
172
+ * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
173
+ * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
174
+ * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
175
+ * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
176
+ * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
177
+ * **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.
178
+ * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
179
+ * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
180
+ * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
181
+ :param pulumi.Input[str] name: Used to find the parent resource to bind the IAM policy to
182
+ :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
183
+ If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
184
+ :param pulumi.Input[str] role: The role that should be applied. Only one
185
+ `compute.InstantSnapshotIamBinding` can be used per role. Note that custom roles must be of the format
186
+ `[projects|organizations]/{parent-name}/roles/{role-name}`.
187
+ :param pulumi.Input[str] zone: A reference to the zone where the disk is located. Used to find the parent resource to bind the IAM policy to. If not specified,
188
+ the value will be parsed from the identifier of the parent resource. If no zone is provided in the parent identifier and no
189
+ zone is specified, it is taken from the provider configuration.
190
+ """
191
+ if condition is not None:
192
+ pulumi.set(__self__, "condition", condition)
193
+ if etag is not None:
194
+ pulumi.set(__self__, "etag", etag)
195
+ if members is not None:
196
+ pulumi.set(__self__, "members", members)
197
+ if name is not None:
198
+ pulumi.set(__self__, "name", name)
199
+ if project is not None:
200
+ pulumi.set(__self__, "project", project)
201
+ if role is not None:
202
+ pulumi.set(__self__, "role", role)
203
+ if zone is not None:
204
+ pulumi.set(__self__, "zone", zone)
205
+
206
+ @property
207
+ @pulumi.getter
208
+ def condition(self) -> Optional[pulumi.Input['InstantSnapshotIamBindingConditionArgs']]:
209
+ """
210
+ An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
211
+ Structure is documented below.
212
+ """
213
+ return pulumi.get(self, "condition")
214
+
215
+ @condition.setter
216
+ def condition(self, value: Optional[pulumi.Input['InstantSnapshotIamBindingConditionArgs']]):
217
+ pulumi.set(self, "condition", value)
218
+
219
+ @property
220
+ @pulumi.getter
221
+ def etag(self) -> Optional[pulumi.Input[str]]:
222
+ """
223
+ (Computed) The etag of the IAM policy.
224
+ """
225
+ return pulumi.get(self, "etag")
226
+
227
+ @etag.setter
228
+ def etag(self, value: Optional[pulumi.Input[str]]):
229
+ pulumi.set(self, "etag", value)
230
+
231
+ @property
232
+ @pulumi.getter
233
+ def members(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
234
+ """
235
+ Identities that will be granted the privilege in `role`.
236
+ Each entry can have one of the following values:
237
+ * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
238
+ * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
239
+ * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
240
+ * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
241
+ * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
242
+ * **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.
243
+ * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
244
+ * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
245
+ * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
246
+ """
247
+ return pulumi.get(self, "members")
248
+
249
+ @members.setter
250
+ def members(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
251
+ pulumi.set(self, "members", value)
252
+
253
+ @property
254
+ @pulumi.getter
255
+ def name(self) -> Optional[pulumi.Input[str]]:
256
+ """
257
+ Used to find the parent resource to bind the IAM policy to
258
+ """
259
+ return pulumi.get(self, "name")
260
+
261
+ @name.setter
262
+ def name(self, value: Optional[pulumi.Input[str]]):
263
+ pulumi.set(self, "name", value)
264
+
265
+ @property
266
+ @pulumi.getter
267
+ def project(self) -> Optional[pulumi.Input[str]]:
268
+ """
269
+ The ID of the project in which the resource belongs.
270
+ If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
271
+ """
272
+ return pulumi.get(self, "project")
273
+
274
+ @project.setter
275
+ def project(self, value: Optional[pulumi.Input[str]]):
276
+ pulumi.set(self, "project", value)
277
+
278
+ @property
279
+ @pulumi.getter
280
+ def role(self) -> Optional[pulumi.Input[str]]:
281
+ """
282
+ The role that should be applied. Only one
283
+ `compute.InstantSnapshotIamBinding` can be used per role. Note that custom roles must be of the format
284
+ `[projects|organizations]/{parent-name}/roles/{role-name}`.
285
+ """
286
+ return pulumi.get(self, "role")
287
+
288
+ @role.setter
289
+ def role(self, value: Optional[pulumi.Input[str]]):
290
+ pulumi.set(self, "role", value)
291
+
292
+ @property
293
+ @pulumi.getter
294
+ def zone(self) -> Optional[pulumi.Input[str]]:
295
+ """
296
+ A reference to the zone where the disk is located. Used to find the parent resource to bind the IAM policy to. If not specified,
297
+ the value will be parsed from the identifier of the parent resource. If no zone is provided in the parent identifier and no
298
+ zone is specified, it is taken from the provider configuration.
299
+ """
300
+ return pulumi.get(self, "zone")
301
+
302
+ @zone.setter
303
+ def zone(self, value: Optional[pulumi.Input[str]]):
304
+ pulumi.set(self, "zone", value)
305
+
306
+
307
+ class InstantSnapshotIamBinding(pulumi.CustomResource):
308
+ @overload
309
+ def __init__(__self__,
310
+ resource_name: str,
311
+ opts: Optional[pulumi.ResourceOptions] = None,
312
+ condition: Optional[pulumi.Input[Union['InstantSnapshotIamBindingConditionArgs', 'InstantSnapshotIamBindingConditionArgsDict']]] = None,
313
+ members: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
314
+ name: Optional[pulumi.Input[str]] = None,
315
+ project: Optional[pulumi.Input[str]] = None,
316
+ role: Optional[pulumi.Input[str]] = None,
317
+ zone: Optional[pulumi.Input[str]] = None,
318
+ __props__=None):
319
+ """
320
+ Three different resources help you manage your IAM policy for Compute Engine InstantSnapshot. Each of these resources serves a different use case:
321
+
322
+ * `compute.InstantSnapshotIamPolicy`: Authoritative. Sets the IAM policy for the instantsnapshot and replaces any existing policy already attached.
323
+ * `compute.InstantSnapshotIamBinding`: 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 instantsnapshot are preserved.
324
+ * `compute.InstantSnapshotIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the instantsnapshot are preserved.
325
+
326
+ A data source can be used to retrieve policy data in advent you do not need creation
327
+
328
+ * `compute.InstantSnapshotIamPolicy`: Retrieves the IAM policy for the instantsnapshot
329
+
330
+ > **Note:** `compute.InstantSnapshotIamPolicy` **cannot** be used in conjunction with `compute.InstantSnapshotIamBinding` and `compute.InstantSnapshotIamMember` or they will fight over what your policy should be.
331
+
332
+ > **Note:** `compute.InstantSnapshotIamBinding` resources **can be** used in conjunction with `compute.InstantSnapshotIamMember` resources **only if** they do not grant privilege to the same role.
333
+
334
+ > **Note:** This resource supports IAM Conditions but they have some known limitations which can be found [here](https://cloud.google.com/iam/docs/conditions-overview#limitations). Please review this article if you are having issues with IAM Conditions.
335
+
336
+ ## compute.InstantSnapshotIamPolicy
337
+
338
+ ```python
339
+ import pulumi
340
+ import pulumi_gcp as gcp
341
+
342
+ admin = gcp.organizations.get_iam_policy(bindings=[{
343
+ "role": "roles/compute.storageAdmin",
344
+ "members": ["user:jane@example.com"],
345
+ }])
346
+ policy = gcp.compute.InstantSnapshotIamPolicy("policy",
347
+ project=default["project"],
348
+ zone=default["zone"],
349
+ name=default["name"],
350
+ policy_data=admin.policy_data)
351
+ ```
352
+
353
+ With IAM Conditions:
354
+
355
+ ```python
356
+ import pulumi
357
+ import pulumi_gcp as gcp
358
+
359
+ admin = gcp.organizations.get_iam_policy(bindings=[{
360
+ "role": "roles/compute.storageAdmin",
361
+ "members": ["user:jane@example.com"],
362
+ "condition": {
363
+ "title": "expires_after_2019_12_31",
364
+ "description": "Expiring at midnight of 2019-12-31",
365
+ "expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
366
+ },
367
+ }])
368
+ policy = gcp.compute.InstantSnapshotIamPolicy("policy",
369
+ project=default["project"],
370
+ zone=default["zone"],
371
+ name=default["name"],
372
+ policy_data=admin.policy_data)
373
+ ```
374
+ ## compute.InstantSnapshotIamBinding
375
+
376
+ ```python
377
+ import pulumi
378
+ import pulumi_gcp as gcp
379
+
380
+ binding = gcp.compute.InstantSnapshotIamBinding("binding",
381
+ project=default["project"],
382
+ zone=default["zone"],
383
+ name=default["name"],
384
+ role="roles/compute.storageAdmin",
385
+ members=["user:jane@example.com"])
386
+ ```
387
+
388
+ With IAM Conditions:
389
+
390
+ ```python
391
+ import pulumi
392
+ import pulumi_gcp as gcp
393
+
394
+ binding = gcp.compute.InstantSnapshotIamBinding("binding",
395
+ project=default["project"],
396
+ zone=default["zone"],
397
+ name=default["name"],
398
+ role="roles/compute.storageAdmin",
399
+ members=["user:jane@example.com"],
400
+ condition={
401
+ "title": "expires_after_2019_12_31",
402
+ "description": "Expiring at midnight of 2019-12-31",
403
+ "expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
404
+ })
405
+ ```
406
+ ## compute.InstantSnapshotIamMember
407
+
408
+ ```python
409
+ import pulumi
410
+ import pulumi_gcp as gcp
411
+
412
+ member = gcp.compute.InstantSnapshotIamMember("member",
413
+ project=default["project"],
414
+ zone=default["zone"],
415
+ name=default["name"],
416
+ role="roles/compute.storageAdmin",
417
+ member="user:jane@example.com")
418
+ ```
419
+
420
+ With IAM Conditions:
421
+
422
+ ```python
423
+ import pulumi
424
+ import pulumi_gcp as gcp
425
+
426
+ member = gcp.compute.InstantSnapshotIamMember("member",
427
+ project=default["project"],
428
+ zone=default["zone"],
429
+ name=default["name"],
430
+ role="roles/compute.storageAdmin",
431
+ member="user:jane@example.com",
432
+ condition={
433
+ "title": "expires_after_2019_12_31",
434
+ "description": "Expiring at midnight of 2019-12-31",
435
+ "expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
436
+ })
437
+ ```
438
+
439
+ ## This resource supports User Project Overrides.
440
+
441
+ -
442
+
443
+ # IAM policy for Compute Engine InstantSnapshot
444
+ Three different resources help you manage your IAM policy for Compute Engine InstantSnapshot. Each of these resources serves a different use case:
445
+
446
+ * `compute.InstantSnapshotIamPolicy`: Authoritative. Sets the IAM policy for the instantsnapshot and replaces any existing policy already attached.
447
+ * `compute.InstantSnapshotIamBinding`: 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 instantsnapshot are preserved.
448
+ * `compute.InstantSnapshotIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the instantsnapshot are preserved.
449
+
450
+ A data source can be used to retrieve policy data in advent you do not need creation
451
+
452
+ * `compute.InstantSnapshotIamPolicy`: Retrieves the IAM policy for the instantsnapshot
453
+
454
+ > **Note:** `compute.InstantSnapshotIamPolicy` **cannot** be used in conjunction with `compute.InstantSnapshotIamBinding` and `compute.InstantSnapshotIamMember` or they will fight over what your policy should be.
455
+
456
+ > **Note:** `compute.InstantSnapshotIamBinding` resources **can be** used in conjunction with `compute.InstantSnapshotIamMember` resources **only if** they do not grant privilege to the same role.
457
+
458
+ > **Note:** This resource supports IAM Conditions but they have some known limitations which can be found [here](https://cloud.google.com/iam/docs/conditions-overview#limitations). Please review this article if you are having issues with IAM Conditions.
459
+
460
+ ## compute.InstantSnapshotIamPolicy
461
+
462
+ ```python
463
+ import pulumi
464
+ import pulumi_gcp as gcp
465
+
466
+ admin = gcp.organizations.get_iam_policy(bindings=[{
467
+ "role": "roles/compute.storageAdmin",
468
+ "members": ["user:jane@example.com"],
469
+ }])
470
+ policy = gcp.compute.InstantSnapshotIamPolicy("policy",
471
+ project=default["project"],
472
+ zone=default["zone"],
473
+ name=default["name"],
474
+ policy_data=admin.policy_data)
475
+ ```
476
+
477
+ With IAM Conditions:
478
+
479
+ ```python
480
+ import pulumi
481
+ import pulumi_gcp as gcp
482
+
483
+ admin = gcp.organizations.get_iam_policy(bindings=[{
484
+ "role": "roles/compute.storageAdmin",
485
+ "members": ["user:jane@example.com"],
486
+ "condition": {
487
+ "title": "expires_after_2019_12_31",
488
+ "description": "Expiring at midnight of 2019-12-31",
489
+ "expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
490
+ },
491
+ }])
492
+ policy = gcp.compute.InstantSnapshotIamPolicy("policy",
493
+ project=default["project"],
494
+ zone=default["zone"],
495
+ name=default["name"],
496
+ policy_data=admin.policy_data)
497
+ ```
498
+ ## compute.InstantSnapshotIamBinding
499
+
500
+ ```python
501
+ import pulumi
502
+ import pulumi_gcp as gcp
503
+
504
+ binding = gcp.compute.InstantSnapshotIamBinding("binding",
505
+ project=default["project"],
506
+ zone=default["zone"],
507
+ name=default["name"],
508
+ role="roles/compute.storageAdmin",
509
+ members=["user:jane@example.com"])
510
+ ```
511
+
512
+ With IAM Conditions:
513
+
514
+ ```python
515
+ import pulumi
516
+ import pulumi_gcp as gcp
517
+
518
+ binding = gcp.compute.InstantSnapshotIamBinding("binding",
519
+ project=default["project"],
520
+ zone=default["zone"],
521
+ name=default["name"],
522
+ role="roles/compute.storageAdmin",
523
+ members=["user:jane@example.com"],
524
+ condition={
525
+ "title": "expires_after_2019_12_31",
526
+ "description": "Expiring at midnight of 2019-12-31",
527
+ "expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
528
+ })
529
+ ```
530
+ ## compute.InstantSnapshotIamMember
531
+
532
+ ```python
533
+ import pulumi
534
+ import pulumi_gcp as gcp
535
+
536
+ member = gcp.compute.InstantSnapshotIamMember("member",
537
+ project=default["project"],
538
+ zone=default["zone"],
539
+ name=default["name"],
540
+ role="roles/compute.storageAdmin",
541
+ member="user:jane@example.com")
542
+ ```
543
+
544
+ With IAM Conditions:
545
+
546
+ ```python
547
+ import pulumi
548
+ import pulumi_gcp as gcp
549
+
550
+ member = gcp.compute.InstantSnapshotIamMember("member",
551
+ project=default["project"],
552
+ zone=default["zone"],
553
+ name=default["name"],
554
+ role="roles/compute.storageAdmin",
555
+ member="user:jane@example.com",
556
+ condition={
557
+ "title": "expires_after_2019_12_31",
558
+ "description": "Expiring at midnight of 2019-12-31",
559
+ "expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
560
+ })
561
+ ```
562
+
563
+ ## Import
564
+
565
+ For all import syntaxes, the "resource in question" can take any of the following forms:
566
+
567
+ * projects/{{project}}/zones/{{zone}}/instantSnapshots/{{name}}
568
+
569
+ * {{project}}/{{zone}}/{{name}}
570
+
571
+ * {{zone}}/{{name}}
572
+
573
+ * {{name}}
574
+
575
+ Any variables not passed in the import command will be taken from the provider configuration.
576
+
577
+ Compute Engine instantsnapshot IAM resources can be imported using the resource identifiers, role, and member.
578
+
579
+ IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
580
+
581
+ ```sh
582
+ $ pulumi import gcp:compute/instantSnapshotIamBinding:InstantSnapshotIamBinding editor "projects/{{project}}/zones/{{zone}}/instantSnapshots/{{instant_snapshot}} roles/compute.storageAdmin user:jane@example.com"
583
+ ```
584
+
585
+ IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
586
+
587
+ ```sh
588
+ $ pulumi import gcp:compute/instantSnapshotIamBinding:InstantSnapshotIamBinding editor "projects/{{project}}/zones/{{zone}}/instantSnapshots/{{instant_snapshot}} roles/compute.storageAdmin"
589
+ ```
590
+
591
+ IAM policy imports use the identifier of the resource in question, e.g.
592
+
593
+ ```sh
594
+ $ pulumi import gcp:compute/instantSnapshotIamBinding:InstantSnapshotIamBinding editor projects/{{project}}/zones/{{zone}}/instantSnapshots/{{instant_snapshot}}
595
+ ```
596
+
597
+ -> **Custom Roles** If you're importing a IAM resource with a custom role, make sure to use the
598
+
599
+ full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
600
+
601
+ :param str resource_name: The name of the resource.
602
+ :param pulumi.ResourceOptions opts: Options for the resource.
603
+ :param pulumi.Input[Union['InstantSnapshotIamBindingConditionArgs', 'InstantSnapshotIamBindingConditionArgsDict']] condition: An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
604
+ Structure is documented below.
605
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] members: Identities that will be granted the privilege in `role`.
606
+ Each entry can have one of the following values:
607
+ * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
608
+ * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
609
+ * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
610
+ * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
611
+ * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
612
+ * **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.
613
+ * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
614
+ * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
615
+ * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
616
+ :param pulumi.Input[str] name: Used to find the parent resource to bind the IAM policy to
617
+ :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
618
+ If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
619
+ :param pulumi.Input[str] role: The role that should be applied. Only one
620
+ `compute.InstantSnapshotIamBinding` can be used per role. Note that custom roles must be of the format
621
+ `[projects|organizations]/{parent-name}/roles/{role-name}`.
622
+ :param pulumi.Input[str] zone: A reference to the zone where the disk is located. Used to find the parent resource to bind the IAM policy to. If not specified,
623
+ the value will be parsed from the identifier of the parent resource. If no zone is provided in the parent identifier and no
624
+ zone is specified, it is taken from the provider configuration.
625
+ """
626
+ ...
627
+ @overload
628
+ def __init__(__self__,
629
+ resource_name: str,
630
+ args: InstantSnapshotIamBindingArgs,
631
+ opts: Optional[pulumi.ResourceOptions] = None):
632
+ """
633
+ Three different resources help you manage your IAM policy for Compute Engine InstantSnapshot. Each of these resources serves a different use case:
634
+
635
+ * `compute.InstantSnapshotIamPolicy`: Authoritative. Sets the IAM policy for the instantsnapshot and replaces any existing policy already attached.
636
+ * `compute.InstantSnapshotIamBinding`: 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 instantsnapshot are preserved.
637
+ * `compute.InstantSnapshotIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the instantsnapshot are preserved.
638
+
639
+ A data source can be used to retrieve policy data in advent you do not need creation
640
+
641
+ * `compute.InstantSnapshotIamPolicy`: Retrieves the IAM policy for the instantsnapshot
642
+
643
+ > **Note:** `compute.InstantSnapshotIamPolicy` **cannot** be used in conjunction with `compute.InstantSnapshotIamBinding` and `compute.InstantSnapshotIamMember` or they will fight over what your policy should be.
644
+
645
+ > **Note:** `compute.InstantSnapshotIamBinding` resources **can be** used in conjunction with `compute.InstantSnapshotIamMember` resources **only if** they do not grant privilege to the same role.
646
+
647
+ > **Note:** This resource supports IAM Conditions but they have some known limitations which can be found [here](https://cloud.google.com/iam/docs/conditions-overview#limitations). Please review this article if you are having issues with IAM Conditions.
648
+
649
+ ## compute.InstantSnapshotIamPolicy
650
+
651
+ ```python
652
+ import pulumi
653
+ import pulumi_gcp as gcp
654
+
655
+ admin = gcp.organizations.get_iam_policy(bindings=[{
656
+ "role": "roles/compute.storageAdmin",
657
+ "members": ["user:jane@example.com"],
658
+ }])
659
+ policy = gcp.compute.InstantSnapshotIamPolicy("policy",
660
+ project=default["project"],
661
+ zone=default["zone"],
662
+ name=default["name"],
663
+ policy_data=admin.policy_data)
664
+ ```
665
+
666
+ With IAM Conditions:
667
+
668
+ ```python
669
+ import pulumi
670
+ import pulumi_gcp as gcp
671
+
672
+ admin = gcp.organizations.get_iam_policy(bindings=[{
673
+ "role": "roles/compute.storageAdmin",
674
+ "members": ["user:jane@example.com"],
675
+ "condition": {
676
+ "title": "expires_after_2019_12_31",
677
+ "description": "Expiring at midnight of 2019-12-31",
678
+ "expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
679
+ },
680
+ }])
681
+ policy = gcp.compute.InstantSnapshotIamPolicy("policy",
682
+ project=default["project"],
683
+ zone=default["zone"],
684
+ name=default["name"],
685
+ policy_data=admin.policy_data)
686
+ ```
687
+ ## compute.InstantSnapshotIamBinding
688
+
689
+ ```python
690
+ import pulumi
691
+ import pulumi_gcp as gcp
692
+
693
+ binding = gcp.compute.InstantSnapshotIamBinding("binding",
694
+ project=default["project"],
695
+ zone=default["zone"],
696
+ name=default["name"],
697
+ role="roles/compute.storageAdmin",
698
+ members=["user:jane@example.com"])
699
+ ```
700
+
701
+ With IAM Conditions:
702
+
703
+ ```python
704
+ import pulumi
705
+ import pulumi_gcp as gcp
706
+
707
+ binding = gcp.compute.InstantSnapshotIamBinding("binding",
708
+ project=default["project"],
709
+ zone=default["zone"],
710
+ name=default["name"],
711
+ role="roles/compute.storageAdmin",
712
+ members=["user:jane@example.com"],
713
+ condition={
714
+ "title": "expires_after_2019_12_31",
715
+ "description": "Expiring at midnight of 2019-12-31",
716
+ "expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
717
+ })
718
+ ```
719
+ ## compute.InstantSnapshotIamMember
720
+
721
+ ```python
722
+ import pulumi
723
+ import pulumi_gcp as gcp
724
+
725
+ member = gcp.compute.InstantSnapshotIamMember("member",
726
+ project=default["project"],
727
+ zone=default["zone"],
728
+ name=default["name"],
729
+ role="roles/compute.storageAdmin",
730
+ member="user:jane@example.com")
731
+ ```
732
+
733
+ With IAM Conditions:
734
+
735
+ ```python
736
+ import pulumi
737
+ import pulumi_gcp as gcp
738
+
739
+ member = gcp.compute.InstantSnapshotIamMember("member",
740
+ project=default["project"],
741
+ zone=default["zone"],
742
+ name=default["name"],
743
+ role="roles/compute.storageAdmin",
744
+ member="user:jane@example.com",
745
+ condition={
746
+ "title": "expires_after_2019_12_31",
747
+ "description": "Expiring at midnight of 2019-12-31",
748
+ "expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
749
+ })
750
+ ```
751
+
752
+ ## This resource supports User Project Overrides.
753
+
754
+ -
755
+
756
+ # IAM policy for Compute Engine InstantSnapshot
757
+ Three different resources help you manage your IAM policy for Compute Engine InstantSnapshot. Each of these resources serves a different use case:
758
+
759
+ * `compute.InstantSnapshotIamPolicy`: Authoritative. Sets the IAM policy for the instantsnapshot and replaces any existing policy already attached.
760
+ * `compute.InstantSnapshotIamBinding`: 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 instantsnapshot are preserved.
761
+ * `compute.InstantSnapshotIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the instantsnapshot are preserved.
762
+
763
+ A data source can be used to retrieve policy data in advent you do not need creation
764
+
765
+ * `compute.InstantSnapshotIamPolicy`: Retrieves the IAM policy for the instantsnapshot
766
+
767
+ > **Note:** `compute.InstantSnapshotIamPolicy` **cannot** be used in conjunction with `compute.InstantSnapshotIamBinding` and `compute.InstantSnapshotIamMember` or they will fight over what your policy should be.
768
+
769
+ > **Note:** `compute.InstantSnapshotIamBinding` resources **can be** used in conjunction with `compute.InstantSnapshotIamMember` resources **only if** they do not grant privilege to the same role.
770
+
771
+ > **Note:** This resource supports IAM Conditions but they have some known limitations which can be found [here](https://cloud.google.com/iam/docs/conditions-overview#limitations). Please review this article if you are having issues with IAM Conditions.
772
+
773
+ ## compute.InstantSnapshotIamPolicy
774
+
775
+ ```python
776
+ import pulumi
777
+ import pulumi_gcp as gcp
778
+
779
+ admin = gcp.organizations.get_iam_policy(bindings=[{
780
+ "role": "roles/compute.storageAdmin",
781
+ "members": ["user:jane@example.com"],
782
+ }])
783
+ policy = gcp.compute.InstantSnapshotIamPolicy("policy",
784
+ project=default["project"],
785
+ zone=default["zone"],
786
+ name=default["name"],
787
+ policy_data=admin.policy_data)
788
+ ```
789
+
790
+ With IAM Conditions:
791
+
792
+ ```python
793
+ import pulumi
794
+ import pulumi_gcp as gcp
795
+
796
+ admin = gcp.organizations.get_iam_policy(bindings=[{
797
+ "role": "roles/compute.storageAdmin",
798
+ "members": ["user:jane@example.com"],
799
+ "condition": {
800
+ "title": "expires_after_2019_12_31",
801
+ "description": "Expiring at midnight of 2019-12-31",
802
+ "expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
803
+ },
804
+ }])
805
+ policy = gcp.compute.InstantSnapshotIamPolicy("policy",
806
+ project=default["project"],
807
+ zone=default["zone"],
808
+ name=default["name"],
809
+ policy_data=admin.policy_data)
810
+ ```
811
+ ## compute.InstantSnapshotIamBinding
812
+
813
+ ```python
814
+ import pulumi
815
+ import pulumi_gcp as gcp
816
+
817
+ binding = gcp.compute.InstantSnapshotIamBinding("binding",
818
+ project=default["project"],
819
+ zone=default["zone"],
820
+ name=default["name"],
821
+ role="roles/compute.storageAdmin",
822
+ members=["user:jane@example.com"])
823
+ ```
824
+
825
+ With IAM Conditions:
826
+
827
+ ```python
828
+ import pulumi
829
+ import pulumi_gcp as gcp
830
+
831
+ binding = gcp.compute.InstantSnapshotIamBinding("binding",
832
+ project=default["project"],
833
+ zone=default["zone"],
834
+ name=default["name"],
835
+ role="roles/compute.storageAdmin",
836
+ members=["user:jane@example.com"],
837
+ condition={
838
+ "title": "expires_after_2019_12_31",
839
+ "description": "Expiring at midnight of 2019-12-31",
840
+ "expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
841
+ })
842
+ ```
843
+ ## compute.InstantSnapshotIamMember
844
+
845
+ ```python
846
+ import pulumi
847
+ import pulumi_gcp as gcp
848
+
849
+ member = gcp.compute.InstantSnapshotIamMember("member",
850
+ project=default["project"],
851
+ zone=default["zone"],
852
+ name=default["name"],
853
+ role="roles/compute.storageAdmin",
854
+ member="user:jane@example.com")
855
+ ```
856
+
857
+ With IAM Conditions:
858
+
859
+ ```python
860
+ import pulumi
861
+ import pulumi_gcp as gcp
862
+
863
+ member = gcp.compute.InstantSnapshotIamMember("member",
864
+ project=default["project"],
865
+ zone=default["zone"],
866
+ name=default["name"],
867
+ role="roles/compute.storageAdmin",
868
+ member="user:jane@example.com",
869
+ condition={
870
+ "title": "expires_after_2019_12_31",
871
+ "description": "Expiring at midnight of 2019-12-31",
872
+ "expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
873
+ })
874
+ ```
875
+
876
+ ## Import
877
+
878
+ For all import syntaxes, the "resource in question" can take any of the following forms:
879
+
880
+ * projects/{{project}}/zones/{{zone}}/instantSnapshots/{{name}}
881
+
882
+ * {{project}}/{{zone}}/{{name}}
883
+
884
+ * {{zone}}/{{name}}
885
+
886
+ * {{name}}
887
+
888
+ Any variables not passed in the import command will be taken from the provider configuration.
889
+
890
+ Compute Engine instantsnapshot IAM resources can be imported using the resource identifiers, role, and member.
891
+
892
+ IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
893
+
894
+ ```sh
895
+ $ pulumi import gcp:compute/instantSnapshotIamBinding:InstantSnapshotIamBinding editor "projects/{{project}}/zones/{{zone}}/instantSnapshots/{{instant_snapshot}} roles/compute.storageAdmin user:jane@example.com"
896
+ ```
897
+
898
+ IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
899
+
900
+ ```sh
901
+ $ pulumi import gcp:compute/instantSnapshotIamBinding:InstantSnapshotIamBinding editor "projects/{{project}}/zones/{{zone}}/instantSnapshots/{{instant_snapshot}} roles/compute.storageAdmin"
902
+ ```
903
+
904
+ IAM policy imports use the identifier of the resource in question, e.g.
905
+
906
+ ```sh
907
+ $ pulumi import gcp:compute/instantSnapshotIamBinding:InstantSnapshotIamBinding editor projects/{{project}}/zones/{{zone}}/instantSnapshots/{{instant_snapshot}}
908
+ ```
909
+
910
+ -> **Custom Roles** If you're importing a IAM resource with a custom role, make sure to use the
911
+
912
+ full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
913
+
914
+ :param str resource_name: The name of the resource.
915
+ :param InstantSnapshotIamBindingArgs args: The arguments to use to populate this resource's properties.
916
+ :param pulumi.ResourceOptions opts: Options for the resource.
917
+ """
918
+ ...
919
+ def __init__(__self__, resource_name: str, *args, **kwargs):
920
+ resource_args, opts = _utilities.get_resource_args_opts(InstantSnapshotIamBindingArgs, pulumi.ResourceOptions, *args, **kwargs)
921
+ if resource_args is not None:
922
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
923
+ else:
924
+ __self__._internal_init(resource_name, *args, **kwargs)
925
+
926
+ def _internal_init(__self__,
927
+ resource_name: str,
928
+ opts: Optional[pulumi.ResourceOptions] = None,
929
+ condition: Optional[pulumi.Input[Union['InstantSnapshotIamBindingConditionArgs', 'InstantSnapshotIamBindingConditionArgsDict']]] = None,
930
+ members: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
931
+ name: Optional[pulumi.Input[str]] = None,
932
+ project: Optional[pulumi.Input[str]] = None,
933
+ role: Optional[pulumi.Input[str]] = None,
934
+ zone: Optional[pulumi.Input[str]] = None,
935
+ __props__=None):
936
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
937
+ if not isinstance(opts, pulumi.ResourceOptions):
938
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
939
+ if opts.id is None:
940
+ if __props__ is not None:
941
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
942
+ __props__ = InstantSnapshotIamBindingArgs.__new__(InstantSnapshotIamBindingArgs)
943
+
944
+ __props__.__dict__["condition"] = condition
945
+ if members is None and not opts.urn:
946
+ raise TypeError("Missing required property 'members'")
947
+ __props__.__dict__["members"] = members
948
+ __props__.__dict__["name"] = name
949
+ __props__.__dict__["project"] = project
950
+ if role is None and not opts.urn:
951
+ raise TypeError("Missing required property 'role'")
952
+ __props__.__dict__["role"] = role
953
+ __props__.__dict__["zone"] = zone
954
+ __props__.__dict__["etag"] = None
955
+ super(InstantSnapshotIamBinding, __self__).__init__(
956
+ 'gcp:compute/instantSnapshotIamBinding:InstantSnapshotIamBinding',
957
+ resource_name,
958
+ __props__,
959
+ opts)
960
+
961
+ @staticmethod
962
+ def get(resource_name: str,
963
+ id: pulumi.Input[str],
964
+ opts: Optional[pulumi.ResourceOptions] = None,
965
+ condition: Optional[pulumi.Input[Union['InstantSnapshotIamBindingConditionArgs', 'InstantSnapshotIamBindingConditionArgsDict']]] = None,
966
+ etag: Optional[pulumi.Input[str]] = None,
967
+ members: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
968
+ name: Optional[pulumi.Input[str]] = None,
969
+ project: Optional[pulumi.Input[str]] = None,
970
+ role: Optional[pulumi.Input[str]] = None,
971
+ zone: Optional[pulumi.Input[str]] = None) -> 'InstantSnapshotIamBinding':
972
+ """
973
+ Get an existing InstantSnapshotIamBinding resource's state with the given name, id, and optional extra
974
+ properties used to qualify the lookup.
975
+
976
+ :param str resource_name: The unique name of the resulting resource.
977
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
978
+ :param pulumi.ResourceOptions opts: Options for the resource.
979
+ :param pulumi.Input[Union['InstantSnapshotIamBindingConditionArgs', 'InstantSnapshotIamBindingConditionArgsDict']] condition: An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
980
+ Structure is documented below.
981
+ :param pulumi.Input[str] etag: (Computed) The etag of the IAM policy.
982
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] members: Identities that will be granted the privilege in `role`.
983
+ Each entry can have one of the following values:
984
+ * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
985
+ * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
986
+ * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
987
+ * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
988
+ * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
989
+ * **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.
990
+ * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
991
+ * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
992
+ * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
993
+ :param pulumi.Input[str] name: Used to find the parent resource to bind the IAM policy to
994
+ :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
995
+ If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
996
+ :param pulumi.Input[str] role: The role that should be applied. Only one
997
+ `compute.InstantSnapshotIamBinding` can be used per role. Note that custom roles must be of the format
998
+ `[projects|organizations]/{parent-name}/roles/{role-name}`.
999
+ :param pulumi.Input[str] zone: A reference to the zone where the disk is located. Used to find the parent resource to bind the IAM policy to. If not specified,
1000
+ the value will be parsed from the identifier of the parent resource. If no zone is provided in the parent identifier and no
1001
+ zone is specified, it is taken from the provider configuration.
1002
+ """
1003
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
1004
+
1005
+ __props__ = _InstantSnapshotIamBindingState.__new__(_InstantSnapshotIamBindingState)
1006
+
1007
+ __props__.__dict__["condition"] = condition
1008
+ __props__.__dict__["etag"] = etag
1009
+ __props__.__dict__["members"] = members
1010
+ __props__.__dict__["name"] = name
1011
+ __props__.__dict__["project"] = project
1012
+ __props__.__dict__["role"] = role
1013
+ __props__.__dict__["zone"] = zone
1014
+ return InstantSnapshotIamBinding(resource_name, opts=opts, __props__=__props__)
1015
+
1016
+ @property
1017
+ @pulumi.getter
1018
+ def condition(self) -> pulumi.Output[Optional['outputs.InstantSnapshotIamBindingCondition']]:
1019
+ """
1020
+ An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
1021
+ Structure is documented below.
1022
+ """
1023
+ return pulumi.get(self, "condition")
1024
+
1025
+ @property
1026
+ @pulumi.getter
1027
+ def etag(self) -> pulumi.Output[str]:
1028
+ """
1029
+ (Computed) The etag of the IAM policy.
1030
+ """
1031
+ return pulumi.get(self, "etag")
1032
+
1033
+ @property
1034
+ @pulumi.getter
1035
+ def members(self) -> pulumi.Output[Sequence[str]]:
1036
+ """
1037
+ Identities that will be granted the privilege in `role`.
1038
+ Each entry can have one of the following values:
1039
+ * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
1040
+ * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
1041
+ * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
1042
+ * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
1043
+ * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
1044
+ * **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.
1045
+ * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
1046
+ * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
1047
+ * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
1048
+ """
1049
+ return pulumi.get(self, "members")
1050
+
1051
+ @property
1052
+ @pulumi.getter
1053
+ def name(self) -> pulumi.Output[str]:
1054
+ """
1055
+ Used to find the parent resource to bind the IAM policy to
1056
+ """
1057
+ return pulumi.get(self, "name")
1058
+
1059
+ @property
1060
+ @pulumi.getter
1061
+ def project(self) -> pulumi.Output[str]:
1062
+ """
1063
+ The ID of the project in which the resource belongs.
1064
+ If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
1065
+ """
1066
+ return pulumi.get(self, "project")
1067
+
1068
+ @property
1069
+ @pulumi.getter
1070
+ def role(self) -> pulumi.Output[str]:
1071
+ """
1072
+ The role that should be applied. Only one
1073
+ `compute.InstantSnapshotIamBinding` can be used per role. Note that custom roles must be of the format
1074
+ `[projects|organizations]/{parent-name}/roles/{role-name}`.
1075
+ """
1076
+ return pulumi.get(self, "role")
1077
+
1078
+ @property
1079
+ @pulumi.getter
1080
+ def zone(self) -> pulumi.Output[str]:
1081
+ """
1082
+ A reference to the zone where the disk is located. Used to find the parent resource to bind the IAM policy to. If not specified,
1083
+ the value will be parsed from the identifier of the parent resource. If no zone is provided in the parent identifier and no
1084
+ zone is specified, it is taken from the provider configuration.
1085
+ """
1086
+ return pulumi.get(self, "zone")
1087
+