pulumi-gcp 8.2.0a1726671837__py3-none-any.whl → 8.3.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.
Files changed (100) hide show
  1. pulumi_gcp/__init__.py +158 -0
  2. pulumi_gcp/alloydb/_inputs.py +20 -0
  3. pulumi_gcp/alloydb/instance.py +36 -0
  4. pulumi_gcp/alloydb/outputs.py +14 -0
  5. pulumi_gcp/bigquery/__init__.py +1 -0
  6. pulumi_gcp/bigquery/get_tables.py +143 -0
  7. pulumi_gcp/bigquery/outputs.py +30 -0
  8. pulumi_gcp/compute/__init__.py +2 -0
  9. pulumi_gcp/compute/_inputs.py +12481 -9158
  10. pulumi_gcp/compute/attached_disk.py +103 -0
  11. pulumi_gcp/compute/backend_service.py +29 -22
  12. pulumi_gcp/compute/firewall_policy_with_rules.py +769 -0
  13. pulumi_gcp/compute/get_instance.py +3 -0
  14. pulumi_gcp/compute/network_firewall_policy_with_rules.py +826 -0
  15. pulumi_gcp/compute/outputs.py +3695 -1293
  16. pulumi_gcp/compute/region_backend_service.py +29 -22
  17. pulumi_gcp/compute/region_target_http_proxy.py +159 -0
  18. pulumi_gcp/compute/region_target_https_proxy.py +175 -0
  19. pulumi_gcp/compute/router_nat.py +27 -66
  20. pulumi_gcp/compute/service_attachment.py +75 -0
  21. pulumi_gcp/compute/target_http_proxy.py +49 -28
  22. pulumi_gcp/compute/target_https_proxy.py +49 -28
  23. pulumi_gcp/config/__init__.pyi +6 -0
  24. pulumi_gcp/config/vars.py +12 -0
  25. pulumi_gcp/container/_inputs.py +168 -99
  26. pulumi_gcp/container/attached_cluster.py +54 -1
  27. pulumi_gcp/container/outputs.py +155 -70
  28. pulumi_gcp/databasemigrationservice/__init__.py +1 -0
  29. pulumi_gcp/databasemigrationservice/_inputs.py +362 -0
  30. pulumi_gcp/databasemigrationservice/migration_job.py +1739 -0
  31. pulumi_gcp/databasemigrationservice/outputs.py +268 -0
  32. pulumi_gcp/dataproc/get_metastore_service.py +11 -1
  33. pulumi_gcp/dataproc/metastore_federation.py +8 -8
  34. pulumi_gcp/dataproc/metastore_service.py +95 -0
  35. pulumi_gcp/datastream/stream.py +21 -14
  36. pulumi_gcp/developerconnect/__init__.py +11 -0
  37. pulumi_gcp/developerconnect/_inputs.py +304 -0
  38. pulumi_gcp/developerconnect/connection.py +1037 -0
  39. pulumi_gcp/developerconnect/git_repository_link.py +873 -0
  40. pulumi_gcp/developerconnect/outputs.py +249 -0
  41. pulumi_gcp/discoveryengine/__init__.py +1 -0
  42. pulumi_gcp/discoveryengine/_inputs.py +131 -0
  43. pulumi_gcp/discoveryengine/outputs.py +131 -0
  44. pulumi_gcp/discoveryengine/target_site.py +870 -0
  45. pulumi_gcp/dns/managed_zone.py +1 -1
  46. pulumi_gcp/filestore/get_instance.py +21 -1
  47. pulumi_gcp/filestore/instance.py +94 -0
  48. pulumi_gcp/gkehub/feature_membership.py +140 -62
  49. pulumi_gcp/gkeonprem/_inputs.py +3 -3
  50. pulumi_gcp/gkeonprem/outputs.py +2 -2
  51. pulumi_gcp/healthcare/__init__.py +1 -0
  52. pulumi_gcp/healthcare/_inputs.py +39 -0
  53. pulumi_gcp/healthcare/outputs.py +40 -0
  54. pulumi_gcp/healthcare/workspace.py +465 -0
  55. pulumi_gcp/looker/instance.py +81 -0
  56. pulumi_gcp/memorystore/__init__.py +10 -0
  57. pulumi_gcp/memorystore/_inputs.py +731 -0
  58. pulumi_gcp/memorystore/instance.py +1663 -0
  59. pulumi_gcp/memorystore/outputs.py +598 -0
  60. pulumi_gcp/netapp/_inputs.py +63 -0
  61. pulumi_gcp/netapp/outputs.py +57 -0
  62. pulumi_gcp/netapp/storage_pool.py +54 -0
  63. pulumi_gcp/netapp/volume.py +183 -0
  64. pulumi_gcp/organizations/folder.py +52 -33
  65. pulumi_gcp/provider.py +60 -0
  66. pulumi_gcp/pubsub/subscription.py +43 -7
  67. pulumi_gcp/pulumi-plugin.json +1 -1
  68. pulumi_gcp/secretmanager/__init__.py +8 -0
  69. pulumi_gcp/secretmanager/_inputs.py +308 -0
  70. pulumi_gcp/secretmanager/get_regional_secret.py +279 -0
  71. pulumi_gcp/secretmanager/get_regional_secret_iam_policy.py +173 -0
  72. pulumi_gcp/secretmanager/get_regional_secret_version.py +241 -0
  73. pulumi_gcp/secretmanager/outputs.py +336 -0
  74. pulumi_gcp/secretmanager/regional_secret.py +1433 -0
  75. pulumi_gcp/secretmanager/regional_secret_iam_binding.py +1082 -0
  76. pulumi_gcp/secretmanager/regional_secret_iam_member.py +1082 -0
  77. pulumi_gcp/secretmanager/regional_secret_iam_policy.py +901 -0
  78. pulumi_gcp/secretmanager/regional_secret_version.py +753 -0
  79. pulumi_gcp/securitycenter/__init__.py +4 -0
  80. pulumi_gcp/securitycenter/folder_scc_big_query_export.py +795 -0
  81. pulumi_gcp/securitycenter/organization_scc_big_query_export.py +738 -0
  82. pulumi_gcp/securitycenter/project_scc_big_query_export.py +749 -0
  83. pulumi_gcp/securitycenter/v2_organization_scc_big_query_export.py +862 -0
  84. pulumi_gcp/securitycenter/v2_organization_scc_big_query_exports.py +6 -2
  85. pulumi_gcp/securitycenter/v2_project_mute_config.py +2 -2
  86. pulumi_gcp/siteverification/__init__.py +3 -0
  87. pulumi_gcp/siteverification/_inputs.py +85 -0
  88. pulumi_gcp/siteverification/outputs.py +57 -0
  89. pulumi_gcp/siteverification/web_resource.py +398 -0
  90. pulumi_gcp/spanner/__init__.py +1 -0
  91. pulumi_gcp/spanner/_inputs.py +129 -0
  92. pulumi_gcp/spanner/backup_schedule.py +748 -0
  93. pulumi_gcp/spanner/get_instance.py +11 -1
  94. pulumi_gcp/spanner/instance.py +56 -0
  95. pulumi_gcp/spanner/outputs.py +93 -0
  96. pulumi_gcp/vpcaccess/connector.py +21 -28
  97. {pulumi_gcp-8.2.0a1726671837.dist-info → pulumi_gcp-8.3.0.dist-info}/METADATA +1 -1
  98. {pulumi_gcp-8.2.0a1726671837.dist-info → pulumi_gcp-8.3.0.dist-info}/RECORD +100 -69
  99. {pulumi_gcp-8.2.0a1726671837.dist-info → pulumi_gcp-8.3.0.dist-info}/WHEEL +0 -0
  100. {pulumi_gcp-8.2.0a1726671837.dist-info → pulumi_gcp-8.3.0.dist-info}/top_level.txt +0 -0
