@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.
Files changed (52) hide show
  1. package/README.md +1 -1
  2. package/certificate.d.ts +8 -8
  3. package/certificate.js +12 -13
  4. package/certificate.js.map +1 -1
  5. package/config/index.js +11 -4
  6. package/config/index.js.map +1 -1
  7. package/config/vars.d.ts +8 -8
  8. package/config/vars.js +51 -33
  9. package/config/vars.js.map +1 -1
  10. package/consumer.d.ts +6 -6
  11. package/consumer.js +10 -11
  12. package/consumer.js.map +1 -1
  13. package/consumerAcl.d.ts +6 -6
  14. package/consumerAcl.js +10 -11
  15. package/consumerAcl.js.map +1 -1
  16. package/consumerBasicAuth.d.ts +8 -8
  17. package/consumerBasicAuth.js +12 -13
  18. package/consumerBasicAuth.js.map +1 -1
  19. package/consumerJwtAuth.d.ts +12 -12
  20. package/consumerJwtAuth.js +16 -17
  21. package/consumerJwtAuth.js.map +1 -1
  22. package/consumerKeyAuth.d.ts +98 -0
  23. package/consumerKeyAuth.js +82 -0
  24. package/consumerKeyAuth.js.map +1 -0
  25. package/index.d.ts +1 -0
  26. package/index.js +27 -14
  27. package/index.js.map +1 -1
  28. package/package.json +4 -3
  29. package/package.json.bak +5 -3
  30. package/package.json.dev +6 -4
  31. package/plugin.d.ts +70 -32
  32. package/plugin.js +22 -33
  33. package/plugin.js.map +1 -1
  34. package/provider.d.ts +32 -8
  35. package/provider.js +12 -13
  36. package/provider.js.map +1 -1
  37. package/route.d.ts +36 -36
  38. package/route.js +40 -41
  39. package/route.js.map +1 -1
  40. package/service.d.ts +154 -44
  41. package/service.js +32 -49
  42. package/service.js.map +1 -1
  43. package/target.d.ts +8 -8
  44. package/target.js +12 -13
  45. package/target.js.map +1 -1
  46. package/types/index.js +1 -0
  47. package/types/index.js.map +1 -1
  48. package/upstream.d.ts +24 -24
  49. package/upstream.js +28 -29
  50. package/upstream.js.map +1 -1
  51. package/utilities.js +6 -0
  52. 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
- readonly caCertificateIds?: pulumi.Input<pulumi.Input<string>[]>;
131
- readonly clientCertificateId?: pulumi.Input<string>;
132
- readonly connectTimeout?: pulumi.Input<number>;
133
- readonly host?: pulumi.Input<string>;
134
- readonly name?: pulumi.Input<string>;
135
- readonly path?: pulumi.Input<string>;
136
- readonly port?: pulumi.Input<number>;
137
- readonly protocol?: pulumi.Input<string>;
138
- readonly readTimeout?: pulumi.Input<number>;
139
- readonly retries?: pulumi.Input<number>;
140
- readonly tags?: pulumi.Input<pulumi.Input<string>[]>;
141
- readonly tlsVerify?: pulumi.Input<boolean>;
142
- readonly tlsVerifyDepth?: pulumi.Input<number>;
143
- readonly writeTimeout?: pulumi.Input<number>;
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
- readonly caCertificateIds?: pulumi.Input<pulumi.Input<string>[]>;
150
- readonly clientCertificateId?: pulumi.Input<string>;
151
- readonly connectTimeout?: pulumi.Input<number>;
152
- readonly host?: pulumi.Input<string>;
153
- readonly name?: pulumi.Input<string>;
154
- readonly path?: pulumi.Input<string>;
155
- readonly port?: pulumi.Input<number>;
156
- readonly protocol: pulumi.Input<string>;
157
- readonly readTimeout?: pulumi.Input<number>;
158
- readonly retries?: pulumi.Input<number>;
159
- readonly tags?: pulumi.Input<pulumi.Input<string>[]>;
160
- readonly tlsVerify?: pulumi.Input<boolean>;
161
- readonly tlsVerifyDepth?: pulumi.Input<number>;
162
- readonly writeTimeout?: pulumi.Input<number>;
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 inputs = {};
79
+ let resourceInputs = {};
95
80
  opts = opts || {};
