@pulumi/rabbitmq 2.7.0 → 3.0.0-alpha.1768025576
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 +2 -2
- package/binding.d.ts +33 -32
- package/binding.js +58 -58
- package/binding.js.map +1 -1
- package/config/index.js +16 -5
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +8 -7
- package/config/vars.js +50 -9
- package/config/vars.js.map +1 -1
- package/exchange.d.ts +19 -17
- package/exchange.js +35 -35
- package/exchange.js.map +1 -1
- package/federationUpstream.d.ts +105 -8
- package/federationUpstream.js +92 -30
- package/federationUpstream.js.map +1 -1
- package/getDefaultUser.d.ts +25 -0
- package/getDefaultUser.js +24 -0
- package/getDefaultUser.js.map +1 -0
- package/getExchange.d.ts +27 -0
- package/getExchange.js +24 -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 +45 -10
- package/index.js +65 -38
- package/index.js.map +1 -1
- package/operatorPolicy.d.ts +121 -0
- package/operatorPolicy.js +103 -0
- package/operatorPolicy.js.map +1 -0
- package/package.json +8 -6
- package/permissions.d.ts +16 -14
- package/permissions.js +35 -35
- package/permissions.js.map +1 -1
- package/policy.d.ts +20 -16
- package/policy.js +39 -37
- package/policy.js.map +1 -1
- package/provider.d.ts +30 -8
- package/provider.js +28 -30
- package/provider.js.map +1 -1
- package/queue.d.ts +29 -22
- package/queue.js +45 -40
- package/queue.js.map +1 -1
- package/shovel.d.ts +29 -23
- package/shovel.js +45 -41
- package/shovel.js.map +1 -1
- package/topicPermissions.d.ts +16 -14
- package/topicPermissions.js +35 -35
- package/topicPermissions.js.map +1 -1
- package/types/index.js +2 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +129 -15
- package/types/input.js +1 -1
- package/types/input.js.map +1 -1
- package/types/output.d.ts +137 -15
- package/types/output.js +1 -1
- package/types/output.js.map +1 -1
- package/user.d.ts +8 -7
- package/user.js +28 -26
- package/user.js.map +1 -1
- package/utilities.js +41 -1
- package/utilities.js.map +1 -1
- package/vhost.d.ts +62 -4
- package/vhost.js +36 -20
- package/vhost.js.map +1 -1
- package/package.json.bak +0 -25
- package/package.json.dev +0 -25
- package/scripts/install-pulumi-plugin.js +0 -21
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@pulumi/rabbitmq)
|
|
4
4
|
[](https://pypi.org/project/pulumi-rabbitmq)
|
|
5
5
|
[](https://badge.fury.io/nu/pulumi.rabbitmq)
|
|
6
|
-
[](https://pkg.go.dev/github.com/pulumi/pulumi-rabbitmq/sdk/v3/go)
|
|
7
7
|
[](https://github.com/pulumi/pulumi-rabbitmq/blob/master/LICENSE)
|
|
8
8
|
|
|
9
9
|
# RabbitMQ Resource Provider
|
|
@@ -35,7 +35,7 @@ To use from Python, install using `pip`:
|
|
|
35
35
|
|
|
36
36
|
To use from Go, use `go get` to grab the latest version of the library
|
|
37
37
|
|
|
38
|
-
$ go get github.com/pulumi/pulumi-rabbitmq/sdk/
|
|
38
|
+
$ go get github.com/pulumi/pulumi-rabbitmq/sdk/v2
|
|
39
39
|
|
|
40
40
|
### .NET
|
|
41
41
|
|
package/binding.d.ts
CHANGED
|
@@ -9,48 +9,49 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
10
|
* import * as rabbitmq from "@pulumi/rabbitmq";
|
|
11
11
|
*
|
|
12
|
-
* const
|
|
12
|
+
* const test = new rabbitmq.VHost("test", {name: "test"});
|
|
13
13
|
* const guest = new rabbitmq.Permissions("guest", {
|
|
14
|
+
* user: "guest",
|
|
15
|
+
* vhost: test.name,
|
|
14
16
|
* permissions: {
|
|
15
17
|
* configure: ".*",
|
|
16
|
-
* read: ".*",
|
|
17
18
|
* write: ".*",
|
|
19
|
+
* read: ".*",
|
|
18
20
|
* },
|
|
19
|
-
* user: "guest",
|
|
20
|
-
* vhost: testVHost.name,
|
|
21
21
|
* });
|
|
22
22
|
* const testExchange = new rabbitmq.Exchange("test", {
|
|
23
|
+
* name: "test",
|
|
24
|
+
* vhost: guest.vhost,
|
|
23
25
|
* settings: {
|
|
24
|
-
* autoDelete: true,
|
|
25
|
-
* durable: false,
|
|
26
26
|
* type: "fanout",
|
|
27
|
+
* durable: false,
|
|
28
|
+
* autoDelete: true,
|
|
27
29
|
* },
|
|
28
|
-
* vhost: guest.vhost,
|
|
29
30
|
* });
|
|
30
31
|
* const testQueue = new rabbitmq.Queue("test", {
|
|
32
|
+
* name: "test",
|
|
33
|
+
* vhost: guest.vhost,
|
|
31
34
|
* settings: {
|
|
32
|
-
* autoDelete: false,
|
|
33
35
|
* durable: true,
|
|
36
|
+
* autoDelete: false,
|
|
34
37
|
* },
|
|
35
|
-
* vhost: guest.vhost,
|
|
36
38
|
* });
|
|
37
39
|
* const testBinding = new rabbitmq.Binding("test", {
|
|
40
|
+
* source: testExchange.name,
|
|
41
|
+
* vhost: test.name,
|
|
38
42
|
* destination: testQueue.name,
|
|
39
43
|
* destinationType: "queue",
|
|
40
44
|
* routingKey: "#",
|
|
41
|
-
* source: testExchange.name,
|
|
42
|
-
* vhost: testVHost.name,
|
|
43
45
|
* });
|
|
44
46
|
* ```
|
|
45
47
|
*
|
|
46
48
|
* ## Import
|
|
47
49
|
*
|
|
48
50
|
* Bindings can be imported using the `id` which is composed of
|
|
49
|
-
*
|
|
50
|
-
* `vhost/source/destination/destination_type/properties_key`. E.g.
|
|
51
|
+
* `vhost/source/destination/destination_type/properties_key`. E.g.
|
|
51
52
|
*
|
|
52
53
|
* ```sh
|
|
53
|
-
*
|
|
54
|
+
* $ pulumi import rabbitmq:index/binding:Binding test test/test/test/queue/%23
|
|
54
55
|
* ```
|
|
55
56
|
*/
|
|
56
57
|
export declare class Binding extends pulumi.CustomResource {
|
|
@@ -73,7 +74,7 @@ export declare class Binding extends pulumi.CustomResource {
|
|
|
73
74
|
* Additional key/value arguments for the binding.
|
|
74
75
|
*/
|
|
75
76
|
readonly arguments: pulumi.Output<{
|
|
76
|
-
[key: string]:
|
|
77
|
+
[key: string]: string;
|
|
77
78
|
} | undefined>;
|
|
78
79
|
readonly argumentsJson: pulumi.Output<string | undefined>;
|
|
79
80
|
/**
|
|
@@ -116,34 +117,34 @@ export interface BindingState {
|
|
|
116
117
|
/**
|
|
117
118
|
* Additional key/value arguments for the binding.
|
|
118
119
|
*/
|
|
119
|
-
|
|
120
|
-
[key: string]:
|
|
120
|
+
arguments?: pulumi.Input<{
|
|
121
|
+
[key: string]: pulumi.Input<string>;
|
|
121
122
|
}>;
|
|
122
|
-
|
|
123
|
+
argumentsJson?: pulumi.Input<string>;
|
|
123
124
|
/**
|
|
124
125
|
* The destination queue or exchange.
|
|
125
126
|
*/
|
|
126
|
-
|
|
127
|
+
destination?: pulumi.Input<string>;
|
|
127
128
|
/**
|
|
128
129
|
* The type of destination (queue or exchange).
|
|
129
130
|
*/
|
|
130
|
-
|
|
131
|
+
destinationType?: pulumi.Input<string>;
|
|
131
132
|
/**
|
|
132
133
|
* A unique key to refer to the binding.
|
|
133
134
|
*/
|
|
134
|
-
|
|
135
|
+
propertiesKey?: pulumi.Input<string>;
|
|
135
136
|
/**
|
|
136
137
|
* A routing key for the binding.
|
|
137
138
|
*/
|
|
138
|
-
|
|
139
|
+
routingKey?: pulumi.Input<string>;
|
|
139
140
|
/**
|
|
140
141
|
* The source exchange.
|
|
141
142
|
*/
|
|
142
|
-
|
|
143
|
+
source?: pulumi.Input<string>;
|
|
143
144
|
/**
|
|
144
145
|
* The vhost to create the resource in.
|
|
145
146
|
*/
|
|
146
|
-
|
|
147
|
+
vhost?: pulumi.Input<string>;
|
|
147
148
|
}
|
|
148
149
|
/**
|
|
149
150
|
* The set of arguments for constructing a Binding resource.
|
|
@@ -152,28 +153,28 @@ export interface BindingArgs {
|
|
|
152
153
|
/**
|
|
153
154
|
* Additional key/value arguments for the binding.
|
|
154
155
|
*/
|
|
155
|
-
|
|
156
|
-
[key: string]:
|
|
156
|
+
arguments?: pulumi.Input<{
|
|
157
|
+
[key: string]: pulumi.Input<string>;
|
|
157
158
|
}>;
|
|
158
|
-
|
|
159
|
+
argumentsJson?: pulumi.Input<string>;
|
|
159
160
|
/**
|
|
160
161
|
* The destination queue or exchange.
|
|
161
162
|
*/
|
|
162
|
-
|
|
163
|
+
destination: pulumi.Input<string>;
|
|
163
164
|
/**
|
|
164
165
|
* The type of destination (queue or exchange).
|
|
165
166
|
*/
|
|
166
|
-
|
|
167
|
+
destinationType: pulumi.Input<string>;
|
|
167
168
|
/**
|
|
168
169
|
* A routing key for the binding.
|
|
169
170
|
*/
|
|
170
|
-
|
|
171
|
+
routingKey?: pulumi.Input<string>;
|
|
171
172
|
/**
|
|
172
173
|
* The source exchange.
|
|
173
174
|
*/
|
|
174
|
-
|
|
175
|
+
source: pulumi.Input<string>;
|
|
175
176
|
/**
|
|
176
177
|
* The vhost to create the resource in.
|
|
177
178
|
*/
|
|
178
|
-
|
|
179
|
+
vhost: pulumi.Input<string>;
|
|
179
180
|
}
|
package/binding.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.Binding = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -14,93 +15,52 @@ const utilities = require("./utilities");
|
|
|
14
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
16
|
* import * as rabbitmq from "@pulumi/rabbitmq";
|
|
16
17
|
*
|
|
17
|
-
* const
|
|
18
|
+
* const test = new rabbitmq.VHost("test", {name: "test"});
|
|
18
19
|
* const guest = new rabbitmq.Permissions("guest", {
|
|
20
|
+
* user: "guest",
|
|
21
|
+
* vhost: test.name,
|
|
19
22
|
* permissions: {
|
|
20
23
|
* configure: ".*",
|
|
21
|
-
* read: ".*",
|
|
22
24
|
* write: ".*",
|
|
25
|
+
* read: ".*",
|
|
23
26
|
* },
|
|
24
|
-
* user: "guest",
|
|
25
|
-
* vhost: testVHost.name,
|
|
26
27
|
* });
|
|
27
28
|
* const testExchange = new rabbitmq.Exchange("test", {
|
|
29
|
+
* name: "test",
|
|
30
|
+
* vhost: guest.vhost,
|
|
28
31
|
* settings: {
|
|
29
|
-
* autoDelete: true,
|
|
30
|
-
* durable: false,
|
|
31
32
|
* type: "fanout",
|
|
33
|
+
* durable: false,
|
|
34
|
+
* autoDelete: true,
|
|
32
35
|
* },
|
|
33
|
-
* vhost: guest.vhost,
|
|
34
36
|
* });
|
|
35
37
|
* const testQueue = new rabbitmq.Queue("test", {
|
|
38
|
+
* name: "test",
|
|
39
|
+
* vhost: guest.vhost,
|
|
36
40
|
* settings: {
|
|
37
|
-
* autoDelete: false,
|
|
38
41
|
* durable: true,
|
|
42
|
+
* autoDelete: false,
|
|
39
43
|
* },
|
|
40
|
-
* vhost: guest.vhost,
|
|
41
44
|
* });
|
|
42
45
|
* const testBinding = new rabbitmq.Binding("test", {
|
|
46
|
+
* source: testExchange.name,
|
|
47
|
+
* vhost: test.name,
|
|
43
48
|
* destination: testQueue.name,
|
|
44
49
|
* destinationType: "queue",
|
|
45
50
|
* routingKey: "#",
|
|
46
|
-
* source: testExchange.name,
|
|
47
|
-
* vhost: testVHost.name,
|
|
48
51
|
* });
|
|
49
52
|
* ```
|
|
50
53
|
*
|
|
51
54
|
* ## Import
|
|
52
55
|
*
|
|
53
56
|
* Bindings can be imported using the `id` which is composed of
|
|
54
|
-
*
|
|
55
|
-
* `vhost/source/destination/destination_type/properties_key`. E.g.
|
|
57
|
+
* `vhost/source/destination/destination_type/properties_key`. E.g.
|
|
56
58
|
*
|
|
57
59
|
* ```sh
|
|
58
|
-
*
|
|
60
|
+
* $ pulumi import rabbitmq:index/binding:Binding test test/test/test/queue/%23
|
|
59
61
|
* ```
|
|
60
62
|
*/
|
|
61
63
|
class Binding extends pulumi.CustomResource {
|
|
62
|
-
constructor(name, argsOrState, opts) {
|
|
63
|
-
let inputs = {};
|
|
64
|
-
opts = opts || {};
|
|
65
|
-
if (opts.id) {
|
|
66
|
-
const state = argsOrState;
|
|
67
|
-
inputs["arguments"] = state ? state.arguments : undefined;
|
|
68
|
-
inputs["argumentsJson"] = state ? state.argumentsJson : undefined;
|
|
69
|
-
inputs["destination"] = state ? state.destination : undefined;
|
|
70
|
-
inputs["destinationType"] = state ? state.destinationType : undefined;
|
|
71
|
-
inputs["propertiesKey"] = state ? state.propertiesKey : undefined;
|
|
72
|
-
inputs["routingKey"] = state ? state.routingKey : undefined;
|
|
73
|
-
inputs["source"] = state ? state.source : undefined;
|
|
74
|
-
inputs["vhost"] = state ? state.vhost : undefined;
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
const args = argsOrState;
|
|
78
|
-
if ((!args || args.destination === undefined) && !opts.urn) {
|
|
79
|
-
throw new Error("Missing required property 'destination'");
|
|
80
|
-
}
|
|
81
|
-
if ((!args || args.destinationType === undefined) && !opts.urn) {
|
|
82
|
-
throw new Error("Missing required property 'destinationType'");
|
|
83
|
-
}
|
|
84
|
-
if ((!args || args.source === undefined) && !opts.urn) {
|
|
85
|
-
throw new Error("Missing required property 'source'");
|
|
86
|
-
}
|
|
87
|
-
if ((!args || args.vhost === undefined) && !opts.urn) {
|
|
88
|
-
throw new Error("Missing required property 'vhost'");
|
|
89
|
-
}
|
|
90
|
-
inputs["arguments"] = args ? args.arguments : undefined;
|
|
91
|
-
inputs["argumentsJson"] = args ? args.argumentsJson : undefined;
|
|
92
|
-
inputs["destination"] = args ? args.destination : undefined;
|
|
93
|
-
inputs["destinationType"] = args ? args.destinationType : undefined;
|
|
94
|
-
inputs["routingKey"] = args ? args.routingKey : undefined;
|
|
95
|
-
inputs["source"] = args ? args.source : undefined;
|
|
96
|
-
inputs["vhost"] = args ? args.vhost : undefined;
|
|
97
|
-
inputs["propertiesKey"] = undefined /*out*/;
|
|
98
|
-
}
|
|
99
|
-
if (!opts.version) {
|
|
100
|
-
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
101
|
-
}
|
|
102
|
-
super(Binding.__pulumiType, name, inputs, opts);
|
|
103
|
-
}
|
|
104
64
|
/**
|
|
105
65
|
* Get an existing Binding resource's state with the given name, ID, and optional extra
|
|
106
66
|
* properties used to qualify the lookup.
|
|
@@ -111,7 +71,7 @@ class Binding extends pulumi.CustomResource {
|
|
|
111
71
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
112
72
|
*/
|
|
113
73
|
static get(name, id, state, opts) {
|
|
114
|
-
return new Binding(name, state,
|
|
74
|
+
return new Binding(name, state, { ...opts, id: id });
|
|
115
75
|
}
|
|
116
76
|
/**
|
|
117
77
|
* Returns true if the given object is an instance of Binding. This is designed to work even
|
|
@@ -123,6 +83,46 @@ class Binding extends pulumi.CustomResource {
|
|
|
123
83
|
}
|
|
124
84
|
return obj['__pulumiType'] === Binding.__pulumiType;
|
|
125
85
|
}
|
|
86
|
+
constructor(name, argsOrState, opts) {
|
|
87
|
+
let resourceInputs = {};
|
|
88
|
+
opts = opts || {};
|
|
89
|
+
if (opts.id) {
|
|
90
|
+
const state = argsOrState;
|
|
91
|
+
resourceInputs["arguments"] = state?.arguments;
|
|
92
|
+
resourceInputs["argumentsJson"] = state?.argumentsJson;
|
|
93
|
+
resourceInputs["destination"] = state?.destination;
|
|
94
|
+
resourceInputs["destinationType"] = state?.destinationType;
|
|
95
|
+
resourceInputs["propertiesKey"] = state?.propertiesKey;
|
|
96
|
+
resourceInputs["routingKey"] = state?.routingKey;
|
|
97
|
+
resourceInputs["source"] = state?.source;
|
|
98
|
+
resourceInputs["vhost"] = state?.vhost;
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
const args = argsOrState;
|
|
102
|
+
if (args?.destination === undefined && !opts.urn) {
|
|
103
|
+
throw new Error("Missing required property 'destination'");
|
|
104
|
+
}
|
|
105
|
+
if (args?.destinationType === undefined && !opts.urn) {
|
|
106
|
+
throw new Error("Missing required property 'destinationType'");
|
|
107
|
+
}
|
|
108
|
+
if (args?.source === undefined && !opts.urn) {
|
|
109
|
+
throw new Error("Missing required property 'source'");
|
|
110
|
+
}
|
|
111
|
+
if (args?.vhost === undefined && !opts.urn) {
|
|
112
|
+
throw new Error("Missing required property 'vhost'");
|
|
113
|
+
}
|
|
114
|
+
resourceInputs["arguments"] = args?.arguments;
|
|
115
|
+
resourceInputs["argumentsJson"] = args?.argumentsJson;
|
|
116
|
+
resourceInputs["destination"] = args?.destination;
|
|
117
|
+
resourceInputs["destinationType"] = args?.destinationType;
|
|
118
|
+
resourceInputs["routingKey"] = args?.routingKey;
|
|
119
|
+
resourceInputs["source"] = args?.source;
|
|
120
|
+
resourceInputs["vhost"] = args?.vhost;
|
|
121
|
+
resourceInputs["propertiesKey"] = undefined /*out*/;
|
|
122
|
+
}
|
|
123
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
124
|
+
super(Binding.__pulumiType, name, resourceInputs, opts);
|
|
125
|
+
}
|
|
126
126
|
}
|
|
127
127
|
exports.Binding = Binding;
|
|
128
128
|
/** @internal */
|
package/binding.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binding.js","sourceRoot":"","sources":["../binding.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"binding.js","sourceRoot":"","sources":["../binding.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC;;AAxGL,0BAyGC;AA3FG,gBAAgB;AACO,oBAAY,GAAG,gCAAgC,CAAC"}
|
package/config/index.js
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
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
|
+
};
|
|
7
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
19
|
// Export members:
|
|
9
|
-
|
|
20
|
+
__exportStar(require("./vars"), exports);
|
|
10
21
|
//# sourceMappingURL=index.js.map
|
package/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
|
package/config/vars.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
export declare
|
|
3
|
-
export declare
|
|
4
|
-
export declare
|
|
5
|
-
export declare
|
|
6
|
-
export declare
|
|
7
|
-
export declare
|
|
1
|
+
export declare const cacertFile: string | undefined;
|
|
2
|
+
export declare const clientcertFile: string | undefined;
|
|
3
|
+
export declare const clientkeyFile: string | undefined;
|
|
4
|
+
export declare const endpoint: string | undefined;
|
|
5
|
+
export declare const insecure: boolean | undefined;
|
|
6
|
+
export declare const password: string | undefined;
|
|
7
|
+
export declare const proxy: string | undefined;
|
|
8
|
+
export declare const username: string | undefined;
|
package/config/vars.js
CHANGED
|
@@ -1,15 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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
5
|
const pulumi = require("@pulumi/pulumi");
|
|
6
6
|
const utilities = require("../utilities");
|
|
7
|
-
|
|
8
|
-
exports
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports
|
|
7
|
+
const __config = new pulumi.Config("rabbitmq");
|
|
8
|
+
Object.defineProperty(exports, "cacertFile", {
|
|
9
|
+
get() {
|
|
10
|
+
return __config.get("cacertFile") ?? utilities.getEnv("RABBITMQ_CACERT");
|
|
11
|
+
},
|
|
12
|
+
enumerable: true,
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "clientcertFile", {
|
|
15
|
+
get() {
|
|
16
|
+
return __config.get("clientcertFile");
|
|
17
|
+
},
|
|
18
|
+
enumerable: true,
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "clientkeyFile", {
|
|
21
|
+
get() {
|
|
22
|
+
return __config.get("clientkeyFile");
|
|
23
|
+
},
|
|
24
|
+
enumerable: true,
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "endpoint", {
|
|
27
|
+
get() {
|
|
28
|
+
return __config.get("endpoint");
|
|
29
|
+
},
|
|
30
|
+
enumerable: true,
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "insecure", {
|
|
33
|
+
get() {
|
|
34
|
+
return __config.getObject("insecure") ?? utilities.getEnvBoolean("RABBITMQ_INSECURE");
|
|
35
|
+
},
|
|
36
|
+
enumerable: true,
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "password", {
|
|
39
|
+
get() {
|
|
40
|
+
return __config.get("password");
|
|
41
|
+
},
|
|
42
|
+
enumerable: true,
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "proxy", {
|
|
45
|
+
get() {
|
|
46
|
+
return __config.get("proxy");
|
|
47
|
+
},
|
|
48
|
+
enumerable: true,
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "username", {
|
|
51
|
+
get() {
|
|
52
|
+
return __config.get("username");
|
|
53
|
+
},
|
|
54
|
+
enumerable: true,
|
|
55
|
+
});
|
|
15
56
|
//# sourceMappingURL=vars.js.map
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AACzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;AAG/C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE;IACzC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,iBAA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,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/exchange.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
3
4
|
/**
|
|
4
5
|
* The ``rabbitmq.Exchange`` resource creates and manages an exchange.
|
|
5
6
|
*
|
|
@@ -9,34 +10,35 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
9
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
11
|
* import * as rabbitmq from "@pulumi/rabbitmq";
|
|
11
12
|
*
|
|
12
|
-
* const
|
|
13
|
+
* const test = new rabbitmq.VHost("test", {name: "test"});
|
|
13
14
|
* const guest = new rabbitmq.Permissions("guest", {
|
|
15
|
+
* user: "guest",
|
|
16
|
+
* vhost: test.name,
|
|
14
17
|
* permissions: {
|
|
15
18
|
* configure: ".*",
|
|
16
|
-
* read: ".*",
|
|
17
19
|
* write: ".*",
|
|
20
|
+
* read: ".*",
|
|
18
21
|
* },
|
|
19
|
-
* user: "guest",
|
|
20
|
-
* vhost: testVHost.name,
|
|
21
22
|
* });
|
|
22
23
|
* const testExchange = new rabbitmq.Exchange("test", {
|
|
24
|
+
* name: "test",
|
|
25
|
+
* vhost: guest.vhost,
|
|
23
26
|
* settings: {
|
|
24
|
-
* autoDelete: true,
|
|
25
|
-
* durable: false,
|
|
26
27
|
* type: "fanout",
|
|
28
|
+
* durable: false,
|
|
29
|
+
* autoDelete: true,
|
|
27
30
|
* },
|
|
28
|
-
* vhost: guest.vhost,
|
|
29
31
|
* });
|
|
30
32
|
* ```
|
|
31
33
|
*
|
|
32
34
|
* ## Import
|
|
33
35
|
*
|
|
34
|
-
* Exchanges can be imported using the `id` which is composed of
|
|
36
|
+
* Exchanges can be imported using the `id` which is composed of `name@vhost`.
|
|
35
37
|
*
|
|
36
|
-
*
|
|
38
|
+
* E.g.
|
|
37
39
|
*
|
|
38
40
|
* ```sh
|
|
39
|
-
*
|
|
41
|
+
* $ pulumi import rabbitmq:index/exchange:Exchange test test@vhost
|
|
40
42
|
* ```
|
|
41
43
|
*/
|
|
42
44
|
export declare class Exchange extends pulumi.CustomResource {
|
|
@@ -84,16 +86,16 @@ export interface ExchangeState {
|
|
|
84
86
|
/**
|
|
85
87
|
* The name of the exchange.
|
|
86
88
|
*/
|
|
87
|
-
|
|
89
|
+
name?: pulumi.Input<string>;
|
|
88
90
|
/**
|
|
89
91
|
* The settings of the exchange. The structure is
|
|
90
92
|
* described below.
|
|
91
93
|
*/
|
|
92
|
-
|
|
94
|
+
settings?: pulumi.Input<inputs.ExchangeSettings>;
|
|
93
95
|
/**
|
|
94
96
|
* The vhost to create the resource in.
|
|
95
97
|
*/
|
|
96
|
-
|
|
98
|
+
vhost?: pulumi.Input<string>;
|
|
97
99
|
}
|
|
98
100
|
/**
|
|
99
101
|
* The set of arguments for constructing a Exchange resource.
|
|
@@ -102,14 +104,14 @@ export interface ExchangeArgs {
|
|
|
102
104
|
/**
|
|
103
105
|
* The name of the exchange.
|
|
104
106
|
*/
|
|
105
|
-
|
|
107
|
+
name?: pulumi.Input<string>;
|
|
106
108
|
/**
|
|
107
109
|
* The settings of the exchange. The structure is
|
|
108
110
|
* described below.
|
|
109
111
|
*/
|
|
110
|
-
|
|
112
|
+
settings: pulumi.Input<inputs.ExchangeSettings>;
|
|
111
113
|
/**
|
|
112
114
|
* The vhost to create the resource in.
|
|
113
115
|
*/
|
|
114
|
-
|
|
116
|
+
vhost?: pulumi.Input<string>;
|
|
115
117
|
}
|