Show / Hide Table of Contents

Class GetBroker

Inheritance
System.Object
GetBroker
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Mq
Assembly: Pulumi.Aws.dll
Syntax
public static class GetBroker

Methods

View Source

InvokeAsync(GetBrokerArgs, InvokeOptions)

Provides information about a MQ Broker.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var config = new Config();
    var brokerId = config.Get("brokerId") ?? "";
    var brokerName = config.Get("brokerName") ?? "";
    var byId = Output.Create(Aws.Mq.GetBroker.InvokeAsync(new Aws.Mq.GetBrokerArgs
    {
        BrokerId = brokerId,
    }));
    var byName = Output.Create(Aws.Mq.GetBroker.InvokeAsync(new Aws.Mq.GetBrokerArgs
    {
        BrokerName = brokerName,
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetBrokerResult> InvokeAsync(GetBrokerArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetBrokerArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetBrokerResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.