pulumi-gcp 8.21.0a1741103856__py3-none-any.whl → 8.21.0a1741183435__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/alloydb/cluster.py +148 -0
- pulumi_gcp/alloydb/instance.py +28 -28
- pulumi_gcp/apihub/__init__.py +1 -0
- pulumi_gcp/apihub/host_project_registration.py +535 -0
- pulumi_gcp/bigquery/table.py +1 -1
- pulumi_gcp/compute/__init__.py +5 -0
- pulumi_gcp/compute/_inputs.py +770 -0
- pulumi_gcp/compute/backend_service.py +14 -7
- pulumi_gcp/compute/ca_external_account_key.py +48 -3
- pulumi_gcp/compute/disk.py +295 -0
- pulumi_gcp/compute/get_disk.py +56 -1
- pulumi_gcp/compute/get_instant_snapshot_iam_policy.py +182 -0
- pulumi_gcp/compute/instant_snapshot.py +796 -0
- pulumi_gcp/compute/instant_snapshot_iam_binding.py +1087 -0
- pulumi_gcp/compute/instant_snapshot_iam_member.py +1087 -0
- pulumi_gcp/compute/instant_snapshot_iam_policy.py +906 -0
- pulumi_gcp/compute/outputs.py +1329 -6
- pulumi_gcp/compute/region_backend_service.py +14 -7
- pulumi_gcp/compute/route.py +228 -2
- pulumi_gcp/compute/url_map.py +8 -0
- pulumi_gcp/container/_inputs.py +3 -3
- pulumi_gcp/container/outputs.py +4 -4
- pulumi_gcp/datacatalog/entry.py +4 -0
- pulumi_gcp/datacatalog/tag.py +4 -0
- pulumi_gcp/dataproc/_inputs.py +12 -15
- pulumi_gcp/dataproc/outputs.py +8 -10
- pulumi_gcp/discoveryengine/target_site.py +4 -4
- pulumi_gcp/eventarc/__init__.py +1 -0
- pulumi_gcp/eventarc/_inputs.py +40 -0
- pulumi_gcp/eventarc/message_bus.py +927 -0
- pulumi_gcp/eventarc/outputs.py +41 -0
- pulumi_gcp/gemini/__init__.py +1 -0
- pulumi_gcp/gemini/data_sharing_with_google_setting_binding.py +20 -8
- pulumi_gcp/gemini/gemini_gcp_enablement_setting.py +6 -0
- pulumi_gcp/gemini/gemini_gcp_enablement_setting_binding.py +734 -0
- pulumi_gcp/gemini/logging_setting_binding.py +7 -7
- pulumi_gcp/iam/_inputs.py +33 -9
- pulumi_gcp/iam/outputs.py +22 -6
- pulumi_gcp/iam/workforce_pool_provider.py +2 -2
- pulumi_gcp/memorystore/__init__.py +1 -0
- pulumi_gcp/memorystore/get_instance.py +425 -0
- pulumi_gcp/memorystore/outputs.py +582 -0
- pulumi_gcp/networkconnectivity/hub.py +84 -0
- pulumi_gcp/networkservices/grpc_route.py +116 -12
- pulumi_gcp/notebooks/location.py +4 -0
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/storage/__init__.py +1 -0
- pulumi_gcp/storage/_inputs.py +74 -0
- pulumi_gcp/storage/anywhere_cache.py +552 -0
- pulumi_gcp/storage/outputs.py +65 -0
- pulumi_gcp/storage/transfer_job.py +67 -0
- {pulumi_gcp-8.21.0a1741103856.dist-info → pulumi_gcp-8.21.0a1741183435.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.21.0a1741103856.dist-info → pulumi_gcp-8.21.0a1741183435.dist-info}/RECORD +56 -46
- {pulumi_gcp-8.21.0a1741103856.dist-info → pulumi_gcp-8.21.0a1741183435.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.21.0a1741103856.dist-info → pulumi_gcp-8.21.0a1741183435.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,425 @@
|
|
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
|
+
|
18
|
+
__all__ = [
|
19
|
+
'GetInstanceResult',
|
20
|
+
'AwaitableGetInstanceResult',
|
21
|
+
'get_instance',
|
22
|
+
'get_instance_output',
|
23
|
+
]
|
24
|
+
|
25
|
+
@pulumi.output_type
|
26
|
+
class GetInstanceResult:
|
27
|
+
"""
|
28
|
+
A collection of values returned by getInstance.
|
29
|
+
"""
|
30
|
+
def __init__(__self__, authorization_mode=None, create_time=None, deletion_protection_enabled=None, desired_psc_auto_connections=None, discovery_endpoints=None, effective_labels=None, endpoints=None, engine_configs=None, engine_version=None, id=None, instance_id=None, labels=None, location=None, mode=None, name=None, node_configs=None, node_type=None, persistence_configs=None, project=None, psc_auto_connections=None, pulumi_labels=None, replica_count=None, shard_count=None, state=None, state_infos=None, transit_encryption_mode=None, uid=None, update_time=None, zone_distribution_configs=None):
|
31
|
+
if authorization_mode and not isinstance(authorization_mode, str):
|
32
|
+
raise TypeError("Expected argument 'authorization_mode' to be a str")
|
33
|
+
pulumi.set(__self__, "authorization_mode", authorization_mode)
|
34
|
+
if create_time and not isinstance(create_time, str):
|
35
|
+
raise TypeError("Expected argument 'create_time' to be a str")
|
36
|
+
pulumi.set(__self__, "create_time", create_time)
|
37
|
+
if deletion_protection_enabled and not isinstance(deletion_protection_enabled, bool):
|
38
|
+
raise TypeError("Expected argument 'deletion_protection_enabled' to be a bool")
|
39
|
+
pulumi.set(__self__, "deletion_protection_enabled", deletion_protection_enabled)
|
40
|
+
if desired_psc_auto_connections and not isinstance(desired_psc_auto_connections, list):
|
41
|
+
raise TypeError("Expected argument 'desired_psc_auto_connections' to be a list")
|
42
|
+
pulumi.set(__self__, "desired_psc_auto_connections", desired_psc_auto_connections)
|
43
|
+
if discovery_endpoints and not isinstance(discovery_endpoints, list):
|
44
|
+
raise TypeError("Expected argument 'discovery_endpoints' to be a list")
|
45
|
+
pulumi.set(__self__, "discovery_endpoints", discovery_endpoints)
|
46
|
+
if effective_labels and not isinstance(effective_labels, dict):
|
47
|
+
raise TypeError("Expected argument 'effective_labels' to be a dict")
|
48
|
+
pulumi.set(__self__, "effective_labels", effective_labels)
|
49
|
+
if endpoints and not isinstance(endpoints, list):
|
50
|
+
raise TypeError("Expected argument 'endpoints' to be a list")
|
51
|
+
pulumi.set(__self__, "endpoints", endpoints)
|
52
|
+
if engine_configs and not isinstance(engine_configs, dict):
|
53
|
+
raise TypeError("Expected argument 'engine_configs' to be a dict")
|
54
|
+
pulumi.set(__self__, "engine_configs", engine_configs)
|
55
|
+
if engine_version and not isinstance(engine_version, str):
|
56
|
+
raise TypeError("Expected argument 'engine_version' to be a str")
|
57
|
+
pulumi.set(__self__, "engine_version", engine_version)
|
58
|
+
if id and not isinstance(id, str):
|
59
|
+
raise TypeError("Expected argument 'id' to be a str")
|
60
|
+
pulumi.set(__self__, "id", id)
|
61
|
+
if instance_id and not isinstance(instance_id, str):
|
62
|
+
raise TypeError("Expected argument 'instance_id' to be a str")
|
63
|
+
pulumi.set(__self__, "instance_id", instance_id)
|
64
|
+
if labels and not isinstance(labels, dict):
|
65
|
+
raise TypeError("Expected argument 'labels' to be a dict")
|
66
|
+
pulumi.set(__self__, "labels", labels)
|
67
|
+
if location and not isinstance(location, str):
|
68
|
+
raise TypeError("Expected argument 'location' to be a str")
|
69
|
+
pulumi.set(__self__, "location", location)
|
70
|
+
if mode and not isinstance(mode, str):
|
71
|
+
raise TypeError("Expected argument 'mode' to be a str")
|
72
|
+
pulumi.set(__self__, "mode", mode)
|
73
|
+
if name and not isinstance(name, str):
|
74
|
+
raise TypeError("Expected argument 'name' to be a str")
|
75
|
+
pulumi.set(__self__, "name", name)
|
76
|
+
if node_configs and not isinstance(node_configs, list):
|
77
|
+
raise TypeError("Expected argument 'node_configs' to be a list")
|
78
|
+
pulumi.set(__self__, "node_configs", node_configs)
|
79
|
+
if node_type and not isinstance(node_type, str):
|
80
|
+
raise TypeError("Expected argument 'node_type' to be a str")
|
81
|
+
pulumi.set(__self__, "node_type", node_type)
|
82
|
+
if persistence_configs and not isinstance(persistence_configs, list):
|
83
|
+
raise TypeError("Expected argument 'persistence_configs' to be a list")
|
84
|
+
pulumi.set(__self__, "persistence_configs", persistence_configs)
|
85
|
+
if project and not isinstance(project, str):
|
86
|
+
raise TypeError("Expected argument 'project' to be a str")
|
87
|
+
pulumi.set(__self__, "project", project)
|
88
|
+
if psc_auto_connections and not isinstance(psc_auto_connections, list):
|
89
|
+
raise TypeError("Expected argument 'psc_auto_connections' to be a list")
|
90
|
+
pulumi.set(__self__, "psc_auto_connections", psc_auto_connections)
|
91
|
+
if pulumi_labels and not isinstance(pulumi_labels, dict):
|
92
|
+
raise TypeError("Expected argument 'pulumi_labels' to be a dict")
|
93
|
+
pulumi.set(__self__, "pulumi_labels", pulumi_labels)
|
94
|
+
if replica_count and not isinstance(replica_count, int):
|
95
|
+
raise TypeError("Expected argument 'replica_count' to be a int")
|
96
|
+
pulumi.set(__self__, "replica_count", replica_count)
|
97
|
+
if shard_count and not isinstance(shard_count, int):
|
98
|
+
raise TypeError("Expected argument 'shard_count' to be a int")
|
99
|
+
pulumi.set(__self__, "shard_count", shard_count)
|
100
|
+
if state and not isinstance(state, str):
|
101
|
+
raise TypeError("Expected argument 'state' to be a str")
|
102
|
+
pulumi.set(__self__, "state", state)
|
103
|
+
if state_infos and not isinstance(state_infos, list):
|
104
|
+
raise TypeError("Expected argument 'state_infos' to be a list")
|
105
|
+
pulumi.set(__self__, "state_infos", state_infos)
|
106
|
+
if transit_encryption_mode and not isinstance(transit_encryption_mode, str):
|
107
|
+
raise TypeError("Expected argument 'transit_encryption_mode' to be a str")
|
108
|
+
pulumi.set(__self__, "transit_encryption_mode", transit_encryption_mode)
|
109
|
+
if uid and not isinstance(uid, str):
|
110
|
+
raise TypeError("Expected argument 'uid' to be a str")
|
111
|
+
pulumi.set(__self__, "uid", uid)
|
112
|
+
if update_time and not isinstance(update_time, str):
|
113
|
+
raise TypeError("Expected argument 'update_time' to be a str")
|
114
|
+
pulumi.set(__self__, "update_time", update_time)
|
115
|
+
if zone_distribution_configs and not isinstance(zone_distribution_configs, list):
|
116
|
+
raise TypeError("Expected argument 'zone_distribution_configs' to be a list")
|
117
|
+
pulumi.set(__self__, "zone_distribution_configs", zone_distribution_configs)
|
118
|
+
|
119
|
+
@property
|
120
|
+
@pulumi.getter(name="authorizationMode")
|
121
|
+
def authorization_mode(self) -> str:
|
122
|
+
return pulumi.get(self, "authorization_mode")
|
123
|
+
|
124
|
+
@property
|
125
|
+
@pulumi.getter(name="createTime")
|
126
|
+
def create_time(self) -> str:
|
127
|
+
return pulumi.get(self, "create_time")
|
128
|
+
|
129
|
+
@property
|
130
|
+
@pulumi.getter(name="deletionProtectionEnabled")
|
131
|
+
def deletion_protection_enabled(self) -> bool:
|
132
|
+
return pulumi.get(self, "deletion_protection_enabled")
|
133
|
+
|
134
|
+
@property
|
135
|
+
@pulumi.getter(name="desiredPscAutoConnections")
|
136
|
+
def desired_psc_auto_connections(self) -> Sequence['outputs.GetInstanceDesiredPscAutoConnectionResult']:
|
137
|
+
return pulumi.get(self, "desired_psc_auto_connections")
|
138
|
+
|
139
|
+
@property
|
140
|
+
@pulumi.getter(name="discoveryEndpoints")
|
141
|
+
def discovery_endpoints(self) -> Sequence['outputs.GetInstanceDiscoveryEndpointResult']:
|
142
|
+
return pulumi.get(self, "discovery_endpoints")
|
143
|
+
|
144
|
+
@property
|
145
|
+
@pulumi.getter(name="effectiveLabels")
|
146
|
+
def effective_labels(self) -> Mapping[str, str]:
|
147
|
+
return pulumi.get(self, "effective_labels")
|
148
|
+
|
149
|
+
@property
|
150
|
+
@pulumi.getter
|
151
|
+
def endpoints(self) -> Sequence['outputs.GetInstanceEndpointResult']:
|
152
|
+
return pulumi.get(self, "endpoints")
|
153
|
+
|
154
|
+
@property
|
155
|
+
@pulumi.getter(name="engineConfigs")
|
156
|
+
def engine_configs(self) -> Mapping[str, str]:
|
157
|
+
return pulumi.get(self, "engine_configs")
|
158
|
+
|
159
|
+
@property
|
160
|
+
@pulumi.getter(name="engineVersion")
|
161
|
+
def engine_version(self) -> str:
|
162
|
+
return pulumi.get(self, "engine_version")
|
163
|
+
|
164
|
+
@property
|
165
|
+
@pulumi.getter
|
166
|
+
def id(self) -> str:
|
167
|
+
"""
|
168
|
+
The provider-assigned unique ID for this managed resource.
|
169
|
+
"""
|
170
|
+
return pulumi.get(self, "id")
|
171
|
+
|
172
|
+
@property
|
173
|
+
@pulumi.getter(name="instanceId")
|
174
|
+
def instance_id(self) -> str:
|
175
|
+
return pulumi.get(self, "instance_id")
|
176
|
+
|
177
|
+
@property
|
178
|
+
@pulumi.getter
|
179
|
+
def labels(self) -> Mapping[str, str]:
|
180
|
+
return pulumi.get(self, "labels")
|
181
|
+
|
182
|
+
@property
|
183
|
+
@pulumi.getter
|
184
|
+
def location(self) -> Optional[str]:
|
185
|
+
return pulumi.get(self, "location")
|
186
|
+
|
187
|
+
@property
|
188
|
+
@pulumi.getter
|
189
|
+
def mode(self) -> str:
|
190
|
+
return pulumi.get(self, "mode")
|
191
|
+
|
192
|
+
@property
|
193
|
+
@pulumi.getter
|
194
|
+
def name(self) -> str:
|
195
|
+
return pulumi.get(self, "name")
|
196
|
+
|
197
|
+
@property
|
198
|
+
@pulumi.getter(name="nodeConfigs")
|
199
|
+
def node_configs(self) -> Sequence['outputs.GetInstanceNodeConfigResult']:
|
200
|
+
return pulumi.get(self, "node_configs")
|
201
|
+
|
202
|
+
@property
|
203
|
+
@pulumi.getter(name="nodeType")
|
204
|
+
def node_type(self) -> str:
|
205
|
+
return pulumi.get(self, "node_type")
|
206
|
+
|
207
|
+
@property
|
208
|
+
@pulumi.getter(name="persistenceConfigs")
|
209
|
+
def persistence_configs(self) -> Sequence['outputs.GetInstancePersistenceConfigResult']:
|
210
|
+
return pulumi.get(self, "persistence_configs")
|
211
|
+
|
212
|
+
@property
|
213
|
+
@pulumi.getter
|
214
|
+
def project(self) -> Optional[str]:
|
215
|
+
return pulumi.get(self, "project")
|
216
|
+
|
217
|
+
@property
|
218
|
+
@pulumi.getter(name="pscAutoConnections")
|
219
|
+
def psc_auto_connections(self) -> Sequence['outputs.GetInstancePscAutoConnectionResult']:
|
220
|
+
return pulumi.get(self, "psc_auto_connections")
|
221
|
+
|
222
|
+
@property
|
223
|
+
@pulumi.getter(name="pulumiLabels")
|
224
|
+
def pulumi_labels(self) -> Mapping[str, str]:
|
225
|
+
return pulumi.get(self, "pulumi_labels")
|
226
|
+
|
227
|
+
@property
|
228
|
+
@pulumi.getter(name="replicaCount")
|
229
|
+
def replica_count(self) -> int:
|
230
|
+
return pulumi.get(self, "replica_count")
|
231
|
+
|
232
|
+
@property
|
233
|
+
@pulumi.getter(name="shardCount")
|
234
|
+
def shard_count(self) -> int:
|
235
|
+
return pulumi.get(self, "shard_count")
|
236
|
+
|
237
|
+
@property
|
238
|
+
@pulumi.getter
|
239
|
+
def state(self) -> str:
|
240
|
+
return pulumi.get(self, "state")
|
241
|
+
|
242
|
+
@property
|
243
|
+
@pulumi.getter(name="stateInfos")
|
244
|
+
def state_infos(self) -> Sequence['outputs.GetInstanceStateInfoResult']:
|
245
|
+
return pulumi.get(self, "state_infos")
|
246
|
+
|
247
|
+
@property
|
248
|
+
@pulumi.getter(name="transitEncryptionMode")
|
249
|
+
def transit_encryption_mode(self) -> str:
|
250
|
+
return pulumi.get(self, "transit_encryption_mode")
|
251
|
+
|
252
|
+
@property
|
253
|
+
@pulumi.getter
|
254
|
+
def uid(self) -> str:
|
255
|
+
return pulumi.get(self, "uid")
|
256
|
+
|
257
|
+
@property
|
258
|
+
@pulumi.getter(name="updateTime")
|
259
|
+
def update_time(self) -> str:
|
260
|
+
return pulumi.get(self, "update_time")
|
261
|
+
|
262
|
+
@property
|
263
|
+
@pulumi.getter(name="zoneDistributionConfigs")
|
264
|
+
def zone_distribution_configs(self) -> Sequence['outputs.GetInstanceZoneDistributionConfigResult']:
|
265
|
+
return pulumi.get(self, "zone_distribution_configs")
|
266
|
+
|
267
|
+
|
268
|
+
class AwaitableGetInstanceResult(GetInstanceResult):
|
269
|
+
# pylint: disable=using-constant-test
|
270
|
+
def __await__(self):
|
271
|
+
if False:
|
272
|
+
yield self
|
273
|
+
return GetInstanceResult(
|
274
|
+
authorization_mode=self.authorization_mode,
|
275
|
+
create_time=self.create_time,
|
276
|
+
deletion_protection_enabled=self.deletion_protection_enabled,
|
277
|
+
desired_psc_auto_connections=self.desired_psc_auto_connections,
|
278
|
+
discovery_endpoints=self.discovery_endpoints,
|
279
|
+
effective_labels=self.effective_labels,
|
280
|
+
endpoints=self.endpoints,
|
281
|
+
engine_configs=self.engine_configs,
|
282
|
+
engine_version=self.engine_version,
|
283
|
+
id=self.id,
|
284
|
+
instance_id=self.instance_id,
|
285
|
+
labels=self.labels,
|
286
|
+
location=self.location,
|
287
|
+
mode=self.mode,
|
288
|
+
name=self.name,
|
289
|
+
node_configs=self.node_configs,
|
290
|
+
node_type=self.node_type,
|
291
|
+
persistence_configs=self.persistence_configs,
|
292
|
+
project=self.project,
|
293
|
+
psc_auto_connections=self.psc_auto_connections,
|
294
|
+
pulumi_labels=self.pulumi_labels,
|
295
|
+
replica_count=self.replica_count,
|
296
|
+
shard_count=self.shard_count,
|
297
|
+
state=self.state,
|
298
|
+
state_infos=self.state_infos,
|
299
|
+
transit_encryption_mode=self.transit_encryption_mode,
|
300
|
+
uid=self.uid,
|
301
|
+
update_time=self.update_time,
|
302
|
+
zone_distribution_configs=self.zone_distribution_configs)
|
303
|
+
|
304
|
+
|
305
|
+
def get_instance(instance_id: Optional[str] = None,
|
306
|
+
location: Optional[str] = None,
|
307
|
+
project: Optional[str] = None,
|
308
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetInstanceResult:
|
309
|
+
"""
|
310
|
+
Use this data source to get information about the available instance. For more details refer the [API docs](https://cloud.google.com/memorystore/docs/valkey/reference/rest/v1/projects.locations.instances).
|
311
|
+
|
312
|
+
## Example Usage
|
313
|
+
|
314
|
+
```python
|
315
|
+
import pulumi
|
316
|
+
import pulumi_gcp as gcp
|
317
|
+
|
318
|
+
qa = gcp.memorystore.get_instance()
|
319
|
+
```
|
320
|
+
|
321
|
+
|
322
|
+
:param str instance_id: The ID of the memorystore instance.
|
323
|
+
'memorystore_instance_id'
|
324
|
+
:param str location: (optional)
|
325
|
+
The canonical id of the location.If it is not provided, the provider project is used. For example: us-east1.
|
326
|
+
:param str project: (optional)
|
327
|
+
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
|
328
|
+
"""
|
329
|
+
__args__ = dict()
|
330
|
+
__args__['instanceId'] = instance_id
|
331
|
+
__args__['location'] = location
|
332
|
+
__args__['project'] = project
|
333
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
334
|
+
__ret__ = pulumi.runtime.invoke('gcp:memorystore/getInstance:getInstance', __args__, opts=opts, typ=GetInstanceResult).value
|
335
|
+
|
336
|
+
return AwaitableGetInstanceResult(
|
337
|
+
authorization_mode=pulumi.get(__ret__, 'authorization_mode'),
|
338
|
+
create_time=pulumi.get(__ret__, 'create_time'),
|
339
|
+
deletion_protection_enabled=pulumi.get(__ret__, 'deletion_protection_enabled'),
|
340
|
+
desired_psc_auto_connections=pulumi.get(__ret__, 'desired_psc_auto_connections'),
|
341
|
+
discovery_endpoints=pulumi.get(__ret__, 'discovery_endpoints'),
|
342
|
+
effective_labels=pulumi.get(__ret__, 'effective_labels'),
|
343
|
+
endpoints=pulumi.get(__ret__, 'endpoints'),
|
344
|
+
engine_configs=pulumi.get(__ret__, 'engine_configs'),
|
345
|
+
engine_version=pulumi.get(__ret__, 'engine_version'),
|
346
|
+
id=pulumi.get(__ret__, 'id'),
|
347
|
+
instance_id=pulumi.get(__ret__, 'instance_id'),
|
348
|
+
labels=pulumi.get(__ret__, 'labels'),
|
349
|
+
location=pulumi.get(__ret__, 'location'),
|
350
|
+
mode=pulumi.get(__ret__, 'mode'),
|
351
|
+
name=pulumi.get(__ret__, 'name'),
|
352
|
+
node_configs=pulumi.get(__ret__, 'node_configs'),
|
353
|
+
node_type=pulumi.get(__ret__, 'node_type'),
|
354
|
+
persistence_configs=pulumi.get(__ret__, 'persistence_configs'),
|
355
|
+
project=pulumi.get(__ret__, 'project'),
|
356
|
+
psc_auto_connections=pulumi.get(__ret__, 'psc_auto_connections'),
|
357
|
+
pulumi_labels=pulumi.get(__ret__, 'pulumi_labels'),
|
358
|
+
replica_count=pulumi.get(__ret__, 'replica_count'),
|
359
|
+
shard_count=pulumi.get(__ret__, 'shard_count'),
|
360
|
+
state=pulumi.get(__ret__, 'state'),
|
361
|
+
state_infos=pulumi.get(__ret__, 'state_infos'),
|
362
|
+
transit_encryption_mode=pulumi.get(__ret__, 'transit_encryption_mode'),
|
363
|
+
uid=pulumi.get(__ret__, 'uid'),
|
364
|
+
update_time=pulumi.get(__ret__, 'update_time'),
|
365
|
+
zone_distribution_configs=pulumi.get(__ret__, 'zone_distribution_configs'))
|
366
|
+
def get_instance_output(instance_id: Optional[pulumi.Input[str]] = None,
|
367
|
+
location: Optional[pulumi.Input[Optional[str]]] = None,
|
368
|
+
project: Optional[pulumi.Input[Optional[str]]] = None,
|
369
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetInstanceResult]:
|
370
|
+
"""
|
371
|
+
Use this data source to get information about the available instance. For more details refer the [API docs](https://cloud.google.com/memorystore/docs/valkey/reference/rest/v1/projects.locations.instances).
|
372
|
+
|
373
|
+
## Example Usage
|
374
|
+
|
375
|
+
```python
|
376
|
+
import pulumi
|
377
|
+
import pulumi_gcp as gcp
|
378
|
+
|
379
|
+
qa = gcp.memorystore.get_instance()
|
380
|
+
```
|
381
|
+
|
382
|
+
|
383
|
+
:param str instance_id: The ID of the memorystore instance.
|
384
|
+
'memorystore_instance_id'
|
385
|
+
:param str location: (optional)
|
386
|
+
The canonical id of the location.If it is not provided, the provider project is used. For example: us-east1.
|
387
|
+
:param str project: (optional)
|
388
|
+
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
|
389
|
+
"""
|
390
|
+
__args__ = dict()
|
391
|
+
__args__['instanceId'] = instance_id
|
392
|
+
__args__['location'] = location
|
393
|
+
__args__['project'] = project
|
394
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
395
|
+
__ret__ = pulumi.runtime.invoke_output('gcp:memorystore/getInstance:getInstance', __args__, opts=opts, typ=GetInstanceResult)
|
396
|
+
return __ret__.apply(lambda __response__: GetInstanceResult(
|
397
|
+
authorization_mode=pulumi.get(__response__, 'authorization_mode'),
|
398
|
+
create_time=pulumi.get(__response__, 'create_time'),
|
399
|
+
deletion_protection_enabled=pulumi.get(__response__, 'deletion_protection_enabled'),
|
400
|
+
desired_psc_auto_connections=pulumi.get(__response__, 'desired_psc_auto_connections'),
|
401
|
+
discovery_endpoints=pulumi.get(__response__, 'discovery_endpoints'),
|
402
|
+
effective_labels=pulumi.get(__response__, 'effective_labels'),
|
403
|
+
endpoints=pulumi.get(__response__, 'endpoints'),
|
404
|
+
engine_configs=pulumi.get(__response__, 'engine_configs'),
|
405
|
+
engine_version=pulumi.get(__response__, 'engine_version'),
|
406
|
+
id=pulumi.get(__response__, 'id'),
|
407
|
+
instance_id=pulumi.get(__response__, 'instance_id'),
|
408
|
+
labels=pulumi.get(__response__, 'labels'),
|
409
|
+
location=pulumi.get(__response__, 'location'),
|
410
|
+
mode=pulumi.get(__response__, 'mode'),
|
411
|
+
name=pulumi.get(__response__, 'name'),
|
412
|
+
node_configs=pulumi.get(__response__, 'node_configs'),
|
413
|
+
node_type=pulumi.get(__response__, 'node_type'),
|
414
|
+
persistence_configs=pulumi.get(__response__, 'persistence_configs'),
|
415
|
+
project=pulumi.get(__response__, 'project'),
|
416
|
+
psc_auto_connections=pulumi.get(__response__, 'psc_auto_connections'),
|
417
|
+
pulumi_labels=pulumi.get(__response__, 'pulumi_labels'),
|
418
|
+
replica_count=pulumi.get(__response__, 'replica_count'),
|
419
|
+
shard_count=pulumi.get(__response__, 'shard_count'),
|
420
|
+
state=pulumi.get(__response__, 'state'),
|
421
|
+
state_infos=pulumi.get(__response__, 'state_infos'),
|
422
|
+
transit_encryption_mode=pulumi.get(__response__, 'transit_encryption_mode'),
|
423
|
+
uid=pulumi.get(__response__, 'uid'),
|
424
|
+
update_time=pulumi.get(__response__, 'update_time'),
|
425
|
+
zone_distribution_configs=pulumi.get(__response__, 'zone_distribution_configs')))
|