@pulumi/kong 4.5.0 → 4.5.2
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/certificate.d.ts +4 -2
- package/certificate.js +29 -25
- package/certificate.js.map +1 -1
- package/config/vars.d.ts +1 -1
- package/consumer.d.ts +4 -2
- package/consumer.js +22 -20
- package/consumer.js.map +1 -1
- package/consumerAcl.d.ts +7 -6
- package/consumerAcl.js +29 -28
- package/consumerAcl.js.map +1 -1
- package/consumerBasicAuth.d.ts +5 -3
- package/consumerBasicAuth.js +27 -25
- package/consumerBasicAuth.js.map +1 -1
- package/consumerJwtAuth.d.ts +7 -6
- package/consumerJwtAuth.js +29 -28
- package/consumerJwtAuth.js.map +1 -1
- package/consumerKeyAuth.d.ts +2 -0
- package/consumerKeyAuth.js +25 -21
- package/consumerKeyAuth.js.map +1 -1
- package/consumerOauth2.d.ts +7 -6
- package/consumerOauth2.js +29 -28
- package/consumerOauth2.js.map +1 -1
- package/index.d.ts +39 -13
- package/index.js +40 -56
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/package.json.bak +3 -3
- package/plugin.d.ts +20 -10
- package/plugin.js +42 -32
- package/plugin.js.map +1 -1
- package/provider.js +10 -10
- package/provider.js.map +1 -1
- package/route.d.ts +8 -3
- package/route.js +28 -24
- package/route.js.map +1 -1
- package/service.d.ts +6 -2
- package/service.js +28 -24
- package/service.js.map +1 -1
- package/target.d.ts +5 -3
- package/target.js +27 -25
- package/target.js.map +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +1 -1
- package/types/output.d.ts +1 -1
- package/upstream.d.ts +6 -3
- package/upstream.js +26 -24
- package/upstream.js.map +1 -1
- package/utilities.d.ts +4 -0
- package/utilities.js +45 -1
- package/utilities.js.map +1 -1
- package/package.json.dev +0 -27
- package/scripts/install-pulumi-plugin.js +0 -21
package/plugin.js
CHANGED
|
@@ -13,40 +13,45 @@ const utilities = require("./utilities");
|
|
|
13
13
|
*
|
|
14
14
|
* ## Example Usage
|
|
15
15
|
*
|
|
16
|
+
* <!--Start PulumiCodeChooser -->
|
|
16
17
|
* ```typescript
|
|
17
18
|
* import * as pulumi from "@pulumi/pulumi";
|
|
18
19
|
* import * as kong from "@pulumi/kong";
|
|
19
20
|
*
|
|
20
|
-
* const rateLimit = new kong.Plugin("
|
|
21
|
-
* configJson: ` {
|
|
21
|
+
* const rateLimit = new kong.Plugin("rateLimit", {configJson: ` {
|
|
22
22
|
* "second": 5,
|
|
23
23
|
* "hour" : 1000
|
|
24
24
|
* }
|
|
25
|
-
*
|
|
26
|
-
* });
|
|
25
|
+
*
|
|
26
|
+
* `});
|
|
27
27
|
* ```
|
|
28
|
+
* <!--End PulumiCodeChooser -->
|
|
28
29
|
* To apply a plugin to a consumer use the `consumerId` property, for example:
|
|
29
30
|
*
|
|
31
|
+
* <!--Start PulumiCodeChooser -->
|
|
30
32
|
* ```typescript
|
|
31
33
|
* import * as pulumi from "@pulumi/pulumi";
|
|
32
34
|
* import * as kong from "@pulumi/kong";
|
|
33
35
|
*
|
|
34
|
-
* const pluginConsumer = new kong.Consumer("
|
|
36
|
+
* const pluginConsumer = new kong.Consumer("pluginConsumer", {
|
|
35
37
|
* customId: "567",
|
|
36
38
|
* username: "PluginUser",
|
|
37
39
|
* });
|
|
38
|
-
* const rateLimit = new kong.Plugin("
|
|
40
|
+
* const rateLimit = new kong.Plugin("rateLimit", {
|
|
39
41
|
* configJson: ` {
|
|
40
42
|
* "second": 5,
|
|
41
43
|
* "hour" : 1000
|
|
42
44
|
* }
|
|
45
|
+
*
|
|
43
46
|
* `,
|
|
44
47
|
* consumerId: pluginConsumer.id,
|
|
45
48
|
* });
|
|
46
49
|
* ```
|
|
50
|
+
* <!--End PulumiCodeChooser -->
|
|
47
51
|
*
|
|
48
52
|
* To apply a plugin to a service use the `serviceId` property, for example:
|
|
49
53
|
*
|
|
54
|
+
* <!--Start PulumiCodeChooser -->
|
|
50
55
|
* ```typescript
|
|
51
56
|
* import * as pulumi from "@pulumi/pulumi";
|
|
52
57
|
* import * as kong from "@pulumi/kong";
|
|
@@ -55,18 +60,21 @@ const utilities = require("./utilities");
|
|
|
55
60
|
* host: "test.org",
|
|
56
61
|
* protocol: "http",
|
|
57
62
|
* });
|
|
58
|
-
* const rateLimit = new kong.Plugin("
|
|
63
|
+
* const rateLimit = new kong.Plugin("rateLimit", {
|
|
59
64
|
* configJson: ` {
|
|
60
65
|
* "second": 10,
|
|
61
66
|
* "hour" : 2000
|
|
62
67
|
* }
|
|
68
|
+
*
|
|
63
69
|
* `,
|
|
64
70
|
* serviceId: service.id,
|
|
65
71
|
* });
|
|
66
72
|
* ```
|
|
73
|
+
* <!--End PulumiCodeChooser -->
|
|
67
74
|
*
|
|
68
75
|
* To apply a plugin to a route use the `routeId` property, for example:
|
|
69
76
|
*
|
|
77
|
+
* <!--Start PulumiCodeChooser -->
|
|
70
78
|
* ```typescript
|
|
71
79
|
* import * as pulumi from "@pulumi/pulumi";
|
|
72
80
|
* import * as kong from "@pulumi/kong";
|
|
@@ -75,26 +83,50 @@ const utilities = require("./utilities");
|
|
|
75
83
|
* host: "test.org",
|
|
76
84
|
* protocol: "http",
|
|
77
85
|
* });
|
|
78
|
-
* const rateLimit = new kong.Plugin("
|
|
86
|
+
* const rateLimit = new kong.Plugin("rateLimit", {
|
|
79
87
|
* configJson: ` {
|
|
80
88
|
* "second": 11,
|
|
81
89
|
* "hour" : 4000
|
|
82
90
|
* }
|
|
91
|
+
*
|
|
83
92
|
* `,
|
|
84
93
|
* enabled: true,
|
|
85
94
|
* serviceId: service.id,
|
|
86
95
|
* });
|
|
87
96
|
* ```
|
|
97
|
+
* <!--End PulumiCodeChooser -->
|
|
88
98
|
*
|
|
89
99
|
* ## Import
|
|
90
100
|
*
|
|
91
|
-
* To import a plugin
|
|
101
|
+
* To import a plugin:
|
|
92
102
|
*
|
|
93
103
|
* ```sh
|
|
94
|
-
*
|
|
104
|
+
* $ pulumi import kong:index/plugin:Plugin <plugin_identifier> <plugin_id>
|
|
95
105
|
* ```
|
|
96
106
|
*/
|
|
97
107
|
class Plugin extends pulumi.CustomResource {
|
|
108
|
+
/**
|
|
109
|
+
* Get an existing Plugin resource's state with the given name, ID, and optional extra
|
|
110
|
+
* properties used to qualify the lookup.
|
|
111
|
+
*
|
|
112
|
+
* @param name The _unique_ name of the resulting resource.
|
|
113
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
114
|
+
* @param state Any extra arguments used during the lookup.
|
|
115
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
116
|
+
*/
|
|
117
|
+
static get(name, id, state, opts) {
|
|
118
|
+
return new Plugin(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Returns true if the given object is an instance of Plugin. This is designed to work even
|
|
122
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
123
|
+
*/
|
|
124
|
+
static isInstance(obj) {
|
|
125
|
+
if (obj === undefined || obj === null) {
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
return obj['__pulumiType'] === Plugin.__pulumiType;
|
|
129
|
+
}
|
|
98
130
|
constructor(name, argsOrState, opts) {
|
|
99
131
|
let resourceInputs = {};
|
|
100
132
|
opts = opts || {};
|
|
@@ -125,28 +157,6 @@ class Plugin extends pulumi.CustomResource {
|
|
|
125
157
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
126
158
|
super(Plugin.__pulumiType, name, resourceInputs, opts);
|
|
127
159
|
}
|
|
128
|
-
/**
|
|
129
|
-
* Get an existing Plugin resource's state with the given name, ID, and optional extra
|
|
130
|
-
* properties used to qualify the lookup.
|
|
131
|
-
*
|
|
132
|
-
* @param name The _unique_ name of the resulting resource.
|
|
133
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
134
|
-
* @param state Any extra arguments used during the lookup.
|
|
135
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
136
|
-
*/
|
|
137
|
-
static get(name, id, state, opts) {
|
|
138
|
-
return new Plugin(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Returns true if the given object is an instance of Plugin. This is designed to work even
|
|
142
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
143
|
-
*/
|
|
144
|
-
static isInstance(obj) {
|
|
145
|
-
if (obj === undefined || obj === null) {
|
|
146
|
-
return false;
|
|
147
|
-
}
|
|
148
|
-
return obj['__pulumiType'] === Plugin.__pulumiType;
|
|
149
|
-
}
|
|
150
160
|
}
|
|
151
161
|
exports.Plugin = Plugin;
|
|
152
162
|
/** @internal */
|
package/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../plugin.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../plugin.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkGG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,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D,CAAC;;AA7FL,wBA8FC;AAhFG,gBAAgB;AACO,mBAAY,GAAG,0BAA0B,CAAC"}
|
package/provider.js
CHANGED
|
@@ -12,6 +12,16 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
13
13
|
*/
|
|
14
14
|
class Provider extends pulumi.ProviderResource {
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj) {
|
|
20
|
+
if (obj === undefined || obj === null) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
24
|
+
}
|
|
15
25
|
/**
|
|
16
26
|
* Create a Provider resource with the given unique name, arguments, and options.
|
|
17
27
|
*
|
|
@@ -39,16 +49,6 @@ class Provider extends pulumi.ProviderResource {
|
|
|
39
49
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
40
50
|
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
41
51
|
}
|
|
42
|
-
/**
|
|
43
|
-
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
44
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
45
|
-
*/
|
|
46
|
-
static isInstance(obj) {
|
|
47
|
-
if (obj === undefined || obj === null) {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
51
|
-
}
|
|
52
52
|
}
|
|
53
53
|
exports.Provider = Provider;
|
|
54
54
|
/** @internal */
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;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AAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,oBAAoB,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,SAAS,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC5K,cAAc,CAAC,eAAe,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,CAAC,SAAS,CAAC,aAAa,CAAC,iBAAiB,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC3K;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAjEL,4BAkEC;AAjEG,gBAAgB;AACO,qBAAY,GAAG,MAAM,CAAC"}
|
package/route.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
3
4
|
/**
|
|
4
5
|
* ## # kong.Route
|
|
5
6
|
*
|
|
@@ -9,6 +10,7 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
9
10
|
*
|
|
10
11
|
* ## Example Usage
|
|
11
12
|
*
|
|
13
|
+
* <!--Start PulumiCodeChooser -->
|
|
12
14
|
* ```typescript
|
|
13
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
14
16
|
* import * as kong from "@pulumi/kong";
|
|
@@ -37,9 +39,11 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
37
39
|
* }],
|
|
38
40
|
* });
|
|
39
41
|
* ```
|
|
42
|
+
* <!--End PulumiCodeChooser -->
|
|
40
43
|
*
|
|
41
44
|
* To create a tcp/tls route you set `sources` and `destinations` by repeating the corresponding element (`source` or `destination`) for each source or destination you want, for example:
|
|
42
45
|
*
|
|
46
|
+
* <!--Start PulumiCodeChooser -->
|
|
43
47
|
* ```typescript
|
|
44
48
|
* import * as pulumi from "@pulumi/pulumi";
|
|
45
49
|
* import * as kong from "@pulumi/kong";
|
|
@@ -65,13 +69,14 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
65
69
|
* serviceId: kong_service.service.id,
|
|
66
70
|
* });
|
|
67
71
|
* ```
|
|
72
|
+
* <!--End PulumiCodeChooser -->
|
|
68
73
|
*
|
|
69
74
|
* ## Import
|
|
70
75
|
*
|
|
71
|
-
* To import a route
|
|
76
|
+
* To import a route:
|
|
72
77
|
*
|
|
73
78
|
* ```sh
|
|
74
|
-
*
|
|
79
|
+
* $ pulumi import kong:index/route:Route <route_identifier> <route_id>
|
|
75
80
|
* ```
|
|
76
81
|
*/
|
|
77
82
|
export declare class Route extends pulumi.CustomResource {
|
package/route.js
CHANGED
|
@@ -14,6 +14,7 @@ const utilities = require("./utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* ## Example Usage
|
|
16
16
|
*
|
|
17
|
+
* <!--Start PulumiCodeChooser -->
|
|
17
18
|
* ```typescript
|
|
18
19
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
20
|
* import * as kong from "@pulumi/kong";
|
|
@@ -42,9 +43,11 @@ const utilities = require("./utilities");
|
|
|
42
43
|
* }],
|
|
43
44
|
* });
|
|
44
45
|
* ```
|
|
46
|
+
* <!--End PulumiCodeChooser -->
|
|
45
47
|
*
|
|
46
48
|
* To create a tcp/tls route you set `sources` and `destinations` by repeating the corresponding element (`source` or `destination`) for each source or destination you want, for example:
|
|
47
49
|
*
|
|
50
|
+
* <!--Start PulumiCodeChooser -->
|
|
48
51
|
* ```typescript
|
|
49
52
|
* import * as pulumi from "@pulumi/pulumi";
|
|
50
53
|
* import * as kong from "@pulumi/kong";
|
|
@@ -70,16 +73,39 @@ const utilities = require("./utilities");
|
|
|
70
73
|
* serviceId: kong_service.service.id,
|
|
71
74
|
* });
|
|
72
75
|
* ```
|
|
76
|
+
* <!--End PulumiCodeChooser -->
|
|
73
77
|
*
|
|
74
78
|
* ## Import
|
|
75
79
|
*
|
|
76
|
-
* To import a route
|
|
80
|
+
* To import a route:
|
|
77
81
|
*
|
|
78
82
|
* ```sh
|
|
79
|
-
*
|
|
83
|
+
* $ pulumi import kong:index/route:Route <route_identifier> <route_id>
|
|
80
84
|
* ```
|
|
81
85
|
*/
|
|
82
86
|
class Route extends pulumi.CustomResource {
|
|
87
|
+
/**
|
|
88
|
+
* Get an existing Route resource's state with the given name, ID, and optional extra
|
|
89
|
+
* properties used to qualify the lookup.
|
|
90
|
+
*
|
|
91
|
+
* @param name The _unique_ name of the resulting resource.
|
|
92
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
93
|
+
* @param state Any extra arguments used during the lookup.
|
|
94
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
95
|
+
*/
|
|
96
|
+
static get(name, id, state, opts) {
|
|
97
|
+
return new Route(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Returns true if the given object is an instance of Route. This is designed to work even
|
|
101
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
102
|
+
*/
|
|
103
|
+
static isInstance(obj) {
|
|
104
|
+
if (obj === undefined || obj === null) {
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
return obj['__pulumiType'] === Route.__pulumiType;
|
|
108
|
+
}
|
|
83
109
|
constructor(name, argsOrState, opts) {
|
|
84
110
|
let resourceInputs = {};
|
|
85
111
|
opts = opts || {};
|
|
@@ -134,28 +160,6 @@ class Route extends pulumi.CustomResource {
|
|
|
134
160
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
135
161
|
super(Route.__pulumiType, name, resourceInputs, opts);
|
|
136
162
|
}
|
|
137
|
-
/**
|
|
138
|
-
* Get an existing Route resource's state with the given name, ID, and optional extra
|
|
139
|
-
* properties used to qualify the lookup.
|
|
140
|
-
*
|
|
141
|
-
* @param name The _unique_ name of the resulting resource.
|
|
142
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
143
|
-
* @param state Any extra arguments used during the lookup.
|
|
144
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
145
|
-
*/
|
|
146
|
-
static get(name, id, state, opts) {
|
|
147
|
-
return new Route(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Returns true if the given object is an instance of Route. This is designed to work even
|
|
151
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
152
|
-
*/
|
|
153
|
-
static isInstance(obj) {
|
|
154
|
-
if (obj === undefined || obj === null) {
|
|
155
|
-
return false;
|
|
156
|
-
}
|
|
157
|
-
return obj['__pulumiType'] === Route.__pulumiType;
|
|
158
|
-
}
|
|
159
163
|
}
|
|
160
164
|
exports.Route = Route;
|
|
161
165
|
/** @internal */
|
package/route.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../route.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yC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,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AAjKL,sBAkKC;AApJG,gBAAgB;AACO,kBAAY,GAAG,wBAAwB,CAAC"}
|
package/service.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
|
9
|
+
* <!--Start PulumiCodeChooser -->
|
|
9
10
|
* ```typescript
|
|
10
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
12
|
* import * as kong from "@pulumi/kong";
|
|
@@ -21,9 +22,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
21
22
|
* writeTimeout: 2000,
|
|
22
23
|
* });
|
|
23
24
|
* ```
|
|
25
|
+
* <!--End PulumiCodeChooser -->
|
|
24
26
|
*
|
|
25
27
|
* To use a client certificate and ca certificates combine with certificate resource (note protocol must be `https`):
|
|
26
28
|
*
|
|
29
|
+
* <!--Start PulumiCodeChooser -->
|
|
27
30
|
* ```typescript
|
|
28
31
|
* import * as pulumi from "@pulumi/pulumi";
|
|
29
32
|
* import * as kong from "@pulumi/kong";
|
|
@@ -59,13 +62,14 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
59
62
|
* caCertificateIds: [ca.id],
|
|
60
63
|
* });
|
|
61
64
|
* ```
|
|
65
|
+
* <!--End PulumiCodeChooser -->
|
|
62
66
|
*
|
|
63
67
|
* ## Import
|
|
64
68
|
*
|
|
65
|
-
* To import a service
|
|
69
|
+
* To import a service:
|
|
66
70
|
*
|
|
67
71
|
* ```sh
|
|
68
|
-
*
|
|
72
|
+
* $ pulumi import kong:index/service:Service <service_identifier> <service_id>
|
|
69
73
|
* ```
|
|
70
74
|
*/
|
|
71
75
|
export declare class Service extends pulumi.CustomResource {
|
package/service.js
CHANGED
|
@@ -12,6 +12,7 @@ const utilities = require("./utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* ## Example Usage
|
|
14
14
|
*
|
|
15
|
+
* <!--Start PulumiCodeChooser -->
|
|
15
16
|
* ```typescript
|
|
16
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
18
|
* import * as kong from "@pulumi/kong";
|
|
@@ -27,9 +28,11 @@ const utilities = require("./utilities");
|
|
|
27
28
|
* writeTimeout: 2000,
|
|
28
29
|
* });
|
|
29
30
|
* ```
|
|
31
|
+
* <!--End PulumiCodeChooser -->
|
|
30
32
|
*
|
|
31
33
|
* To use a client certificate and ca certificates combine with certificate resource (note protocol must be `https`):
|
|
32
34
|
*
|
|
35
|
+
* <!--Start PulumiCodeChooser -->
|
|
33
36
|
* ```typescript
|
|
34
37
|
* import * as pulumi from "@pulumi/pulumi";
|
|
35
38
|
* import * as kong from "@pulumi/kong";
|
|
@@ -65,16 +68,39 @@ const utilities = require("./utilities");
|
|
|
65
68
|
* caCertificateIds: [ca.id],
|
|
66
69
|
* });
|
|
67
70
|
* ```
|
|
71
|
+
* <!--End PulumiCodeChooser -->
|
|
68
72
|
*
|
|
69
73
|
* ## Import
|
|
70
74
|
*
|
|
71
|
-
* To import a service
|
|
75
|
+
* To import a service:
|
|
72
76
|
*
|
|
73
77
|
* ```sh
|
|
74
|
-
*
|
|
78
|
+
* $ pulumi import kong:index/service:Service <service_identifier> <service_id>
|
|
75
79
|
* ```
|
|
76
80
|
*/
|
|
77
81
|
class Service extends pulumi.CustomResource {
|
|
82
|
+
/**
|
|
83
|
+
* Get an existing Service resource's state with the given name, ID, and optional extra
|
|
84
|
+
* properties used to qualify the lookup.
|
|
85
|
+
*
|
|
86
|
+
* @param name The _unique_ name of the resulting resource.
|
|
87
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
88
|
+
* @param state Any extra arguments used during the lookup.
|
|
89
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
90
|
+
*/
|
|
91
|
+
static get(name, id, state, opts) {
|
|
92
|
+
return new Service(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Returns true if the given object is an instance of Service. This is designed to work even
|
|
96
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
97
|
+
*/
|
|
98
|
+
static isInstance(obj) {
|
|
99
|
+
if (obj === undefined || obj === null) {
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
return obj['__pulumiType'] === Service.__pulumiType;
|
|
103
|
+
}
|
|
78
104
|
constructor(name, argsOrState, opts) {
|
|
79
105
|
let resourceInputs = {};
|
|
80
106
|
opts = opts || {};
|
|
@@ -118,28 +144,6 @@ class Service extends pulumi.CustomResource {
|
|
|
118
144
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
119
145
|
super(Service.__pulumiType, name, resourceInputs, opts);
|
|
120
146
|
}
|
|
121
|
-
/**
|
|
122
|
-
* Get an existing Service resource's state with the given name, ID, and optional extra
|
|
123
|
-
* properties used to qualify the lookup.
|
|
124
|
-
*
|
|
125
|
-
* @param name The _unique_ name of the resulting resource.
|
|
126
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
127
|
-
* @param state Any extra arguments used during the lookup.
|
|
128
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
129
|
-
*/
|
|
130
|
-
static get(name, id, state, opts) {
|
|
131
|
-
return new Service(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Returns true if the given object is an instance of Service. This is designed to work even
|
|
135
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
136
|
-
*/
|
|
137
|
-
static isInstance(obj) {
|
|
138
|
-
if (obj === undefined || obj === null) {
|
|
139
|
-
return false;
|
|
140
|
-
}
|
|
141
|
-
return obj['__pulumiType'] === Service.__pulumiType;
|
|
142
|
-
}
|
|
143
147
|
}
|
|
144
148
|
exports.Service = Service;
|
|
145
149
|
/** @internal */
|
package/service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../service.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../service.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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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C,CAAC;IAC5D,CAAC;;AAtIL,0BAuIC;AAzHG,gBAAgB;AACO,oBAAY,GAAG,4BAA4B,CAAC"}
|
package/target.d.ts
CHANGED
|
@@ -2,23 +2,25 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* ## Example Usage
|
|
4
4
|
*
|
|
5
|
+
* <!--Start PulumiCodeChooser -->
|
|
5
6
|
* ```typescript
|
|
6
7
|
* import * as pulumi from "@pulumi/pulumi";
|
|
7
8
|
* import * as kong from "@pulumi/kong";
|
|
8
9
|
*
|
|
9
10
|
* const target = new kong.Target("target", {
|
|
10
11
|
* target: "sample_target:80",
|
|
11
|
-
* upstreamId:
|
|
12
|
+
* upstreamId: kong_upstream.upstream.id,
|
|
12
13
|
* weight: 10,
|
|
13
14
|
* });
|
|
14
15
|
* ```
|
|
16
|
+
* <!--End PulumiCodeChooser -->
|
|
15
17
|
*
|
|
16
18
|
* ## Import
|
|
17
19
|
*
|
|
18
|
-
* To import a target use a combination of the upstream id and the target id as follows
|
|
20
|
+
* To import a target use a combination of the upstream id and the target id as follows:
|
|
19
21
|
*
|
|
20
22
|
* ```sh
|
|
21
|
-
*
|
|
23
|
+
* $ pulumi import kong:index/target:Target <target_identifier> <upstream_id>/<target_id>
|
|
22
24
|
* ```
|
|
23
25
|
*/
|
|
24
26
|
export declare class Target extends pulumi.CustomResource {
|
package/target.js
CHANGED
|
@@ -8,26 +8,50 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
11
|
+
* <!--Start PulumiCodeChooser -->
|
|
11
12
|
* ```typescript
|
|
12
13
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
14
|
* import * as kong from "@pulumi/kong";
|
|
14
15
|
*
|
|
15
16
|
* const target = new kong.Target("target", {
|
|
16
17
|
* target: "sample_target:80",
|
|
17
|
-
* upstreamId:
|
|
18
|
+
* upstreamId: kong_upstream.upstream.id,
|
|
18
19
|
* weight: 10,
|
|
19
20
|
* });
|
|
20
21
|
* ```
|
|
22
|
+
* <!--End PulumiCodeChooser -->
|
|
21
23
|
*
|
|
22
24
|
* ## Import
|
|
23
25
|
*
|
|
24
|
-
* To import a target use a combination of the upstream id and the target id as follows
|
|
26
|
+
* To import a target use a combination of the upstream id and the target id as follows:
|
|
25
27
|
*
|
|
26
28
|
* ```sh
|
|
27
|
-
*
|
|
29
|
+
* $ pulumi import kong:index/target:Target <target_identifier> <upstream_id>/<target_id>
|
|
28
30
|
* ```
|
|
29
31
|
*/
|
|
30
32
|
class Target extends pulumi.CustomResource {
|
|
33
|
+
/**
|
|
34
|
+
* Get an existing Target resource's state with the given name, ID, and optional extra
|
|
35
|
+
* properties used to qualify the lookup.
|
|
36
|
+
*
|
|
37
|
+
* @param name The _unique_ name of the resulting resource.
|
|
38
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
+
* @param state Any extra arguments used during the lookup.
|
|
40
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
+
*/
|
|
42
|
+
static get(name, id, state, opts) {
|
|
43
|
+
return new Target(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the given object is an instance of Target. This is designed to work even
|
|
47
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
+
*/
|
|
49
|
+
static isInstance(obj) {
|
|
50
|
+
if (obj === undefined || obj === null) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
return obj['__pulumiType'] === Target.__pulumiType;
|
|
54
|
+
}
|
|
31
55
|
constructor(name, argsOrState, opts) {
|
|
32
56
|
let resourceInputs = {};
|
|
33
57
|
opts = opts || {};
|
|
@@ -57,28 +81,6 @@ class Target extends pulumi.CustomResource {
|
|
|
57
81
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
58
82
|
super(Target.__pulumiType, name, resourceInputs, opts);
|
|
59
83
|
}
|
|
60
|
-
/**
|
|
61
|
-
* Get an existing Target resource's state with the given name, ID, and optional extra
|
|
62
|
-
* properties used to qualify the lookup.
|
|
63
|
-
*
|
|
64
|
-
* @param name The _unique_ name of the resulting resource.
|
|
65
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
66
|
-
* @param state Any extra arguments used during the lookup.
|
|
67
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
68
|
-
*/
|
|
69
|
-
static get(name, id, state, opts) {
|
|
70
|
-
return new Target(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Returns true if the given object is an instance of Target. This is designed to work even
|
|
74
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
75
|
-
*/
|
|
76
|
-
static isInstance(obj) {
|
|
77
|
-
if (obj === undefined || obj === null) {
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
return obj['__pulumiType'] === Target.__pulumiType;
|
|
81
|
-
}
|
|
82
84
|
}
|
|
83
85
|
exports.Target = Target;
|
|
84
86
|
/** @internal */
|
package/target.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"target.js","sourceRoot":"","sources":["../target.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"target.js","sourceRoot":"","sources":["../target.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAA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G,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAhFL,wBAiFC;AAnEG,gBAAgB;AACO,mBAAY,GAAG,0BAA0B,CAAC"}
|
package/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|
package/types/input.d.ts
CHANGED