pulumi-gcp 8.42.0a1758133038__py3-none-any.whl → 9.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_gcp/__init__.py +83 -48
- pulumi_gcp/activedirectory/peering.py +16 -0
- pulumi_gcp/alloydb/backup.py +8 -4
- pulumi_gcp/alloydb/cluster.py +56 -10
- pulumi_gcp/alloydb/get_cluster.py +12 -1
- pulumi_gcp/alloydb/instance.py +10 -4
- pulumi_gcp/alloydb/user.py +8 -4
- pulumi_gcp/apigateway/api_config_iam_binding.py +4 -4
- pulumi_gcp/apigateway/api_config_iam_member.py +4 -4
- pulumi_gcp/apigateway/api_config_iam_policy.py +4 -4
- pulumi_gcp/apigateway/api_iam_binding.py +4 -4
- pulumi_gcp/apigateway/api_iam_member.py +4 -4
- pulumi_gcp/apigateway/api_iam_policy.py +4 -4
- pulumi_gcp/apigateway/gateway_iam_binding.py +4 -4
- pulumi_gcp/apigateway/gateway_iam_member.py +4 -4
- pulumi_gcp/apigateway/gateway_iam_policy.py +4 -4
- pulumi_gcp/apigee/_inputs.py +151 -108
- pulumi_gcp/apigee/keystores_aliases_key_cert_file.py +52 -40
- pulumi_gcp/apigee/outputs.py +92 -88
- pulumi_gcp/artifactregistry/__init__.py +2 -0
- pulumi_gcp/artifactregistry/_inputs.py +0 -12
- pulumi_gcp/artifactregistry/get_npm_package.py +251 -0
- pulumi_gcp/artifactregistry/get_python_package.py +237 -0
- pulumi_gcp/artifactregistry/get_repository.py +12 -1
- pulumi_gcp/artifactregistry/outputs.py +8 -16
- pulumi_gcp/artifactregistry/repository.py +28 -0
- pulumi_gcp/backupdisasterrecovery/__init__.py +1 -0
- pulumi_gcp/backupdisasterrecovery/backup_plan.py +4 -4
- pulumi_gcp/backupdisasterrecovery/get_backup.py +12 -1
- pulumi_gcp/backupdisasterrecovery/get_backup_plan_association.py +4 -0
- pulumi_gcp/backupdisasterrecovery/get_data_source_references.py +135 -0
- pulumi_gcp/backupdisasterrecovery/get_management_server.py +4 -0
- pulumi_gcp/backupdisasterrecovery/outputs.py +103 -0
- pulumi_gcp/beyondcorp/__init__.py +0 -5
- pulumi_gcp/beyondcorp/_inputs.py +0 -312
- pulumi_gcp/beyondcorp/outputs.py +0 -200
- pulumi_gcp/bigquery/_inputs.py +114 -4
- pulumi_gcp/bigquery/app_profile.py +3 -5
- pulumi_gcp/bigquery/outputs.py +75 -5
- pulumi_gcp/bigqueryanalyticshub/data_exchange_subscription.py +20 -0
- pulumi_gcp/bigtable/app_profile.py +1 -1
- pulumi_gcp/bigtable/get_table_iam_policy.py +16 -18
- pulumi_gcp/bigtable/table_iam_binding.py +43 -43
- pulumi_gcp/bigtable/table_iam_member.py +43 -43
- pulumi_gcp/bigtable/table_iam_policy.py +43 -43
- pulumi_gcp/billing/_inputs.py +0 -6
- pulumi_gcp/billing/outputs.py +0 -4
- pulumi_gcp/certificatemanager/__init__.py +1 -0
- pulumi_gcp/certificatemanager/certificate_map_entry.py +7 -7
- pulumi_gcp/certificatemanager/get_dns_authorization.py +229 -0
- pulumi_gcp/certificatemanager/outputs.py +41 -0
- pulumi_gcp/chronicle/_inputs.py +6 -5
- pulumi_gcp/chronicle/outputs.py +4 -3
- pulumi_gcp/chronicle/reference_list.py +53 -5
- pulumi_gcp/cloudasset/get_resources_search_all.py +8 -0
- pulumi_gcp/cloudbuild/_inputs.py +309 -45
- pulumi_gcp/cloudbuild/bitbucket_server_config.py +2 -6
- pulumi_gcp/cloudbuild/get_trigger.py +12 -1
- pulumi_gcp/cloudbuild/outputs.py +380 -30
- pulumi_gcp/cloudbuild/trigger.py +160 -2
- pulumi_gcp/cloudbuild/worker_pool.py +2 -6
- pulumi_gcp/cloudfunctionsv2/_inputs.py +23 -21
- pulumi_gcp/cloudfunctionsv2/outputs.py +17 -16
- pulumi_gcp/cloudquota/s_quota_adjuster_settings.py +16 -0
- pulumi_gcp/cloudrunv2/_inputs.py +80 -26
- pulumi_gcp/cloudrunv2/get_service.py +12 -1
- pulumi_gcp/cloudrunv2/outputs.py +109 -30
- pulumi_gcp/cloudrunv2/service.py +72 -12
- pulumi_gcp/cloudrunv2/worker_pool.py +2 -2
- pulumi_gcp/cloudtasks/queue.py +98 -2
- pulumi_gcp/colab/_inputs.py +1 -114
- pulumi_gcp/colab/outputs.py +1 -106
- pulumi_gcp/compute/_inputs.py +884 -24
- pulumi_gcp/compute/backend_bucket.py +68 -0
- pulumi_gcp/compute/backend_bucket_iam_binding.py +236 -0
- pulumi_gcp/compute/backend_bucket_iam_member.py +236 -0
- pulumi_gcp/compute/backend_bucket_iam_policy.py +236 -0
- pulumi_gcp/compute/backend_service.py +54 -0
- pulumi_gcp/compute/backend_service_iam_binding.py +464 -0
- pulumi_gcp/compute/backend_service_iam_member.py +464 -0
- pulumi_gcp/compute/backend_service_iam_policy.py +464 -0
- pulumi_gcp/compute/cross_site_network.py +16 -0
- pulumi_gcp/compute/future_reservation.py +32 -0
- pulumi_gcp/compute/get_backend_bucket.py +12 -1
- pulumi_gcp/compute/get_backend_service.py +12 -1
- pulumi_gcp/compute/get_region_backend_service.py +12 -1
- pulumi_gcp/compute/get_resource_policy.py +2 -20
- pulumi_gcp/compute/machine_image_iam_binding.py +8 -4
- pulumi_gcp/compute/machine_image_iam_member.py +8 -4
- pulumi_gcp/compute/machine_image_iam_policy.py +8 -4
- pulumi_gcp/compute/network_edge_security_service.py +16 -0
- pulumi_gcp/compute/network_firewall_policy_packet_mirroring_rule.py +12 -0
- pulumi_gcp/compute/network_peering_routes_config.py +0 -100
- pulumi_gcp/compute/organization_security_policy.py +83 -51
- pulumi_gcp/compute/outputs.py +799 -16
- pulumi_gcp/compute/packet_mirroring.py +6 -0
- pulumi_gcp/compute/preview_feature.py +16 -0
- pulumi_gcp/compute/public_delegated_prefix.py +42 -0
- pulumi_gcp/compute/region_backend_service.py +54 -0
- pulumi_gcp/compute/region_backend_service_iam_binding.py +488 -0
- pulumi_gcp/compute/region_backend_service_iam_member.py +488 -0
- pulumi_gcp/compute/region_backend_service_iam_policy.py +488 -0
- pulumi_gcp/compute/region_network_endpoint_group.py +1 -3
- pulumi_gcp/compute/region_resize_request.py +24 -0
- pulumi_gcp/compute/region_url_map.py +75 -0
- pulumi_gcp/compute/subnetwork.py +0 -98
- pulumi_gcp/compute/wire_group.py +16 -0
- pulumi_gcp/config/__init__.pyi +2 -2
- pulumi_gcp/config/vars.py +4 -4
- pulumi_gcp/container/_inputs.py +466 -18
- pulumi_gcp/container/cluster.py +16 -7
- pulumi_gcp/container/outputs.py +448 -15
- pulumi_gcp/databasemigrationservice/connection_profile.py +4 -2
- pulumi_gcp/databasemigrationservice/migration_job.py +4 -2
- pulumi_gcp/dataflow/flex_template_job.py +10 -0
- pulumi_gcp/dataform/repository.py +16 -0
- pulumi_gcp/dataform/repository_release_config.py +16 -0
- pulumi_gcp/dataform/repository_workflow_config.py +16 -0
- pulumi_gcp/diagflow/_inputs.py +152 -0
- pulumi_gcp/diagflow/cx_agent.py +425 -0
- pulumi_gcp/diagflow/outputs.py +143 -0
- pulumi_gcp/discoveryengine/__init__.py +1 -0
- pulumi_gcp/discoveryengine/_inputs.py +94 -0
- pulumi_gcp/discoveryengine/acl_config.py +393 -0
- pulumi_gcp/discoveryengine/outputs.py +92 -0
- pulumi_gcp/firebase/android_app.py +16 -0
- pulumi_gcp/firebase/app_check_play_integrity_config.py +4 -8
- pulumi_gcp/firebase/app_check_recaptcha_enterprise_config.py +2 -4
- pulumi_gcp/firebase/app_check_service_config.py +6 -12
- pulumi_gcp/firebase/app_hosting_backend.py +4 -8
- pulumi_gcp/firebase/app_hosting_build.py +4 -8
- pulumi_gcp/firebase/app_hosting_traffic.py +6 -12
- pulumi_gcp/firebase/apple_app.py +16 -0
- pulumi_gcp/firebase/data_connect_service.py +4 -8
- pulumi_gcp/firebase/database_instance.py +20 -8
- pulumi_gcp/firebase/extensions_instance.py +12 -0
- pulumi_gcp/firebase/get_android_app.py +4 -2
- pulumi_gcp/firebase/get_apple_app.py +4 -2
- pulumi_gcp/firebase/get_apple_app_config.py +16 -2
- pulumi_gcp/firebase/get_hosting_channel.py +4 -2
- pulumi_gcp/firebase/hosting_channel.py +20 -0
- pulumi_gcp/firebase/hosting_custom_domain.py +20 -0
- pulumi_gcp/firebase/hosting_release.py +16 -0
- pulumi_gcp/firebase/hosting_site.py +16 -0
- pulumi_gcp/firebase/hosting_version.py +16 -0
- pulumi_gcp/firebase/storage_bucket.py +18 -0
- pulumi_gcp/firestore/index.py +118 -3
- pulumi_gcp/folder/service_identity.py +26 -0
- pulumi_gcp/gkehub/_inputs.py +0 -60
- pulumi_gcp/gkehub/get_membership.py +1 -12
- pulumi_gcp/gkehub/membership.py +0 -70
- pulumi_gcp/gkehub/membership_rbac_role_binding.py +16 -0
- pulumi_gcp/gkehub/outputs.py +0 -36
- pulumi_gcp/healthcare/_inputs.py +205 -0
- pulumi_gcp/healthcare/fhir_store.py +128 -0
- pulumi_gcp/healthcare/outputs.py +163 -0
- pulumi_gcp/iam/workload_identity_pool_iam_binding.py +464 -0
- pulumi_gcp/iam/workload_identity_pool_iam_member.py +464 -0
- pulumi_gcp/iam/workload_identity_pool_iam_policy.py +464 -0
- pulumi_gcp/iam/workload_identity_pool_managed_identity.py +18 -0
- pulumi_gcp/iam/workload_identity_pool_namespace.py +20 -0
- pulumi_gcp/iap/__init__.py +8 -0
- pulumi_gcp/iap/_inputs.py +260 -0
- pulumi_gcp/iap/get_web_forwarding_rule_service_iam_policy.py +159 -0
- pulumi_gcp/iap/get_web_region_forwarding_rule_service_iam_policy.py +182 -0
- pulumi_gcp/iap/outputs.py +152 -0
- pulumi_gcp/{beyondcorp/application_iam_binding.py → iap/web_forwarding_rule_service_iam_binding.py} +233 -315
- pulumi_gcp/{beyondcorp/application_iam_member.py → iap/web_forwarding_rule_service_iam_member.py} +233 -315
- pulumi_gcp/{beyondcorp/application_iam_policy.py → iap/web_forwarding_rule_service_iam_policy.py} +212 -294
- pulumi_gcp/iap/web_region_forwarding_rule_service_iam_binding.py +1091 -0
- pulumi_gcp/iap/web_region_forwarding_rule_service_iam_member.py +1091 -0
- pulumi_gcp/iap/web_region_forwarding_rule_service_iam_policy.py +910 -0
- pulumi_gcp/kms/autokey_config.py +0 -2
- pulumi_gcp/kms/get_kms_secret_asymmetric.py +22 -0
- pulumi_gcp/kms/key_handle.py +0 -2
- pulumi_gcp/logging/organization_sink.py +7 -7
- pulumi_gcp/managedkafka/connect_cluster.py +4 -0
- pulumi_gcp/managedkafka/connector.py +4 -0
- pulumi_gcp/memorystore/get_instance.py +1 -12
- pulumi_gcp/memorystore/instance.py +14 -84
- pulumi_gcp/netapp/storage_pool.py +91 -2
- pulumi_gcp/netapp/volume.py +47 -0
- pulumi_gcp/networkmanagement/__init__.py +1 -0
- pulumi_gcp/networkmanagement/organization_vpc_flow_logs_config.py +1028 -0
- pulumi_gcp/networksecurity/authorization_policy.py +12 -0
- pulumi_gcp/networkservices/gateway.py +7 -7
- pulumi_gcp/networkservices/lb_traffic_extension.py +24 -23
- pulumi_gcp/networkservices/service_lb_policies.py +12 -0
- pulumi_gcp/notebooks/__init__.py +0 -1
- pulumi_gcp/oracledatabase/autonomous_database.py +2 -2
- pulumi_gcp/oracledatabase/cloud_vm_cluster.py +3 -3
- pulumi_gcp/projects/service.py +2 -11
- pulumi_gcp/provider.py +20 -20
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/redis/cluster.py +0 -70
- pulumi_gcp/redis/get_cluster.py +1 -12
- pulumi_gcp/resourcemanager/capability.py +16 -0
- pulumi_gcp/runtimeconfig/config.py +16 -0
- pulumi_gcp/runtimeconfig/config_iam_binding.py +236 -0
- pulumi_gcp/runtimeconfig/config_iam_member.py +236 -0
- pulumi_gcp/runtimeconfig/config_iam_policy.py +236 -0
- pulumi_gcp/runtimeconfig/variable.py +10 -0
- pulumi_gcp/saasruntime/__init__.py +12 -0
- pulumi_gcp/saasruntime/_inputs.py +513 -0
- pulumi_gcp/saasruntime/outputs.py +431 -0
- pulumi_gcp/saasruntime/saa_s.py +819 -0
- pulumi_gcp/saasruntime/unit_kind.py +1024 -0
- pulumi_gcp/securesourcemanager/_inputs.py +20 -19
- pulumi_gcp/securesourcemanager/instance.py +7 -7
- pulumi_gcp/securesourcemanager/outputs.py +15 -14
- pulumi_gcp/securesourcemanager/repository.py +7 -7
- pulumi_gcp/serviceaccount/get_account_key.py +1 -21
- pulumi_gcp/servicedirectory/namespace_iam_binding.py +4 -4
- pulumi_gcp/servicedirectory/namespace_iam_member.py +4 -4
- pulumi_gcp/servicedirectory/namespace_iam_policy.py +4 -4
- pulumi_gcp/servicedirectory/service_iam_binding.py +4 -4
- pulumi_gcp/servicedirectory/service_iam_member.py +4 -4
- pulumi_gcp/servicedirectory/service_iam_policy.py +4 -4
- pulumi_gcp/sql/_inputs.py +135 -1
- pulumi_gcp/sql/database_instance.py +94 -0
- pulumi_gcp/sql/get_database_instance.py +23 -1
- pulumi_gcp/sql/outputs.py +276 -3
- pulumi_gcp/sql/user.py +61 -0
- pulumi_gcp/storage/_inputs.py +253 -7
- pulumi_gcp/storage/bucket_object.py +0 -9
- pulumi_gcp/storage/outputs.py +198 -8
- pulumi_gcp/storage/transfer_job.py +47 -0
- pulumi_gcp/tpu/__init__.py +0 -2
- pulumi_gcp/tpu/_inputs.py +0 -93
- pulumi_gcp/tpu/outputs.py +0 -72
- pulumi_gcp/tpu/v2_queued_resource.py +16 -0
- pulumi_gcp/tpu/v2_vm.py +16 -0
- pulumi_gcp/vertex/_inputs.py +8 -9
- pulumi_gcp/vertex/ai_endpoint.py +2 -4
- pulumi_gcp/vertex/ai_feature_group_iam_binding.py +236 -0
- pulumi_gcp/vertex/ai_feature_group_iam_member.py +236 -0
- pulumi_gcp/vertex/ai_feature_group_iam_policy.py +236 -0
- pulumi_gcp/vertex/ai_feature_online_store_featureview.py +0 -2
- pulumi_gcp/vertex/ai_feature_online_store_featureview_iam_binding.py +248 -0
- pulumi_gcp/vertex/ai_feature_online_store_featureview_iam_member.py +248 -0
- pulumi_gcp/vertex/ai_feature_online_store_featureview_iam_policy.py +248 -0
- pulumi_gcp/vertex/ai_feature_online_store_iam_binding.py +236 -0
- pulumi_gcp/vertex/ai_feature_online_store_iam_member.py +236 -0
- pulumi_gcp/vertex/ai_feature_online_store_iam_policy.py +236 -0
- pulumi_gcp/vertex/ai_feature_store_entity_type_iam_binding.py +238 -0
- pulumi_gcp/vertex/ai_feature_store_entity_type_iam_member.py +238 -0
- pulumi_gcp/vertex/ai_feature_store_entity_type_iam_policy.py +238 -0
- pulumi_gcp/vertex/ai_feature_store_iam_binding.py +248 -0
- pulumi_gcp/vertex/ai_feature_store_iam_member.py +248 -0
- pulumi_gcp/vertex/ai_feature_store_iam_policy.py +248 -0
- pulumi_gcp/vertex/ai_index.py +24 -23
- pulumi_gcp/vertex/ai_metadata_store.py +16 -0
- pulumi_gcp/vertex/outputs.py +7 -8
- pulumi_gcp/workstations/workstation.py +16 -0
- pulumi_gcp/workstations/workstation_cluster.py +16 -0
- pulumi_gcp/workstations/workstation_config.py +16 -0
- pulumi_gcp/workstations/workstation_config_iam_binding.py +260 -0
- pulumi_gcp/workstations/workstation_config_iam_member.py +260 -0
- pulumi_gcp/workstations/workstation_config_iam_policy.py +260 -0
- pulumi_gcp/workstations/workstation_iam_binding.py +272 -0
- pulumi_gcp/workstations/workstation_iam_member.py +272 -0
- pulumi_gcp/workstations/workstation_iam_policy.py +272 -0
- {pulumi_gcp-8.42.0a1758133038.dist-info → pulumi_gcp-9.0.0.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.42.0a1758133038.dist-info → pulumi_gcp-9.0.0.dist-info}/RECORD +266 -255
- pulumi_gcp/beyondcorp/application.py +0 -746
- pulumi_gcp/beyondcorp/get_application_iam_policy.py +0 -182
- pulumi_gcp/notebooks/location.py +0 -285
- pulumi_gcp/tpu/get_tensorflow_versions.py +0 -184
- pulumi_gcp/tpu/node.py +0 -1062
- {pulumi_gcp-8.42.0a1758133038.dist-info → pulumi_gcp-9.0.0.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.42.0a1758133038.dist-info → pulumi_gcp-9.0.0.dist-info}/top_level.txt +0 -0
@@ -276,6 +276,238 @@ class WorkloadIdentityPoolIamMember(pulumi.CustomResource):
|
|
276
276
|
workload_identity_pool_id: Optional[pulumi.Input[_builtins.str]] = None,
|
277
277
|
__props__=None):
|
278
278
|
"""
|
279
|
+
Three different resources help you manage your IAM policy for Cloud IAM WorkloadIdentityPool. Each of these resources serves a different use case:
|
280
|
+
|
281
|
+
* `iam.WorkloadIdentityPoolIamPolicy`: Authoritative. Sets the IAM policy for the workloadidentitypool and replaces any existing policy already attached.
|
282
|
+
* `iam.WorkloadIdentityPoolIamBinding`: 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 workloadidentitypool are preserved.
|
283
|
+
* `iam.WorkloadIdentityPoolIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the workloadidentitypool are preserved.
|
284
|
+
|
285
|
+
A data source can be used to retrieve policy data in advent you do not need creation
|
286
|
+
|
287
|
+
* `iam.WorkloadIdentityPoolIamPolicy`: Retrieves the IAM policy for the workloadidentitypool
|
288
|
+
|
289
|
+
> **Note:** `iam.WorkloadIdentityPoolIamPolicy` **cannot** be used in conjunction with `iam.WorkloadIdentityPoolIamBinding` and `iam.WorkloadIdentityPoolIamMember` or they will fight over what your policy should be.
|
290
|
+
|
291
|
+
> **Note:** `iam.WorkloadIdentityPoolIamBinding` resources **can be** used in conjunction with `iam.WorkloadIdentityPoolIamMember` resources **only if** they do not grant privilege to the same role.
|
292
|
+
|
293
|
+
> **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.
|
294
|
+
|
295
|
+
## iam.WorkloadIdentityPoolIamPolicy
|
296
|
+
|
297
|
+
```python
|
298
|
+
import pulumi
|
299
|
+
import pulumi_gcp as gcp
|
300
|
+
|
301
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
302
|
+
"role": "roles/iam.workloadIdentityPoolViewer",
|
303
|
+
"members": ["user:jane@example.com"],
|
304
|
+
}])
|
305
|
+
policy = gcp.iam.WorkloadIdentityPoolIamPolicy("policy",
|
306
|
+
project=example["project"],
|
307
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
308
|
+
policy_data=admin.policy_data)
|
309
|
+
```
|
310
|
+
|
311
|
+
With IAM Conditions:
|
312
|
+
|
313
|
+
```python
|
314
|
+
import pulumi
|
315
|
+
import pulumi_gcp as gcp
|
316
|
+
|
317
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
318
|
+
"role": "roles/iam.workloadIdentityPoolViewer",
|
319
|
+
"members": ["user:jane@example.com"],
|
320
|
+
"condition": {
|
321
|
+
"title": "expires_after_2019_12_31",
|
322
|
+
"description": "Expiring at midnight of 2019-12-31",
|
323
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
324
|
+
},
|
325
|
+
}])
|
326
|
+
policy = gcp.iam.WorkloadIdentityPoolIamPolicy("policy",
|
327
|
+
project=example["project"],
|
328
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
329
|
+
policy_data=admin.policy_data)
|
330
|
+
```
|
331
|
+
## iam.WorkloadIdentityPoolIamBinding
|
332
|
+
|
333
|
+
```python
|
334
|
+
import pulumi
|
335
|
+
import pulumi_gcp as gcp
|
336
|
+
|
337
|
+
binding = gcp.iam.WorkloadIdentityPoolIamBinding("binding",
|
338
|
+
project=example["project"],
|
339
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
340
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
341
|
+
members=["user:jane@example.com"])
|
342
|
+
```
|
343
|
+
|
344
|
+
With IAM Conditions:
|
345
|
+
|
346
|
+
```python
|
347
|
+
import pulumi
|
348
|
+
import pulumi_gcp as gcp
|
349
|
+
|
350
|
+
binding = gcp.iam.WorkloadIdentityPoolIamBinding("binding",
|
351
|
+
project=example["project"],
|
352
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
353
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
354
|
+
members=["user:jane@example.com"],
|
355
|
+
condition={
|
356
|
+
"title": "expires_after_2019_12_31",
|
357
|
+
"description": "Expiring at midnight of 2019-12-31",
|
358
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
359
|
+
})
|
360
|
+
```
|
361
|
+
## iam.WorkloadIdentityPoolIamMember
|
362
|
+
|
363
|
+
```python
|
364
|
+
import pulumi
|
365
|
+
import pulumi_gcp as gcp
|
366
|
+
|
367
|
+
member = gcp.iam.WorkloadIdentityPoolIamMember("member",
|
368
|
+
project=example["project"],
|
369
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
370
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
371
|
+
member="user:jane@example.com")
|
372
|
+
```
|
373
|
+
|
374
|
+
With IAM Conditions:
|
375
|
+
|
376
|
+
```python
|
377
|
+
import pulumi
|
378
|
+
import pulumi_gcp as gcp
|
379
|
+
|
380
|
+
member = gcp.iam.WorkloadIdentityPoolIamMember("member",
|
381
|
+
project=example["project"],
|
382
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
383
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
384
|
+
member="user:jane@example.com",
|
385
|
+
condition={
|
386
|
+
"title": "expires_after_2019_12_31",
|
387
|
+
"description": "Expiring at midnight of 2019-12-31",
|
388
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
389
|
+
})
|
390
|
+
```
|
391
|
+
|
392
|
+
## This resource supports User Project Overrides.
|
393
|
+
|
394
|
+
-
|
395
|
+
|
396
|
+
# IAM policy for Cloud IAM WorkloadIdentityPool
|
397
|
+
|
398
|
+
Three different resources help you manage your IAM policy for Cloud IAM WorkloadIdentityPool. Each of these resources serves a different use case:
|
399
|
+
|
400
|
+
* `iam.WorkloadIdentityPoolIamPolicy`: Authoritative. Sets the IAM policy for the workloadidentitypool and replaces any existing policy already attached.
|
401
|
+
* `iam.WorkloadIdentityPoolIamBinding`: 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 workloadidentitypool are preserved.
|
402
|
+
* `iam.WorkloadIdentityPoolIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the workloadidentitypool are preserved.
|
403
|
+
|
404
|
+
A data source can be used to retrieve policy data in advent you do not need creation
|
405
|
+
|
406
|
+
* `iam.WorkloadIdentityPoolIamPolicy`: Retrieves the IAM policy for the workloadidentitypool
|
407
|
+
|
408
|
+
> **Note:** `iam.WorkloadIdentityPoolIamPolicy` **cannot** be used in conjunction with `iam.WorkloadIdentityPoolIamBinding` and `iam.WorkloadIdentityPoolIamMember` or they will fight over what your policy should be.
|
409
|
+
|
410
|
+
> **Note:** `iam.WorkloadIdentityPoolIamBinding` resources **can be** used in conjunction with `iam.WorkloadIdentityPoolIamMember` resources **only if** they do not grant privilege to the same role.
|
411
|
+
|
412
|
+
> **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.
|
413
|
+
|
414
|
+
## iam.WorkloadIdentityPoolIamPolicy
|
415
|
+
|
416
|
+
```python
|
417
|
+
import pulumi
|
418
|
+
import pulumi_gcp as gcp
|
419
|
+
|
420
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
421
|
+
"role": "roles/iam.workloadIdentityPoolViewer",
|
422
|
+
"members": ["user:jane@example.com"],
|
423
|
+
}])
|
424
|
+
policy = gcp.iam.WorkloadIdentityPoolIamPolicy("policy",
|
425
|
+
project=example["project"],
|
426
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
427
|
+
policy_data=admin.policy_data)
|
428
|
+
```
|
429
|
+
|
430
|
+
With IAM Conditions:
|
431
|
+
|
432
|
+
```python
|
433
|
+
import pulumi
|
434
|
+
import pulumi_gcp as gcp
|
435
|
+
|
436
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
437
|
+
"role": "roles/iam.workloadIdentityPoolViewer",
|
438
|
+
"members": ["user:jane@example.com"],
|
439
|
+
"condition": {
|
440
|
+
"title": "expires_after_2019_12_31",
|
441
|
+
"description": "Expiring at midnight of 2019-12-31",
|
442
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
443
|
+
},
|
444
|
+
}])
|
445
|
+
policy = gcp.iam.WorkloadIdentityPoolIamPolicy("policy",
|
446
|
+
project=example["project"],
|
447
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
448
|
+
policy_data=admin.policy_data)
|
449
|
+
```
|
450
|
+
## iam.WorkloadIdentityPoolIamBinding
|
451
|
+
|
452
|
+
```python
|
453
|
+
import pulumi
|
454
|
+
import pulumi_gcp as gcp
|
455
|
+
|
456
|
+
binding = gcp.iam.WorkloadIdentityPoolIamBinding("binding",
|
457
|
+
project=example["project"],
|
458
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
459
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
460
|
+
members=["user:jane@example.com"])
|
461
|
+
```
|
462
|
+
|
463
|
+
With IAM Conditions:
|
464
|
+
|
465
|
+
```python
|
466
|
+
import pulumi
|
467
|
+
import pulumi_gcp as gcp
|
468
|
+
|
469
|
+
binding = gcp.iam.WorkloadIdentityPoolIamBinding("binding",
|
470
|
+
project=example["project"],
|
471
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
472
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
473
|
+
members=["user:jane@example.com"],
|
474
|
+
condition={
|
475
|
+
"title": "expires_after_2019_12_31",
|
476
|
+
"description": "Expiring at midnight of 2019-12-31",
|
477
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
478
|
+
})
|
479
|
+
```
|
480
|
+
## iam.WorkloadIdentityPoolIamMember
|
481
|
+
|
482
|
+
```python
|
483
|
+
import pulumi
|
484
|
+
import pulumi_gcp as gcp
|
485
|
+
|
486
|
+
member = gcp.iam.WorkloadIdentityPoolIamMember("member",
|
487
|
+
project=example["project"],
|
488
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
489
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
490
|
+
member="user:jane@example.com")
|
491
|
+
```
|
492
|
+
|
493
|
+
With IAM Conditions:
|
494
|
+
|
495
|
+
```python
|
496
|
+
import pulumi
|
497
|
+
import pulumi_gcp as gcp
|
498
|
+
|
499
|
+
member = gcp.iam.WorkloadIdentityPoolIamMember("member",
|
500
|
+
project=example["project"],
|
501
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
502
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
503
|
+
member="user:jane@example.com",
|
504
|
+
condition={
|
505
|
+
"title": "expires_after_2019_12_31",
|
506
|
+
"description": "Expiring at midnight of 2019-12-31",
|
507
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
508
|
+
})
|
509
|
+
```
|
510
|
+
|
279
511
|
## Import
|
280
512
|
|
281
513
|
For all import syntaxes, the "resource in question" can take any of the following forms:
|
@@ -341,6 +573,238 @@ class WorkloadIdentityPoolIamMember(pulumi.CustomResource):
|
|
341
573
|
args: WorkloadIdentityPoolIamMemberArgs,
|
342
574
|
opts: Optional[pulumi.ResourceOptions] = None):
|
343
575
|
"""
|
576
|
+
Three different resources help you manage your IAM policy for Cloud IAM WorkloadIdentityPool. Each of these resources serves a different use case:
|
577
|
+
|
578
|
+
* `iam.WorkloadIdentityPoolIamPolicy`: Authoritative. Sets the IAM policy for the workloadidentitypool and replaces any existing policy already attached.
|
579
|
+
* `iam.WorkloadIdentityPoolIamBinding`: 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 workloadidentitypool are preserved.
|
580
|
+
* `iam.WorkloadIdentityPoolIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the workloadidentitypool are preserved.
|
581
|
+
|
582
|
+
A data source can be used to retrieve policy data in advent you do not need creation
|
583
|
+
|
584
|
+
* `iam.WorkloadIdentityPoolIamPolicy`: Retrieves the IAM policy for the workloadidentitypool
|
585
|
+
|
586
|
+
> **Note:** `iam.WorkloadIdentityPoolIamPolicy` **cannot** be used in conjunction with `iam.WorkloadIdentityPoolIamBinding` and `iam.WorkloadIdentityPoolIamMember` or they will fight over what your policy should be.
|
587
|
+
|
588
|
+
> **Note:** `iam.WorkloadIdentityPoolIamBinding` resources **can be** used in conjunction with `iam.WorkloadIdentityPoolIamMember` resources **only if** they do not grant privilege to the same role.
|
589
|
+
|
590
|
+
> **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.
|
591
|
+
|
592
|
+
## iam.WorkloadIdentityPoolIamPolicy
|
593
|
+
|
594
|
+
```python
|
595
|
+
import pulumi
|
596
|
+
import pulumi_gcp as gcp
|
597
|
+
|
598
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
599
|
+
"role": "roles/iam.workloadIdentityPoolViewer",
|
600
|
+
"members": ["user:jane@example.com"],
|
601
|
+
}])
|
602
|
+
policy = gcp.iam.WorkloadIdentityPoolIamPolicy("policy",
|
603
|
+
project=example["project"],
|
604
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
605
|
+
policy_data=admin.policy_data)
|
606
|
+
```
|
607
|
+
|
608
|
+
With IAM Conditions:
|
609
|
+
|
610
|
+
```python
|
611
|
+
import pulumi
|
612
|
+
import pulumi_gcp as gcp
|
613
|
+
|
614
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
615
|
+
"role": "roles/iam.workloadIdentityPoolViewer",
|
616
|
+
"members": ["user:jane@example.com"],
|
617
|
+
"condition": {
|
618
|
+
"title": "expires_after_2019_12_31",
|
619
|
+
"description": "Expiring at midnight of 2019-12-31",
|
620
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
621
|
+
},
|
622
|
+
}])
|
623
|
+
policy = gcp.iam.WorkloadIdentityPoolIamPolicy("policy",
|
624
|
+
project=example["project"],
|
625
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
626
|
+
policy_data=admin.policy_data)
|
627
|
+
```
|
628
|
+
## iam.WorkloadIdentityPoolIamBinding
|
629
|
+
|
630
|
+
```python
|
631
|
+
import pulumi
|
632
|
+
import pulumi_gcp as gcp
|
633
|
+
|
634
|
+
binding = gcp.iam.WorkloadIdentityPoolIamBinding("binding",
|
635
|
+
project=example["project"],
|
636
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
637
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
638
|
+
members=["user:jane@example.com"])
|
639
|
+
```
|
640
|
+
|
641
|
+
With IAM Conditions:
|
642
|
+
|
643
|
+
```python
|
644
|
+
import pulumi
|
645
|
+
import pulumi_gcp as gcp
|
646
|
+
|
647
|
+
binding = gcp.iam.WorkloadIdentityPoolIamBinding("binding",
|
648
|
+
project=example["project"],
|
649
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
650
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
651
|
+
members=["user:jane@example.com"],
|
652
|
+
condition={
|
653
|
+
"title": "expires_after_2019_12_31",
|
654
|
+
"description": "Expiring at midnight of 2019-12-31",
|
655
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
656
|
+
})
|
657
|
+
```
|
658
|
+
## iam.WorkloadIdentityPoolIamMember
|
659
|
+
|
660
|
+
```python
|
661
|
+
import pulumi
|
662
|
+
import pulumi_gcp as gcp
|
663
|
+
|
664
|
+
member = gcp.iam.WorkloadIdentityPoolIamMember("member",
|
665
|
+
project=example["project"],
|
666
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
667
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
668
|
+
member="user:jane@example.com")
|
669
|
+
```
|
670
|
+
|
671
|
+
With IAM Conditions:
|
672
|
+
|
673
|
+
```python
|
674
|
+
import pulumi
|
675
|
+
import pulumi_gcp as gcp
|
676
|
+
|
677
|
+
member = gcp.iam.WorkloadIdentityPoolIamMember("member",
|
678
|
+
project=example["project"],
|
679
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
680
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
681
|
+
member="user:jane@example.com",
|
682
|
+
condition={
|
683
|
+
"title": "expires_after_2019_12_31",
|
684
|
+
"description": "Expiring at midnight of 2019-12-31",
|
685
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
686
|
+
})
|
687
|
+
```
|
688
|
+
|
689
|
+
## This resource supports User Project Overrides.
|
690
|
+
|
691
|
+
-
|
692
|
+
|
693
|
+
# IAM policy for Cloud IAM WorkloadIdentityPool
|
694
|
+
|
695
|
+
Three different resources help you manage your IAM policy for Cloud IAM WorkloadIdentityPool. Each of these resources serves a different use case:
|
696
|
+
|
697
|
+
* `iam.WorkloadIdentityPoolIamPolicy`: Authoritative. Sets the IAM policy for the workloadidentitypool and replaces any existing policy already attached.
|
698
|
+
* `iam.WorkloadIdentityPoolIamBinding`: 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 workloadidentitypool are preserved.
|
699
|
+
* `iam.WorkloadIdentityPoolIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the workloadidentitypool are preserved.
|
700
|
+
|
701
|
+
A data source can be used to retrieve policy data in advent you do not need creation
|
702
|
+
|
703
|
+
* `iam.WorkloadIdentityPoolIamPolicy`: Retrieves the IAM policy for the workloadidentitypool
|
704
|
+
|
705
|
+
> **Note:** `iam.WorkloadIdentityPoolIamPolicy` **cannot** be used in conjunction with `iam.WorkloadIdentityPoolIamBinding` and `iam.WorkloadIdentityPoolIamMember` or they will fight over what your policy should be.
|
706
|
+
|
707
|
+
> **Note:** `iam.WorkloadIdentityPoolIamBinding` resources **can be** used in conjunction with `iam.WorkloadIdentityPoolIamMember` resources **only if** they do not grant privilege to the same role.
|
708
|
+
|
709
|
+
> **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.
|
710
|
+
|
711
|
+
## iam.WorkloadIdentityPoolIamPolicy
|
712
|
+
|
713
|
+
```python
|
714
|
+
import pulumi
|
715
|
+
import pulumi_gcp as gcp
|
716
|
+
|
717
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
718
|
+
"role": "roles/iam.workloadIdentityPoolViewer",
|
719
|
+
"members": ["user:jane@example.com"],
|
720
|
+
}])
|
721
|
+
policy = gcp.iam.WorkloadIdentityPoolIamPolicy("policy",
|
722
|
+
project=example["project"],
|
723
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
724
|
+
policy_data=admin.policy_data)
|
725
|
+
```
|
726
|
+
|
727
|
+
With IAM Conditions:
|
728
|
+
|
729
|
+
```python
|
730
|
+
import pulumi
|
731
|
+
import pulumi_gcp as gcp
|
732
|
+
|
733
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
734
|
+
"role": "roles/iam.workloadIdentityPoolViewer",
|
735
|
+
"members": ["user:jane@example.com"],
|
736
|
+
"condition": {
|
737
|
+
"title": "expires_after_2019_12_31",
|
738
|
+
"description": "Expiring at midnight of 2019-12-31",
|
739
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
740
|
+
},
|
741
|
+
}])
|
742
|
+
policy = gcp.iam.WorkloadIdentityPoolIamPolicy("policy",
|
743
|
+
project=example["project"],
|
744
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
745
|
+
policy_data=admin.policy_data)
|
746
|
+
```
|
747
|
+
## iam.WorkloadIdentityPoolIamBinding
|
748
|
+
|
749
|
+
```python
|
750
|
+
import pulumi
|
751
|
+
import pulumi_gcp as gcp
|
752
|
+
|
753
|
+
binding = gcp.iam.WorkloadIdentityPoolIamBinding("binding",
|
754
|
+
project=example["project"],
|
755
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
756
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
757
|
+
members=["user:jane@example.com"])
|
758
|
+
```
|
759
|
+
|
760
|
+
With IAM Conditions:
|
761
|
+
|
762
|
+
```python
|
763
|
+
import pulumi
|
764
|
+
import pulumi_gcp as gcp
|
765
|
+
|
766
|
+
binding = gcp.iam.WorkloadIdentityPoolIamBinding("binding",
|
767
|
+
project=example["project"],
|
768
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
769
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
770
|
+
members=["user:jane@example.com"],
|
771
|
+
condition={
|
772
|
+
"title": "expires_after_2019_12_31",
|
773
|
+
"description": "Expiring at midnight of 2019-12-31",
|
774
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
775
|
+
})
|
776
|
+
```
|
777
|
+
## iam.WorkloadIdentityPoolIamMember
|
778
|
+
|
779
|
+
```python
|
780
|
+
import pulumi
|
781
|
+
import pulumi_gcp as gcp
|
782
|
+
|
783
|
+
member = gcp.iam.WorkloadIdentityPoolIamMember("member",
|
784
|
+
project=example["project"],
|
785
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
786
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
787
|
+
member="user:jane@example.com")
|
788
|
+
```
|
789
|
+
|
790
|
+
With IAM Conditions:
|
791
|
+
|
792
|
+
```python
|
793
|
+
import pulumi
|
794
|
+
import pulumi_gcp as gcp
|
795
|
+
|
796
|
+
member = gcp.iam.WorkloadIdentityPoolIamMember("member",
|
797
|
+
project=example["project"],
|
798
|
+
workload_identity_pool_id=example["workloadIdentityPoolId"],
|
799
|
+
role="roles/iam.workloadIdentityPoolViewer",
|
800
|
+
member="user:jane@example.com",
|
801
|
+
condition={
|
802
|
+
"title": "expires_after_2019_12_31",
|
803
|
+
"description": "Expiring at midnight of 2019-12-31",
|
804
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
805
|
+
})
|
806
|
+
```
|
807
|
+
|
344
808
|
## Import
|
345
809
|
|
346
810
|
For all import syntaxes, the "resource in question" can take any of the following forms:
|