@@ -15,6 +15,18 @@ else:
15
15
  from .. import _utilities
16
16
 
17
17
  __all__ = [
18
+ 'RegionalSecretCustomerManagedEncryptionArgs',
19
+ 'RegionalSecretCustomerManagedEncryptionArgsDict',
20
+ 'RegionalSecretIamBindingConditionArgs',
21
+ 'RegionalSecretIamBindingConditionArgsDict',
22
+ 'RegionalSecretIamMemberConditionArgs',
23
+ 'RegionalSecretIamMemberConditionArgsDict',
24
+ 'RegionalSecretRotationArgs',
25
+ 'RegionalSecretRotationArgsDict',
26
+ 'RegionalSecretTopicArgs',
27
+ 'RegionalSecretTopicArgsDict',
28
+ 'RegionalSecretVersionCustomerManagedEncryptionArgs',
29
+ 'RegionalSecretVersionCustomerManagedEncryptionArgsDict',
18
30
  'SecretIamBindingConditionArgs',
19
31
  'SecretIamBindingConditionArgsDict',
20
32
  'SecretIamMemberConditionArgs',
@@ -39,6 +51,302 @@ __all__ = [
39
51
 
40
52
  MYPY = False
41
53
 
54
+ if not MYPY:
55
+ class RegionalSecretCustomerManagedEncryptionArgsDict(TypedDict):
56
+ kms_key_name: pulumi.Input[str]
57
+ """
58
+ The resource name of the Cloud KMS CryptoKey used to encrypt secret payloads.
59
+ """
60
+ elif False:
61
+ RegionalSecretCustomerManagedEncryptionArgsDict: TypeAlias = Mapping[str, Any]
62
+
63
+ @pulumi.input_type
64
+ class RegionalSecretCustomerManagedEncryptionArgs:
65
+ def __init__(__self__, *,
66
+ kms_key_name: pulumi.Input[str]):
67
+ """
68
+ :param pulumi.Input[str] kms_key_name: The resource name of the Cloud KMS CryptoKey used to encrypt secret payloads.
69
+ """
70
+ pulumi.set(__self__, "kms_key_name", kms_key_name)
71
+
72
+ @property
73
+ @pulumi.getter(name="kmsKeyName")
74
+ def kms_key_name(self) -> pulumi.Input[str]:
75
+ """
76
+ The resource name of the Cloud KMS CryptoKey used to encrypt secret payloads.
77
+ """
78
+ return pulumi.get(self, "kms_key_name")
79
+
80
+ @kms_key_name.setter
81
+ def kms_key_name(self, value: pulumi.Input[str]):
82
+ pulumi.set(self, "kms_key_name", value)
83
+
84
+
85
+ if not MYPY:
86
+ class RegionalSecretIamBindingConditionArgsDict(TypedDict):
87
+ expression: pulumi.Input[str]
88
+ """
89
+ Textual representation of an expression in Common Expression Language syntax.
90
+ """
91
+ title: pulumi.Input[str]
92
+ """
93
+ A title for the expression, i.e. a short string describing its purpose.
94
+ """
95
+ description: NotRequired[pulumi.Input[str]]
96
+ elif False:
97
+ RegionalSecretIamBindingConditionArgsDict: TypeAlias = Mapping[str, Any]
98
+
99
+ @pulumi.input_type
100
+ class RegionalSecretIamBindingConditionArgs:
101
+ def __init__(__self__, *,
102
+ expression: pulumi.Input[str],
103
+ title: pulumi.Input[str],
104
+ description: Optional[pulumi.Input[str]] = None):
105
+ """
106
+ :param pulumi.Input[str] expression: Textual representation of an expression in Common Expression Language syntax.
107
+ :param pulumi.Input[str] title: A title for the expression, i.e. a short string describing its purpose.
108
+ """
109
+ pulumi.set(__self__, "expression", expression)
110
+ pulumi.set(__self__, "title", title)
111
+ if description is not None:
112
+ pulumi.set(__self__, "description", description)
113
+
114
+ @property
115
+ @pulumi.getter
116
+ def expression(self) -> pulumi.Input[str]:
117
+ """
118
+ Textual representation of an expression in Common Expression Language syntax.
119
+ """
120
+ return pulumi.get(self, "expression")
121
+
122
+ @expression.setter
123
+ def expression(self, value: pulumi.Input[str]):
124
+ pulumi.set(self, "expression", value)
125
+
126
+ @property
127
+ @pulumi.getter
128
+ def title(self) -> pulumi.Input[str]:
129
+ """
130
+ A title for the expression, i.e. a short string describing its purpose.
131
+ """
132
+ return pulumi.get(self, "title")
133
+
134
+ @title.setter
135
+ def title(self, value: pulumi.Input[str]):
136
+ pulumi.set(self, "title", value)
137
+
138
+ @property
139
+ @pulumi.getter
140
+ def description(self) -> Optional[pulumi.Input[str]]:
141
+ return pulumi.get(self, "description")
142
+
143
+ @description.setter
144
+ def description(self, value: Optional[pulumi.Input[str]]):
145
+ pulumi.set(self, "description", value)
146
+
147
+
148
+ if not MYPY:
149
+ class RegionalSecretIamMemberConditionArgsDict(TypedDict):
150
+ expression: pulumi.Input[str]
151
+ """
152
+ Textual representation of an expression in Common Expression Language syntax.
153
+ """
154
+ title: pulumi.Input[str]
155
+ """
156
+ A title for the expression, i.e. a short string describing its purpose.
157
+ """
158
+ description: NotRequired[pulumi.Input[str]]
159
+ elif False:
160
+ RegionalSecretIamMemberConditionArgsDict: TypeAlias = Mapping[str, Any]
161
+
162
+ @pulumi.input_type
163
+ class RegionalSecretIamMemberConditionArgs:
164
+ def __init__(__self__, *,
165
+ expression: pulumi.Input[str],
166
+ title: pulumi.Input[str],
167
+ description: Optional[pulumi.Input[str]] = None):
168
+ """
169
+ :param pulumi.Input[str] expression: Textual representation of an expression in Common Expression Language syntax.
170
+ :param pulumi.Input[str] title: A title for the expression, i.e. a short string describing its purpose.
171
+ """
172
+ pulumi.set(__self__, "expression", expression)
173
+ pulumi.set(__self__, "title", title)
174
+ if description is not None:
175
+ pulumi.set(__self__, "description", description)
176
+
177
+ @property
178
+ @pulumi.getter
179
+ def expression(self) -> pulumi.Input[str]:
180
+ """
181
+ Textual representation of an expression in Common Expression Language syntax.
182
+ """
183
+ return pulumi.get(self, "expression")
184
+
185
+ @expression.setter
186
+ def expression(self, value: pulumi.Input[str]):
187
+ pulumi.set(self, "expression", value)
188
+
189
+ @property
190
+ @pulumi.getter
191
+ def title(self) -> pulumi.Input[str]:
192
+ """
193
+ A title for the expression, i.e. a short string describing its purpose.
194
+ """
195
+ return pulumi.get(self, "title")
196
+
197
+ @title.setter
198
+ def title(self, value: pulumi.Input[str]):
199
+ pulumi.set(self, "title", value)
200
+
201
+ @property
202
+ @pulumi.getter
203
+ def description(self) -> Optional[pulumi.Input[str]]:
204
+ return pulumi.get(self, "description")
205
+
206
+ @description.setter
207
+ def description(self, value: Optional[pulumi.Input[str]]):
208
+ pulumi.set(self, "description", value)
209
+
210
+
211
+ if not MYPY:
212
+ class RegionalSecretRotationArgsDict(TypedDict):
213
+ next_rotation_time: NotRequired[pulumi.Input[str]]
214
+ """
215
+ Timestamp in UTC at which the Secret is scheduled to rotate.
216
+ A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine
217
+ fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
218
+ """
219
+ rotation_period: NotRequired[pulumi.Input[str]]
220
+ """
221
+ The Duration between rotation notifications. Must be in seconds and at least 3600s (1h)
222
+ and at most 3153600000s (100 years). If rotationPeriod is set, `next_rotation_time` must
223
+ be set. `next_rotation_time` will be advanced by this period when the service
224
+ automatically sends rotation notifications.
225
+ """
226
+ elif False:
227
+ RegionalSecretRotationArgsDict: TypeAlias = Mapping[str, Any]
228
+
229
+ @pulumi.input_type
230
+ class RegionalSecretRotationArgs:
231
+ def __init__(__self__, *,
232
+ next_rotation_time: Optional[pulumi.Input[str]] = None,
233
+ rotation_period: Optional[pulumi.Input[str]] = None):
234
+ """
235
+ :param pulumi.Input[str] next_rotation_time: Timestamp in UTC at which the Secret is scheduled to rotate.
236
+ A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine
237
+ fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
238
+ :param pulumi.Input[str] rotation_period: The Duration between rotation notifications. Must be in seconds and at least 3600s (1h)
239
+ and at most 3153600000s (100 years). If rotationPeriod is set, `next_rotation_time` must
240
+ be set. `next_rotation_time` will be advanced by this period when the service
241
+ automatically sends rotation notifications.
242
+ """
243
+ if next_rotation_time is not None:
244
+ pulumi.set(__self__, "next_rotation_time", next_rotation_time)
245
+ if rotation_period is not None:
246
+ pulumi.set(__self__, "rotation_period", rotation_period)
247
+
248
+ @property
249
+ @pulumi.getter(name="nextRotationTime")
250
+ def next_rotation_time(self) -> Optional[pulumi.Input[str]]:
251
+ """
252
+ Timestamp in UTC at which the Secret is scheduled to rotate.
253
+ A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine
254
+ fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
255
+ """
256
+ return pulumi.get(self, "next_rotation_time")
257
+
258
+ @next_rotation_time.setter
259
+ def next_rotation_time(self, value: Optional[pulumi.Input[str]]):
260
+ pulumi.set(self, "next_rotation_time", value)
261
+
262
+ @property
263
+ @pulumi.getter(name="rotationPeriod")
264
+ def rotation_period(self) -> Optional[pulumi.Input[str]]:
265
+ """
266
+ The Duration between rotation notifications. Must be in seconds and at least 3600s (1h)
267
+ and at most 3153600000s (100 years). If rotationPeriod is set, `next_rotation_time` must
268
+ be set. `next_rotation_time` will be advanced by this period when the service
269
+ automatically sends rotation notifications.
270
+ """
271
+ return pulumi.get(self, "rotation_period")
272
+
273
+ @rotation_period.setter
274
+ def rotation_period(self, value: Optional[pulumi.Input[str]]):
275
+ pulumi.set(self, "rotation_period", value)
276
+
277
+
278
+ if not MYPY:
279
+ class RegionalSecretTopicArgsDict(TypedDict):
280
+ name: pulumi.Input[str]
281
+ """
282
+ The resource name of the Pub/Sub topic that will be published to, in the following format:
283
+ projects/*/topics/*. For publication to succeed, the Secret Manager Service
284
+ Agent service account must have pubsub.publisher permissions on the topic.
285
+ """
286
+ elif False:
287
+ RegionalSecretTopicArgsDict: TypeAlias = Mapping[str, Any]
288
+
289
+ @pulumi.input_type
290
+ class RegionalSecretTopicArgs:
291
+ def __init__(__self__, *,
292
+ name: pulumi.Input[str]):
293
+ """
294
+ :param pulumi.Input[str] name: The resource name of the Pub/Sub topic that will be published to, in the following format:
295
+ projects/*/topics/*. For publication to succeed, the Secret Manager Service
296
+ Agent service account must have pubsub.publisher permissions on the topic.
297
+ """
298
+ pulumi.set(__self__, "name", name)
299
+
300
+ @property
301
+ @pulumi.getter
302
+ def name(self) -> pulumi.Input[str]:
303
+ """
304
+ The resource name of the Pub/Sub topic that will be published to, in the following format:
305
+ projects/*/topics/*. For publication to succeed, the Secret Manager Service
306
+ Agent service account must have pubsub.publisher permissions on the topic.
307
+ """
308
+ return pulumi.get(self, "name")
309
+
310
+ @name.setter
311
+ def name(self, value: pulumi.Input[str]):
312
+ pulumi.set(self, "name", value)
313
+
314
+
315
+ if not MYPY:
316
+ class RegionalSecretVersionCustomerManagedEncryptionArgsDict(TypedDict):
317
+ kms_key_version_name: NotRequired[pulumi.Input[str]]
318
+ """
319
+ (Output)
320
+ The resource name of the Cloud KMS CryptoKey used to encrypt secret payloads.
321
+ """
322
+ elif False:
323
+ RegionalSecretVersionCustomerManagedEncryptionArgsDict: TypeAlias = Mapping[str, Any]
324
+
325
+ @pulumi.input_type
326
+ class RegionalSecretVersionCustomerManagedEncryptionArgs:
327
+ def __init__(__self__, *,
328
+ kms_key_version_name: Optional[pulumi.Input[str]] = None):
329
+ """
330
+ :param pulumi.Input[str] kms_key_version_name: (Output)
331
+ The resource name of the Cloud KMS CryptoKey used to encrypt secret payloads.
332
+ """
333
+ if kms_key_version_name is not None:
334
+ pulumi.set(__self__, "kms_key_version_name", kms_key_version_name)
335
+
336
+ @property
337
+ @pulumi.getter(name="kmsKeyVersionName")
338
+ def kms_key_version_name(self) -> Optional[pulumi.Input[str]]:
339
+ """
340
+ (Output)
341
+ The resource name of the Cloud KMS CryptoKey used to encrypt secret payloads.
342
+ """
343
+ return pulumi.get(self, "kms_key_version_name")
344
+
345
+ @kms_key_version_name.setter
346
+ def kms_key_version_name(self, value: Optional[pulumi.Input[str]]):
347
+ pulumi.set(self, "kms_key_version_name", value)
348
+
349
+
42
350
  if not MYPY:
43
351
  class SecretIamBindingConditionArgsDict(TypedDict):
44
352
  expression: pulumi.Input[str]
@@ -0,0 +1,279 @@
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
+ 'GetRegionalSecretResult',
20
+ 'AwaitableGetRegionalSecretResult',
21
+ 'get_regional_secret',
22
+ 'get_regional_secret_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetRegionalSecretResult:
27
+ """
28
+ A collection of values returned by getRegionalSecret.
29
+ """
30
+ def __init__(__self__, annotations=None, create_time=None, customer_managed_encryptions=None, effective_annotations=None, effective_labels=None, expire_time=None, id=None, labels=None, location=None, name=None, project=None, pulumi_labels=None, rotations=None, secret_id=None, topics=None, ttl=None, version_aliases=None, version_destroy_ttl=None):
31
+ if annotations and not isinstance(annotations, dict):
32
+ raise TypeError("Expected argument 'annotations' to be a dict")
33
+ pulumi.set(__self__, "annotations", annotations)
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 customer_managed_encryptions and not isinstance(customer_managed_encryptions, list):
38
+ raise TypeError("Expected argument 'customer_managed_encryptions' to be a list")
39
+ pulumi.set(__self__, "customer_managed_encryptions", customer_managed_encryptions)
40
+ if effective_annotations and not isinstance(effective_annotations, dict):
41
+ raise TypeError("Expected argument 'effective_annotations' to be a dict")
42
+ pulumi.set(__self__, "effective_annotations", effective_annotations)
43
+ if effective_labels and not isinstance(effective_labels, dict):
44
+ raise TypeError("Expected argument 'effective_labels' to be a dict")
45
+ pulumi.set(__self__, "effective_labels", effective_labels)
46
+ if expire_time and not isinstance(expire_time, str):
47
+ raise TypeError("Expected argument 'expire_time' to be a str")
48
+ pulumi.set(__self__, "expire_time", expire_time)
49
+ if id and not isinstance(id, str):
50
+ raise TypeError("Expected argument 'id' to be a str")
51
+ pulumi.set(__self__, "id", id)
52
+ if labels and not isinstance(labels, dict):
53
+ raise TypeError("Expected argument 'labels' to be a dict")
54
+ pulumi.set(__self__, "labels", labels)
55
+ if location and not isinstance(location, str):
56
+ raise TypeError("Expected argument 'location' to be a str")
57
+ pulumi.set(__self__, "location", location)
58
+ if name and not isinstance(name, str):
59
+ raise TypeError("Expected argument 'name' to be a str")
60
+ pulumi.set(__self__, "name", name)
61
+ if project and not isinstance(project, str):
62
+ raise TypeError("Expected argument 'project' to be a str")
63
+ pulumi.set(__self__, "project", project)
64
+ if pulumi_labels and not isinstance(pulumi_labels, dict):
65
+ raise TypeError("Expected argument 'pulumi_labels' to be a dict")
66
+ pulumi.set(__self__, "pulumi_labels", pulumi_labels)
67
+ if rotations and not isinstance(rotations, list):
68
+ raise TypeError("Expected argument 'rotations' to be a list")
69
+ pulumi.set(__self__, "rotations", rotations)
70
+ if secret_id and not isinstance(secret_id, str):
71
+ raise TypeError("Expected argument 'secret_id' to be a str")
72
+ pulumi.set(__self__, "secret_id", secret_id)
73
+ if topics and not isinstance(topics, list):
74
+ raise TypeError("Expected argument 'topics' to be a list")
75
+ pulumi.set(__self__, "topics", topics)
76
+ if ttl and not isinstance(ttl, str):
77
+ raise TypeError("Expected argument 'ttl' to be a str")
78
+ pulumi.set(__self__, "ttl", ttl)
79
+ if version_aliases and not isinstance(version_aliases, dict):
80
+ raise TypeError("Expected argument 'version_aliases' to be a dict")
81
+ pulumi.set(__self__, "version_aliases", version_aliases)
82
+ if version_destroy_ttl and not isinstance(version_destroy_ttl, str):
83
+ raise TypeError("Expected argument 'version_destroy_ttl' to be a str")
84
+ pulumi.set(__self__, "version_destroy_ttl", version_destroy_ttl)
85
+
86
+ @property
87
+ @pulumi.getter
88
+ def annotations(self) -> Mapping[str, str]:
89
+ return pulumi.get(self, "annotations")
90
+
91
+ @property
92
+ @pulumi.getter(name="createTime")
93
+ def create_time(self) -> str:
94
+ return pulumi.get(self, "create_time")
95
+
96
+ @property
97
+ @pulumi.getter(name="customerManagedEncryptions")
98
+ def customer_managed_encryptions(self) -> Sequence['outputs.GetRegionalSecretCustomerManagedEncryptionResult']:
99
+ return pulumi.get(self, "customer_managed_encryptions")
100
+
101
+ @property
102
+ @pulumi.getter(name="effectiveAnnotations")
103
+ def effective_annotations(self) -> Mapping[str, str]:
104
+ return pulumi.get(self, "effective_annotations")
105
+
106
+ @property
107
+ @pulumi.getter(name="effectiveLabels")
108
+ def effective_labels(self) -> Mapping[str, str]:
109
+ return pulumi.get(self, "effective_labels")
110
+
111
+ @property
112
+ @pulumi.getter(name="expireTime")
113
+ def expire_time(self) -> str:
114
+ return pulumi.get(self, "expire_time")
115
+
116
+ @property
117
+ @pulumi.getter
118
+ def id(self) -> str:
119
+ """
120
+ The provider-assigned unique ID for this managed resource.
121
+ """
122
+ return pulumi.get(self, "id")
123
+
124
+ @property
125
+ @pulumi.getter
126
+ def labels(self) -> Mapping[str, str]:
127
+ return pulumi.get(self, "labels")
128
+
129
+ @property
130
+ @pulumi.getter
131
+ def location(self) -> str:
132
+ return pulumi.get(self, "location")
133
+
134
+ @property
135
+ @pulumi.getter
136
+ def name(self) -> str:
137
+ return pulumi.get(self, "name")
138
+
139
+ @property
140
+ @pulumi.getter
141
+ def project(self) -> Optional[str]:
142
+ return pulumi.get(self, "project")
143
+
144
+ @property
145
+ @pulumi.getter(name="pulumiLabels")
146
+ def pulumi_labels(self) -> Mapping[str, str]:
147
+ return pulumi.get(self, "pulumi_labels")
148
+
149
+ @property
150
+ @pulumi.getter
151
+ def rotations(self) -> Sequence['outputs.GetRegionalSecretRotationResult']:
152
+ return pulumi.get(self, "rotations")
153
+
154
+ @property
155
+ @pulumi.getter(name="secretId")
156
+ def secret_id(self) -> str:
157
+ return pulumi.get(self, "secret_id")
158
+
159
+ @property
160
+ @pulumi.getter
161
+ def topics(self) -> Sequence['outputs.GetRegionalSecretTopicResult']:
162
+ return pulumi.get(self, "topics")
163
+
164
+ @property
165
+ @pulumi.getter
166
+ def ttl(self) -> str:
167
+ return pulumi.get(self, "ttl")
168
+
169
+ @property
170
+ @pulumi.getter(name="versionAliases")
171
+ def version_aliases(self) -> Mapping[str, str]:
172
+ return pulumi.get(self, "version_aliases")
173
+
174
+ @property
175
+ @pulumi.getter(name="versionDestroyTtl")
176
+ def version_destroy_ttl(self) -> str:
177
+ return pulumi.get(self, "version_destroy_ttl")
178
+
179
+
180
+ class AwaitableGetRegionalSecretResult(GetRegionalSecretResult):
181
+ # pylint: disable=using-constant-test
182
+ def __await__(self):
183
+ if False:
184
+ yield self
185
+ return GetRegionalSecretResult(
186
+ annotations=self.annotations,
187
+ create_time=self.create_time,
188
+ customer_managed_encryptions=self.customer_managed_encryptions,
189
+ effective_annotations=self.effective_annotations,
190
+ effective_labels=self.effective_labels,
191
+ expire_time=self.expire_time,
192
+ id=self.id,
193
+ labels=self.labels,
194
+ location=self.location,
195
+ name=self.name,
196
+ project=self.project,
197
+ pulumi_labels=self.pulumi_labels,
198
+ rotations=self.rotations,
199
+ secret_id=self.secret_id,
200
+ topics=self.topics,
201
+ ttl=self.ttl,
202
+ version_aliases=self.version_aliases,
203
+ version_destroy_ttl=self.version_destroy_ttl)
204
+
205
+
206
+ def get_regional_secret(location: Optional[str] = None,
207
+ project: Optional[str] = None,
208
+ secret_id: Optional[str] = None,
209
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRegionalSecretResult:
210
+ """
211
+ Use this data source to get information about a Secret Manager Regional Secret
212
+
213
+ ## Example Usage
214
+
215
+ ```python
216
+ import pulumi
217
+ import pulumi_gcp as gcp
218
+
219
+ secret_datasource = gcp.secretmanager.get_regional_secret(secret_id="secretname",
220
+ location="us-central1")
221
+ ```
222
+
223
+
224
+ :param str location: The location of the regional secret. eg us-central1
225
+ :param str project: The ID of the project in which the resource belongs.
226
+ :param str secret_id: The name of the regional secret.
227
+ """
228
+ __args__ = dict()
229
+ __args__['location'] = location
230
+ __args__['project'] = project
231
+ __args__['secretId'] = secret_id
232
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
233
+ __ret__ = pulumi.runtime.invoke('gcp:secretmanager/getRegionalSecret:getRegionalSecret', __args__, opts=opts, typ=GetRegionalSecretResult).value
234
+
235
+ return AwaitableGetRegionalSecretResult(
236
+ annotations=pulumi.get(__ret__, 'annotations'),
237
+ create_time=pulumi.get(__ret__, 'create_time'),
238
+ customer_managed_encryptions=pulumi.get(__ret__, 'customer_managed_encryptions'),
239
+ effective_annotations=pulumi.get(__ret__, 'effective_annotations'),
240
+ effective_labels=pulumi.get(__ret__, 'effective_labels'),
241
+ expire_time=pulumi.get(__ret__, 'expire_time'),
242
+ id=pulumi.get(__ret__, 'id'),
243
+ labels=pulumi.get(__ret__, 'labels'),
244
+ location=pulumi.get(__ret__, 'location'),
245
+ name=pulumi.get(__ret__, 'name'),
246
+ project=pulumi.get(__ret__, 'project'),
247
+ pulumi_labels=pulumi.get(__ret__, 'pulumi_labels'),
248
+ rotations=pulumi.get(__ret__, 'rotations'),
249
+ secret_id=pulumi.get(__ret__, 'secret_id'),
250
+ topics=pulumi.get(__ret__, 'topics'),
251
+ ttl=pulumi.get(__ret__, 'ttl'),
252
+ version_aliases=pulumi.get(__ret__, 'version_aliases'),
253
+ version_destroy_ttl=pulumi.get(__ret__, 'version_destroy_ttl'))
254
+
255
+
256
+ @_utilities.lift_output_func(get_regional_secret)
257
+ def get_regional_secret_output(location: Optional[pulumi.Input[str]] = None,
258
+ project: Optional[pulumi.Input[Optional[str]]] = None,
259
+ secret_id: Optional[pulumi.Input[str]] = None,
260
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRegionalSecretResult]:
261
+ """
262
+ Use this data source to get information about a Secret Manager Regional Secret
263
+
264
+ ## Example Usage
265
+
266
+ ```python
267
+ import pulumi
268
+ import pulumi_gcp as gcp
269
+
270
+ secret_datasource = gcp.secretmanager.get_regional_secret(secret_id="secretname",
271
+ location="us-central1")
272
+ ```
273
+
274
+
275
+ :param str location: The location of the regional secret. eg us-central1
276
+ :param str project: The ID of the project in which the resource belongs.
277
+ :param str secret_id: The name of the regional secret.
278
+ """
279
+ ...