pulumi-gcp 8.9.0a1731221331__py3-none-any.whl → 8.9.0a1731432418__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 +64 -0
- pulumi_gcp/activedirectory/domain.py +24 -0
- pulumi_gcp/apigee/__init__.py +1 -0
- pulumi_gcp/apigee/_inputs.py +74 -0
- pulumi_gcp/apigee/api.py +456 -0
- pulumi_gcp/apigee/outputs.py +65 -0
- pulumi_gcp/applicationintegration/auth_config.py +24 -0
- pulumi_gcp/backupdisasterrecovery/__init__.py +4 -0
- pulumi_gcp/backupdisasterrecovery/_inputs.py +533 -0
- pulumi_gcp/backupdisasterrecovery/backup_plan.py +653 -0
- pulumi_gcp/backupdisasterrecovery/backup_plan_association.py +766 -0
- pulumi_gcp/backupdisasterrecovery/backup_vault.py +146 -6
- pulumi_gcp/backupdisasterrecovery/get_backup_plan.py +204 -0
- pulumi_gcp/backupdisasterrecovery/get_backup_plan_association.py +243 -0
- pulumi_gcp/backupdisasterrecovery/outputs.py +702 -0
- pulumi_gcp/bigquery/data_transfer_config.py +24 -0
- pulumi_gcp/cloudrunv2/_inputs.py +46 -0
- pulumi_gcp/cloudrunv2/job.py +0 -2
- pulumi_gcp/cloudrunv2/outputs.py +60 -2
- pulumi_gcp/cloudrunv2/service.py +0 -2
- pulumi_gcp/compute/__init__.py +1 -0
- pulumi_gcp/compute/_inputs.py +2163 -256
- pulumi_gcp/compute/disk.py +7 -7
- pulumi_gcp/compute/firewall_policy_rule.py +108 -54
- pulumi_gcp/compute/get_region_instance_group_manager.py +12 -1
- pulumi_gcp/compute/health_check.py +42 -42
- pulumi_gcp/compute/network_firewall_policy_rule.py +4 -4
- pulumi_gcp/compute/network_firewall_policy_with_rules.py +10 -10
- pulumi_gcp/compute/node_template.py +95 -0
- pulumi_gcp/compute/outputs.py +1639 -213
- pulumi_gcp/compute/region_disk.py +7 -7
- pulumi_gcp/compute/region_health_check.py +42 -42
- pulumi_gcp/compute/region_instance_group_manager.py +54 -14
- pulumi_gcp/compute/region_network_firewall_policy_rule.py +4 -4
- pulumi_gcp/compute/region_network_firewall_policy_with_rules.py +10 -10
- pulumi_gcp/compute/region_resize_request.py +772 -0
- pulumi_gcp/compute/region_security_policy.py +120 -0
- pulumi_gcp/compute/region_security_policy_rule.py +6 -6
- pulumi_gcp/compute/router_peer.py +56 -35
- pulumi_gcp/compute/security_scan_config.py +8 -8
- pulumi_gcp/config/__init__.pyi +4 -0
- pulumi_gcp/config/vars.py +8 -0
- pulumi_gcp/container/_inputs.py +345 -10
- pulumi_gcp/container/cluster.py +101 -0
- pulumi_gcp/container/get_cluster.py +23 -1
- pulumi_gcp/container/outputs.py +456 -8
- pulumi_gcp/dataloss/prevention_discovery_config.py +7 -7
- pulumi_gcp/dataproc/__init__.py +2 -0
- pulumi_gcp/dataproc/_inputs.py +101 -0
- pulumi_gcp/dataproc/gdc_application_environment.py +931 -0
- pulumi_gcp/dataproc/gdc_service_instance.py +1022 -0
- pulumi_gcp/dataproc/outputs.py +94 -0
- pulumi_gcp/edgecontainer/vpn_connection.py +4 -4
- pulumi_gcp/firebase/android_app.py +2 -2
- pulumi_gcp/firebase/apple_app.py +2 -2
- pulumi_gcp/firebase/web_app.py +2 -2
- pulumi_gcp/firestore/index.py +44 -0
- pulumi_gcp/gkeonprem/_inputs.py +15 -15
- pulumi_gcp/gkeonprem/outputs.py +10 -10
- pulumi_gcp/healthcare/dataset.py +7 -7
- pulumi_gcp/healthcare/dicom_store.py +7 -7
- pulumi_gcp/healthcare/fhir_store.py +7 -7
- pulumi_gcp/healthcare/hl7_store.py +14 -14
- pulumi_gcp/iam/__init__.py +1 -0
- pulumi_gcp/iam/_inputs.py +161 -0
- pulumi_gcp/iam/outputs.py +114 -0
- pulumi_gcp/iam/principal_access_boundary_policy.py +679 -0
- pulumi_gcp/logging/metric.py +2 -2
- pulumi_gcp/looker/_inputs.py +6 -0
- pulumi_gcp/looker/instance.py +169 -321
- pulumi_gcp/looker/outputs.py +4 -0
- pulumi_gcp/memorystore/instance.py +4 -0
- pulumi_gcp/monitoring/alert_policy.py +24 -0
- pulumi_gcp/monitoring/custom_service.py +24 -0
- pulumi_gcp/monitoring/group.py +24 -0
- pulumi_gcp/monitoring/metric_descriptor.py +24 -0
- pulumi_gcp/monitoring/slo.py +24 -0
- pulumi_gcp/monitoring/uptime_check_config.py +24 -0
- pulumi_gcp/networkmanagement/__init__.py +1 -0
- pulumi_gcp/networkmanagement/vpc_flow_logs_config.py +1358 -0
- pulumi_gcp/osconfig/patch_deployment.py +8 -8
- pulumi_gcp/provider.py +40 -0
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/redis/_inputs.py +3 -3
- pulumi_gcp/redis/outputs.py +2 -2
- pulumi_gcp/securitycenter/notification_config.py +4 -16
- pulumi_gcp/securitycenter/project_notification_config.py +0 -24
- pulumi_gcp/securitycenter/v2_organization_notification_config.py +4 -16
- pulumi_gcp/spanner/__init__.py +1 -0
- pulumi_gcp/spanner/_inputs.py +9 -9
- pulumi_gcp/spanner/get_database.py +229 -0
- pulumi_gcp/spanner/get_instance.py +12 -1
- pulumi_gcp/spanner/instance.py +70 -0
- pulumi_gcp/spanner/outputs.py +46 -12
- pulumi_gcp/sql/_inputs.py +26 -0
- pulumi_gcp/sql/database_instance.py +124 -11
- pulumi_gcp/sql/get_database_instance.py +12 -1
- pulumi_gcp/sql/outputs.py +51 -0
- pulumi_gcp/storage/_inputs.py +3 -3
- pulumi_gcp/storage/outputs.py +2 -2
- pulumi_gcp/tags/tag_binding.py +4 -4
- pulumi_gcp/tags/tag_value.py +2 -2
- pulumi_gcp/transcoder/job.py +24 -0
- pulumi_gcp/vertex/_inputs.py +184 -0
- pulumi_gcp/vertex/ai_endpoint.py +394 -8
- pulumi_gcp/vertex/ai_feature_online_store_featureview.py +4 -4
- pulumi_gcp/vertex/outputs.py +166 -0
- pulumi_gcp/workbench/instance.py +21 -7
- pulumi_gcp/workflows/workflow.py +36 -0
- pulumi_gcp/workstations/workstation_config.py +8 -8
- {pulumi_gcp-8.9.0a1731221331.dist-info → pulumi_gcp-8.9.0a1731432418.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.9.0a1731221331.dist-info → pulumi_gcp-8.9.0a1731432418.dist-info}/RECORD +114 -103
- {pulumi_gcp-8.9.0a1731221331.dist-info → pulumi_gcp-8.9.0a1731432418.dist-info}/WHEEL +1 -1
- {pulumi_gcp-8.9.0a1731221331.dist-info → pulumi_gcp-8.9.0a1731432418.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1022 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
from . import outputs
|
17
|
+
from ._inputs import *
|
18
|
+
|
19
|
+
__all__ = ['GdcServiceInstanceArgs', 'GdcServiceInstance']
|
20
|
+
|
21
|
+
@pulumi.input_type
|
22
|
+
class GdcServiceInstanceArgs:
|
23
|
+
def __init__(__self__, *,
|
24
|
+
location: pulumi.Input[str],
|
25
|
+
service_instance_id: pulumi.Input[str],
|
26
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
27
|
+
gdce_cluster: Optional[pulumi.Input['GdcServiceInstanceGdceClusterArgs']] = None,
|
28
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
29
|
+
project: Optional[pulumi.Input[str]] = None,
|
30
|
+
service_account: Optional[pulumi.Input[str]] = None,
|
31
|
+
spark_service_instance_config: Optional[pulumi.Input['GdcServiceInstanceSparkServiceInstanceConfigArgs']] = None):
|
32
|
+
"""
|
33
|
+
The set of arguments for constructing a GdcServiceInstance resource.
|
34
|
+
:param pulumi.Input[str] location: Location of the resource.
|
35
|
+
:param pulumi.Input[str] service_instance_id: Id of the service instance.
|
36
|
+
|
37
|
+
|
38
|
+
- - -
|
39
|
+
:param pulumi.Input[str] display_name: User-provided human-readable name to be used in user interfaces.
|
40
|
+
:param pulumi.Input['GdcServiceInstanceGdceClusterArgs'] gdce_cluster: Gdce cluster information.
|
41
|
+
Structure is documented below.
|
42
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: The labels to associate with this service instance. Labels may be used for filtering and billing tracking.
|
43
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
44
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
45
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
46
|
+
If it is not provided, the provider project is used.
|
47
|
+
:param pulumi.Input[str] service_account: Requested service account to associate with ServiceInstance.
|
48
|
+
:param pulumi.Input['GdcServiceInstanceSparkServiceInstanceConfigArgs'] spark_service_instance_config: Spark-specific service instance configuration.
|
49
|
+
"""
|
50
|
+
pulumi.set(__self__, "location", location)
|
51
|
+
pulumi.set(__self__, "service_instance_id", service_instance_id)
|
52
|
+
if display_name is not None:
|
53
|
+
pulumi.set(__self__, "display_name", display_name)
|
54
|
+
if gdce_cluster is not None:
|
55
|
+
pulumi.set(__self__, "gdce_cluster", gdce_cluster)
|
56
|
+
if labels is not None:
|
57
|
+
pulumi.set(__self__, "labels", labels)
|
58
|
+
if project is not None:
|
59
|
+
pulumi.set(__self__, "project", project)
|
60
|
+
if service_account is not None:
|
61
|
+
pulumi.set(__self__, "service_account", service_account)
|
62
|
+
if spark_service_instance_config is not None:
|
63
|
+
pulumi.set(__self__, "spark_service_instance_config", spark_service_instance_config)
|
64
|
+
|
65
|
+
@property
|
66
|
+
@pulumi.getter
|
67
|
+
def location(self) -> pulumi.Input[str]:
|
68
|
+
"""
|
69
|
+
Location of the resource.
|
70
|
+
"""
|
71
|
+
return pulumi.get(self, "location")
|
72
|
+
|
73
|
+
@location.setter
|
74
|
+
def location(self, value: pulumi.Input[str]):
|
75
|
+
pulumi.set(self, "location", value)
|
76
|
+
|
77
|
+
@property
|
78
|
+
@pulumi.getter(name="serviceInstanceId")
|
79
|
+
def service_instance_id(self) -> pulumi.Input[str]:
|
80
|
+
"""
|
81
|
+
Id of the service instance.
|
82
|
+
|
83
|
+
|
84
|
+
- - -
|
85
|
+
"""
|
86
|
+
return pulumi.get(self, "service_instance_id")
|
87
|
+
|
88
|
+
@service_instance_id.setter
|
89
|
+
def service_instance_id(self, value: pulumi.Input[str]):
|
90
|
+
pulumi.set(self, "service_instance_id", value)
|
91
|
+
|
92
|
+
@property
|
93
|
+
@pulumi.getter(name="displayName")
|
94
|
+
def display_name(self) -> Optional[pulumi.Input[str]]:
|
95
|
+
"""
|
96
|
+
User-provided human-readable name to be used in user interfaces.
|
97
|
+
"""
|
98
|
+
return pulumi.get(self, "display_name")
|
99
|
+
|
100
|
+
@display_name.setter
|
101
|
+
def display_name(self, value: Optional[pulumi.Input[str]]):
|
102
|
+
pulumi.set(self, "display_name", value)
|
103
|
+
|
104
|
+
@property
|
105
|
+
@pulumi.getter(name="gdceCluster")
|
106
|
+
def gdce_cluster(self) -> Optional[pulumi.Input['GdcServiceInstanceGdceClusterArgs']]:
|
107
|
+
"""
|
108
|
+
Gdce cluster information.
|
109
|
+
Structure is documented below.
|
110
|
+
"""
|
111
|
+
return pulumi.get(self, "gdce_cluster")
|
112
|
+
|
113
|
+
@gdce_cluster.setter
|
114
|
+
def gdce_cluster(self, value: Optional[pulumi.Input['GdcServiceInstanceGdceClusterArgs']]):
|
115
|
+
pulumi.set(self, "gdce_cluster", value)
|
116
|
+
|
117
|
+
@property
|
118
|
+
@pulumi.getter
|
119
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
120
|
+
"""
|
121
|
+
The labels to associate with this service instance. Labels may be used for filtering and billing tracking.
|
122
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
123
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
124
|
+
"""
|
125
|
+
return pulumi.get(self, "labels")
|
126
|
+
|
127
|
+
@labels.setter
|
128
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
129
|
+
pulumi.set(self, "labels", value)
|
130
|
+
|
131
|
+
@property
|
132
|
+
@pulumi.getter
|
133
|
+
def project(self) -> Optional[pulumi.Input[str]]:
|
134
|
+
"""
|
135
|
+
The ID of the project in which the resource belongs.
|
136
|
+
If it is not provided, the provider project is used.
|
137
|
+
"""
|
138
|
+
return pulumi.get(self, "project")
|
139
|
+
|
140
|
+
@project.setter
|
141
|
+
def project(self, value: Optional[pulumi.Input[str]]):
|
142
|
+
pulumi.set(self, "project", value)
|
143
|
+
|
144
|
+
@property
|
145
|
+
@pulumi.getter(name="serviceAccount")
|
146
|
+
def service_account(self) -> Optional[pulumi.Input[str]]:
|
147
|
+
"""
|
148
|
+
Requested service account to associate with ServiceInstance.
|
149
|
+
"""
|
150
|
+
return pulumi.get(self, "service_account")
|
151
|
+
|
152
|
+
@service_account.setter
|
153
|
+
def service_account(self, value: Optional[pulumi.Input[str]]):
|
154
|
+
pulumi.set(self, "service_account", value)
|
155
|
+
|
156
|
+
@property
|
157
|
+
@pulumi.getter(name="sparkServiceInstanceConfig")
|
158
|
+
def spark_service_instance_config(self) -> Optional[pulumi.Input['GdcServiceInstanceSparkServiceInstanceConfigArgs']]:
|
159
|
+
"""
|
160
|
+
Spark-specific service instance configuration.
|
161
|
+
"""
|
162
|
+
return pulumi.get(self, "spark_service_instance_config")
|
163
|
+
|
164
|
+
@spark_service_instance_config.setter
|
165
|
+
def spark_service_instance_config(self, value: Optional[pulumi.Input['GdcServiceInstanceSparkServiceInstanceConfigArgs']]):
|
166
|
+
pulumi.set(self, "spark_service_instance_config", value)
|
167
|
+
|
168
|
+
|
169
|
+
@pulumi.input_type
|
170
|
+
class _GdcServiceInstanceState:
|
171
|
+
def __init__(__self__, *,
|
172
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
173
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
174
|
+
effective_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
175
|
+
effective_service_account: Optional[pulumi.Input[str]] = None,
|
176
|
+
gdce_cluster: Optional[pulumi.Input['GdcServiceInstanceGdceClusterArgs']] = None,
|
177
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
178
|
+
location: Optional[pulumi.Input[str]] = None,
|
179
|
+
name: Optional[pulumi.Input[str]] = None,
|
180
|
+
project: Optional[pulumi.Input[str]] = None,
|
181
|
+
pulumi_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
182
|
+
reconciling: Optional[pulumi.Input[bool]] = None,
|
183
|
+
requested_state: Optional[pulumi.Input[str]] = None,
|
184
|
+
service_account: Optional[pulumi.Input[str]] = None,
|
185
|
+
service_instance_id: Optional[pulumi.Input[str]] = None,
|
186
|
+
spark_service_instance_config: Optional[pulumi.Input['GdcServiceInstanceSparkServiceInstanceConfigArgs']] = None,
|
187
|
+
state: Optional[pulumi.Input[str]] = None,
|
188
|
+
state_message: Optional[pulumi.Input[str]] = None,
|
189
|
+
uid: Optional[pulumi.Input[str]] = None,
|
190
|
+
update_time: Optional[pulumi.Input[str]] = None):
|
191
|
+
"""
|
192
|
+
Input properties used for looking up and filtering GdcServiceInstance resources.
|
193
|
+
:param pulumi.Input[str] create_time: The timestamp when the resource was created.
|
194
|
+
:param pulumi.Input[str] display_name: User-provided human-readable name to be used in user interfaces.
|
195
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] effective_labels: All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
196
|
+
:param pulumi.Input[str] effective_service_account: Effective service account associated with ServiceInstance. This will be the service_account if specified. Otherwise, it will be an automatically created per-resource P4SA that also automatically has Fleet Workload. Identity bindings applied.
|
197
|
+
:param pulumi.Input['GdcServiceInstanceGdceClusterArgs'] gdce_cluster: Gdce cluster information.
|
198
|
+
Structure is documented below.
|
199
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: The labels to associate with this service instance. Labels may be used for filtering and billing tracking.
|
200
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
201
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
202
|
+
:param pulumi.Input[str] location: Location of the resource.
|
203
|
+
:param pulumi.Input[str] name: Identifier. The name of the service instance.
|
204
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
205
|
+
If it is not provided, the provider project is used.
|
206
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] pulumi_labels: The combination of labels configured directly on the resource
|
207
|
+
and default labels configured on the provider.
|
208
|
+
:param pulumi.Input[bool] reconciling: Whether the service instance is currently reconciling. True if the current state of the resource does not match the intended state, and the system is working to reconcile them, whether or not the change was user initiated.
|
209
|
+
:param pulumi.Input[str] requested_state: The intended state to which the service instance is reconciling. Possible values:
|
210
|
+
* `CREATING`
|
211
|
+
* `ACTIVE`
|
212
|
+
* `DISCONNECTED`
|
213
|
+
* `DELETING`
|
214
|
+
* `STOPPING`
|
215
|
+
* `STOPPED`
|
216
|
+
* `STARTING`
|
217
|
+
* `UPDATING`
|
218
|
+
* `FAILED`
|
219
|
+
:param pulumi.Input[str] service_account: Requested service account to associate with ServiceInstance.
|
220
|
+
:param pulumi.Input[str] service_instance_id: Id of the service instance.
|
221
|
+
|
222
|
+
|
223
|
+
- - -
|
224
|
+
:param pulumi.Input['GdcServiceInstanceSparkServiceInstanceConfigArgs'] spark_service_instance_config: Spark-specific service instance configuration.
|
225
|
+
:param pulumi.Input[str] state: The current state. Possible values:
|
226
|
+
* `CREATING`
|
227
|
+
* `ACTIVE`
|
228
|
+
* `DISCONNECTED`
|
229
|
+
* `DELETING`
|
230
|
+
* `STOPPING`
|
231
|
+
* `STOPPED`
|
232
|
+
* `STARTING`
|
233
|
+
* `UPDATING`
|
234
|
+
* `FAILED`
|
235
|
+
:param pulumi.Input[str] state_message: A message explaining the current state.
|
236
|
+
:param pulumi.Input[str] uid: System generated unique identifier for this service instance, formatted as UUID4.
|
237
|
+
:param pulumi.Input[str] update_time: The timestamp when the resource was most recently updated.
|
238
|
+
"""
|
239
|
+
if create_time is not None:
|
240
|
+
pulumi.set(__self__, "create_time", create_time)
|
241
|
+
if display_name is not None:
|
242
|
+
pulumi.set(__self__, "display_name", display_name)
|
243
|
+
if effective_labels is not None:
|
244
|
+
pulumi.set(__self__, "effective_labels", effective_labels)
|
245
|
+
if effective_service_account is not None:
|
246
|
+
pulumi.set(__self__, "effective_service_account", effective_service_account)
|
247
|
+
if gdce_cluster is not None:
|
248
|
+
pulumi.set(__self__, "gdce_cluster", gdce_cluster)
|
249
|
+
if labels is not None:
|
250
|
+
pulumi.set(__self__, "labels", labels)
|
251
|
+
if location is not None:
|
252
|
+
pulumi.set(__self__, "location", location)
|
253
|
+
if name is not None:
|
254
|
+
pulumi.set(__self__, "name", name)
|
255
|
+
if project is not None:
|
256
|
+
pulumi.set(__self__, "project", project)
|
257
|
+
if pulumi_labels is not None:
|
258
|
+
pulumi.set(__self__, "pulumi_labels", pulumi_labels)
|
259
|
+
if reconciling is not None:
|
260
|
+
pulumi.set(__self__, "reconciling", reconciling)
|
261
|
+
if requested_state is not None:
|
262
|
+
pulumi.set(__self__, "requested_state", requested_state)
|
263
|
+
if service_account is not None:
|
264
|
+
pulumi.set(__self__, "service_account", service_account)
|
265
|
+
if service_instance_id is not None:
|
266
|
+
pulumi.set(__self__, "service_instance_id", service_instance_id)
|
267
|
+
if spark_service_instance_config is not None:
|
268
|
+
pulumi.set(__self__, "spark_service_instance_config", spark_service_instance_config)
|
269
|
+
if state is not None:
|
270
|
+
pulumi.set(__self__, "state", state)
|
271
|
+
if state_message is not None:
|
272
|
+
pulumi.set(__self__, "state_message", state_message)
|
273
|
+
if uid is not None:
|
274
|
+
pulumi.set(__self__, "uid", uid)
|
275
|
+
if update_time is not None:
|
276
|
+
pulumi.set(__self__, "update_time", update_time)
|
277
|
+
|
278
|
+
@property
|
279
|
+
@pulumi.getter(name="createTime")
|
280
|
+
def create_time(self) -> Optional[pulumi.Input[str]]:
|
281
|
+
"""
|
282
|
+
The timestamp when the resource was created.
|
283
|
+
"""
|
284
|
+
return pulumi.get(self, "create_time")
|
285
|
+
|
286
|
+
@create_time.setter
|
287
|
+
def create_time(self, value: Optional[pulumi.Input[str]]):
|
288
|
+
pulumi.set(self, "create_time", value)
|
289
|
+
|
290
|
+
@property
|
291
|
+
@pulumi.getter(name="displayName")
|
292
|
+
def display_name(self) -> Optional[pulumi.Input[str]]:
|
293
|
+
"""
|
294
|
+
User-provided human-readable name to be used in user interfaces.
|
295
|
+
"""
|
296
|
+
return pulumi.get(self, "display_name")
|
297
|
+
|
298
|
+
@display_name.setter
|
299
|
+
def display_name(self, value: Optional[pulumi.Input[str]]):
|
300
|
+
pulumi.set(self, "display_name", value)
|
301
|
+
|
302
|
+
@property
|
303
|
+
@pulumi.getter(name="effectiveLabels")
|
304
|
+
def effective_labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
305
|
+
"""
|
306
|
+
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
307
|
+
"""
|
308
|
+
return pulumi.get(self, "effective_labels")
|
309
|
+
|
310
|
+
@effective_labels.setter
|
311
|
+
def effective_labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
312
|
+
pulumi.set(self, "effective_labels", value)
|
313
|
+
|
314
|
+
@property
|
315
|
+
@pulumi.getter(name="effectiveServiceAccount")
|
316
|
+
def effective_service_account(self) -> Optional[pulumi.Input[str]]:
|
317
|
+
"""
|
318
|
+
Effective service account associated with ServiceInstance. This will be the service_account if specified. Otherwise, it will be an automatically created per-resource P4SA that also automatically has Fleet Workload. Identity bindings applied.
|
319
|
+
"""
|
320
|
+
return pulumi.get(self, "effective_service_account")
|
321
|
+
|
322
|
+
@effective_service_account.setter
|
323
|
+
def effective_service_account(self, value: Optional[pulumi.Input[str]]):
|
324
|
+
pulumi.set(self, "effective_service_account", value)
|
325
|
+
|
326
|
+
@property
|
327
|
+
@pulumi.getter(name="gdceCluster")
|
328
|
+
def gdce_cluster(self) -> Optional[pulumi.Input['GdcServiceInstanceGdceClusterArgs']]:
|
329
|
+
"""
|
330
|
+
Gdce cluster information.
|
331
|
+
Structure is documented below.
|
332
|
+
"""
|
333
|
+
return pulumi.get(self, "gdce_cluster")
|
334
|
+
|
335
|
+
@gdce_cluster.setter
|
336
|
+
def gdce_cluster(self, value: Optional[pulumi.Input['GdcServiceInstanceGdceClusterArgs']]):
|
337
|
+
pulumi.set(self, "gdce_cluster", value)
|
338
|
+
|
339
|
+
@property
|
340
|
+
@pulumi.getter
|
341
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
342
|
+
"""
|
343
|
+
The labels to associate with this service instance. Labels may be used for filtering and billing tracking.
|
344
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
345
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
346
|
+
"""
|
347
|
+
return pulumi.get(self, "labels")
|
348
|
+
|
349
|
+
@labels.setter
|
350
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
351
|
+
pulumi.set(self, "labels", value)
|
352
|
+
|
353
|
+
@property
|
354
|
+
@pulumi.getter
|
355
|
+
def location(self) -> Optional[pulumi.Input[str]]:
|
356
|
+
"""
|
357
|
+
Location of the resource.
|
358
|
+
"""
|
359
|
+
return pulumi.get(self, "location")
|
360
|
+
|
361
|
+
@location.setter
|
362
|
+
def location(self, value: Optional[pulumi.Input[str]]):
|
363
|
+
pulumi.set(self, "location", value)
|
364
|
+
|
365
|
+
@property
|
366
|
+
@pulumi.getter
|
367
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
368
|
+
"""
|
369
|
+
Identifier. The name of the service instance.
|
370
|
+
"""
|
371
|
+
return pulumi.get(self, "name")
|
372
|
+
|
373
|
+
@name.setter
|
374
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
375
|
+
pulumi.set(self, "name", value)
|
376
|
+
|
377
|
+
@property
|
378
|
+
@pulumi.getter
|
379
|
+
def project(self) -> Optional[pulumi.Input[str]]:
|
380
|
+
"""
|
381
|
+
The ID of the project in which the resource belongs.
|
382
|
+
If it is not provided, the provider project is used.
|
383
|
+
"""
|
384
|
+
return pulumi.get(self, "project")
|
385
|
+
|
386
|
+
@project.setter
|
387
|
+
def project(self, value: Optional[pulumi.Input[str]]):
|
388
|
+
pulumi.set(self, "project", value)
|
389
|
+
|
390
|
+
@property
|
391
|
+
@pulumi.getter(name="pulumiLabels")
|
392
|
+
def pulumi_labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
393
|
+
"""
|
394
|
+
The combination of labels configured directly on the resource
|
395
|
+
and default labels configured on the provider.
|
396
|
+
"""
|
397
|
+
return pulumi.get(self, "pulumi_labels")
|
398
|
+
|
399
|
+
@pulumi_labels.setter
|
400
|
+
def pulumi_labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
401
|
+
pulumi.set(self, "pulumi_labels", value)
|
402
|
+
|
403
|
+
@property
|
404
|
+
@pulumi.getter
|
405
|
+
def reconciling(self) -> Optional[pulumi.Input[bool]]:
|
406
|
+
"""
|
407
|
+
Whether the service instance is currently reconciling. True if the current state of the resource does not match the intended state, and the system is working to reconcile them, whether or not the change was user initiated.
|
408
|
+
"""
|
409
|
+
return pulumi.get(self, "reconciling")
|
410
|
+
|
411
|
+
@reconciling.setter
|
412
|
+
def reconciling(self, value: Optional[pulumi.Input[bool]]):
|
413
|
+
pulumi.set(self, "reconciling", value)
|
414
|
+
|
415
|
+
@property
|
416
|
+
@pulumi.getter(name="requestedState")
|
417
|
+
def requested_state(self) -> Optional[pulumi.Input[str]]:
|
418
|
+
"""
|
419
|
+
The intended state to which the service instance is reconciling. Possible values:
|
420
|
+
* `CREATING`
|
421
|
+
* `ACTIVE`
|
422
|
+
* `DISCONNECTED`
|
423
|
+
* `DELETING`
|
424
|
+
* `STOPPING`
|
425
|
+
* `STOPPED`
|
426
|
+
* `STARTING`
|
427
|
+
* `UPDATING`
|
428
|
+
* `FAILED`
|
429
|
+
"""
|
430
|
+
return pulumi.get(self, "requested_state")
|
431
|
+
|
432
|
+
@requested_state.setter
|
433
|
+
def requested_state(self, value: Optional[pulumi.Input[str]]):
|
434
|
+
pulumi.set(self, "requested_state", value)
|
435
|
+
|
436
|
+
@property
|
437
|
+
@pulumi.getter(name="serviceAccount")
|
438
|
+
def service_account(self) -> Optional[pulumi.Input[str]]:
|
439
|
+
"""
|
440
|
+
Requested service account to associate with ServiceInstance.
|
441
|
+
"""
|
442
|
+
return pulumi.get(self, "service_account")
|
443
|
+
|
444
|
+
@service_account.setter
|
445
|
+
def service_account(self, value: Optional[pulumi.Input[str]]):
|
446
|
+
pulumi.set(self, "service_account", value)
|
447
|
+
|
448
|
+
@property
|
449
|
+
@pulumi.getter(name="serviceInstanceId")
|
450
|
+
def service_instance_id(self) -> Optional[pulumi.Input[str]]:
|
451
|
+
"""
|
452
|
+
Id of the service instance.
|
453
|
+
|
454
|
+
|
455
|
+
- - -
|
456
|
+
"""
|
457
|
+
return pulumi.get(self, "service_instance_id")
|
458
|
+
|
459
|
+
@service_instance_id.setter
|
460
|
+
def service_instance_id(self, value: Optional[pulumi.Input[str]]):
|
461
|
+
pulumi.set(self, "service_instance_id", value)
|
462
|
+
|
463
|
+
@property
|
464
|
+
@pulumi.getter(name="sparkServiceInstanceConfig")
|
465
|
+
def spark_service_instance_config(self) -> Optional[pulumi.Input['GdcServiceInstanceSparkServiceInstanceConfigArgs']]:
|
466
|
+
"""
|
467
|
+
Spark-specific service instance configuration.
|
468
|
+
"""
|
469
|
+
return pulumi.get(self, "spark_service_instance_config")
|
470
|
+
|
471
|
+
@spark_service_instance_config.setter
|
472
|
+
def spark_service_instance_config(self, value: Optional[pulumi.Input['GdcServiceInstanceSparkServiceInstanceConfigArgs']]):
|
473
|
+
pulumi.set(self, "spark_service_instance_config", value)
|
474
|
+
|
475
|
+
@property
|
476
|
+
@pulumi.getter
|
477
|
+
def state(self) -> Optional[pulumi.Input[str]]:
|
478
|
+
"""
|
479
|
+
The current state. Possible values:
|
480
|
+
* `CREATING`
|
481
|
+
* `ACTIVE`
|
482
|
+
* `DISCONNECTED`
|
483
|
+
* `DELETING`
|
484
|
+
* `STOPPING`
|
485
|
+
* `STOPPED`
|
486
|
+
* `STARTING`
|
487
|
+
* `UPDATING`
|
488
|
+
* `FAILED`
|
489
|
+
"""
|
490
|
+
return pulumi.get(self, "state")
|
491
|
+
|
492
|
+
@state.setter
|
493
|
+
def state(self, value: Optional[pulumi.Input[str]]):
|
494
|
+
pulumi.set(self, "state", value)
|
495
|
+
|
496
|
+
@property
|
497
|
+
@pulumi.getter(name="stateMessage")
|
498
|
+
def state_message(self) -> Optional[pulumi.Input[str]]:
|
499
|
+
"""
|
500
|
+
A message explaining the current state.
|
501
|
+
"""
|
502
|
+
return pulumi.get(self, "state_message")
|
503
|
+
|
504
|
+
@state_message.setter
|
505
|
+
def state_message(self, value: Optional[pulumi.Input[str]]):
|
506
|
+
pulumi.set(self, "state_message", value)
|
507
|
+
|
508
|
+
@property
|
509
|
+
@pulumi.getter
|
510
|
+
def uid(self) -> Optional[pulumi.Input[str]]:
|
511
|
+
"""
|
512
|
+
System generated unique identifier for this service instance, formatted as UUID4.
|
513
|
+
"""
|
514
|
+
return pulumi.get(self, "uid")
|
515
|
+
|
516
|
+
@uid.setter
|
517
|
+
def uid(self, value: Optional[pulumi.Input[str]]):
|
518
|
+
pulumi.set(self, "uid", value)
|
519
|
+
|
520
|
+
@property
|
521
|
+
@pulumi.getter(name="updateTime")
|
522
|
+
def update_time(self) -> Optional[pulumi.Input[str]]:
|
523
|
+
"""
|
524
|
+
The timestamp when the resource was most recently updated.
|
525
|
+
"""
|
526
|
+
return pulumi.get(self, "update_time")
|
527
|
+
|
528
|
+
@update_time.setter
|
529
|
+
def update_time(self, value: Optional[pulumi.Input[str]]):
|
530
|
+
pulumi.set(self, "update_time", value)
|
531
|
+
|
532
|
+
|
533
|
+
class GdcServiceInstance(pulumi.CustomResource):
|
534
|
+
@overload
|
535
|
+
def __init__(__self__,
|
536
|
+
resource_name: str,
|
537
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
538
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
539
|
+
gdce_cluster: Optional[pulumi.Input[Union['GdcServiceInstanceGdceClusterArgs', 'GdcServiceInstanceGdceClusterArgsDict']]] = None,
|
540
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
541
|
+
location: Optional[pulumi.Input[str]] = None,
|
542
|
+
project: Optional[pulumi.Input[str]] = None,
|
543
|
+
service_account: Optional[pulumi.Input[str]] = None,
|
544
|
+
service_instance_id: Optional[pulumi.Input[str]] = None,
|
545
|
+
spark_service_instance_config: Optional[pulumi.Input[Union['GdcServiceInstanceSparkServiceInstanceConfigArgs', 'GdcServiceInstanceSparkServiceInstanceConfigArgsDict']]] = None,
|
546
|
+
__props__=None):
|
547
|
+
"""
|
548
|
+
A service instance is an instance of the Dataproc operator running on a GDC cluster.
|
549
|
+
|
550
|
+
To get more information about ServiceInstance, see:
|
551
|
+
|
552
|
+
* [API documentation](https://cloud.google.com/dataproc-gdc/docs/reference/rest/v1/projects.locations.serviceInstances)
|
553
|
+
* How-to Guides
|
554
|
+
* [Dataproc Intro](https://cloud.google.com/dataproc/)
|
555
|
+
|
556
|
+
## Example Usage
|
557
|
+
|
558
|
+
### Dataprocgdc Serviceinstance
|
559
|
+
|
560
|
+
```python
|
561
|
+
import pulumi
|
562
|
+
import pulumi_gcp as gcp
|
563
|
+
|
564
|
+
service_instance = gcp.dataproc.GdcServiceInstance("service-instance",
|
565
|
+
service_instance_id="tf-e2e-service-instance",
|
566
|
+
project="my-project",
|
567
|
+
location="us-west2",
|
568
|
+
gdce_cluster={
|
569
|
+
"gdce_cluster": "projects/gdce-cluster-monitoring/locations/us-west2/clusters/gdce-prism-prober-ord106",
|
570
|
+
},
|
571
|
+
display_name="A service instance",
|
572
|
+
labels={
|
573
|
+
"test-label": "label-value",
|
574
|
+
},
|
575
|
+
service_account="dataprocgdc-cep-workflows@gdce-cluster-monitoring.iam.gserviceaccount.com")
|
576
|
+
```
|
577
|
+
|
578
|
+
## Import
|
579
|
+
|
580
|
+
ServiceInstance can be imported using any of these accepted formats:
|
581
|
+
|
582
|
+
* `projects/{{project}}/locations/{{location}}/serviceInstances/{{service_instance_id}}`
|
583
|
+
|
584
|
+
* `{{project}}/{{location}}/{{service_instance_id}}`
|
585
|
+
|
586
|
+
* `{{location}}/{{service_instance_id}}`
|
587
|
+
|
588
|
+
When using the `pulumi import` command, ServiceInstance can be imported using one of the formats above. For example:
|
589
|
+
|
590
|
+
```sh
|
591
|
+
$ pulumi import gcp:dataproc/gdcServiceInstance:GdcServiceInstance default projects/{{project}}/locations/{{location}}/serviceInstances/{{service_instance_id}}
|
592
|
+
```
|
593
|
+
|
594
|
+
```sh
|
595
|
+
$ pulumi import gcp:dataproc/gdcServiceInstance:GdcServiceInstance default {{project}}/{{location}}/{{service_instance_id}}
|
596
|
+
```
|
597
|
+
|
598
|
+
```sh
|
599
|
+
$ pulumi import gcp:dataproc/gdcServiceInstance:GdcServiceInstance default {{location}}/{{service_instance_id}}
|
600
|
+
```
|
601
|
+
|
602
|
+
:param str resource_name: The name of the resource.
|
603
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
604
|
+
:param pulumi.Input[str] display_name: User-provided human-readable name to be used in user interfaces.
|
605
|
+
:param pulumi.Input[Union['GdcServiceInstanceGdceClusterArgs', 'GdcServiceInstanceGdceClusterArgsDict']] gdce_cluster: Gdce cluster information.
|
606
|
+
Structure is documented below.
|
607
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: The labels to associate with this service instance. Labels may be used for filtering and billing tracking.
|
608
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
609
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
610
|
+
:param pulumi.Input[str] location: Location of the resource.
|
611
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
612
|
+
If it is not provided, the provider project is used.
|
613
|
+
:param pulumi.Input[str] service_account: Requested service account to associate with ServiceInstance.
|
614
|
+
:param pulumi.Input[str] service_instance_id: Id of the service instance.
|
615
|
+
|
616
|
+
|
617
|
+
- - -
|
618
|
+
:param pulumi.Input[Union['GdcServiceInstanceSparkServiceInstanceConfigArgs', 'GdcServiceInstanceSparkServiceInstanceConfigArgsDict']] spark_service_instance_config: Spark-specific service instance configuration.
|
619
|
+
"""
|
620
|
+
...
|
621
|
+
@overload
|
622
|
+
def __init__(__self__,
|
623
|
+
resource_name: str,
|
624
|
+
args: GdcServiceInstanceArgs,
|
625
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
626
|
+
"""
|
627
|
+
A service instance is an instance of the Dataproc operator running on a GDC cluster.
|
628
|
+
|
629
|
+
To get more information about ServiceInstance, see:
|
630
|
+
|
631
|
+
* [API documentation](https://cloud.google.com/dataproc-gdc/docs/reference/rest/v1/projects.locations.serviceInstances)
|
632
|
+
* How-to Guides
|
633
|
+
* [Dataproc Intro](https://cloud.google.com/dataproc/)
|
634
|
+
|
635
|
+
## Example Usage
|
636
|
+
|
637
|
+
### Dataprocgdc Serviceinstance
|
638
|
+
|
639
|
+
```python
|
640
|
+
import pulumi
|
641
|
+
import pulumi_gcp as gcp
|
642
|
+
|
643
|
+
service_instance = gcp.dataproc.GdcServiceInstance("service-instance",
|
644
|
+
service_instance_id="tf-e2e-service-instance",
|
645
|
+
project="my-project",
|
646
|
+
location="us-west2",
|
647
|
+
gdce_cluster={
|
648
|
+
"gdce_cluster": "projects/gdce-cluster-monitoring/locations/us-west2/clusters/gdce-prism-prober-ord106",
|
649
|
+
},
|
650
|
+
display_name="A service instance",
|
651
|
+
labels={
|
652
|
+
"test-label": "label-value",
|
653
|
+
},
|
654
|
+
service_account="dataprocgdc-cep-workflows@gdce-cluster-monitoring.iam.gserviceaccount.com")
|
655
|
+
```
|
656
|
+
|
657
|
+
## Import
|
658
|
+
|
659
|
+
ServiceInstance can be imported using any of these accepted formats:
|
660
|
+
|
661
|
+
* `projects/{{project}}/locations/{{location}}/serviceInstances/{{service_instance_id}}`
|
662
|
+
|
663
|
+
* `{{project}}/{{location}}/{{service_instance_id}}`
|
664
|
+
|
665
|
+
* `{{location}}/{{service_instance_id}}`
|
666
|
+
|
667
|
+
When using the `pulumi import` command, ServiceInstance can be imported using one of the formats above. For example:
|
668
|
+
|
669
|
+
```sh
|
670
|
+
$ pulumi import gcp:dataproc/gdcServiceInstance:GdcServiceInstance default projects/{{project}}/locations/{{location}}/serviceInstances/{{service_instance_id}}
|
671
|
+
```
|
672
|
+
|
673
|
+
```sh
|
674
|
+
$ pulumi import gcp:dataproc/gdcServiceInstance:GdcServiceInstance default {{project}}/{{location}}/{{service_instance_id}}
|
675
|
+
```
|
676
|
+
|
677
|
+
```sh
|
678
|
+
$ pulumi import gcp:dataproc/gdcServiceInstance:GdcServiceInstance default {{location}}/{{service_instance_id}}
|
679
|
+
```
|
680
|
+
|
681
|
+
:param str resource_name: The name of the resource.
|
682
|
+
:param GdcServiceInstanceArgs args: The arguments to use to populate this resource's properties.
|
683
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
684
|
+
"""
|
685
|
+
...
|
686
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
687
|
+
resource_args, opts = _utilities.get_resource_args_opts(GdcServiceInstanceArgs, pulumi.ResourceOptions, *args, **kwargs)
|
688
|
+
if resource_args is not None:
|
689
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
690
|
+
else:
|
691
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
692
|
+
|
693
|
+
def _internal_init(__self__,
|
694
|
+
resource_name: str,
|
695
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
696
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
697
|
+
gdce_cluster: Optional[pulumi.Input[Union['GdcServiceInstanceGdceClusterArgs', 'GdcServiceInstanceGdceClusterArgsDict']]] = None,
|
698
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
699
|
+
location: Optional[pulumi.Input[str]] = None,
|
700
|
+
project: Optional[pulumi.Input[str]] = None,
|
701
|
+
service_account: Optional[pulumi.Input[str]] = None,
|
702
|
+
service_instance_id: Optional[pulumi.Input[str]] = None,
|
703
|
+
spark_service_instance_config: Optional[pulumi.Input[Union['GdcServiceInstanceSparkServiceInstanceConfigArgs', 'GdcServiceInstanceSparkServiceInstanceConfigArgsDict']]] = None,
|
704
|
+
__props__=None):
|
705
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
706
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
707
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
708
|
+
if opts.id is None:
|
709
|
+
if __props__ is not None:
|
710
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
711
|
+
__props__ = GdcServiceInstanceArgs.__new__(GdcServiceInstanceArgs)
|
712
|
+
|
713
|
+
__props__.__dict__["display_name"] = display_name
|
714
|
+
__props__.__dict__["gdce_cluster"] = gdce_cluster
|
715
|
+
__props__.__dict__["labels"] = labels
|
716
|
+
if location is None and not opts.urn:
|
717
|
+
raise TypeError("Missing required property 'location'")
|
718
|
+
__props__.__dict__["location"] = location
|
719
|
+
__props__.__dict__["project"] = project
|
720
|
+
__props__.__dict__["service_account"] = service_account
|
721
|
+
if service_instance_id is None and not opts.urn:
|
722
|
+
raise TypeError("Missing required property 'service_instance_id'")
|
723
|
+
__props__.__dict__["service_instance_id"] = service_instance_id
|
724
|
+
__props__.__dict__["spark_service_instance_config"] = spark_service_instance_config
|
725
|
+
__props__.__dict__["create_time"] = None
|
726
|
+
__props__.__dict__["effective_labels"] = None
|
727
|
+
__props__.__dict__["effective_service_account"] = None
|
728
|
+
__props__.__dict__["name"] = None
|
729
|
+
__props__.__dict__["pulumi_labels"] = None
|
730
|
+
__props__.__dict__["reconciling"] = None
|
731
|
+
__props__.__dict__["requested_state"] = None
|
732
|
+
__props__.__dict__["state"] = None
|
733
|
+
__props__.__dict__["state_message"] = None
|
734
|
+
__props__.__dict__["uid"] = None
|
735
|
+
__props__.__dict__["update_time"] = None
|
736
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["effectiveLabels", "pulumiLabels"])
|
737
|
+
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
738
|
+
super(GdcServiceInstance, __self__).__init__(
|
739
|
+
'gcp:dataproc/gdcServiceInstance:GdcServiceInstance',
|
740
|
+
resource_name,
|
741
|
+
__props__,
|
742
|
+
opts)
|
743
|
+
|
744
|
+
@staticmethod
|
745
|
+
def get(resource_name: str,
|
746
|
+
id: pulumi.Input[str],
|
747
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
748
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
749
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
750
|
+
effective_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
751
|
+
effective_service_account: Optional[pulumi.Input[str]] = None,
|
752
|
+
gdce_cluster: Optional[pulumi.Input[Union['GdcServiceInstanceGdceClusterArgs', 'GdcServiceInstanceGdceClusterArgsDict']]] = None,
|
753
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
754
|
+
location: Optional[pulumi.Input[str]] = None,
|
755
|
+
name: Optional[pulumi.Input[str]] = None,
|
756
|
+
project: Optional[pulumi.Input[str]] = None,
|
757
|
+
pulumi_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
758
|
+
reconciling: Optional[pulumi.Input[bool]] = None,
|
759
|
+
requested_state: Optional[pulumi.Input[str]] = None,
|
760
|
+
service_account: Optional[pulumi.Input[str]] = None,
|
761
|
+
service_instance_id: Optional[pulumi.Input[str]] = None,
|
762
|
+
spark_service_instance_config: Optional[pulumi.Input[Union['GdcServiceInstanceSparkServiceInstanceConfigArgs', 'GdcServiceInstanceSparkServiceInstanceConfigArgsDict']]] = None,
|
763
|
+
state: Optional[pulumi.Input[str]] = None,
|
764
|
+
state_message: Optional[pulumi.Input[str]] = None,
|
765
|
+
uid: Optional[pulumi.Input[str]] = None,
|
766
|
+
update_time: Optional[pulumi.Input[str]] = None) -> 'GdcServiceInstance':
|
767
|
+
"""
|
768
|
+
Get an existing GdcServiceInstance resource's state with the given name, id, and optional extra
|
769
|
+
properties used to qualify the lookup.
|
770
|
+
|
771
|
+
:param str resource_name: The unique name of the resulting resource.
|
772
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
773
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
774
|
+
:param pulumi.Input[str] create_time: The timestamp when the resource was created.
|
775
|
+
:param pulumi.Input[str] display_name: User-provided human-readable name to be used in user interfaces.
|
776
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] effective_labels: All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
777
|
+
:param pulumi.Input[str] effective_service_account: Effective service account associated with ServiceInstance. This will be the service_account if specified. Otherwise, it will be an automatically created per-resource P4SA that also automatically has Fleet Workload. Identity bindings applied.
|
778
|
+
:param pulumi.Input[Union['GdcServiceInstanceGdceClusterArgs', 'GdcServiceInstanceGdceClusterArgsDict']] gdce_cluster: Gdce cluster information.
|
779
|
+
Structure is documented below.
|
780
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: The labels to associate with this service instance. Labels may be used for filtering and billing tracking.
|
781
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
782
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
783
|
+
:param pulumi.Input[str] location: Location of the resource.
|
784
|
+
:param pulumi.Input[str] name: Identifier. The name of the service instance.
|
785
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
786
|
+
If it is not provided, the provider project is used.
|
787
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] pulumi_labels: The combination of labels configured directly on the resource
|
788
|
+
and default labels configured on the provider.
|
789
|
+
:param pulumi.Input[bool] reconciling: Whether the service instance is currently reconciling. True if the current state of the resource does not match the intended state, and the system is working to reconcile them, whether or not the change was user initiated.
|
790
|
+
:param pulumi.Input[str] requested_state: The intended state to which the service instance is reconciling. Possible values:
|
791
|
+
* `CREATING`
|
792
|
+
* `ACTIVE`
|
793
|
+
* `DISCONNECTED`
|
794
|
+
* `DELETING`
|
795
|
+
* `STOPPING`
|
796
|
+
* `STOPPED`
|
797
|
+
* `STARTING`
|
798
|
+
* `UPDATING`
|
799
|
+
* `FAILED`
|
800
|
+
:param pulumi.Input[str] service_account: Requested service account to associate with ServiceInstance.
|
801
|
+
:param pulumi.Input[str] service_instance_id: Id of the service instance.
|
802
|
+
|
803
|
+
|
804
|
+
- - -
|
805
|
+
:param pulumi.Input[Union['GdcServiceInstanceSparkServiceInstanceConfigArgs', 'GdcServiceInstanceSparkServiceInstanceConfigArgsDict']] spark_service_instance_config: Spark-specific service instance configuration.
|
806
|
+
:param pulumi.Input[str] state: The current state. Possible values:
|
807
|
+
* `CREATING`
|
808
|
+
* `ACTIVE`
|
809
|
+
* `DISCONNECTED`
|
810
|
+
* `DELETING`
|
811
|
+
* `STOPPING`
|
812
|
+
* `STOPPED`
|
813
|
+
* `STARTING`
|
814
|
+
* `UPDATING`
|
815
|
+
* `FAILED`
|
816
|
+
:param pulumi.Input[str] state_message: A message explaining the current state.
|
817
|
+
:param pulumi.Input[str] uid: System generated unique identifier for this service instance, formatted as UUID4.
|
818
|
+
:param pulumi.Input[str] update_time: The timestamp when the resource was most recently updated.
|
819
|
+
"""
|
820
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
821
|
+
|
822
|
+
__props__ = _GdcServiceInstanceState.__new__(_GdcServiceInstanceState)
|
823
|
+
|
824
|
+
__props__.__dict__["create_time"] = create_time
|
825
|
+
__props__.__dict__["display_name"] = display_name
|
826
|
+
__props__.__dict__["effective_labels"] = effective_labels
|
827
|
+
__props__.__dict__["effective_service_account"] = effective_service_account
|
828
|
+
__props__.__dict__["gdce_cluster"] = gdce_cluster
|
829
|
+
__props__.__dict__["labels"] = labels
|
830
|
+
__props__.__dict__["location"] = location
|
831
|
+
__props__.__dict__["name"] = name
|
832
|
+
__props__.__dict__["project"] = project
|
833
|
+
__props__.__dict__["pulumi_labels"] = pulumi_labels
|
834
|
+
__props__.__dict__["reconciling"] = reconciling
|
835
|
+
__props__.__dict__["requested_state"] = requested_state
|
836
|
+
__props__.__dict__["service_account"] = service_account
|
837
|
+
__props__.__dict__["service_instance_id"] = service_instance_id
|
838
|
+
__props__.__dict__["spark_service_instance_config"] = spark_service_instance_config
|
839
|
+
__props__.__dict__["state"] = state
|
840
|
+
__props__.__dict__["state_message"] = state_message
|
841
|
+
__props__.__dict__["uid"] = uid
|
842
|
+
__props__.__dict__["update_time"] = update_time
|
843
|
+
return GdcServiceInstance(resource_name, opts=opts, __props__=__props__)
|
844
|
+
|
845
|
+
@property
|
846
|
+
@pulumi.getter(name="createTime")
|
847
|
+
def create_time(self) -> pulumi.Output[str]:
|
848
|
+
"""
|
849
|
+
The timestamp when the resource was created.
|
850
|
+
"""
|
851
|
+
return pulumi.get(self, "create_time")
|
852
|
+
|
853
|
+
@property
|
854
|
+
@pulumi.getter(name="displayName")
|
855
|
+
def display_name(self) -> pulumi.Output[Optional[str]]:
|
856
|
+
"""
|
857
|
+
User-provided human-readable name to be used in user interfaces.
|
858
|
+
"""
|
859
|
+
return pulumi.get(self, "display_name")
|
860
|
+
|
861
|
+
@property
|
862
|
+
@pulumi.getter(name="effectiveLabels")
|
863
|
+
def effective_labels(self) -> pulumi.Output[Mapping[str, str]]:
|
864
|
+
"""
|
865
|
+
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
866
|
+
"""
|
867
|
+
return pulumi.get(self, "effective_labels")
|
868
|
+
|
869
|
+
@property
|
870
|
+
@pulumi.getter(name="effectiveServiceAccount")
|
871
|
+
def effective_service_account(self) -> pulumi.Output[str]:
|
872
|
+
"""
|
873
|
+
Effective service account associated with ServiceInstance. This will be the service_account if specified. Otherwise, it will be an automatically created per-resource P4SA that also automatically has Fleet Workload. Identity bindings applied.
|
874
|
+
"""
|
875
|
+
return pulumi.get(self, "effective_service_account")
|
876
|
+
|
877
|
+
@property
|
878
|
+
@pulumi.getter(name="gdceCluster")
|
879
|
+
def gdce_cluster(self) -> pulumi.Output[Optional['outputs.GdcServiceInstanceGdceCluster']]:
|
880
|
+
"""
|
881
|
+
Gdce cluster information.
|
882
|
+
Structure is documented below.
|
883
|
+
"""
|
884
|
+
return pulumi.get(self, "gdce_cluster")
|
885
|
+
|
886
|
+
@property
|
887
|
+
@pulumi.getter
|
888
|
+
def labels(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
889
|
+
"""
|
890
|
+
The labels to associate with this service instance. Labels may be used for filtering and billing tracking.
|
891
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
892
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
893
|
+
"""
|
894
|
+
return pulumi.get(self, "labels")
|
895
|
+
|
896
|
+
@property
|
897
|
+
@pulumi.getter
|
898
|
+
def location(self) -> pulumi.Output[str]:
|
899
|
+
"""
|
900
|
+
Location of the resource.
|
901
|
+
"""
|
902
|
+
return pulumi.get(self, "location")
|
903
|
+
|
904
|
+
@property
|
905
|
+
@pulumi.getter
|
906
|
+
def name(self) -> pulumi.Output[str]:
|
907
|
+
"""
|
908
|
+
Identifier. The name of the service instance.
|
909
|
+
"""
|
910
|
+
return pulumi.get(self, "name")
|
911
|
+
|
912
|
+
@property
|
913
|
+
@pulumi.getter
|
914
|
+
def project(self) -> pulumi.Output[str]:
|
915
|
+
"""
|
916
|
+
The ID of the project in which the resource belongs.
|
917
|
+
If it is not provided, the provider project is used.
|
918
|
+
"""
|
919
|
+
return pulumi.get(self, "project")
|
920
|
+
|
921
|
+
@property
|
922
|
+
@pulumi.getter(name="pulumiLabels")
|
923
|
+
def pulumi_labels(self) -> pulumi.Output[Mapping[str, str]]:
|
924
|
+
"""
|
925
|
+
The combination of labels configured directly on the resource
|
926
|
+
and default labels configured on the provider.
|
927
|
+
"""
|
928
|
+
return pulumi.get(self, "pulumi_labels")
|
929
|
+
|
930
|
+
@property
|
931
|
+
@pulumi.getter
|
932
|
+
def reconciling(self) -> pulumi.Output[bool]:
|
933
|
+
"""
|
934
|
+
Whether the service instance is currently reconciling. True if the current state of the resource does not match the intended state, and the system is working to reconcile them, whether or not the change was user initiated.
|
935
|
+
"""
|
936
|
+
return pulumi.get(self, "reconciling")
|
937
|
+
|
938
|
+
@property
|
939
|
+
@pulumi.getter(name="requestedState")
|
940
|
+
def requested_state(self) -> pulumi.Output[str]:
|
941
|
+
"""
|
942
|
+
The intended state to which the service instance is reconciling. Possible values:
|
943
|
+
* `CREATING`
|
944
|
+
* `ACTIVE`
|
945
|
+
* `DISCONNECTED`
|
946
|
+
* `DELETING`
|
947
|
+
* `STOPPING`
|
948
|
+
* `STOPPED`
|
949
|
+
* `STARTING`
|
950
|
+
* `UPDATING`
|
951
|
+
* `FAILED`
|
952
|
+
"""
|
953
|
+
return pulumi.get(self, "requested_state")
|
954
|
+
|
955
|
+
@property
|
956
|
+
@pulumi.getter(name="serviceAccount")
|
957
|
+
def service_account(self) -> pulumi.Output[Optional[str]]:
|
958
|
+
"""
|
959
|
+
Requested service account to associate with ServiceInstance.
|
960
|
+
"""
|
961
|
+
return pulumi.get(self, "service_account")
|
962
|
+
|
963
|
+
@property
|
964
|
+
@pulumi.getter(name="serviceInstanceId")
|
965
|
+
def service_instance_id(self) -> pulumi.Output[str]:
|
966
|
+
"""
|
967
|
+
Id of the service instance.
|
968
|
+
|
969
|
+
|
970
|
+
- - -
|
971
|
+
"""
|
972
|
+
return pulumi.get(self, "service_instance_id")
|
973
|
+
|
974
|
+
@property
|
975
|
+
@pulumi.getter(name="sparkServiceInstanceConfig")
|
976
|
+
def spark_service_instance_config(self) -> pulumi.Output[Optional['outputs.GdcServiceInstanceSparkServiceInstanceConfig']]:
|
977
|
+
"""
|
978
|
+
Spark-specific service instance configuration.
|
979
|
+
"""
|
980
|
+
return pulumi.get(self, "spark_service_instance_config")
|
981
|
+
|
982
|
+
@property
|
983
|
+
@pulumi.getter
|
984
|
+
def state(self) -> pulumi.Output[str]:
|
985
|
+
"""
|
986
|
+
The current state. Possible values:
|
987
|
+
* `CREATING`
|
988
|
+
* `ACTIVE`
|
989
|
+
* `DISCONNECTED`
|
990
|
+
* `DELETING`
|
991
|
+
* `STOPPING`
|
992
|
+
* `STOPPED`
|
993
|
+
* `STARTING`
|
994
|
+
* `UPDATING`
|
995
|
+
* `FAILED`
|
996
|
+
"""
|
997
|
+
return pulumi.get(self, "state")
|
998
|
+
|
999
|
+
@property
|
1000
|
+
@pulumi.getter(name="stateMessage")
|
1001
|
+
def state_message(self) -> pulumi.Output[str]:
|
1002
|
+
"""
|
1003
|
+
A message explaining the current state.
|
1004
|
+
"""
|
1005
|
+
return pulumi.get(self, "state_message")
|
1006
|
+
|
1007
|
+
@property
|
1008
|
+
@pulumi.getter
|
1009
|
+
def uid(self) -> pulumi.Output[str]:
|
1010
|
+
"""
|
1011
|
+
System generated unique identifier for this service instance, formatted as UUID4.
|
1012
|
+
"""
|
1013
|
+
return pulumi.get(self, "uid")
|
1014
|
+
|
1015
|
+
@property
|
1016
|
+
@pulumi.getter(name="updateTime")
|
1017
|
+
def update_time(self) -> pulumi.Output[str]:
|
1018
|
+
"""
|
1019
|
+
The timestamp when the resource was most recently updated.
|
1020
|
+
"""
|
1021
|
+
return pulumi.get(self, "update_time")
|
1022
|
+
|