Skip to content

Data Source: azurermEventgridTopic

Use this data source to access information about an existing EventGrid Topic

Example Usage

/*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 azurerm.dataAzurermEventgridTopic.DataAzurermEventgridTopic(
  this,
  "example",
  {
    name: "my-eventgrid-topic",
    resource_group_name: "example-resources",
  }
);

Argument Reference

The following arguments are supported:

  • name - The name of the EventGrid Topic resource.

  • resourceGroupName - The name of the resource group in which the EventGrid Topic exists.

Attributes Reference

The following attributes are exported:

  • id - The EventGrid Topic ID.

  • endpoint - The Endpoint associated with the EventGrid Topic.

  • primaryAccessKey - The Primary Shared Access Key associated with the EventGrid Topic.

  • secondaryAccessKey - The Secondary Shared Access Key associated with the EventGrid Topic.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the EventGrid Topic.