@pulumi/kong 4.5.0-alpha.1648238288 → 4.5.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/consumerOauth2.d.ts +157 -0
- package/consumerOauth2.js +104 -0
- package/consumerOauth2.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +5 -0
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # kong.ConsumerOauth2
|
|
4
|
+
*
|
|
5
|
+
* Resource that allows you to configure the OAuth2 plugin credentials for a consumer.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as kong from "@pulumi/kong";
|
|
12
|
+
*
|
|
13
|
+
* const myConsumer = new kong.Consumer("my_consumer", {
|
|
14
|
+
* customId: "123",
|
|
15
|
+
* username: "User1",
|
|
16
|
+
* });
|
|
17
|
+
* const oauth2Plugin = new kong.Plugin("oauth2_plugin", {
|
|
18
|
+
* configJson: ` {
|
|
19
|
+
* "global_credentials": true,
|
|
20
|
+
* "enable_password_grant": true,
|
|
21
|
+
* "token_expiration": 180,
|
|
22
|
+
* "refresh_token_ttl": 180,
|
|
23
|
+
* "provision_key": "testprovisionkey"
|
|
24
|
+
* }
|
|
25
|
+
* `,
|
|
26
|
+
* });
|
|
27
|
+
* const consumerOauth2 = new kong.ConsumerOauth2("consumer_oauth2", {
|
|
28
|
+
* clientId: "client_id",
|
|
29
|
+
* clientSecret: "client_secret",
|
|
30
|
+
* consumerId: myConsumer.id,
|
|
31
|
+
* redirectUris: [
|
|
32
|
+
* "https://asdf.com/callback",
|
|
33
|
+
* "https://test.cl/callback",
|
|
34
|
+
* ],
|
|
35
|
+
* tags: ["myTag"],
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare class ConsumerOauth2 extends pulumi.CustomResource {
|
|
40
|
+
/**
|
|
41
|
+
* Get an existing ConsumerOauth2 resource's state with the given name, ID, and optional extra
|
|
42
|
+
* properties used to qualify the lookup.
|
|
43
|
+
*
|
|
44
|
+
* @param name The _unique_ name of the resulting resource.
|
|
45
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
46
|
+
* @param state Any extra arguments used during the lookup.
|
|
47
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
|
+
*/
|
|
49
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ConsumerOauth2State, opts?: pulumi.CustomResourceOptions): ConsumerOauth2;
|
|
50
|
+
/**
|
|
51
|
+
* Returns true if the given object is an instance of ConsumerOauth2. This is designed to work even
|
|
52
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
53
|
+
*/
|
|
54
|
+
static isInstance(obj: any): obj is ConsumerOauth2;
|
|
55
|
+
/**
|
|
56
|
+
* Unique oauth2 client id. If not set, the oauth2 plugin will generate one
|
|
57
|
+
*/
|
|
58
|
+
readonly clientId: pulumi.Output<string | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* Unique oauth2 client secret. If not set, the oauth2 plugin will generate one
|
|
61
|
+
*/
|
|
62
|
+
readonly clientSecret: pulumi.Output<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* The id of the consumer to be configured with oauth2.
|
|
65
|
+
*/
|
|
66
|
+
readonly consumerId: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* A boolean flag that indicates whether the clientSecret field will be stored in hashed form. If enabled on existing plugin instances, client secrets are hashed on the fly upon first usage. Default: `false`.
|
|
69
|
+
*/
|
|
70
|
+
readonly hashSecret: pulumi.Output<boolean | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* The name associated with the credential.
|
|
73
|
+
*/
|
|
74
|
+
readonly name: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* An array with one or more URLs in your app where users will be sent after authorization ([RFC 6742 Section 3.1.2](https://tools.ietf.org/html/rfc6749#section-3.1.2)).
|
|
77
|
+
*/
|
|
78
|
+
readonly redirectUris: pulumi.Output<string[]>;
|
|
79
|
+
/**
|
|
80
|
+
* A list of strings associated with the consumer for grouping and filtering.
|
|
81
|
+
*/
|
|
82
|
+
readonly tags: pulumi.Output<string[] | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* Create a ConsumerOauth2 resource with the given unique name, arguments, and options.
|
|
85
|
+
*
|
|
86
|
+
* @param name The _unique_ name of the resource.
|
|
87
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
88
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
89
|
+
*/
|
|
90
|
+
constructor(name: string, args: ConsumerOauth2Args, opts?: pulumi.CustomResourceOptions);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Input properties used for looking up and filtering ConsumerOauth2 resources.
|
|
94
|
+
*/
|
|
95
|
+
export interface ConsumerOauth2State {
|
|
96
|
+
/**
|
|
97
|
+
* Unique oauth2 client id. If not set, the oauth2 plugin will generate one
|
|
98
|
+
*/
|
|
99
|
+
clientId?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Unique oauth2 client secret. If not set, the oauth2 plugin will generate one
|
|
102
|
+
*/
|
|
103
|
+
clientSecret?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* The id of the consumer to be configured with oauth2.
|
|
106
|
+
*/
|
|
107
|
+
consumerId?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* A boolean flag that indicates whether the clientSecret field will be stored in hashed form. If enabled on existing plugin instances, client secrets are hashed on the fly upon first usage. Default: `false`.
|
|
110
|
+
*/
|
|
111
|
+
hashSecret?: pulumi.Input<boolean>;
|
|
112
|
+
/**
|
|
113
|
+
* The name associated with the credential.
|
|
114
|
+
*/
|
|
115
|
+
name?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* An array with one or more URLs in your app where users will be sent after authorization ([RFC 6742 Section 3.1.2](https://tools.ietf.org/html/rfc6749#section-3.1.2)).
|
|
118
|
+
*/
|
|
119
|
+
redirectUris?: pulumi.Input<pulumi.Input<string>[]>;
|
|
120
|
+
/**
|
|
121
|
+
* A list of strings associated with the consumer for grouping and filtering.
|
|
122
|
+
*/
|
|
123
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The set of arguments for constructing a ConsumerOauth2 resource.
|
|
127
|
+
*/
|
|
128
|
+
export interface ConsumerOauth2Args {
|
|
129
|
+
/**
|
|
130
|
+
* Unique oauth2 client id. If not set, the oauth2 plugin will generate one
|
|
131
|
+
*/
|
|
132
|
+
clientId?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Unique oauth2 client secret. If not set, the oauth2 plugin will generate one
|
|
135
|
+
*/
|
|
136
|
+
clientSecret?: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* The id of the consumer to be configured with oauth2.
|
|
139
|
+
*/
|
|
140
|
+
consumerId: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* A boolean flag that indicates whether the clientSecret field will be stored in hashed form. If enabled on existing plugin instances, client secrets are hashed on the fly upon first usage. Default: `false`.
|
|
143
|
+
*/
|
|
144
|
+
hashSecret?: pulumi.Input<boolean>;
|
|
145
|
+
/**
|
|
146
|
+
* The name associated with the credential.
|
|
147
|
+
*/
|
|
148
|
+
name?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* An array with one or more URLs in your app where users will be sent after authorization ([RFC 6742 Section 3.1.2](https://tools.ietf.org/html/rfc6749#section-3.1.2)).
|
|
151
|
+
*/
|
|
152
|
+
redirectUris: pulumi.Input<pulumi.Input<string>[]>;
|
|
153
|
+
/**
|
|
154
|
+
* A list of strings associated with the consumer for grouping and filtering.
|
|
155
|
+
*/
|
|
156
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
157
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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.ConsumerOauth2 = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # kong.ConsumerOauth2
|
|
10
|
+
*
|
|
11
|
+
* Resource that allows you to configure the OAuth2 plugin credentials for a consumer.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as kong from "@pulumi/kong";
|
|
18
|
+
*
|
|
19
|
+
* const myConsumer = new kong.Consumer("my_consumer", {
|
|
20
|
+
* customId: "123",
|
|
21
|
+
* username: "User1",
|
|
22
|
+
* });
|
|
23
|
+
* const oauth2Plugin = new kong.Plugin("oauth2_plugin", {
|
|
24
|
+
* configJson: ` {
|
|
25
|
+
* "global_credentials": true,
|
|
26
|
+
* "enable_password_grant": true,
|
|
27
|
+
* "token_expiration": 180,
|
|
28
|
+
* "refresh_token_ttl": 180,
|
|
29
|
+
* "provision_key": "testprovisionkey"
|
|
30
|
+
* }
|
|
31
|
+
* `,
|
|
32
|
+
* });
|
|
33
|
+
* const consumerOauth2 = new kong.ConsumerOauth2("consumer_oauth2", {
|
|
34
|
+
* clientId: "client_id",
|
|
35
|
+
* clientSecret: "client_secret",
|
|
36
|
+
* consumerId: myConsumer.id,
|
|
37
|
+
* redirectUris: [
|
|
38
|
+
* "https://asdf.com/callback",
|
|
39
|
+
* "https://test.cl/callback",
|
|
40
|
+
* ],
|
|
41
|
+
* tags: ["myTag"],
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
class ConsumerOauth2 extends pulumi.CustomResource {
|
|
46
|
+
constructor(name, argsOrState, opts) {
|
|
47
|
+
let resourceInputs = {};
|
|
48
|
+
opts = opts || {};
|
|
49
|
+
if (opts.id) {
|
|
50
|
+
const state = argsOrState;
|
|
51
|
+
resourceInputs["clientId"] = state ? state.clientId : undefined;
|
|
52
|
+
resourceInputs["clientSecret"] = state ? state.clientSecret : undefined;
|
|
53
|
+
resourceInputs["consumerId"] = state ? state.consumerId : undefined;
|
|
54
|
+
resourceInputs["hashSecret"] = state ? state.hashSecret : undefined;
|
|
55
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
56
|
+
resourceInputs["redirectUris"] = state ? state.redirectUris : undefined;
|
|
57
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
const args = argsOrState;
|
|
61
|
+
if ((!args || args.consumerId === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'consumerId'");
|
|
63
|
+
}
|
|
64
|
+
if ((!args || args.redirectUris === undefined) && !opts.urn) {
|
|
65
|
+
throw new Error("Missing required property 'redirectUris'");
|
|
66
|
+
}
|
|
67
|
+
resourceInputs["clientId"] = args ? args.clientId : undefined;
|
|
68
|
+
resourceInputs["clientSecret"] = args ? args.clientSecret : undefined;
|
|
69
|
+
resourceInputs["consumerId"] = args ? args.consumerId : undefined;
|
|
70
|
+
resourceInputs["hashSecret"] = args ? args.hashSecret : undefined;
|
|
71
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
72
|
+
resourceInputs["redirectUris"] = args ? args.redirectUris : undefined;
|
|
73
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
74
|
+
}
|
|
75
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
76
|
+
super(ConsumerOauth2.__pulumiType, name, resourceInputs, opts);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Get an existing ConsumerOauth2 resource's state with the given name, ID, and optional extra
|
|
80
|
+
* properties used to qualify the lookup.
|
|
81
|
+
*
|
|
82
|
+
* @param name The _unique_ name of the resulting resource.
|
|
83
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
84
|
+
* @param state Any extra arguments used during the lookup.
|
|
85
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
86
|
+
*/
|
|
87
|
+
static get(name, id, state, opts) {
|
|
88
|
+
return new ConsumerOauth2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Returns true if the given object is an instance of ConsumerOauth2. This is designed to work even
|
|
92
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
93
|
+
*/
|
|
94
|
+
static isInstance(obj) {
|
|
95
|
+
if (obj === undefined || obj === null) {
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
return obj['__pulumiType'] === ConsumerOauth2.__pulumiType;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.ConsumerOauth2 = ConsumerOauth2;
|
|
102
|
+
/** @internal */
|
|
103
|
+
ConsumerOauth2.__pulumiType = 'kong:index/consumerOauth2:ConsumerOauth2';
|
|
104
|
+
//# sourceMappingURL=consumerOauth2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumerOauth2.js","sourceRoot":"","sources":["../consumerOauth2.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IAiErD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,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U,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;;AA1BL,wCAgGC;AAlFG,gBAAgB;AACO,2BAAY,GAAG,0CAA0C,CAAC"}
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -26,6 +26,7 @@ __exportStar(require("./consumerAcl"), exports);
|
|
|
26
26
|
__exportStar(require("./consumerBasicAuth"), exports);
|
|
27
27
|
__exportStar(require("./consumerJwtAuth"), exports);
|
|
28
28
|
__exportStar(require("./consumerKeyAuth"), exports);
|
|
29
|
+
__exportStar(require("./consumerOauth2"), exports);
|
|
29
30
|
__exportStar(require("./plugin"), exports);
|
|
30
31
|
__exportStar(require("./provider"), exports);
|
|
31
32
|
__exportStar(require("./route"), exports);
|
|
@@ -44,6 +45,7 @@ const consumerAcl_1 = require("./consumerAcl");
|
|
|
44
45
|
const consumerBasicAuth_1 = require("./consumerBasicAuth");
|
|
45
46
|
const consumerJwtAuth_1 = require("./consumerJwtAuth");
|
|
46
47
|
const consumerKeyAuth_1 = require("./consumerKeyAuth");
|
|
48
|
+
const consumerOauth2_1 = require("./consumerOauth2");
|
|
47
49
|
const plugin_1 = require("./plugin");
|
|
48
50
|
const route_1 = require("./route");
|
|
49
51
|
const service_1 = require("./service");
|
|
@@ -65,6 +67,8 @@ const _module = {
|
|
|
65
67
|
return new consumerJwtAuth_1.ConsumerJwtAuth(name, undefined, { urn });
|
|
66
68
|
case "kong:index/consumerKeyAuth:ConsumerKeyAuth":
|
|
67
69
|
return new consumerKeyAuth_1.ConsumerKeyAuth(name, undefined, { urn });
|
|
70
|
+
case "kong:index/consumerOauth2:ConsumerOauth2":
|
|
71
|
+
return new consumerOauth2_1.ConsumerOauth2(name, undefined, { urn });
|
|
68
72
|
case "kong:index/plugin:Plugin":
|
|
69
73
|
return new plugin_1.Plugin(name, undefined, { urn });
|
|
70
74
|
case "kong:index/route:Route":
|
|
@@ -86,6 +90,7 @@ pulumi.runtime.registerResourceModule("kong", "index/consumerAcl", _module);
|
|
|
86
90
|
pulumi.runtime.registerResourceModule("kong", "index/consumerBasicAuth", _module);
|
|
87
91
|
pulumi.runtime.registerResourceModule("kong", "index/consumerJwtAuth", _module);
|
|
88
92
|
pulumi.runtime.registerResourceModule("kong", "index/consumerKeyAuth", _module);
|
|
93
|
+
pulumi.runtime.registerResourceModule("kong", "index/consumerOauth2", _module);
|
|
89
94
|
pulumi.runtime.registerResourceModule("kong", "index/plugin", _module);
|
|
90
95
|
pulumi.runtime.registerResourceModule("kong", "index/route", _module);
|
|
91
96
|
pulumi.runtime.registerResourceModule("kong", "index/service", _module);
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,gDAA8B;AAC9B,6CAA2B;AAC3B,gDAA8B;AAC9B,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAClC,2CAAyB;AACzB,6CAA2B;AAC3B,0CAAwB;AACxB,4CAA0B;AAC1B,2CAAyB;AACzB,6CAA2B;AAE3B,sBAAsB;AACtB,mCAAmC;AAI/B,wBAAM;AAHV,iCAAiC;AAI7B,sBAAK;AAGT,gCAAgC;AAChC,+CAA4C;AAC5C,yCAAsC;AACtC,+CAA4C;AAC5C,2DAAwD;AACxD,uDAAoD;AACpD,uDAAoD;AACpD,qCAAkC;AAClC,mCAAgC;AAChC,uCAAoC;AACpC,qCAAkC;AAClC,yCAAsC;AAEtC,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EA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,IAAI,IAAI,KAAK,uBAAuB,EAAE;YAClC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/kong",
|
|
3
|
-
"version": "v4.5.0
|
|
3
|
+
"version": "v4.5.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Kong resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource kong v4.5.0
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource kong v4.5.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/kong",
|
|
3
|
-
"version": "v4.5.0
|
|
3
|
+
"version": "v4.5.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Kong resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource kong v4.5.0
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource kong v4.5.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|