brainy-mechanic-83481
08/12/2022, 2:58 PM//event hub connection
var eventHubConnection = new AzureNative.Web.Connection("eventHubs", new AzureNative.Web.ConnectionArgs
{
ConnectionName = "eventhubs",
ResourceGroupName = resourceGroup.Name,
Location = resourceGroup.Location,
Tags = config.Tags,
Properties = new AzureNative.Web.Inputs.ApiConnectionDefinitionPropertiesArgs
{
Api = new AzureNative.Web.Inputs.ApiReferenceArgs
{
DisplayName = "myEventHub",
Id = eventhubsApiId,
Name = "eventhubs",
Type = "Microsoft.Web/locations/managedApis"
},
DisplayName = "eventHubBattery12VEvents",
ParameterValues =
{
{ "connectionString", eventHub.EventHubNameSpaceRootPrimaryConnectionString },
},
}
});
// logic app
var laMyLogicApp = new Logic.Workflow("my-logic-app, new Logic.WorkflowArgs
{
Location = resourceGroup.Location,
ResourceGroupName = resourceGroup.Name,
Tags = config.Tags,
Parameters =
{
{ "$connections", new AzureNative.Logic.Inputs.WorkflowParameterArgs
{
Value = new Dictionary<string, object>
{
{ "eventHubs", new Dictionary<string, object>
{
{ "connectionId", eventHubConnection.Id },
{ "connectionName", "eventHubs" },
{ "id", eventhubsApiId }
} }
}
}
}
},
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by