GetBroker
Provides information about a MQ Broker.
Example Usage
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,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/mq"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
opt0 := brokerId
_, err := mq.LookupBroker(ctx, &mq.LookupBrokerArgs{
BrokerId: &opt0,
}, nil)
if err != nil {
return err
}
opt1 := brokerName
_, err = mq.LookupBroker(ctx, &mq.LookupBrokerArgs{
BrokerName: &opt1,
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
config = pulumi.Config()
broker_id = config.get("brokerId")
if broker_id is None:
broker_id = ""
broker_name = config.get("brokerName")
if broker_name is None:
broker_name = ""
by_id = aws.mq.get_broker(broker_id=broker_id)
by_name = aws.mq.get_broker(broker_name=broker_name)import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const config = new pulumi.Config();
const brokerId = config.get("brokerId") || "";
const brokerName = config.get("brokerName") || "";
const byId = pulumi.output(aws.mq.getBroker({
brokerId: brokerId,
}, { async: true }));
const byName = pulumi.output(aws.mq.getBroker({
brokerName: brokerName,
}, { async: true }));Using GetBroker
function getBroker(args: GetBrokerArgs, opts?: InvokeOptions): Promise<GetBrokerResult>function get_broker(broker_id=None, broker_name=None, logs=None, tags=None, opts=None)func LookupBroker(ctx *Context, args *LookupBrokerArgs, opts ...InvokeOption) (*LookupBrokerResult, error)Note: This function is named
LookupBrokerin the Go SDK.
public static class GetBroker {
public static Task<GetBrokerResult> InvokeAsync(GetBrokerArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Broker
Id string The unique id of the mq broker.
- Broker
Name string The unique name of the mq broker.
- Logs
Get
Broker Logs Args - Dictionary<string, string>
- Broker
Id string The unique id of the mq broker.
- Broker
Name string The unique name of the mq broker.
- Logs
Get
Broker Logs - map[string]string
- broker
Id string The unique id of the mq broker.
- broker
Name string The unique name of the mq broker.
- logs
Get
Broker Logs - {[key: string]: string}
- broker_
id str The unique id of the mq broker.
- broker_
name str The unique name of the mq broker.
- logs
Dict[Get
Broker Logs] - Dict[str, str]
GetBroker Result
The following output properties are available:
- Arn string
- Auto
Minor boolVersion Upgrade - Broker
Id string - Broker
Name string - Configuration
Get
Broker Configuration - Deployment
Mode string - Encryption
Options List<GetBroker Encryption Option> - Engine
Type string - Engine
Version string - Host
Instance stringType - Id string
The provider-assigned unique ID for this managed resource.
- Instances
List<Get
Broker Instance> - Maintenance
Window GetStart Time Broker Maintenance Window Start Time - Publicly
Accessible bool - Security
Groups List<string> - Subnet
Ids List<string> - Dictionary<string, string>
- Users
List<Get
Broker User> - Logs
Get
Broker Logs
- Arn string
- Auto
Minor boolVersion Upgrade - Broker
Id string - Broker
Name string - Configuration
Get
Broker Configuration - Deployment
Mode string - Encryption
Options []GetBroker Encryption Option - Engine
Type string - Engine
Version string - Host
Instance stringType - Id string
The provider-assigned unique ID for this managed resource.
- Instances
[]Get
Broker Instance - Maintenance
Window GetStart Time Broker Maintenance Window Start Time - Publicly
Accessible bool - Security
Groups []string - Subnet
Ids []string - map[string]string
- Users
[]Get
Broker User - Logs
Get
Broker Logs
- arn string
- auto
Minor booleanVersion Upgrade - broker
Id string - broker
Name string - configuration
Get
Broker Configuration - deployment
Mode string - encryption
Options GetBroker Encryption Option[] - engine
Type string - engine
Version string - host
Instance stringType - id string
The provider-assigned unique ID for this managed resource.
- instances
Get
Broker Instance[] - maintenance
Window GetStart Time Broker Maintenance Window Start Time - publicly
Accessible boolean - security
Groups string[] - subnet
Ids string[] - {[key: string]: string}
- users
Get
Broker User[] - logs
Get
Broker Logs
- arn str
- auto_
minor_ boolversion_ upgrade - broker_
id str - broker_
name str - configuration
Dict[Get
Broker Configuration] - deployment_
mode str - encryption_
options List[GetBroker Encryption Option] - engine_
type str - engine_
version str - host_
instance_ strtype - id str
The provider-assigned unique ID for this managed resource.
- instances
List[Get
Broker Instance] - maintenance_
window_ Dict[Getstart_ time Broker Maintenance Window Start Time] - publicly_
accessible bool - security_
groups List[str] - subnet_
ids List[str] - Dict[str, str]
- users
List[Get
Broker User] - logs
Dict[Get
Broker Logs]
Supporting Types
GetBrokerConfiguration
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetBrokerEncryptionOption
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetBrokerInstance
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetBrokerLogs
GetBrokerMaintenanceWindowStartTime
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetBrokerUser
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.