Exchange
The rabbitmq..Exchange resource creates and manages an exchange.
Example Usage
using Pulumi;
using RabbitMQ = Pulumi.RabbitMQ;
class MyStack : Stack
{
public MyStack()
{
var testVHost = new RabbitMQ.VHost("testVHost", new RabbitMQ.VHostArgs
{
});
var guest = new RabbitMQ.Permissions("guest", new RabbitMQ.PermissionsArgs
{
Permissions = new RabbitMQ.Inputs.PermissionsPermissionsArgs
{
Configure = ".*",
Read = ".*",
Write = ".*",
},
User = "guest",
Vhost = testVHost.Name,
});
var testExchange = new RabbitMQ.Exchange("testExchange", new RabbitMQ.ExchangeArgs
{
Settings = new RabbitMQ.Inputs.ExchangeSettingsArgs
{
AutoDelete = true,
Durable = false,
Type = "fanout",
},
Vhost = guest.Vhost,
});
}
}
Coming soon!
import pulumi
import pulumi_rabbitmq as rabbitmq
test_v_host = rabbitmq.VHost("testVHost")
guest = rabbitmq.Permissions("guest",
permissions={
"configure": ".*",
"read": ".*",
"write": ".*",
},
user="guest",
vhost=test_v_host.name)
test_exchange = rabbitmq.Exchange("testExchange",
settings={
"autoDelete": True,
"durable": False,
"type": "fanout",
},
vhost=guest.vhost)import * as pulumi from "@pulumi/pulumi";
import * as rabbitmq from "@pulumi/rabbitmq";
const testVHost = new rabbitmq.VHost("test", {});
const guest = new rabbitmq.Permissions("guest", {
permissions: {
configure: ".*",
read: ".*",
write: ".*",
},
user: "guest",
vhost: testVHost.name,
});
const testExchange = new rabbitmq.Exchange("test", {
settings: {
autoDelete: true,
durable: false,
type: "fanout",
},
vhost: guest.vhost,
});Create a Exchange Resource
new Exchange(name: string, args: ExchangeArgs, opts?: CustomResourceOptions);def Exchange(resource_name, opts=None, name=None, settings=None, vhost=None, __props__=None);func NewExchange(ctx *Context, name string, args ExchangeArgs, opts ...ResourceOption) (*Exchange, error)public Exchange(string name, ExchangeArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ExchangeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ExchangeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ExchangeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Exchange Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Exchange resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Exchange resource produces the following output properties:
Look up an Existing Exchange Resource
Get an existing Exchange resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ExchangeState, opts?: CustomResourceOptions): Exchangestatic get(resource_name, id, opts=None, name=None, settings=None, vhost=None, __props__=None);func GetExchange(ctx *Context, name string, id IDInput, state *ExchangeState, opts ...ResourceOption) (*Exchange, error)public static Exchange Get(string name, Input<string> id, ExchangeState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
Supporting Types
ExchangeSettings
Package Details
- Repository
- https://github.com/pulumi/pulumi-rabbitmq
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rabbitmqTerraform Provider.