EventChannelArgs

data class EventChannelArgs(val destination: Output<EventChannelDestinationArgs>? = null, val eventChannelName: Output<String>? = null, val expirationTimeIfNotActivatedUtc: Output<String>? = null, val filter: Output<EventChannelFilterArgs>? = null, val partnerNamespaceName: Output<String>? = null, val partnerTopicFriendlyDescription: Output<String>? = null, val resourceGroupName: Output<String>? = null, val source: Output<EventChannelSourceArgs>? = null) : ConvertibleToJava<EventChannelArgs>

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

Link copied to clipboard
constructor(destination: Output<EventChannelDestinationArgs>? = null, eventChannelName: Output<String>? = null, expirationTimeIfNotActivatedUtc: Output<String>? = null, filter: Output<EventChannelFilterArgs>? = null, partnerNamespaceName: Output<String>? = null, partnerTopicFriendlyDescription: Output<String>? = null, resourceGroupName: Output<String>? = null, source: Output<EventChannelSourceArgs>? = null)

Properties

Link copied to clipboard

Represents the destination of an event channel.

Link copied to clipboard
val eventChannelName: Output<String>? = null

Name of the event channel.

Link copied to clipboard

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.

Link copied to clipboard
val filter: Output<EventChannelFilterArgs>? = null

Information about the filter for the event channel.

Link copied to clipboard
val partnerNamespaceName: Output<String>? = null

Name of the partner namespace.

Link copied to clipboard

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.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group within the user's subscription.

Link copied to clipboard
val source: Output<EventChannelSourceArgs>? = null

Source of the event channel. This represents a unique resource in the partner's resource model.

Functions

Link copied to clipboard
open override fun toJava(): EventChannelArgs