@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
package/README.md
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
[](https://github.com/pulumi/pulumi-rabbitmq/actions)
|
|
2
|
+
[](https://slack.pulumi.com)
|
|
3
|
+
[](https://www.npmjs.com/package/@pulumi/rabbitmq)
|
|
4
|
+
[](https://pypi.org/project/pulumi-rabbitmq)
|
|
5
|
+
[](https://badge.fury.io/nu/pulumi.rabbitmq)
|
|
6
|
+
[](https://pkg.go.dev/github.com/pulumi/pulumi-rabbitmq/sdk/v3/go)
|
|
7
|
+
[](https://github.com/pulumi/pulumi-rabbitmq/blob/master/LICENSE)
|
|
2
8
|
|
|
3
9
|
# RabbitMQ Resource Provider
|
|
4
10
|
|
|
@@ -29,7 +35,13 @@ To use from Python, install using `pip`:
|
|
|
29
35
|
|
|
30
36
|
To use from Go, use `go get` to grab the latest version of the library
|
|
31
37
|
|
|
32
|
-
$ go get github.com/pulumi/pulumi-rabbitmq/sdk/
|
|
38
|
+
$ go get github.com/pulumi/pulumi-rabbitmq/sdk/v2
|
|
39
|
+
|
|
40
|
+
### .NET
|
|
41
|
+
|
|
42
|
+
To use from .NET, install using `dotnet add package`:
|
|
43
|
+
|
|
44
|
+
$ dotnet add package Pulumi.Rabbitmq
|
|
33
45
|
|
|
34
46
|
## Configuration
|
|
35
47
|
|
|
@@ -48,4 +60,4 @@ The following configuration points are available:
|
|
|
48
60
|
|
|
49
61
|
## Reference
|
|
50
62
|
|
|
51
|
-
For detailed reference documentation, please visit [the API docs](https://pulumi.
|
|
63
|
+
For further information, please visit [the RabbitMQ provider docs](https://www.pulumi.com/docs/intro/cloud-providers/rabbitmq) or for detailed reference documentation, please visit [the API docs](https://www.pulumi.com/docs/reference/pkg/rabbitmq).
|
package/binding.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* The ``rabbitmq
|
|
3
|
+
* The ``rabbitmq.Binding`` resource creates and manages a binding relationship
|
|
4
4
|
* between a queue an exchange.
|
|
5
5
|
*
|
|
6
6
|
* ## Example Usage
|
|
@@ -43,7 +43,15 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
43
43
|
* });
|
|
44
44
|
* ```
|
|
45
45
|
*
|
|
46
|
-
*
|
|
46
|
+
* ## Import
|
|
47
|
+
*
|
|
48
|
+
* Bindings can be imported using the `id` which is composed of
|
|
49
|
+
*
|
|
50
|
+
* `vhost/source/destination/destination_type/properties_key`. E.g.
|
|
51
|
+
*
|
|
52
|
+
* ```sh
|
|
53
|
+
* $ pulumi import rabbitmq:index/binding:Binding test test/test/test/queue/%23
|
|
54
|
+
* ```
|
|
47
55
|
*/
|
|
48
56
|
export declare class Binding extends pulumi.CustomResource {
|
|
49
57
|
/**
|
|
@@ -53,6 +61,7 @@ export declare class Binding extends pulumi.CustomResource {
|
|
|
53
61
|
* @param name The _unique_ name of the resulting resource.
|
|
54
62
|
* @param id The _unique_ provider ID of the resource to lookup.
|
|
55
63
|
* @param state Any extra arguments used during the lookup.
|
|
64
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
56
65
|
*/
|
|
57
66
|
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BindingState, opts?: pulumi.CustomResourceOptions): Binding;
|
|
58
67
|
/**
|
|
@@ -66,6 +75,7 @@ export declare class Binding extends pulumi.CustomResource {
|
|
|
66
75
|
readonly arguments: pulumi.Output<{
|
|
67
76
|
[key: string]: any;
|
|
68
77
|
} | undefined>;
|
|
78
|
+
readonly argumentsJson: pulumi.Output<string | undefined>;
|
|
69
79
|
/**
|
|
70
80
|
* The destination queue or exchange.
|
|
71
81
|
*/
|
|
@@ -106,33 +116,34 @@ export interface BindingState {
|
|
|
106
116
|
/**
|
|
107
117
|
* Additional key/value arguments for the binding.
|
|
108
118
|
*/
|
|
109
|
-
|
|
119
|
+
arguments?: pulumi.Input<{
|
|
110
120
|
[key: string]: any;
|
|
111
121
|
}>;
|
|
122
|
+
argumentsJson?: pulumi.Input<string>;
|
|
112
123
|
/**
|
|
113
124
|
* The destination queue or exchange.
|
|
114
125
|
*/
|
|
115
|
-
|
|
126
|
+
destination?: pulumi.Input<string>;
|
|
116
127
|
/**
|
|
117
128
|
* The type of destination (queue or exchange).
|
|
118
129
|
*/
|
|
119
|
-
|
|
130
|
+
destinationType?: pulumi.Input<string>;
|
|
120
131
|
/**
|
|
121
132
|
* A unique key to refer to the binding.
|
|
122
133
|
*/
|
|
123
|
-
|
|
134
|
+
propertiesKey?: pulumi.Input<string>;
|
|
124
135
|
/**
|
|
125
136
|
* A routing key for the binding.
|
|
126
137
|
*/
|
|
127
|
-
|
|
138
|
+
routingKey?: pulumi.Input<string>;
|
|
128
139
|
/**
|
|
129
140
|
* The source exchange.
|
|
130
141
|
*/
|
|
131
|
-
|
|
142
|
+
source?: pulumi.Input<string>;
|
|
132
143
|
/**
|
|
133
144
|
* The vhost to create the resource in.
|
|
134
145
|
*/
|
|
135
|
-
|
|
146
|
+
vhost?: pulumi.Input<string>;
|
|
136
147
|
}
|
|
137
148
|
/**
|
|
138
149
|
* The set of arguments for constructing a Binding resource.
|
|
@@ -141,27 +152,28 @@ export interface BindingArgs {
|
|
|
141
152
|
/**
|
|
142
153
|
* Additional key/value arguments for the binding.
|
|
143
154
|
*/
|
|
144
|
-
|
|
155
|
+
arguments?: pulumi.Input<{
|
|
145
156
|
[key: string]: any;
|
|
146
157
|
}>;
|
|
158
|
+
argumentsJson?: pulumi.Input<string>;
|
|
147
159
|
/**
|
|
148
160
|
* The destination queue or exchange.
|
|
149
161
|
*/
|
|
150
|
-
|
|
162
|
+
destination: pulumi.Input<string>;
|
|
151
163
|
/**
|
|
152
164
|
* The type of destination (queue or exchange).
|
|
153
165
|
*/
|
|
154
|
-
|
|
166
|
+
destinationType: pulumi.Input<string>;
|
|
155
167
|
/**
|
|
156
168
|
* A routing key for the binding.
|
|
157
169
|
*/
|
|
158
|
-
|
|
170
|
+
routingKey?: pulumi.Input<string>;
|
|
159
171
|
/**
|
|
160
172
|
* The source exchange.
|
|
161
173
|
*/
|
|
162
|
-
|
|
174
|
+
source: pulumi.Input<string>;
|
|
163
175
|
/**
|
|
164
176
|
* The vhost to create the resource in.
|
|
165
177
|
*/
|
|
166
|
-
|
|
178
|
+
vhost: pulumi.Input<string>;
|
|
167
179
|
}
|
package/binding.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.Binding = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
8
|
-
* The ``rabbitmq
|
|
9
|
+
* The ``rabbitmq.Binding`` resource creates and manages a binding relationship
|
|
9
10
|
* between a queue an exchange.
|
|
10
11
|
*
|
|
11
12
|
* ## Example Usage
|
|
@@ -48,50 +49,56 @@ const utilities = require("./utilities");
|
|
|
48
49
|
* });
|
|
49
50
|
* ```
|
|
50
51
|
*
|
|
51
|
-
*
|
|
52
|
+
* ## Import
|
|
53
|
+
*
|
|
54
|
+
* Bindings can be imported using the `id` which is composed of
|
|
55
|
+
*
|
|
56
|
+
* `vhost/source/destination/destination_type/properties_key`. E.g.
|
|
57
|
+
*
|
|
58
|
+
* ```sh
|
|
59
|
+
* $ pulumi import rabbitmq:index/binding:Binding test test/test/test/queue/%23
|
|
60
|
+
* ```
|
|
52
61
|
*/
|
|
53
62
|
class Binding extends pulumi.CustomResource {
|
|
54
63
|
constructor(name, argsOrState, opts) {
|
|
55
|
-
let
|
|
56
|
-
|
|
64
|
+
let resourceInputs = {};
|
|
65
|
+
opts = opts || {};
|
|
66
|
+
if (opts.id) {
|
|
57
67
|
const state = argsOrState;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
68
|
+
resourceInputs["arguments"] = state ? state.arguments : undefined;
|
|
69
|
+
resourceInputs["argumentsJson"] = state ? state.argumentsJson : undefined;
|
|
70
|
+
resourceInputs["destination"] = state ? state.destination : undefined;
|
|
71
|
+
resourceInputs["destinationType"] = state ? state.destinationType : undefined;
|
|
72
|
+
resourceInputs["propertiesKey"] = state ? state.propertiesKey : undefined;
|
|
73
|
+
resourceInputs["routingKey"] = state ? state.routingKey : undefined;
|
|
74
|
+
resourceInputs["source"] = state ? state.source : undefined;
|
|
75
|
+
resourceInputs["vhost"] = state ? state.vhost : undefined;
|
|
65
76
|
}
|
|
66
77
|
else {
|
|
67
78
|
const args = argsOrState;
|
|
68
|
-
if (!args || args.destination === undefined) {
|
|
79
|
+
if ((!args || args.destination === undefined) && !opts.urn) {
|
|
69
80
|
throw new Error("Missing required property 'destination'");
|
|
70
81
|
}
|
|
71
|
-
if (!args || args.destinationType === undefined) {
|
|
82
|
+
if ((!args || args.destinationType === undefined) && !opts.urn) {
|
|
72
83
|
throw new Error("Missing required property 'destinationType'");
|
|
73
84
|
}
|
|
74
|
-
if (!args || args.source === undefined) {
|
|
85
|
+
if ((!args || args.source === undefined) && !opts.urn) {
|
|
75
86
|
throw new Error("Missing required property 'source'");
|
|
76
87
|
}
|
|
77
|
-
if (!args || args.vhost === undefined) {
|
|
88
|
+
if ((!args || args.vhost === undefined) && !opts.urn) {
|
|
78
89
|
throw new Error("Missing required property 'vhost'");
|
|
79
90
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
if (!opts) {
|
|
89
|
-
opts = {};
|
|
90
|
-
}
|
|
91
|
-
if (!opts.version) {
|
|
92
|
-
opts.version = utilities.getVersion();
|
|
91
|
+
resourceInputs["arguments"] = args ? args.arguments : undefined;
|
|
92
|
+
resourceInputs["argumentsJson"] = args ? args.argumentsJson : undefined;
|
|
93
|
+
resourceInputs["destination"] = args ? args.destination : undefined;
|
|
94
|
+
resourceInputs["destinationType"] = args ? args.destinationType : undefined;
|
|
95
|
+
resourceInputs["routingKey"] = args ? args.routingKey : undefined;
|
|
96
|
+
resourceInputs["source"] = args ? args.source : undefined;
|
|
97
|
+
resourceInputs["vhost"] = args ? args.vhost : undefined;
|
|
98
|
+
resourceInputs["propertiesKey"] = undefined /*out*/;
|
|
93
99
|
}
|
|
94
|
-
|
|
100
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
101
|
+
super(Binding.__pulumiType, name, resourceInputs, opts);
|
|
95
102
|
}
|
|
96
103
|
/**
|
|
97
104
|
* Get an existing Binding resource's state with the given name, ID, and optional extra
|
|
@@ -100,6 +107,7 @@ class Binding extends pulumi.CustomResource {
|
|
|
100
107
|
* @param name The _unique_ name of the resulting resource.
|
|
101
108
|
* @param id The _unique_ provider ID of the resource to lookup.
|
|
102
109
|
* @param state Any extra arguments used during the lookup.
|
|
110
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
103
111
|
*/
|
|
104
112
|
static get(name, id, state, opts) {
|
|
105
113
|
return new Binding(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
package/binding.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binding.js","sourceRoot":"","sources":["../binding.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"binding.js","sourceRoot":"","sources":["../binding.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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I,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;YACxD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IAvGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;;AA1BL,0BAyGC;AA3FG,gBAAgB;AACO,oBAAY,GAAG,gCAAgC,CAAC"}
|
package/config/index.js
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
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
|
-
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,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
|
package/config/vars.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
export declare
|
|
3
|
-
export declare
|
|
4
|
-
export declare
|
|
5
|
-
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
|
@@ -4,10 +4,55 @@
|
|
|
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
|
-
|
|
7
|
+
const __config = new pulumi.Config("rabbitmq");
|
|
8
|
+
Object.defineProperty(exports, "cacertFile", {
|
|
9
|
+
get() {
|
|
10
|
+
var _a;
|
|
11
|
+
return (_a = __config.get("cacertFile")) !== null && _a !== void 0 ? _a : utilities.getEnv("RABBITMQ_CACERT");
|
|
12
|
+
},
|
|
13
|
+
enumerable: true,
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "clientcertFile", {
|
|
16
|
+
get() {
|
|
17
|
+
return __config.get("clientcertFile");
|
|
18
|
+
},
|
|
19
|
+
enumerable: true,
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "clientkeyFile", {
|
|
22
|
+
get() {
|
|
23
|
+
return __config.get("clientkeyFile");
|
|
24
|
+
},
|
|
25
|
+
enumerable: true,
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "endpoint", {
|
|
28
|
+
get() {
|
|
29
|
+
return __config.get("endpoint");
|
|
30
|
+
},
|
|
31
|
+
enumerable: true,
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "insecure", {
|
|
34
|
+
get() {
|
|
35
|
+
var _a;
|
|
36
|
+
return (_a = __config.getObject("insecure")) !== null && _a !== void 0 ? _a : utilities.getEnvBoolean("RABBITMQ_INSECURE");
|
|
37
|
+
},
|
|
38
|
+
enumerable: true,
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "password", {
|
|
41
|
+
get() {
|
|
42
|
+
return __config.get("password");
|
|
43
|
+
},
|
|
44
|
+
enumerable: true,
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "proxy", {
|
|
47
|
+
get() {
|
|
48
|
+
return __config.get("proxy");
|
|
49
|
+
},
|
|
50
|
+
enumerable: true,
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "username", {
|
|
53
|
+
get() {
|
|
54
|
+
return __config.get("username");
|
|
55
|
+
},
|
|
56
|
+
enumerable: true,
|
|
57
|
+
});
|
|
13
58
|
//# 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,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,0CAA0C;
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,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,MAAA,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC7E,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE;IAC7C,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC1C,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE;IAC5C,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACzC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,SAAS,CAAU,UAAU,CAAC,mCAAI,SAAS,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;IACnG,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE;IACpC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/exchange.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.Exchange`` resource creates and manages an exchange.
|
|
6
5
|
*
|
|
7
6
|
* ## Example Usage
|
|
8
7
|
*
|
|
@@ -30,7 +29,15 @@ import * as outputs from "./types/output";
|
|
|
30
29
|
* });
|
|
31
30
|
* ```
|
|
32
31
|
*
|
|
33
|
-
*
|
|
32
|
+
* ## Import
|
|
33
|
+
*
|
|
34
|
+
* Exchanges can be imported using the `id` which is composed of
|
|
35
|
+
*
|
|
36
|
+
* `name@vhost`. E.g.
|
|
37
|
+
*
|
|
38
|
+
* ```sh
|
|
39
|
+
* $ pulumi import rabbitmq:index/exchange:Exchange test test@vhost
|
|
40
|
+
* ```
|
|
34
41
|
*/
|
|
35
42
|
export declare class Exchange extends pulumi.CustomResource {
|
|
36
43
|
/**
|
|
@@ -40,6 +47,7 @@ export declare class Exchange extends pulumi.CustomResource {
|
|
|
40
47
|
* @param name The _unique_ name of the resulting resource.
|
|
41
48
|
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
49
|
* @param state Any extra arguments used during the lookup.
|
|
50
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
51
|
*/
|
|
44
52
|
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ExchangeState, opts?: pulumi.CustomResourceOptions): Exchange;
|
|
45
53
|
/**
|
|
@@ -76,16 +84,16 @@ export interface ExchangeState {
|
|
|
76
84
|
/**
|
|
77
85
|
* The name of the exchange.
|
|
78
86
|
*/
|
|
79
|
-
|
|
87
|
+
name?: pulumi.Input<string>;
|
|
80
88
|
/**
|
|
81
89
|
* The settings of the exchange. The structure is
|
|
82
90
|
* described below.
|
|
83
91
|
*/
|
|
84
|
-
|
|
92
|
+
settings?: pulumi.Input<inputs.ExchangeSettings>;
|
|
85
93
|
/**
|
|
86
94
|
* The vhost to create the resource in.
|
|
87
95
|
*/
|
|
88
|
-
|
|
96
|
+
vhost?: pulumi.Input<string>;
|
|
89
97
|
}
|
|
90
98
|
/**
|
|
91
99
|
* The set of arguments for constructing a Exchange resource.
|
|
@@ -94,14 +102,14 @@ export interface ExchangeArgs {
|
|
|
94
102
|
/**
|
|
95
103
|
* The name of the exchange.
|
|
96
104
|
*/
|
|
97
|
-
|
|
105
|
+
name?: pulumi.Input<string>;
|
|
98
106
|
/**
|
|
99
107
|
* The settings of the exchange. The structure is
|
|
100
108
|
* described below.
|
|
101
109
|
*/
|
|
102
|
-
|
|
110
|
+
settings: pulumi.Input<inputs.ExchangeSettings>;
|
|
103
111
|
/**
|
|
104
112
|
* The vhost to create the resource in.
|
|
105
113
|
*/
|
|
106
|
-
|
|
114
|
+
vhost?: pulumi.Input<string>;
|
|
107
115
|
}
|
package/exchange.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.Exchange = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
8
|
-
* The ``rabbitmq
|
|
9
|
+
* The ``rabbitmq.Exchange`` resource creates and manages an exchange.
|
|
9
10
|
*
|
|
10
11
|
* ## Example Usage
|
|
11
12
|
*
|
|
@@ -33,33 +34,37 @@ const utilities = require("./utilities");
|
|
|
33
34
|
* });
|
|
34
35
|
* ```
|
|
35
36
|
*
|
|
36
|
-
*
|
|
37
|
+
* ## Import
|
|
38
|
+
*
|
|
39
|
+
* Exchanges can be imported using the `id` which is composed of
|
|
40
|
+
*
|
|
41
|
+
* `name@vhost`. E.g.
|
|
42
|
+
*
|
|
43
|
+
* ```sh
|
|
44
|
+
* $ pulumi import rabbitmq:index/exchange:Exchange test test@vhost
|
|
45
|
+
* ```
|
|
37
46
|
*/
|
|
38
47
|
class Exchange extends pulumi.CustomResource {
|
|
39
48
|
constructor(name, argsOrState, opts) {
|
|
40
|
-
let
|
|
41
|
-
|
|
49
|
+
let resourceInputs = {};
|
|
50
|
+
opts = opts || {};
|
|
51
|
+
if (opts.id) {
|
|
42
52
|
const state = argsOrState;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
53
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
54
|
+
resourceInputs["settings"] = state ? state.settings : undefined;
|
|
55
|
+
resourceInputs["vhost"] = state ? state.vhost : undefined;
|
|
46
56
|
}
|
|
47
57
|
else {
|
|
48
58
|
const args = argsOrState;
|
|
49
|
-
if (!args || args.settings === undefined) {
|
|
59
|
+
if ((!args || args.settings === undefined) && !opts.urn) {
|
|
50
60
|
throw new Error("Missing required property 'settings'");
|
|
51
61
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
if (!opts) {
|
|
57
|
-
opts = {};
|
|
58
|
-
}
|
|
59
|
-
if (!opts.version) {
|
|
60
|
-
opts.version = utilities.getVersion();
|
|
62
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
63
|
+
resourceInputs["settings"] = args ? args.settings : undefined;
|
|
64
|
+
resourceInputs["vhost"] = args ? args.vhost : undefined;
|
|
61
65
|
}
|
|
62
|
-
|
|
66
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
67
|
+
super(Exchange.__pulumiType, name, resourceInputs, opts);
|
|
63
68
|
}
|
|
64
69
|
/**
|
|
65
70
|
* Get an existing Exchange resource's state with the given name, ID, and optional extra
|
|
@@ -68,6 +73,7 @@ class Exchange 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 Exchange(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
package/exchange.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exchange.js","sourceRoot":"","sources":["../exchange.ts"],"names":[],"mappings":";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