Channel

class Channel : KotlinCustomResource

Channel info. API Version: 2021-10-15-preview.

Example Usage

Channels_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var channel = new AzureNative.EventGrid.Channel("channel", new()
{
ChannelName = "exampleChannelName1",
ChannelType = "PartnerTopic",
ExpirationTimeIfNotActivatedUtc = "2021-10-21T22:50:25.410433Z",
MessageForActivation = "Example message to approver",
PartnerNamespaceName = "examplePartnerNamespaceName1",
PartnerTopicInfo = new AzureNative.EventGrid.Inputs.PartnerTopicInfoArgs
{
AzureSubscriptionId = "5b4b650e-28b9-4790-b3ab-ddbd88d727c4",
Name = "examplePartnerTopic1",
ResourceGroupName = "examplerg2",
Source = "ContosoCorp.Accounts.User1",
},
ResourceGroupName = "examplerg",
});
});
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.NewChannel(ctx, "channel", &eventgrid.ChannelArgs{
ChannelName: pulumi.String("exampleChannelName1"),
ChannelType: pulumi.String("PartnerTopic"),
ExpirationTimeIfNotActivatedUtc: pulumi.String("2021-10-21T22:50:25.410433Z"),
MessageForActivation: pulumi.String("Example message to approver"),
PartnerNamespaceName: pulumi.String("examplePartnerNamespaceName1"),
PartnerTopicInfo: &eventgrid.PartnerTopicInfoArgs{
AzureSubscriptionId: pulumi.String("5b4b650e-28b9-4790-b3ab-ddbd88d727c4"),
Name: pulumi.String("examplePartnerTopic1"),
ResourceGroupName: pulumi.String("examplerg2"),
Source: pulumi.String("ContosoCorp.Accounts.User1"),
},
ResourceGroupName: pulumi.String("examplerg"),
})
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.Channel;
import com.pulumi.azurenative.eventgrid.ChannelArgs;
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 channel = new Channel("channel", ChannelArgs.builder()
.channelName("exampleChannelName1")
.channelType("PartnerTopic")
.expirationTimeIfNotActivatedUtc("2021-10-21T22:50:25.410433Z")
.messageForActivation("Example message to approver")
.partnerNamespaceName("examplePartnerNamespaceName1")
.partnerTopicInfo(Map.ofEntries(
Map.entry("azureSubscriptionId", "5b4b650e-28b9-4790-b3ab-ddbd88d727c4"),
Map.entry("name", "examplePartnerTopic1"),
Map.entry("resourceGroupName", "examplerg2"),
Map.entry("source", "ContosoCorp.Accounts.User1")
))
.resourceGroupName("examplerg")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:eventgrid:Channel exampleChannelName1 /subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerNamespaces/examplePartnerNamespaceName1/changes/exampleChannelName1

Properties

Link copied to clipboard
val channelType: Output<String>?

The type of the event channel which represents the direction flow of events.

Link copied to clipboard

Expiration time of the channel. If this timer expires while the corresponding partner topic is never activated, the channel and corresponding partner topic are deleted.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Context or helpful message that can be used during the approval process by the subscriber.

Link copied to clipboard
val name: Output<String>

Name of the resource.

Link copied to clipboard

This property should be populated when channelType is PartnerDestination and represents information about the partner destination resource corresponding to the channel.

Link copied to clipboard

This property should be populated when channelType is PartnerTopic and represents information about the partner topic resource corresponding to the channel.

Link copied to clipboard

Provisioning state of the channel.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val readinessState: Output<String>?

The readiness state of the corresponding partner topic.

Link copied to clipboard

The system metadata relating to Channel resource.

Link copied to clipboard
val type: Output<String>

Type of the resource.

Link copied to clipboard
val urn: Output<String>