azurermEventgridDomainTopic
Manages an EventGrid Domain 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.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example",
{
location: "West Europe",
name: "example-resources",
}
);
const azurermEventgridDomainExample =
new azurerm.eventgridDomain.EventgridDomain(this, "example_1", {
location: azurermResourceGroupExample.location,
name: "my-eventgrid-domain",
resource_group_name: azurermResourceGroupExample.name,
tags: {
environment: "Production",
},
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermEventgridDomainExample.overrideLogicalId("example");
const azurermEventgridDomainTopicExample =
new azurerm.eventgridDomainTopic.EventgridDomainTopic(this, "example_2", {
domain_name: azurermEventgridDomainExample.name,
name: "my-eventgrid-domain-topic",
resource_group_name: azurermResourceGroupExample.name,
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermEventgridDomainTopicExample.overrideLogicalId("example");
Argument Reference
The following arguments are supported:
-
name
- (Required) Specifies the name of the EventGrid Domain Topic resource. Changing this forces a new resource to be created. -
domainName
- (Required) Specifies the name of the EventGrid Domain. Changing this forces a new resource to be created. -
resourceGroupName
- (Required) The name of the resource group in which the EventGrid Domain exists. Changing this forces a new resource to be created.
Attributes Reference
The following attributes are exported:
id
- The ID of the EventGrid Domain Topic.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the EventGrid Domain Topic.update
- (Defaults to 30 minutes) Used when updating the EventGrid Domain Topic.read
- (Defaults to 5 minutes) Used when retrieving the EventGrid Domain Topic.delete
- (Defaults to 30 minutes) Used when deleting the EventGrid Domain Topic.
Import
EventGrid Domain Topics can be imported using the resourceId
, e.g.