@pulumi/gcp 6.14.0 → 6.15.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.
Files changed (71) hide show
  1. package/apigee/endpointAttachment.d.ts +161 -0
  2. package/apigee/endpointAttachment.js +127 -0
  3. package/apigee/endpointAttachment.js.map +1 -0
  4. package/apigee/index.d.ts +1 -0
  5. package/apigee/index.js +5 -0
  6. package/apigee/index.js.map +1 -1
  7. package/certificateauthority/caPool.d.ts +91 -0
  8. package/certificateauthority/caPool.js +91 -0
  9. package/certificateauthority/caPool.js.map +1 -1
  10. package/certificateauthority/getAuthority.d.ts +97 -0
  11. package/certificateauthority/getAuthority.js +43 -0
  12. package/certificateauthority/getAuthority.js.map +1 -0
  13. package/certificateauthority/index.d.ts +1 -0
  14. package/certificateauthority/index.js +1 -0
  15. package/certificateauthority/index.js.map +1 -1
  16. package/cloudfunctionsv2/function.d.ts +301 -0
  17. package/cloudfunctionsv2/function.js +186 -0
  18. package/cloudfunctionsv2/function.js.map +1 -0
  19. package/cloudfunctionsv2/index.d.ts +1 -0
  20. package/cloudfunctionsv2/index.js +37 -0
  21. package/cloudfunctionsv2/index.js.map +1 -0
  22. package/composer/environment.d.ts +1 -1
  23. package/compute/address.d.ts +3 -3
  24. package/compute/globalForwardingRule.d.ts +153 -0
  25. package/compute/globalForwardingRule.js +153 -0
  26. package/compute/globalForwardingRule.js.map +1 -1
  27. package/compute/index.d.ts +3 -0
  28. package/compute/index.js +15 -0
  29. package/compute/index.js.map +1 -1
  30. package/compute/regionBackendServiceIamBinding.d.ts +57 -0
  31. package/compute/regionBackendServiceIamBinding.js +67 -0
  32. package/compute/regionBackendServiceIamBinding.js.map +1 -0
  33. package/compute/regionBackendServiceIamMember.d.ts +57 -0
  34. package/compute/regionBackendServiceIamMember.js +67 -0
  35. package/compute/regionBackendServiceIamMember.js.map +1 -0
  36. package/compute/regionBackendServiceIamPolicy.d.ts +50 -0
  37. package/compute/regionBackendServiceIamPolicy.js +60 -0
  38. package/compute/regionBackendServiceIamPolicy.js.map +1 -0
  39. package/config/vars.d.ts +1 -0
  40. package/config/vars.js +6 -0
  41. package/config/vars.js.map +1 -1
  42. package/container/cluster.d.ts +1 -1
  43. package/dns/getRecordSet.d.ts +83 -0
  44. package/dns/getRecordSet.js +48 -0
  45. package/dns/getRecordSet.js.map +1 -0
  46. package/dns/index.d.ts +1 -0
  47. package/dns/index.js +1 -0
  48. package/dns/index.js.map +1 -1
  49. package/index.d.ts +2 -1
  50. package/index.js +4 -2
  51. package/index.js.map +1 -1
  52. package/package.json +2 -2
  53. package/package.json.dev +2 -2
  54. package/provider.d.ts +2 -0
  55. package/provider.js +1 -0
  56. package/provider.js.map +1 -1
  57. package/serviceaccount/iambinding.d.ts +12 -12
  58. package/serviceaccount/iambinding.js +12 -12
  59. package/serviceaccount/iammember.d.ts +12 -12
  60. package/serviceaccount/iammember.js +12 -12
  61. package/serviceaccount/iampolicy.d.ts +12 -12
  62. package/serviceaccount/iampolicy.js +12 -12
  63. package/sql/database.d.ts +1 -0
  64. package/sql/database.js +1 -0
  65. package/sql/database.js.map +1 -1
  66. package/sql/user.d.ts +6 -3
  67. package/sql/user.js.map +1 -1
  68. package/storage/getTransferProjectServieAccount.d.ts +5 -1
  69. package/storage/getTransferProjectServieAccount.js.map +1 -1
  70. package/types/input.d.ts +236 -3
  71. package/types/output.d.ts +327 -4
