Data Source: azurermServicebusNamespaceAuthorizationRule
Use this data source to access information about an existing ServiceBus Namespace Authorization Rule.
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.*/
const dataAzurermServicebusNamespaceAuthorizationRuleExample =
new azurerm.dataAzurermServicebusNamespaceAuthorizationRule.DataAzurermServicebusNamespaceAuthorizationRule(
this,
"example",
{
name: "examplerule",
namespace_name: "examplenamespace",
resource_group_name: "example-resources",
}
);
new cdktf.TerraformOutput(this, "rule_id", {
value: dataAzurermServicebusNamespaceAuthorizationRuleExample.id,
});
Argument Reference
-
name
- Specifies the name of the ServiceBus Namespace Authorization Rule. -
namespaceName
- Specifies the name of the ServiceBus Namespace. -
resourceGroupName
- Specifies the name of the Resource Group where the ServiceBus Namespace exists.
Attributes Reference
-
id
- The id of the ServiceBus Namespace Authorization Rule. -
primaryConnectionString
- The primary connection string for the authorization rule. -
primaryKey
- The primary access key for the authorization rule. -
secondaryConnectionString
- The secondary connection string for the authorization rule. -
secondaryKey
- The secondary access key for the 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 Namespace Authorization Rule.