@pulumi/kong 4.5.0 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/certificate.d.ts +4 -2
- package/certificate.js +29 -25
- package/certificate.js.map +1 -1
- package/config/vars.d.ts +1 -1
- package/consumer.d.ts +4 -2
- package/consumer.js +22 -20
- package/consumer.js.map +1 -1
- package/consumerAcl.d.ts +7 -6
- package/consumerAcl.js +29 -28
- package/consumerAcl.js.map +1 -1
- package/consumerBasicAuth.d.ts +5 -3
- package/consumerBasicAuth.js +27 -25
- package/consumerBasicAuth.js.map +1 -1
- package/consumerJwtAuth.d.ts +7 -6
- package/consumerJwtAuth.js +29 -28
- package/consumerJwtAuth.js.map +1 -1
- package/consumerKeyAuth.d.ts +2 -0
- package/consumerKeyAuth.js +25 -21
- package/consumerKeyAuth.js.map +1 -1
- package/consumerOauth2.d.ts +7 -6
- package/consumerOauth2.js +29 -28
- package/consumerOauth2.js.map +1 -1
- package/index.d.ts +39 -13
- package/index.js +40 -56
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/package.json.bak +3 -3
- package/plugin.d.ts +20 -10
- package/plugin.js +42 -32
- package/plugin.js.map +1 -1
- package/provider.js +10 -10
- package/provider.js.map +1 -1
- package/route.d.ts +8 -3
- package/route.js +28 -24
- package/route.js.map +1 -1
- package/service.d.ts +6 -2
- package/service.js +28 -24
- package/service.js.map +1 -1
- package/target.d.ts +5 -3
- package/target.js +27 -25
- package/target.js.map +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +1 -1
- package/types/output.d.ts +1 -1
- package/upstream.d.ts +6 -3
- package/upstream.js +26 -24
- package/upstream.js.map +1 -1
- package/utilities.d.ts +4 -0
- package/utilities.js +45 -1
- package/utilities.js.map +1 -1
- package/package.json.dev +0 -27
- package/scripts/install-pulumi-plugin.js +0 -21
package/certificate.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
|
9
|
+
* <!--Start PulumiCodeChooser -->
|
|
9
10
|
* ```typescript
|
|
10
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
12
|
* import * as kong from "@pulumi/kong";
|
|
@@ -20,13 +21,14 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
20
21
|
* tags: ["myTag"],
|
|
21
22
|
* });
|
|
22
23
|
* ```
|
|
24
|
+
* <!--End PulumiCodeChooser -->
|
|
23
25
|
*
|
|
24
26
|
* ## Import
|
|
25
27
|
*
|
|
26
|
-
* To import a certificate
|
|
28
|
+
* To import a certificate:
|
|
27
29
|
*
|
|
28
30
|
* ```sh
|
|
29
|
-
*
|
|
31
|
+
* $ pulumi import kong:index/certificate:Certificate <certifcate_identifier> <certificate_id>
|
|
30
32
|
* ```
|
|
31
33
|
*/
|
|
32
34
|
export declare class Certificate extends pulumi.CustomResource {
|
package/certificate.js
CHANGED
|
@@ -12,6 +12,7 @@ const utilities = require("./utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* ## Example Usage
|
|
14
14
|
*
|
|
15
|
+
* <!--Start PulumiCodeChooser -->
|
|
15
16
|
* ```typescript
|
|
16
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
18
|
* import * as kong from "@pulumi/kong";
|
|
@@ -26,39 +27,17 @@ const utilities = require("./utilities");
|
|
|
26
27
|
* tags: ["myTag"],
|
|
27
28
|
* });
|
|
28
29
|
* ```
|
|
30
|
+
* <!--End PulumiCodeChooser -->
|
|
29
31
|
*
|
|
30
32
|
* ## Import
|
|
31
33
|
*
|
|
32
|
-
* To import a certificate
|
|
34
|
+
* To import a certificate:
|
|
33
35
|
*
|
|
34
36
|
* ```sh
|
|
35
|
-
*
|
|
37
|
+
* $ pulumi import kong:index/certificate:Certificate <certifcate_identifier> <certificate_id>
|
|
36
38
|
* ```
|
|
37
39
|
*/
|
|
38
40
|
class Certificate extends pulumi.CustomResource {
|
|
39
|
-
constructor(name, argsOrState, opts) {
|
|
40
|
-
let resourceInputs = {};
|
|
41
|
-
opts = opts || {};
|
|
42
|
-
if (opts.id) {
|
|
43
|
-
const state = argsOrState;
|
|
44
|
-
resourceInputs["certificate"] = state ? state.certificate : undefined;
|
|
45
|
-
resourceInputs["privateKey"] = state ? state.privateKey : undefined;
|
|
46
|
-
resourceInputs["snis"] = state ? state.snis : undefined;
|
|
47
|
-
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
const args = argsOrState;
|
|
51
|
-
if ((!args || args.certificate === undefined) && !opts.urn) {
|
|
52
|
-
throw new Error("Missing required property 'certificate'");
|
|
53
|
-
}
|
|
54
|
-
resourceInputs["certificate"] = args ? args.certificate : undefined;
|
|
55
|
-
resourceInputs["privateKey"] = args ? args.privateKey : undefined;
|
|
56
|
-
resourceInputs["snis"] = args ? args.snis : undefined;
|
|
57
|
-
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
58
|
-
}
|
|
59
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
60
|
-
super(Certificate.__pulumiType, name, resourceInputs, opts);
|
|
61
|
-
}
|
|
62
41
|
/**
|
|
63
42
|
* Get an existing Certificate resource's state with the given name, ID, and optional extra
|
|
64
43
|
* properties used to qualify the lookup.
|
|
@@ -81,6 +60,31 @@ class Certificate extends pulumi.CustomResource {
|
|
|
81
60
|
}
|
|
82
61
|
return obj['__pulumiType'] === Certificate.__pulumiType;
|
|
83
62
|
}
|
|
63
|
+
constructor(name, argsOrState, opts) {
|
|
64
|
+
let resourceInputs = {};
|
|
65
|
+
opts = opts || {};
|
|
66
|
+
if (opts.id) {
|
|
67
|
+
const state = argsOrState;
|
|
68
|
+
resourceInputs["certificate"] = state ? state.certificate : undefined;
|
|
69
|
+
resourceInputs["privateKey"] = state ? state.privateKey : undefined;
|
|
70
|
+
resourceInputs["snis"] = state ? state.snis : undefined;
|
|
71
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
const args = argsOrState;
|
|
75
|
+
if ((!args || args.certificate === undefined) && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'certificate'");
|
|
77
|
+
}
|
|
78
|
+
resourceInputs["certificate"] = args ? args.certificate : undefined;
|
|
79
|
+
resourceInputs["privateKey"] = (args === null || args === void 0 ? void 0 : args.privateKey) ? pulumi.secret(args.privateKey) : undefined;
|
|
80
|
+
resourceInputs["snis"] = args ? args.snis : undefined;
|
|
81
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
82
|
+
}
|
|
83
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
84
|
+
const secretOpts = { additionalSecretOutputs: ["privateKey"] };
|
|
85
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
86
|
+
super(Certificate.__pulumiType, name, resourceInputs, opts);
|
|
87
|
+
}
|
|
84
88
|
}
|
|
85
89
|
exports.Certificate = Certificate;
|
|
86
90
|
/** @internal */
|
package/certificate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificate.js","sourceRoot":"","sources":["../certificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"certificate.js","sourceRoot":"","sources":["../certificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAA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;YACpE,cAAc,CAAC,YAAY,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,UAAU,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAC7F,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,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,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAzEL,kCA0EC;AA5DG,gBAAgB;AACO,wBAAY,GAAG,oCAAoC,CAAC"}
|
package/config/vars.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare const kongApiKey: string | undefined;
|
|
|
23
23
|
*/
|
|
24
24
|
export declare const kongWorkspace: string | undefined;
|
|
25
25
|
/**
|
|
26
|
-
* Should plugins `
|
|
26
|
+
* Should plugins `configJson` field strictly match plugin configuration
|
|
27
27
|
*/
|
|
28
28
|
export declare const strictPluginsMatch: boolean | undefined;
|
|
29
29
|
/**
|
package/consumer.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
|
9
|
+
* <!--Start PulumiCodeChooser -->
|
|
9
10
|
* ```typescript
|
|
10
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
12
|
* import * as kong from "@pulumi/kong";
|
|
@@ -16,13 +17,14 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
16
17
|
* username: "User1",
|
|
17
18
|
* });
|
|
18
19
|
* ```
|
|
20
|
+
* <!--End PulumiCodeChooser -->
|
|
19
21
|
*
|
|
20
22
|
* ## Import
|
|
21
23
|
*
|
|
22
|
-
* To import a consumer
|
|
24
|
+
* To import a consumer:
|
|
23
25
|
*
|
|
24
26
|
* ```sh
|
|
25
|
-
*
|
|
27
|
+
* $ pulumi import kong:index/consumer:Consumer <consumer_identifier> <consumer_id>
|
|
26
28
|
* ```
|
|
27
29
|
*/
|
|
28
30
|
export declare class Consumer extends pulumi.CustomResource {
|
package/consumer.js
CHANGED
|
@@ -12,6 +12,7 @@ const utilities = require("./utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* ## Example Usage
|
|
14
14
|
*
|
|
15
|
+
* <!--Start PulumiCodeChooser -->
|
|
15
16
|
* ```typescript
|
|
16
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
18
|
* import * as kong from "@pulumi/kong";
|
|
@@ -22,34 +23,17 @@ const utilities = require("./utilities");
|
|
|
22
23
|
* username: "User1",
|
|
23
24
|
* });
|
|
24
25
|
* ```
|
|
26
|
+
* <!--End PulumiCodeChooser -->
|
|
25
27
|
*
|
|
26
28
|
* ## Import
|
|
27
29
|
*
|
|
28
|
-
* To import a consumer
|
|
30
|
+
* To import a consumer:
|
|
29
31
|
*
|
|
30
32
|
* ```sh
|
|
31
|
-
*
|
|
33
|
+
* $ pulumi import kong:index/consumer:Consumer <consumer_identifier> <consumer_id>
|
|
32
34
|
* ```
|
|
33
35
|
*/
|
|
34
36
|
class Consumer extends pulumi.CustomResource {
|
|
35
|
-
constructor(name, argsOrState, opts) {
|
|
36
|
-
let resourceInputs = {};
|
|
37
|
-
opts = opts || {};
|
|
38
|
-
if (opts.id) {
|
|
39
|
-
const state = argsOrState;
|
|
40
|
-
resourceInputs["customId"] = state ? state.customId : undefined;
|
|
41
|
-
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
42
|
-
resourceInputs["username"] = state ? state.username : undefined;
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
const args = argsOrState;
|
|
46
|
-
resourceInputs["customId"] = args ? args.customId : undefined;
|
|
47
|
-
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
48
|
-
resourceInputs["username"] = args ? args.username : undefined;
|
|
49
|
-
}
|
|
50
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
51
|
-
super(Consumer.__pulumiType, name, resourceInputs, opts);
|
|
52
|
-
}
|
|
53
37
|
/**
|
|
54
38
|
* Get an existing Consumer resource's state with the given name, ID, and optional extra
|
|
55
39
|
* properties used to qualify the lookup.
|
|
@@ -72,6 +56,24 @@ class Consumer extends pulumi.CustomResource {
|
|
|
72
56
|
}
|
|
73
57
|
return obj['__pulumiType'] === Consumer.__pulumiType;
|
|
74
58
|
}
|
|
59
|
+
constructor(name, argsOrState, opts) {
|
|
60
|
+
let resourceInputs = {};
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
if (opts.id) {
|
|
63
|
+
const state = argsOrState;
|
|
64
|
+
resourceInputs["customId"] = state ? state.customId : undefined;
|
|
65
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
66
|
+
resourceInputs["username"] = state ? state.username : undefined;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const args = argsOrState;
|
|
70
|
+
resourceInputs["customId"] = args ? args.customId : undefined;
|
|
71
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
72
|
+
resourceInputs["username"] = args ? args.username : undefined;
|
|
73
|
+
}
|
|
74
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
75
|
+
super(Consumer.__pulumiType, name, resourceInputs, opts);
|
|
76
|
+
}
|
|
75
77
|
}
|
|
76
78
|
exports.Consumer = Consumer;
|
|
77
79
|
/** @internal */
|
package/consumer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumer.js","sourceRoot":"","sources":["../consumer.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"consumer.js","sourceRoot":"","sources":["../consumer.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;aAAM;YACH,MAAM,IAAI,GAAG,WAAuC,CAAC;YACrD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAjEL,4BAkEC;AApDG,gBAAgB;AACO,qBAAY,GAAG,8BAA8B,CAAC"}
|
package/consumerAcl.d.ts
CHANGED
|
@@ -6,21 +6,21 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
|
9
|
+
* <!--Start PulumiCodeChooser -->
|
|
9
10
|
* ```typescript
|
|
10
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
12
|
* import * as kong from "@pulumi/kong";
|
|
12
13
|
*
|
|
13
|
-
* const myConsumer = new kong.Consumer("
|
|
14
|
+
* const myConsumer = new kong.Consumer("myConsumer", {
|
|
14
15
|
* customId: "123",
|
|
15
16
|
* username: "User1",
|
|
16
17
|
* });
|
|
17
|
-
* const aclPlugin = new kong.Plugin("
|
|
18
|
-
* configJson: ` {
|
|
18
|
+
* const aclPlugin = new kong.Plugin("aclPlugin", {configJson: ` {
|
|
19
19
|
* "allow": ["group1", "group2"]
|
|
20
20
|
* }
|
|
21
|
-
*
|
|
22
|
-
* });
|
|
23
|
-
* const consumerAcl = new kong.ConsumerAcl("
|
|
21
|
+
*
|
|
22
|
+
* `});
|
|
23
|
+
* const consumerAcl = new kong.ConsumerAcl("consumerAcl", {
|
|
24
24
|
* consumerId: myConsumer.id,
|
|
25
25
|
* group: "group2",
|
|
26
26
|
* tags: [
|
|
@@ -29,6 +29,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
29
29
|
* ],
|
|
30
30
|
* });
|
|
31
31
|
* ```
|
|
32
|
+
* <!--End PulumiCodeChooser -->
|
|
32
33
|
*/
|
|
33
34
|
export declare class ConsumerAcl extends pulumi.CustomResource {
|
|
34
35
|
/**
|
package/consumerAcl.js
CHANGED
|
@@ -12,21 +12,21 @@ const utilities = require("./utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* ## Example Usage
|
|
14
14
|
*
|
|
15
|
+
* <!--Start PulumiCodeChooser -->
|
|
15
16
|
* ```typescript
|
|
16
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
18
|
* import * as kong from "@pulumi/kong";
|
|
18
19
|
*
|
|
19
|
-
* const myConsumer = new kong.Consumer("
|
|
20
|
+
* const myConsumer = new kong.Consumer("myConsumer", {
|
|
20
21
|
* customId: "123",
|
|
21
22
|
* username: "User1",
|
|
22
23
|
* });
|
|
23
|
-
* const aclPlugin = new kong.Plugin("
|
|
24
|
-
* configJson: ` {
|
|
24
|
+
* const aclPlugin = new kong.Plugin("aclPlugin", {configJson: ` {
|
|
25
25
|
* "allow": ["group1", "group2"]
|
|
26
26
|
* }
|
|
27
|
-
*
|
|
28
|
-
* });
|
|
29
|
-
* const consumerAcl = new kong.ConsumerAcl("
|
|
27
|
+
*
|
|
28
|
+
* `});
|
|
29
|
+
* const consumerAcl = new kong.ConsumerAcl("consumerAcl", {
|
|
30
30
|
* consumerId: myConsumer.id,
|
|
31
31
|
* group: "group2",
|
|
32
32
|
* tags: [
|
|
@@ -35,8 +35,31 @@ const utilities = require("./utilities");
|
|
|
35
35
|
* ],
|
|
36
36
|
* });
|
|
37
37
|
* ```
|
|
38
|
+
* <!--End PulumiCodeChooser -->
|
|
38
39
|
*/
|
|
39
40
|
class ConsumerAcl extends pulumi.CustomResource {
|
|
41
|
+
/**
|
|
42
|
+
* Get an existing ConsumerAcl resource's state with the given name, ID, and optional extra
|
|
43
|
+
* properties used to qualify the lookup.
|
|
44
|
+
*
|
|
45
|
+
* @param name The _unique_ name of the resulting resource.
|
|
46
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
47
|
+
* @param state Any extra arguments used during the lookup.
|
|
48
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
49
|
+
*/
|
|
50
|
+
static get(name, id, state, opts) {
|
|
51
|
+
return new ConsumerAcl(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Returns true if the given object is an instance of ConsumerAcl. This is designed to work even
|
|
55
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
56
|
+
*/
|
|
57
|
+
static isInstance(obj) {
|
|
58
|
+
if (obj === undefined || obj === null) {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
return obj['__pulumiType'] === ConsumerAcl.__pulumiType;
|
|
62
|
+
}
|
|
40
63
|
constructor(name, argsOrState, opts) {
|
|
41
64
|
let resourceInputs = {};
|
|
42
65
|
opts = opts || {};
|
|
@@ -61,28 +84,6 @@ class ConsumerAcl extends pulumi.CustomResource {
|
|
|
61
84
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
62
85
|
super(ConsumerAcl.__pulumiType, name, resourceInputs, opts);
|
|
63
86
|
}
|
|
64
|
-
/**
|
|
65
|
-
* Get an existing ConsumerAcl resource's state with the given name, ID, and optional extra
|
|
66
|
-
* properties used to qualify the lookup.
|
|
67
|
-
*
|
|
68
|
-
* @param name The _unique_ name of the resulting resource.
|
|
69
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
70
|
-
* @param state Any extra arguments used during the lookup.
|
|
71
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
72
|
-
*/
|
|
73
|
-
static get(name, id, state, opts) {
|
|
74
|
-
return new ConsumerAcl(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Returns true if the given object is an instance of ConsumerAcl. This is designed to work even
|
|
78
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
79
|
-
*/
|
|
80
|
-
static isInstance(obj) {
|
|
81
|
-
if (obj === undefined || obj === null) {
|
|
82
|
-
return false;
|
|
83
|
-
}
|
|
84
|
-
return obj['__pulumiType'] === ConsumerAcl.__pulumiType;
|
|
85
|
-
}
|
|
86
87
|
}
|
|
87
88
|
exports.ConsumerAcl = ConsumerAcl;
|
|
88
89
|
/** @internal */
|
package/consumerAcl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumerAcl.js","sourceRoot":"","sources":["../consumerAcl.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"consumerAcl.js","sourceRoot":"","sources":["../consumerAcl.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,I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AAC;aACxD;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,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,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAvEL,kCAwEC;AA1DG,gBAAgB;AACO,wBAAY,GAAG,oCAAoC,CAAC"}
|
package/consumerBasicAuth.d.ts
CHANGED
|
@@ -6,16 +6,17 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
|
9
|
+
* <!--Start PulumiCodeChooser -->
|
|
9
10
|
* ```typescript
|
|
10
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
12
|
* import * as kong from "@pulumi/kong";
|
|
12
13
|
*
|
|
13
|
-
* const myConsumer = new kong.Consumer("
|
|
14
|
+
* const myConsumer = new kong.Consumer("myConsumer", {
|
|
14
15
|
* customId: "123",
|
|
15
16
|
* username: "User1",
|
|
16
17
|
* });
|
|
17
|
-
* const basicAuthPlugin = new kong.Plugin("
|
|
18
|
-
* const consumerBasicAuth = new kong.ConsumerBasicAuth("
|
|
18
|
+
* const basicAuthPlugin = new kong.Plugin("basicAuthPlugin", {});
|
|
19
|
+
* const consumerBasicAuth = new kong.ConsumerBasicAuth("consumerBasicAuth", {
|
|
19
20
|
* consumerId: myConsumer.id,
|
|
20
21
|
* password: "bar_updated",
|
|
21
22
|
* tags: [
|
|
@@ -25,6 +26,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
25
26
|
* username: "foo_updated",
|
|
26
27
|
* });
|
|
27
28
|
* ```
|
|
29
|
+
* <!--End PulumiCodeChooser -->
|
|
28
30
|
*/
|
|
29
31
|
export declare class ConsumerBasicAuth extends pulumi.CustomResource {
|
|
30
32
|
/**
|
package/consumerBasicAuth.js
CHANGED
|
@@ -12,16 +12,17 @@ const utilities = require("./utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* ## Example Usage
|
|
14
14
|
*
|
|
15
|
+
* <!--Start PulumiCodeChooser -->
|
|
15
16
|
* ```typescript
|
|
16
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
18
|
* import * as kong from "@pulumi/kong";
|
|
18
19
|
*
|
|
19
|
-
* const myConsumer = new kong.Consumer("
|
|
20
|
+
* const myConsumer = new kong.Consumer("myConsumer", {
|
|
20
21
|
* customId: "123",
|
|
21
22
|
* username: "User1",
|
|
22
23
|
* });
|
|
23
|
-
* const basicAuthPlugin = new kong.Plugin("
|
|
24
|
-
* const consumerBasicAuth = new kong.ConsumerBasicAuth("
|
|
24
|
+
* const basicAuthPlugin = new kong.Plugin("basicAuthPlugin", {});
|
|
25
|
+
* const consumerBasicAuth = new kong.ConsumerBasicAuth("consumerBasicAuth", {
|
|
25
26
|
* consumerId: myConsumer.id,
|
|
26
27
|
* password: "bar_updated",
|
|
27
28
|
* tags: [
|
|
@@ -31,8 +32,31 @@ const utilities = require("./utilities");
|
|
|
31
32
|
* username: "foo_updated",
|
|
32
33
|
* });
|
|
33
34
|
* ```
|
|
35
|
+
* <!--End PulumiCodeChooser -->
|
|
34
36
|
*/
|
|
35
37
|
class ConsumerBasicAuth extends pulumi.CustomResource {
|
|
38
|
+
/**
|
|
39
|
+
* Get an existing ConsumerBasicAuth resource's state with the given name, ID, and optional extra
|
|
40
|
+
* properties used to qualify the lookup.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resulting resource.
|
|
43
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
44
|
+
* @param state Any extra arguments used during the lookup.
|
|
45
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
|
+
*/
|
|
47
|
+
static get(name, id, state, opts) {
|
|
48
|
+
return new ConsumerBasicAuth(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Returns true if the given object is an instance of ConsumerBasicAuth. This is designed to work even
|
|
52
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
53
|
+
*/
|
|
54
|
+
static isInstance(obj) {
|
|
55
|
+
if (obj === undefined || obj === null) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
return obj['__pulumiType'] === ConsumerBasicAuth.__pulumiType;
|
|
59
|
+
}
|
|
36
60
|
constructor(name, argsOrState, opts) {
|
|
37
61
|
let resourceInputs = {};
|
|
38
62
|
opts = opts || {};
|
|
@@ -62,28 +86,6 @@ class ConsumerBasicAuth extends pulumi.CustomResource {
|
|
|
62
86
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
63
87
|
super(ConsumerBasicAuth.__pulumiType, name, resourceInputs, opts);
|
|
64
88
|
}
|
|
65
|
-
/**
|
|
66
|
-
* Get an existing ConsumerBasicAuth resource's state with the given name, ID, and optional extra
|
|
67
|
-
* properties used to qualify the lookup.
|
|
68
|
-
*
|
|
69
|
-
* @param name The _unique_ name of the resulting resource.
|
|
70
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
71
|
-
* @param state Any extra arguments used during the lookup.
|
|
72
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
73
|
-
*/
|
|
74
|
-
static get(name, id, state, opts) {
|
|
75
|
-
return new ConsumerBasicAuth(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Returns true if the given object is an instance of ConsumerBasicAuth. This is designed to work even
|
|
79
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
80
|
-
*/
|
|
81
|
-
static isInstance(obj) {
|
|
82
|
-
if (obj === undefined || obj === null) {
|
|
83
|
-
return false;
|
|
84
|
-
}
|
|
85
|
-
return obj['__pulumiType'] === ConsumerBasicAuth.__pulumiType;
|
|
86
|
-
}
|
|
87
89
|
}
|
|
88
90
|
exports.ConsumerBasicAuth = ConsumerBasicAuth;
|
|
89
91
|
/** @internal */
|
package/consumerBasicAuth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumerBasicAuth.js","sourceRoot":"","sources":["../consumerBasicAuth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"consumerBasicAuth.js","sourceRoot":"","sources":["../consumerBasicAuth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IA2BD,YAAY,I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I,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AAhFL,8CAiFC;AAnEG,gBAAgB;AACO,8BAAY,GAAG,gDAAgD,CAAC"}
|
package/consumerJwtAuth.d.ts
CHANGED
|
@@ -6,21 +6,21 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
|
9
|
+
* <!--Start PulumiCodeChooser -->
|
|
9
10
|
* ```typescript
|
|
10
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
12
|
* import * as kong from "@pulumi/kong";
|
|
12
13
|
*
|
|
13
|
-
* const myConsumer = new kong.Consumer("
|
|
14
|
+
* const myConsumer = new kong.Consumer("myConsumer", {
|
|
14
15
|
* customId: "123",
|
|
15
16
|
* username: "User1",
|
|
16
17
|
* });
|
|
17
|
-
* const jwtPlugin = new kong.Plugin("
|
|
18
|
-
* configJson: ` {
|
|
18
|
+
* const jwtPlugin = new kong.Plugin("jwtPlugin", {configJson: ` {
|
|
19
19
|
* "claims_to_verify": ["exp"]
|
|
20
20
|
* }
|
|
21
|
-
*
|
|
22
|
-
* });
|
|
23
|
-
* const consumerJwtConfig = new kong.ConsumerJwtAuth("
|
|
21
|
+
*
|
|
22
|
+
* `});
|
|
23
|
+
* const consumerJwtConfig = new kong.ConsumerJwtAuth("consumerJwtConfig", {
|
|
24
24
|
* algorithm: "HS256",
|
|
25
25
|
* consumerId: myConsumer.id,
|
|
26
26
|
* key: "my_key",
|
|
@@ -28,6 +28,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
28
28
|
* secret: "my_secret",
|
|
29
29
|
* });
|
|
30
30
|
* ```
|
|
31
|
+
* <!--End PulumiCodeChooser -->
|
|
31
32
|
*/
|
|
32
33
|
export declare class ConsumerJwtAuth extends pulumi.CustomResource {
|
|
33
34
|
/**
|
package/consumerJwtAuth.js
CHANGED
|
@@ -12,21 +12,21 @@ const utilities = require("./utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* ## Example Usage
|
|
14
14
|
*
|
|
15
|
+
* <!--Start PulumiCodeChooser -->
|
|
15
16
|
* ```typescript
|
|
16
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
18
|
* import * as kong from "@pulumi/kong";
|
|
18
19
|
*
|
|
19
|
-
* const myConsumer = new kong.Consumer("
|
|
20
|
+
* const myConsumer = new kong.Consumer("myConsumer", {
|
|
20
21
|
* customId: "123",
|
|
21
22
|
* username: "User1",
|
|
22
23
|
* });
|
|
23
|
-
* const jwtPlugin = new kong.Plugin("
|
|
24
|
-
* configJson: ` {
|
|
24
|
+
* const jwtPlugin = new kong.Plugin("jwtPlugin", {configJson: ` {
|
|
25
25
|
* "claims_to_verify": ["exp"]
|
|
26
26
|
* }
|
|
27
|
-
*
|
|
28
|
-
* });
|
|
29
|
-
* const consumerJwtConfig = new kong.ConsumerJwtAuth("
|
|
27
|
+
*
|
|
28
|
+
* `});
|
|
29
|
+
* const consumerJwtConfig = new kong.ConsumerJwtAuth("consumerJwtConfig", {
|
|
30
30
|
* algorithm: "HS256",
|
|
31
31
|
* consumerId: myConsumer.id,
|
|
32
32
|
* key: "my_key",
|
|
@@ -34,8 +34,31 @@ const utilities = require("./utilities");
|
|
|
34
34
|
* secret: "my_secret",
|
|
35
35
|
* });
|
|
36
36
|
* ```
|
|
37
|
+
* <!--End PulumiCodeChooser -->
|
|
37
38
|
*/
|
|
38
39
|
class ConsumerJwtAuth extends pulumi.CustomResource {
|
|
40
|
+
/**
|
|
41
|
+
* Get an existing ConsumerJwtAuth resource's state with the given name, ID, and optional extra
|
|
42
|
+
* properties used to qualify the lookup.
|
|
43
|
+
*
|
|
44
|
+
* @param name The _unique_ name of the resulting resource.
|
|
45
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
46
|
+
* @param state Any extra arguments used during the lookup.
|
|
47
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
|
+
*/
|
|
49
|
+
static get(name, id, state, opts) {
|
|
50
|
+
return new ConsumerJwtAuth(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of ConsumerJwtAuth. This is designed to work even
|
|
54
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
|
+
*/
|
|
56
|
+
static isInstance(obj) {
|
|
57
|
+
if (obj === undefined || obj === null) {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
return obj['__pulumiType'] === ConsumerJwtAuth.__pulumiType;
|
|
61
|
+
}
|
|
39
62
|
constructor(name, argsOrState, opts) {
|
|
40
63
|
let resourceInputs = {};
|
|
41
64
|
opts = opts || {};
|
|
@@ -66,28 +89,6 @@ class ConsumerJwtAuth extends pulumi.CustomResource {
|
|
|
66
89
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
67
90
|
super(ConsumerJwtAuth.__pulumiType, name, resourceInputs, opts);
|
|
68
91
|
}
|
|
69
|
-
/**
|
|
70
|
-
* Get an existing ConsumerJwtAuth resource's state with the given name, ID, and optional extra
|
|
71
|
-
* properties used to qualify the lookup.
|
|
72
|
-
*
|
|
73
|
-
* @param name The _unique_ name of the resulting resource.
|
|
74
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
75
|
-
* @param state Any extra arguments used during the lookup.
|
|
76
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
77
|
-
*/
|
|
78
|
-
static get(name, id, state, opts) {
|
|
79
|
-
return new ConsumerJwtAuth(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Returns true if the given object is an instance of ConsumerJwtAuth. This is designed to work even
|
|
83
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
84
|
-
*/
|
|
85
|
-
static isInstance(obj) {
|
|
86
|
-
if (obj === undefined || obj === null) {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
return obj['__pulumiType'] === ConsumerJwtAuth.__pulumiType;
|
|
90
|
-
}
|
|
91
92
|
}
|
|
92
93
|
exports.ConsumerJwtAuth = ConsumerJwtAuth;
|
|
93
94
|
/** @internal */
|
package/consumerJwtAuth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumerJwtAuth.js","sourceRoot":"","sources":["../consumerJwtAuth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"consumerJwtAuth.js","sourceRoot":"","sources":["../consumerJwtAuth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,I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ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
|
9
|
+
* <!--Start PulumiCodeChooser -->
|
|
9
10
|
* ```typescript
|
|
10
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
12
|
* import * as kong from "@pulumi/kong";
|
|
@@ -24,6 +25,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
24
25
|
* ],
|
|
25
26
|
* });
|
|
26
27
|
* ```
|
|
28
|
+
* <!--End PulumiCodeChooser -->
|
|
27
29
|
*/
|
|
28
30
|
export declare class ConsumerKeyAuth extends pulumi.CustomResource {
|
|
29
31
|
/**
|