Data Source: awsMqBroker
Provides information about a MQ Broker.
Example Usage
import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
/*Terraform Variables are not always the best fit for getting inputs in the context of Terraform CDK.
You can read more about this at https://cdk.tf/variables*/
const brokerId = new cdktf.TerraformVariable(this, "broker_id", {
default: "",
});
const brokerName = new cdktf.TerraformVariable(this, "broker_name", {
default: "",
});
new aws.dataAwsMqBroker.DataAwsMqBroker(this, "by_id", {
brokerId: brokerId.value,
});
new aws.dataAwsMqBroker.DataAwsMqBroker(this, "by_name", {
brokerName: brokerName.value,
});
Argument Reference
The following arguments are supported:
brokerId
- (Optional) Unique id of the mq broker.brokerName
- (Optional) Unique name of the mq broker.
Attributes Reference
See the awsMqBroker
resource for details on the returned attributes. They are identical except for user password, which is not returned when describing broker.