@pulumi/kong 4.4.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/certificate.js +11 -13
- package/certificate.js.map +1 -1
- package/config/vars.js.map +1 -1
- package/consumer.js +9 -11
- package/consumer.js.map +1 -1
- package/consumerAcl.js +9 -11
- package/consumerAcl.js.map +1 -1
- package/consumerBasicAuth.js +11 -13
- package/consumerBasicAuth.js.map +1 -1
- package/consumerJwtAuth.js +15 -17
- package/consumerJwtAuth.js.map +1 -1
- package/consumerKeyAuth.js +9 -11
- package/consumerKeyAuth.js.map +1 -1
- package/package.json +2 -2
- package/package.json.bak +2 -1
- package/package.json.dev +3 -2
- package/plugin.d.ts +51 -13
- package/plugin.js +21 -33
- package/plugin.js.map +1 -1
- package/provider.js +11 -13
- package/provider.js.map +1 -1
- package/route.js +39 -41
- package/route.js.map +1 -1
- package/service.d.ts +126 -16
- package/service.js +31 -49
- package/service.js.map +1 -1
- package/target.js +11 -13
- package/target.js.map +1 -1
- package/upstream.js +27 -29
- package/upstream.js.map +1 -1
- package/utilities.js +6 -1
- package/utilities.js.map +1 -1
package/provider.js
CHANGED
|
@@ -21,25 +21,23 @@ class Provider extends pulumi.ProviderResource {
|
|
|
21
21
|
*/
|
|
22
22
|
constructor(name, args, opts) {
|
|
23
23
|
var _a, _b;
|
|
24
|
-
let
|
|
24
|
+
let resourceInputs = {};
|
|
25
25
|
opts = opts || {};
|
|
26
26
|
{
|
|
27
27
|
if ((!args || args.kongAdminUri === undefined) && !opts.urn) {
|
|
28
28
|
throw new Error("Missing required property 'kongAdminUri'");
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
resourceInputs["kongAdminPassword"] = args ? args.kongAdminPassword : undefined;
|
|
31
|
+
resourceInputs["kongAdminToken"] = args ? args.kongAdminToken : undefined;
|
|
32
|
+
resourceInputs["kongAdminUri"] = args ? args.kongAdminUri : undefined;
|
|
33
|
+
resourceInputs["kongAdminUsername"] = args ? args.kongAdminUsername : undefined;
|
|
34
|
+
resourceInputs["kongApiKey"] = args ? args.kongApiKey : undefined;
|
|
35
|
+
resourceInputs["kongWorkspace"] = args ? args.kongWorkspace : undefined;
|
|
36
|
+
resourceInputs["strictPluginsMatch"] = pulumi.output((_a = (args ? args.strictPluginsMatch : undefined)) !== null && _a !== void 0 ? _a : utilities.getEnvBoolean("STRICT_PLUGINS_MATCH")).apply(JSON.stringify);
|
|
37
|
+
resourceInputs["tlsSkipVerify"] = pulumi.output((_b = (args ? args.tlsSkipVerify : undefined)) !== null && _b !== void 0 ? _b : (utilities.getEnvBoolean("TLS_SKIP_VERIFY") || false)).apply(JSON.stringify);
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
super(Provider.__pulumiType, name, inputs, opts);
|
|
39
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
40
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
43
41
|
}
|
|
44
42
|
/**
|
|
45
43
|
* Returns true if the given object is an instance of Provider. This is designed to work even
|
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;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAwCjD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAA6B;;QACvE,IAAI,
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAK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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;IA7DD;;;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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AAbL,4BAkEC;AAjEG,gBAAgB;AACO,qBAAY,GAAG,MAAM,CAAC"}
|
package/route.js
CHANGED
|
@@ -81,28 +81,28 @@ const utilities = require("./utilities");
|
|
|
81
81
|
*/
|
|
82
82
|
class Route extends pulumi.CustomResource {
|
|
83
83
|
constructor(name, argsOrState, opts) {
|
|
84
|
-
let
|
|
84
|
+
let resourceInputs = {};
|
|
85
85
|
opts = opts || {};
|
|
86
86
|
if (opts.id) {
|
|
87
87
|
const state = argsOrState;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
88
|
+
resourceInputs["destinations"] = state ? state.destinations : undefined;
|
|
89
|
+
resourceInputs["headers"] = state ? state.headers : undefined;
|
|
90
|
+
resourceInputs["hosts"] = state ? state.hosts : undefined;
|
|
91
|
+
resourceInputs["httpsRedirectStatusCode"] = state ? state.httpsRedirectStatusCode : undefined;
|
|
92
|
+
resourceInputs["methods"] = state ? state.methods : undefined;
|
|
93
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
94
|
+
resourceInputs["pathHandling"] = state ? state.pathHandling : undefined;
|
|
95
|
+
resourceInputs["paths"] = state ? state.paths : undefined;
|
|
96
|
+
resourceInputs["preserveHost"] = state ? state.preserveHost : undefined;
|
|
97
|
+
resourceInputs["protocols"] = state ? state.protocols : undefined;
|
|
98
|
+
resourceInputs["regexPriority"] = state ? state.regexPriority : undefined;
|
|
99
|
+
resourceInputs["requestBuffering"] = state ? state.requestBuffering : undefined;
|
|
100
|
+
resourceInputs["responseBuffering"] = state ? state.responseBuffering : undefined;
|
|
101
|
+
resourceInputs["serviceId"] = state ? state.serviceId : undefined;
|
|
102
|
+
resourceInputs["snis"] = state ? state.snis : undefined;
|
|
103
|
+
resourceInputs["sources"] = state ? state.sources : undefined;
|
|
104
|
+
resourceInputs["stripPath"] = state ? state.stripPath : undefined;
|
|
105
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
106
106
|
}
|
|
107
107
|
else {
|
|
108
108
|
const args = argsOrState;
|
|
@@ -112,29 +112,27 @@ class Route extends pulumi.CustomResource {
|
|
|
112
112
|
if ((!args || args.serviceId === undefined) && !opts.urn) {
|
|
113
113
|
throw new Error("Missing required property 'serviceId'");
|
|
114
114
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
115
|
+
resourceInputs["destinations"] = args ? args.destinations : undefined;
|
|
116
|
+
resourceInputs["headers"] = args ? args.headers : undefined;
|
|
117
|
+
resourceInputs["hosts"] = args ? args.hosts : undefined;
|
|
118
|
+
resourceInputs["httpsRedirectStatusCode"] = args ? args.httpsRedirectStatusCode : undefined;
|
|
119
|
+
resourceInputs["methods"] = args ? args.methods : undefined;
|
|
120
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
121
|
+
resourceInputs["pathHandling"] = args ? args.pathHandling : undefined;
|
|
122
|
+
resourceInputs["paths"] = args ? args.paths : undefined;
|
|
123
|
+
resourceInputs["preserveHost"] = args ? args.preserveHost : undefined;
|
|
124
|
+
resourceInputs["protocols"] = args ? args.protocols : undefined;
|
|
125
|
+
resourceInputs["regexPriority"] = args ? args.regexPriority : undefined;
|
|
126
|
+
resourceInputs["requestBuffering"] = args ? args.requestBuffering : undefined;
|
|
127
|
+
resourceInputs["responseBuffering"] = args ? args.responseBuffering : undefined;
|
|
128
|
+
resourceInputs["serviceId"] = args ? args.serviceId : undefined;
|
|
129
|
+
resourceInputs["snis"] = args ? args.snis : undefined;
|
|
130
|
+
resourceInputs["sources"] = args ? args.sources : undefined;
|
|
131
|
+
resourceInputs["stripPath"] = args ? args.stripPath : undefined;
|
|
132
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
super(Route.__pulumiType, name, inputs, opts);
|
|
134
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
135
|
+
super(Route.__pulumiType, name, resourceInputs, opts);
|
|
138
136
|
}
|
|
139
137
|
/**
|
|
140
138
|
* Get an existing Route resource's state with the given name, ID, and optional extra
|
package/route.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../route.ts"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AC,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;IAhKD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;;AA1BL,sBAkKC;AApJG,gBAAgB;AACO,kBAAY,GAAG,wBAAwB,CAAC"}
|
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 {
|
|
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
|
+
*/
|
|
130
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
|
+
*/
|
|
131
163
|
clientCertificateId?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* Connection timeout. Default(ms): 60000
|
|
166
|
+
*/
|
|
132
167
|
connectTimeout?: pulumi.Input<number>;
|
|
168
|
+
/**
|
|
169
|
+
* Host to map to
|
|
170
|
+
*/
|
|
133
171
|
host?: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* Service name
|
|
174
|
+
*/
|
|
134
175
|
name?: pulumi.Input<string>;
|
|
176
|
+
/**
|
|
177
|
+
* Path to map to
|
|
178
|
+
*/
|
|
135
179
|
path?: pulumi.Input<string>;
|
|
180
|
+
/**
|
|
181
|
+
* Port to map to. Default: 80
|
|
182
|
+
*/
|
|
136
183
|
port?: pulumi.Input<number>;
|
|
184
|
+
/**
|
|
185
|
+
* Protocol to use
|
|
186
|
+
*/
|
|
137
187
|
protocol?: pulumi.Input<string>;
|
|
188
|
+
/**
|
|
189
|
+
* Read timeout. Default(ms): 60000
|
|
190
|
+
*/
|
|
138
191
|
readTimeout?: pulumi.Input<number>;
|
|
192
|
+
/**
|
|
193
|
+
* Number of retries. Default: 5
|
|
194
|
+
*/
|
|
139
195
|
retries?: pulumi.Input<number>;
|
|
196
|
+
/**
|
|
197
|
+
* A list of strings associated with the Service for grouping and filtering.
|
|
198
|
+
*/
|
|
140
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
|
+
*/
|
|
141
203
|
tlsVerify?: pulumi.Input<boolean>;
|
|
204
|
+
/**
|
|
205
|
+
* Maximum depth of chain while verifying Upstream server’s TLS certificate.
|
|
206
|
+
*/
|
|
142
207
|
tlsVerifyDepth?: pulumi.Input<number>;
|
|
208
|
+
/**
|
|
209
|
+
* Write timout. Default(ms): 60000
|
|
210
|
+
*/
|
|
143
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 {
|
|
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
|
+
*/
|
|
149
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
|
+
*/
|
|
150
224
|
clientCertificateId?: pulumi.Input<string>;
|
|
225
|
+
/**
|
|
226
|
+
* Connection timeout. Default(ms): 60000
|
|
227
|
+
*/
|
|
151
228
|
connectTimeout?: pulumi.Input<number>;
|
|
229
|
+
/**
|
|
230
|
+
* Host to map to
|
|
231
|
+
*/
|
|
152
232
|
host?: pulumi.Input<string>;
|
|
233
|
+
/**
|
|
234
|
+
* Service name
|
|
235
|
+
*/
|
|
153
236
|
name?: pulumi.Input<string>;
|
|
237
|
+
/**
|
|
238
|
+
* Path to map to
|
|
239
|
+
*/
|
|
154
240
|
path?: pulumi.Input<string>;
|
|
241
|
+
/**
|
|
242
|
+
* Port to map to. Default: 80
|
|
243
|
+
*/
|
|
155
244
|
port?: pulumi.Input<number>;
|
|
245
|
+
/**
|
|
246
|
+
* Protocol to use
|
|
247
|
+
*/
|
|
156
248
|
protocol: pulumi.Input<string>;
|
|
249
|
+
/**
|
|
250
|
+
* Read timeout. Default(ms): 60000
|
|
251
|
+
*/
|
|
157
252
|
readTimeout?: pulumi.Input<number>;
|
|
253
|
+
/**
|
|
254
|
+
* Number of retries. Default: 5
|
|
255
|
+
*/
|
|
158
256
|
retries?: pulumi.Input<number>;
|
|
257
|
+
/**
|
|
258
|
+
* A list of strings associated with the Service for grouping and filtering.
|
|
259
|
+
*/
|
|
159
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
|
+
*/
|
|
160
264
|
tlsVerify?: pulumi.Input<boolean>;
|
|
265
|
+
/**
|
|
266
|
+
* Maximum depth of chain while verifying Upstream server’s TLS certificate.
|
|
267
|
+
*/
|
|
161
268
|
tlsVerifyDepth?: pulumi.Input<number>;
|
|
269
|
+
/**
|
|
270
|
+
* Write timout. Default(ms): 60000
|
|
271
|
+
*/
|
|
162
272
|
writeTimeout?: pulumi.Input<number>;
|
|
163
273
|
}
|
package/service.js
CHANGED
|
@@ -65,22 +65,6 @@ const utilities = require("./utilities");
|
|
|
65
65
|
* caCertificateIds: [ca.id],
|
|
66
66
|
* });
|
|
67
67
|
* ```
|
|
68
|
-
* ## Argument reference
|
|
69
|
-
*
|
|
70
|
-
* * `name` - (Required) Service name
|
|
71
|
-
* * `protocol` - (Required) Protocol to use
|
|
72
|
-
* * `host` - (Optional) Host to map to
|
|
73
|
-
* * `port` - (Optional, int) Port to map to. Default: 80
|
|
74
|
-
* * `path` - (Optional) Path to map to
|
|
75
|
-
* * `retries` - (Optional, int) Number of retries. Default: 5
|
|
76
|
-
* * `connectTimeout` - (Optional, int) Connection timeout. Default(ms): 60000
|
|
77
|
-
* * `writeTimeout` - (Optional, int) Write timout. Default(ms): 60000
|
|
78
|
-
* * `readTimeout` - (Optional, int) Read timeout. Default(ms): 60000
|
|
79
|
-
* * `tags` - (Optional) A list of strings associated with the Service for grouping and filtering.
|
|
80
|
-
* * `clientCertificateId` - (Optional) ID of Certificate to be used as client certificate while TLS handshaking to the upstream server. Use ID from `kong.Certificate` resource
|
|
81
|
-
* * `tlsVerify` - (Optional) Whether to enable verification of upstream server TLS certificate. If not set then the nginx default is respected.
|
|
82
|
-
* * `tlsVerifyDepth` - (Optional) Maximum depth of chain while verifying Upstream server’s TLS certificate.
|
|
83
|
-
* * `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.
|
|
84
68
|
*
|
|
85
69
|
* ## Import
|
|
86
70
|
*
|
|
@@ -92,49 +76,47 @@ const utilities = require("./utilities");
|
|
|
92
76
|
*/
|
|
93
77
|
class Service extends pulumi.CustomResource {
|
|
94
78
|
constructor(name, argsOrState, opts) {
|
|
95
|
-
let
|
|
79
|
+
let resourceInputs = {};
|
|
96
80
|
opts = opts || {};
|
|
97
81
|
if (opts.id) {
|
|
98
82
|
const state = argsOrState;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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;
|
|
113
97
|
}
|
|
114
98
|
else {
|
|
115
99
|
const args = argsOrState;
|
|
116
100
|
if ((!args || args.protocol === undefined) && !opts.urn) {
|
|
117
101
|
throw new Error("Missing required property 'protocol'");
|
|
118
102
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
if (!opts.version) {
|
|
135
|
-
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;
|
|
136
117
|
}
|
|
137
|
-
|
|
118
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
119
|
+
super(Service.__pulumiType, name, resourceInputs, opts);
|
|
138
120
|
}
|
|
139
121
|
/**
|
|
140
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;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IA6F9C,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CA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YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,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.js
CHANGED
|
@@ -29,14 +29,14 @@ const utilities = require("./utilities");
|
|
|
29
29
|
*/
|
|
30
30
|
class Target extends pulumi.CustomResource {
|
|
31
31
|
constructor(name, argsOrState, opts) {
|
|
32
|
-
let
|
|
32
|
+
let resourceInputs = {};
|
|
33
33
|
opts = opts || {};
|
|
34
34
|
if (opts.id) {
|
|
35
35
|
const state = argsOrState;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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;
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
42
42
|
const args = argsOrState;
|
|
@@ -49,15 +49,13 @@ class Target extends pulumi.CustomResource {
|
|
|
49
49
|
if ((!args || args.weight === undefined) && !opts.urn) {
|
|
50
50
|
throw new Error("Missing required property 'weight'");
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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;
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
super(Target.__pulumiType, name, inputs, opts);
|
|
57
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
58
|
+
super(Target.__pulumiType, name, resourceInputs, opts);
|
|
61
59
|
}
|
|
62
60
|
/**
|
|
63
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;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAqD7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,
|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