@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/consumerKeyAuth.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";
|
|
@@ -30,29 +31,9 @@ const utilities = require("./utilities");
|
|
|
30
31
|
* ],
|
|
31
32
|
* });
|
|
32
33
|
* ```
|
|
34
|
+
* <!--End PulumiCodeChooser -->
|
|
33
35
|
*/
|
|
34
36
|
class ConsumerKeyAuth extends pulumi.CustomResource {
|
|
35
|
-
constructor(name, argsOrState, opts) {
|
|
36
|
-
let resourceInputs = {};
|
|
37
|
-
opts = opts || {};
|
|
38
|
-
if (opts.id) {
|
|
39
|
-
const state = argsOrState;
|
|
40
|
-
resourceInputs["consumerId"] = state ? state.consumerId : undefined;
|
|
41
|
-
resourceInputs["key"] = state ? state.key : undefined;
|
|
42
|
-
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
const args = argsOrState;
|
|
46
|
-
if ((!args || args.consumerId === undefined) && !opts.urn) {
|
|
47
|
-
throw new Error("Missing required property 'consumerId'");
|
|
48
|
-
}
|
|
49
|
-
resourceInputs["consumerId"] = args ? args.consumerId : undefined;
|
|
50
|
-
resourceInputs["key"] = args ? args.key : undefined;
|
|
51
|
-
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
52
|
-
}
|
|
53
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
54
|
-
super(ConsumerKeyAuth.__pulumiType, name, resourceInputs, opts);
|
|
55
|
-
}
|
|
56
37
|
/**
|
|
57
38
|
* Get an existing ConsumerKeyAuth resource's state with the given name, ID, and optional extra
|
|
58
39
|
* properties used to qualify the lookup.
|
|
@@ -75,6 +56,29 @@ class ConsumerKeyAuth extends pulumi.CustomResource {
|
|
|
75
56
|
}
|
|
76
57
|
return obj['__pulumiType'] === ConsumerKeyAuth.__pulumiType;
|
|
77
58
|
}
|
|
59
|
+
constructor(name, argsOrState, opts) {
|
|
60
|
+
let resourceInputs = {};
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
if (opts.id) {
|
|
63
|
+
const state = argsOrState;
|
|
64
|
+
resourceInputs["consumerId"] = state ? state.consumerId : undefined;
|
|
65
|
+
resourceInputs["key"] = state ? state.key : undefined;
|
|
66
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const args = argsOrState;
|
|
70
|
+
if ((!args || args.consumerId === undefined) && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'consumerId'");
|
|
72
|
+
}
|
|
73
|
+
resourceInputs["consumerId"] = args ? args.consumerId : undefined;
|
|
74
|
+
resourceInputs["key"] = (args === null || args === void 0 ? void 0 : args.key) ? pulumi.secret(args.key) : undefined;
|
|
75
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
76
|
+
}
|
|
77
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
78
|
+
const secretOpts = { additionalSecretOutputs: ["key"] };
|
|
79
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
80
|
+
super(ConsumerKeyAuth.__pulumiType, name, resourceInputs, opts);
|
|
81
|
+
}
|
|
78
82
|
}
|
|
79
83
|
exports.ConsumerKeyAuth = ConsumerKeyAuth;
|
|
80
84
|
/** @internal */
|
package/consumerKeyAuth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumerKeyAuth.js","sourceRoot":"","sources":["../consumerKeyAuth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"consumerKeyAuth.js","sourceRoot":"","sources":["../consumerKeyAuth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCA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I,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,KAAK,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,GAAG,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,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,KAAK,CAAC,EAAE,CAAC;QACxD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAtEL,0CAuEC;AAzDG,gBAAgB;AACO,4BAAY,GAAG,4CAA4C,CAAC"}
|
package/consumerOauth2.d.ts
CHANGED
|
@@ -6,25 +6,25 @@ 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 oauth2Plugin = new kong.Plugin("
|
|
18
|
-
* configJson: ` {
|
|
18
|
+
* const oauth2Plugin = new kong.Plugin("oauth2Plugin", {configJson: ` {
|
|
19
19
|
* "global_credentials": true,
|
|
20
20
|
* "enable_password_grant": true,
|
|
21
21
|
* "token_expiration": 180,
|
|
22
22
|
* "refresh_token_ttl": 180,
|
|
23
23
|
* "provision_key": "testprovisionkey"
|
|
24
24
|
* }
|
|
25
|
-
*
|
|
26
|
-
* });
|
|
27
|
-
* const consumerOauth2 = new kong.ConsumerOauth2("
|
|
25
|
+
*
|
|
26
|
+
* `});
|
|
27
|
+
* const consumerOauth2 = new kong.ConsumerOauth2("consumerOauth2", {
|
|
28
28
|
* clientId: "client_id",
|
|
29
29
|
* clientSecret: "client_secret",
|
|
30
30
|
* consumerId: myConsumer.id,
|
|
@@ -35,6 +35,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
35
35
|
* tags: ["myTag"],
|
|
36
36
|
* });
|
|
37
37
|
* ```
|
|
38
|
+
* <!--End PulumiCodeChooser -->
|
|
38
39
|
*/
|
|
39
40
|
export declare class ConsumerOauth2 extends pulumi.CustomResource {
|
|
40
41
|
/**
|
package/consumerOauth2.js
CHANGED
|
@@ -12,25 +12,25 @@ 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 oauth2Plugin = new kong.Plugin("
|
|
24
|
-
* configJson: ` {
|
|
24
|
+
* const oauth2Plugin = new kong.Plugin("oauth2Plugin", {configJson: ` {
|
|
25
25
|
* "global_credentials": true,
|
|
26
26
|
* "enable_password_grant": true,
|
|
27
27
|
* "token_expiration": 180,
|
|
28
28
|
* "refresh_token_ttl": 180,
|
|
29
29
|
* "provision_key": "testprovisionkey"
|
|
30
30
|
* }
|
|
31
|
-
*
|
|
32
|
-
* });
|
|
33
|
-
* const consumerOauth2 = new kong.ConsumerOauth2("
|
|
31
|
+
*
|
|
32
|
+
* `});
|
|
33
|
+
* const consumerOauth2 = new kong.ConsumerOauth2("consumerOauth2", {
|
|
34
34
|
* clientId: "client_id",
|
|
35
35
|
* clientSecret: "client_secret",
|
|
36
36
|
* consumerId: myConsumer.id,
|
|
@@ -41,8 +41,31 @@ const utilities = require("./utilities");
|
|
|
41
41
|
* tags: ["myTag"],
|
|
42
42
|
* });
|
|
43
43
|
* ```
|
|
44
|
+
* <!--End PulumiCodeChooser -->
|
|
44
45
|
*/
|
|
45
46
|
class ConsumerOauth2 extends pulumi.CustomResource {
|
|
47
|
+
/**
|
|
48
|
+
* Get an existing ConsumerOauth2 resource's state with the given name, ID, and optional extra
|
|
49
|
+
* properties used to qualify the lookup.
|
|
50
|
+
*
|
|
51
|
+
* @param name The _unique_ name of the resulting resource.
|
|
52
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
53
|
+
* @param state Any extra arguments used during the lookup.
|
|
54
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
55
|
+
*/
|
|
56
|
+
static get(name, id, state, opts) {
|
|
57
|
+
return new ConsumerOauth2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns true if the given object is an instance of ConsumerOauth2. This is designed to work even
|
|
61
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
62
|
+
*/
|
|
63
|
+
static isInstance(obj) {
|
|
64
|
+
if (obj === undefined || obj === null) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
return obj['__pulumiType'] === ConsumerOauth2.__pulumiType;
|
|
68
|
+
}
|
|
46
69
|
constructor(name, argsOrState, opts) {
|
|
47
70
|
let resourceInputs = {};
|
|
48
71
|
opts = opts || {};
|
|
@@ -75,28 +98,6 @@ class ConsumerOauth2 extends pulumi.CustomResource {
|
|
|
75
98
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
76
99
|
super(ConsumerOauth2.__pulumiType, name, resourceInputs, opts);
|
|
77
100
|
}
|
|
78
|
-
/**
|
|
79
|
-
* Get an existing ConsumerOauth2 resource's state with the given name, ID, and optional extra
|
|
80
|
-
* properties used to qualify the lookup.
|
|
81
|
-
*
|
|
82
|
-
* @param name The _unique_ name of the resulting resource.
|
|
83
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
84
|
-
* @param state Any extra arguments used during the lookup.
|
|
85
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
86
|
-
*/
|
|
87
|
-
static get(name, id, state, opts) {
|
|
88
|
-
return new ConsumerOauth2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Returns true if the given object is an instance of ConsumerOauth2. This is designed to work even
|
|
92
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
93
|
-
*/
|
|
94
|
-
static isInstance(obj) {
|
|
95
|
-
if (obj === undefined || obj === null) {
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
return obj['__pulumiType'] === ConsumerOauth2.__pulumiType;
|
|
99
|
-
}
|
|
100
101
|
}
|
|
101
102
|
exports.ConsumerOauth2 = ConsumerOauth2;
|
|
102
103
|
/** @internal */
|
package/consumerOauth2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumerOauth2.js","sourceRoot":"","sources":["../consumerOauth2.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,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S,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,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,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AA/FL,wCAgGC;AAlFG,gBAAgB;AACO,2BAAY,GAAG,0CAA0C,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -1,16 +1,42 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
1
|
+
export { CertificateArgs, CertificateState } from "./certificate";
|
|
2
|
+
export type Certificate = import("./certificate").Certificate;
|
|
3
|
+
export declare const Certificate: typeof import("./certificate").Certificate;
|
|
4
|
+
export { ConsumerArgs, ConsumerState } from "./consumer";
|
|
5
|
+
export type Consumer = import("./consumer").Consumer;
|
|
6
|
+
export declare const Consumer: typeof import("./consumer").Consumer;
|
|
7
|
+
export { ConsumerAclArgs, ConsumerAclState } from "./consumerAcl";
|
|
8
|
+
export type ConsumerAcl = import("./consumerAcl").ConsumerAcl;
|
|
9
|
+
export declare const ConsumerAcl: typeof import("./consumerAcl").ConsumerAcl;
|
|
10
|
+
export { ConsumerBasicAuthArgs, ConsumerBasicAuthState } from "./consumerBasicAuth";
|
|
11
|
+
export type ConsumerBasicAuth = import("./consumerBasicAuth").ConsumerBasicAuth;
|
|
12
|
+
export declare const ConsumerBasicAuth: typeof import("./consumerBasicAuth").ConsumerBasicAuth;
|
|
13
|
+
export { ConsumerJwtAuthArgs, ConsumerJwtAuthState } from "./consumerJwtAuth";
|
|
14
|
+
export type ConsumerJwtAuth = import("./consumerJwtAuth").ConsumerJwtAuth;
|
|
15
|
+
export declare const ConsumerJwtAuth: typeof import("./consumerJwtAuth").ConsumerJwtAuth;
|
|
16
|
+
export { ConsumerKeyAuthArgs, ConsumerKeyAuthState } from "./consumerKeyAuth";
|
|
17
|
+
export type ConsumerKeyAuth = import("./consumerKeyAuth").ConsumerKeyAuth;
|
|
18
|
+
export declare const ConsumerKeyAuth: typeof import("./consumerKeyAuth").ConsumerKeyAuth;
|
|
19
|
+
export { ConsumerOauth2Args, ConsumerOauth2State } from "./consumerOauth2";
|
|
20
|
+
export type ConsumerOauth2 = import("./consumerOauth2").ConsumerOauth2;
|
|
21
|
+
export declare const ConsumerOauth2: typeof import("./consumerOauth2").ConsumerOauth2;
|
|
22
|
+
export { PluginArgs, PluginState } from "./plugin";
|
|
23
|
+
export type Plugin = import("./plugin").Plugin;
|
|
24
|
+
export declare const Plugin: typeof import("./plugin").Plugin;
|
|
25
|
+
export { ProviderArgs } from "./provider";
|
|
26
|
+
export type Provider = import("./provider").Provider;
|
|
27
|
+
export declare const Provider: typeof import("./provider").Provider;
|
|
28
|
+
export { RouteArgs, RouteState } from "./route";
|
|
29
|
+
export type Route = import("./route").Route;
|
|
30
|
+
export declare const Route: typeof import("./route").Route;
|
|
31
|
+
export { ServiceArgs, ServiceState } from "./service";
|
|
32
|
+
export type Service = import("./service").Service;
|
|
33
|
+
export declare const Service: typeof import("./service").Service;
|
|
34
|
+
export { TargetArgs, TargetState } from "./target";
|
|
35
|
+
export type Target = import("./target").Target;
|
|
36
|
+
export declare const Target: typeof import("./target").Target;
|
|
37
|
+
export { UpstreamArgs, UpstreamState } from "./upstream";
|
|
38
|
+
export type Upstream = import("./upstream").Upstream;
|
|
39
|
+
export declare const Upstream: typeof import("./upstream").Upstream;
|
|
14
40
|
import * as config from "./config";
|
|
15
41
|
import * as types from "./types";
|
|
16
42
|
export { config, types, };
|
package/index.js
CHANGED
|
@@ -1,84 +1,69 @@
|
|
|
1
1
|
"use strict";
|
|
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
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
-
}
|
|
10
|
-
Object.defineProperty(o, k2, desc);
|
|
11
|
-
}) : (function(o, m, k, k2) {
|
|
12
|
-
if (k2 === undefined) k2 = k;
|
|
13
|
-
o[k2] = m[k];
|
|
14
|
-
}));
|
|
15
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
-
};
|
|
18
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.types = exports.config = void 0;
|
|
5
|
+
exports.types = exports.config = exports.Upstream = exports.Target = exports.Service = exports.Route = exports.Provider = exports.Plugin = exports.ConsumerOauth2 = exports.ConsumerKeyAuth = exports.ConsumerJwtAuth = exports.ConsumerBasicAuth = exports.ConsumerAcl = exports.Consumer = exports.Certificate = void 0;
|
|
20
6
|
const pulumi = require("@pulumi/pulumi");
|
|
21
7
|
const utilities = require("./utilities");
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
8
|
+
exports.Certificate = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["Certificate"], () => require("./certificate"));
|
|
10
|
+
exports.Consumer = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["Consumer"], () => require("./consumer"));
|
|
12
|
+
exports.ConsumerAcl = null;
|
|
13
|
+
utilities.lazyLoad(exports, ["ConsumerAcl"], () => require("./consumerAcl"));
|
|
14
|
+
exports.ConsumerBasicAuth = null;
|
|
15
|
+
utilities.lazyLoad(exports, ["ConsumerBasicAuth"], () => require("./consumerBasicAuth"));
|
|
16
|
+
exports.ConsumerJwtAuth = null;
|
|
17
|
+
utilities.lazyLoad(exports, ["ConsumerJwtAuth"], () => require("./consumerJwtAuth"));
|
|
18
|
+
exports.ConsumerKeyAuth = null;
|
|
19
|
+
utilities.lazyLoad(exports, ["ConsumerKeyAuth"], () => require("./consumerKeyAuth"));
|
|
20
|
+
exports.ConsumerOauth2 = null;
|
|
21
|
+
utilities.lazyLoad(exports, ["ConsumerOauth2"], () => require("./consumerOauth2"));
|
|
22
|
+
exports.Plugin = null;
|
|
23
|
+
utilities.lazyLoad(exports, ["Plugin"], () => require("./plugin"));
|
|
24
|
+
exports.Provider = null;
|
|
25
|
+
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
26
|
+
exports.Route = null;
|
|
27
|
+
utilities.lazyLoad(exports, ["Route"], () => require("./route"));
|
|
28
|
+
exports.Service = null;
|
|
29
|
+
utilities.lazyLoad(exports, ["Service"], () => require("./service"));
|
|
30
|
+
exports.Target = null;
|
|
31
|
+
utilities.lazyLoad(exports, ["Target"], () => require("./target"));
|
|
32
|
+
exports.Upstream = null;
|
|
33
|
+
utilities.lazyLoad(exports, ["Upstream"], () => require("./upstream"));
|
|
36
34
|
// Export sub-modules:
|
|
37
35
|
const config = require("./config");
|
|
38
36
|
exports.config = config;
|
|
39
37
|
const types = require("./types");
|
|
40
38
|
exports.types = types;
|
|
41
|
-
// Import resources to register:
|
|
42
|
-
const certificate_1 = require("./certificate");
|
|
43
|
-
const consumer_1 = require("./consumer");
|
|
44
|
-
const consumerAcl_1 = require("./consumerAcl");
|
|
45
|
-
const consumerBasicAuth_1 = require("./consumerBasicAuth");
|
|
46
|
-
const consumerJwtAuth_1 = require("./consumerJwtAuth");
|
|
47
|
-
const consumerKeyAuth_1 = require("./consumerKeyAuth");
|
|
48
|
-
const consumerOauth2_1 = require("./consumerOauth2");
|
|
49
|
-
const plugin_1 = require("./plugin");
|
|
50
|
-
const route_1 = require("./route");
|
|
51
|
-
const service_1 = require("./service");
|
|
52
|
-
const target_1 = require("./target");
|
|
53
|
-
const upstream_1 = require("./upstream");
|
|
54
39
|
const _module = {
|
|
55
40
|
version: utilities.getVersion(),
|
|
56
41
|
construct: (name, type, urn) => {
|
|
57
42
|
switch (type) {
|
|
58
43
|
case "kong:index/certificate:Certificate":
|
|
59
|
-
return new
|
|
44
|
+
return new exports.Certificate(name, undefined, { urn });
|
|
60
45
|
case "kong:index/consumer:Consumer":
|
|
61
|
-
return new
|
|
46
|
+
return new exports.Consumer(name, undefined, { urn });
|
|
62
47
|
case "kong:index/consumerAcl:ConsumerAcl":
|
|
63
|
-
return new
|
|
48
|
+
return new exports.ConsumerAcl(name, undefined, { urn });
|
|
64
49
|
case "kong:index/consumerBasicAuth:ConsumerBasicAuth":
|
|
65
|
-
return new
|
|
50
|
+
return new exports.ConsumerBasicAuth(name, undefined, { urn });
|
|
66
51
|
case "kong:index/consumerJwtAuth:ConsumerJwtAuth":
|
|
67
|
-
return new
|
|
52
|
+
return new exports.ConsumerJwtAuth(name, undefined, { urn });
|
|
68
53
|
case "kong:index/consumerKeyAuth:ConsumerKeyAuth":
|
|
69
|
-
return new
|
|
54
|
+
return new exports.ConsumerKeyAuth(name, undefined, { urn });
|
|
70
55
|
case "kong:index/consumerOauth2:ConsumerOauth2":
|
|
71
|
-
return new
|
|
56
|
+
return new exports.ConsumerOauth2(name, undefined, { urn });
|
|
72
57
|
case "kong:index/plugin:Plugin":
|
|
73
|
-
return new
|
|
58
|
+
return new exports.Plugin(name, undefined, { urn });
|
|
74
59
|
case "kong:index/route:Route":
|
|
75
|
-
return new
|
|
60
|
+
return new exports.Route(name, undefined, { urn });
|
|
76
61
|
case "kong:index/service:Service":
|
|
77
|
-
return new
|
|
62
|
+
return new exports.Service(name, undefined, { urn });
|
|
78
63
|
case "kong:index/target:Target":
|
|
79
|
-
return new
|
|
64
|
+
return new exports.Target(name, undefined, { urn });
|
|
80
65
|
case "kong:index/upstream:Upstream":
|
|
81
|
-
return new
|
|
66
|
+
return new exports.Upstream(name, undefined, { urn });
|
|
82
67
|
default:
|
|
83
68
|
throw new Error(`unknown resource type ${type}`);
|
|
84
69
|
}
|
|
@@ -96,14 +81,13 @@ pulumi.runtime.registerResourceModule("kong", "index/route", _module);
|
|
|
96
81
|
pulumi.runtime.registerResourceModule("kong", "index/service", _module);
|
|
97
82
|
pulumi.runtime.registerResourceModule("kong", "index/target", _module);
|
|
98
83
|
pulumi.runtime.registerResourceModule("kong", "index/upstream", _module);
|
|
99
|
-
const provider_1 = require("./provider");
|
|
100
84
|
pulumi.runtime.registerResourcePackage("kong", {
|
|
101
85
|
version: utilities.getVersion(),
|
|
102
86
|
constructProvider: (name, type, urn) => {
|
|
103
87
|
if (type !== "pulumi:providers:kong") {
|
|
104
88
|
throw new Error(`unknown provider type ${type}`);
|
|
105
89
|
}
|
|
106
|
-
return new
|
|
90
|
+
return new exports.Provider(name, undefined, { urn });
|
|
107
91
|
},
|
|
108
92
|
});
|
|
109
93
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],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MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA;AACxE,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,MAAM,EAAE;IAC3C,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,uBAAuB,EAAE;YAClC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/kong",
|
|
3
|
-
"version": "v4.5.
|
|
3
|
+
"version": "v4.5.2",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Kong resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"repository": "https://github.com/pulumi/pulumi-kong",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource kong v4.5.0"
|
|
13
|
+
"build": "tsc"
|
|
15
14
|
},
|
|
16
15
|
"dependencies": {
|
|
17
16
|
"@pulumi/pulumi": "^3.0.0"
|
|
@@ -22,6 +21,7 @@
|
|
|
22
21
|
"typescript": "^4.3.5"
|
|
23
22
|
},
|
|
24
23
|
"pulumi": {
|
|
25
|
-
"resource": true
|
|
24
|
+
"resource": true,
|
|
25
|
+
"name": "kong"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/package.json.bak
CHANGED
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"repository": "https://github.com/pulumi/pulumi-kong",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource kong ${VERSION}"
|
|
13
|
+
"build": "tsc"
|
|
15
14
|
},
|
|
16
15
|
"dependencies": {
|
|
17
16
|
"@pulumi/pulumi": "^3.0.0"
|
|
@@ -22,6 +21,7 @@
|
|
|
22
21
|
"typescript": "^4.3.5"
|
|
23
22
|
},
|
|
24
23
|
"pulumi": {
|
|
25
|
-
"resource": true
|
|
24
|
+
"resource": true,
|
|
25
|
+
"name": "kong"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/plugin.d.ts
CHANGED
|
@@ -7,40 +7,45 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
7
7
|
*
|
|
8
8
|
* ## Example Usage
|
|
9
9
|
*
|
|
10
|
+
* <!--Start PulumiCodeChooser -->
|
|
10
11
|
* ```typescript
|
|
11
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
13
|
* import * as kong from "@pulumi/kong";
|
|
13
14
|
*
|
|
14
|
-
* const rateLimit = new kong.Plugin("
|
|
15
|
-
* configJson: ` {
|
|
15
|
+
* const rateLimit = new kong.Plugin("rateLimit", {configJson: ` {
|
|
16
16
|
* "second": 5,
|
|
17
17
|
* "hour" : 1000
|
|
18
18
|
* }
|
|
19
|
-
*
|
|
20
|
-
* });
|
|
19
|
+
*
|
|
20
|
+
* `});
|
|
21
21
|
* ```
|
|
22
|
+
* <!--End PulumiCodeChooser -->
|
|
22
23
|
* To apply a plugin to a consumer use the `consumerId` property, for example:
|
|
23
24
|
*
|
|
25
|
+
* <!--Start PulumiCodeChooser -->
|
|
24
26
|
* ```typescript
|
|
25
27
|
* import * as pulumi from "@pulumi/pulumi";
|
|
26
28
|
* import * as kong from "@pulumi/kong";
|
|
27
29
|
*
|
|
28
|
-
* const pluginConsumer = new kong.Consumer("
|
|
30
|
+
* const pluginConsumer = new kong.Consumer("pluginConsumer", {
|
|
29
31
|
* customId: "567",
|
|
30
32
|
* username: "PluginUser",
|
|
31
33
|
* });
|
|
32
|
-
* const rateLimit = new kong.Plugin("
|
|
34
|
+
* const rateLimit = new kong.Plugin("rateLimit", {
|
|
33
35
|
* configJson: ` {
|
|
34
36
|
* "second": 5,
|
|
35
37
|
* "hour" : 1000
|
|
36
38
|
* }
|
|
39
|
+
*
|
|
37
40
|
* `,
|
|
38
41
|
* consumerId: pluginConsumer.id,
|
|
39
42
|
* });
|
|
40
43
|
* ```
|
|
44
|
+
* <!--End PulumiCodeChooser -->
|
|
41
45
|
*
|
|
42
46
|
* To apply a plugin to a service use the `serviceId` property, for example:
|
|
43
47
|
*
|
|
48
|
+
* <!--Start PulumiCodeChooser -->
|
|
44
49
|
* ```typescript
|
|
45
50
|
* import * as pulumi from "@pulumi/pulumi";
|
|
46
51
|
* import * as kong from "@pulumi/kong";
|
|
@@ -49,18 +54,21 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
49
54
|
* host: "test.org",
|
|
50
55
|
* protocol: "http",
|
|
51
56
|
* });
|
|
52
|
-
* const rateLimit = new kong.Plugin("
|
|
57
|
+
* const rateLimit = new kong.Plugin("rateLimit", {
|
|
53
58
|
* configJson: ` {
|
|
54
59
|
* "second": 10,
|
|
55
60
|
* "hour" : 2000
|
|
56
61
|
* }
|
|
62
|
+
*
|
|
57
63
|
* `,
|
|
58
64
|
* serviceId: service.id,
|
|
59
65
|
* });
|
|
60
66
|
* ```
|
|
67
|
+
* <!--End PulumiCodeChooser -->
|
|
61
68
|
*
|
|
62
69
|
* To apply a plugin to a route use the `routeId` property, for example:
|
|
63
70
|
*
|
|
71
|
+
* <!--Start PulumiCodeChooser -->
|
|
64
72
|
* ```typescript
|
|
65
73
|
* import * as pulumi from "@pulumi/pulumi";
|
|
66
74
|
* import * as kong from "@pulumi/kong";
|
|
@@ -69,23 +77,25 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
69
77
|
* host: "test.org",
|
|
70
78
|
* protocol: "http",
|
|
71
79
|
* });
|
|
72
|
-
* const rateLimit = new kong.Plugin("
|
|
80
|
+
* const rateLimit = new kong.Plugin("rateLimit", {
|
|
73
81
|
* configJson: ` {
|
|
74
82
|
* "second": 11,
|
|
75
83
|
* "hour" : 4000
|
|
76
84
|
* }
|
|
85
|
+
*
|
|
77
86
|
* `,
|
|
78
87
|
* enabled: true,
|
|
79
88
|
* serviceId: service.id,
|
|
80
89
|
* });
|
|
81
90
|
* ```
|
|
91
|
+
* <!--End PulumiCodeChooser -->
|
|
82
92
|
*
|
|
83
93
|
* ## Import
|
|
84
94
|
*
|
|
85
|
-
* To import a plugin
|
|
95
|
+
* To import a plugin:
|
|
86
96
|
*
|
|
87
97
|
* ```sh
|
|
88
|
-
*
|
|
98
|
+
* $ pulumi import kong:index/plugin:Plugin <plugin_identifier> <plugin_id>
|
|
89
99
|
* ```
|
|
90
100
|
*/
|
|
91
101
|
export declare class Plugin extends pulumi.CustomResource {
|