96
81
  if (opts.id) {
97
82
  const state = argsOrState;
98
- inputs["caCertificateIds"] = state ? state.caCertificateIds : undefined;
99
- inputs["clientCertificateId"] = state ? state.clientCertificateId : undefined;
100
- inputs["connectTimeout"] = state ? state.connectTimeout : undefined;
101
- inputs["host"] = state ? state.host : undefined;
102
- inputs["name"] = state ? state.name : undefined;
103
- inputs["path"] = state ? state.path : undefined;
104
- inputs["port"] = state ? state.port : undefined;
105
- inputs["protocol"] = state ? state.protocol : undefined;
106
- inputs["readTimeout"] = state ? state.readTimeout : undefined;
107
- inputs["retries"] = state ? state.retries : undefined;
108
- inputs["tags"] = state ? state.tags : undefined;
109
- inputs["tlsVerify"] = state ? state.tlsVerify : undefined;
110
- inputs["tlsVerifyDepth"] = state ? state.tlsVerifyDepth : undefined;
111
- inputs["writeTimeout"] = state ? state.writeTimeout : undefined;
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
- inputs["caCertificateIds"] = args ? args.caCertificateIds : undefined;
119
- inputs["clientCertificateId"] = args ? args.clientCertificateId : undefined;
120
- inputs["connectTimeout"] = args ? args.connectTimeout : undefined;
121
- inputs["host"] = args ? args.host : undefined;
122
- inputs["name"] = args ? args.name : undefined;
123
- inputs["path"] = args ? args.path : undefined;
124
- inputs["port"] = args ? args.port : undefined;
125
- inputs["protocol"] = args ? args.protocol : undefined;
126
- inputs["readTimeout"] = args ? args.readTimeout : undefined;
127
- inputs["retries"] = args ? args.retries : undefined;
128
- inputs["tags"] = args ? args.tags : undefined;
129
- inputs["tlsVerify"] = args ? args.tlsVerify : undefined;
130
- inputs["tlsVerifyDepth"] = args ? args.tlsVerifyDepth : undefined;
131
- inputs["writeTimeout"] = args ? args.writeTimeout : undefined;
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
- super(Service.__pulumiType, name, inputs, opts);
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;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAmD9C,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,MAAM,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,MAAM,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,MAAM,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC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nE,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
- readonly tags?: pulumi.Input<pulumi.Input<string>[]>;
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
- readonly target?: pulumi.Input<string>;
76
+ target?: pulumi.Input<string>;
77
77
  /**
78
78
  * is the id of the upstream to apply this target to.
79
79
  */
80
- readonly upstreamId?: pulumi.Input<string>;
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
- readonly weight?: pulumi.Input<number>;
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
- readonly tags?: pulumi.Input<pulumi.Input<string>[]>;
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
- readonly target: pulumi.Input<string>;
97
+ target: pulumi.Input<string>;
98
98
  /**
99
99
  * is the id of the upstream to apply this target to.
100
100
  */
101
- readonly upstreamId: pulumi.Input<string>;
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
- readonly weight: pulumi.Input<number>;
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 inputs = {};
32
+ let resourceInputs = {};
32
33
  opts = opts || {};
33
34
  if (opts.id) {
34
35
  const state = argsOrState;
35
- inputs["tags"] = state ? state.tags : undefined;
36
- inputs["target"] = state ? state.target : undefined;
37
- inputs["upstreamId"] = state ? state.upstreamId : undefined;
38
- inputs["weight"] = state ? state.weight : undefined;
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
- inputs["tags"] = args ? args.tags : undefined;
52
- inputs["target"] = args ? args.target : undefined;
53
- inputs["upstreamId"] = args ? args.upstreamId : undefined;
54
- inputs["weight"] = args ? args.weight : undefined;
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
- if (!opts.version) {
57
- opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
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;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAqD7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,MAAM,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CA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D;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;
@@ -1 +1 @@
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"}
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
- readonly clientCertificateId?: pulumi.Input<string>;
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
- readonly hashFallback?: pulumi.Input<string>;
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
- readonly hashFallbackHeader?: pulumi.Input<string>;
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
- readonly hashOn?: pulumi.Input<string>;
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
- readonly hashOnCookie?: pulumi.Input<string>;
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
- readonly hashOnCookiePath?: pulumi.Input<string>;
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
- readonly hashOnHeader?: pulumi.Input<string>;
239
- readonly healthchecks?: pulumi.Input<inputs.UpstreamHealthchecks>;
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
- readonly hostHeader?: pulumi.Input<string>;
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
- readonly name?: pulumi.Input<string>;
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
- readonly slots?: pulumi.Input<number>;
251
+ slots?: pulumi.Input<number>;
252
252
  /**
253
253
  * A list of strings associated with the Upstream for grouping and filtering.
254
254
  */
255
- readonly tags?: pulumi.Input<pulumi.Input<string>[]>;
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
- readonly clientCertificateId?: pulumi.Input<string>;
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
- readonly hashFallback?: pulumi.Input<string>;
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
- readonly hashFallbackHeader?: pulumi.Input<string>;
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
- readonly hashOn?: pulumi.Input<string>;
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
- readonly hashOnCookie?: pulumi.Input<string>;
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
- readonly hashOnCookiePath?: pulumi.Input<string>;
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
- readonly hashOnHeader?: pulumi.Input<string>;
310
- readonly healthchecks?: pulumi.Input<inputs.UpstreamHealthchecks>;
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
- readonly hostHeader?: pulumi.Input<string>;
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
- readonly name?: pulumi.Input<string>;
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
- readonly slots?: pulumi.Input<number>;
322
+ slots?: pulumi.Input<number>;
323
323
  /**
324
324
  * A list of strings associated with the Upstream for grouping and filtering.
325
325
  */
326
- readonly tags?: pulumi.Input<pulumi.Input<string>[]>;
326
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
327
327
  }