@pulumi/gcp 6.40.0 → 6.41.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/appengine/standardAppVersion.d.ts +28 -0
- package/appengine/standardAppVersion.js +18 -0
- package/appengine/standardAppVersion.js.map +1 -1
- package/bigquery/reservation.d.ts +29 -1
- package/bigquery/reservation.js +6 -1
- package/bigquery/reservation.js.map +1 -1
- package/bigqueryanalyticshub/index.d.ts +12 -0
- package/bigqueryanalyticshub/index.js +21 -1
- package/bigqueryanalyticshub/index.js.map +1 -1
- package/bigqueryanalyticshub/listing.d.ts +280 -0
- package/bigqueryanalyticshub/listing.js +146 -0
- package/bigqueryanalyticshub/listing.js.map +1 -0
- package/bigqueryanalyticshub/listingIamBinding.d.ts +149 -0
- package/bigqueryanalyticshub/listingIamBinding.js +100 -0
- package/bigqueryanalyticshub/listingIamBinding.js.map +1 -0
- package/bigqueryanalyticshub/listingIamMember.d.ts +149 -0
- package/bigqueryanalyticshub/listingIamMember.js +100 -0
- package/bigqueryanalyticshub/listingIamMember.js.map +1 -0
- package/bigqueryanalyticshub/listingIamPolicy.d.ts +138 -0
- package/bigqueryanalyticshub/listingIamPolicy.js +93 -0
- package/bigqueryanalyticshub/listingIamPolicy.js.map +1 -0
- package/bigquerydatapolicy/dataPolicy.d.ts +178 -0
- package/bigquerydatapolicy/dataPolicy.js +122 -0
- package/bigquerydatapolicy/dataPolicy.js.map +1 -0
- package/bigquerydatapolicy/dataPolicyIamBinding.d.ts +128 -0
- package/bigquerydatapolicy/dataPolicyIamBinding.js +95 -0
- package/bigquerydatapolicy/dataPolicyIamBinding.js.map +1 -0
- package/bigquerydatapolicy/dataPolicyIamMember.d.ts +128 -0
- package/bigquerydatapolicy/dataPolicyIamMember.js +95 -0
- package/bigquerydatapolicy/dataPolicyIamMember.js.map +1 -0
- package/bigquerydatapolicy/dataPolicyIamPolicy.d.ts +117 -0
- package/bigquerydatapolicy/dataPolicyIamPolicy.js +88 -0
- package/bigquerydatapolicy/dataPolicyIamPolicy.js.map +1 -0
- package/bigquerydatapolicy/index.d.ts +12 -0
- package/bigquerydatapolicy/index.js +37 -0
- package/bigquerydatapolicy/index.js.map +1 -0
- package/cloudfunctionsv2/getFunction.d.ts +79 -0
- package/cloudfunctionsv2/getFunction.js +41 -0
- package/cloudfunctionsv2/getFunction.js.map +1 -0
- package/cloudfunctionsv2/index.d.ts +3 -0
- package/cloudfunctionsv2/index.js +4 -1
- package/cloudfunctionsv2/index.js.map +1 -1
- package/cloudids/endpoint.d.ts +197 -0
- package/cloudids/endpoint.js +127 -0
- package/cloudids/endpoint.js.map +1 -0
- package/cloudids/index.d.ts +3 -0
- package/cloudids/index.js +22 -0
- package/cloudids/index.js.map +1 -0
- package/cloudrun/service.d.ts +37 -0
- package/cloudrun/service.js +37 -0
- package/cloudrun/service.js.map +1 -1
- package/compute/backendBucket.d.ts +15 -0
- package/compute/backendBucket.js +2 -0
- package/compute/backendBucket.js.map +1 -1
- package/compute/backendService.d.ts +15 -0
- package/compute/backendService.js +2 -0
- package/compute/backendService.js.map +1 -1
- package/compute/getBackendBucket.d.ts +1 -0
- package/compute/getBackendBucket.js.map +1 -1
- package/compute/getBackendService.d.ts +1 -0
- package/compute/getBackendService.js.map +1 -1
- package/compute/getSnapshot.d.ts +106 -0
- package/compute/getSnapshot.js +50 -0
- package/compute/getSnapshot.js.map +1 -0
- package/compute/index.d.ts +6 -0
- package/compute/index.js +11 -3
- package/compute/index.js.map +1 -1
- package/compute/instance.d.ts +9 -3
- package/compute/instance.js +3 -0
- package/compute/instance.js.map +1 -1
- package/compute/regionTargetTcpProxy.d.ts +203 -0
- package/compute/regionTargetTcpProxy.js +93 -0
- package/compute/regionTargetTcpProxy.js.map +1 -0
- package/config/vars.d.ts +2 -0
- package/config/vars.js +12 -0
- package/config/vars.js.map +1 -1
- package/dataflow/flexTemplateJob.d.ts +0 -6
- package/dataflow/flexTemplateJob.js.map +1 -1
- package/datafusion/instance.d.ts +39 -0
- package/datafusion/instance.js +26 -0
- package/datafusion/instance.js.map +1 -1
- package/dataproc/metastoreFederation.d.ts +40 -2
- package/dataproc/metastoreFederation.js +38 -0
- package/dataproc/metastoreFederation.js.map +1 -1
- package/datastream/connectionProfile.d.ts +25 -0
- package/datastream/connectionProfile.js +15 -0
- package/datastream/connectionProfile.js.map +1 -1
- package/dns/managedZone.d.ts +32 -0
- package/dns/managedZone.js +19 -0
- package/dns/managedZone.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/orgpolicy/customConstraint.d.ts +204 -0
- package/orgpolicy/customConstraint.js +141 -0
- package/orgpolicy/customConstraint.js.map +1 -0
- package/orgpolicy/index.d.ts +3 -0
- package/orgpolicy/index.js +6 -1
- package/orgpolicy/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/provider.d.ts +4 -0
- package/provider.js +2 -0
- package/provider.js.map +1 -1
- package/secretmanager/secretVersion.d.ts +1 -1
- package/secretmanager/secretVersion.js +1 -1
- package/sql/user.d.ts +5 -3
- package/sql/user.js +3 -1
- package/sql/user.js.map +1 -1
- package/storage/bucket.d.ts +15 -3
- package/storage/bucket.js +2 -0
- package/storage/bucket.js.map +1 -1
- package/storage/getBucket.d.ts +1 -0
- package/storage/getBucket.js.map +1 -1
- package/types/input.d.ts +228 -14
- package/types/output.d.ts +361 -16
- package/vertex/aiFeatureStoreEntityTypeFeature.d.ts +182 -0
- package/vertex/aiFeatureStoreEntityTypeFeature.js +121 -0
- package/vertex/aiFeatureStoreEntityTypeFeature.js.map +1 -0
- package/vertex/index.d.ts +3 -0
- package/vertex/index.js +6 -1
- package/vertex/index.js.map +1 -1
- package/vpcaccess/getConnector.d.ts +89 -0
- package/vpcaccess/getConnector.js +49 -0
- package/vpcaccess/getConnector.js.map +1 -0
- package/vpcaccess/index.d.ts +3 -0
- package/vpcaccess/index.js +4 -1
- package/vpcaccess/index.js.map +1 -1
|
@@ -0,0 +1,88 @@
|
|
|
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.DataPolicyIamPolicy = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{location}}/dataPolicies/{{data_policy_id}} * {{project}}/{{location}}/{{data_policy_id}} * {{location}}/{{data_policy_id}} * {{data_policy_id}} Any variables not passed in the import command will be taken from the provider configuration. BigQuery Data Policy datapolicy IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import gcp:bigquerydatapolicy/dataPolicyIamPolicy:DataPolicyIamPolicy editor "projects/{{project}}/locations/{{location}}/dataPolicies/{{data_policy_id}} roles/viewer user:jane@example.com"
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
|
|
18
|
+
*
|
|
19
|
+
* ```sh
|
|
20
|
+
* $ pulumi import gcp:bigquerydatapolicy/dataPolicyIamPolicy:DataPolicyIamPolicy editor "projects/{{project}}/locations/{{location}}/dataPolicies/{{data_policy_id}} roles/viewer"
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* IAM policy imports use the identifier of the resource in question, e.g.
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import gcp:bigquerydatapolicy/dataPolicyIamPolicy:DataPolicyIamPolicy editor projects/{{project}}/locations/{{location}}/dataPolicies/{{data_policy_id}}
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
|
|
30
|
+
*
|
|
31
|
+
* full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
|
32
|
+
*/
|
|
33
|
+
class DataPolicyIamPolicy extends pulumi.CustomResource {
|
|
34
|
+
constructor(name, argsOrState, opts) {
|
|
35
|
+
let resourceInputs = {};
|
|
36
|
+
opts = opts || {};
|
|
37
|
+
if (opts.id) {
|
|
38
|
+
const state = argsOrState;
|
|
39
|
+
resourceInputs["dataPolicyId"] = state ? state.dataPolicyId : undefined;
|
|
40
|
+
resourceInputs["etag"] = state ? state.etag : undefined;
|
|
41
|
+
resourceInputs["location"] = state ? state.location : undefined;
|
|
42
|
+
resourceInputs["policyData"] = state ? state.policyData : undefined;
|
|
43
|
+
resourceInputs["project"] = state ? state.project : undefined;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
const args = argsOrState;
|
|
47
|
+
if ((!args || args.dataPolicyId === undefined) && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'dataPolicyId'");
|
|
49
|
+
}
|
|
50
|
+
if ((!args || args.policyData === undefined) && !opts.urn) {
|
|
51
|
+
throw new Error("Missing required property 'policyData'");
|
|
52
|
+
}
|
|
53
|
+
resourceInputs["dataPolicyId"] = args ? args.dataPolicyId : undefined;
|
|
54
|
+
resourceInputs["location"] = args ? args.location : undefined;
|
|
55
|
+
resourceInputs["policyData"] = args ? args.policyData : undefined;
|
|
56
|
+
resourceInputs["project"] = args ? args.project : undefined;
|
|
57
|
+
resourceInputs["etag"] = undefined /*out*/;
|
|
58
|
+
}
|
|
59
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
60
|
+
super(DataPolicyIamPolicy.__pulumiType, name, resourceInputs, opts);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Get an existing DataPolicyIamPolicy resource's state with the given name, ID, and optional extra
|
|
64
|
+
* properties used to qualify the lookup.
|
|
65
|
+
*
|
|
66
|
+
* @param name The _unique_ name of the resulting resource.
|
|
67
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
68
|
+
* @param state Any extra arguments used during the lookup.
|
|
69
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
70
|
+
*/
|
|
71
|
+
static get(name, id, state, opts) {
|
|
72
|
+
return new DataPolicyIamPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Returns true if the given object is an instance of DataPolicyIamPolicy. This is designed to work even
|
|
76
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
77
|
+
*/
|
|
78
|
+
static isInstance(obj) {
|
|
79
|
+
if (obj === undefined || obj === null) {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
return obj['__pulumiType'] === DataPolicyIamPolicy.__pulumiType;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.DataPolicyIamPolicy = DataPolicyIamPolicy;
|
|
86
|
+
/** @internal */
|
|
87
|
+
DataPolicyIamPolicy.__pulumiType = 'gcp:bigquerydatapolicy/dataPolicyIamPolicy:DataPolicyIamPolicy';
|
|
88
|
+
//# sourceMappingURL=dataPolicyIamPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataPolicyIamPolicy.js","sourceRoot":"","sources":["../../bigquerydatapolicy/dataPolicyIamPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAyD1D,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,E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AAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;IAlFD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;;AA1BL,kDAoFC;AAtEG,gBAAgB;AACO,gCAAY,GAAG,gEAAgE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { DataPolicyArgs, DataPolicyState } from "./dataPolicy";
|
|
2
|
+
export declare type DataPolicy = import("./dataPolicy").DataPolicy;
|
|
3
|
+
export declare const DataPolicy: typeof import("./dataPolicy").DataPolicy;
|
|
4
|
+
export { DataPolicyIamBindingArgs, DataPolicyIamBindingState } from "./dataPolicyIamBinding";
|
|
5
|
+
export declare type DataPolicyIamBinding = import("./dataPolicyIamBinding").DataPolicyIamBinding;
|
|
6
|
+
export declare const DataPolicyIamBinding: typeof import("./dataPolicyIamBinding").DataPolicyIamBinding;
|
|
7
|
+
export { DataPolicyIamMemberArgs, DataPolicyIamMemberState } from "./dataPolicyIamMember";
|
|
8
|
+
export declare type DataPolicyIamMember = import("./dataPolicyIamMember").DataPolicyIamMember;
|
|
9
|
+
export declare const DataPolicyIamMember: typeof import("./dataPolicyIamMember").DataPolicyIamMember;
|
|
10
|
+
export { DataPolicyIamPolicyArgs, DataPolicyIamPolicyState } from "./dataPolicyIamPolicy";
|
|
11
|
+
export declare type DataPolicyIamPolicy = import("./dataPolicyIamPolicy").DataPolicyIamPolicy;
|
|
12
|
+
export declare const DataPolicyIamPolicy: typeof import("./dataPolicyIamPolicy").DataPolicyIamPolicy;
|
|
@@ -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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.DataPolicyIamPolicy = exports.DataPolicyIamMember = exports.DataPolicyIamBinding = exports.DataPolicy = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
exports.DataPolicy = null;
|
|
9
|
+
exports.DataPolicyIamBinding = null;
|
|
10
|
+
exports.DataPolicyIamMember = null;
|
|
11
|
+
exports.DataPolicyIamPolicy = null;
|
|
12
|
+
utilities.lazyLoad(exports, ["DataPolicy"], () => require("./dataPolicy"));
|
|
13
|
+
utilities.lazyLoad(exports, ["DataPolicyIamBinding"], () => require("./dataPolicyIamBinding"));
|
|
14
|
+
utilities.lazyLoad(exports, ["DataPolicyIamMember"], () => require("./dataPolicyIamMember"));
|
|
15
|
+
utilities.lazyLoad(exports, ["DataPolicyIamPolicy"], () => require("./dataPolicyIamPolicy"));
|
|
16
|
+
const _module = {
|
|
17
|
+
version: utilities.getVersion(),
|
|
18
|
+
construct: (name, type, urn) => {
|
|
19
|
+
switch (type) {
|
|
20
|
+
case "gcp:bigquerydatapolicy/dataPolicy:DataPolicy":
|
|
21
|
+
return new exports.DataPolicy(name, undefined, { urn });
|
|
22
|
+
case "gcp:bigquerydatapolicy/dataPolicyIamBinding:DataPolicyIamBinding":
|
|
23
|
+
return new exports.DataPolicyIamBinding(name, undefined, { urn });
|
|
24
|
+
case "gcp:bigquerydatapolicy/dataPolicyIamMember:DataPolicyIamMember":
|
|
25
|
+
return new exports.DataPolicyIamMember(name, undefined, { urn });
|
|
26
|
+
case "gcp:bigquerydatapolicy/dataPolicyIamPolicy:DataPolicyIamPolicy":
|
|
27
|
+
return new exports.DataPolicyIamPolicy(name, undefined, { urn });
|
|
28
|
+
default:
|
|
29
|
+
throw new Error(`unknown resource type ${type}`);
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
pulumi.runtime.registerResourceModule("gcp", "bigquerydatapolicy/dataPolicy", _module);
|
|
34
|
+
pulumi.runtime.registerResourceModule("gcp", "bigquerydatapolicy/dataPolicyIamBinding", _module);
|
|
35
|
+
pulumi.runtime.registerResourceModule("gcp", "bigquerydatapolicy/dataPolicyIamMember", _module);
|
|
36
|
+
pulumi.runtime.registerResourceModule("gcp", "bigquerydatapolicy/dataPolicyIamPolicy", _module);
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../bigquerydatapolicy/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,UAAU,GAA6C,IAAW,CAAC;AAInE,QAAA,oBAAoB,GAAiE,IAAW,CAAC;AAIjG,QAAA,mBAAmB,GAA+D,IAAW,CAAC;AAI9F,QAA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AAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,+BAA+B,EAAE,OAAO,CAAC,CAAA;AACtF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,yCAAyC,EAAE,OAAO,CAAC,CAAA;AAChG,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,wCAAwC,EAAE,OAAO,CAAC,CAAA;AAC/F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,wCAAwC,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Get information about a Google Cloud Function (2nd gen). For more information see:
|
|
5
|
+
*
|
|
6
|
+
* * [API documentation](https://cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions).
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as gcp from "@pulumi/gcp";
|
|
13
|
+
*
|
|
14
|
+
* const my_function = pulumi.output(gcp.cloudfunctionsv2.getFunction({
|
|
15
|
+
* location: "us-central1",
|
|
16
|
+
* name: "function",
|
|
17
|
+
* }));
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function getFunction(args: GetFunctionArgs, opts?: pulumi.InvokeOptions): Promise<GetFunctionResult>;
|
|
21
|
+
/**
|
|
22
|
+
* A collection of arguments for invoking getFunction.
|
|
23
|
+
*/
|
|
24
|
+
export interface GetFunctionArgs {
|
|
25
|
+
/**
|
|
26
|
+
* The location in which the resource belongs.
|
|
27
|
+
*/
|
|
28
|
+
location: string;
|
|
29
|
+
/**
|
|
30
|
+
* The name of a Cloud Function (2nd gen).
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* The project in which the resource belongs. If it
|
|
35
|
+
* is not provided, the provider project is used.
|
|
36
|
+
*/
|
|
37
|
+
project?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A collection of values returned by getFunction.
|
|
41
|
+
*/
|
|
42
|
+
export interface GetFunctionResult {
|
|
43
|
+
readonly buildConfigs: outputs.cloudfunctionsv2.GetFunctionBuildConfig[];
|
|
44
|
+
readonly description: string;
|
|
45
|
+
readonly environment: string;
|
|
46
|
+
readonly eventTriggers: outputs.cloudfunctionsv2.GetFunctionEventTrigger[];
|
|
47
|
+
/**
|
|
48
|
+
* The provider-assigned unique ID for this managed resource.
|
|
49
|
+
*/
|
|
50
|
+
readonly id: string;
|
|
51
|
+
readonly labels: {
|
|
52
|
+
[key: string]: string;
|
|
53
|
+
};
|
|
54
|
+
readonly location: string;
|
|
55
|
+
readonly name: string;
|
|
56
|
+
readonly project?: string;
|
|
57
|
+
readonly serviceConfigs: outputs.cloudfunctionsv2.GetFunctionServiceConfig[];
|
|
58
|
+
readonly state: string;
|
|
59
|
+
readonly updateTime: string;
|
|
60
|
+
}
|
|
61
|
+
export declare function getFunctionOutput(args: GetFunctionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFunctionResult>;
|
|
62
|
+
/**
|
|
63
|
+
* A collection of arguments for invoking getFunction.
|
|
64
|
+
*/
|
|
65
|
+
export interface GetFunctionOutputArgs {
|
|
66
|
+
/**
|
|
67
|
+
* The location in which the resource belongs.
|
|
68
|
+
*/
|
|
69
|
+
location: pulumi.Input<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The name of a Cloud Function (2nd gen).
|
|
72
|
+
*/
|
|
73
|
+
name: pulumi.Input<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The project in which the resource belongs. If it
|
|
76
|
+
* is not provided, the provider project is used.
|
|
77
|
+
*/
|
|
78
|
+
project?: pulumi.Input<string>;
|
|
79
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.getFunctionOutput = exports.getFunction = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Get information about a Google Cloud Function (2nd gen). For more information see:
|
|
10
|
+
*
|
|
11
|
+
* * [API documentation](https://cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions).
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as gcp from "@pulumi/gcp";
|
|
18
|
+
*
|
|
19
|
+
* const my_function = pulumi.output(gcp.cloudfunctionsv2.getFunction({
|
|
20
|
+
* location: "us-central1",
|
|
21
|
+
* name: "function",
|
|
22
|
+
* }));
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
function getFunction(args, opts) {
|
|
26
|
+
if (!opts) {
|
|
27
|
+
opts = {};
|
|
28
|
+
}
|
|
29
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
30
|
+
return pulumi.runtime.invoke("gcp:cloudfunctionsv2/getFunction:getFunction", {
|
|
31
|
+
"location": args.location,
|
|
32
|
+
"name": args.name,
|
|
33
|
+
"project": args.project,
|
|
34
|
+
}, opts);
|
|
35
|
+
}
|
|
36
|
+
exports.getFunction = getFunction;
|
|
37
|
+
function getFunctionOutput(args, opts) {
|
|
38
|
+
return pulumi.output(args).apply(a => getFunction(a, opts));
|
|
39
|
+
}
|
|
40
|
+
exports.getFunctionOutput = getFunctionOutput;
|
|
41
|
+
//# sourceMappingURL=getFunction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFunction.js","sourceRoot":"","sources":["../../cloudfunctionsv2/getFunction.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,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,8CAA8C,EAAE;QACzE,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,kCAWC;AA0CD,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC/D,CAAC;AAFD,8CAEC"}
|
|
@@ -10,3 +10,6 @@ export declare const FunctionIamMember: typeof import("./functionIamMember").Fun
|
|
|
10
10
|
export { FunctionIamPolicyArgs, FunctionIamPolicyState } from "./functionIamPolicy";
|
|
11
11
|
export declare type FunctionIamPolicy = import("./functionIamPolicy").FunctionIamPolicy;
|
|
12
12
|
export declare const FunctionIamPolicy: typeof import("./functionIamPolicy").FunctionIamPolicy;
|
|
13
|
+
export { GetFunctionArgs, GetFunctionResult, GetFunctionOutputArgs } from "./getFunction";
|
|
14
|
+
export declare const getFunction: typeof import("./getFunction").getFunction;
|
|
15
|
+
export declare const getFunctionOutput: typeof import("./getFunction").getFunctionOutput;
|
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.FunctionIamPolicy = exports.FunctionIamMember = exports.FunctionIamBinding = exports.Function = void 0;
|
|
5
|
+
exports.getFunctionOutput = exports.getFunction = exports.FunctionIamPolicy = exports.FunctionIamMember = exports.FunctionIamBinding = exports.Function = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
exports.Function = null;
|
|
9
9
|
exports.FunctionIamBinding = null;
|
|
10
10
|
exports.FunctionIamMember = null;
|
|
11
11
|
exports.FunctionIamPolicy = null;
|
|
12
|
+
exports.getFunction = null;
|
|
13
|
+
exports.getFunctionOutput = null;
|
|
12
14
|
utilities.lazyLoad(exports, ["Function"], () => require("./function"));
|
|
13
15
|
utilities.lazyLoad(exports, ["FunctionIamBinding"], () => require("./functionIamBinding"));
|
|
14
16
|
utilities.lazyLoad(exports, ["FunctionIamMember"], () => require("./functionIamMember"));
|
|
15
17
|
utilities.lazyLoad(exports, ["FunctionIamPolicy"], () => require("./functionIamPolicy"));
|
|
18
|
+
utilities.lazyLoad(exports, ["getFunction", "getFunctionOutput"], () => require("./getFunction"));
|
|
16
19
|
const _module = {
|
|
17
20
|
version: utilities.getVersion(),
|
|
18
21
|
construct: (name, type, urn) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../cloudfunctionsv2/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAI7D,QAAA,kBAAkB,GAA6D,IAAW,CAAC;AAI3F,QAAA,iBAAiB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,IAAI,EAAE;YACV,KAAK,wCAAwC;gBACzC,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD,KAAK,4DAA4D;gBAC7D,OAAO,IAAI,0BAAkB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAChE,KAAK,0DAA0D;gBAC3D,OAAO,IAAI,yBAAiB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC/D,KAAK,0DAA0D;gBAC3D,OAAO,IAAI,yBAAiB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC/D;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;AAClF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,qCAAqC,EAAE,OAAO,CAAC,CAAA;AAC5F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,oCAAoC,EAAE,OAAO,CAAC,CAAA;AAC3F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,oCAAoC,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Cloud IDS is an intrusion detection service that provides threat detection for intrusions, malware, spyware, and command-and-control attacks on your network.
|
|
4
|
+
*
|
|
5
|
+
* To get more information about Endpoint, see:
|
|
6
|
+
*
|
|
7
|
+
* * [API documentation](https://cloud.google.com/intrusion-detection-system/docs/configuring-ids)
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
* ### Cloudids Endpoint
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as gcp from "@pulumi/gcp";
|
|
15
|
+
*
|
|
16
|
+
* const _default = new gcp.compute.Network("default", {});
|
|
17
|
+
* const serviceRange = new gcp.compute.GlobalAddress("serviceRange", {
|
|
18
|
+
* purpose: "VPC_PEERING",
|
|
19
|
+
* addressType: "INTERNAL",
|
|
20
|
+
* prefixLength: 16,
|
|
21
|
+
* network: _default.id,
|
|
22
|
+
* });
|
|
23
|
+
* const privateServiceConnection = new gcp.servicenetworking.Connection("privateServiceConnection", {
|
|
24
|
+
* network: _default.id,
|
|
25
|
+
* service: "servicenetworking.googleapis.com",
|
|
26
|
+
* reservedPeeringRanges: [serviceRange.name],
|
|
27
|
+
* });
|
|
28
|
+
* const example_endpoint = new gcp.cloudids.Endpoint("example-endpoint", {
|
|
29
|
+
* location: "us-central1-f",
|
|
30
|
+
* network: _default.id,
|
|
31
|
+
* severity: "INFORMATIONAL",
|
|
32
|
+
* }, {
|
|
33
|
+
* dependsOn: [privateServiceConnection],
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* ## Import
|
|
38
|
+
*
|
|
39
|
+
* Endpoint can be imported using any of these accepted formats
|
|
40
|
+
*
|
|
41
|
+
* ```sh
|
|
42
|
+
* $ pulumi import gcp:cloudids/endpoint:Endpoint default projects/{{project}}/locations/{{location}}/endpoints/{{name}}
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* ```sh
|
|
46
|
+
* $ pulumi import gcp:cloudids/endpoint:Endpoint default {{project}}/{{location}}/{{name}}
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* ```sh
|
|
50
|
+
* $ pulumi import gcp:cloudids/endpoint:Endpoint default {{location}}/{{name}}
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
export declare class Endpoint extends pulumi.CustomResource {
|
|
54
|
+
/**
|
|
55
|
+
* Get an existing Endpoint resource's state with the given name, ID, and optional extra
|
|
56
|
+
* properties used to qualify the lookup.
|
|
57
|
+
*
|
|
58
|
+
* @param name The _unique_ name of the resulting resource.
|
|
59
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
60
|
+
* @param state Any extra arguments used during the lookup.
|
|
61
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
62
|
+
*/
|
|
63
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EndpointState, opts?: pulumi.CustomResourceOptions): Endpoint;
|
|
64
|
+
/**
|
|
65
|
+
* Returns true if the given object is an instance of Endpoint. This is designed to work even
|
|
66
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
67
|
+
*/
|
|
68
|
+
static isInstance(obj: any): obj is Endpoint;
|
|
69
|
+
/**
|
|
70
|
+
* Creation timestamp in RFC 3339 text format.
|
|
71
|
+
*/
|
|
72
|
+
readonly createTime: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* An optional description of the endpoint.
|
|
75
|
+
*/
|
|
76
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* Internal IP address of the endpoint's network entry point.
|
|
79
|
+
*/
|
|
80
|
+
readonly endpoint: pulumi.Output<string>;
|
|
81
|
+
/**
|
|
82
|
+
* URL of the endpoint's network address to which traffic is to be sent by Packet Mirroring.
|
|
83
|
+
*/
|
|
84
|
+
readonly endpointForwardingRule: pulumi.Output<string>;
|
|
85
|
+
/**
|
|
86
|
+
* The location for the endpoint.
|
|
87
|
+
*/
|
|
88
|
+
readonly location: pulumi.Output<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Name of the endpoint in the format projects/{project_id}/locations/{locationId}/endpoints/{endpointId}.
|
|
91
|
+
*/
|
|
92
|
+
readonly name: pulumi.Output<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Name of the VPC network that is connected to the IDS endpoint. This can either contain the VPC network name itself (like "src-net") or the full URL to the network (like "projects/{project_id}/global/networks/src-net").
|
|
95
|
+
*/
|
|
96
|
+
readonly network: pulumi.Output<string>;
|
|
97
|
+
/**
|
|
98
|
+
* The ID of the project in which the resource belongs.
|
|
99
|
+
* If it is not provided, the provider project is used.
|
|
100
|
+
*/
|
|
101
|
+
readonly project: pulumi.Output<string>;
|
|
102
|
+
/**
|
|
103
|
+
* The minimum alert severity level that is reported by the endpoint.
|
|
104
|
+
* Possible values are `INFORMATIONAL`, `LOW`, `MEDIUM`, `HIGH`, and `CRITICAL`.
|
|
105
|
+
*/
|
|
106
|
+
readonly severity: pulumi.Output<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Last update timestamp in RFC 3339 text format.
|
|
109
|
+
*/
|
|
110
|
+
readonly updateTime: pulumi.Output<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Create a Endpoint resource with the given unique name, arguments, and options.
|
|
113
|
+
*
|
|
114
|
+
* @param name The _unique_ name of the resource.
|
|
115
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
116
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
117
|
+
*/
|
|
118
|
+
constructor(name: string, args: EndpointArgs, opts?: pulumi.CustomResourceOptions);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Input properties used for looking up and filtering Endpoint resources.
|
|
122
|
+
*/
|
|
123
|
+
export interface EndpointState {
|
|
124
|
+
/**
|
|
125
|
+
* Creation timestamp in RFC 3339 text format.
|
|
126
|
+
*/
|
|
127
|
+
createTime?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* An optional description of the endpoint.
|
|
130
|
+
*/
|
|
131
|
+
description?: pulumi.Input<string>;
|
|
132
|
+
/**
|
|
133
|
+
* Internal IP address of the endpoint's network entry point.
|
|
134
|
+
*/
|
|
135
|
+
endpoint?: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* URL of the endpoint's network address to which traffic is to be sent by Packet Mirroring.
|
|
138
|
+
*/
|
|
139
|
+
endpointForwardingRule?: pulumi.Input<string>;
|
|
140
|
+
/**
|
|
141
|
+
* The location for the endpoint.
|
|
142
|
+
*/
|
|
143
|
+
location?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* Name of the endpoint in the format projects/{project_id}/locations/{locationId}/endpoints/{endpointId}.
|
|
146
|
+
*/
|
|
147
|
+
name?: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* Name of the VPC network that is connected to the IDS endpoint. This can either contain the VPC network name itself (like "src-net") or the full URL to the network (like "projects/{project_id}/global/networks/src-net").
|
|
150
|
+
*/
|
|
151
|
+
network?: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The ID of the project in which the resource belongs.
|
|
154
|
+
* If it is not provided, the provider project is used.
|
|
155
|
+
*/
|
|
156
|
+
project?: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* The minimum alert severity level that is reported by the endpoint.
|
|
159
|
+
* Possible values are `INFORMATIONAL`, `LOW`, `MEDIUM`, `HIGH`, and `CRITICAL`.
|
|
160
|
+
*/
|
|
161
|
+
severity?: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* Last update timestamp in RFC 3339 text format.
|
|
164
|
+
*/
|
|
165
|
+
updateTime?: pulumi.Input<string>;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* The set of arguments for constructing a Endpoint resource.
|
|
169
|
+
*/
|
|
170
|
+
export interface EndpointArgs {
|
|
171
|
+
/**
|
|
172
|
+
* An optional description of the endpoint.
|
|
173
|
+
*/
|
|
174
|
+
description?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* The location for the endpoint.
|
|
177
|
+
*/
|
|
178
|
+
location: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* Name of the endpoint in the format projects/{project_id}/locations/{locationId}/endpoints/{endpointId}.
|
|
181
|
+
*/
|
|
182
|
+
name?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* Name of the VPC network that is connected to the IDS endpoint. This can either contain the VPC network name itself (like "src-net") or the full URL to the network (like "projects/{project_id}/global/networks/src-net").
|
|
185
|
+
*/
|
|
186
|
+
network: pulumi.Input<string>;
|
|
187
|
+
/**
|
|
188
|
+
* The ID of the project in which the resource belongs.
|
|
189
|
+
* If it is not provided, the provider project is used.
|
|
190
|
+
*/
|
|
191
|
+
project?: pulumi.Input<string>;
|
|
192
|
+
/**
|
|
193
|
+
* The minimum alert severity level that is reported by the endpoint.
|
|
194
|
+
* Possible values are `INFORMATIONAL`, `LOW`, `MEDIUM`, `HIGH`, and `CRITICAL`.
|
|
195
|
+
*/
|
|
196
|
+
severity: pulumi.Input<string>;
|
|
197
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
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.Endpoint = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Cloud IDS is an intrusion detection service that provides threat detection for intrusions, malware, spyware, and command-and-control attacks on your network.
|
|
10
|
+
*
|
|
11
|
+
* To get more information about Endpoint, see:
|
|
12
|
+
*
|
|
13
|
+
* * [API documentation](https://cloud.google.com/intrusion-detection-system/docs/configuring-ids)
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
* ### Cloudids Endpoint
|
|
17
|
+
*
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
+
* import * as gcp from "@pulumi/gcp";
|
|
21
|
+
*
|
|
22
|
+
* const _default = new gcp.compute.Network("default", {});
|
|
23
|
+
* const serviceRange = new gcp.compute.GlobalAddress("serviceRange", {
|
|
24
|
+
* purpose: "VPC_PEERING",
|
|
25
|
+
* addressType: "INTERNAL",
|
|
26
|
+
* prefixLength: 16,
|
|
27
|
+
* network: _default.id,
|
|
28
|
+
* });
|
|
29
|
+
* const privateServiceConnection = new gcp.servicenetworking.Connection("privateServiceConnection", {
|
|
30
|
+
* network: _default.id,
|
|
31
|
+
* service: "servicenetworking.googleapis.com",
|
|
32
|
+
* reservedPeeringRanges: [serviceRange.name],
|
|
33
|
+
* });
|
|
34
|
+
* const example_endpoint = new gcp.cloudids.Endpoint("example-endpoint", {
|
|
35
|
+
* location: "us-central1-f",
|
|
36
|
+
* network: _default.id,
|
|
37
|
+
* severity: "INFORMATIONAL",
|
|
38
|
+
* }, {
|
|
39
|
+
* dependsOn: [privateServiceConnection],
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* ## Import
|
|
44
|
+
*
|
|
45
|
+
* Endpoint can be imported using any of these accepted formats
|
|
46
|
+
*
|
|
47
|
+
* ```sh
|
|
48
|
+
* $ pulumi import gcp:cloudids/endpoint:Endpoint default projects/{{project}}/locations/{{location}}/endpoints/{{name}}
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ```sh
|
|
52
|
+
* $ pulumi import gcp:cloudids/endpoint:Endpoint default {{project}}/{{location}}/{{name}}
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ```sh
|
|
56
|
+
* $ pulumi import gcp:cloudids/endpoint:Endpoint default {{location}}/{{name}}
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
class Endpoint extends pulumi.CustomResource {
|
|
60
|
+
constructor(name, argsOrState, opts) {
|
|
61
|
+
let resourceInputs = {};
|
|
62
|
+
opts = opts || {};
|
|
63
|
+
if (opts.id) {
|
|
64
|
+
const state = argsOrState;
|
|
65
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
66
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
67
|
+
resourceInputs["endpoint"] = state ? state.endpoint : undefined;
|
|
68
|
+
resourceInputs["endpointForwardingRule"] = state ? state.endpointForwardingRule : undefined;
|
|
69
|
+
resourceInputs["location"] = state ? state.location : undefined;
|
|
70
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
71
|
+
resourceInputs["network"] = state ? state.network : undefined;
|
|
72
|
+
resourceInputs["project"] = state ? state.project : undefined;
|
|
73
|
+
resourceInputs["severity"] = state ? state.severity : undefined;
|
|
74
|
+
resourceInputs["updateTime"] = state ? state.updateTime : undefined;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
const args = argsOrState;
|
|
78
|
+
if ((!args || args.location === undefined) && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'location'");
|
|
80
|
+
}
|
|
81
|
+
if ((!args || args.network === undefined) && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'network'");
|
|
83
|
+
}
|
|
84
|
+
if ((!args || args.severity === undefined) && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'severity'");
|
|
86
|
+
}
|
|
87
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
88
|
+
resourceInputs["location"] = args ? args.location : undefined;
|
|
89
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
90
|
+
resourceInputs["network"] = args ? args.network : undefined;
|
|
91
|
+
resourceInputs["project"] = args ? args.project : undefined;
|
|
92
|
+
resourceInputs["severity"] = args ? args.severity : undefined;
|
|
93
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
94
|
+
resourceInputs["endpoint"] = undefined /*out*/;
|
|
95
|
+
resourceInputs["endpointForwardingRule"] = undefined /*out*/;
|
|
96
|
+
resourceInputs["updateTime"] = undefined /*out*/;
|
|
97
|
+
}
|
|
98
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
99
|
+
super(Endpoint.__pulumiType, name, resourceInputs, opts);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Get an existing Endpoint resource's state with the given name, ID, and optional extra
|
|
103
|
+
* properties used to qualify the lookup.
|
|
104
|
+
*
|
|
105
|
+
* @param name The _unique_ name of the resulting resource.
|
|
106
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
107
|
+
* @param state Any extra arguments used during the lookup.
|
|
108
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
109
|
+
*/
|
|
110
|
+
static get(name, id, state, opts) {
|
|
111
|
+
return new Endpoint(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Returns true if the given object is an instance of Endpoint. This is designed to work even
|
|
115
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
116
|
+
*/
|
|
117
|
+
static isInstance(obj) {
|
|
118
|
+
if (obj === undefined || obj === null) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
return obj['__pulumiType'] === Endpoint.__pulumiType;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.Endpoint = Endpoint;
|
|
125
|
+
/** @internal */
|
|
126
|
+
Endpoint.__pulumiType = 'gcp:cloudids/endpoint:Endpoint';
|
|
127
|
+
//# sourceMappingURL=endpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoint.js","sourceRoot":"","sources":["../../cloudids/endpoint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IA+E/C,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,M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