@pulumi/kong 4.1.0 → 4.4.1
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/README.md +1 -1
- package/certificate.d.ts +8 -8
- package/certificate.js +12 -13
- package/certificate.js.map +1 -1
- package/config/index.js +11 -4
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +8 -8
- package/config/vars.js +51 -33
- package/config/vars.js.map +1 -1
- package/consumer.d.ts +6 -6
- package/consumer.js +10 -11
- package/consumer.js.map +1 -1
- package/consumerAcl.d.ts +6 -6
- package/consumerAcl.js +10 -11
- package/consumerAcl.js.map +1 -1
- package/consumerBasicAuth.d.ts +8 -8
- package/consumerBasicAuth.js +12 -13
- package/consumerBasicAuth.js.map +1 -1
- package/consumerJwtAuth.d.ts +12 -12
- package/consumerJwtAuth.js +16 -17
- package/consumerJwtAuth.js.map +1 -1
- package/consumerKeyAuth.d.ts +98 -0
- package/consumerKeyAuth.js +82 -0
- package/consumerKeyAuth.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +27 -14
- package/index.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +5 -3
- package/package.json.dev +6 -4
- package/plugin.d.ts +70 -32
- package/plugin.js +22 -33
- package/plugin.js.map +1 -1
- package/provider.d.ts +32 -8
- package/provider.js +12 -13
- package/provider.js.map +1 -1
- package/route.d.ts +36 -36
- package/route.js +40 -41
- package/route.js.map +1 -1
- package/service.d.ts +154 -44
- package/service.js +32 -49
- package/service.js.map +1 -1
- package/target.d.ts +8 -8
- package/target.js +12 -13
- package/target.js.map +1 -1
- package/types/index.js +1 -0
- package/types/index.js.map +1 -1
- package/upstream.d.ts +24 -24
- package/upstream.js +28 -29
- package/upstream.js.map +1 -1
- package/utilities.js +6 -0
- package/utilities.js.map +1 -1
package/service.d.ts
CHANGED
|
@@ -59,22 +59,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
59
59
|
* caCertificateIds: [ca.id],
|
|
60
60
|
* });
|
|
61
61
|
* ```
|
|
62
|
-
* ## Argument reference
|
|
63
|
-
*
|
|
64
|
-
* * `name` - (Required) Service name
|
|
65
|
-
* * `protocol` - (Required) Protocol to use
|
|
66
|
-
* * `host` - (Optional) Host to map to
|
|
67
|
-
* * `port` - (Optional, int) Port to map to. Default: 80
|
|
68
|
-
* * `path` - (Optional) Path to map to
|
|
69
|
-
* * `retries` - (Optional, int) Number of retries. Default: 5
|
|
70
|
-
* * `connectTimeout` - (Optional, int) Connection timeout. Default(ms): 60000
|
|
71
|
-
* * `writeTimeout` - (Optional, int) Write timout. Default(ms): 60000
|
|
72
|
-
* * `readTimeout` - (Optional, int) Read timeout. Default(ms): 60000
|
|
73
|
-
* * `tags` - (Optional) A list of strings associated with the Service for grouping and filtering.
|
|
74
|
-
* * `clientCertificateId` - (Optional) ID of Certificate to be used as client certificate while TLS handshaking to the upstream server. Use ID from `kong.Certificate` resource
|
|
75
|
-
* * `tlsVerify` - (Optional) Whether to enable verification of upstream server TLS certificate. If not set then the nginx default is respected.
|
|
76
|
-
* * `tlsVerifyDepth` - (Optional) Maximum depth of chain while verifying Upstream server’s TLS certificate.
|
|
77
|
-
* * `caCertificateIds` - (Optional) A of CA Certificate IDs (created from the certificate resource). that are used to build the trust store while verifying upstream server’s TLS certificate.
|
|
78
62
|
*
|
|
79
63
|
* ## Import
|
|
80
64
|
*
|
|
@@ -100,19 +84,61 @@ export declare class Service extends pulumi.CustomResource {
|
|
|
100
84
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
101
85
|
*/
|
|
102
86
|
static isInstance(obj: any): obj is Service;
|
|
87
|
+
/**
|
|
88
|
+
* A of CA Certificate IDs (created from the certificate resource). that are used to build the trust store while verifying upstream server’s TLS certificate.
|
|
89
|
+
*/
|
|
103
90
|
readonly caCertificateIds: pulumi.Output<string[] | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* ID of Certificate to be used as client certificate while TLS handshaking to the upstream server. Use ID from `kong.Certificate` resource
|
|
93
|
+
*/
|
|
104
94
|
readonly clientCertificateId: pulumi.Output<string | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* Connection timeout. Default(ms): 60000
|
|
97
|
+
*/
|
|
105
98
|
readonly connectTimeout: pulumi.Output<number | undefined>;
|
|
99
|
+
/**
|
|
100
|
+
* Host to map to
|
|
101
|
+
*/
|
|
106
102
|
readonly host: pulumi.Output<string | undefined>;
|
|
103
|
+
/**
|
|
104
|
+
* Service name
|
|
105
|
+
*/
|
|
107
106
|
readonly name: pulumi.Output<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Path to map to
|
|
109
|
+
*/
|
|
108
110
|
readonly path: pulumi.Output<string | undefined>;
|
|
111
|
+
/**
|
|
112
|
+
* Port to map to. Default: 80
|
|
113
|
+
*/
|
|
109
114
|
readonly port: pulumi.Output<number | undefined>;
|
|
115
|
+
/**
|
|
116
|
+
* Protocol to use
|
|
117
|
+
*/
|
|
110
118
|
readonly protocol: pulumi.Output<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Read timeout. Default(ms): 60000
|
|
121
|
+
*/
|
|
111
122
|
readonly readTimeout: pulumi.Output<number | undefined>;
|
|
123
|
+
/**
|
|
124
|
+
* Number of retries. Default: 5
|
|
125
|
+
*/
|
|
112
126
|
readonly retries: pulumi.Output<number | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* A list of strings associated with the Service for grouping and filtering.
|
|
129
|
+
*/
|
|
113
130
|
readonly tags: pulumi.Output<string[] | undefined>;
|
|
131
|
+
/**
|
|
132
|
+
* Whether to enable verification of upstream server TLS certificate. If not set then the nginx default is respected.
|
|
133
|
+
*/
|
|
114
134
|
readonly tlsVerify: pulumi.Output<boolean | undefined>;
|
|
135
|
+
/**
|
|
136
|
+
* Maximum depth of chain while verifying Upstream server’s TLS certificate.
|
|
137
|
+
*/
|
|
115
138
|
readonly tlsVerifyDepth: pulumi.Output<number | undefined>;
|
|
139
|
+
/**
|
|
140
|
+
* Write timout. Default(ms): 60000
|
|
141
|
+
*/
|
|
116
142
|
readonly writeTimeout: pulumi.Output<number | undefined>;
|
|
117
143
|
/**
|
|
118
144
|
* Create a Service resource with the given unique name, arguments, and options.
|
|
@@ -127,37 +153,121 @@ export declare class Service extends pulumi.CustomResource {
|
|
|
127
153
|
* Input properties used for looking up and filtering Service resources.
|
|
128
154
|
*/
|
|
129
155
|
export interface ServiceState {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
156
|
+
/**
|
|
157
|
+
* A of CA Certificate IDs (created from the certificate resource). that are used to build the trust store while verifying upstream server’s TLS certificate.
|
|
158
|
+
*/
|
|
159
|
+
caCertificateIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
160
|
+
/**
|
|
161
|
+
* ID of Certificate to be used as client certificate while TLS handshaking to the upstream server. Use ID from `kong.Certificate` resource
|
|
162
|
+
*/
|
|
163
|
+
clientCertificateId?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* Connection timeout. Default(ms): 60000
|
|
166
|
+
*/
|
|
167
|
+
connectTimeout?: pulumi.Input<number>;
|
|
168
|
+
/**
|
|
169
|
+
* Host to map to
|
|
170
|
+
*/
|
|
171
|
+
host?: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* Service name
|
|
174
|
+
*/
|
|
175
|
+
name?: pulumi.Input<string>;
|
|
176
|
+
/**
|
|
177
|
+
* Path to map to
|
|
178
|
+
*/
|
|
179
|
+
path?: pulumi.Input<string>;
|
|
180
|
+
/**
|
|
181
|
+
* Port to map to. Default: 80
|
|
182
|
+
*/
|
|
183
|
+
port?: pulumi.Input<number>;
|
|
184
|
+
/**
|
|
185
|
+
* Protocol to use
|
|
186
|
+
*/
|
|
187
|
+
protocol?: pulumi.Input<string>;
|
|
188
|
+
/**
|
|
189
|
+
* Read timeout. Default(ms): 60000
|
|
190
|
+
*/
|
|
191
|
+
readTimeout?: pulumi.Input<number>;
|
|
192
|
+
/**
|
|
193
|
+
* Number of retries. Default: 5
|
|
194
|
+
*/
|
|
195
|
+
retries?: pulumi.Input<number>;
|
|
196
|
+
/**
|
|
197
|
+
* A list of strings associated with the Service for grouping and filtering.
|
|
198
|
+
*/
|
|
199
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
200
|
+
/**
|
|
201
|
+
* Whether to enable verification of upstream server TLS certificate. If not set then the nginx default is respected.
|
|
202
|
+
*/
|
|
203
|
+
tlsVerify?: pulumi.Input<boolean>;
|
|
204
|
+
/**
|
|
205
|
+
* Maximum depth of chain while verifying Upstream server’s TLS certificate.
|
|
206
|
+
*/
|
|
207
|
+
tlsVerifyDepth?: pulumi.Input<number>;
|
|
208
|
+
/**
|
|
209
|
+
* Write timout. Default(ms): 60000
|
|
210
|
+
*/
|
|
211
|
+
writeTimeout?: pulumi.Input<number>;
|
|
144
212
|
}
|
|
145
213
|
/**
|
|
146
214
|
* The set of arguments for constructing a Service resource.
|
|
147
215
|
*/
|
|
148
216
|
export interface ServiceArgs {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
217
|
+
/**
|
|
218
|
+
* A of CA Certificate IDs (created from the certificate resource). that are used to build the trust store while verifying upstream server’s TLS certificate.
|
|
219
|
+
*/
|
|
220
|
+
caCertificateIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
221
|
+
/**
|
|
222
|
+
* ID of Certificate to be used as client certificate while TLS handshaking to the upstream server. Use ID from `kong.Certificate` resource
|
|
223
|
+
*/
|
|
224
|
+
clientCertificateId?: pulumi.Input<string>;
|
|
225
|
+
/**
|
|
226
|
+
* Connection timeout. Default(ms): 60000
|
|
227
|
+
*/
|
|
228
|
+
connectTimeout?: pulumi.Input<number>;
|
|
229
|
+
/**
|
|
230
|
+
* Host to map to
|
|
231
|
+
*/
|
|
232
|
+
host?: pulumi.Input<string>;
|
|
233
|
+
/**
|
|
234
|
+
* Service name
|
|
235
|
+
*/
|
|
236
|
+
name?: pulumi.Input<string>;
|
|
237
|
+
/**
|
|
238
|
+
* Path to map to
|
|
239
|
+
*/
|
|
240
|
+
path?: pulumi.Input<string>;
|
|
241
|
+
/**
|
|
242
|
+
* Port to map to. Default: 80
|
|
243
|
+
*/
|
|
244
|
+
port?: pulumi.Input<number>;
|
|
245
|
+
/**
|
|
246
|
+
* Protocol to use
|
|
247
|
+
*/
|
|
248
|
+
protocol: pulumi.Input<string>;
|
|
249
|
+
/**
|
|
250
|
+
* Read timeout. Default(ms): 60000
|
|
251
|
+
*/
|
|
252
|
+
readTimeout?: pulumi.Input<number>;
|
|
253
|
+
/**
|
|
254
|
+
* Number of retries. Default: 5
|
|
255
|
+
*/
|
|
256
|
+
retries?: pulumi.Input<number>;
|
|
257
|
+
/**
|
|
258
|
+
* A list of strings associated with the Service for grouping and filtering.
|
|
259
|
+
*/
|
|
260
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
261
|
+
/**
|
|
262
|
+
* Whether to enable verification of upstream server TLS certificate. If not set then the nginx default is respected.
|
|
263
|
+
*/
|
|
264
|
+
tlsVerify?: pulumi.Input<boolean>;
|
|
265
|
+
/**
|
|
266
|
+
* Maximum depth of chain while verifying Upstream server’s TLS certificate.
|
|
267
|
+
*/
|
|
268
|
+
tlsVerifyDepth?: pulumi.Input<number>;
|
|
269
|
+
/**
|
|
270
|
+
* Write timout. Default(ms): 60000
|
|
271
|
+
*/
|
|
272
|
+
writeTimeout?: pulumi.Input<number>;
|
|
163
273
|
}
|
package/service.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
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.Service = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -64,22 +65,6 @@ const utilities = require("./utilities");
|
|
|
64
65
|
* caCertificateIds: [ca.id],
|
|
65
66
|
* });
|
|
66
67
|
* ```
|
|
67
|
-
* ## Argument reference
|
|
68
|
-
*
|
|
69
|
-
* * `name` - (Required) Service name
|
|
70
|
-
* * `protocol` - (Required) Protocol to use
|
|
71
|
-
* * `host` - (Optional) Host to map to
|
|
72
|
-
* * `port` - (Optional, int) Port to map to. Default: 80
|
|
73
|
-
* * `path` - (Optional) Path to map to
|
|
74
|
-
* * `retries` - (Optional, int) Number of retries. Default: 5
|
|
75
|
-
* * `connectTimeout` - (Optional, int) Connection timeout. Default(ms): 60000
|
|
76
|
-
* * `writeTimeout` - (Optional, int) Write timout. Default(ms): 60000
|
|
77
|
-
* * `readTimeout` - (Optional, int) Read timeout. Default(ms): 60000
|
|
78
|
-
* * `tags` - (Optional) A list of strings associated with the Service for grouping and filtering.
|
|
79
|
-
* * `clientCertificateId` - (Optional) ID of Certificate to be used as client certificate while TLS handshaking to the upstream server. Use ID from `kong.Certificate` resource
|
|
80
|
-
* * `tlsVerify` - (Optional) Whether to enable verification of upstream server TLS certificate. If not set then the nginx default is respected.
|
|
81
|
-
* * `tlsVerifyDepth` - (Optional) Maximum depth of chain while verifying Upstream server’s TLS certificate.
|
|
82
|
-
* * `caCertificateIds` - (Optional) A of CA Certificate IDs (created from the certificate resource). that are used to build the trust store while verifying upstream server’s TLS certificate.
|
|
83
68
|
*
|
|
84
69
|
* ## Import
|
|
85
70
|
*
|
|
@@ -91,49 +76,47 @@ const utilities = require("./utilities");
|
|
|
91
76
|
*/
|
|
92
77
|
class Service extends pulumi.CustomResource {
|
|
93
78
|
constructor(name, argsOrState, opts) {
|
|
94
|
-
let
|
|
79
|
+
let resourceInputs = {};
|
|
95
80
|
opts = opts || {};
|
|
96
81
|
if (opts.id) {
|
|
97
82
|
const state = argsOrState;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
83
|
+
resourceInputs["caCertificateIds"] = state ? state.caCertificateIds : undefined;
|
|
84
|
+
resourceInputs["clientCertificateId"] = state ? state.clientCertificateId : undefined;
|
|
85
|
+
resourceInputs["connectTimeout"] = state ? state.connectTimeout : undefined;
|
|
86
|
+
resourceInputs["host"] = state ? state.host : undefined;
|
|
87
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
88
|
+
resourceInputs["path"] = state ? state.path : undefined;
|
|
89
|
+
resourceInputs["port"] = state ? state.port : undefined;
|
|
90
|
+
resourceInputs["protocol"] = state ? state.protocol : undefined;
|
|
91
|
+
resourceInputs["readTimeout"] = state ? state.readTimeout : undefined;
|
|
92
|
+
resourceInputs["retries"] = state ? state.retries : undefined;
|
|
93
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
94
|
+
resourceInputs["tlsVerify"] = state ? state.tlsVerify : undefined;
|
|
95
|
+
resourceInputs["tlsVerifyDepth"] = state ? state.tlsVerifyDepth : undefined;
|
|
96
|
+
resourceInputs["writeTimeout"] = state ? state.writeTimeout : undefined;
|
|
112
97
|
}
|
|
113
98
|
else {
|
|
114
99
|
const args = argsOrState;
|
|
115
100
|
if ((!args || args.protocol === undefined) && !opts.urn) {
|
|
116
101
|
throw new Error("Missing required property 'protocol'");
|
|
117
102
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
if (!opts.version) {
|
|
134
|
-
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
103
|
+
resourceInputs["caCertificateIds"] = args ? args.caCertificateIds : undefined;
|
|
104
|
+
resourceInputs["clientCertificateId"] = args ? args.clientCertificateId : undefined;
|
|
105
|
+
resourceInputs["connectTimeout"] = args ? args.connectTimeout : undefined;
|
|
106
|
+
resourceInputs["host"] = args ? args.host : undefined;
|
|
107
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
108
|
+
resourceInputs["path"] = args ? args.path : undefined;
|
|
109
|
+
resourceInputs["port"] = args ? args.port : undefined;
|
|
110
|
+
resourceInputs["protocol"] = args ? args.protocol : undefined;
|
|
111
|
+
resourceInputs["readTimeout"] = args ? args.readTimeout : undefined;
|
|
112
|
+
resourceInputs["retries"] = args ? args.retries : undefined;
|
|
113
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
114
|
+
resourceInputs["tlsVerify"] = args ? args.tlsVerify : undefined;
|
|
115
|
+
resourceInputs["tlsVerifyDepth"] = args ? args.tlsVerifyDepth : undefined;
|
|
116
|
+
resourceInputs["writeTimeout"] = args ? args.writeTimeout : undefined;
|
|
135
117
|
}
|
|
136
|
-
|
|
118
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
119
|
+
super(Service.__pulumiType, name, resourceInputs, opts);
|
|
137
120
|
}
|
|
138
121
|
/**
|
|
139
122
|
* Get an existing Service resource's state with the given name, ID, and optional extra
|
package/service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../service.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../service.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AA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AAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IArID;;;;;;;;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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;;AA1BL,0BAuIC;AAzHG,gBAAgB;AACO,oBAAY,GAAG,4BAA4B,CAAC"}
|
package/target.d.ts
CHANGED
|
@@ -69,19 +69,19 @@ export interface TargetState {
|
|
|
69
69
|
/**
|
|
70
70
|
* A list set of strings associated with the Plugin for grouping and filtering
|
|
71
71
|
*/
|
|
72
|
-
|
|
72
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
73
73
|
/**
|
|
74
74
|
* is the target address (IP or hostname) and port. If omitted the port defaults to 8000.
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
target?: pulumi.Input<string>;
|
|
77
77
|
/**
|
|
78
78
|
* is the id of the upstream to apply this target to.
|
|
79
79
|
*/
|
|
80
|
-
|
|
80
|
+
upstreamId?: pulumi.Input<string>;
|
|
81
81
|
/**
|
|
82
82
|
* is the weight this target gets within the upstream load balancer (0-1000, defaults to 100).
|
|
83
83
|
*/
|
|
84
|
-
|
|
84
|
+
weight?: pulumi.Input<number>;
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
87
|
* The set of arguments for constructing a Target resource.
|
|
@@ -90,17 +90,17 @@ export interface TargetArgs {
|
|
|
90
90
|
/**
|
|
91
91
|
* A list set of strings associated with the Plugin for grouping and filtering
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
94
94
|
/**
|
|
95
95
|
* is the target address (IP or hostname) and port. If omitted the port defaults to 8000.
|
|
96
96
|
*/
|
|
97
|
-
|
|
97
|
+
target: pulumi.Input<string>;
|
|
98
98
|
/**
|
|
99
99
|
* is the id of the upstream to apply this target to.
|
|
100
100
|
*/
|
|
101
|
-
|
|
101
|
+
upstreamId: pulumi.Input<string>;
|
|
102
102
|
/**
|
|
103
103
|
* is the weight this target gets within the upstream load balancer (0-1000, defaults to 100).
|
|
104
104
|
*/
|
|
105
|
-
|
|
105
|
+
weight: pulumi.Input<number>;
|
|
106
106
|
}
|
package/target.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
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.Target = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -28,14 +29,14 @@ const utilities = require("./utilities");
|
|
|
28
29
|
*/
|
|
29
30
|
class Target extends pulumi.CustomResource {
|
|
30
31
|
constructor(name, argsOrState, opts) {
|
|
31
|
-
let
|
|
32
|
+
let resourceInputs = {};
|
|
32
33
|
opts = opts || {};
|
|
33
34
|
if (opts.id) {
|
|
34
35
|
const state = argsOrState;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
37
|
+
resourceInputs["target"] = state ? state.target : undefined;
|
|
38
|
+
resourceInputs["upstreamId"] = state ? state.upstreamId : undefined;
|
|
39
|
+
resourceInputs["weight"] = state ? state.weight : undefined;
|
|
39
40
|
}
|
|
40
41
|
else {
|
|
41
42
|
const args = argsOrState;
|
|
@@ -48,15 +49,13 @@ class Target extends pulumi.CustomResource {
|
|
|
48
49
|
if ((!args || args.weight === undefined) && !opts.urn) {
|
|
49
50
|
throw new Error("Missing required property 'weight'");
|
|
50
51
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
53
|
+
resourceInputs["target"] = args ? args.target : undefined;
|
|
54
|
+
resourceInputs["upstreamId"] = args ? args.upstreamId : undefined;
|
|
55
|
+
resourceInputs["weight"] = args ? args.weight : undefined;
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
super(Target.__pulumiType, name, inputs, opts);
|
|
57
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
58
|
+
super(Target.__pulumiType, name, resourceInputs, opts);
|
|
60
59
|
}
|
|
61
60
|
/**
|
|
62
61
|
* Get an existing Target resource's state with the given name, ID, and optional extra
|
package/target.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"target.js","sourceRoot":"","sources":["../target.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"target.js","sourceRoot":"","sources":["../target.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAqD7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,C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C,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;IA/ED;;;;;;;;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,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;;AA1BL,wBAiFC;AAnEG,gBAAgB;AACO,mBAAY,GAAG,0BAA0B,CAAC"}
|
package/types/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
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.output = exports.input = void 0;
|
|
5
6
|
// Export sub-modules:
|
|
6
7
|
const input = require("./input");
|
|
7
8
|
exports.input = input;
|
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;;;AAEjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|
package/upstream.d.ts
CHANGED
|
@@ -190,23 +190,23 @@ export interface UpstreamState {
|
|
|
190
190
|
/**
|
|
191
191
|
* The ID of the client certificate to use (from certificate resource) while TLS handshaking to the upstream server.
|
|
192
192
|
*/
|
|
193
|
-
|
|
193
|
+
clientCertificateId?: pulumi.Input<string>;
|
|
194
194
|
/**
|
|
195
195
|
* is a hashing input type if the primary `hashOn` does not return a hash (eg. header is missing, or no consumer identified). One of: `none`, `consumer`, `ip`, `header`, or `cookie`. Not available if `hashOn` is set to `cookie`. Defaults to `none`.
|
|
196
196
|
*/
|
|
197
|
-
|
|
197
|
+
hashFallback?: pulumi.Input<string>;
|
|
198
198
|
/**
|
|
199
199
|
* is a header name to take the value from as hash input. Only required when `hashFallback` is set to `header`. Default `nil`.
|
|
200
200
|
*/
|
|
201
|
-
|
|
201
|
+
hashFallbackHeader?: pulumi.Input<string>;
|
|
202
202
|
/**
|
|
203
203
|
* is a hashing input type: `none `(resulting in a weighted*round*robin scheme with no hashing), `consumer`, `ip`, `header`, or `cookie`. Defaults to `none`.
|
|
204
204
|
*/
|
|
205
|
-
|
|
205
|
+
hashOn?: pulumi.Input<string>;
|
|
206
206
|
/**
|
|
207
207
|
* is a cookie name to take the value from as hash input. Only required when `hashOn` or `hashFallback` is set to `cookie`. If the specified cookie is not in the request, Kong will generate a value and set the cookie in the response. Default `nil`.
|
|
208
208
|
*/
|
|
209
|
-
|
|
209
|
+
hashOnCookie?: pulumi.Input<string>;
|
|
210
210
|
/**
|
|
211
211
|
* is a cookie path to set in the response headers. Only required when `hashOn` or `hashFallback` is set to `cookie`. Defaults to `/`.
|
|
212
212
|
* * `healthchecks.active.type` - (Optional) is a active health check type. HTTP or HTTPS, or just attempt a TCP connection. Possible values are `tcp`, `http` or `https`. Defaults to `http`.
|
|
@@ -231,28 +231,28 @@ export interface UpstreamState {
|
|
|
231
231
|
* * `healthchecks.passive.unhealthy.timeouts` - (Optional) is a number of timeouts in proxied traffic to consider a target unhealthy, as observed by passive health checks. Defaults to `0`.
|
|
232
232
|
* * `healthchecks.passive.unhealthy.http_statuses` - (Optional) is an array of HTTP statuses which represent unhealthiness when produced by proxied traffic, as observed by passive health checks. Defaults to `[429, 500, 503]`.
|
|
233
233
|
*/
|
|
234
|
-
|
|
234
|
+
hashOnCookiePath?: pulumi.Input<string>;
|
|
235
235
|
/**
|
|
236
236
|
* is a header name to take the value from as hash input. Only required when `hashOn` is set to `header`. Default `nil`.
|
|
237
237
|
*/
|
|
238
|
-
|
|
239
|
-
|
|
238
|
+
hashOnHeader?: pulumi.Input<string>;
|
|
239
|
+
healthchecks?: pulumi.Input<inputs.UpstreamHealthchecks>;
|
|
240
240
|
/**
|
|
241
241
|
* The hostname to be used as Host header when proxying requests through Kong.
|
|
242
242
|
*/
|
|
243
|
-
|
|
243
|
+
hostHeader?: pulumi.Input<string>;
|
|
244
244
|
/**
|
|
245
245
|
* is a hostname, which must be equal to the host of a Service.
|
|
246
246
|
*/
|
|
247
|
-
|
|
247
|
+
name?: pulumi.Input<string>;
|
|
248
248
|
/**
|
|
249
249
|
* is the number of slots in the load balancer algorithm (10*65536, defaults to 10000).
|
|
250
250
|
*/
|
|
251
|
-
|
|
251
|
+
slots?: pulumi.Input<number>;
|
|
252
252
|
/**
|
|
253
253
|
* A list of strings associated with the Upstream for grouping and filtering.
|
|
254
254
|
*/
|
|
255
|
-
|
|
255
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
256
256
|
}
|
|
257
257
|
/**
|
|
258
258
|
* The set of arguments for constructing a Upstream resource.
|
|
@@ -261,23 +261,23 @@ export interface UpstreamArgs {
|
|
|
261
261
|
/**
|
|
262
262
|
* The ID of the client certificate to use (from certificate resource) while TLS handshaking to the upstream server.
|
|
263
263
|
*/
|
|
264
|
-
|
|
264
|
+
clientCertificateId?: pulumi.Input<string>;
|
|
265
265
|
/**
|
|
266
266
|
* is a hashing input type if the primary `hashOn` does not return a hash (eg. header is missing, or no consumer identified). One of: `none`, `consumer`, `ip`, `header`, or `cookie`. Not available if `hashOn` is set to `cookie`. Defaults to `none`.
|
|
267
267
|
*/
|
|
268
|
-
|
|
268
|
+
hashFallback?: pulumi.Input<string>;
|
|
269
269
|
/**
|
|
270
270
|
* is a header name to take the value from as hash input. Only required when `hashFallback` is set to `header`. Default `nil`.
|
|
271
271
|
*/
|
|
272
|
-
|
|
272
|
+
hashFallbackHeader?: pulumi.Input<string>;
|
|
273
273
|
/**
|
|
274
274
|
* is a hashing input type: `none `(resulting in a weighted*round*robin scheme with no hashing), `consumer`, `ip`, `header`, or `cookie`. Defaults to `none`.
|
|
275
275
|
*/
|
|
276
|
-
|
|
276
|
+
hashOn?: pulumi.Input<string>;
|
|
277
277
|
/**
|
|
278
278
|
* is a cookie name to take the value from as hash input. Only required when `hashOn` or `hashFallback` is set to `cookie`. If the specified cookie is not in the request, Kong will generate a value and set the cookie in the response. Default `nil`.
|
|
279
279
|
*/
|
|
280
|
-
|
|
280
|
+
hashOnCookie?: pulumi.Input<string>;
|
|
281
281
|
/**
|
|
282
282
|
* is a cookie path to set in the response headers. Only required when `hashOn` or `hashFallback` is set to `cookie`. Defaults to `/`.
|
|
283
283
|
* * `healthchecks.active.type` - (Optional) is a active health check type. HTTP or HTTPS, or just attempt a TCP connection. Possible values are `tcp`, `http` or `https`. Defaults to `http`.
|
|
@@ -302,26 +302,26 @@ export interface UpstreamArgs {
|
|
|
302
302
|
* * `healthchecks.passive.unhealthy.timeouts` - (Optional) is a number of timeouts in proxied traffic to consider a target unhealthy, as observed by passive health checks. Defaults to `0`.
|
|
303
303
|
* * `healthchecks.passive.unhealthy.http_statuses` - (Optional) is an array of HTTP statuses which represent unhealthiness when produced by proxied traffic, as observed by passive health checks. Defaults to `[429, 500, 503]`.
|
|
304
304
|
*/
|
|
305
|
-
|
|
305
|
+
hashOnCookiePath?: pulumi.Input<string>;
|
|
306
306
|
/**
|
|
307
307
|
* is a header name to take the value from as hash input. Only required when `hashOn` is set to `header`. Default `nil`.
|
|
308
308
|
*/
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
hashOnHeader?: pulumi.Input<string>;
|
|
310
|
+
healthchecks?: pulumi.Input<inputs.UpstreamHealthchecks>;
|
|
311
311
|
/**
|
|
312
312
|
* The hostname to be used as Host header when proxying requests through Kong.
|
|
313
313
|
*/
|
|
314
|
-
|
|
314
|
+
hostHeader?: pulumi.Input<string>;
|
|
315
315
|
/**
|
|
316
316
|
* is a hostname, which must be equal to the host of a Service.
|
|
317
317
|
*/
|
|
318
|
-
|
|
318
|
+
name?: pulumi.Input<string>;
|
|
319
319
|
/**
|
|
320
320
|
* is the number of slots in the load balancer algorithm (10*65536, defaults to 10000).
|
|
321
321
|
*/
|
|
322
|
-
|
|
322
|
+
slots?: pulumi.Input<number>;
|
|
323
323
|
/**
|
|
324
324
|
* A list of strings associated with the Upstream for grouping and filtering.
|
|
325
325
|
*/
|
|
326
|
-
|
|
326
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
327
327
|
}
|