pulumi-gcp 7.34.0a1722421695__py3-none-any.whl → 7.35.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.
Potentially problematic release.
This version of pulumi-gcp might be problematic. Click here for more details.
- pulumi_gcp/__init__.py +40 -0
- pulumi_gcp/accesscontextmanager/_inputs.py +12 -3
- pulumi_gcp/accesscontextmanager/access_policy.py +18 -18
- pulumi_gcp/accesscontextmanager/outputs.py +8 -2
- pulumi_gcp/alloydb/_inputs.py +174 -0
- pulumi_gcp/alloydb/instance.py +54 -0
- pulumi_gcp/alloydb/outputs.py +133 -0
- pulumi_gcp/apigee/__init__.py +2 -0
- pulumi_gcp/apigee/environment_keyvaluemaps.py +370 -0
- pulumi_gcp/apigee/environment_keyvaluemaps_entries.py +440 -0
- pulumi_gcp/apigee/instance.py +2 -2
- pulumi_gcp/apigee/nat_address.py +2 -2
- pulumi_gcp/apigee/organization.py +4 -4
- pulumi_gcp/apphub/service_project_attachment.py +11 -11
- pulumi_gcp/bigquery/_inputs.py +36 -0
- pulumi_gcp/bigquery/app_profile.py +54 -0
- pulumi_gcp/bigquery/data_transfer_config.py +52 -0
- pulumi_gcp/bigquery/outputs.py +38 -0
- pulumi_gcp/bigquery/reservation.py +34 -4
- pulumi_gcp/bigquery/table.py +65 -21
- pulumi_gcp/bigtable/table.py +27 -26
- pulumi_gcp/certificateauthority/authority.py +4 -4
- pulumi_gcp/cloudfunctions/function.py +47 -0
- pulumi_gcp/cloudfunctions/get_function.py +11 -1
- pulumi_gcp/cloudfunctionsv2/function.py +2 -2
- pulumi_gcp/cloudrun/_inputs.py +24 -21
- pulumi_gcp/cloudrun/outputs.py +20 -24
- pulumi_gcp/cloudrunv2/_inputs.py +3 -0
- pulumi_gcp/cloudrunv2/outputs.py +4 -0
- pulumi_gcp/compute/__init__.py +2 -0
- pulumi_gcp/compute/_inputs.py +2358 -353
- pulumi_gcp/compute/backend_service.py +6 -0
- pulumi_gcp/compute/disk.py +75 -0
- pulumi_gcp/compute/get_disk.py +11 -1
- pulumi_gcp/compute/get_hc_vpn_gateway.py +11 -1
- pulumi_gcp/compute/get_instance_template.py +2 -2
- pulumi_gcp/compute/get_region_instance_template.py +2 -2
- pulumi_gcp/compute/get_snapshot.py +2 -2
- pulumi_gcp/compute/ha_vpn_gateway.py +68 -7
- pulumi_gcp/compute/outputs.py +1490 -31
- pulumi_gcp/compute/public_advertised_prefix.py +30 -2
- pulumi_gcp/compute/resize_request.py +782 -0
- pulumi_gcp/compute/router_peer.py +437 -0
- pulumi_gcp/compute/router_route_policy.py +616 -0
- pulumi_gcp/compute/service_attachment.py +7 -14
- pulumi_gcp/container/_inputs.py +218 -21
- pulumi_gcp/container/node_pool.py +0 -14
- pulumi_gcp/container/outputs.py +228 -14
- pulumi_gcp/databasemigrationservice/private_connection.py +10 -6
- pulumi_gcp/dataloss/_inputs.py +707 -21
- pulumi_gcp/dataloss/outputs.py +588 -14
- pulumi_gcp/datastore/data_store_index.py +24 -12
- pulumi_gcp/datastream/_inputs.py +83 -3
- pulumi_gcp/datastream/outputs.py +51 -3
- pulumi_gcp/datastream/stream.py +170 -0
- pulumi_gcp/firebase/database_instance.py +8 -8
- pulumi_gcp/firebase/hosting_site.py +8 -8
- pulumi_gcp/firebase/project.py +10 -2
- pulumi_gcp/firestore/index.py +10 -10
- pulumi_gcp/gkeonprem/_inputs.py +78 -78
- pulumi_gcp/gkeonprem/outputs.py +52 -52
- pulumi_gcp/iap/client.py +4 -4
- pulumi_gcp/integrationconnectors/_inputs.py +30 -30
- pulumi_gcp/integrationconnectors/outputs.py +20 -20
- pulumi_gcp/kms/key_handle.py +7 -7
- pulumi_gcp/migrationcenter/_inputs.py +21 -129
- pulumi_gcp/migrationcenter/outputs.py +14 -86
- pulumi_gcp/netapp/volume.py +1 -1
- pulumi_gcp/networkconnectivity/_inputs.py +3 -6
- pulumi_gcp/networkconnectivity/hub.py +129 -49
- pulumi_gcp/networkconnectivity/outputs.py +2 -4
- pulumi_gcp/networkconnectivity/spoke.py +159 -104
- pulumi_gcp/networksecurity/tls_inspection_policy.py +2 -2
- pulumi_gcp/organizations/project.py +16 -7
- pulumi_gcp/orgpolicy/policy.py +4 -4
- pulumi_gcp/projects/get_project_service.py +11 -1
- pulumi_gcp/projects/service.py +68 -0
- pulumi_gcp/projects/service_identity.py +30 -2
- pulumi_gcp/pubsub/subscription.py +6 -6
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/securesourcemanager/instance.py +528 -4
- pulumi_gcp/securitycenter/__init__.py +1 -0
- pulumi_gcp/securitycenter/v2_organization_mute_config.py +673 -0
- pulumi_gcp/sql/_inputs.py +35 -15
- pulumi_gcp/sql/database_instance.py +2 -2
- pulumi_gcp/sql/outputs.py +50 -14
- pulumi_gcp/vertex/ai_feature_online_store_featureview.py +4 -4
- pulumi_gcp/vmwareengine/get_private_cloud.py +21 -1
- pulumi_gcp/vmwareengine/private_cloud.py +121 -2
- pulumi_gcp/workbench/_inputs.py +77 -0
- pulumi_gcp/workbench/instance.py +18 -4
- pulumi_gcp/workbench/outputs.py +67 -1
- {pulumi_gcp-7.34.0a1722421695.dist-info → pulumi_gcp-7.35.0.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.34.0a1722421695.dist-info → pulumi_gcp-7.35.0.dist-info}/RECORD +96 -91
- {pulumi_gcp-7.34.0a1722421695.dist-info → pulumi_gcp-7.35.0.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.34.0a1722421695.dist-info → pulumi_gcp-7.35.0.dist-info}/top_level.txt +0 -0
@@ -579,7 +579,7 @@ class TlsInspectionPolicy(pulumi.CustomResource):
|
|
579
579
|
default_ca_pool_iam_member = gcp.certificateauthority.CaPoolIamMember("default",
|
580
580
|
ca_pool=default.id,
|
581
581
|
role="roles/privateca.certificateManager",
|
582
|
-
member=ns_sa.
|
582
|
+
member=ns_sa.member)
|
583
583
|
default_trust_config = gcp.certificatemanager.TrustConfig("default",
|
584
584
|
name="my-trust-config",
|
585
585
|
description="sample trust config description",
|
@@ -828,7 +828,7 @@ class TlsInspectionPolicy(pulumi.CustomResource):
|
|
828
828
|
default_ca_pool_iam_member = gcp.certificateauthority.CaPoolIamMember("default",
|
829
829
|
ca_pool=default.id,
|
830
830
|
role="roles/privateca.certificateManager",
|
831
|
-
member=ns_sa.
|
831
|
+
member=ns_sa.member)
|
832
832
|
default_trust_config = gcp.certificatemanager.TrustConfig("default",
|
833
833
|
name="my-trust-config",
|
834
834
|
description="sample trust config description",
|
@@ -54,7 +54,7 @@ class ProjectArgs:
|
|
54
54
|
organization.
|
55
55
|
:param pulumi.Input[str] project_id: The project ID. Changing this forces a new project to be created.
|
56
56
|
:param pulumi.Input[bool] skip_delete: If true, the resource can be deleted
|
57
|
-
without deleting the Project via the Google API.
|
57
|
+
without deleting the Project via the Google API. `skip_delete` is deprecated and will be removed in a future major release. The new release adds support for `deletion_policy` instead.
|
58
58
|
"""
|
59
59
|
if auto_create_network is not None:
|
60
60
|
pulumi.set(__self__, "auto_create_network", auto_create_network)
|
@@ -70,6 +70,9 @@ class ProjectArgs:
|
|
70
70
|
pulumi.set(__self__, "org_id", org_id)
|
71
71
|
if project_id is not None:
|
72
72
|
pulumi.set(__self__, "project_id", project_id)
|
73
|
+
if skip_delete is not None:
|
74
|
+
warnings.warn("""skip_delete is deprecated and will be removed in a future major release. The new release adds support for deletion_policy instead.""", DeprecationWarning)
|
75
|
+
pulumi.log.warn("""skip_delete is deprecated: skip_delete is deprecated and will be removed in a future major release. The new release adds support for deletion_policy instead.""")
|
73
76
|
if skip_delete is not None:
|
74
77
|
pulumi.set(__self__, "skip_delete", skip_delete)
|
75
78
|
|
@@ -176,10 +179,11 @@ class ProjectArgs:
|
|
176
179
|
|
177
180
|
@property
|
178
181
|
@pulumi.getter(name="skipDelete")
|
182
|
+
@_utilities.deprecated("""skip_delete is deprecated and will be removed in a future major release. The new release adds support for deletion_policy instead.""")
|
179
183
|
def skip_delete(self) -> Optional[pulumi.Input[bool]]:
|
180
184
|
"""
|
181
185
|
If true, the resource can be deleted
|
182
|
-
without deleting the Project via the Google API.
|
186
|
+
without deleting the Project via the Google API. `skip_delete` is deprecated and will be removed in a future major release. The new release adds support for `deletion_policy` instead.
|
183
187
|
"""
|
184
188
|
return pulumi.get(self, "skip_delete")
|
185
189
|
|
@@ -232,7 +236,7 @@ class _ProjectState:
|
|
232
236
|
:param pulumi.Input[str] project_id: The project ID. Changing this forces a new project to be created.
|
233
237
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] pulumi_labels: The combination of labels configured directly on the resource and default labels configured on the provider.
|
234
238
|
:param pulumi.Input[bool] skip_delete: If true, the resource can be deleted
|
235
|
-
without deleting the Project via the Google API.
|
239
|
+
without deleting the Project via the Google API. `skip_delete` is deprecated and will be removed in a future major release. The new release adds support for `deletion_policy` instead.
|
236
240
|
"""
|
237
241
|
if auto_create_network is not None:
|
238
242
|
pulumi.set(__self__, "auto_create_network", auto_create_network)
|
@@ -254,6 +258,9 @@ class _ProjectState:
|
|
254
258
|
pulumi.set(__self__, "project_id", project_id)
|
255
259
|
if pulumi_labels is not None:
|
256
260
|
pulumi.set(__self__, "pulumi_labels", pulumi_labels)
|
261
|
+
if skip_delete is not None:
|
262
|
+
warnings.warn("""skip_delete is deprecated and will be removed in a future major release. The new release adds support for deletion_policy instead.""", DeprecationWarning)
|
263
|
+
pulumi.log.warn("""skip_delete is deprecated: skip_delete is deprecated and will be removed in a future major release. The new release adds support for deletion_policy instead.""")
|
257
264
|
if skip_delete is not None:
|
258
265
|
pulumi.set(__self__, "skip_delete", skip_delete)
|
259
266
|
|
@@ -396,10 +403,11 @@ class _ProjectState:
|
|
396
403
|
|
397
404
|
@property
|
398
405
|
@pulumi.getter(name="skipDelete")
|
406
|
+
@_utilities.deprecated("""skip_delete is deprecated and will be removed in a future major release. The new release adds support for deletion_policy instead.""")
|
399
407
|
def skip_delete(self) -> Optional[pulumi.Input[bool]]:
|
400
408
|
"""
|
401
409
|
If true, the resource can be deleted
|
402
|
-
without deleting the Project via the Google API.
|
410
|
+
without deleting the Project via the Google API. `skip_delete` is deprecated and will be removed in a future major release. The new release adds support for `deletion_policy` instead.
|
403
411
|
"""
|
404
412
|
return pulumi.get(self, "skip_delete")
|
405
413
|
|
@@ -507,7 +515,7 @@ class Project(pulumi.CustomResource):
|
|
507
515
|
organization.
|
508
516
|
:param pulumi.Input[str] project_id: The project ID. Changing this forces a new project to be created.
|
509
517
|
:param pulumi.Input[bool] skip_delete: If true, the resource can be deleted
|
510
|
-
without deleting the Project via the Google API.
|
518
|
+
without deleting the Project via the Google API. `skip_delete` is deprecated and will be removed in a future major release. The new release adds support for `deletion_policy` instead.
|
511
519
|
"""
|
512
520
|
...
|
513
521
|
@overload
|
@@ -674,7 +682,7 @@ class Project(pulumi.CustomResource):
|
|
674
682
|
:param pulumi.Input[str] project_id: The project ID. Changing this forces a new project to be created.
|
675
683
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] pulumi_labels: The combination of labels configured directly on the resource and default labels configured on the provider.
|
676
684
|
:param pulumi.Input[bool] skip_delete: If true, the resource can be deleted
|
677
|
-
without deleting the Project via the Google API.
|
685
|
+
without deleting the Project via the Google API. `skip_delete` is deprecated and will be removed in a future major release. The new release adds support for `deletion_policy` instead.
|
678
686
|
"""
|
679
687
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
680
688
|
|
@@ -792,10 +800,11 @@ class Project(pulumi.CustomResource):
|
|
792
800
|
|
793
801
|
@property
|
794
802
|
@pulumi.getter(name="skipDelete")
|
803
|
+
@_utilities.deprecated("""skip_delete is deprecated and will be removed in a future major release. The new release adds support for deletion_policy instead.""")
|
795
804
|
def skip_delete(self) -> pulumi.Output[bool]:
|
796
805
|
"""
|
797
806
|
If true, the resource can be deleted
|
798
|
-
without deleting the Project via the Google API.
|
807
|
+
without deleting the Project via the Google API. `skip_delete` is deprecated and will be removed in a future major release. The new release adds support for `deletion_policy` instead.
|
799
808
|
"""
|
800
809
|
return pulumi.get(self, "skip_delete")
|
801
810
|
|
pulumi_gcp/orgpolicy/policy.py
CHANGED
@@ -288,7 +288,7 @@ class Policy(pulumi.CustomResource):
|
|
288
288
|
{
|
289
289
|
"condition": {
|
290
290
|
"description": "A sample condition for the policy",
|
291
|
-
"expression": "resource.
|
291
|
+
"expression": "resource.matchTagId('tagKeys/123', 'tagValues/345')",
|
292
292
|
"location": "sample-location.log",
|
293
293
|
"title": "sample-condition",
|
294
294
|
},
|
@@ -310,7 +310,7 @@ class Policy(pulumi.CustomResource):
|
|
310
310
|
import pulumi_gcp as gcp
|
311
311
|
|
312
312
|
constraint = gcp.orgpolicy.CustomConstraint("constraint",
|
313
|
-
name="custom.
|
313
|
+
name="custom.disableGkeAutoUpgrade_37559",
|
314
314
|
parent="organizations/123456789",
|
315
315
|
display_name="Disable GKE auto upgrade",
|
316
316
|
description="Only allow GKE NodePool resource to be created or updated if AutoUpgrade is not enabled where this custom constraint is enforced.",
|
@@ -446,7 +446,7 @@ class Policy(pulumi.CustomResource):
|
|
446
446
|
{
|
447
447
|
"condition": {
|
448
448
|
"description": "A sample condition for the policy",
|
449
|
-
"expression": "resource.
|
449
|
+
"expression": "resource.matchTagId('tagKeys/123', 'tagValues/345')",
|
450
450
|
"location": "sample-location.log",
|
451
451
|
"title": "sample-condition",
|
452
452
|
},
|
@@ -468,7 +468,7 @@ class Policy(pulumi.CustomResource):
|
|
468
468
|
import pulumi_gcp as gcp
|
469
469
|
|
470
470
|
constraint = gcp.orgpolicy.CustomConstraint("constraint",
|
471
|
-
name="custom.
|
471
|
+
name="custom.disableGkeAutoUpgrade_37559",
|
472
472
|
parent="organizations/123456789",
|
473
473
|
display_name="Disable GKE auto upgrade",
|
474
474
|
description="Only allow GKE NodePool resource to be created or updated if AutoUpgrade is not enabled where this custom constraint is enforced.",
|
@@ -26,7 +26,10 @@ class GetProjectServiceResult:
|
|
26
26
|
"""
|
27
27
|
A collection of values returned by getProjectService.
|
28
28
|
"""
|
29
|
-
def __init__(__self__, disable_dependent_services=None, disable_on_destroy=None, id=None, project=None, service=None):
|
29
|
+
def __init__(__self__, check_if_service_has_usage_on_destroy=None, disable_dependent_services=None, disable_on_destroy=None, id=None, project=None, service=None):
|
30
|
+
if check_if_service_has_usage_on_destroy and not isinstance(check_if_service_has_usage_on_destroy, bool):
|
31
|
+
raise TypeError("Expected argument 'check_if_service_has_usage_on_destroy' to be a bool")
|
32
|
+
pulumi.set(__self__, "check_if_service_has_usage_on_destroy", check_if_service_has_usage_on_destroy)
|
30
33
|
if disable_dependent_services and not isinstance(disable_dependent_services, bool):
|
31
34
|
raise TypeError("Expected argument 'disable_dependent_services' to be a bool")
|
32
35
|
pulumi.set(__self__, "disable_dependent_services", disable_dependent_services)
|
@@ -43,6 +46,11 @@ class GetProjectServiceResult:
|
|
43
46
|
raise TypeError("Expected argument 'service' to be a str")
|
44
47
|
pulumi.set(__self__, "service", service)
|
45
48
|
|
49
|
+
@property
|
50
|
+
@pulumi.getter(name="checkIfServiceHasUsageOnDestroy")
|
51
|
+
def check_if_service_has_usage_on_destroy(self) -> bool:
|
52
|
+
return pulumi.get(self, "check_if_service_has_usage_on_destroy")
|
53
|
+
|
46
54
|
@property
|
47
55
|
@pulumi.getter(name="disableDependentServices")
|
48
56
|
def disable_dependent_services(self) -> bool:
|
@@ -78,6 +86,7 @@ class AwaitableGetProjectServiceResult(GetProjectServiceResult):
|
|
78
86
|
if False:
|
79
87
|
yield self
|
80
88
|
return GetProjectServiceResult(
|
89
|
+
check_if_service_has_usage_on_destroy=self.check_if_service_has_usage_on_destroy,
|
81
90
|
disable_dependent_services=self.disable_dependent_services,
|
82
91
|
disable_on_destroy=self.disable_on_destroy,
|
83
92
|
id=self.id,
|
@@ -126,6 +135,7 @@ def get_project_service(project: Optional[str] = None,
|
|
126
135
|
__ret__ = pulumi.runtime.invoke('gcp:projects/getProjectService:getProjectService', __args__, opts=opts, typ=GetProjectServiceResult).value
|
127
136
|
|
128
137
|
return AwaitableGetProjectServiceResult(
|
138
|
+
check_if_service_has_usage_on_destroy=pulumi.get(__ret__, 'check_if_service_has_usage_on_destroy'),
|
129
139
|
disable_dependent_services=pulumi.get(__ret__, 'disable_dependent_services'),
|
130
140
|
disable_on_destroy=pulumi.get(__ret__, 'disable_on_destroy'),
|
131
141
|
id=pulumi.get(__ret__, 'id'),
|
pulumi_gcp/projects/service.py
CHANGED
@@ -20,12 +20,17 @@ __all__ = ['ServiceArgs', 'Service']
|
|
20
20
|
class ServiceArgs:
|
21
21
|
def __init__(__self__, *,
|
22
22
|
service: pulumi.Input[str],
|
23
|
+
check_if_service_has_usage_on_destroy: Optional[pulumi.Input[bool]] = None,
|
23
24
|
disable_dependent_services: Optional[pulumi.Input[bool]] = None,
|
24
25
|
disable_on_destroy: Optional[pulumi.Input[bool]] = None,
|
25
26
|
project: Optional[pulumi.Input[str]] = None):
|
26
27
|
"""
|
27
28
|
The set of arguments for constructing a Service resource.
|
28
29
|
:param pulumi.Input[str] service: The service to enable.
|
30
|
+
:param pulumi.Input[bool] check_if_service_has_usage_on_destroy: Beta
|
31
|
+
If `true`, the usage of the service to be disabled will be checked and an error
|
32
|
+
will be returned if the service to be disabled has usage in last 30 days.
|
33
|
+
Defaults to `false`.
|
29
34
|
:param pulumi.Input[bool] disable_dependent_services: If `true`, services that are enabled
|
30
35
|
and which depend on this service should also be disabled when this service is
|
31
36
|
destroyed. If `false` or unset, an error will be generated if any enabled
|
@@ -34,6 +39,8 @@ class ServiceArgs:
|
|
34
39
|
is used.
|
35
40
|
"""
|
36
41
|
pulumi.set(__self__, "service", service)
|
42
|
+
if check_if_service_has_usage_on_destroy is not None:
|
43
|
+
pulumi.set(__self__, "check_if_service_has_usage_on_destroy", check_if_service_has_usage_on_destroy)
|
37
44
|
if disable_dependent_services is not None:
|
38
45
|
pulumi.set(__self__, "disable_dependent_services", disable_dependent_services)
|
39
46
|
if disable_on_destroy is not None:
|
@@ -53,6 +60,21 @@ class ServiceArgs:
|
|
53
60
|
def service(self, value: pulumi.Input[str]):
|
54
61
|
pulumi.set(self, "service", value)
|
55
62
|
|
63
|
+
@property
|
64
|
+
@pulumi.getter(name="checkIfServiceHasUsageOnDestroy")
|
65
|
+
def check_if_service_has_usage_on_destroy(self) -> Optional[pulumi.Input[bool]]:
|
66
|
+
"""
|
67
|
+
Beta
|
68
|
+
If `true`, the usage of the service to be disabled will be checked and an error
|
69
|
+
will be returned if the service to be disabled has usage in last 30 days.
|
70
|
+
Defaults to `false`.
|
71
|
+
"""
|
72
|
+
return pulumi.get(self, "check_if_service_has_usage_on_destroy")
|
73
|
+
|
74
|
+
@check_if_service_has_usage_on_destroy.setter
|
75
|
+
def check_if_service_has_usage_on_destroy(self, value: Optional[pulumi.Input[bool]]):
|
76
|
+
pulumi.set(self, "check_if_service_has_usage_on_destroy", value)
|
77
|
+
|
56
78
|
@property
|
57
79
|
@pulumi.getter(name="disableDependentServices")
|
58
80
|
def disable_dependent_services(self) -> Optional[pulumi.Input[bool]]:
|
@@ -94,12 +116,17 @@ class ServiceArgs:
|
|
94
116
|
@pulumi.input_type
|
95
117
|
class _ServiceState:
|
96
118
|
def __init__(__self__, *,
|
119
|
+
check_if_service_has_usage_on_destroy: Optional[pulumi.Input[bool]] = None,
|
97
120
|
disable_dependent_services: Optional[pulumi.Input[bool]] = None,
|
98
121
|
disable_on_destroy: Optional[pulumi.Input[bool]] = None,
|
99
122
|
project: Optional[pulumi.Input[str]] = None,
|
100
123
|
service: Optional[pulumi.Input[str]] = None):
|
101
124
|
"""
|
102
125
|
Input properties used for looking up and filtering Service resources.
|
126
|
+
:param pulumi.Input[bool] check_if_service_has_usage_on_destroy: Beta
|
127
|
+
If `true`, the usage of the service to be disabled will be checked and an error
|
128
|
+
will be returned if the service to be disabled has usage in last 30 days.
|
129
|
+
Defaults to `false`.
|
103
130
|
:param pulumi.Input[bool] disable_dependent_services: If `true`, services that are enabled
|
104
131
|
and which depend on this service should also be disabled when this service is
|
105
132
|
destroyed. If `false` or unset, an error will be generated if any enabled
|
@@ -108,6 +135,8 @@ class _ServiceState:
|
|
108
135
|
is used.
|
109
136
|
:param pulumi.Input[str] service: The service to enable.
|
110
137
|
"""
|
138
|
+
if check_if_service_has_usage_on_destroy is not None:
|
139
|
+
pulumi.set(__self__, "check_if_service_has_usage_on_destroy", check_if_service_has_usage_on_destroy)
|
111
140
|
if disable_dependent_services is not None:
|
112
141
|
pulumi.set(__self__, "disable_dependent_services", disable_dependent_services)
|
113
142
|
if disable_on_destroy is not None:
|
@@ -117,6 +146,21 @@ class _ServiceState:
|
|
117
146
|
if service is not None:
|
118
147
|
pulumi.set(__self__, "service", service)
|
119
148
|
|
149
|
+
@property
|
150
|
+
@pulumi.getter(name="checkIfServiceHasUsageOnDestroy")
|
151
|
+
def check_if_service_has_usage_on_destroy(self) -> Optional[pulumi.Input[bool]]:
|
152
|
+
"""
|
153
|
+
Beta
|
154
|
+
If `true`, the usage of the service to be disabled will be checked and an error
|
155
|
+
will be returned if the service to be disabled has usage in last 30 days.
|
156
|
+
Defaults to `false`.
|
157
|
+
"""
|
158
|
+
return pulumi.get(self, "check_if_service_has_usage_on_destroy")
|
159
|
+
|
160
|
+
@check_if_service_has_usage_on_destroy.setter
|
161
|
+
def check_if_service_has_usage_on_destroy(self, value: Optional[pulumi.Input[bool]]):
|
162
|
+
pulumi.set(self, "check_if_service_has_usage_on_destroy", value)
|
163
|
+
|
120
164
|
@property
|
121
165
|
@pulumi.getter(name="disableDependentServices")
|
122
166
|
def disable_dependent_services(self) -> Optional[pulumi.Input[bool]]:
|
@@ -172,6 +216,7 @@ class Service(pulumi.CustomResource):
|
|
172
216
|
def __init__(__self__,
|
173
217
|
resource_name: str,
|
174
218
|
opts: Optional[pulumi.ResourceOptions] = None,
|
219
|
+
check_if_service_has_usage_on_destroy: Optional[pulumi.Input[bool]] = None,
|
175
220
|
disable_dependent_services: Optional[pulumi.Input[bool]] = None,
|
176
221
|
disable_on_destroy: Optional[pulumi.Input[bool]] = None,
|
177
222
|
project: Optional[pulumi.Input[str]] = None,
|
@@ -214,6 +259,10 @@ class Service(pulumi.CustomResource):
|
|
214
259
|
|
215
260
|
:param str resource_name: The name of the resource.
|
216
261
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
262
|
+
:param pulumi.Input[bool] check_if_service_has_usage_on_destroy: Beta
|
263
|
+
If `true`, the usage of the service to be disabled will be checked and an error
|
264
|
+
will be returned if the service to be disabled has usage in last 30 days.
|
265
|
+
Defaults to `false`.
|
217
266
|
:param pulumi.Input[bool] disable_dependent_services: If `true`, services that are enabled
|
218
267
|
and which depend on this service should also be disabled when this service is
|
219
268
|
destroyed. If `false` or unset, an error will be generated if any enabled
|
@@ -278,6 +327,7 @@ class Service(pulumi.CustomResource):
|
|
278
327
|
def _internal_init(__self__,
|
279
328
|
resource_name: str,
|
280
329
|
opts: Optional[pulumi.ResourceOptions] = None,
|
330
|
+
check_if_service_has_usage_on_destroy: Optional[pulumi.Input[bool]] = None,
|
281
331
|
disable_dependent_services: Optional[pulumi.Input[bool]] = None,
|
282
332
|
disable_on_destroy: Optional[pulumi.Input[bool]] = None,
|
283
333
|
project: Optional[pulumi.Input[str]] = None,
|
@@ -291,6 +341,7 @@ class Service(pulumi.CustomResource):
|
|
291
341
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
292
342
|
__props__ = ServiceArgs.__new__(ServiceArgs)
|
293
343
|
|
344
|
+
__props__.__dict__["check_if_service_has_usage_on_destroy"] = check_if_service_has_usage_on_destroy
|
294
345
|
__props__.__dict__["disable_dependent_services"] = disable_dependent_services
|
295
346
|
__props__.__dict__["disable_on_destroy"] = disable_on_destroy
|
296
347
|
__props__.__dict__["project"] = project
|
@@ -307,6 +358,7 @@ class Service(pulumi.CustomResource):
|
|
307
358
|
def get(resource_name: str,
|
308
359
|
id: pulumi.Input[str],
|
309
360
|
opts: Optional[pulumi.ResourceOptions] = None,
|
361
|
+
check_if_service_has_usage_on_destroy: Optional[pulumi.Input[bool]] = None,
|
310
362
|
disable_dependent_services: Optional[pulumi.Input[bool]] = None,
|
311
363
|
disable_on_destroy: Optional[pulumi.Input[bool]] = None,
|
312
364
|
project: Optional[pulumi.Input[str]] = None,
|
@@ -318,6 +370,10 @@ class Service(pulumi.CustomResource):
|
|
318
370
|
:param str resource_name: The unique name of the resulting resource.
|
319
371
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
320
372
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
373
|
+
:param pulumi.Input[bool] check_if_service_has_usage_on_destroy: Beta
|
374
|
+
If `true`, the usage of the service to be disabled will be checked and an error
|
375
|
+
will be returned if the service to be disabled has usage in last 30 days.
|
376
|
+
Defaults to `false`.
|
321
377
|
:param pulumi.Input[bool] disable_dependent_services: If `true`, services that are enabled
|
322
378
|
and which depend on this service should also be disabled when this service is
|
323
379
|
destroyed. If `false` or unset, an error will be generated if any enabled
|
@@ -330,12 +386,24 @@ class Service(pulumi.CustomResource):
|
|
330
386
|
|
331
387
|
__props__ = _ServiceState.__new__(_ServiceState)
|
332
388
|
|
389
|
+
__props__.__dict__["check_if_service_has_usage_on_destroy"] = check_if_service_has_usage_on_destroy
|
333
390
|
__props__.__dict__["disable_dependent_services"] = disable_dependent_services
|
334
391
|
__props__.__dict__["disable_on_destroy"] = disable_on_destroy
|
335
392
|
__props__.__dict__["project"] = project
|
336
393
|
__props__.__dict__["service"] = service
|
337
394
|
return Service(resource_name, opts=opts, __props__=__props__)
|
338
395
|
|
396
|
+
@property
|
397
|
+
@pulumi.getter(name="checkIfServiceHasUsageOnDestroy")
|
398
|
+
def check_if_service_has_usage_on_destroy(self) -> pulumi.Output[Optional[bool]]:
|
399
|
+
"""
|
400
|
+
Beta
|
401
|
+
If `true`, the usage of the service to be disabled will be checked and an error
|
402
|
+
will be returned if the service to be disabled has usage in last 30 days.
|
403
|
+
Defaults to `false`.
|
404
|
+
"""
|
405
|
+
return pulumi.get(self, "check_if_service_has_usage_on_destroy")
|
406
|
+
|
339
407
|
@property
|
340
408
|
@pulumi.getter(name="disableDependentServices")
|
341
409
|
def disable_dependent_services(self) -> pulumi.Output[Optional[bool]]:
|
@@ -65,11 +65,13 @@ class ServiceIdentityArgs:
|
|
65
65
|
class _ServiceIdentityState:
|
66
66
|
def __init__(__self__, *,
|
67
67
|
email: Optional[pulumi.Input[str]] = None,
|
68
|
+
member: Optional[pulumi.Input[str]] = None,
|
68
69
|
project: Optional[pulumi.Input[str]] = None,
|
69
70
|
service: Optional[pulumi.Input[str]] = None):
|
70
71
|
"""
|
71
72
|
Input properties used for looking up and filtering ServiceIdentity resources.
|
72
73
|
:param pulumi.Input[str] email: The email address of the Google managed service account.
|
74
|
+
:param pulumi.Input[str] member: The Identity of the Google managed service account in the form 'serviceAccount:{email}'. This value is often used to refer to the service account in order to grant IAM permissions.
|
73
75
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
74
76
|
If it is not provided, the provider project is used.
|
75
77
|
:param pulumi.Input[str] service: The service to generate identity for.
|
@@ -78,6 +80,8 @@ class _ServiceIdentityState:
|
|
78
80
|
"""
|
79
81
|
if email is not None:
|
80
82
|
pulumi.set(__self__, "email", email)
|
83
|
+
if member is not None:
|
84
|
+
pulumi.set(__self__, "member", member)
|
81
85
|
if project is not None:
|
82
86
|
pulumi.set(__self__, "project", project)
|
83
87
|
if service is not None:
|
@@ -95,6 +99,18 @@ class _ServiceIdentityState:
|
|
95
99
|
def email(self, value: Optional[pulumi.Input[str]]):
|
96
100
|
pulumi.set(self, "email", value)
|
97
101
|
|
102
|
+
@property
|
103
|
+
@pulumi.getter
|
104
|
+
def member(self) -> Optional[pulumi.Input[str]]:
|
105
|
+
"""
|
106
|
+
The Identity of the Google managed service account in the form 'serviceAccount:{email}'. This value is often used to refer to the service account in order to grant IAM permissions.
|
107
|
+
"""
|
108
|
+
return pulumi.get(self, "member")
|
109
|
+
|
110
|
+
@member.setter
|
111
|
+
def member(self, value: Optional[pulumi.Input[str]]):
|
112
|
+
pulumi.set(self, "member", value)
|
113
|
+
|
98
114
|
@property
|
99
115
|
@pulumi.getter
|
100
116
|
def project(self) -> Optional[pulumi.Input[str]]:
|
@@ -160,7 +176,7 @@ class ServiceIdentity(pulumi.CustomResource):
|
|
160
176
|
hc_sa_bq_jobuser = gcp.projects.IAMMember("hc_sa_bq_jobuser",
|
161
177
|
project=project.project_id,
|
162
178
|
role="roles/bigquery.jobUser",
|
163
|
-
member=hc_sa.
|
179
|
+
member=hc_sa.member)
|
164
180
|
```
|
165
181
|
|
166
182
|
## Import
|
@@ -210,7 +226,7 @@ class ServiceIdentity(pulumi.CustomResource):
|
|
210
226
|
hc_sa_bq_jobuser = gcp.projects.IAMMember("hc_sa_bq_jobuser",
|
211
227
|
project=project.project_id,
|
212
228
|
role="roles/bigquery.jobUser",
|
213
|
-
member=hc_sa.
|
229
|
+
member=hc_sa.member)
|
214
230
|
```
|
215
231
|
|
216
232
|
## Import
|
@@ -248,6 +264,7 @@ class ServiceIdentity(pulumi.CustomResource):
|
|
248
264
|
raise TypeError("Missing required property 'service'")
|
249
265
|
__props__.__dict__["service"] = service
|
250
266
|
__props__.__dict__["email"] = None
|
267
|
+
__props__.__dict__["member"] = None
|
251
268
|
super(ServiceIdentity, __self__).__init__(
|
252
269
|
'gcp:projects/serviceIdentity:ServiceIdentity',
|
253
270
|
resource_name,
|
@@ -259,6 +276,7 @@ class ServiceIdentity(pulumi.CustomResource):
|
|
259
276
|
id: pulumi.Input[str],
|
260
277
|
opts: Optional[pulumi.ResourceOptions] = None,
|
261
278
|
email: Optional[pulumi.Input[str]] = None,
|
279
|
+
member: Optional[pulumi.Input[str]] = None,
|
262
280
|
project: Optional[pulumi.Input[str]] = None,
|
263
281
|
service: Optional[pulumi.Input[str]] = None) -> 'ServiceIdentity':
|
264
282
|
"""
|
@@ -269,6 +287,7 @@ class ServiceIdentity(pulumi.CustomResource):
|
|
269
287
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
270
288
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
271
289
|
:param pulumi.Input[str] email: The email address of the Google managed service account.
|
290
|
+
:param pulumi.Input[str] member: The Identity of the Google managed service account in the form 'serviceAccount:{email}'. This value is often used to refer to the service account in order to grant IAM permissions.
|
272
291
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
273
292
|
If it is not provided, the provider project is used.
|
274
293
|
:param pulumi.Input[str] service: The service to generate identity for.
|
@@ -280,6 +299,7 @@ class ServiceIdentity(pulumi.CustomResource):
|
|
280
299
|
__props__ = _ServiceIdentityState.__new__(_ServiceIdentityState)
|
281
300
|
|
282
301
|
__props__.__dict__["email"] = email
|
302
|
+
__props__.__dict__["member"] = member
|
283
303
|
__props__.__dict__["project"] = project
|
284
304
|
__props__.__dict__["service"] = service
|
285
305
|
return ServiceIdentity(resource_name, opts=opts, __props__=__props__)
|
@@ -292,6 +312,14 @@ class ServiceIdentity(pulumi.CustomResource):
|
|
292
312
|
"""
|
293
313
|
return pulumi.get(self, "email")
|
294
314
|
|
315
|
+
@property
|
316
|
+
@pulumi.getter
|
317
|
+
def member(self) -> pulumi.Output[str]:
|
318
|
+
"""
|
319
|
+
The Identity of the Google managed service account in the form 'serviceAccount:{email}'. This value is often used to refer to the service account in order to grant IAM permissions.
|
320
|
+
"""
|
321
|
+
return pulumi.get(self, "member")
|
322
|
+
|
295
323
|
@property
|
296
324
|
@pulumi.getter
|
297
325
|
def project(self) -> pulumi.Output[str]:
|
@@ -1104,7 +1104,7 @@ class Subscription(pulumi.CustomResource):
|
|
1104
1104
|
cloud_storage_config={
|
1105
1105
|
"bucket": example.name,
|
1106
1106
|
"filename_prefix": "pre-",
|
1107
|
-
"filename_suffix": "-
|
1107
|
+
"filename_suffix": "-_91980",
|
1108
1108
|
"filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
|
1109
1109
|
"max_bytes": 1000,
|
1110
1110
|
"max_duration": "300s",
|
@@ -1136,7 +1136,7 @@ class Subscription(pulumi.CustomResource):
|
|
1136
1136
|
cloud_storage_config={
|
1137
1137
|
"bucket": example.name,
|
1138
1138
|
"filename_prefix": "pre-",
|
1139
|
-
"filename_suffix": "-
|
1139
|
+
"filename_suffix": "-_37118",
|
1140
1140
|
"filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
|
1141
1141
|
"max_bytes": 1000,
|
1142
1142
|
"max_duration": "300s",
|
@@ -1173,7 +1173,7 @@ class Subscription(pulumi.CustomResource):
|
|
1173
1173
|
cloud_storage_config={
|
1174
1174
|
"bucket": example.name,
|
1175
1175
|
"filename_prefix": "pre-",
|
1176
|
-
"filename_suffix": "-
|
1176
|
+
"filename_suffix": "-_80332",
|
1177
1177
|
"filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
|
1178
1178
|
"max_bytes": 1000,
|
1179
1179
|
"max_duration": "300s",
|
@@ -1532,7 +1532,7 @@ class Subscription(pulumi.CustomResource):
|
|
1532
1532
|
cloud_storage_config={
|
1533
1533
|
"bucket": example.name,
|
1534
1534
|
"filename_prefix": "pre-",
|
1535
|
-
"filename_suffix": "-
|
1535
|
+
"filename_suffix": "-_91980",
|
1536
1536
|
"filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
|
1537
1537
|
"max_bytes": 1000,
|
1538
1538
|
"max_duration": "300s",
|
@@ -1564,7 +1564,7 @@ class Subscription(pulumi.CustomResource):
|
|
1564
1564
|
cloud_storage_config={
|
1565
1565
|
"bucket": example.name,
|
1566
1566
|
"filename_prefix": "pre-",
|
1567
|
-
"filename_suffix": "-
|
1567
|
+
"filename_suffix": "-_37118",
|
1568
1568
|
"filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
|
1569
1569
|
"max_bytes": 1000,
|
1570
1570
|
"max_duration": "300s",
|
@@ -1601,7 +1601,7 @@ class Subscription(pulumi.CustomResource):
|
|
1601
1601
|
cloud_storage_config={
|
1602
1602
|
"bucket": example.name,
|
1603
1603
|
"filename_prefix": "pre-",
|
1604
|
-
"filename_suffix": "-
|
1604
|
+
"filename_suffix": "-_80332",
|
1605
1605
|
"filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
|
1606
1606
|
"max_bytes": 1000,
|
1607
1607
|
"max_duration": "300s",
|
pulumi_gcp/pulumi-plugin.json
CHANGED