@@ -0,0 +1,43 @@
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.getAuthorityOutput = exports.getAuthority = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Get info about a Google Cloud IAP Client.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as gcp from "@pulumi/gcp";
16
+ *
17
+ * const default = gcp.certificateauthority.getAuthority({
18
+ * location: "us-west1",
19
+ * pool: "pool-name",
20
+ * certificateAuthorityId: "ca-id",
21
+ * });
22
+ * export const csr = _default.then(_default => _default.pemCsr);
23
+ * ```
24
+ */
25
+ function getAuthority(args, opts) {
26
+ args = args || {};
27
+ if (!opts) {
28
+ opts = {};
29
+ }
30
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
31
+ return pulumi.runtime.invoke("gcp:certificateauthority/getAuthority:getAuthority", {
32
+ "certificateAuthorityId": args.certificateAuthorityId,
33
+ "location": args.location,
34
+ "pool": args.pool,
35
+ "project": args.project,
36
+ }, opts);
37
+ }
38
+ exports.getAuthority = getAuthority;
39
+ function getAuthorityOutput(args, opts) {
40
+ return pulumi.output(args).apply(a => getAuthority(a, opts));
41
+ }
42
+ exports.getAuthorityOutput = getAuthorityOutput;
43
+ //# sourceMappingURL=getAuthority.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAuthority.js","sourceRoot":"","sources":["../../certificateauthority/getAuthority.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oDAAoD,EAAE;QAC/E,wBAAwB,EAAE,IAAI,CAAC,sBAAsB;QACrD,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAbD,oCAaC;AAwDD,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChE,CAAC;AAFD,gDAEC"}
@@ -5,3 +5,4 @@ export * from "./caPoolIamMember";
5
5
  export * from "./caPoolIamPolicy";
6
6
  export * from "./certificate";
7
7
  export * from "./certificateTemplate";
8
+ export * from "./getAuthority";
@@ -26,6 +26,7 @@ __exportStar(require("./caPoolIamMember"), exports);
26
26
  __exportStar(require("./caPoolIamPolicy"), exports);
27
27
  __exportStar(require("./certificate"), exports);
28
28
  __exportStar(require("./certificateTemplate"), exports);
29
+ __exportStar(require("./getAuthority"), exports);
29
30
  // Import resources to register:
30
31
  const authority_1 = require("./authority");
31
32
  const caPool_1 = require("./caPool");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../certificateauthority/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,8CAA4B;AAC5B,2CAAyB;AACzB,qDAAmC;AACnC,oDAAkC;AAClC,oDAAkC;AAClC,gDAA8B;AAC9B,wDAAsC;AAEtC,gCAAgC;AAChC,2CAAwC;AACxC,qCAAkC;AAClC,yDAAsD;AACtD,uDAAoD;AACpD,uDAAoD;AACpD,+CAA4C;AAC5C,+DAA4D;AAE5D,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,8CAA8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KAAK,0DAA0D;gBAC3D,OAAO,IAAI,iCAAe,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC7D,KAAK,kDAAkD;gBACnD,OAAO,IAAI,yBAAW,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACzD,KAAK,kEAAkE;gBACnE,OAAO,IAAI,yCAAmB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACjE;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAA;AACvF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,6BAA6B,EAAE,OAAO,CAAC,CAAA;AACpF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,uCAAuC,EAAE,OAAO,CAAC,CAAA;AAC9F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,sCAAsC,EAAE,OAAO,CAAC,CAAA;AAC7F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,sCAAsC,EAAE,OAAO,CAAC,CAAA;AAC7F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,kCAAkC,EAAE,OAAO,CAAC,CAAA;AACzF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,0CAA0C,EAAE,OAAO,CAAC,CAAA"}
@@ -0,0 +1,301 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "../types";
3
+ /**
4
+ * ## Example Usage
5
+ * ### Cloudfunctions2 Basic
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as gcp from "@pulumi/gcp";
10
+ *
11
+ * const bucket = new gcp.storage.Bucket("bucket", {
12
+ * location: "US",
13
+ * uniformBucketLevelAccess: true,
14
+ * }, {
15
+ * provider: google_beta,
16
+ * });
17
+ * const object = new gcp.storage.BucketObject("object", {
18
+ * bucket: bucket.name,
19
+ * source: new pulumi.asset.FileAsset("path/to/index.zip"),
20
+ * }, {
21
+ * provider: google_beta,
22
+ * });
23
+ * const terraform_test2 = new gcp.cloudfunctionsv2.Function("terraform-test2", {
24
+ * location: "us-central1",
25
+ * description: "a new function",
26
+ * buildConfig: {
27
+ * runtime: "nodejs12",
28
+ * entryPoint: "helloHttp",
29
+ * source: {
30
+ * storageSource: {
31
+ * bucket: bucket.name,
32
+ * object: object.name,
33
+ * },
34
+ * },
35
+ * },
36
+ * serviceConfig: {
37
+ * maxInstanceCount: 1,
38
+ * availableMemory: "256M",
39
+ * timeoutSeconds: 60,
40
+ * },
41
+ * }, {
42
+ * provider: google_beta,
43
+ * });
44
+ * ```
45
+ * ### Cloudfunctions2 Full
46
+ *
47
+ * ```typescript
48
+ * import * as pulumi from "@pulumi/pulumi";
49
+ * import * as gcp from "@pulumi/gcp";
50
+ *
51
+ * const sub = new gcp.pubsub.Topic("sub", {}, {
52
+ * provider: google_beta,
53
+ * });
54
+ * const bucket = new gcp.storage.Bucket("bucket", {
55
+ * location: "US",
56
+ * uniformBucketLevelAccess: true,
57
+ * }, {
58
+ * provider: google_beta,
59
+ * });
60
+ * const object = new gcp.storage.BucketObject("object", {
61
+ * bucket: bucket.name,
62
+ * source: new pulumi.asset.FileAsset("path/to/index.zip"),
63
+ * }, {
64
+ * provider: google_beta,
65
+ * });
66
+ * const terraform_test = new gcp.cloudfunctionsv2.Function("terraform-test", {
67
+ * location: "us-central1",
68
+ * description: "a new function",
69
+ * buildConfig: {
70
+ * runtime: "nodejs12",
71
+ * entryPoint: "helloHttp",
72
+ * environmentVariables: {
73
+ * BUILD_CONFIG_TEST: "build_test",
74
+ * },
75
+ * source: {
76
+ * storageSource: {
77
+ * bucket: bucket.name,
78
+ * object: object.name,
79
+ * },
80
+ * },
81
+ * },
82
+ * serviceConfig: {
83
+ * maxInstanceCount: 3,
84
+ * minInstanceCount: 1,
85
+ * availableMemory: "256M",
86
+ * timeoutSeconds: 60,
87
+ * environmentVariables: {
88
+ * SERVICE_CONFIG_TEST: "config_test",
89
+ * },
90
+ * ingressSettings: "ALLOW_INTERNAL_ONLY",
91
+ * allTrafficOnLatestRevision: true,
92
+ * },
93
+ * eventTrigger: {
94
+ * triggerRegion: "us-central1",
95
+ * eventType: "google.cloud.pubsub.topic.v1.messagePublished",
96
+ * pubsubTopic: sub.id,
97
+ * retryPolicy: "RETRY_POLICY_RETRY",
98
+ * },
99
+ * }, {
100
+ * provider: google_beta,
101
+ * });
102
+ * ```
103
+ *
104
+ * ## Import
105
+ *
106
+ * function can be imported using any of these accepted formats
107
+ *
108
+ * ```sh
109
+ * $ pulumi import gcp:cloudfunctionsv2/function:Function default projects/{{project}}/locations/{{location}}/functions/{{name}}
110
+ * ```
111
+ *
112
+ * ```sh
113
+ * $ pulumi import gcp:cloudfunctionsv2/function:Function default {{project}}/{{location}}/{{name}}
114
+ * ```
115
+ *
116
+ * ```sh
117
+ * $ pulumi import gcp:cloudfunctionsv2/function:Function default {{location}}/{{name}}
118
+ * ```
119
+ */
120
+ export declare class Function extends pulumi.CustomResource {
121
+ /**
122
+ * Get an existing Function resource's state with the given name, ID, and optional extra
123
+ * properties used to qualify the lookup.
124
+ *
125
+ * @param name The _unique_ name of the resulting resource.
126
+ * @param id The _unique_ provider ID of the resource to lookup.
127
+ * @param state Any extra arguments used during the lookup.
128
+ * @param opts Optional settings to control the behavior of the CustomResource.
129
+ */
130
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FunctionState, opts?: pulumi.CustomResourceOptions): Function;
131
+ /**
132
+ * Returns true if the given object is an instance of Function. This is designed to work even
133
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
134
+ */
135
+ static isInstance(obj: any): obj is Function;
136
+ /**
137
+ * Describes the Build step of the function that builds a container
138
+ * from the given source.
139
+ * Structure is documented below.
140
+ */
141
+ readonly buildConfig: pulumi.Output<outputs.cloudfunctionsv2.FunctionBuildConfig | undefined>;
142
+ /**
143
+ * User-provided description of a function.
144
+ */
145
+ readonly description: pulumi.Output<string | undefined>;
146
+ /**
147
+ * The environment the function is hosted on.
148
+ */
149
+ readonly environment: pulumi.Output<string>;
150
+ /**
151
+ * An Eventarc trigger managed by Google Cloud Functions that fires events in
152
+ * response to a condition in another service.
153
+ * Structure is documented below.
154
+ */
155
+ readonly eventTrigger: pulumi.Output<outputs.cloudfunctionsv2.FunctionEventTrigger | undefined>;
156
+ /**
157
+ * A set of key/value label pairs associated with this Cloud Function.
158
+ */
159
+ readonly labels: pulumi.Output<{
160
+ [key: string]: string;
161
+ } | undefined>;
162
+ /**
163
+ * The location of this cloud function.
164
+ */
165
+ readonly location: pulumi.Output<string | undefined>;
166
+ /**
167
+ * A user-defined name of the function. Function names must
168
+ * be unique globally and match pattern `projects/*&#47;locations/*&#47;functions/*`.
169
+ */
170
+ readonly name: pulumi.Output<string>;
171
+ /**
172
+ * The ID of the project in which the resource belongs.
173
+ * If it is not provided, the provider project is used.
174
+ */
175
+ readonly project: pulumi.Output<string>;
176
+ /**
177
+ * Describes the Service being deployed.
178
+ * Structure is documented below.
179
+ */
180
+ readonly serviceConfig: pulumi.Output<outputs.cloudfunctionsv2.FunctionServiceConfig | undefined>;
181
+ /**
182
+ * Describes the current state of the function.
183
+ */
184
+ readonly state: pulumi.Output<string>;
185
+ /**
186
+ * The last update timestamp of a Cloud Function.
187
+ */
188
+ readonly updateTime: pulumi.Output<string>;
189
+ /**
190
+ * Create a Function resource with the given unique name, arguments, and options.
191
+ *
192
+ * @param name The _unique_ name of the resource.
193
+ * @param args The arguments to use to populate this resource's properties.
194
+ * @param opts A bag of options that control this resource's behavior.
195
+ */
196
+ constructor(name: string, args?: FunctionArgs, opts?: pulumi.CustomResourceOptions);
197
+ }
198
+ /**
199
+ * Input properties used for looking up and filtering Function resources.
200
+ */
201
+ export interface FunctionState {
202
+ /**
203
+ * Describes the Build step of the function that builds a container
204
+ * from the given source.
205
+ * Structure is documented below.
206
+ */
207
+ buildConfig?: pulumi.Input<inputs.cloudfunctionsv2.FunctionBuildConfig>;
208
+ /**
209
+ * User-provided description of a function.
210
+ */
211
+ description?: pulumi.Input<string>;
212
+ /**
213
+ * The environment the function is hosted on.
214
+ */
215
+ environment?: pulumi.Input<string>;
216
+ /**
217
+ * An Eventarc trigger managed by Google Cloud Functions that fires events in
218
+ * response to a condition in another service.
219
+ * Structure is documented below.
220
+ */
221
+ eventTrigger?: pulumi.Input<inputs.cloudfunctionsv2.FunctionEventTrigger>;
222
+ /**
223
+ * A set of key/value label pairs associated with this Cloud Function.
224
+ */
225
+ labels?: pulumi.Input<{
226
+ [key: string]: pulumi.Input<string>;
227
+ }>;
228
+ /**
229
+ * The location of this cloud function.
230
+ */
231
+ location?: pulumi.Input<string>;
232
+ /**
233
+ * A user-defined name of the function. Function names must
234
+ * be unique globally and match pattern `projects/*&#47;locations/*&#47;functions/*`.
235
+ */
236
+ name?: pulumi.Input<string>;
237
+ /**
238
+ * The ID of the project in which the resource belongs.
239
+ * If it is not provided, the provider project is used.
240
+ */
241
+ project?: pulumi.Input<string>;
242
+ /**
243
+ * Describes the Service being deployed.
244
+ * Structure is documented below.
245
+ */
246
+ serviceConfig?: pulumi.Input<inputs.cloudfunctionsv2.FunctionServiceConfig>;
247
+ /**
248
+ * Describes the current state of the function.
249
+ */
250
+ state?: pulumi.Input<string>;
251
+ /**
252
+ * The last update timestamp of a Cloud Function.
253
+ */
254
+ updateTime?: pulumi.Input<string>;
255
+ }
256
+ /**
257
+ * The set of arguments for constructing a Function resource.
258
+ */
259
+ export interface FunctionArgs {
260
+ /**
261
+ * Describes the Build step of the function that builds a container
262
+ * from the given source.
263
+ * Structure is documented below.
264
+ */
265
+ buildConfig?: pulumi.Input<inputs.cloudfunctionsv2.FunctionBuildConfig>;
266
+ /**
267
+ * User-provided description of a function.
268
+ */
269
+ description?: pulumi.Input<string>;
270
+ /**
271
+ * An Eventarc trigger managed by Google Cloud Functions that fires events in
272
+ * response to a condition in another service.
273
+ * Structure is documented below.
274
+ */
275
+ eventTrigger?: pulumi.Input<inputs.cloudfunctionsv2.FunctionEventTrigger>;
276
+ /**
277
+ * A set of key/value label pairs associated with this Cloud Function.
278
+ */
279
+ labels?: pulumi.Input<{
280
+ [key: string]: pulumi.Input<string>;
281
+ }>;
282
+ /**
283
+ * The location of this cloud function.
284
+ */
285
+ location?: pulumi.Input<string>;
286
+ /**
287
+ * A user-defined name of the function. Function names must
288
+ * be unique globally and match pattern `projects/*&#47;locations/*&#47;functions/*`.
289
+ */
290
+ name?: pulumi.Input<string>;
291
+ /**
292
+ * The ID of the project in which the resource belongs.
293
+ * If it is not provided, the provider project is used.
294
+ */
295
+ project?: pulumi.Input<string>;
296
+ /**
297
+ * Describes the Service being deployed.
298
+ * Structure is documented below.
299
+ */
300
+ serviceConfig?: pulumi.Input<inputs.cloudfunctionsv2.FunctionServiceConfig>;
301
+ }
@@ -0,0 +1,186 @@
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.Function = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * ## Example Usage
10
+ * ### Cloudfunctions2 Basic
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as gcp from "@pulumi/gcp";
15
+ *
16
+ * const bucket = new gcp.storage.Bucket("bucket", {
17
+ * location: "US",
18
+ * uniformBucketLevelAccess: true,
19
+ * }, {
20
+ * provider: google_beta,
21
+ * });
22
+ * const object = new gcp.storage.BucketObject("object", {
23
+ * bucket: bucket.name,
24
+ * source: new pulumi.asset.FileAsset("path/to/index.zip"),
25
+ * }, {
26
+ * provider: google_beta,
27
+ * });
28
+ * const terraform_test2 = new gcp.cloudfunctionsv2.Function("terraform-test2", {
29
+ * location: "us-central1",
30
+ * description: "a new function",
31
+ * buildConfig: {
32
+ * runtime: "nodejs12",
33
+ * entryPoint: "helloHttp",
34
+ * source: {
35
+ * storageSource: {
36
+ * bucket: bucket.name,
37
+ * object: object.name,
38
+ * },
39
+ * },
40
+ * },
41
+ * serviceConfig: {
42
+ * maxInstanceCount: 1,
43
+ * availableMemory: "256M",
44
+ * timeoutSeconds: 60,
45
+ * },
46
+ * }, {
47
+ * provider: google_beta,
48
+ * });
49
+ * ```
50
+ * ### Cloudfunctions2 Full
51
+ *
52
+ * ```typescript
53
+ * import * as pulumi from "@pulumi/pulumi";
54
+ * import * as gcp from "@pulumi/gcp";
55
+ *
56
+ * const sub = new gcp.pubsub.Topic("sub", {}, {
57
+ * provider: google_beta,
58
+ * });
59
+ * const bucket = new gcp.storage.Bucket("bucket", {
60
+ * location: "US",
61
+ * uniformBucketLevelAccess: true,
62
+ * }, {
63
+ * provider: google_beta,
64
+ * });
65
+ * const object = new gcp.storage.BucketObject("object", {
66
+ * bucket: bucket.name,
67
+ * source: new pulumi.asset.FileAsset("path/to/index.zip"),
68
+ * }, {
69
+ * provider: google_beta,
70
+ * });
71
+ * const terraform_test = new gcp.cloudfunctionsv2.Function("terraform-test", {
72
+ * location: "us-central1",
73
+ * description: "a new function",
74
+ * buildConfig: {
75
+ * runtime: "nodejs12",
76
+ * entryPoint: "helloHttp",
77
+ * environmentVariables: {
78
+ * BUILD_CONFIG_TEST: "build_test",
79
+ * },
80
+ * source: {
81
+ * storageSource: {
82
+ * bucket: bucket.name,
83
+ * object: object.name,
84
+ * },
85
+ * },
86
+ * },
87
+ * serviceConfig: {
88
+ * maxInstanceCount: 3,
89
+ * minInstanceCount: 1,
90
+ * availableMemory: "256M",
91
+ * timeoutSeconds: 60,
92
+ * environmentVariables: {
93
+ * SERVICE_CONFIG_TEST: "config_test",
94
+ * },
95
+ * ingressSettings: "ALLOW_INTERNAL_ONLY",
96
+ * allTrafficOnLatestRevision: true,
97
+ * },
98
+ * eventTrigger: {
99
+ * triggerRegion: "us-central1",
100
+ * eventType: "google.cloud.pubsub.topic.v1.messagePublished",
101
+ * pubsubTopic: sub.id,
102
+ * retryPolicy: "RETRY_POLICY_RETRY",
103
+ * },
104
+ * }, {
105
+ * provider: google_beta,
106
+ * });
107
+ * ```
108
+ *
109
+ * ## Import
110
+ *
111
+ * function can be imported using any of these accepted formats
112
+ *
113
+ * ```sh
114
+ * $ pulumi import gcp:cloudfunctionsv2/function:Function default projects/{{project}}/locations/{{location}}/functions/{{name}}
115
+ * ```
116
+ *
117
+ * ```sh
118
+ * $ pulumi import gcp:cloudfunctionsv2/function:Function default {{project}}/{{location}}/{{name}}
119
+ * ```
120
+ *
121
+ * ```sh
122
+ * $ pulumi import gcp:cloudfunctionsv2/function:Function default {{location}}/{{name}}
123
+ * ```
124
+ */
125
+ class Function extends pulumi.CustomResource {
126
+ constructor(name, argsOrState, opts) {
127
+ let resourceInputs = {};
128
+ opts = opts || {};
129
+ if (opts.id) {
130
+ const state = argsOrState;
131
+ resourceInputs["buildConfig"] = state ? state.buildConfig : undefined;
132
+ resourceInputs["description"] = state ? state.description : undefined;
133
+ resourceInputs["environment"] = state ? state.environment : undefined;
134
+ resourceInputs["eventTrigger"] = state ? state.eventTrigger : undefined;
135
+ resourceInputs["labels"] = state ? state.labels : undefined;
136
+ resourceInputs["location"] = state ? state.location : undefined;
137
+ resourceInputs["name"] = state ? state.name : undefined;
138
+ resourceInputs["project"] = state ? state.project : undefined;
139
+ resourceInputs["serviceConfig"] = state ? state.serviceConfig : undefined;
140
+ resourceInputs["state"] = state ? state.state : undefined;
141
+ resourceInputs["updateTime"] = state ? state.updateTime : undefined;
142
+ }
143
+ else {
144
+ const args = argsOrState;
145
+ resourceInputs["buildConfig"] = args ? args.buildConfig : undefined;
146
+ resourceInputs["description"] = args ? args.description : undefined;
147
+ resourceInputs["eventTrigger"] = args ? args.eventTrigger : undefined;
148
+ resourceInputs["labels"] = args ? args.labels : undefined;
149
+ resourceInputs["location"] = args ? args.location : undefined;
150
+ resourceInputs["name"] = args ? args.name : undefined;
151
+ resourceInputs["project"] = args ? args.project : undefined;
152
+ resourceInputs["serviceConfig"] = args ? args.serviceConfig : undefined;
153
+ resourceInputs["environment"] = undefined /*out*/;
154
+ resourceInputs["state"] = undefined /*out*/;
155
+ resourceInputs["updateTime"] = undefined /*out*/;
156
+ }
157
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
158
+ super(Function.__pulumiType, name, resourceInputs, opts);
159
+ }
160
+ /**
161
+ * Get an existing Function resource's state with the given name, ID, and optional extra
162
+ * properties used to qualify the lookup.
163
+ *
164
+ * @param name The _unique_ name of the resulting resource.
165
+ * @param id The _unique_ provider ID of the resource to lookup.
166
+ * @param state Any extra arguments used during the lookup.
167
+ * @param opts Optional settings to control the behavior of the CustomResource.
168
+ */
169
+ static get(name, id, state, opts) {
170
+ return new Function(name, state, Object.assign(Object.assign({}, opts), { id: id }));
171
+ }
172
+ /**
173
+ * Returns true if the given object is an instance of Function. This is designed to work even
174
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
175
+ */
176
+ static isInstance(obj) {
177
+ if (obj === undefined || obj === null) {
178
+ return false;
179
+ }
180
+ return obj['__pulumiType'] === Function.__pulumiType;
181
+ }
182
+ }
183
+ exports.Function = Function;
184
+ /** @internal */
185
+ Function.__pulumiType = 'gcp:cloudfunctionsv2/function:Function';
186
+ //# sourceMappingURL=function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function.js","sourceRoot":"","sources":["../../cloudfunctionsv2/function.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC;YACxE,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAvHD;;;;;;;;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;;AA1BL,4BAyHC;AA3GG,gBAAgB;AACO,qBAAY,GAAG,wCAAwC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./function";
@@ -0,0 +1,37 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ const pulumi = require("@pulumi/pulumi");
20
+ const utilities = require("../utilities");
21
+ // Export members:
22
+ __exportStar(require("./function"), exports);
23
+ // Import resources to register:
24
+ const function_1 = require("./function");
25
+ const _module = {
26
+ version: utilities.getVersion(),
27
+ construct: (name, type, urn) => {
28
+ switch (type) {
29
+ case "gcp:cloudfunctionsv2/function:Function":
30
+ return new function_1.Function(name, undefined, { urn });
31
+ default:
32
+ throw new Error(`unknown resource type ${type}`);
33
+ }
34
+ },
35
+ };
36
+ pulumi.runtime.registerResourceModule("gcp", "cloudfunctionsv2/function", _module);
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../cloudfunctionsv2/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,6CAA2B;AAE3B,gCAAgC;AAChC,yCAAsC;AAEtC,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,wCAAwC;gBACzC,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,EAAE,OAAO,CAAC,CAAA"}
@@ -58,7 +58,7 @@ export declare class Environment extends pulumi.CustomResource {
58
58
  /**
59
59
  * The location or Compute Engine region for the environment.
60
60
  */
61
- readonly region: pulumi.Output<string | undefined>;
61
+ readonly region: pulumi.Output<string>;
62
62
  /**
63
63
  * Create a Environment resource with the given unique name, arguments, and options.
64
64
  *
@@ -143,7 +143,7 @@ export declare class Address extends pulumi.CustomResource {
143
143
  * The static external IP address represented by this resource. Only
144
144
  * IPv4 is supported. An address may only be specified for INTERNAL
145
145
  * address types. The IP address must be inside the specified subnetwork,
146
- * if any.
146
+ * if any. Set by the API if undefined.
147
147
  */
148
148
  readonly address: pulumi.Output<string>;
149
149
  /**
@@ -253,7 +253,7 @@ export interface AddressState {
253
253
  * The static external IP address represented by this resource. Only
254
254
  * IPv4 is supported. An address may only be specified for INTERNAL
255
255
  * address types. The IP address must be inside the specified subnetwork,
256
- * if any.
256
+ * if any. Set by the API if undefined.
257
257
  */
258
258
  address?: pulumi.Input<string>;
259
259
  /**
@@ -355,7 +355,7 @@ export interface AddressArgs {
355
355
  * The static external IP address represented by this resource. Only
356
356
  * IPv4 is supported. An address may only be specified for INTERNAL
357
357
  * address types. The IP address must be inside the specified subnetwork,
358
- * if any.
358
+ * if any. Set by the API if undefined.
359
359
  */
360
360
  address?: pulumi.Input<string>;
361
361
  /**