import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * The ``rabbitmq.FederationUpstream`` resource creates and manages a federation upstream parameter. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as rabbitmq from "@pulumi/rabbitmq"; * * const test = new rabbitmq.VHost("test", {name: "test"}); * const guest = new rabbitmq.Permissions("guest", { * permissions: { * configure: ".*", * write: ".*", * read: ".*", * }, * user: "guest", * vhost: test.name, * }); * // downstream exchange * const foo = new rabbitmq.Exchange("foo", { * settings: { * type: "topic", * durable: true, * }, * name: "foo", * vhost: guest.vhost, * }); * // upstream broker * const fooFederationUpstream = new rabbitmq.FederationUpstream("foo", { * definition: { * uri: "amqp://guest:guest@upstream-server-name:5672/%2f", * prefetchCount: 1000, * reconnectDelay: 5, * ackMode: "on-confirm", * trustUserId: false, * maxHops: 1, * }, * name: "foo", * vhost: guest.vhost, * }); * const fooPolicy = new rabbitmq.Policy("foo", { * policy: { * pattern: pulumi.interpolate`(^${foo.name}$)`, * priority: 1, * applyTo: "exchanges", * definition: { * "federation-upstream": fooFederationUpstream.name, * }, * }, * name: "foo", * vhost: guest.vhost, * }); * ``` * * ## Import * * A Federation upstream can be imported using the resource `id` which is composed of `name@vhost`, e.g. * * ```sh * $ pulumi import rabbitmq:index/federationUpstream:FederationUpstream foo foo@test * ``` */ export declare class FederationUpstream extends pulumi.CustomResource { /** * Get an existing FederationUpstream resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: FederationUpstreamState, opts?: pulumi.CustomResourceOptions): FederationUpstream; /** * Returns true if the given object is an instance of FederationUpstream. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is FederationUpstream; /** * Set to `federation-upstream` by the underlying RabbitMQ provider. You do not set this attribute but will see it in state and plan output. */ readonly component: pulumi.Output; /** * The configuration of the federation upstream. The structure is described below. */ readonly definition: pulumi.Output; /** * The name of the federation upstream. */ readonly name: pulumi.Output; /** * The vhost to create the resource in. */ readonly vhost: pulumi.Output; /** * Create a FederationUpstream resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: FederationUpstreamArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FederationUpstream resources. */ export interface FederationUpstreamState { /** * Set to `federation-upstream` by the underlying RabbitMQ provider. You do not set this attribute but will see it in state and plan output. */ component?: pulumi.Input; /** * The configuration of the federation upstream. The structure is described below. */ definition?: pulumi.Input; /** * The name of the federation upstream. */ name?: pulumi.Input; /** * The vhost to create the resource in. */ vhost?: pulumi.Input; } /** * The set of arguments for constructing a FederationUpstream resource. */ export interface FederationUpstreamArgs { /** * The configuration of the federation upstream. The structure is described below. */ definition: pulumi.Input; /** * The name of the federation upstream. */ name?: pulumi.Input; /** * The vhost to create the resource in. */ vhost: pulumi.Input; } //# sourceMappingURL=federationUpstream.d.ts.map