@pulumi/gcp 6.49.0 → 6.50.0
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.
- package/alloydb/backup.d.ts +8 -8
- package/alloydb/backup.js +8 -8
- package/alloydb/cluster.d.ts +1 -50
- package/alloydb/cluster.js +1 -50
- package/alloydb/cluster.js.map +1 -1
- package/alloydb/instance.d.ts +9 -10
- package/alloydb/instance.js +9 -10
- package/alloydb/instance.js.map +1 -1
- package/apigee/addonsConfig.d.ts +172 -0
- package/apigee/addonsConfig.js +161 -0
- package/apigee/addonsConfig.js.map +1 -0
- package/apigee/index.d.ts +3 -0
- package/apigee/index.js +6 -1
- package/apigee/index.js.map +1 -1
- package/cloudbuildv2/connectionIAMBinding.d.ts +125 -0
- package/cloudbuildv2/connectionIAMBinding.js +92 -0
- package/cloudbuildv2/connectionIAMBinding.js.map +1 -0
- package/cloudbuildv2/connectionIAMMember.d.ts +125 -0
- package/cloudbuildv2/connectionIAMMember.js +92 -0
- package/cloudbuildv2/connectionIAMMember.js.map +1 -0
- package/cloudbuildv2/connectionIAMPolicy.d.ts +114 -0
- package/cloudbuildv2/connectionIAMPolicy.js +85 -0
- package/cloudbuildv2/connectionIAMPolicy.js.map +1 -0
- package/cloudbuildv2/index.d.ts +9 -0
- package/cloudbuildv2/index.js +16 -1
- package/cloudbuildv2/index.js.map +1 -1
- package/compute/externalVpnGateway.d.ts +18 -0
- package/compute/externalVpnGateway.js +2 -0
- package/compute/externalVpnGateway.js.map +1 -1
- package/compute/getInstanceGroupManager.d.ts +1 -0
- package/compute/getInstanceGroupManager.js.map +1 -1
- package/compute/getInstanceTemplate.d.ts +4 -0
- package/compute/getInstanceTemplate.js.map +1 -1
- package/compute/instanceGroupManager.d.ts +12 -0
- package/compute/instanceGroupManager.js +2 -0
- package/compute/instanceGroupManager.js.map +1 -1
- package/compute/instanceTemplate.d.ts +12 -0
- package/compute/instanceTemplate.js +2 -0
- package/compute/instanceTemplate.js.map +1 -1
- package/compute/network.d.ts +15 -6
- package/compute/network.js.map +1 -1
- package/compute/regionInstanceGroupManager.d.ts +12 -0
- package/compute/regionInstanceGroupManager.js +2 -0
- package/compute/regionInstanceGroupManager.js.map +1 -1
- package/compute/regionTargetTcpProxy.d.ts +10 -0
- package/compute/regionTargetTcpProxy.js +10 -0
- package/compute/regionTargetTcpProxy.js.map +1 -1
- package/datafusion/instance.d.ts +0 -9
- package/datafusion/instance.js +0 -9
- package/datafusion/instance.js.map +1 -1
- package/datastream/stream.d.ts +170 -0
- package/datastream/stream.js +170 -0
- package/datastream/stream.js.map +1 -1
- package/eventarc/channel.d.ts +3 -3
- package/eventarc/channel.js +3 -3
- package/eventarc/googleChannelConfig.d.ts +3 -3
- package/eventarc/googleChannelConfig.js +3 -3
- package/firebase/androidApp.d.ts +3 -3
- package/firebase/appleApp.d.ts +9 -9
- package/firestore/database.d.ts +197 -0
- package/firestore/database.js +90 -0
- package/firestore/database.js.map +1 -0
- package/firestore/index.d.ts +3 -0
- package/firestore/index.js +6 -1
- package/firestore/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/redis/instance.d.ts +2 -2
- package/securitycenter/instanceIamBinding.d.ts +0 -9
- package/securitycenter/instanceIamBinding.js +0 -9
- package/securitycenter/instanceIamBinding.js.map +1 -1
- package/securitycenter/instanceIamMember.d.ts +0 -9
- package/securitycenter/instanceIamMember.js +0 -9
- package/securitycenter/instanceIamMember.js.map +1 -1
- package/securitycenter/instanceIamPolicy.d.ts +0 -9
- package/securitycenter/instanceIamPolicy.js +0 -9
- package/securitycenter/instanceIamPolicy.js.map +1 -1
- package/sql/databaseInstance.d.ts +1 -0
- package/sql/databaseInstance.js +1 -0
- package/sql/databaseInstance.js.map +1 -1
- package/types/input.d.ts +570 -1
- package/types/output.d.ts +575 -1
- package/vertex/aiFeatureStore.d.ts +44 -0
- package/vertex/aiFeatureStore.js +25 -0
- package/vertex/aiFeatureStore.js.map +1 -1
- package/vertex/aiFeatureStoreEntityType.d.ts +32 -0
- package/vertex/aiFeatureStoreEntityType.js +6 -0
- package/vertex/aiFeatureStoreEntityType.js.map +1 -1
package/datastream/stream.js
CHANGED
|
@@ -188,6 +188,176 @@ const utilities = require("../utilities");
|
|
|
188
188
|
* dependsOn: [keyUser],
|
|
189
189
|
* });
|
|
190
190
|
* ```
|
|
191
|
+
* ### Datastream Stream Postgresql
|
|
192
|
+
*
|
|
193
|
+
* ```typescript
|
|
194
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
195
|
+
* import * as gcp from "@pulumi/gcp";
|
|
196
|
+
*
|
|
197
|
+
* const source = new gcp.datastream.ConnectionProfile("source", {
|
|
198
|
+
* displayName: "Postgresql Source",
|
|
199
|
+
* location: "us-central1",
|
|
200
|
+
* connectionProfileId: "source-profile",
|
|
201
|
+
* postgresqlProfile: {
|
|
202
|
+
* hostname: "hostname",
|
|
203
|
+
* port: 3306,
|
|
204
|
+
* username: "user",
|
|
205
|
+
* password: "pass",
|
|
206
|
+
* database: "postgres",
|
|
207
|
+
* },
|
|
208
|
+
* });
|
|
209
|
+
* const destination = new gcp.datastream.ConnectionProfile("destination", {
|
|
210
|
+
* displayName: "BigQuery Destination",
|
|
211
|
+
* location: "us-central1",
|
|
212
|
+
* connectionProfileId: "destination-profile",
|
|
213
|
+
* bigqueryProfile: {},
|
|
214
|
+
* });
|
|
215
|
+
* const _default = new gcp.datastream.Stream("default", {
|
|
216
|
+
* displayName: "Postgres to BigQuery",
|
|
217
|
+
* location: "us-central1",
|
|
218
|
+
* streamId: "my-stream",
|
|
219
|
+
* desiredState: "RUNNING",
|
|
220
|
+
* sourceConfig: {
|
|
221
|
+
* sourceConnectionProfile: source.id,
|
|
222
|
+
* postgresqlSourceConfig: {
|
|
223
|
+
* maxConcurrentBackfillTasks: 12,
|
|
224
|
+
* publication: "publication",
|
|
225
|
+
* replicationSlot: "replication_slot",
|
|
226
|
+
* includeObjects: {
|
|
227
|
+
* postgresqlSchemas: [{
|
|
228
|
+
* schema: "schema",
|
|
229
|
+
* postgresqlTables: [{
|
|
230
|
+
* table: "table",
|
|
231
|
+
* postgresqlColumns: [{
|
|
232
|
+
* column: "column",
|
|
233
|
+
* }],
|
|
234
|
+
* }],
|
|
235
|
+
* }],
|
|
236
|
+
* },
|
|
237
|
+
* excludeObjects: {
|
|
238
|
+
* postgresqlSchemas: [{
|
|
239
|
+
* schema: "schema",
|
|
240
|
+
* postgresqlTables: [{
|
|
241
|
+
* table: "table",
|
|
242
|
+
* postgresqlColumns: [{
|
|
243
|
+
* column: "column",
|
|
244
|
+
* }],
|
|
245
|
+
* }],
|
|
246
|
+
* }],
|
|
247
|
+
* },
|
|
248
|
+
* },
|
|
249
|
+
* },
|
|
250
|
+
* destinationConfig: {
|
|
251
|
+
* destinationConnectionProfile: destination.id,
|
|
252
|
+
* bigqueryDestinationConfig: {
|
|
253
|
+
* dataFreshness: "900s",
|
|
254
|
+
* sourceHierarchyDatasets: {
|
|
255
|
+
* datasetTemplate: {
|
|
256
|
+
* location: "us-central1",
|
|
257
|
+
* },
|
|
258
|
+
* },
|
|
259
|
+
* },
|
|
260
|
+
* },
|
|
261
|
+
* backfillAll: {
|
|
262
|
+
* postgresqlExcludedObjects: {
|
|
263
|
+
* postgresqlSchemas: [{
|
|
264
|
+
* schema: "schema",
|
|
265
|
+
* postgresqlTables: [{
|
|
266
|
+
* table: "table",
|
|
267
|
+
* postgresqlColumns: [{
|
|
268
|
+
* column: "column",
|
|
269
|
+
* }],
|
|
270
|
+
* }],
|
|
271
|
+
* }],
|
|
272
|
+
* },
|
|
273
|
+
* },
|
|
274
|
+
* });
|
|
275
|
+
* ```
|
|
276
|
+
* ### Datastream Stream Oracle
|
|
277
|
+
*
|
|
278
|
+
* ```typescript
|
|
279
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
280
|
+
* import * as gcp from "@pulumi/gcp";
|
|
281
|
+
*
|
|
282
|
+
* const source = new gcp.datastream.ConnectionProfile("source", {
|
|
283
|
+
* displayName: "Oracle Source",
|
|
284
|
+
* location: "us-central1",
|
|
285
|
+
* connectionProfileId: "source-profile",
|
|
286
|
+
* oracleProfile: {
|
|
287
|
+
* hostname: "hostname",
|
|
288
|
+
* port: 1521,
|
|
289
|
+
* username: "user",
|
|
290
|
+
* password: "pass",
|
|
291
|
+
* databaseService: "ORCL",
|
|
292
|
+
* },
|
|
293
|
+
* });
|
|
294
|
+
* const destination = new gcp.datastream.ConnectionProfile("destination", {
|
|
295
|
+
* displayName: "BigQuery Destination",
|
|
296
|
+
* location: "us-central1",
|
|
297
|
+
* connectionProfileId: "destination-profile",
|
|
298
|
+
* bigqueryProfile: {},
|
|
299
|
+
* });
|
|
300
|
+
* const stream5 = new gcp.datastream.Stream("stream5", {
|
|
301
|
+
* displayName: "Oracle to BigQuery",
|
|
302
|
+
* location: "us-central1",
|
|
303
|
+
* streamId: "my-stream",
|
|
304
|
+
* desiredState: "RUNNING",
|
|
305
|
+
* sourceConfig: {
|
|
306
|
+
* sourceConnectionProfile: source.id,
|
|
307
|
+
* oracleSourceConfig: {
|
|
308
|
+
* maxConcurrentCdcTasks: 8,
|
|
309
|
+
* maxConcurrentBackfillTasks: 12,
|
|
310
|
+
* includeObjects: {
|
|
311
|
+
* oracleSchemas: [{
|
|
312
|
+
* schema: "schema",
|
|
313
|
+
* oracleTables: [{
|
|
314
|
+
* table: "table",
|
|
315
|
+
* oracleColumns: [{
|
|
316
|
+
* column: "column",
|
|
317
|
+
* }],
|
|
318
|
+
* }],
|
|
319
|
+
* }],
|
|
320
|
+
* },
|
|
321
|
+
* excludeObjects: {
|
|
322
|
+
* oracleSchemas: [{
|
|
323
|
+
* schema: "schema",
|
|
324
|
+
* oracleTables: [{
|
|
325
|
+
* table: "table",
|
|
326
|
+
* oracleColumns: [{
|
|
327
|
+
* column: "column",
|
|
328
|
+
* }],
|
|
329
|
+
* }],
|
|
330
|
+
* }],
|
|
331
|
+
* },
|
|
332
|
+
* dropLargeObjects: {},
|
|
333
|
+
* },
|
|
334
|
+
* },
|
|
335
|
+
* destinationConfig: {
|
|
336
|
+
* destinationConnectionProfile: destination.id,
|
|
337
|
+
* bigqueryDestinationConfig: {
|
|
338
|
+
* dataFreshness: "900s",
|
|
339
|
+
* sourceHierarchyDatasets: {
|
|
340
|
+
* datasetTemplate: {
|
|
341
|
+
* location: "us-central1",
|
|
342
|
+
* },
|
|
343
|
+
* },
|
|
344
|
+
* },
|
|
345
|
+
* },
|
|
346
|
+
* backfillAll: {
|
|
347
|
+
* oracleExcludedObjects: {
|
|
348
|
+
* oracleSchemas: [{
|
|
349
|
+
* schema: "schema",
|
|
350
|
+
* oracleTables: [{
|
|
351
|
+
* table: "table",
|
|
352
|
+
* oracleColumns: [{
|
|
353
|
+
* column: "column",
|
|
354
|
+
* }],
|
|
355
|
+
* }],
|
|
356
|
+
* }],
|
|
357
|
+
* },
|
|
358
|
+
* },
|
|
359
|
+
* });
|
|
360
|
+
* ```
|
|
191
361
|
* ### Datastream Stream Bigquery
|
|
192
362
|
*
|
|
193
363
|
* ```typescript
|
package/datastream/stream.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.js","sourceRoot":"","sources":["../../datastream/stream.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"stream.js","sourceRoot":"","sources":["../../datastream/stream.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
19
19
|
* name: "key",
|
|
20
20
|
* keyRing: testKeyRing.id,
|
|
21
21
|
* }));
|
|
22
|
-
* const
|
|
22
|
+
* const key1Member = new gcp.kms.CryptoKeyIAMMember("key1Member", {
|
|
23
23
|
* cryptoKeyId: data.google_kms_crypto_key.key1.id,
|
|
24
24
|
* role: "roles/cloudkms.cryptoKeyEncrypterDecrypter",
|
|
25
|
-
*
|
|
25
|
+
* member: testProject.then(testProject => `serviceAccount:service-${testProject.number}@gcp-sa-eventarc.iam.gserviceaccount.com`),
|
|
26
26
|
* });
|
|
27
27
|
* const primary = new gcp.eventarc.Channel("primary", {
|
|
28
28
|
* location: "us-west1",
|
|
@@ -30,7 +30,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
30
30
|
* cryptoKeyName: data.google_kms_crypto_key.key1.id,
|
|
31
31
|
* thirdPartyProvider: testProject.then(testProject => `projects/${testProject.projectId}/locations/us-west1/providers/datadog`),
|
|
32
32
|
* }, {
|
|
33
|
-
* dependsOn: [
|
|
33
|
+
* dependsOn: [key1Member],
|
|
34
34
|
* });
|
|
35
35
|
* ```
|
|
36
36
|
*
|
package/eventarc/channel.js
CHANGED
|
@@ -25,10 +25,10 @@ const utilities = require("../utilities");
|
|
|
25
25
|
* name: "key",
|
|
26
26
|
* keyRing: testKeyRing.id,
|
|
27
27
|
* }));
|
|
28
|
-
* const
|
|
28
|
+
* const key1Member = new gcp.kms.CryptoKeyIAMMember("key1Member", {
|
|
29
29
|
* cryptoKeyId: data.google_kms_crypto_key.key1.id,
|
|
30
30
|
* role: "roles/cloudkms.cryptoKeyEncrypterDecrypter",
|
|
31
|
-
*
|
|
31
|
+
* member: testProject.then(testProject => `serviceAccount:service-${testProject.number}@gcp-sa-eventarc.iam.gserviceaccount.com`),
|
|
32
32
|
* });
|
|
33
33
|
* const primary = new gcp.eventarc.Channel("primary", {
|
|
34
34
|
* location: "us-west1",
|
|
@@ -36,7 +36,7 @@ const utilities = require("../utilities");
|
|
|
36
36
|
* cryptoKeyName: data.google_kms_crypto_key.key1.id,
|
|
37
37
|
* thirdPartyProvider: testProject.then(testProject => `projects/${testProject.projectId}/locations/us-west1/providers/datadog`),
|
|
38
38
|
* }, {
|
|
39
|
-
* dependsOn: [
|
|
39
|
+
* dependsOn: [key1Member],
|
|
40
40
|
* });
|
|
41
41
|
* ```
|
|
42
42
|
*
|
|
@@ -19,17 +19,17 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
19
19
|
* name: "key",
|
|
20
20
|
* keyRing: testKeyRing.id,
|
|
21
21
|
* }));
|
|
22
|
-
* const
|
|
22
|
+
* const key1Member = new gcp.kms.CryptoKeyIAMMember("key1Member", {
|
|
23
23
|
* cryptoKeyId: data.google_kms_crypto_key.key1.id,
|
|
24
24
|
* role: "roles/cloudkms.cryptoKeyEncrypterDecrypter",
|
|
25
|
-
*
|
|
25
|
+
* member: testProject.then(testProject => `serviceAccount:service-${testProject.number}@gcp-sa-eventarc.iam.gserviceaccount.com`),
|
|
26
26
|
* });
|
|
27
27
|
* const primary = new gcp.eventarc.GoogleChannelConfig("primary", {
|
|
28
28
|
* location: "us-west1",
|
|
29
29
|
* project: testProject.then(testProject => testProject.projectId),
|
|
30
30
|
* cryptoKeyName: data.google_kms_crypto_key.key1.id,
|
|
31
31
|
* }, {
|
|
32
|
-
* dependsOn: [
|
|
32
|
+
* dependsOn: [key1Member],
|
|
33
33
|
* });
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
@@ -25,17 +25,17 @@ const utilities = require("../utilities");
|
|
|
25
25
|
* name: "key",
|
|
26
26
|
* keyRing: testKeyRing.id,
|
|
27
27
|
* }));
|
|
28
|
-
* const
|
|
28
|
+
* const key1Member = new gcp.kms.CryptoKeyIAMMember("key1Member", {
|
|
29
29
|
* cryptoKeyId: data.google_kms_crypto_key.key1.id,
|
|
30
30
|
* role: "roles/cloudkms.cryptoKeyEncrypterDecrypter",
|
|
31
|
-
*
|
|
31
|
+
* member: testProject.then(testProject => `serviceAccount:service-${testProject.number}@gcp-sa-eventarc.iam.gserviceaccount.com`),
|
|
32
32
|
* });
|
|
33
33
|
* const primary = new gcp.eventarc.GoogleChannelConfig("primary", {
|
|
34
34
|
* location: "us-west1",
|
|
35
35
|
* project: testProject.then(testProject => testProject.projectId),
|
|
36
36
|
* cryptoKeyName: data.google_kms_crypto_key.key1.id,
|
|
37
37
|
* }, {
|
|
38
|
-
* dependsOn: [
|
|
38
|
+
* dependsOn: [key1Member],
|
|
39
39
|
* });
|
|
40
40
|
* ```
|
|
41
41
|
*
|
package/firebase/androidApp.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export declare class AndroidApp extends pulumi.CustomResource {
|
|
|
62
62
|
/**
|
|
63
63
|
* (Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon
|
|
64
64
|
* 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the
|
|
65
|
-
* AndroidApp.
|
|
65
|
+
* AndroidApp. Defaults to 'DELETE'.
|
|
66
66
|
*/
|
|
67
67
|
readonly deletionPolicy: pulumi.Output<string | undefined>;
|
|
68
68
|
/**
|
|
@@ -118,7 +118,7 @@ export interface AndroidAppState {
|
|
|
118
118
|
/**
|
|
119
119
|
* (Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon
|
|
120
120
|
* 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the
|
|
121
|
-
* AndroidApp.
|
|
121
|
+
* AndroidApp. Defaults to 'DELETE'.
|
|
122
122
|
*/
|
|
123
123
|
deletionPolicy?: pulumi.Input<string>;
|
|
124
124
|
/**
|
|
@@ -161,7 +161,7 @@ export interface AndroidAppArgs {
|
|
|
161
161
|
/**
|
|
162
162
|
* (Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon
|
|
163
163
|
* 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the
|
|
164
|
-
* AndroidApp.
|
|
164
|
+
* AndroidApp. Defaults to 'DELETE'.
|
|
165
165
|
*/
|
|
166
166
|
deletionPolicy?: pulumi.Input<string>;
|
|
167
167
|
/**
|
package/firebase/appleApp.d.ts
CHANGED
|
@@ -82,9 +82,9 @@ export declare class AppleApp extends pulumi.CustomResource {
|
|
|
82
82
|
*/
|
|
83
83
|
readonly bundleId: pulumi.Output<string | undefined>;
|
|
84
84
|
/**
|
|
85
|
-
* (Optional) Set to 'ABANDON' to allow the
|
|
86
|
-
*
|
|
87
|
-
*
|
|
85
|
+
* (Optional) Set to 'ABANDON' to allow the Apple to be untracked from terraform state rather than deleted upon 'terraform
|
|
86
|
+
* destroy'. This is useful because the Apple may be serving traffic. Set to 'DELETE' to delete the Apple. Defaults to
|
|
87
|
+
* 'DELETE'.
|
|
88
88
|
*/
|
|
89
89
|
readonly deletionPolicy: pulumi.Output<string | undefined>;
|
|
90
90
|
/**
|
|
@@ -132,9 +132,9 @@ export interface AppleAppState {
|
|
|
132
132
|
*/
|
|
133
133
|
bundleId?: pulumi.Input<string>;
|
|
134
134
|
/**
|
|
135
|
-
* (Optional) Set to 'ABANDON' to allow the
|
|
136
|
-
*
|
|
137
|
-
*
|
|
135
|
+
* (Optional) Set to 'ABANDON' to allow the Apple to be untracked from terraform state rather than deleted upon 'terraform
|
|
136
|
+
* destroy'. This is useful because the Apple may be serving traffic. Set to 'DELETE' to delete the Apple. Defaults to
|
|
137
|
+
* 'DELETE'.
|
|
138
138
|
*/
|
|
139
139
|
deletionPolicy?: pulumi.Input<string>;
|
|
140
140
|
/**
|
|
@@ -169,9 +169,9 @@ export interface AppleAppArgs {
|
|
|
169
169
|
*/
|
|
170
170
|
bundleId?: pulumi.Input<string>;
|
|
171
171
|
/**
|
|
172
|
-
* (Optional) Set to 'ABANDON' to allow the
|
|
173
|
-
*
|
|
174
|
-
*
|
|
172
|
+
* (Optional) Set to 'ABANDON' to allow the Apple to be untracked from terraform state rather than deleted upon 'terraform
|
|
173
|
+
* destroy'. This is useful because the Apple may be serving traffic. Set to 'DELETE' to delete the Apple. Defaults to
|
|
174
|
+
* 'DELETE'.
|
|
175
175
|
*/
|
|
176
176
|
deletionPolicy?: pulumi.Input<string>;
|
|
177
177
|
/**
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* ## Import
|
|
6
|
+
*
|
|
7
|
+
* Database can be imported using any of these accepted formats
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* $ pulumi import gcp:firestore/database:Database default projects/{{project}}/databases/{{name}}
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import gcp:firestore/database:Database default {{project}}/{{name}}
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ```sh
|
|
18
|
+
* $ pulumi import gcp:firestore/database:Database default {{name}}
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare class Database extends pulumi.CustomResource {
|
|
22
|
+
/**
|
|
23
|
+
* Get an existing Database resource's state with the given name, ID, and optional extra
|
|
24
|
+
* properties used to qualify the lookup.
|
|
25
|
+
*
|
|
26
|
+
* @param name The _unique_ name of the resulting resource.
|
|
27
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
28
|
+
* @param state Any extra arguments used during the lookup.
|
|
29
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
30
|
+
*/
|
|
31
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DatabaseState, opts?: pulumi.CustomResourceOptions): Database;
|
|
32
|
+
/**
|
|
33
|
+
* Returns true if the given object is an instance of Database. This is designed to work even
|
|
34
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
35
|
+
*/
|
|
36
|
+
static isInstance(obj: any): obj is Database;
|
|
37
|
+
/**
|
|
38
|
+
* The App Engine integration mode to use for this database.
|
|
39
|
+
* Possible values are `ENABLED` and `DISABLED`.
|
|
40
|
+
*/
|
|
41
|
+
readonly appEngineIntegrationMode: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* The concurrency control mode to use for this database.
|
|
44
|
+
* Possible values are `OPTIMISTIC`, `PESSIMISTIC`, and `OPTIMISTIC_WITH_ENTITY_GROUPS`.
|
|
45
|
+
*/
|
|
46
|
+
readonly concurrencyMode: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The timestamp at which this database was created.
|
|
49
|
+
*/
|
|
50
|
+
readonly createTime: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* This checksum is computed by the server based on the value of other fields,
|
|
53
|
+
* and may be sent on update and delete requests to ensure the client has an
|
|
54
|
+
* up-to-date value before proceeding.
|
|
55
|
+
*/
|
|
56
|
+
readonly etag: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Output only. The keyPrefix for this database.
|
|
59
|
+
* This keyPrefix is used, in combination with the project id ("~") to construct the application id
|
|
60
|
+
* that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes.
|
|
61
|
+
* This value may be empty in which case the appid to use for URL-encoded keys is the projectId (eg: foo instead of v~foo).
|
|
62
|
+
*/
|
|
63
|
+
readonly keyPrefix: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* The location of the database. Available databases are listed at
|
|
66
|
+
* https://cloud.google.com/firestore/docs/locations.
|
|
67
|
+
*/
|
|
68
|
+
readonly locationId: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Required. The ID to use for the database, which will become the final
|
|
71
|
+
* component of the database's resource name. This value should be 4-63
|
|
72
|
+
* characters. Valid characters are /[a-z][0-9]-/ with first character
|
|
73
|
+
* a letter and the last a letter or a number. Must not be
|
|
74
|
+
* UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
|
|
75
|
+
* "(default)" database id is also valid.
|
|
76
|
+
*/
|
|
77
|
+
readonly name: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The ID of the project in which the resource belongs.
|
|
80
|
+
* If it is not provided, the provider project is used.
|
|
81
|
+
*/
|
|
82
|
+
readonly project: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The type of the database.
|
|
85
|
+
* See https://cloud.google.com/datastore/docs/firestore-or-datastore
|
|
86
|
+
* for information about how to choose.
|
|
87
|
+
* Possible values are `FIRESTORE_NATIVE` and `DATASTORE_MODE`.
|
|
88
|
+
*/
|
|
89
|
+
readonly type: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Create a Database resource with the given unique name, arguments, and options.
|
|
92
|
+
*
|
|
93
|
+
* @param name The _unique_ name of the resource.
|
|
94
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
95
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
96
|
+
*/
|
|
97
|
+
constructor(name: string, args: DatabaseArgs, opts?: pulumi.CustomResourceOptions);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Input properties used for looking up and filtering Database resources.
|
|
101
|
+
*/
|
|
102
|
+
export interface DatabaseState {
|
|
103
|
+
/**
|
|
104
|
+
* The App Engine integration mode to use for this database.
|
|
105
|
+
* Possible values are `ENABLED` and `DISABLED`.
|
|
106
|
+
*/
|
|
107
|
+
appEngineIntegrationMode?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The concurrency control mode to use for this database.
|
|
110
|
+
* Possible values are `OPTIMISTIC`, `PESSIMISTIC`, and `OPTIMISTIC_WITH_ENTITY_GROUPS`.
|
|
111
|
+
*/
|
|
112
|
+
concurrencyMode?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The timestamp at which this database was created.
|
|
115
|
+
*/
|
|
116
|
+
createTime?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* This checksum is computed by the server based on the value of other fields,
|
|
119
|
+
* and may be sent on update and delete requests to ensure the client has an
|
|
120
|
+
* up-to-date value before proceeding.
|
|
121
|
+
*/
|
|
122
|
+
etag?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Output only. The keyPrefix for this database.
|
|
125
|
+
* This keyPrefix is used, in combination with the project id ("~") to construct the application id
|
|
126
|
+
* that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes.
|
|
127
|
+
* This value may be empty in which case the appid to use for URL-encoded keys is the projectId (eg: foo instead of v~foo).
|
|
128
|
+
*/
|
|
129
|
+
keyPrefix?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* The location of the database. Available databases are listed at
|
|
132
|
+
* https://cloud.google.com/firestore/docs/locations.
|
|
133
|
+
*/
|
|
134
|
+
locationId?: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* Required. The ID to use for the database, which will become the final
|
|
137
|
+
* component of the database's resource name. This value should be 4-63
|
|
138
|
+
* characters. Valid characters are /[a-z][0-9]-/ with first character
|
|
139
|
+
* a letter and the last a letter or a number. Must not be
|
|
140
|
+
* UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
|
|
141
|
+
* "(default)" database id is also valid.
|
|
142
|
+
*/
|
|
143
|
+
name?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* The ID of the project in which the resource belongs.
|
|
146
|
+
* If it is not provided, the provider project is used.
|
|
147
|
+
*/
|
|
148
|
+
project?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* The type of the database.
|
|
151
|
+
* See https://cloud.google.com/datastore/docs/firestore-or-datastore
|
|
152
|
+
* for information about how to choose.
|
|
153
|
+
* Possible values are `FIRESTORE_NATIVE` and `DATASTORE_MODE`.
|
|
154
|
+
*/
|
|
155
|
+
type?: pulumi.Input<string>;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* The set of arguments for constructing a Database resource.
|
|
159
|
+
*/
|
|
160
|
+
export interface DatabaseArgs {
|
|
161
|
+
/**
|
|
162
|
+
* The App Engine integration mode to use for this database.
|
|
163
|
+
* Possible values are `ENABLED` and `DISABLED`.
|
|
164
|
+
*/
|
|
165
|
+
appEngineIntegrationMode?: pulumi.Input<string>;
|
|
166
|
+
/**
|
|
167
|
+
* The concurrency control mode to use for this database.
|
|
168
|
+
* Possible values are `OPTIMISTIC`, `PESSIMISTIC`, and `OPTIMISTIC_WITH_ENTITY_GROUPS`.
|
|
169
|
+
*/
|
|
170
|
+
concurrencyMode?: pulumi.Input<string>;
|
|
171
|
+
/**
|
|
172
|
+
* The location of the database. Available databases are listed at
|
|
173
|
+
* https://cloud.google.com/firestore/docs/locations.
|
|
174
|
+
*/
|
|
175
|
+
locationId: pulumi.Input<string>;
|
|
176
|
+
/**
|
|
177
|
+
* Required. The ID to use for the database, which will become the final
|
|
178
|
+
* component of the database's resource name. This value should be 4-63
|
|
179
|
+
* characters. Valid characters are /[a-z][0-9]-/ with first character
|
|
180
|
+
* a letter and the last a letter or a number. Must not be
|
|
181
|
+
* UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
|
|
182
|
+
* "(default)" database id is also valid.
|
|
183
|
+
*/
|
|
184
|
+
name?: pulumi.Input<string>;
|
|
185
|
+
/**
|
|
186
|
+
* The ID of the project in which the resource belongs.
|
|
187
|
+
* If it is not provided, the provider project is used.
|
|
188
|
+
*/
|
|
189
|
+
project?: pulumi.Input<string>;
|
|
190
|
+
/**
|
|
191
|
+
* The type of the database.
|
|
192
|
+
* See https://cloud.google.com/datastore/docs/firestore-or-datastore
|
|
193
|
+
* for information about how to choose.
|
|
194
|
+
* Possible values are `FIRESTORE_NATIVE` and `DATASTORE_MODE`.
|
|
195
|
+
*/
|
|
196
|
+
type: pulumi.Input<string>;
|
|
197
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Database = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ## Import
|
|
12
|
+
*
|
|
13
|
+
* Database can be imported using any of these accepted formats
|
|
14
|
+
*
|
|
15
|
+
* ```sh
|
|
16
|
+
* $ pulumi import gcp:firestore/database:Database default projects/{{project}}/databases/{{name}}
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* ```sh
|
|
20
|
+
* $ pulumi import gcp:firestore/database:Database default {{project}}/{{name}}
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ```sh
|
|
24
|
+
* $ pulumi import gcp:firestore/database:Database default {{name}}
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
class Database extends pulumi.CustomResource {
|
|
28
|
+
/**
|
|
29
|
+
* Get an existing Database resource's state with the given name, ID, and optional extra
|
|
30
|
+
* properties used to qualify the lookup.
|
|
31
|
+
*
|
|
32
|
+
* @param name The _unique_ name of the resulting resource.
|
|
33
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
34
|
+
* @param state Any extra arguments used during the lookup.
|
|
35
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
36
|
+
*/
|
|
37
|
+
static get(name, id, state, opts) {
|
|
38
|
+
return new Database(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns true if the given object is an instance of Database. This is designed to work even
|
|
42
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
43
|
+
*/
|
|
44
|
+
static isInstance(obj) {
|
|
45
|
+
if (obj === undefined || obj === null) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
return obj['__pulumiType'] === Database.__pulumiType;
|
|
49
|
+
}
|
|
50
|
+
constructor(name, argsOrState, opts) {
|
|
51
|
+
let resourceInputs = {};
|
|
52
|
+
opts = opts || {};
|
|
53
|
+
if (opts.id) {
|
|
54
|
+
const state = argsOrState;
|
|
55
|
+
resourceInputs["appEngineIntegrationMode"] = state ? state.appEngineIntegrationMode : undefined;
|
|
56
|
+
resourceInputs["concurrencyMode"] = state ? state.concurrencyMode : undefined;
|
|
57
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
58
|
+
resourceInputs["etag"] = state ? state.etag : undefined;
|
|
59
|
+
resourceInputs["keyPrefix"] = state ? state.keyPrefix : undefined;
|
|
60
|
+
resourceInputs["locationId"] = state ? state.locationId : undefined;
|
|
61
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
62
|
+
resourceInputs["project"] = state ? state.project : undefined;
|
|
63
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const args = argsOrState;
|
|
67
|
+
if ((!args || args.locationId === undefined) && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'locationId'");
|
|
69
|
+
}
|
|
70
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'type'");
|
|
72
|
+
}
|
|
73
|
+
resourceInputs["appEngineIntegrationMode"] = args ? args.appEngineIntegrationMode : undefined;
|
|
74
|
+
resourceInputs["concurrencyMode"] = args ? args.concurrencyMode : undefined;
|
|
75
|
+
resourceInputs["locationId"] = args ? args.locationId : undefined;
|
|
76
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
77
|
+
resourceInputs["project"] = args ? args.project : undefined;
|
|
78
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
79
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
80
|
+
resourceInputs["etag"] = undefined /*out*/;
|
|
81
|
+
resourceInputs["keyPrefix"] = undefined /*out*/;
|
|
82
|
+
}
|
|
83
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
84
|
+
super(Database.__pulumiType, name, resourceInputs, opts);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.Database = Database;
|
|
88
|
+
/** @internal */
|
|
89
|
+
Database.__pulumiType = 'gcp:firestore/database:Database';
|
|
90
|
+
//# sourceMappingURL=database.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"database.js","sourceRoot":"","sources":["../../firestore/database.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAgED,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,0BAA0B,CAAC,GAAG,KAAK,CAAC,CAAC,CA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
1
|
+
export { DatabaseArgs, DatabaseState } from "./database";
|
|
2
|
+
export type Database = import("./database").Database;
|
|
3
|
+
export declare const Database: typeof import("./database").Database;
|
|
1
4
|
export { DocumentArgs, DocumentState } from "./document";
|
|
2
5
|
export type Document = import("./document").Document;
|
|
3
6
|
export declare const Document: typeof import("./document").Document;
|