Data Source: azurermServicebusTopicAuthorizationRule
Use this data source to access information about a ServiceBus Topic Authorization Rule within a ServiceBus Topic.
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 azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new cdktf.TerraformOutput(this, "servicebus_authorization_rule_id", {
value: "${data.azurem_servicebus_topic_authorization_rule.example.id}",
});
new azurerm.dataAzurermServicebusTopicAuthorizationRule.DataAzurermServicebusTopicAuthorizationRule(
this,
"example",
{
name: "example-tfex_name",
namespace_name: "example-namespace",
resource_group_name: "example-resources",
topic_name: "example-servicebus_topic",
}
);
Argument Reference
The following arguments are supported:
-
name
- The name of the ServiceBus Topic Authorization Rule resource. -
resourceGroupName
- The name of the resource group in which the ServiceBus Namespace exists. -
namespaceName
- The name of the ServiceBus Namespace. -
topicName
- The name of the ServiceBus Topic.
Attributes Reference
The following attributes are exported:
-
id
- The ServiceBus Topic ID. -
primaryKey
- The Primary Key for the ServiceBus Topic authorization Rule. -
primaryConnectionString
- The Primary Connection String for the ServiceBus Topic authorization Rule. -
secondaryKey
- The Secondary Key for the ServiceBus Topic authorization Rule. -
secondaryConnectionString
- The Secondary Connection String for the ServiceBus Topic authorization Rule. -
primaryConnectionStringAlias
- The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired. -
secondaryConnectionStringAlias
- The alias Secondary Connection String for the ServiceBus Namespace
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the ServiceBus Topic Authorization Rule.