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