@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.
Files changed (65) hide show
  1. package/README.md +15 -3
  2. package/binding.d.ts +27 -15
  3. package/binding.js +37 -29
  4. package/binding.js.map +1 -1
  5. package/config/index.js +15 -4
  6. package/config/index.js.map +1 -1
  7. package/config/vars.d.ts +8 -5
  8. package/config/vars.js +51 -6
  9. package/config/vars.js.map +1 -1
  10. package/exchange.d.ts +18 -10
  11. package/exchange.js +24 -18
  12. package/exchange.js.map +1 -1
  13. package/federationUpstream.d.ts +141 -0
  14. package/federationUpstream.js +121 -0
  15. package/federationUpstream.js.map +1 -0
  16. package/getExchange.d.ts +27 -0
  17. package/getExchange.js +23 -0
  18. package/getExchange.js.map +1 -0
  19. package/getUser.d.ts +23 -0
  20. package/getUser.js +22 -0
  21. package/getUser.js.map +1 -0
  22. package/getVHost.d.ts +22 -0
  23. package/getVHost.js +22 -0
  24. package/getVHost.js.map +1 -0
  25. package/index.d.ts +10 -4
  26. package/index.js +98 -14
  27. package/index.js.map +1 -1
  28. package/operatorPolicy.d.ts +117 -0
  29. package/operatorPolicy.js +100 -0
  30. package/operatorPolicy.js.map +1 -0
  31. package/package.json +7 -5
  32. package/package.json.bak +7 -4
  33. package/package.json.dev +8 -5
  34. package/permissions.d.ts +18 -10
  35. package/permissions.js +25 -19
  36. package/permissions.js.map +1 -1
  37. package/policy.d.ts +16 -10
  38. package/policy.js +23 -19
  39. package/policy.js.map +1 -1
  40. package/provider.d.ts +16 -8
  41. package/provider.js +23 -15
  42. package/provider.js.map +1 -1
  43. package/queue.d.ts +26 -19
  44. package/queue.js +32 -27
  45. package/queue.js.map +1 -1
  46. package/shovel.d.ts +121 -0
  47. package/shovel.js +104 -0
  48. package/shovel.js.map +1 -0
  49. package/topicPermissions.d.ts +18 -10
  50. package/topicPermissions.js +25 -19
  51. package/topicPermissions.js.map +1 -1
  52. package/types/index.d.ts +1 -1
  53. package/types/index.js +1 -0
  54. package/types/index.js.map +1 -1
  55. package/types/input.d.ts +172 -0
  56. package/types/output.d.ts +180 -0
  57. package/user.d.ts +15 -8
  58. package/user.js +22 -18
  59. package/user.js.map +1 -1
  60. package/utilities.js +6 -0
  61. package/utilities.js.map +1 -1
  62. package/{vHost.d.ts → vhost.d.ts} +12 -5
  63. package/{vHost.js → vhost.js} +19 -15
  64. package/vhost.js.map +1 -0
  65. package/vHost.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * The ``rabbitmq..VHost`` resource creates and manages a vhost.
3
+ * The ``rabbitmq.VHost`` resource creates and manages a vhost.
4
4
  *
5
5
  * ## Example Usage
6
6
  *
@@ -8,10 +8,16 @@ import * as pulumi from "@pulumi/pulumi";
8
8
  * import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as rabbitmq from "@pulumi/rabbitmq";
10
10
  *
