Data Source: azurermNotificationHubNamespace
Use this data source to access information about an existing Notification Hub Namespace.
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 dataAzurermNotificationHubNamespaceExample =
new azurerm.dataAzurermNotificationHubNamespace.DataAzurermNotificationHubNamespace(
this,
"example",
{
name: "my-namespace",
resource_group_name: "my-resource-group",
}
);
new cdktf.TerraformOutput(this, "servicebus_endpoint", {
value: dataAzurermNotificationHubNamespaceExample.servicebusEndpoint,
});
Argument Reference
-
name
- Specifies the Name of the Notification Hub Namespace. -
resourceGroupName
- Specifies the Name of the Resource Group within which the Notification Hub exists.
Attributes Reference
-
id
- The ID of the Notification Hub Namespace. -
location
- The Azure Region in which this Notification Hub Namespace exists. -
namespaceType
- The Type of Namespace, such asmessaging
ornotificationHub
. -
sku
- Asku
block as defined below. -
enabled
- Is this Notification Hub Namespace enabled? -
tags
- A mapping of tags to assign to the resource.
A sku
block exports the following:
name
- The name of the SKU to use for this Notification Hub Namespace. Possible values arefree
,basic
orstandard
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Notification Hub Namespace.