Event Channel Args
Event Channel. API Version: 2021-06-01-preview.
Example Usage
EventChannels_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var eventChannel = new AzureNative.EventGrid.EventChannel("eventChannel", new()
{
Destination = new AzureNative.EventGrid.Inputs.EventChannelDestinationArgs
{
AzureSubscriptionId = "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
PartnerTopicName = "examplePartnerTopic1",
ResourceGroup = "examplerg2",
},
EventChannelName = "exampleEventChannelName1",
PartnerNamespaceName = "examplePartnerNamespaceName1",
ResourceGroupName = "examplerg",
Source = new AzureNative.EventGrid.Inputs.EventChannelSourceArgs
{
Source = "ContosoCorp.Accounts.User1",
},
});
});
package main
import (
eventgrid "github.com/pulumi/pulumi-azure-native-sdk/eventgrid"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventgrid.NewEventChannel(ctx, "eventChannel", &eventgrid.EventChannelArgs{
Destination: &eventgrid.EventChannelDestinationArgs{
AzureSubscriptionId: pulumi.String("5b4b650e-28b9-4790-b3ab-ddbd88d727c4"),
PartnerTopicName: pulumi.String("examplePartnerTopic1"),
ResourceGroup: pulumi.String("examplerg2"),
},
EventChannelName: pulumi.String("exampleEventChannelName1"),
PartnerNamespaceName: pulumi.String("examplePartnerNamespaceName1"),
ResourceGroupName: pulumi.String("examplerg"),
Source: &eventgrid.EventChannelSourceArgs{
Source: pulumi.String("ContosoCorp.Accounts.User1"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.eventgrid.EventChannel;
import com.pulumi.azurenative.eventgrid.EventChannelArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var eventChannel = new EventChannel("eventChannel", EventChannelArgs.builder()
.destination(Map.ofEntries(
Map.entry("azureSubscriptionId", "5b4b650e-28b9-4790-b3ab-ddbd88d727c4"),
Map.entry("partnerTopicName", "examplePartnerTopic1"),
Map.entry("resourceGroup", "examplerg2")
))
.eventChannelName("exampleEventChannelName1")
.partnerNamespaceName("examplePartnerNamespaceName1")
.resourceGroupName("examplerg")
.source(Map.of("source", "ContosoCorp.Accounts.User1"))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:eventgrid:EventChannel exampleEventChannelName1 /subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/partnerNamespace123/eventChannels/exampleEventChannelName1
Constructors
Properties
Represents the destination of an event channel.
Name of the event channel.
Expiration time of the event channel. If this timer expires while the corresponding partner topic is never activated, the event channel and corresponding partner topic are deleted.
Information about the filter for the event channel.
Name of the partner namespace.
Friendly description about the topic. This can be set by the publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any ambiguity of the origin of creation of the partner topic for the customer.
The name of the resource group within the user's subscription.
Source of the event channel. This represents a unique resource in the partner's resource model.