Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Resource: azurerm_eventgrid_event_subscription #2967

Merged
merged 8 commits into from
Feb 28, 2019
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions azurerm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,12 @@ type ArmClient struct {
kubernetesClustersClient containerservice.ManagedClustersClient
containerGroupsClient containerinstance.ContainerGroupsClient

eventGridDomainsClient eventgrid.DomainsClient
eventGridTopicsClient eventgrid.TopicsClient
eventHubClient eventhub.EventHubsClient
eventHubConsumerGroupClient eventhub.ConsumerGroupsClient
eventHubNamespacesClient eventhub.NamespacesClient
eventGridDomainsClient eventgrid.DomainsClient
eventGridEventSubscriptionsClient eventgrid.EventSubscriptionsClient
eventGridTopicsClient eventgrid.TopicsClient
eventHubClient eventhub.EventHubsClient
eventHubConsumerGroupClient eventhub.ConsumerGroupsClient
eventHubNamespacesClient eventhub.NamespacesClient

solutionsClient operationsmanagement.SolutionsClient

Expand Down Expand Up @@ -836,6 +837,10 @@ func (c *ArmClient) registerEventGridClients(endpoint, subscriptionId string, au
egdc := eventgrid.NewDomainsClientWithBaseURI(endpoint, subscriptionId)
c.configureClient(&egdc.Client, auth)
c.eventGridDomainsClient = egdc

egesc := eventgrid.NewEventSubscriptionsClientWithBaseURI(endpoint, subscriptionId)
c.configureClient(&egesc.Client, auth)
c.eventGridEventSubscriptionsClient = egesc
}

func (c *ArmClient) registerEventHubClients(endpoint, subscriptionId string, auth autorest.Authorizer) {
Expand Down
1 change: 1 addition & 0 deletions azurerm/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ func Provider() terraform.ResourceProvider {
"azurerm_dns_txt_record": resourceArmDnsTxtRecord(),
"azurerm_dns_zone": resourceArmDnsZone(),
"azurerm_eventgrid_domain": resourceArmEventGridDomain(),
"azurerm_eventgrid_event_subscription": resourceArmEventGridEventSubscription(),
"azurerm_eventgrid_topic": resourceArmEventGridTopic(),
"azurerm_eventhub_authorization_rule": resourceArmEventHubAuthorizationRule(),
"azurerm_eventhub_consumer_group": resourceArmEventHubConsumerGroup(),
Expand Down
Loading