@pulumi/gcp 6.24.0 → 6.25.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/accesscontextmanager/accessLevelCondition.d.ts +53 -0
- package/accesscontextmanager/accessLevelCondition.js +53 -0
- package/accesscontextmanager/accessLevelCondition.js.map +1 -1
- package/apigee/envGroup.d.ts +31 -0
- package/apigee/envGroup.js +31 -0
- package/apigee/envGroup.js.map +1 -1
- package/apigee/envGroupAttachment.d.ts +64 -0
- package/apigee/envGroupAttachment.js +64 -0
- package/apigee/envGroupAttachment.js.map +1 -1
- package/apigee/environment.d.ts +32 -0
- package/apigee/environment.js +32 -0
- package/apigee/environment.js.map +1 -1
- package/apigee/instance.d.ts +148 -0
- package/apigee/instance.js +148 -0
- package/apigee/instance.js.map +1 -1
- package/apigee/instanceAttachment.d.ts +64 -0
- package/apigee/instanceAttachment.js +64 -0
- package/apigee/instanceAttachment.js.map +1 -1
- package/bigquery/connection.d.ts +34 -21
- package/bigquery/connection.js +18 -21
- package/bigquery/connection.js.map +1 -1
- package/bigquery/reservationAssignment.d.ts +3 -4
- package/bigquery/reservationAssignment.js +3 -4
- package/bigquery/reservationAssignment.js.map +1 -1
- package/bigquery/routine.d.ts +56 -0
- package/bigquery/routine.js +56 -0
- package/bigquery/routine.js.map +1 -1
- package/certificateauthority/authority.d.ts +12 -0
- package/certificateauthority/authority.js +2 -0
- package/certificateauthority/authority.js.map +1 -1
- package/certificateauthority/getAuthority.d.ts +1 -0
- package/certificateauthority/getAuthority.js.map +1 -1
- package/certificatemanager/certificate.d.ts +230 -0
- package/certificatemanager/certificate.js +116 -0
- package/certificatemanager/certificate.js.map +1 -0
- package/certificatemanager/dnsAuthorization.d.ts +175 -0
- package/certificatemanager/dnsAuthorization.js +109 -0
- package/certificatemanager/dnsAuthorization.js.map +1 -0
- package/certificatemanager/index.d.ts +2 -0
- package/certificatemanager/index.js +42 -0
- package/certificatemanager/index.js.map +1 -0
- package/clouddeploy/deliveryPipeline.d.ts +231 -0
- package/clouddeploy/deliveryPipeline.js +130 -0
- package/clouddeploy/deliveryPipeline.js.map +1 -0
- package/clouddeploy/index.d.ts +2 -0
- package/clouddeploy/index.js +42 -0
- package/clouddeploy/index.js.map +1 -0
- package/clouddeploy/target.d.ts +256 -0
- package/clouddeploy/target.js +125 -0
- package/clouddeploy/target.js.map +1 -0
- package/cloudfunctions/function.d.ts +17 -5
- package/cloudfunctions/function.js +4 -2
- package/cloudfunctions/function.js.map +1 -1
- package/cloudfunctions/getFunction.d.ts +1 -0
- package/cloudfunctions/getFunction.js.map +1 -1
- package/compute/globalAddress.d.ts +18 -0
- package/compute/globalAddress.js +18 -0
- package/compute/globalAddress.js.map +1 -1
- package/compute/organizationSecurityPolicy.d.ts +13 -0
- package/compute/organizationSecurityPolicy.js +13 -0
- package/compute/organizationSecurityPolicy.js.map +1 -1
- package/compute/organizationSecurityPolicyAssociation.d.ts +51 -0
- package/compute/organizationSecurityPolicyAssociation.js +51 -0
- package/compute/organizationSecurityPolicyAssociation.js.map +1 -1
- package/compute/organizationSecurityPolicyRule.d.ts +39 -0
- package/compute/organizationSecurityPolicyRule.js +39 -0
- package/compute/organizationSecurityPolicyRule.js.map +1 -1
- package/compute/perInstanceConfig.d.ts +65 -0
- package/compute/perInstanceConfig.js +65 -0
- package/compute/perInstanceConfig.js.map +1 -1
- package/compute/regionNetworkEndpointGroup.d.ts +30 -3
- package/compute/regionNetworkEndpointGroup.js +14 -0
- package/compute/regionNetworkEndpointGroup.js.map +1 -1
- package/compute/regionPerInstanceConfig.d.ts +70 -0
- package/compute/regionPerInstanceConfig.js +70 -0
- package/compute/regionPerInstanceConfig.js.map +1 -1
- package/compute/routerNat.d.ts +21 -0
- package/compute/routerNat.js +2 -0
- package/compute/routerNat.js.map +1 -1
- package/compute/serviceAttachment.d.ts +23 -0
- package/compute/serviceAttachment.js +4 -0
- package/compute/serviceAttachment.js.map +1 -1
- package/config/vars.d.ts +3 -1
- package/config/vars.js +14 -2
- package/config/vars.js.map +1 -1
- package/diagflow/intent.d.ts +46 -0
- package/diagflow/intent.js +46 -0
- package/diagflow/intent.js.map +1 -1
- package/firebase/project.d.ts +16 -0
- package/firebase/project.js +16 -0
- package/firebase/project.js.map +1 -1
- package/firebase/projectLocation.d.ts +22 -0
- package/firebase/projectLocation.js +22 -0
- package/firebase/projectLocation.js.map +1 -1
- package/firebase/webApp.d.ts +43 -0
- package/firebase/webApp.js +43 -0
- package/firebase/webApp.js.map +1 -1
- package/firestore/document.d.ts +2 -2
- package/firestore/document.js +2 -2
- package/iap/brand.d.ts +20 -0
- package/iap/brand.js +20 -0
- package/iap/brand.js.map +1 -1
- package/iap/client.d.ts +24 -0
- package/iap/client.js +24 -0
- package/iap/client.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/monitoring/uptimeCheckConfig.d.ts +16 -0
- package/monitoring/uptimeCheckConfig.js +3 -0
- package/monitoring/uptimeCheckConfig.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/provider.d.ts +6 -2
- package/provider.js +3 -1
- package/provider.js.map +1 -1
- package/tpu/node.d.ts +36 -0
- package/tpu/node.js +36 -0
- package/tpu/node.js.map +1 -1
- package/types/input.d.ts +160 -4
- package/types/output.d.ts +189 -5
- package/vpcaccess/connector.d.ts +2 -1
- package/vpcaccess/connector.js +2 -1
- package/vpcaccess/connector.js.map +1 -1
|
@@ -0,0 +1,130 @@
|
|
|
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.DeliveryPipeline = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The Clouddeploy DeliveryPipeline resource
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
* ### Delivery_pipeline
|
|
13
|
+
* tests creating and updating a delivery pipeline
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as gcp from "@pulumi/gcp";
|
|
17
|
+
*
|
|
18
|
+
* const primary = new gcp.clouddeploy.DeliveryPipeline("primary", {
|
|
19
|
+
* annotations: {
|
|
20
|
+
* my_first_annotation: "example-annotation-1",
|
|
21
|
+
* my_second_annotation: "example-annotation-2",
|
|
22
|
+
* },
|
|
23
|
+
* description: "basic description",
|
|
24
|
+
* labels: {
|
|
25
|
+
* my_first_label: "example-label-1",
|
|
26
|
+
* my_second_label: "example-label-2",
|
|
27
|
+
* },
|
|
28
|
+
* location: "us-west1",
|
|
29
|
+
* project: "my-project-name",
|
|
30
|
+
* serialPipeline: {
|
|
31
|
+
* stages: [
|
|
32
|
+
* {
|
|
33
|
+
* profiles: [
|
|
34
|
+
* "example-profile-one",
|
|
35
|
+
* "example-profile-two",
|
|
36
|
+
* ],
|
|
37
|
+
* targetId: "example-target-one",
|
|
38
|
+
* },
|
|
39
|
+
* {
|
|
40
|
+
* profiles: [],
|
|
41
|
+
* targetId: "example-target-two",
|
|
42
|
+
* },
|
|
43
|
+
* ],
|
|
44
|
+
* },
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ## Import
|
|
49
|
+
*
|
|
50
|
+
* DeliveryPipeline can be imported using any of these accepted formats
|
|
51
|
+
*
|
|
52
|
+
* ```sh
|
|
53
|
+
* $ pulumi import gcp:clouddeploy/deliveryPipeline:DeliveryPipeline default projects/{{project}}/locations/{{location}}/deliveryPipelines/{{name}}
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* ```sh
|
|
57
|
+
* $ pulumi import gcp:clouddeploy/deliveryPipeline:DeliveryPipeline default {{project}}/{{location}}/{{name}}
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* ```sh
|
|
61
|
+
* $ pulumi import gcp:clouddeploy/deliveryPipeline:DeliveryPipeline default {{location}}/{{name}}
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
class DeliveryPipeline extends pulumi.CustomResource {
|
|
65
|
+
constructor(name, argsOrState, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (opts.id) {
|
|
69
|
+
const state = argsOrState;
|
|
70
|
+
resourceInputs["annotations"] = state ? state.annotations : undefined;
|
|
71
|
+
resourceInputs["conditions"] = state ? state.conditions : undefined;
|
|
72
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
73
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
74
|
+
resourceInputs["etag"] = state ? state.etag : undefined;
|
|
75
|
+
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
76
|
+
resourceInputs["location"] = state ? state.location : undefined;
|
|
77
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
78
|
+
resourceInputs["project"] = state ? state.project : undefined;
|
|
79
|
+
resourceInputs["serialPipeline"] = state ? state.serialPipeline : undefined;
|
|
80
|
+
resourceInputs["uid"] = state ? state.uid : undefined;
|
|
81
|
+
resourceInputs["updateTime"] = state ? state.updateTime : undefined;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
const args = argsOrState;
|
|
85
|
+
if ((!args || args.location === undefined) && !opts.urn) {
|
|
86
|
+
throw new Error("Missing required property 'location'");
|
|
87
|
+
}
|
|
88
|
+
resourceInputs["annotations"] = args ? args.annotations : undefined;
|
|
89
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
90
|
+
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
91
|
+
resourceInputs["location"] = args ? args.location : undefined;
|
|
92
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
93
|
+
resourceInputs["project"] = args ? args.project : undefined;
|
|
94
|
+
resourceInputs["serialPipeline"] = args ? args.serialPipeline : undefined;
|
|
95
|
+
resourceInputs["conditions"] = undefined /*out*/;
|
|
96
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
97
|
+
resourceInputs["etag"] = undefined /*out*/;
|
|
98
|
+
resourceInputs["uid"] = undefined /*out*/;
|
|
99
|
+
resourceInputs["updateTime"] = undefined /*out*/;
|
|
100
|
+
}
|
|
101
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
102
|
+
super(DeliveryPipeline.__pulumiType, name, resourceInputs, opts);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Get an existing DeliveryPipeline resource's state with the given name, ID, and optional extra
|
|
106
|
+
* properties used to qualify the lookup.
|
|
107
|
+
*
|
|
108
|
+
* @param name The _unique_ name of the resulting resource.
|
|
109
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
110
|
+
* @param state Any extra arguments used during the lookup.
|
|
111
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
112
|
+
*/
|
|
113
|
+
static get(name, id, state, opts) {
|
|
114
|
+
return new DeliveryPipeline(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Returns true if the given object is an instance of DeliveryPipeline. This is designed to work even
|
|
118
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
119
|
+
*/
|
|
120
|
+
static isInstance(obj) {
|
|
121
|
+
if (obj === undefined || obj === null) {
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
return obj['__pulumiType'] === DeliveryPipeline.__pulumiType;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.DeliveryPipeline = DeliveryPipeline;
|
|
128
|
+
/** @internal */
|
|
129
|
+
DeliveryPipeline.__pulumiType = 'gcp:clouddeploy/deliveryPipeline:DeliveryPipeline';
|
|
130
|
+
//# sourceMappingURL=deliveryPipeline.js.map
|
|
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YAAY,CAAC;IACjE,CAAC;;AA1BL,4CA4HC;AA9GG,gBAAgB;AACO,6BAAY,GAAG,mDAAmD,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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("./deliveryPipeline"), exports);
|
|
23
|
+
__exportStar(require("./target"), exports);
|
|
24
|
+
// Import resources to register:
|
|
25
|
+
const deliveryPipeline_1 = require("./deliveryPipeline");
|
|
26
|
+
const target_1 = require("./target");
|
|
27
|
+
const _module = {
|
|
28
|
+
version: utilities.getVersion(),
|
|
29
|
+
construct: (name, type, urn) => {
|
|
30
|
+
switch (type) {
|
|
31
|
+
case "gcp:clouddeploy/deliveryPipeline:DeliveryPipeline":
|
|
32
|
+
return new deliveryPipeline_1.DeliveryPipeline(name, undefined, { urn });
|
|
33
|
+
case "gcp:clouddeploy/target:Target":
|
|
34
|
+
return new target_1.Target(name, undefined, { urn });
|
|
35
|
+
default:
|
|
36
|
+
throw new Error(`unknown resource type ${type}`);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
pulumi.runtime.registerResourceModule("gcp", "clouddeploy/deliveryPipeline", _module);
|
|
41
|
+
pulumi.runtime.registerResourceModule("gcp", "clouddeploy/target", _module);
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../clouddeploy/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,qDAAmC;AACnC,2CAAyB;AAEzB,gCAAgC;AAChC,yDAAsD;AACtD,qCAAkC;AAElC,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,mDAAmD;gBACpD,OAAO,IAAI,mCAAgB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC9D,KAAK,+BAA+B;gBAChC,OAAO,IAAI,eAAM,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACpD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,8BAA8B,EAAE,OAAO,CAAC,CAAA;AACrF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* The Clouddeploy Target resource
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
* ### Target
|
|
8
|
+
* tests creating and updating a target
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as gcp from "@pulumi/gcp";
|
|
12
|
+
*
|
|
13
|
+
* const primary = new gcp.clouddeploy.Target("primary", {
|
|
14
|
+
* annotations: {
|
|
15
|
+
* my_first_annotation: "example-annotation-1",
|
|
16
|
+
* my_second_annotation: "example-annotation-2",
|
|
17
|
+
* },
|
|
18
|
+
* description: "basic description",
|
|
19
|
+
* gke: {
|
|
20
|
+
* cluster: "projects/my-project-name/locations/us-west1/clusters/example-cluster-name",
|
|
21
|
+
* },
|
|
22
|
+
* labels: {
|
|
23
|
+
* my_first_label: "example-label-1",
|
|
24
|
+
* my_second_label: "example-label-2",
|
|
25
|
+
* },
|
|
26
|
+
* location: "us-west1",
|
|
27
|
+
* project: "my-project-name",
|
|
28
|
+
* requireApproval: false,
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* ## Import
|
|
33
|
+
*
|
|
34
|
+
* Target can be imported using any of these accepted formats
|
|
35
|
+
*
|
|
36
|
+
* ```sh
|
|
37
|
+
* $ pulumi import gcp:clouddeploy/target:Target default projects/{{project}}/locations/{{location}}/targets/{{name}}
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* ```sh
|
|
41
|
+
* $ pulumi import gcp:clouddeploy/target:Target default {{project}}/{{location}}/{{name}}
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* ```sh
|
|
45
|
+
* $ pulumi import gcp:clouddeploy/target:Target default {{location}}/{{name}}
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare class Target extends pulumi.CustomResource {
|
|
49
|
+
/**
|
|
50
|
+
* Get an existing Target resource's state with the given name, ID, and optional extra
|
|
51
|
+
* properties used to qualify the lookup.
|
|
52
|
+
*
|
|
53
|
+
* @param name The _unique_ name of the resulting resource.
|
|
54
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
55
|
+
* @param state Any extra arguments used during the lookup.
|
|
56
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
57
|
+
*/
|
|
58
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TargetState, opts?: pulumi.CustomResourceOptions): Target;
|
|
59
|
+
/**
|
|
60
|
+
* Returns true if the given object is an instance of Target. This is designed to work even
|
|
61
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
62
|
+
*/
|
|
63
|
+
static isInstance(obj: any): obj is Target;
|
|
64
|
+
/**
|
|
65
|
+
* Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
|
|
66
|
+
*/
|
|
67
|
+
readonly annotations: pulumi.Output<{
|
|
68
|
+
[key: string]: string;
|
|
69
|
+
} | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Information specifying an Anthos Cluster.
|
|
72
|
+
*/
|
|
73
|
+
readonly anthosCluster: pulumi.Output<outputs.clouddeploy.TargetAnthosCluster | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* Output only. Time at which the `Target` was created.
|
|
76
|
+
*/
|
|
77
|
+
readonly createTime: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Optional. Description of the `Target`. Max length is 255 characters.
|
|
80
|
+
*/
|
|
81
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
82
|
+
/**
|
|
83
|
+
* Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and
|
|
84
|
+
* delete requests to ensure the client has an up-to-date value before proceeding.
|
|
85
|
+
*/
|
|
86
|
+
readonly etag: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Configurations for all execution that relates to this `Target`. Each `ExecutionEnvironmentUsage` value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. When no configurations are specified, execution will use the default specified in `DefaultPool`.
|
|
89
|
+
*/
|
|
90
|
+
readonly executionConfigs: pulumi.Output<outputs.clouddeploy.TargetExecutionConfig[] | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* Information specifying a GKE Cluster.
|
|
93
|
+
*/
|
|
94
|
+
readonly gke: pulumi.Output<outputs.clouddeploy.TargetGke | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
|
|
97
|
+
*/
|
|
98
|
+
readonly labels: pulumi.Output<{
|
|
99
|
+
[key: string]: string;
|
|
100
|
+
} | undefined>;
|
|
101
|
+
/**
|
|
102
|
+
* The location for the resource
|
|
103
|
+
*/
|
|
104
|
+
readonly location: pulumi.Output<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Name of the `Target`. Format is [a-z][a-z0-9\-]{0,62}.
|
|
107
|
+
*/
|
|
108
|
+
readonly name: pulumi.Output<string>;
|
|
109
|
+
/**
|
|
110
|
+
* The project for the resource
|
|
111
|
+
*/
|
|
112
|
+
readonly project: pulumi.Output<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Optional. Whether or not the `Target` requires approval.
|
|
115
|
+
*/
|
|
116
|
+
readonly requireApproval: pulumi.Output<boolean | undefined>;
|
|
117
|
+
/**
|
|
118
|
+
* Output only. Resource id of the `Target`.
|
|
119
|
+
*/
|
|
120
|
+
readonly targetId: pulumi.Output<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Output only. Unique identifier of the `Target`.
|
|
123
|
+
*/
|
|
124
|
+
readonly uid: pulumi.Output<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Output only. Most recent time at which the `Target` was updated.
|
|
127
|
+
*/
|
|
128
|
+
readonly updateTime: pulumi.Output<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Create a Target resource with the given unique name, arguments, and options.
|
|
131
|
+
*
|
|
132
|
+
* @param name The _unique_ name of the resource.
|
|
133
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
134
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
135
|
+
*/
|
|
136
|
+
constructor(name: string, args: TargetArgs, opts?: pulumi.CustomResourceOptions);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Input properties used for looking up and filtering Target resources.
|
|
140
|
+
*/
|
|
141
|
+
export interface TargetState {
|
|
142
|
+
/**
|
|
143
|
+
* Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
|
|
144
|
+
*/
|
|
145
|
+
annotations?: pulumi.Input<{
|
|
146
|
+
[key: string]: pulumi.Input<string>;
|
|
147
|
+
}>;
|
|
148
|
+
/**
|
|
149
|
+
* Information specifying an Anthos Cluster.
|
|
150
|
+
*/
|
|
151
|
+
anthosCluster?: pulumi.Input<inputs.clouddeploy.TargetAnthosCluster>;
|
|
152
|
+
/**
|
|
153
|
+
* Output only. Time at which the `Target` was created.
|
|
154
|
+
*/
|
|
155
|
+
createTime?: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* Optional. Description of the `Target`. Max length is 255 characters.
|
|
158
|
+
*/
|
|
159
|
+
description?: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and
|
|
162
|
+
* delete requests to ensure the client has an up-to-date value before proceeding.
|
|
163
|
+
*/
|
|
164
|
+
etag?: pulumi.Input<string>;
|
|
165
|
+
/**
|
|
166
|
+
* Configurations for all execution that relates to this `Target`. Each `ExecutionEnvironmentUsage` value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. When no configurations are specified, execution will use the default specified in `DefaultPool`.
|
|
167
|
+
*/
|
|
168
|
+
executionConfigs?: pulumi.Input<pulumi.Input<inputs.clouddeploy.TargetExecutionConfig>[]>;
|
|
169
|
+
/**
|
|
170
|
+
* Information specifying a GKE Cluster.
|
|
171
|
+
*/
|
|
172
|
+
gke?: pulumi.Input<inputs.clouddeploy.TargetGke>;
|
|
173
|
+
/**
|
|
174
|
+
* Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
|
|
175
|
+
*/
|
|
176
|
+
labels?: pulumi.Input<{
|
|
177
|
+
[key: string]: pulumi.Input<string>;
|
|
178
|
+
}>;
|
|
179
|
+
/**
|
|
180
|
+
* The location for the resource
|
|
181
|
+
*/
|
|
182
|
+
location?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* Name of the `Target`. Format is [a-z][a-z0-9\-]{0,62}.
|
|
185
|
+
*/
|
|
186
|
+
name?: pulumi.Input<string>;
|
|
187
|
+
/**
|
|
188
|
+
* The project for the resource
|
|
189
|
+
*/
|
|
190
|
+
project?: pulumi.Input<string>;
|
|
191
|
+
/**
|
|
192
|
+
* Optional. Whether or not the `Target` requires approval.
|
|
193
|
+
*/
|
|
194
|
+
requireApproval?: pulumi.Input<boolean>;
|
|
195
|
+
/**
|
|
196
|
+
* Output only. Resource id of the `Target`.
|
|
197
|
+
*/
|
|
198
|
+
targetId?: pulumi.Input<string>;
|
|
199
|
+
/**
|
|
200
|
+
* Output only. Unique identifier of the `Target`.
|
|
201
|
+
*/
|
|
202
|
+
uid?: pulumi.Input<string>;
|
|
203
|
+
/**
|
|
204
|
+
* Output only. Most recent time at which the `Target` was updated.
|
|
205
|
+
*/
|
|
206
|
+
updateTime?: pulumi.Input<string>;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* The set of arguments for constructing a Target resource.
|
|
210
|
+
*/
|
|
211
|
+
export interface TargetArgs {
|
|
212
|
+
/**
|
|
213
|
+
* Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
|
|
214
|
+
*/
|
|
215
|
+
annotations?: pulumi.Input<{
|
|
216
|
+
[key: string]: pulumi.Input<string>;
|
|
217
|
+
}>;
|
|
218
|
+
/**
|
|
219
|
+
* Information specifying an Anthos Cluster.
|
|
220
|
+
*/
|
|
221
|
+
anthosCluster?: pulumi.Input<inputs.clouddeploy.TargetAnthosCluster>;
|
|
222
|
+
/**
|
|
223
|
+
* Optional. Description of the `Target`. Max length is 255 characters.
|
|
224
|
+
*/
|
|
225
|
+
description?: pulumi.Input<string>;
|
|
226
|
+
/**
|
|
227
|
+
* Configurations for all execution that relates to this `Target`. Each `ExecutionEnvironmentUsage` value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. When no configurations are specified, execution will use the default specified in `DefaultPool`.
|
|
228
|
+
*/
|
|
229
|
+
executionConfigs?: pulumi.Input<pulumi.Input<inputs.clouddeploy.TargetExecutionConfig>[]>;
|
|
230
|
+
/**
|
|
231
|
+
* Information specifying a GKE Cluster.
|
|
232
|
+
*/
|
|
233
|
+
gke?: pulumi.Input<inputs.clouddeploy.TargetGke>;
|
|
234
|
+
/**
|
|
235
|
+
* Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
|
|
236
|
+
*/
|
|
237
|
+
labels?: pulumi.Input<{
|
|
238
|
+
[key: string]: pulumi.Input<string>;
|
|
239
|
+
}>;
|
|
240
|
+
/**
|
|
241
|
+
* The location for the resource
|
|
242
|
+
*/
|
|
243
|
+
location: pulumi.Input<string>;
|
|
244
|
+
/**
|
|
245
|
+
* Name of the `Target`. Format is [a-z][a-z0-9\-]{0,62}.
|
|
246
|
+
*/
|
|
247
|
+
name?: pulumi.Input<string>;
|
|
248
|
+
/**
|
|
249
|
+
* The project for the resource
|
|
250
|
+
*/
|
|
251
|
+
project?: pulumi.Input<string>;
|
|
252
|
+
/**
|
|
253
|
+
* Optional. Whether or not the `Target` requires approval.
|
|
254
|
+
*/
|
|
255
|
+
requireApproval?: pulumi.Input<boolean>;
|
|
256
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
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.Target = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The Clouddeploy Target resource
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
* ### Target
|
|
13
|
+
* tests creating and updating a target
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as gcp from "@pulumi/gcp";
|
|
17
|
+
*
|
|
18
|
+
* const primary = new gcp.clouddeploy.Target("primary", {
|
|
19
|
+
* annotations: {
|
|
20
|
+
* my_first_annotation: "example-annotation-1",
|
|
21
|
+
* my_second_annotation: "example-annotation-2",
|
|
22
|
+
* },
|
|
23
|
+
* description: "basic description",
|
|
24
|
+
* gke: {
|
|
25
|
+
* cluster: "projects/my-project-name/locations/us-west1/clusters/example-cluster-name",
|
|
26
|
+
* },
|
|
27
|
+
* labels: {
|
|
28
|
+
* my_first_label: "example-label-1",
|
|
29
|
+
* my_second_label: "example-label-2",
|
|
30
|
+
* },
|
|
31
|
+
* location: "us-west1",
|
|
32
|
+
* project: "my-project-name",
|
|
33
|
+
* requireApproval: false,
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* ## Import
|
|
38
|
+
*
|
|
39
|
+
* Target can be imported using any of these accepted formats
|
|
40
|
+
*
|
|
41
|
+
* ```sh
|
|
42
|
+
* $ pulumi import gcp:clouddeploy/target:Target default projects/{{project}}/locations/{{location}}/targets/{{name}}
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* ```sh
|
|
46
|
+
* $ pulumi import gcp:clouddeploy/target:Target default {{project}}/{{location}}/{{name}}
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* ```sh
|
|
50
|
+
* $ pulumi import gcp:clouddeploy/target:Target default {{location}}/{{name}}
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
class Target extends pulumi.CustomResource {
|
|
54
|
+
constructor(name, argsOrState, opts) {
|
|
55
|
+
let resourceInputs = {};
|
|
56
|
+
opts = opts || {};
|
|
57
|
+
if (opts.id) {
|
|
58
|
+
const state = argsOrState;
|
|
59
|
+
resourceInputs["annotations"] = state ? state.annotations : undefined;
|
|
60
|
+
resourceInputs["anthosCluster"] = state ? state.anthosCluster : undefined;
|
|
61
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
62
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
63
|
+
resourceInputs["etag"] = state ? state.etag : undefined;
|
|
64
|
+
resourceInputs["executionConfigs"] = state ? state.executionConfigs : undefined;
|
|
65
|
+
resourceInputs["gke"] = state ? state.gke : undefined;
|
|
66
|
+
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
67
|
+
resourceInputs["location"] = state ? state.location : undefined;
|
|
68
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
69
|
+
resourceInputs["project"] = state ? state.project : undefined;
|
|
70
|
+
resourceInputs["requireApproval"] = state ? state.requireApproval : undefined;
|
|
71
|
+
resourceInputs["targetId"] = state ? state.targetId : undefined;
|
|
72
|
+
resourceInputs["uid"] = state ? state.uid : undefined;
|
|
73
|
+
resourceInputs["updateTime"] = state ? state.updateTime : undefined;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
const args = argsOrState;
|
|
77
|
+
if ((!args || args.location === undefined) && !opts.urn) {
|
|
78
|
+
throw new Error("Missing required property 'location'");
|
|
79
|
+
}
|
|
80
|
+
resourceInputs["annotations"] = args ? args.annotations : undefined;
|
|
81
|
+
resourceInputs["anthosCluster"] = args ? args.anthosCluster : undefined;
|
|
82
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
83
|
+
resourceInputs["executionConfigs"] = args ? args.executionConfigs : undefined;
|
|
84
|
+
resourceInputs["gke"] = args ? args.gke : undefined;
|
|
85
|
+
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
86
|
+
resourceInputs["location"] = args ? args.location : undefined;
|
|
87
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
88
|
+
resourceInputs["project"] = args ? args.project : undefined;
|
|
89
|
+
resourceInputs["requireApproval"] = args ? args.requireApproval : undefined;
|
|
90
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
91
|
+
resourceInputs["etag"] = undefined /*out*/;
|
|
92
|
+
resourceInputs["targetId"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["uid"] = undefined /*out*/;
|
|
94
|
+
resourceInputs["updateTime"] = undefined /*out*/;
|
|
95
|
+
}
|
|
96
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
97
|
+
super(Target.__pulumiType, name, resourceInputs, opts);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Get an existing Target resource's state with the given name, ID, and optional extra
|
|
101
|
+
* properties used to qualify the lookup.
|
|
102
|
+
*
|
|
103
|
+
* @param name The _unique_ name of the resulting resource.
|
|
104
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
105
|
+
* @param state Any extra arguments used during the lookup.
|
|
106
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
107
|
+
*/
|
|
108
|
+
static get(name, id, state, opts) {
|
|
109
|
+
return new Target(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Returns true if the given object is an instance of Target. This is designed to work even
|
|
113
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
114
|
+
*/
|
|
115
|
+
static isInstance(obj) {
|
|
116
|
+
if (obj === undefined || obj === null) {
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
return obj['__pulumiType'] === Target.__pulumiType;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
exports.Target = Target;
|
|
123
|
+
/** @internal */
|
|
124
|
+
Target.__pulumiType = 'gcp:clouddeploy/target:Target';
|
|
125
|
+
//# sourceMappingURL=target.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"target.js","sourceRoot":"","sources":["../../clouddeploy/target.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAkG7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,I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AI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;;AA1BL,wBA8IC;AAhIG,gBAAgB;AACO,mBAAY,GAAG,+BAA+B,CAAC"}
|
|
@@ -27,7 +27,7 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
27
27
|
* });
|
|
28
28
|
* const _function = new gcp.cloudfunctions.Function("function", {
|
|
29
29
|
* description: "My function",
|
|
30
|
-
* runtime: "
|
|
30
|
+
* runtime: "nodejs16",
|
|
31
31
|
* availableMemoryMb: 128,
|
|
32
32
|
* sourceArchiveBucket: bucket.name,
|
|
33
33
|
* sourceArchiveObject: archive.name,
|
|
@@ -56,7 +56,7 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
56
56
|
* });
|
|
57
57
|
* const _function = new gcp.cloudfunctions.Function("function", {
|
|
58
58
|
* description: "My function",
|
|
59
|
-
* runtime: "
|
|
59
|
+
* runtime: "nodejs16",
|
|
60
60
|
* availableMemoryMb: 128,
|
|
61
61
|
* sourceArchiveBucket: bucket.name,
|
|
62
62
|
* sourceArchiveObject: archive.name,
|
|
@@ -140,6 +140,10 @@ export declare class Function extends pulumi.CustomResource {
|
|
|
140
140
|
* A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with `triggerHttp`.
|
|
141
141
|
*/
|
|
142
142
|
readonly eventTrigger: pulumi.Output<outputs.cloudfunctions.FunctionEventTrigger>;
|
|
143
|
+
/**
|
|
144
|
+
* The security level for the function. Defaults to SECURE_OPTIONAL. Valid only if trigger_http is used.
|
|
145
|
+
*/
|
|
146
|
+
readonly httpsTriggerSecurityLevel: pulumi.Output<string>;
|
|
143
147
|
/**
|
|
144
148
|
* URL which triggers function execution. Returned only if `triggerHttp` is used.
|
|
145
149
|
*/
|
|
@@ -181,7 +185,7 @@ export declare class Function extends pulumi.CustomResource {
|
|
|
181
185
|
readonly region: pulumi.Output<string>;
|
|
182
186
|
/**
|
|
183
187
|
* The runtime in which the function is going to run.
|
|
184
|
-
* Eg. `"
|
|
188
|
+
* Eg. `"nodejs16"`, `"python39"`, `"dotnet3"`, `"go116"`, `"java11"`, `"ruby30"`, `"php74"`, etc. Check the [official doc](https://cloud.google.com/functions/docs/concepts/exec#runtimes) for the up-to-date list.
|
|
185
189
|
*/
|
|
186
190
|
readonly runtime: pulumi.Output<string>;
|
|
187
191
|
/**
|
|
@@ -270,6 +274,10 @@ export interface FunctionState {
|
|
|
270
274
|
* A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with `triggerHttp`.
|
|
271
275
|
*/
|
|
272
276
|
eventTrigger?: pulumi.Input<inputs.cloudfunctions.FunctionEventTrigger>;
|
|
277
|
+
/**
|
|
278
|
+
* The security level for the function. Defaults to SECURE_OPTIONAL. Valid only if trigger_http is used.
|
|
279
|
+
*/
|
|
280
|
+
httpsTriggerSecurityLevel?: pulumi.Input<string>;
|
|
273
281
|
/**
|
|
274
282
|
* URL which triggers function execution. Returned only if `triggerHttp` is used.
|
|
275
283
|
*/
|
|
@@ -311,7 +319,7 @@ export interface FunctionState {
|
|
|
311
319
|
region?: pulumi.Input<string>;
|
|
312
320
|
/**
|
|
313
321
|
* The runtime in which the function is going to run.
|
|
314
|
-
* Eg. `"
|
|
322
|
+
* Eg. `"nodejs16"`, `"python39"`, `"dotnet3"`, `"go116"`, `"java11"`, `"ruby30"`, `"php74"`, etc. Check the [official doc](https://cloud.google.com/functions/docs/concepts/exec#runtimes) for the up-to-date list.
|
|
315
323
|
*/
|
|
316
324
|
runtime?: pulumi.Input<string>;
|
|
317
325
|
/**
|
|
@@ -392,6 +400,10 @@ export interface FunctionArgs {
|
|
|
392
400
|
* A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with `triggerHttp`.
|
|
393
401
|
*/
|
|
394
402
|
eventTrigger?: pulumi.Input<inputs.cloudfunctions.FunctionEventTrigger>;
|
|
403
|
+
/**
|
|
404
|
+
* The security level for the function. Defaults to SECURE_OPTIONAL. Valid only if trigger_http is used.
|
|
405
|
+
*/
|
|
406
|
+
httpsTriggerSecurityLevel?: pulumi.Input<string>;
|
|
395
407
|
/**
|
|
396
408
|
* URL which triggers function execution. Returned only if `triggerHttp` is used.
|
|
397
409
|
*/
|
|
@@ -433,7 +445,7 @@ export interface FunctionArgs {
|
|
|
433
445
|
region?: pulumi.Input<string>;
|
|
434
446
|
/**
|
|
435
447
|
* The runtime in which the function is going to run.
|
|
436
|
-
* Eg. `"
|
|
448
|
+
* Eg. `"nodejs16"`, `"python39"`, `"dotnet3"`, `"go116"`, `"java11"`, `"ruby30"`, `"php74"`, etc. Check the [official doc](https://cloud.google.com/functions/docs/concepts/exec#runtimes) for the up-to-date list.
|
|
437
449
|
*/
|
|
438
450
|
runtime: pulumi.Input<string>;
|
|
439
451
|
/**
|