@pulumi/rabbitmq 1.4.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -3
- package/binding.d.ts +27 -15
- package/binding.js +37 -29
- package/binding.js.map +1 -1
- package/config/index.js +15 -4
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +8 -5
- package/config/vars.js +51 -6
- package/config/vars.js.map +1 -1
- package/exchange.d.ts +18 -10
- package/exchange.js +24 -18
- package/exchange.js.map +1 -1
- package/federationUpstream.d.ts +141 -0
- package/federationUpstream.js +121 -0
- package/federationUpstream.js.map +1 -0
- package/getExchange.d.ts +27 -0
- package/getExchange.js +23 -0
- package/getExchange.js.map +1 -0
- package/getUser.d.ts +23 -0
- package/getUser.js +22 -0
- package/getUser.js.map +1 -0
- package/getVHost.d.ts +22 -0
- package/getVHost.js +22 -0
- package/getVHost.js.map +1 -0
- package/index.d.ts +10 -4
- package/index.js +98 -14
- package/index.js.map +1 -1
- package/operatorPolicy.d.ts +117 -0
- package/operatorPolicy.js +100 -0
- package/operatorPolicy.js.map +1 -0
- package/package.json +7 -5
- package/package.json.bak +7 -4
- package/package.json.dev +8 -5
- package/permissions.d.ts +18 -10
- package/permissions.js +25 -19
- package/permissions.js.map +1 -1
- package/policy.d.ts +16 -10
- package/policy.js +23 -19
- package/policy.js.map +1 -1
- package/provider.d.ts +16 -8
- package/provider.js +23 -15
- package/provider.js.map +1 -1
- package/queue.d.ts +26 -19
- package/queue.js +32 -27
- package/queue.js.map +1 -1
- package/shovel.d.ts +121 -0
- package/shovel.js +104 -0
- package/shovel.js.map +1 -0
- package/topicPermissions.d.ts +18 -10
- package/topicPermissions.js +25 -19
- package/topicPermissions.js.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.js +1 -0
- package/types/index.js.map +1 -1
- package/types/input.d.ts +172 -0
- package/types/output.d.ts +180 -0
- package/user.d.ts +15 -8
- package/user.js +22 -18
- package/user.js.map +1 -1
- package/utilities.js +6 -0
- package/utilities.js.map +1 -1
- package/{vHost.d.ts → vhost.d.ts} +12 -5
- package/{vHost.js → vhost.js} +19 -15
- package/vhost.js.map +1 -0
- package/vHost.js.map +0 -1
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* The ``rabbitmq.OperatorPolicy`` resource creates and manages operator policies for queues.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as rabbitmq from "@pulumi/rabbitmq";
|
|
11
|
+
*
|
|
12
|
+
* const testVHost = new rabbitmq.VHost("test", {});
|
|
13
|
+
* const guest = new rabbitmq.Permissions("guest", {
|
|
14
|
+
* permissions: {
|
|
15
|
+
* configure: ".*",
|
|
16
|
+
* read: ".*",
|
|
17
|
+
* write: ".*",
|
|
18
|
+
* },
|
|
19
|
+
* user: "guest",
|
|
20
|
+
* vhost: testVHost.name,
|
|
21
|
+
* });
|
|
22
|
+
* const testOperatorPolicy = new rabbitmq.OperatorPolicy("test", {
|
|
23
|
+
* policy: {
|
|
24
|
+
* applyTo: "queues",
|
|
25
|
+
* definition: {
|
|
26
|
+
* expires: 1800000,
|
|
27
|
+
* "message-ttl": 3600000,
|
|
28
|
+
* },
|
|
29
|
+
* pattern: ".*",
|
|
30
|
+
* priority: 0,
|
|
31
|
+
* },
|
|
32
|
+
* vhost: guest.vhost,
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* ## Import
|
|
37
|
+
*
|
|
38
|
+
* Operator policies can be imported using the `id` which is composed of `name@vhost`. E.g.
|
|
39
|
+
*
|
|
40
|
+
* ```sh
|
|
41
|
+
* $ pulumi import rabbitmq:index/operatorPolicy:OperatorPolicy test name@vhost
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare class OperatorPolicy extends pulumi.CustomResource {
|
|
45
|
+
/**
|
|
46
|
+
* Get an existing OperatorPolicy resource's state with the given name, ID, and optional extra
|
|
47
|
+
* properties used to qualify the lookup.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resulting resource.
|
|
50
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
51
|
+
* @param state Any extra arguments used during the lookup.
|
|
52
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
53
|
+
*/
|
|
54
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: OperatorPolicyState, opts?: pulumi.CustomResourceOptions): OperatorPolicy;
|
|
55
|
+
/**
|
|
56
|
+
* Returns true if the given object is an instance of OperatorPolicy. This is designed to work even
|
|
57
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
58
|
+
*/
|
|
59
|
+
static isInstance(obj: any): obj is OperatorPolicy;
|
|
60
|
+
/**
|
|
61
|
+
* The name of the operator policy.
|
|
62
|
+
*/
|
|
63
|
+
readonly name: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* The settings of the operator policy. The structure is
|
|
66
|
+
* described below.
|
|
67
|
+
*/
|
|
68
|
+
readonly policy: pulumi.Output<outputs.OperatorPolicyPolicy>;
|
|
69
|
+
/**
|
|
70
|
+
* The vhost to create the resource in.
|
|
71
|
+
*/
|
|
72
|
+
readonly vhost: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Create a OperatorPolicy resource with the given unique name, arguments, and options.
|
|
75
|
+
*
|
|
76
|
+
* @param name The _unique_ name of the resource.
|
|
77
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
78
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
79
|
+
*/
|
|
80
|
+
constructor(name: string, args: OperatorPolicyArgs, opts?: pulumi.CustomResourceOptions);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Input properties used for looking up and filtering OperatorPolicy resources.
|
|
84
|
+
*/
|
|
85
|
+
export interface OperatorPolicyState {
|
|
86
|
+
/**
|
|
87
|
+
* The name of the operator policy.
|
|
88
|
+
*/
|
|
89
|
+
name?: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* The settings of the operator policy. The structure is
|
|
92
|
+
* described below.
|
|
93
|
+
*/
|
|
94
|
+
policy?: pulumi.Input<inputs.OperatorPolicyPolicy>;
|
|
95
|
+
/**
|
|
96
|
+
* The vhost to create the resource in.
|
|
97
|
+
*/
|
|
98
|
+
vhost?: pulumi.Input<string>;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* The set of arguments for constructing a OperatorPolicy resource.
|
|
102
|
+
*/
|
|
103
|
+
export interface OperatorPolicyArgs {
|
|
104
|
+
/**
|
|
105
|
+
* The name of the operator policy.
|
|
106
|
+
*/
|
|
107
|
+
name?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The settings of the operator policy. The structure is
|
|
110
|
+
* described below.
|
|
111
|
+
*/
|
|
112
|
+
policy: pulumi.Input<inputs.OperatorPolicyPolicy>;
|
|
113
|
+
/**
|
|
114
|
+
* The vhost to create the resource in.
|
|
115
|
+
*/
|
|
116
|
+
vhost: pulumi.Input<string>;
|
|
117
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.OperatorPolicy = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The ``rabbitmq.OperatorPolicy`` resource creates and manages operator policies for queues.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as rabbitmq from "@pulumi/rabbitmq";
|
|
16
|
+
*
|
|
17
|
+
* const testVHost = new rabbitmq.VHost("test", {});
|
|
18
|
+
* const guest = new rabbitmq.Permissions("guest", {
|
|
19
|
+
* permissions: {
|
|
20
|
+
* configure: ".*",
|
|
21
|
+
* read: ".*",
|
|
22
|
+
* write: ".*",
|
|
23
|
+
* },
|
|
24
|
+
* user: "guest",
|
|
25
|
+
* vhost: testVHost.name,
|
|
26
|
+
* });
|
|
27
|
+
* const testOperatorPolicy = new rabbitmq.OperatorPolicy("test", {
|
|
28
|
+
* policy: {
|
|
29
|
+
* applyTo: "queues",
|
|
30
|
+
* definition: {
|
|
31
|
+
* expires: 1800000,
|
|
32
|
+
* "message-ttl": 3600000,
|
|
33
|
+
* },
|
|
34
|
+
* pattern: ".*",
|
|
35
|
+
* priority: 0,
|
|
36
|
+
* },
|
|
37
|
+
* vhost: guest.vhost,
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* ## Import
|
|
42
|
+
*
|
|
43
|
+
* Operator policies can be imported using the `id` which is composed of `name@vhost`. E.g.
|
|
44
|
+
*
|
|
45
|
+
* ```sh
|
|
46
|
+
* $ pulumi import rabbitmq:index/operatorPolicy:OperatorPolicy test name@vhost
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
class OperatorPolicy extends pulumi.CustomResource {
|
|
50
|
+
constructor(name, argsOrState, opts) {
|
|
51
|
+
let resourceInputs = {};
|
|
52
|
+
opts = opts || {};
|
|
53
|
+
if (opts.id) {
|
|
54
|
+
const state = argsOrState;
|
|
55
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
56
|
+
resourceInputs["policy"] = state ? state.policy : undefined;
|
|
57
|
+
resourceInputs["vhost"] = state ? state.vhost : undefined;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
const args = argsOrState;
|
|
61
|
+
if ((!args || args.policy === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'policy'");
|
|
63
|
+
}
|
|
64
|
+
if ((!args || args.vhost === undefined) && !opts.urn) {
|
|
65
|
+
throw new Error("Missing required property 'vhost'");
|
|
66
|
+
}
|
|
67
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
68
|
+
resourceInputs["policy"] = args ? args.policy : undefined;
|
|
69
|
+
resourceInputs["vhost"] = args ? args.vhost : undefined;
|
|
70
|
+
}
|
|
71
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
72
|
+
super(OperatorPolicy.__pulumiType, name, resourceInputs, opts);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get an existing OperatorPolicy resource's state with the given name, ID, and optional extra
|
|
76
|
+
* properties used to qualify the lookup.
|
|
77
|
+
*
|
|
78
|
+
* @param name The _unique_ name of the resulting resource.
|
|
79
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
80
|
+
* @param state Any extra arguments used during the lookup.
|
|
81
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
82
|
+
*/
|
|
83
|
+
static get(name, id, state, opts) {
|
|
84
|
+
return new OperatorPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Returns true if the given object is an instance of OperatorPolicy. This is designed to work even
|
|
88
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
89
|
+
*/
|
|
90
|
+
static isInstance(obj) {
|
|
91
|
+
if (obj === undefined || obj === null) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
return obj['__pulumiType'] === OperatorPolicy.__pulumiType;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.OperatorPolicy = OperatorPolicy;
|
|
98
|
+
/** @internal */
|
|
99
|
+
OperatorPolicy.__pulumiType = 'rabbitmq:index/operatorPolicy:OperatorPolicy';
|
|
100
|
+
//# sourceMappingURL=operatorPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operatorPolicy.js","sourceRoot":"","sources":["../operatorPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IAkDrD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;aAAM;YACH,MAAM,IAAI,GAAG,WAA6C,CAAC;YAC3D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;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;IAvED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;;AA1BL,wCAyEC;AA3DG,gBAAgB;AACO,2BAAY,GAAG,8CAA8C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/rabbitmq",
|
|
3
|
-
"version": "v1.
|
|
3
|
+
"version": "v1.7.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing RabbitMQ resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,16 +11,18 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource rabbitmq v1.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource rabbitmq v1.7.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@pulumi/pulumi": "^
|
|
17
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/mime": "^2.0.0",
|
|
21
|
-
"@types/node": "^
|
|
21
|
+
"@types/node": "^10.0.0",
|
|
22
|
+
"typescript": "^4.3.5"
|
|
22
23
|
},
|
|
23
24
|
"pulumi": {
|
|
24
|
-
"resource": true
|
|
25
|
+
"resource": true,
|
|
26
|
+
"name": "rabbitmq"
|
|
25
27
|
}
|
|
26
28
|
}
|
package/package.json.bak
CHANGED
|
@@ -10,16 +10,19 @@
|
|
|
10
10
|
"repository": "https://github.com/pulumi/pulumi-rabbitmq",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource rabbitmq ${VERSION}"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
|
-
"@pulumi/pulumi": "^
|
|
17
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
17
18
|
},
|
|
18
19
|
"devDependencies": {
|
|
19
20
|
"@types/mime": "^2.0.0",
|
|
20
|
-
"@types/node": "^
|
|
21
|
+
"@types/node": "^10.0.0",
|
|
22
|
+
"typescript": "^4.3.5"
|
|
21
23
|
},
|
|
22
24
|
"pulumi": {
|
|
23
|
-
"resource": true
|
|
25
|
+
"resource": true,
|
|
26
|
+
"name": "rabbitmq"
|
|
24
27
|
}
|
|
25
28
|
}
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/rabbitmq",
|
|
3
|
-
"version": "v1.
|
|
3
|
+
"version": "v1.7.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing RabbitMQ resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -10,16 +10,19 @@
|
|
|
10
10
|
"repository": "https://github.com/pulumi/pulumi-rabbitmq",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource rabbitmq v1.7.0"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
|
-
"@pulumi/pulumi": "^
|
|
17
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
17
18
|
},
|
|
18
19
|
"devDependencies": {
|
|
19
20
|
"@types/mime": "^2.0.0",
|
|
20
|
-
"@types/node": "^
|
|
21
|
+
"@types/node": "^10.0.0",
|
|
22
|
+
"typescript": "^4.3.5"
|
|
21
23
|
},
|
|
22
24
|
"pulumi": {
|
|
23
|
-
"resource": true
|
|
25
|
+
"resource": true,
|
|
26
|
+
"name": "rabbitmq"
|
|
24
27
|
}
|
|
25
28
|
}
|
package/permissions.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
3
|
-
import * as outputs from "./types/output";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
4
3
|
/**
|
|
5
|
-
* The ``rabbitmq
|
|
4
|
+
* The ``rabbitmq.Permissions`` resource creates and manages a user's set of
|
|
6
5
|
* permissions.
|
|
7
6
|
*
|
|
8
7
|
* ## Example Usage
|
|
@@ -27,7 +26,15 @@ import * as outputs from "./types/output";
|
|
|
27
26
|
* });
|
|
28
27
|
* ```
|
|
29
28
|
*
|
|
30
|
-
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* Permissions can be imported using the `id` which is composed of
|
|
32
|
+
*
|
|
33
|
+
* `user@vhost`. E.g.
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import rabbitmq:index/permissions:Permissions test user@vhost
|
|
37
|
+
* ```
|
|
31
38
|
*/
|
|
32
39
|
export declare class Permissions extends pulumi.CustomResource {
|
|
33
40
|
/**
|
|
@@ -37,6 +44,7 @@ export declare class Permissions extends pulumi.CustomResource {
|
|
|
37
44
|
* @param name The _unique_ name of the resulting resource.
|
|
38
45
|
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
46
|
* @param state Any extra arguments used during the lookup.
|
|
47
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
48
|
*/
|
|
41
49
|
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PermissionsState, opts?: pulumi.CustomResourceOptions): Permissions;
|
|
42
50
|
/**
|
|
@@ -74,15 +82,15 @@ export interface PermissionsState {
|
|
|
74
82
|
* The settings of the permissions. The structure is
|
|
75
83
|
* described below.
|
|
76
84
|
*/
|
|
77
|
-
|
|
85
|
+
permissions?: pulumi.Input<inputs.PermissionsPermissions>;
|
|
78
86
|
/**
|
|
79
87
|
* The user to apply the permissions to.
|
|
80
88
|
*/
|
|
81
|
-
|
|
89
|
+
user?: pulumi.Input<string>;
|
|
82
90
|
/**
|
|
83
91
|
* The vhost to create the resource in.
|
|
84
92
|
*/
|
|
85
|
-
|
|
93
|
+
vhost?: pulumi.Input<string>;
|
|
86
94
|
}
|
|
87
95
|
/**
|
|
88
96
|
* The set of arguments for constructing a Permissions resource.
|
|
@@ -92,13 +100,13 @@ export interface PermissionsArgs {
|
|
|
92
100
|
* The settings of the permissions. The structure is
|
|
93
101
|
* described below.
|
|
94
102
|
*/
|
|
95
|
-
|
|
103
|
+
permissions: pulumi.Input<inputs.PermissionsPermissions>;
|
|
96
104
|
/**
|
|
97
105
|
* The user to apply the permissions to.
|
|
98
106
|
*/
|
|
99
|
-
|
|
107
|
+
user: pulumi.Input<string>;
|
|
100
108
|
/**
|
|
101
109
|
* The vhost to create the resource in.
|
|
102
110
|
*/
|
|
103
|
-
|
|
111
|
+
vhost?: pulumi.Input<string>;
|
|
104
112
|
}
|
package/permissions.js
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
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.Permissions = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
8
|
-
* The ``rabbitmq
|
|
9
|
+
* The ``rabbitmq.Permissions`` resource creates and manages a user's set of
|
|
9
10
|
* permissions.
|
|
10
11
|
*
|
|
11
12
|
* ## Example Usage
|
|
@@ -30,36 +31,40 @@ const utilities = require("./utilities");
|
|
|
30
31
|
* });
|
|
31
32
|
* ```
|
|
32
33
|
*
|
|
33
|
-
*
|
|
34
|
+
* ## Import
|
|
35
|
+
*
|
|
36
|
+
* Permissions can be imported using the `id` which is composed of
|
|
37
|
+
*
|
|
38
|
+
* `user@vhost`. E.g.
|
|
39
|
+
*
|
|
40
|
+
* ```sh
|
|
41
|
+
* $ pulumi import rabbitmq:index/permissions:Permissions test user@vhost
|
|
42
|
+
* ```
|
|
34
43
|
*/
|
|
35
44
|
class Permissions extends pulumi.CustomResource {
|
|
36
45
|
constructor(name, argsOrState, opts) {
|
|
37
|
-
let
|
|
38
|
-
|
|
46
|
+
let resourceInputs = {};
|
|
47
|
+
opts = opts || {};
|
|
48
|
+
if (opts.id) {
|
|
39
49
|
const state = argsOrState;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
50
|
+
resourceInputs["permissions"] = state ? state.permissions : undefined;
|
|
51
|
+
resourceInputs["user"] = state ? state.user : undefined;
|
|
52
|
+
resourceInputs["vhost"] = state ? state.vhost : undefined;
|
|
43
53
|
}
|
|
44
54
|
else {
|
|
45
55
|
const args = argsOrState;
|
|
46
|
-
if (!args || args.permissions === undefined) {
|
|
56
|
+
if ((!args || args.permissions === undefined) && !opts.urn) {
|
|
47
57
|
throw new Error("Missing required property 'permissions'");
|
|
48
58
|
}
|
|
49
|
-
if (!args || args.user === undefined) {
|
|
59
|
+
if ((!args || args.user === undefined) && !opts.urn) {
|
|
50
60
|
throw new Error("Missing required property 'user'");
|
|
51
61
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
if (!opts) {
|
|
57
|
-
opts = {};
|
|
58
|
-
}
|
|
59
|
-
if (!opts.version) {
|
|
60
|
-
opts.version = utilities.getVersion();
|
|
62
|
+
resourceInputs["permissions"] = args ? args.permissions : undefined;
|
|
63
|
+
resourceInputs["user"] = args ? args.user : undefined;
|
|
64
|
+
resourceInputs["vhost"] = args ? args.vhost : undefined;
|
|
61
65
|
}
|
|
62
|
-
|
|
66
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
67
|
+
super(Permissions.__pulumiType, name, resourceInputs, opts);
|
|
63
68
|
}
|
|
64
69
|
/**
|
|
65
70
|
* Get an existing Permissions resource's state with the given name, ID, and optional extra
|
|
@@ -68,6 +73,7 @@ class Permissions extends pulumi.CustomResource {
|
|
|
68
73
|
* @param name The _unique_ name of the resulting resource.
|
|
69
74
|
* @param id The _unique_ provider ID of the resource to lookup.
|
|
70
75
|
* @param state Any extra arguments used during the lookup.
|
|
76
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
71
77
|
*/
|
|
72
78
|
static get(name, id, state, opts) {
|
|
73
79
|
return new Permissions(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
package/permissions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../permissions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../permissions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAkDlD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;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;IAvED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCAyEC;AA3DG,gBAAgB;AACO,wBAAY,GAAG,wCAAwC,CAAC"}
|
package/policy.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
3
|
-
import * as outputs from "./types/output";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
4
3
|
/**
|
|
5
|
-
* The ``rabbitmq
|
|
4
|
+
* The ``rabbitmq.Policy`` resource creates and manages policies for exchanges
|
|
6
5
|
* and queues.
|
|
7
6
|
*
|
|
8
7
|
* ## Example Usage
|
|
@@ -34,7 +33,13 @@ import * as outputs from "./types/output";
|
|
|
34
33
|
* });
|
|
35
34
|
* ```
|
|
36
35
|
*
|
|
37
|
-
*
|
|
36
|
+
* ## Import
|
|
37
|
+
*
|
|
38
|
+
* Policies can be imported using the `id` which is composed of `name@vhost`. E.g.
|
|
39
|
+
*
|
|
40
|
+
* ```sh
|
|
41
|
+
* $ pulumi import rabbitmq:index/policy:Policy test name@vhost
|
|
42
|
+
* ```
|
|
38
43
|
*/
|
|
39
44
|
export declare class Policy extends pulumi.CustomResource {
|
|
40
45
|
/**
|
|
@@ -44,6 +49,7 @@ export declare class Policy extends pulumi.CustomResource {
|
|
|
44
49
|
* @param name The _unique_ name of the resulting resource.
|
|
45
50
|
* @param id The _unique_ provider ID of the resource to lookup.
|
|
46
51
|
* @param state Any extra arguments used during the lookup.
|
|
52
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
53
|
*/
|
|
48
54
|
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PolicyState, opts?: pulumi.CustomResourceOptions): Policy;
|
|
49
55
|
/**
|
|
@@ -80,16 +86,16 @@ export interface PolicyState {
|
|
|
80
86
|
/**
|
|
81
87
|
* The name of the policy.
|
|
82
88
|
*/
|
|
83
|
-
|
|
89
|
+
name?: pulumi.Input<string>;
|
|
84
90
|
/**
|
|
85
91
|
* The settings of the policy. The structure is
|
|
86
92
|
* described below.
|
|
87
93
|
*/
|
|
88
|
-
|
|
94
|
+
policy?: pulumi.Input<inputs.PolicyPolicy>;
|
|
89
95
|
/**
|
|
90
96
|
* The vhost to create the resource in.
|
|
91
97
|
*/
|
|
92
|
-
|
|
98
|
+
vhost?: pulumi.Input<string>;
|
|
93
99
|
}
|
|
94
100
|
/**
|
|
95
101
|
* The set of arguments for constructing a Policy resource.
|
|
@@ -98,14 +104,14 @@ export interface PolicyArgs {
|
|
|
98
104
|
/**
|
|
99
105
|
* The name of the policy.
|
|
100
106
|
*/
|
|
101
|
-
|
|
107
|
+
name?: pulumi.Input<string>;
|
|
102
108
|
/**
|
|
103
109
|
* The settings of the policy. The structure is
|
|
104
110
|
* described below.
|
|
105
111
|
*/
|
|
106
|
-
|
|
112
|
+
policy: pulumi.Input<inputs.PolicyPolicy>;
|
|
107
113
|
/**
|
|
108
114
|
* The vhost to create the resource in.
|
|
109
115
|
*/
|
|
110
|
-
|
|
116
|
+
vhost: pulumi.Input<string>;
|
|
111
117
|
}
|
package/policy.js
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
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.Policy = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
8
|
-
* The ``rabbitmq
|
|
9
|
+
* The ``rabbitmq.Policy`` resource creates and manages policies for exchanges
|
|
9
10
|
* and queues.
|
|
10
11
|
*
|
|
11
12
|
* ## Example Usage
|
|
@@ -37,36 +38,38 @@ const utilities = require("./utilities");
|
|
|
37
38
|
* });
|
|
38
39
|
* ```
|
|
39
40
|
*
|
|
40
|
-
*
|
|
41
|
+
* ## Import
|
|
42
|
+
*
|
|
43
|
+
* Policies can be imported using the `id` which is composed of `name@vhost`. E.g.
|
|
44
|
+
*
|
|
45
|
+
* ```sh
|
|
46
|
+
* $ pulumi import rabbitmq:index/policy:Policy test name@vhost
|
|
47
|
+
* ```
|
|
41
48
|
*/
|
|
42
49
|
class Policy extends pulumi.CustomResource {
|
|
43
50
|
constructor(name, argsOrState, opts) {
|
|
44
|
-
let
|
|
45
|
-
|
|
51
|
+
let resourceInputs = {};
|
|
52
|
+
opts = opts || {};
|
|
53
|
+
if (opts.id) {
|
|
46
54
|
const state = argsOrState;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
55
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
56
|
+
resourceInputs["policy"] = state ? state.policy : undefined;
|
|
57
|
+
resourceInputs["vhost"] = state ? state.vhost : undefined;
|
|
50
58
|
}
|
|
51
59
|
else {
|
|
52
60
|
const args = argsOrState;
|
|
53
|
-
if (!args || args.policy === undefined) {
|
|
61
|
+
if ((!args || args.policy === undefined) && !opts.urn) {
|
|
54
62
|
throw new Error("Missing required property 'policy'");
|
|
55
63
|
}
|
|
56
|
-
if (!args || args.vhost === undefined) {
|
|
64
|
+
if ((!args || args.vhost === undefined) && !opts.urn) {
|
|
57
65
|
throw new Error("Missing required property 'vhost'");
|
|
58
66
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
if (!opts) {
|
|
64
|
-
opts = {};
|
|
65
|
-
}
|
|
66
|
-
if (!opts.version) {
|
|
67
|
-
opts.version = utilities.getVersion();
|
|
67
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
68
|
+
resourceInputs["policy"] = args ? args.policy : undefined;
|
|
69
|
+
resourceInputs["vhost"] = args ? args.vhost : undefined;
|
|
68
70
|
}
|
|
69
|
-
|
|
71
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
72
|
+
super(Policy.__pulumiType, name, resourceInputs, opts);
|
|
70
73
|
}
|
|
71
74
|
/**
|
|
72
75
|
* Get an existing Policy resource's state with the given name, ID, and optional extra
|
|
@@ -75,6 +78,7 @@ class Policy extends pulumi.CustomResource {
|
|
|
75
78
|
* @param name The _unique_ name of the resulting resource.
|
|
76
79
|
* @param id The _unique_ provider ID of the resource to lookup.
|
|
77
80
|
* @param state Any extra arguments used during the lookup.
|
|
81
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
78
82
|
*/
|
|
79
83
|
static get(name, id, state, opts) {
|
|
80
84
|
return new Policy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
package/policy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy.js","sourceRoot":"","sources":["../policy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"policy.js","sourceRoot":"","sources":["../policy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAkD7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;aAAM;YACH,MAAM,IAAI,GAAG,WAAqC,CAAC;YACnD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;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;IAvED;;;;;;;;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,wBAyEC;AA3DG,gBAAgB;AACO,mBAAY,GAAG,8BAA8B,CAAC"}
|