pulumi-gcp 9.0.0a1__py3-none-any.whl → 9.0.0a1758219982__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 +48 -0
- pulumi_gcp/activedirectory/peering.py +16 -0
- 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/artifactregistry/__init__.py +1 -0
- pulumi_gcp/artifactregistry/get_python_package.py +237 -0
- pulumi_gcp/artifactregistry/get_repository.py +12 -1
- 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/bigquery/app_profile.py +14 -49
- pulumi_gcp/bigquery/dataset_access.py +4 -8
- pulumi_gcp/bigquery/table.py +7 -21
- pulumi_gcp/bigqueryanalyticshub/data_exchange_subscription.py +20 -0
- pulumi_gcp/bigtable/app_profile.py +14 -49
- pulumi_gcp/bigtable/table.py +42 -42
- pulumi_gcp/certificatemanager/certificate_map_entry.py +7 -7
- 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 +20 -0
- pulumi_gcp/cloudbuild/outputs.py +14 -0
- pulumi_gcp/cloudbuild/trigger.py +4 -2
- pulumi_gcp/cloudbuild/worker_pool.py +28 -21
- pulumi_gcp/cloudfunctions/function.py +4 -8
- pulumi_gcp/cloudquota/s_quota_adjuster_settings.py +16 -0
- pulumi_gcp/cloudrunv2/_inputs.py +57 -0
- pulumi_gcp/cloudrunv2/get_service.py +12 -1
- pulumi_gcp/cloudrunv2/outputs.py +81 -0
- pulumi_gcp/cloudrunv2/service.py +54 -0
- pulumi_gcp/cloudrunv2/worker_pool.py +2 -2
- pulumi_gcp/composer/environment.py +28 -49
- pulumi_gcp/compute/_inputs.py +804 -24
- pulumi_gcp/compute/backend_bucket.py +14 -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_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_region_backend_service.py +12 -1
- pulumi_gcp/compute/get_resource_policy.py +2 -20
- pulumi_gcp/compute/instance_from_machine_image.py +75 -110
- pulumi_gcp/compute/instance_from_template.py +75 -110
- pulumi_gcp/compute/instance_group_manager.py +7 -14
- pulumi_gcp/compute/instance_template.py +7 -14
- pulumi_gcp/compute/interconnect.py +4 -8
- 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/outputs.py +671 -16
- 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_instance_group_manager.py +7 -14
- 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/wire_group.py +16 -0
- pulumi_gcp/container/_inputs.py +446 -18
- pulumi_gcp/container/aws_cluster.py +28 -42
- pulumi_gcp/container/aws_node_pool.py +28 -42
- pulumi_gcp/container/azure_cluster.py +35 -70
- pulumi_gcp/container/azure_node_pool.py +28 -42
- pulumi_gcp/container/cluster.py +16 -7
- pulumi_gcp/container/outputs.py +423 -15
- 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/dataplex/asset.py +28 -21
- pulumi_gcp/dataplex/zone.py +28 -21
- pulumi_gcp/dataproc/cluster.py +21 -14
- pulumi_gcp/dataproc/workflow_template.py +42 -105
- 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/apple_app.py +16 -0
- pulumi_gcp/firebase/database_instance.py +16 -0
- 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/membership_rbac_role_binding.py +16 -0
- 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 +4 -0
- pulumi_gcp/iap/_inputs.py +130 -0
- pulumi_gcp/iap/get_web_forwarding_rule_service_iam_policy.py +159 -0
- pulumi_gcp/iap/outputs.py +76 -0
- pulumi_gcp/iap/web_forwarding_rule_service_iam_binding.py +1002 -0
- pulumi_gcp/iap/web_forwarding_rule_service_iam_member.py +1002 -0
- pulumi_gcp/iap/web_forwarding_rule_service_iam_policy.py +821 -0
- pulumi_gcp/kms/get_kms_secret_asymmetric.py +22 -0
- pulumi_gcp/logging/billing_account_bucket_config.py +7 -21
- pulumi_gcp/logging/folder_bucket_config.py +7 -21
- pulumi_gcp/logging/organization_bucket_config.py +7 -21
- 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/instance.py +14 -14
- pulumi_gcp/monitoring/dashboard.py +7 -14
- 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/service_lb_policies.py +12 -0
- pulumi_gcp/oracledatabase/autonomous_database.py +2 -2
- pulumi_gcp/organizations/project.py +7 -21
- pulumi_gcp/projects/service.py +0 -7
- pulumi_gcp/pulumi-plugin.json +1 -1
- 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 +1 -0
- pulumi_gcp/saasruntime/_inputs.py +458 -0
- pulumi_gcp/saasruntime/outputs.py +392 -0
- pulumi_gcp/saasruntime/saa_s.py +4 -0
- pulumi_gcp/saasruntime/unit_kind.py +1024 -0
- pulumi_gcp/securesourcemanager/instance.py +7 -7
- pulumi_gcp/securesourcemanager/repository.py +7 -7
- 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 +54 -14
- pulumi_gcp/sql/get_database_instance.py +12 -1
- pulumi_gcp/sql/outputs.py +265 -3
- pulumi_gcp/storage/_inputs.py +246 -0
- pulumi_gcp/storage/bucket.py +7 -14
- pulumi_gcp/storage/bucket_object.py +0 -9
- pulumi_gcp/storage/outputs.py +191 -1
- pulumi_gcp/storage/transfer_job.py +47 -0
- pulumi_gcp/tpu/v2_queued_resource.py +16 -0
- pulumi_gcp/tpu/v2_vm.py +16 -0
- 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_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_metadata_store.py +16 -0
- 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-9.0.0a1.dist-info → pulumi_gcp-9.0.0a1758219982.dist-info}/METADATA +1 -1
- {pulumi_gcp-9.0.0a1.dist-info → pulumi_gcp-9.0.0a1758219982.dist-info}/RECORD +209 -200
- {pulumi_gcp-9.0.0a1.dist-info → pulumi_gcp-9.0.0a1758219982.dist-info}/WHEEL +0 -0
- {pulumi_gcp-9.0.0a1.dist-info → pulumi_gcp-9.0.0a1758219982.dist-info}/top_level.txt +0 -0
@@ -162,6 +162,238 @@ class BackendServiceIamPolicy(pulumi.CustomResource):
|
|
162
162
|
project: Optional[pulumi.Input[_builtins.str]] = None,
|
163
163
|
__props__=None):
|
164
164
|
"""
|
165
|
+
Three different resources help you manage your IAM policy for Compute Engine BackendService. Each of these resources serves a different use case:
|
166
|
+
|
167
|
+
* `compute.BackendServiceIamPolicy`: Authoritative. Sets the IAM policy for the backendservice and replaces any existing policy already attached.
|
168
|
+
* `compute.BackendServiceIamBinding`: 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 backendservice are preserved.
|
169
|
+
* `compute.BackendServiceIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the backendservice are preserved.
|
170
|
+
|
171
|
+
A data source can be used to retrieve policy data in advent you do not need creation
|
172
|
+
|
173
|
+
* `compute.BackendServiceIamPolicy`: Retrieves the IAM policy for the backendservice
|
174
|
+
|
175
|
+
> **Note:** `compute.BackendServiceIamPolicy` **cannot** be used in conjunction with `compute.BackendServiceIamBinding` and `compute.BackendServiceIamMember` or they will fight over what your policy should be.
|
176
|
+
|
177
|
+
> **Note:** `compute.BackendServiceIamBinding` resources **can be** used in conjunction with `compute.BackendServiceIamMember` resources **only if** they do not grant privilege to the same role.
|
178
|
+
|
179
|
+
> **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.
|
180
|
+
|
181
|
+
## compute.BackendServiceIamPolicy
|
182
|
+
|
183
|
+
```python
|
184
|
+
import pulumi
|
185
|
+
import pulumi_gcp as gcp
|
186
|
+
|
187
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
188
|
+
"role": "roles/compute.admin",
|
189
|
+
"members": ["user:jane@example.com"],
|
190
|
+
}])
|
191
|
+
policy = gcp.compute.BackendServiceIamPolicy("policy",
|
192
|
+
project=default["project"],
|
193
|
+
name=default["name"],
|
194
|
+
policy_data=admin.policy_data)
|
195
|
+
```
|
196
|
+
|
197
|
+
With IAM Conditions:
|
198
|
+
|
199
|
+
```python
|
200
|
+
import pulumi
|
201
|
+
import pulumi_gcp as gcp
|
202
|
+
|
203
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
204
|
+
"role": "roles/compute.admin",
|
205
|
+
"members": ["user:jane@example.com"],
|
206
|
+
"condition": {
|
207
|
+
"title": "expires_after_2019_12_31",
|
208
|
+
"description": "Expiring at midnight of 2019-12-31",
|
209
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
210
|
+
},
|
211
|
+
}])
|
212
|
+
policy = gcp.compute.BackendServiceIamPolicy("policy",
|
213
|
+
project=default["project"],
|
214
|
+
name=default["name"],
|
215
|
+
policy_data=admin.policy_data)
|
216
|
+
```
|
217
|
+
## compute.BackendServiceIamBinding
|
218
|
+
|
219
|
+
```python
|
220
|
+
import pulumi
|
221
|
+
import pulumi_gcp as gcp
|
222
|
+
|
223
|
+
binding = gcp.compute.BackendServiceIamBinding("binding",
|
224
|
+
project=default["project"],
|
225
|
+
name=default["name"],
|
226
|
+
role="roles/compute.admin",
|
227
|
+
members=["user:jane@example.com"])
|
228
|
+
```
|
229
|
+
|
230
|
+
With IAM Conditions:
|
231
|
+
|
232
|
+
```python
|
233
|
+
import pulumi
|
234
|
+
import pulumi_gcp as gcp
|
235
|
+
|
236
|
+
binding = gcp.compute.BackendServiceIamBinding("binding",
|
237
|
+
project=default["project"],
|
238
|
+
name=default["name"],
|
239
|
+
role="roles/compute.admin",
|
240
|
+
members=["user:jane@example.com"],
|
241
|
+
condition={
|
242
|
+
"title": "expires_after_2019_12_31",
|
243
|
+
"description": "Expiring at midnight of 2019-12-31",
|
244
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
245
|
+
})
|
246
|
+
```
|
247
|
+
## compute.BackendServiceIamMember
|
248
|
+
|
249
|
+
```python
|
250
|
+
import pulumi
|
251
|
+
import pulumi_gcp as gcp
|
252
|
+
|
253
|
+
member = gcp.compute.BackendServiceIamMember("member",
|
254
|
+
project=default["project"],
|
255
|
+
name=default["name"],
|
256
|
+
role="roles/compute.admin",
|
257
|
+
member="user:jane@example.com")
|
258
|
+
```
|
259
|
+
|
260
|
+
With IAM Conditions:
|
261
|
+
|
262
|
+
```python
|
263
|
+
import pulumi
|
264
|
+
import pulumi_gcp as gcp
|
265
|
+
|
266
|
+
member = gcp.compute.BackendServiceIamMember("member",
|
267
|
+
project=default["project"],
|
268
|
+
name=default["name"],
|
269
|
+
role="roles/compute.admin",
|
270
|
+
member="user:jane@example.com",
|
271
|
+
condition={
|
272
|
+
"title": "expires_after_2019_12_31",
|
273
|
+
"description": "Expiring at midnight of 2019-12-31",
|
274
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
275
|
+
})
|
276
|
+
```
|
277
|
+
|
278
|
+
## This resource supports User Project Overrides.
|
279
|
+
|
280
|
+
-
|
281
|
+
|
282
|
+
# IAM policy for Compute Engine BackendService
|
283
|
+
|
284
|
+
Three different resources help you manage your IAM policy for Compute Engine BackendService. Each of these resources serves a different use case:
|
285
|
+
|
286
|
+
* `compute.BackendServiceIamPolicy`: Authoritative. Sets the IAM policy for the backendservice and replaces any existing policy already attached.
|
287
|
+
* `compute.BackendServiceIamBinding`: 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 backendservice are preserved.
|
288
|
+
* `compute.BackendServiceIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the backendservice are preserved.
|
289
|
+
|
290
|
+
A data source can be used to retrieve policy data in advent you do not need creation
|
291
|
+
|
292
|
+
* `compute.BackendServiceIamPolicy`: Retrieves the IAM policy for the backendservice
|
293
|
+
|
294
|
+
> **Note:** `compute.BackendServiceIamPolicy` **cannot** be used in conjunction with `compute.BackendServiceIamBinding` and `compute.BackendServiceIamMember` or they will fight over what your policy should be.
|
295
|
+
|
296
|
+
> **Note:** `compute.BackendServiceIamBinding` resources **can be** used in conjunction with `compute.BackendServiceIamMember` resources **only if** they do not grant privilege to the same role.
|
297
|
+
|
298
|
+
> **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.
|
299
|
+
|
300
|
+
## compute.BackendServiceIamPolicy
|
301
|
+
|
302
|
+
```python
|
303
|
+
import pulumi
|
304
|
+
import pulumi_gcp as gcp
|
305
|
+
|
306
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
307
|
+
"role": "roles/compute.admin",
|
308
|
+
"members": ["user:jane@example.com"],
|
309
|
+
}])
|
310
|
+
policy = gcp.compute.BackendServiceIamPolicy("policy",
|
311
|
+
project=default["project"],
|
312
|
+
name=default["name"],
|
313
|
+
policy_data=admin.policy_data)
|
314
|
+
```
|
315
|
+
|
316
|
+
With IAM Conditions:
|
317
|
+
|
318
|
+
```python
|
319
|
+
import pulumi
|
320
|
+
import pulumi_gcp as gcp
|
321
|
+
|
322
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
323
|
+
"role": "roles/compute.admin",
|
324
|
+
"members": ["user:jane@example.com"],
|
325
|
+
"condition": {
|
326
|
+
"title": "expires_after_2019_12_31",
|
327
|
+
"description": "Expiring at midnight of 2019-12-31",
|
328
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
329
|
+
},
|
330
|
+
}])
|
331
|
+
policy = gcp.compute.BackendServiceIamPolicy("policy",
|
332
|
+
project=default["project"],
|
333
|
+
name=default["name"],
|
334
|
+
policy_data=admin.policy_data)
|
335
|
+
```
|
336
|
+
## compute.BackendServiceIamBinding
|
337
|
+
|
338
|
+
```python
|
339
|
+
import pulumi
|
340
|
+
import pulumi_gcp as gcp
|
341
|
+
|
342
|
+
binding = gcp.compute.BackendServiceIamBinding("binding",
|
343
|
+
project=default["project"],
|
344
|
+
name=default["name"],
|
345
|
+
role="roles/compute.admin",
|
346
|
+
members=["user:jane@example.com"])
|
347
|
+
```
|
348
|
+
|
349
|
+
With IAM Conditions:
|
350
|
+
|
351
|
+
```python
|
352
|
+
import pulumi
|
353
|
+
import pulumi_gcp as gcp
|
354
|
+
|
355
|
+
binding = gcp.compute.BackendServiceIamBinding("binding",
|
356
|
+
project=default["project"],
|
357
|
+
name=default["name"],
|
358
|
+
role="roles/compute.admin",
|
359
|
+
members=["user:jane@example.com"],
|
360
|
+
condition={
|
361
|
+
"title": "expires_after_2019_12_31",
|
362
|
+
"description": "Expiring at midnight of 2019-12-31",
|
363
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
364
|
+
})
|
365
|
+
```
|
366
|
+
## compute.BackendServiceIamMember
|
367
|
+
|
368
|
+
```python
|
369
|
+
import pulumi
|
370
|
+
import pulumi_gcp as gcp
|
371
|
+
|
372
|
+
member = gcp.compute.BackendServiceIamMember("member",
|
373
|
+
project=default["project"],
|
374
|
+
name=default["name"],
|
375
|
+
role="roles/compute.admin",
|
376
|
+
member="user:jane@example.com")
|
377
|
+
```
|
378
|
+
|
379
|
+
With IAM Conditions:
|
380
|
+
|
381
|
+
```python
|
382
|
+
import pulumi
|
383
|
+
import pulumi_gcp as gcp
|
384
|
+
|
385
|
+
member = gcp.compute.BackendServiceIamMember("member",
|
386
|
+
project=default["project"],
|
387
|
+
name=default["name"],
|
388
|
+
role="roles/compute.admin",
|
389
|
+
member="user:jane@example.com",
|
390
|
+
condition={
|
391
|
+
"title": "expires_after_2019_12_31",
|
392
|
+
"description": "Expiring at midnight of 2019-12-31",
|
393
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
394
|
+
})
|
395
|
+
```
|
396
|
+
|
165
397
|
## Import
|
166
398
|
|
167
399
|
For all import syntaxes, the "resource in question" can take any of the following forms:
|
@@ -213,6 +445,238 @@ class BackendServiceIamPolicy(pulumi.CustomResource):
|
|
213
445
|
args: BackendServiceIamPolicyArgs,
|
214
446
|
opts: Optional[pulumi.ResourceOptions] = None):
|
215
447
|
"""
|
448
|
+
Three different resources help you manage your IAM policy for Compute Engine BackendService. Each of these resources serves a different use case:
|
449
|
+
|
450
|
+
* `compute.BackendServiceIamPolicy`: Authoritative. Sets the IAM policy for the backendservice and replaces any existing policy already attached.
|
451
|
+
* `compute.BackendServiceIamBinding`: 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 backendservice are preserved.
|
452
|
+
* `compute.BackendServiceIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the backendservice are preserved.
|
453
|
+
|
454
|
+
A data source can be used to retrieve policy data in advent you do not need creation
|
455
|
+
|
456
|
+
* `compute.BackendServiceIamPolicy`: Retrieves the IAM policy for the backendservice
|
457
|
+
|
458
|
+
> **Note:** `compute.BackendServiceIamPolicy` **cannot** be used in conjunction with `compute.BackendServiceIamBinding` and `compute.BackendServiceIamMember` or they will fight over what your policy should be.
|
459
|
+
|
460
|
+
> **Note:** `compute.BackendServiceIamBinding` resources **can be** used in conjunction with `compute.BackendServiceIamMember` resources **only if** they do not grant privilege to the same role.
|
461
|
+
|
462
|
+
> **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.
|
463
|
+
|
464
|
+
## compute.BackendServiceIamPolicy
|
465
|
+
|
466
|
+
```python
|
467
|
+
import pulumi
|
468
|
+
import pulumi_gcp as gcp
|
469
|
+
|
470
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
471
|
+
"role": "roles/compute.admin",
|
472
|
+
"members": ["user:jane@example.com"],
|
473
|
+
}])
|
474
|
+
policy = gcp.compute.BackendServiceIamPolicy("policy",
|
475
|
+
project=default["project"],
|
476
|
+
name=default["name"],
|
477
|
+
policy_data=admin.policy_data)
|
478
|
+
```
|
479
|
+
|
480
|
+
With IAM Conditions:
|
481
|
+
|
482
|
+
```python
|
483
|
+
import pulumi
|
484
|
+
import pulumi_gcp as gcp
|
485
|
+
|
486
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
487
|
+
"role": "roles/compute.admin",
|
488
|
+
"members": ["user:jane@example.com"],
|
489
|
+
"condition": {
|
490
|
+
"title": "expires_after_2019_12_31",
|
491
|
+
"description": "Expiring at midnight of 2019-12-31",
|
492
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
493
|
+
},
|
494
|
+
}])
|
495
|
+
policy = gcp.compute.BackendServiceIamPolicy("policy",
|
496
|
+
project=default["project"],
|
497
|
+
name=default["name"],
|
498
|
+
policy_data=admin.policy_data)
|
499
|
+
```
|
500
|
+
## compute.BackendServiceIamBinding
|
501
|
+
|
502
|
+
```python
|
503
|
+
import pulumi
|
504
|
+
import pulumi_gcp as gcp
|
505
|
+
|
506
|
+
binding = gcp.compute.BackendServiceIamBinding("binding",
|
507
|
+
project=default["project"],
|
508
|
+
name=default["name"],
|
509
|
+
role="roles/compute.admin",
|
510
|
+
members=["user:jane@example.com"])
|
511
|
+
```
|
512
|
+
|
513
|
+
With IAM Conditions:
|
514
|
+
|
515
|
+
```python
|
516
|
+
import pulumi
|
517
|
+
import pulumi_gcp as gcp
|
518
|
+
|
519
|
+
binding = gcp.compute.BackendServiceIamBinding("binding",
|
520
|
+
project=default["project"],
|
521
|
+
name=default["name"],
|
522
|
+
role="roles/compute.admin",
|
523
|
+
members=["user:jane@example.com"],
|
524
|
+
condition={
|
525
|
+
"title": "expires_after_2019_12_31",
|
526
|
+
"description": "Expiring at midnight of 2019-12-31",
|
527
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
528
|
+
})
|
529
|
+
```
|
530
|
+
## compute.BackendServiceIamMember
|
531
|
+
|
532
|
+
```python
|
533
|
+
import pulumi
|
534
|
+
import pulumi_gcp as gcp
|
535
|
+
|
536
|
+
member = gcp.compute.BackendServiceIamMember("member",
|
537
|
+
project=default["project"],
|
538
|
+
name=default["name"],
|
539
|
+
role="roles/compute.admin",
|
540
|
+
member="user:jane@example.com")
|
541
|
+
```
|
542
|
+
|
543
|
+
With IAM Conditions:
|
544
|
+
|
545
|
+
```python
|
546
|
+
import pulumi
|
547
|
+
import pulumi_gcp as gcp
|
548
|
+
|
549
|
+
member = gcp.compute.BackendServiceIamMember("member",
|
550
|
+
project=default["project"],
|
551
|
+
name=default["name"],
|
552
|
+
role="roles/compute.admin",
|
553
|
+
member="user:jane@example.com",
|
554
|
+
condition={
|
555
|
+
"title": "expires_after_2019_12_31",
|
556
|
+
"description": "Expiring at midnight of 2019-12-31",
|
557
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
558
|
+
})
|
559
|
+
```
|
560
|
+
|
561
|
+
## This resource supports User Project Overrides.
|
562
|
+
|
563
|
+
-
|
564
|
+
|
565
|
+
# IAM policy for Compute Engine BackendService
|
566
|
+
|
567
|
+
Three different resources help you manage your IAM policy for Compute Engine BackendService. Each of these resources serves a different use case:
|
568
|
+
|
569
|
+
* `compute.BackendServiceIamPolicy`: Authoritative. Sets the IAM policy for the backendservice and replaces any existing policy already attached.
|
570
|
+
* `compute.BackendServiceIamBinding`: 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 backendservice are preserved.
|
571
|
+
* `compute.BackendServiceIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the backendservice are preserved.
|
572
|
+
|
573
|
+
A data source can be used to retrieve policy data in advent you do not need creation
|
574
|
+
|
575
|
+
* `compute.BackendServiceIamPolicy`: Retrieves the IAM policy for the backendservice
|
576
|
+
|
577
|
+
> **Note:** `compute.BackendServiceIamPolicy` **cannot** be used in conjunction with `compute.BackendServiceIamBinding` and `compute.BackendServiceIamMember` or they will fight over what your policy should be.
|
578
|
+
|
579
|
+
> **Note:** `compute.BackendServiceIamBinding` resources **can be** used in conjunction with `compute.BackendServiceIamMember` resources **only if** they do not grant privilege to the same role.
|
580
|
+
|
581
|
+
> **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.
|
582
|
+
|
583
|
+
## compute.BackendServiceIamPolicy
|
584
|
+
|
585
|
+
```python
|
586
|
+
import pulumi
|
587
|
+
import pulumi_gcp as gcp
|
588
|
+
|
589
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
590
|
+
"role": "roles/compute.admin",
|
591
|
+
"members": ["user:jane@example.com"],
|
592
|
+
}])
|
593
|
+
policy = gcp.compute.BackendServiceIamPolicy("policy",
|
594
|
+
project=default["project"],
|
595
|
+
name=default["name"],
|
596
|
+
policy_data=admin.policy_data)
|
597
|
+
```
|
598
|
+
|
599
|
+
With IAM Conditions:
|
600
|
+
|
601
|
+
```python
|
602
|
+
import pulumi
|
603
|
+
import pulumi_gcp as gcp
|
604
|
+
|
605
|
+
admin = gcp.organizations.get_iam_policy(bindings=[{
|
606
|
+
"role": "roles/compute.admin",
|
607
|
+
"members": ["user:jane@example.com"],
|
608
|
+
"condition": {
|
609
|
+
"title": "expires_after_2019_12_31",
|
610
|
+
"description": "Expiring at midnight of 2019-12-31",
|
611
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
612
|
+
},
|
613
|
+
}])
|
614
|
+
policy = gcp.compute.BackendServiceIamPolicy("policy",
|
615
|
+
project=default["project"],
|
616
|
+
name=default["name"],
|
617
|
+
policy_data=admin.policy_data)
|
618
|
+
```
|
619
|
+
## compute.BackendServiceIamBinding
|
620
|
+
|
621
|
+
```python
|
622
|
+
import pulumi
|
623
|
+
import pulumi_gcp as gcp
|
624
|
+
|
625
|
+
binding = gcp.compute.BackendServiceIamBinding("binding",
|
626
|
+
project=default["project"],
|
627
|
+
name=default["name"],
|
628
|
+
role="roles/compute.admin",
|
629
|
+
members=["user:jane@example.com"])
|
630
|
+
```
|
631
|
+
|
632
|
+
With IAM Conditions:
|
633
|
+
|
634
|
+
```python
|
635
|
+
import pulumi
|
636
|
+
import pulumi_gcp as gcp
|
637
|
+
|
638
|
+
binding = gcp.compute.BackendServiceIamBinding("binding",
|
639
|
+
project=default["project"],
|
640
|
+
name=default["name"],
|
641
|
+
role="roles/compute.admin",
|
642
|
+
members=["user:jane@example.com"],
|
643
|
+
condition={
|
644
|
+
"title": "expires_after_2019_12_31",
|
645
|
+
"description": "Expiring at midnight of 2019-12-31",
|
646
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
647
|
+
})
|
648
|
+
```
|
649
|
+
## compute.BackendServiceIamMember
|
650
|
+
|
651
|
+
```python
|
652
|
+
import pulumi
|
653
|
+
import pulumi_gcp as gcp
|
654
|
+
|
655
|
+
member = gcp.compute.BackendServiceIamMember("member",
|
656
|
+
project=default["project"],
|
657
|
+
name=default["name"],
|
658
|
+
role="roles/compute.admin",
|
659
|
+
member="user:jane@example.com")
|
660
|
+
```
|
661
|
+
|
662
|
+
With IAM Conditions:
|
663
|
+
|
664
|
+
```python
|
665
|
+
import pulumi
|
666
|
+
import pulumi_gcp as gcp
|
667
|
+
|
668
|
+
member = gcp.compute.BackendServiceIamMember("member",
|
669
|
+
project=default["project"],
|
670
|
+
name=default["name"],
|
671
|
+
role="roles/compute.admin",
|
672
|
+
member="user:jane@example.com",
|
673
|
+
condition={
|
674
|
+
"title": "expires_after_2019_12_31",
|
675
|
+
"description": "Expiring at midnight of 2019-12-31",
|
676
|
+
"expression": "request.time < timestamp(\\"2020-01-01T00:00:00Z\\")",
|
677
|
+
})
|
678
|
+
```
|
679
|
+
|
216
680
|
## Import
|
217
681
|
|
218
682
|
For all import syntaxes, the "resource in question" can take any of the following forms:
|
@@ -159,6 +159,14 @@ class CrossSiteNetwork(pulumi.CustomResource):
|
|
159
159
|
project: Optional[pulumi.Input[_builtins.str]] = None,
|
160
160
|
__props__=None):
|
161
161
|
"""
|
162
|
+
Represents a cross-site-network resource. A CrossSiteNetwork is used to establish L2 connectivity between groups of Interconnects.
|
163
|
+
|
164
|
+
To get more information about CrossSiteNetwork, see:
|
165
|
+
|
166
|
+
* [API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/crossSiteNetworks)
|
167
|
+
* How-to Guides
|
168
|
+
* [Create a Cross-Site Interconnect](https://cloud.google.com/network-connectivity/docs/interconnect/how-to/cross-site/create-network)
|
169
|
+
|
162
170
|
## Example Usage
|
163
171
|
|
164
172
|
### Compute Cross Site Network Basic
|
@@ -215,6 +223,14 @@ class CrossSiteNetwork(pulumi.CustomResource):
|
|
215
223
|
args: Optional[CrossSiteNetworkArgs] = None,
|
216
224
|
opts: Optional[pulumi.ResourceOptions] = None):
|
217
225
|
"""
|
226
|
+
Represents a cross-site-network resource. A CrossSiteNetwork is used to establish L2 connectivity between groups of Interconnects.
|
227
|
+
|
228
|
+
To get more information about CrossSiteNetwork, see:
|
229
|
+
|
230
|
+
* [API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/crossSiteNetworks)
|
231
|
+
* How-to Guides
|
232
|
+
* [Create a Cross-Site Interconnect](https://cloud.google.com/network-connectivity/docs/interconnect/how-to/cross-site/create-network)
|
233
|
+
|
218
234
|
## Example Usage
|
219
235
|
|
220
236
|
### Compute Cross Site Network Basic
|
@@ -785,6 +785,22 @@ class FutureReservation(pulumi.CustomResource):
|
|
785
785
|
time_window: Optional[pulumi.Input[Union['FutureReservationTimeWindowArgs', 'FutureReservationTimeWindowArgsDict']]] = None,
|
786
786
|
__props__=None):
|
787
787
|
"""
|
788
|
+
Represents a future reservation resource in Compute Engine. Future reservations allow users
|
789
|
+
to reserve capacity for a specified time window, ensuring that resources are available
|
790
|
+
when needed.
|
791
|
+
|
792
|
+
Reservations apply only to Compute Engine, Cloud Dataproc, and Google
|
793
|
+
Kubernetes Engine VM usage.Reservations do not apply to `f1-micro` or
|
794
|
+
`g1-small` machine types, preemptible VMs, sole tenant nodes, or other
|
795
|
+
services not listed above
|
796
|
+
like Cloud SQL and Dataflow.
|
797
|
+
|
798
|
+
To get more information about FutureReservation, see:
|
799
|
+
|
800
|
+
* [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/futureReservations)
|
801
|
+
* How-to Guides
|
802
|
+
* [Future Reservations Guide](https://cloud.google.com/compute/docs/instances/future-reservations-overview)
|
803
|
+
|
788
804
|
## Example Usage
|
789
805
|
|
790
806
|
### Future Reservation Basic
|
@@ -921,6 +937,22 @@ class FutureReservation(pulumi.CustomResource):
|
|
921
937
|
args: FutureReservationArgs,
|
922
938
|
opts: Optional[pulumi.ResourceOptions] = None):
|
923
939
|
"""
|
940
|
+
Represents a future reservation resource in Compute Engine. Future reservations allow users
|
941
|
+
to reserve capacity for a specified time window, ensuring that resources are available
|
942
|
+
when needed.
|
943
|
+
|
944
|
+
Reservations apply only to Compute Engine, Cloud Dataproc, and Google
|
945
|
+
Kubernetes Engine VM usage.Reservations do not apply to `f1-micro` or
|
946
|
+
`g1-small` machine types, preemptible VMs, sole tenant nodes, or other
|
947
|
+
services not listed above
|
948
|
+
like Cloud SQL and Dataflow.
|
949
|
+
|
950
|
+
To get more information about FutureReservation, see:
|
951
|
+
|
952
|
+
* [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/futureReservations)
|
953
|
+
* How-to Guides
|
954
|
+
* [Future Reservations Guide](https://cloud.google.com/compute/docs/instances/future-reservations-overview)
|
955
|
+
|
924
956
|
## Example Usage
|
925
957
|
|
926
958
|
### Future Reservation Basic
|
@@ -27,7 +27,7 @@ class GetRegionBackendServiceResult:
|
|
27
27
|
"""
|
28
28
|
A collection of values returned by getRegionBackendService.
|
29
29
|
"""
|
30
|
-
def __init__(__self__, affinity_cookie_ttl_sec=None, backends=None, cdn_policies=None, circuit_breakers=None, connection_draining_timeout_sec=None, connection_tracking_policies=None, consistent_hashes=None, creation_timestamp=None, custom_metrics=None, description=None, dynamic_forwardings=None, enable_cdn=None, failover_policies=None, fingerprint=None, generated_id=None, ha_policies=None, health_checks=None, iaps=None, id=None, ip_address_selection_policy=None, load_balancing_scheme=None, locality_lb_policy=None, log_configs=None, name=None, network=None, outlier_detections=None, port_name=None, project=None, protocol=None, region=None, security_policy=None, self_link=None, session_affinity=None, strong_session_affinity_cookies=None, subsettings=None, timeout_sec=None):
|
30
|
+
def __init__(__self__, affinity_cookie_ttl_sec=None, backends=None, cdn_policies=None, circuit_breakers=None, connection_draining_timeout_sec=None, connection_tracking_policies=None, consistent_hashes=None, creation_timestamp=None, custom_metrics=None, description=None, dynamic_forwardings=None, enable_cdn=None, failover_policies=None, fingerprint=None, generated_id=None, ha_policies=None, health_checks=None, iaps=None, id=None, ip_address_selection_policy=None, load_balancing_scheme=None, locality_lb_policy=None, log_configs=None, name=None, network=None, outlier_detections=None, params=None, port_name=None, project=None, protocol=None, region=None, security_policy=None, self_link=None, session_affinity=None, strong_session_affinity_cookies=None, subsettings=None, timeout_sec=None):
|
31
31
|
if affinity_cookie_ttl_sec and not isinstance(affinity_cookie_ttl_sec, int):
|
32
32
|
raise TypeError("Expected argument 'affinity_cookie_ttl_sec' to be a int")
|
33
33
|
pulumi.set(__self__, "affinity_cookie_ttl_sec", affinity_cookie_ttl_sec)
|
@@ -106,6 +106,9 @@ class GetRegionBackendServiceResult:
|
|
106
106
|
if outlier_detections and not isinstance(outlier_detections, list):
|
107
107
|
raise TypeError("Expected argument 'outlier_detections' to be a list")
|
108
108
|
pulumi.set(__self__, "outlier_detections", outlier_detections)
|
109
|
+
if params and not isinstance(params, list):
|
110
|
+
raise TypeError("Expected argument 'params' to be a list")
|
111
|
+
pulumi.set(__self__, "params", params)
|
109
112
|
if port_name and not isinstance(port_name, str):
|
110
113
|
raise TypeError("Expected argument 'port_name' to be a str")
|
111
114
|
pulumi.set(__self__, "port_name", port_name)
|
@@ -270,6 +273,11 @@ class GetRegionBackendServiceResult:
|
|
270
273
|
def outlier_detections(self) -> Sequence['outputs.GetRegionBackendServiceOutlierDetectionResult']:
|
271
274
|
return pulumi.get(self, "outlier_detections")
|
272
275
|
|
276
|
+
@_builtins.property
|
277
|
+
@pulumi.getter
|
278
|
+
def params(self) -> Sequence['outputs.GetRegionBackendServiceParamResult']:
|
279
|
+
return pulumi.get(self, "params")
|
280
|
+
|
273
281
|
@_builtins.property
|
274
282
|
@pulumi.getter(name="portName")
|
275
283
|
def port_name(self) -> _builtins.str:
|
@@ -353,6 +361,7 @@ class AwaitableGetRegionBackendServiceResult(GetRegionBackendServiceResult):
|
|
353
361
|
name=self.name,
|
354
362
|
network=self.network,
|
355
363
|
outlier_detections=self.outlier_detections,
|
364
|
+
params=self.params,
|
356
365
|
port_name=self.port_name,
|
357
366
|
project=self.project,
|
358
367
|
protocol=self.protocol,
|
@@ -424,6 +433,7 @@ def get_region_backend_service(name: Optional[_builtins.str] = None,
|
|
424
433
|
name=pulumi.get(__ret__, 'name'),
|
425
434
|
network=pulumi.get(__ret__, 'network'),
|
426
435
|
outlier_detections=pulumi.get(__ret__, 'outlier_detections'),
|
436
|
+
params=pulumi.get(__ret__, 'params'),
|
427
437
|
port_name=pulumi.get(__ret__, 'port_name'),
|
428
438
|
project=pulumi.get(__ret__, 'project'),
|
429
439
|
protocol=pulumi.get(__ret__, 'protocol'),
|
@@ -492,6 +502,7 @@ def get_region_backend_service_output(name: Optional[pulumi.Input[_builtins.str]
|
|
492
502
|
name=pulumi.get(__response__, 'name'),
|
493
503
|
network=pulumi.get(__response__, 'network'),
|
494
504
|
outlier_detections=pulumi.get(__response__, 'outlier_detections'),
|
505
|
+
params=pulumi.get(__response__, 'params'),
|
495
506
|
port_name=pulumi.get(__response__, 'port_name'),
|
496
507
|
project=pulumi.get(__response__, 'project'),
|
497
508
|
protocol=pulumi.get(__response__, 'protocol'),
|
@@ -151,16 +151,7 @@ def get_resource_policy(name: Optional[_builtins.str] = None,
|
|
151
151
|
region: Optional[_builtins.str] = None,
|
152
152
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetResourcePolicyResult:
|
153
153
|
"""
|
154
|
-
|
155
|
-
|
156
|
-
```python
|
157
|
-
import pulumi
|
158
|
-
import pulumi_gcp as gcp
|
159
|
-
|
160
|
-
daily = gcp.compute.get_resource_policy(name="daily",
|
161
|
-
region="us-central1")
|
162
|
-
```
|
163
|
-
|
154
|
+
Use this data source to access information about an existing resource.
|
164
155
|
|
165
156
|
:param _builtins.str name: The name of the Resource Policy.
|
166
157
|
:param _builtins.str project: Project from which to list the Resource Policy. Defaults to project declared in the provider.
|
@@ -190,16 +181,7 @@ def get_resource_policy_output(name: Optional[pulumi.Input[_builtins.str]] = Non
|
|
190
181
|
region: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
191
182
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetResourcePolicyResult]:
|
192
183
|
"""
|
193
|
-
|
194
|
-
|
195
|
-
```python
|
196
|
-
import pulumi
|
197
|
-
import pulumi_gcp as gcp
|
198
|
-
|
199
|
-
daily = gcp.compute.get_resource_policy(name="daily",
|
200
|
-
region="us-central1")
|
201
|
-
```
|
202
|
-
|
184
|
+
Use this data source to access information about an existing resource.
|
203
185
|
|
204
186
|
:param _builtins.str name: The name of the Resource Policy.
|
205
187
|
:param _builtins.str project: Project from which to list the Resource Policy. Defaults to project declared in the provider.
|