11
- * const myVhost = new rabbitmq.VHost("myVhost", {});
11
+ * const myVhost = new rabbitmq.VHost("my_vhost", {});
12
12
  * ```
13
13
  *
14
- * > This content is derived from https://github.com/terraform-providers/terraform-provider-rabbitmq/blob/master/website/docs/r/vhost.html.markdown.
14
+ * ## Import
15
+ *
16
+ * Vhosts can be imported using the `name`, e.g.
17
+ *
18
+ * ```sh
19
+ * $ pulumi import rabbitmq:index/vHost:VHost my_vhost my_vhost
20
+ * ```
15
21
  */
16
22
  export declare class VHost extends pulumi.CustomResource {
17
23
  /**
@@ -21,6 +27,7 @@ export declare class VHost extends pulumi.CustomResource {
21
27
  * @param name The _unique_ name of the resulting resource.
22
28
  * @param id The _unique_ provider ID of the resource to lookup.
23
29
  * @param state Any extra arguments used during the lookup.
30
+ * @param opts Optional settings to control the behavior of the CustomResource.
24
31
  */
25
32
  static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VHostState, opts?: pulumi.CustomResourceOptions): VHost;
26
33
  /**
@@ -48,7 +55,7 @@ export interface VHostState {
48
55
  /**
49
56
  * The name of the vhost.
50
57
  */
51
- readonly name?: pulumi.Input<string>;
58
+ name?: pulumi.Input<string>;
52
59
  }
53
60
  /**
54
61
  * The set of arguments for constructing a VHost resource.
@@ -57,5 +64,5 @@ export interface VHostArgs {
57
64
  /**
58
65
  * The name of the vhost.
59
66
  */
60
- readonly name?: pulumi.Input<string>;
67
+ name?: pulumi.Input<string>;
61
68
  }
@@ -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.VHost = void 0;
5
6
  const pulumi = require("@pulumi/pulumi");
6
7
  const utilities = require("./utilities");
7
8
  /**
8
- * The ``rabbitmq..VHost`` resource creates and manages a vhost.
9
+ * The ``rabbitmq.VHost`` resource creates and manages a vhost.
9
10
  *
10
11
  * ## Example Usage
11
12
  *
@@ -13,29 +14,31 @@ const utilities = require("./utilities");
13
14
  * import * as pulumi from "@pulumi/pulumi";
14
15
  * import * as rabbitmq from "@pulumi/rabbitmq";
15
16
  *
16
- * const myVhost = new rabbitmq.VHost("myVhost", {});
17
+ * const myVhost = new rabbitmq.VHost("my_vhost", {});
17
18
  * ```
18
19
  *
19
- * > This content is derived from https://github.com/terraform-providers/terraform-provider-rabbitmq/blob/master/website/docs/r/vhost.html.markdown.
20
+ * ## Import
21
+ *
22
+ * Vhosts can be imported using the `name`, e.g.
23
+ *
24
+ * ```sh
25
+ * $ pulumi import rabbitmq:index/vHost:VHost my_vhost my_vhost
26
+ * ```
20
27
  */
21
28
  class VHost extends pulumi.CustomResource {
22
29
  constructor(name, argsOrState, opts) {
23
- let inputs = {};
24
- if (opts && opts.id) {
30
+ let resourceInputs = {};
31
+ opts = opts || {};
32
+ if (opts.id) {
25
33
  const state = argsOrState;
26
- inputs["name"] = state ? state.name : undefined;
34
+ resourceInputs["name"] = state ? state.name : undefined;
27
35
  }
28
36
  else {
29
37
  const args = argsOrState;
30
- inputs["name"] = args ? args.name : undefined;
31
- }
32
- if (!opts) {
33
- opts = {};
34
- }
35
- if (!opts.version) {
36
- opts.version = utilities.getVersion();
38
+ resourceInputs["name"] = args ? args.name : undefined;
37
39
  }
38
- super(VHost.__pulumiType, name, inputs, opts);
40
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
41
+ super(VHost.__pulumiType, name, resourceInputs, opts);
39
42
  }
40
43
  /**
41
44
  * Get an existing VHost resource's state with the given name, ID, and optional extra
@@ -44,6 +47,7 @@ class VHost extends pulumi.CustomResource {
44
47
  * @param name The _unique_ name of the resulting resource.
45
48
  * @param id The _unique_ provider ID of the resource to lookup.
46
49
  * @param state Any extra arguments used during the lookup.
50
+ * @param opts Optional settings to control the behavior of the CustomResource.
47
51
  */
48
52
  static get(name, id, state, opts) {
49
53
  return new VHost(name, state, Object.assign(Object.assign({}, opts), { id: id }));
@@ -62,4 +66,4 @@ class VHost extends pulumi.CustomResource {
62
66
  exports.VHost = VHost;
63
67
  /** @internal */
64
68
  VHost.__pulumiType = 'rabbitmq:index/vHost:VHost';
65
- //# sourceMappingURL=vHost.js.map
69
+ //# sourceMappingURL=vhost.js.map
package/vhost.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vhost.js","sourceRoot":"","sources":["../vhost.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAyC5C,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqC,CAAC;YACpD,cAAc,CAAC,MAA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