pulumi-gcp 7.30.0a1719958694__py3-none-any.whl → 7.30.0a1720075632__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_gcp/compute/region_disk_iam_binding.py +122 -95
- pulumi_gcp/compute/region_disk_iam_member.py +122 -95
- pulumi_gcp/compute/region_disk_iam_policy.py +115 -88
- pulumi_gcp/gkebackup/restore_plan_iam_binding.py +328 -953
- pulumi_gcp/gkebackup/restore_plan_iam_member.py +328 -953
- pulumi_gcp/gkebackup/restore_plan_iam_policy.py +238 -953
- pulumi_gcp/networksecurity/address_group_iam_binding.py +289 -2
- pulumi_gcp/networksecurity/address_group_iam_member.py +289 -2
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/sourcerepo/repository_iam_binding.py +92 -83
- pulumi_gcp/sourcerepo/repository_iam_member.py +92 -83
- pulumi_gcp/sourcerepo/repository_iam_policy.py +85 -76
- {pulumi_gcp-7.30.0a1719958694.dist-info → pulumi_gcp-7.30.0a1720075632.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.30.0a1719958694.dist-info → pulumi_gcp-7.30.0a1720075632.dist-info}/RECORD +16 -16
- {pulumi_gcp-7.30.0a1719958694.dist-info → pulumi_gcp-7.30.0a1720075632.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.30.0a1719958694.dist-info → pulumi_gcp-7.30.0a1720075632.dist-info}/top_level.txt +0 -0
@@ -41,11 +41,14 @@ class RegionDiskIamMemberArgs:
|
|
41
41
|
* **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
|
42
42
|
* **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
|
43
43
|
:param pulumi.Input[str] role: The role that should be applied. Only one
|
44
|
-
`compute.
|
44
|
+
`compute.RegionDiskIamBinding` can be used per role. Note that custom roles must be of the format
|
45
45
|
`[projects|organizations]/{parent-name}/roles/{role-name}`.
|
46
46
|
:param pulumi.Input[str] name: Used to find the parent resource to bind the IAM policy to
|
47
47
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
48
48
|
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.
|
49
|
+
:param pulumi.Input[str] region: A reference to the region where the disk resides. Used to find the parent resource to bind the IAM policy to. If not specified,
|
50
|
+
the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
51
|
+
region is specified, it is taken from the provider configuration.
|
49
52
|
"""
|
50
53
|
pulumi.set(__self__, "member", member)
|
51
54
|
pulumi.set(__self__, "role", role)
|
@@ -85,7 +88,7 @@ class RegionDiskIamMemberArgs:
|
|
85
88
|
def role(self) -> pulumi.Input[str]:
|
86
89
|
"""
|
87
90
|
The role that should be applied. Only one
|
88
|
-
`compute.
|
91
|
+
`compute.RegionDiskIamBinding` can be used per role. Note that custom roles must be of the format
|
89
92
|
`[projects|organizations]/{parent-name}/roles/{role-name}`.
|
90
93
|
"""
|
91
94
|
return pulumi.get(self, "role")
|
@@ -131,6 +134,11 @@ class RegionDiskIamMemberArgs:
|
|
131
134
|
@property
|
132
135
|
@pulumi.getter
|
133
136
|
def region(self) -> Optional[pulumi.Input[str]]:
|
137
|
+
"""
|
138
|
+
A reference to the region where the disk resides. Used to find the parent resource to bind the IAM policy to. If not specified,
|
139
|
+
the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
140
|
+
region is specified, it is taken from the provider configuration.
|
141
|
+
"""
|
134
142
|
return pulumi.get(self, "region")
|
135
143
|
|
136
144
|
@region.setter
|
@@ -165,8 +173,11 @@ class _RegionDiskIamMemberState:
|
|
165
173
|
:param pulumi.Input[str] name: Used to find the parent resource to bind the IAM policy to
|
166
174
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
167
175
|
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.
|
176
|
+
:param pulumi.Input[str] region: A reference to the region where the disk resides. Used to find the parent resource to bind the IAM policy to. If not specified,
|
177
|
+
the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
178
|
+
region is specified, it is taken from the provider configuration.
|
168
179
|
:param pulumi.Input[str] role: The role that should be applied. Only one
|
169
|
-
`compute.
|
180
|
+
`compute.RegionDiskIamBinding` can be used per role. Note that custom roles must be of the format
|
170
181
|
`[projects|organizations]/{parent-name}/roles/{role-name}`.
|
171
182
|
"""
|
172
183
|
if condition is not None:
|
@@ -255,6 +266,11 @@ class _RegionDiskIamMemberState:
|
|
255
266
|
@property
|
256
267
|
@pulumi.getter
|
257
268
|
def region(self) -> Optional[pulumi.Input[str]]:
|
269
|
+
"""
|
270
|
+
A reference to the region where the disk resides. Used to find the parent resource to bind the IAM policy to. If not specified,
|
271
|
+
the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
272
|
+
region is specified, it is taken from the provider configuration.
|
273
|
+
"""
|
258
274
|
return pulumi.get(self, "region")
|
259
275
|
|
260
276
|
@region.setter
|
@@ -266,7 +282,7 @@ class _RegionDiskIamMemberState:
|
|
266
282
|
def role(self) -> Optional[pulumi.Input[str]]:
|
267
283
|
"""
|
268
284
|
The role that should be applied. Only one
|
269
|
-
`compute.
|
285
|
+
`compute.RegionDiskIamBinding` can be used per role. Note that custom roles must be of the format
|
270
286
|
`[projects|organizations]/{parent-name}/roles/{role-name}`.
|
271
287
|
"""
|
272
288
|
return pulumi.get(self, "role")
|
@@ -289,21 +305,21 @@ class RegionDiskIamMember(pulumi.CustomResource):
|
|
289
305
|
role: Optional[pulumi.Input[str]] = None,
|
290
306
|
__props__=None):
|
291
307
|
"""
|
292
|
-
Three different resources help you manage your IAM policy for Compute Engine
|
308
|
+
Three different resources help you manage your IAM policy for Compute Engine RegionDisk. Each of these resources serves a different use case:
|
293
309
|
|
294
|
-
* `compute.
|
295
|
-
* `compute.
|
296
|
-
* `compute.
|
310
|
+
* `compute.RegionDiskIamPolicy`: Authoritative. Sets the IAM policy for the regiondisk and replaces any existing policy already attached.
|
311
|
+
* `compute.RegionDiskIamBinding`: 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 regiondisk are preserved.
|
312
|
+
* `compute.RegionDiskIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the regiondisk are preserved.
|
297
313
|
|
298
314
|
A data source can be used to retrieve policy data in advent you do not need creation
|
299
315
|
|
300
|
-
* `compute.
|
316
|
+
* `compute.RegionDiskIamPolicy`: Retrieves the IAM policy for the regiondisk
|
301
317
|
|
302
|
-
> **Note:** `compute.
|
318
|
+
> **Note:** `compute.RegionDiskIamPolicy` **cannot** be used in conjunction with `compute.RegionDiskIamBinding` and `compute.RegionDiskIamMember` or they will fight over what your policy should be.
|
303
319
|
|
304
|
-
> **Note:** `compute.
|
320
|
+
> **Note:** `compute.RegionDiskIamBinding` resources **can be** used in conjunction with `compute.RegionDiskIamMember` resources **only if** they do not grant privilege to the same role.
|
305
321
|
|
306
|
-
## compute.
|
322
|
+
## compute.RegionDiskIamPolicy
|
307
323
|
|
308
324
|
```python
|
309
325
|
import pulumi
|
@@ -313,42 +329,42 @@ class RegionDiskIamMember(pulumi.CustomResource):
|
|
313
329
|
"role": "roles/viewer",
|
314
330
|
"members": ["user:jane@example.com"],
|
315
331
|
}])
|
316
|
-
policy = gcp.compute.
|
317
|
-
project=
|
318
|
-
|
319
|
-
name=
|
332
|
+
policy = gcp.compute.RegionDiskIamPolicy("policy",
|
333
|
+
project=regiondisk["project"],
|
334
|
+
region=regiondisk["region"],
|
335
|
+
name=regiondisk["name"],
|
320
336
|
policy_data=admin.policy_data)
|
321
337
|
```
|
322
338
|
|
323
|
-
## compute.
|
339
|
+
## compute.RegionDiskIamBinding
|
324
340
|
|
325
341
|
```python
|
326
342
|
import pulumi
|
327
343
|
import pulumi_gcp as gcp
|
328
344
|
|
329
|
-
binding = gcp.compute.
|
330
|
-
project=
|
331
|
-
|
332
|
-
name=
|
345
|
+
binding = gcp.compute.RegionDiskIamBinding("binding",
|
346
|
+
project=regiondisk["project"],
|
347
|
+
region=regiondisk["region"],
|
348
|
+
name=regiondisk["name"],
|
333
349
|
role="roles/viewer",
|
334
350
|
members=["user:jane@example.com"])
|
335
351
|
```
|
336
352
|
|
337
|
-
## compute.
|
353
|
+
## compute.RegionDiskIamMember
|
338
354
|
|
339
355
|
```python
|
340
356
|
import pulumi
|
341
357
|
import pulumi_gcp as gcp
|
342
358
|
|
343
|
-
member = gcp.compute.
|
344
|
-
project=
|
345
|
-
|
346
|
-
name=
|
359
|
+
member = gcp.compute.RegionDiskIamMember("member",
|
360
|
+
project=regiondisk["project"],
|
361
|
+
region=regiondisk["region"],
|
362
|
+
name=regiondisk["name"],
|
347
363
|
role="roles/viewer",
|
348
364
|
member="user:jane@example.com")
|
349
365
|
```
|
350
366
|
|
351
|
-
## compute.
|
367
|
+
## compute.RegionDiskIamPolicy
|
352
368
|
|
353
369
|
```python
|
354
370
|
import pulumi
|
@@ -358,37 +374,37 @@ class RegionDiskIamMember(pulumi.CustomResource):
|
|
358
374
|
"role": "roles/viewer",
|
359
375
|
"members": ["user:jane@example.com"],
|
360
376
|
}])
|
361
|
-
policy = gcp.compute.
|
362
|
-
project=
|
363
|
-
|
364
|
-
name=
|
377
|
+
policy = gcp.compute.RegionDiskIamPolicy("policy",
|
378
|
+
project=regiondisk["project"],
|
379
|
+
region=regiondisk["region"],
|
380
|
+
name=regiondisk["name"],
|
365
381
|
policy_data=admin.policy_data)
|
366
382
|
```
|
367
383
|
|
368
|
-
## compute.
|
384
|
+
## compute.RegionDiskIamBinding
|
369
385
|
|
370
386
|
```python
|
371
387
|
import pulumi
|
372
388
|
import pulumi_gcp as gcp
|
373
389
|
|
374
|
-
binding = gcp.compute.
|
375
|
-
project=
|
376
|
-
|
377
|
-
name=
|
390
|
+
binding = gcp.compute.RegionDiskIamBinding("binding",
|
391
|
+
project=regiondisk["project"],
|
392
|
+
region=regiondisk["region"],
|
393
|
+
name=regiondisk["name"],
|
378
394
|
role="roles/viewer",
|
379
395
|
members=["user:jane@example.com"])
|
380
396
|
```
|
381
397
|
|
382
|
-
## compute.
|
398
|
+
## compute.RegionDiskIamMember
|
383
399
|
|
384
400
|
```python
|
385
401
|
import pulumi
|
386
402
|
import pulumi_gcp as gcp
|
387
403
|
|
388
|
-
member = gcp.compute.
|
389
|
-
project=
|
390
|
-
|
391
|
-
name=
|
404
|
+
member = gcp.compute.RegionDiskIamMember("member",
|
405
|
+
project=regiondisk["project"],
|
406
|
+
region=regiondisk["region"],
|
407
|
+
name=regiondisk["name"],
|
392
408
|
role="roles/viewer",
|
393
409
|
member="user:jane@example.com")
|
394
410
|
```
|
@@ -397,34 +413,34 @@ class RegionDiskIamMember(pulumi.CustomResource):
|
|
397
413
|
|
398
414
|
For all import syntaxes, the "resource in question" can take any of the following forms:
|
399
415
|
|
400
|
-
* projects/{{project}}/
|
416
|
+
* projects/{{project}}/regions/{{region}}/disks/{{name}}
|
401
417
|
|
402
|
-
* {{project}}/{{
|
418
|
+
* {{project}}/{{region}}/{{name}}
|
403
419
|
|
404
|
-
* {{
|
420
|
+
* {{region}}/{{name}}
|
405
421
|
|
406
422
|
* {{name}}
|
407
423
|
|
408
424
|
Any variables not passed in the import command will be taken from the provider configuration.
|
409
425
|
|
410
|
-
Compute Engine
|
426
|
+
Compute Engine regiondisk IAM resources can be imported using the resource identifiers, role, and member.
|
411
427
|
|
412
428
|
IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
|
413
429
|
|
414
430
|
```sh
|
415
|
-
$ pulumi import gcp:compute/regionDiskIamMember:RegionDiskIamMember editor "projects/{{project}}/
|
431
|
+
$ pulumi import gcp:compute/regionDiskIamMember:RegionDiskIamMember editor "projects/{{project}}/regions/{{region}}/disks/{{region_disk}} roles/viewer user:jane@example.com"
|
416
432
|
```
|
417
433
|
|
418
434
|
IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
|
419
435
|
|
420
436
|
```sh
|
421
|
-
$ pulumi import gcp:compute/regionDiskIamMember:RegionDiskIamMember editor "projects/{{project}}/
|
437
|
+
$ pulumi import gcp:compute/regionDiskIamMember:RegionDiskIamMember editor "projects/{{project}}/regions/{{region}}/disks/{{region_disk}} roles/viewer"
|
422
438
|
```
|
423
439
|
|
424
440
|
IAM policy imports use the identifier of the resource in question, e.g.
|
425
441
|
|
426
442
|
```sh
|
427
|
-
$ pulumi import gcp:compute/regionDiskIamMember:RegionDiskIamMember editor projects/{{project}}/
|
443
|
+
$ pulumi import gcp:compute/regionDiskIamMember:RegionDiskIamMember editor projects/{{project}}/regions/{{region}}/disks/{{region_disk}}
|
428
444
|
```
|
429
445
|
|
430
446
|
-> **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
|
@@ -447,8 +463,11 @@ class RegionDiskIamMember(pulumi.CustomResource):
|
|
447
463
|
:param pulumi.Input[str] name: Used to find the parent resource to bind the IAM policy to
|
448
464
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
449
465
|
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.
|
466
|
+
:param pulumi.Input[str] region: A reference to the region where the disk resides. Used to find the parent resource to bind the IAM policy to. If not specified,
|
467
|
+
the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
468
|
+
region is specified, it is taken from the provider configuration.
|
450
469
|
:param pulumi.Input[str] role: The role that should be applied. Only one
|
451
|
-
`compute.
|
470
|
+
`compute.RegionDiskIamBinding` can be used per role. Note that custom roles must be of the format
|
452
471
|
`[projects|organizations]/{parent-name}/roles/{role-name}`.
|
453
472
|
"""
|
454
473
|
...
|
@@ -458,21 +477,21 @@ class RegionDiskIamMember(pulumi.CustomResource):
|
|
458
477
|
args: RegionDiskIamMemberArgs,
|
459
478
|
opts: Optional[pulumi.ResourceOptions] = None):
|
460
479
|
"""
|
461
|
-
Three different resources help you manage your IAM policy for Compute Engine
|
480
|
+
Three different resources help you manage your IAM policy for Compute Engine RegionDisk. Each of these resources serves a different use case:
|
462
481
|
|
463
|
-
* `compute.
|
464
|
-
* `compute.
|
465
|
-
* `compute.
|
482
|
+
* `compute.RegionDiskIamPolicy`: Authoritative. Sets the IAM policy for the regiondisk and replaces any existing policy already attached.
|
483
|
+
* `compute.RegionDiskIamBinding`: 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 regiondisk are preserved.
|
484
|
+
* `compute.RegionDiskIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the regiondisk are preserved.
|
466
485
|
|
467
486
|
A data source can be used to retrieve policy data in advent you do not need creation
|
468
487
|
|
469
|
-
* `compute.
|
488
|
+
* `compute.RegionDiskIamPolicy`: Retrieves the IAM policy for the regiondisk
|
470
489
|
|
471
|
-
> **Note:** `compute.
|
490
|
+
> **Note:** `compute.RegionDiskIamPolicy` **cannot** be used in conjunction with `compute.RegionDiskIamBinding` and `compute.RegionDiskIamMember` or they will fight over what your policy should be.
|
472
491
|
|
473
|
-
> **Note:** `compute.
|
492
|
+
> **Note:** `compute.RegionDiskIamBinding` resources **can be** used in conjunction with `compute.RegionDiskIamMember` resources **only if** they do not grant privilege to the same role.
|
474
493
|
|
475
|
-
## compute.
|
494
|
+
## compute.RegionDiskIamPolicy
|
476
495
|
|
477
496
|
```python
|
478
497
|
import pulumi
|
@@ -482,42 +501,42 @@ class RegionDiskIamMember(pulumi.CustomResource):
|
|
482
501
|
"role": "roles/viewer",
|
483
502
|
"members": ["user:jane@example.com"],
|
484
503
|
}])
|
485
|
-
policy = gcp.compute.
|
486
|
-
project=
|
487
|
-
|
488
|
-
name=
|
504
|
+
policy = gcp.compute.RegionDiskIamPolicy("policy",
|
505
|
+
project=regiondisk["project"],
|
506
|
+
region=regiondisk["region"],
|
507
|
+
name=regiondisk["name"],
|
489
508
|
policy_data=admin.policy_data)
|
490
509
|
```
|
491
510
|
|
492
|
-
## compute.
|
511
|
+
## compute.RegionDiskIamBinding
|
493
512
|
|
494
513
|
```python
|
495
514
|
import pulumi
|
496
515
|
import pulumi_gcp as gcp
|
497
516
|
|
498
|
-
binding = gcp.compute.
|
499
|
-
project=
|
500
|
-
|
501
|
-
name=
|
517
|
+
binding = gcp.compute.RegionDiskIamBinding("binding",
|
518
|
+
project=regiondisk["project"],
|
519
|
+
region=regiondisk["region"],
|
520
|
+
name=regiondisk["name"],
|
502
521
|
role="roles/viewer",
|
503
522
|
members=["user:jane@example.com"])
|
504
523
|
```
|
505
524
|
|
506
|
-
## compute.
|
525
|
+
## compute.RegionDiskIamMember
|
507
526
|
|
508
527
|
```python
|
509
528
|
import pulumi
|
510
529
|
import pulumi_gcp as gcp
|
511
530
|
|
512
|
-
member = gcp.compute.
|
513
|
-
project=
|
514
|
-
|
515
|
-
name=
|
531
|
+
member = gcp.compute.RegionDiskIamMember("member",
|
532
|
+
project=regiondisk["project"],
|
533
|
+
region=regiondisk["region"],
|
534
|
+
name=regiondisk["name"],
|
516
535
|
role="roles/viewer",
|
517
536
|
member="user:jane@example.com")
|
518
537
|
```
|
519
538
|
|
520
|
-
## compute.
|
539
|
+
## compute.RegionDiskIamPolicy
|
521
540
|
|
522
541
|
```python
|
523
542
|
import pulumi
|
@@ -527,37 +546,37 @@ class RegionDiskIamMember(pulumi.CustomResource):
|
|
527
546
|
"role": "roles/viewer",
|
528
547
|
"members": ["user:jane@example.com"],
|
529
548
|
}])
|
530
|
-
policy = gcp.compute.
|
531
|
-
project=
|
532
|
-
|
533
|
-
name=
|
549
|
+
policy = gcp.compute.RegionDiskIamPolicy("policy",
|
550
|
+
project=regiondisk["project"],
|
551
|
+
region=regiondisk["region"],
|
552
|
+
name=regiondisk["name"],
|
534
553
|
policy_data=admin.policy_data)
|
535
554
|
```
|
536
555
|
|
537
|
-
## compute.
|
556
|
+
## compute.RegionDiskIamBinding
|
538
557
|
|
539
558
|
```python
|
540
559
|
import pulumi
|
541
560
|
import pulumi_gcp as gcp
|
542
561
|
|
543
|
-
binding = gcp.compute.
|
544
|
-
project=
|
545
|
-
|
546
|
-
name=
|
562
|
+
binding = gcp.compute.RegionDiskIamBinding("binding",
|
563
|
+
project=regiondisk["project"],
|
564
|
+
region=regiondisk["region"],
|
565
|
+
name=regiondisk["name"],
|
547
566
|
role="roles/viewer",
|
548
567
|
members=["user:jane@example.com"])
|
549
568
|
```
|
550
569
|
|
551
|
-
## compute.
|
570
|
+
## compute.RegionDiskIamMember
|
552
571
|
|
553
572
|
```python
|
554
573
|
import pulumi
|
555
574
|
import pulumi_gcp as gcp
|
556
575
|
|
557
|
-
member = gcp.compute.
|
558
|
-
project=
|
559
|
-
|
560
|
-
name=
|
576
|
+
member = gcp.compute.RegionDiskIamMember("member",
|
577
|
+
project=regiondisk["project"],
|
578
|
+
region=regiondisk["region"],
|
579
|
+
name=regiondisk["name"],
|
561
580
|
role="roles/viewer",
|
562
581
|
member="user:jane@example.com")
|
563
582
|
```
|
@@ -566,34 +585,34 @@ class RegionDiskIamMember(pulumi.CustomResource):
|
|
566
585
|
|
567
586
|
For all import syntaxes, the "resource in question" can take any of the following forms:
|
568
587
|
|
569
|
-
* projects/{{project}}/
|
588
|
+
* projects/{{project}}/regions/{{region}}/disks/{{name}}
|
570
589
|
|
571
|
-
* {{project}}/{{
|
590
|
+
* {{project}}/{{region}}/{{name}}
|
572
591
|
|
573
|
-
* {{
|
592
|
+
* {{region}}/{{name}}
|
574
593
|
|
575
594
|
* {{name}}
|
576
595
|
|
577
596
|
Any variables not passed in the import command will be taken from the provider configuration.
|
578
597
|
|
579
|
-
Compute Engine
|
598
|
+
Compute Engine regiondisk IAM resources can be imported using the resource identifiers, role, and member.
|
580
599
|
|
581
600
|
IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
|
582
601
|
|
583
602
|
```sh
|
584
|
-
$ pulumi import gcp:compute/regionDiskIamMember:RegionDiskIamMember editor "projects/{{project}}/
|
603
|
+
$ pulumi import gcp:compute/regionDiskIamMember:RegionDiskIamMember editor "projects/{{project}}/regions/{{region}}/disks/{{region_disk}} roles/viewer user:jane@example.com"
|
585
604
|
```
|
586
605
|
|
587
606
|
IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
|
588
607
|
|
589
608
|
```sh
|
590
|
-
$ pulumi import gcp:compute/regionDiskIamMember:RegionDiskIamMember editor "projects/{{project}}/
|
609
|
+
$ pulumi import gcp:compute/regionDiskIamMember:RegionDiskIamMember editor "projects/{{project}}/regions/{{region}}/disks/{{region_disk}} roles/viewer"
|
591
610
|
```
|
592
611
|
|
593
612
|
IAM policy imports use the identifier of the resource in question, e.g.
|
594
613
|
|
595
614
|
```sh
|
596
|
-
$ pulumi import gcp:compute/regionDiskIamMember:RegionDiskIamMember editor projects/{{project}}/
|
615
|
+
$ pulumi import gcp:compute/regionDiskIamMember:RegionDiskIamMember editor projects/{{project}}/regions/{{region}}/disks/{{region_disk}}
|
597
616
|
```
|
598
617
|
|
599
618
|
-> **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
|
@@ -680,8 +699,11 @@ class RegionDiskIamMember(pulumi.CustomResource):
|
|
680
699
|
:param pulumi.Input[str] name: Used to find the parent resource to bind the IAM policy to
|
681
700
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
682
701
|
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.
|
702
|
+
:param pulumi.Input[str] region: A reference to the region where the disk resides. Used to find the parent resource to bind the IAM policy to. If not specified,
|
703
|
+
the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
704
|
+
region is specified, it is taken from the provider configuration.
|
683
705
|
:param pulumi.Input[str] role: The role that should be applied. Only one
|
684
|
-
`compute.
|
706
|
+
`compute.RegionDiskIamBinding` can be used per role. Note that custom roles must be of the format
|
685
707
|
`[projects|organizations]/{parent-name}/roles/{role-name}`.
|
686
708
|
"""
|
687
709
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
@@ -748,6 +770,11 @@ class RegionDiskIamMember(pulumi.CustomResource):
|
|
748
770
|
@property
|
749
771
|
@pulumi.getter
|
750
772
|
def region(self) -> pulumi.Output[str]:
|
773
|
+
"""
|
774
|
+
A reference to the region where the disk resides. Used to find the parent resource to bind the IAM policy to. If not specified,
|
775
|
+
the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
776
|
+
region is specified, it is taken from the provider configuration.
|
777
|
+
"""
|
751
778
|
return pulumi.get(self, "region")
|
752
779
|
|
753
780
|
@property
|
@@ -755,7 +782,7 @@ class RegionDiskIamMember(pulumi.CustomResource):
|
|
755
782
|
def role(self) -> pulumi.Output[str]:
|
756
783
|
"""
|
757
784
|
The role that should be applied. Only one
|
758
|
-
`compute.
|
785
|
+
`compute.RegionDiskIamBinding` can be used per role. Note that custom roles must be of the format
|
759
786
|
`[projects|organizations]/{parent-name}/roles/{role-name}`.
|
760
787
|
"""
|
761
788
|
return pulumi.get(self, "role")
|