Channel Args
data class ChannelArgs(val channelName: Output<String>? = null, val channelType: Output<Either<String, ChannelType>>? = null, val expirationTimeIfNotActivatedUtc: Output<String>? = null, val messageForActivation: Output<String>? = null, val partnerDestinationInfo: Output<WebhookPartnerDestinationInfoArgs>? = null, val partnerNamespaceName: Output<String>? = null, val partnerTopicInfo: Output<PartnerTopicInfoArgs>? = null, val provisioningState: Output<Either<String, ChannelProvisioningState>>? = null, val readinessState: Output<Either<String, ReadinessState>>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<ChannelArgs>
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Constructors
Link copied to clipboard
fun ChannelArgs(channelName: Output<String>? = null, channelType: Output<Either<String, ChannelType>>? = null, expirationTimeIfNotActivatedUtc: Output<String>? = null, messageForActivation: Output<String>? = null, partnerDestinationInfo: Output<WebhookPartnerDestinationInfoArgs>? = null, partnerNamespaceName: Output<String>? = null, partnerTopicInfo: Output<PartnerTopicInfoArgs>? = null, provisioningState: Output<Either<String, ChannelProvisioningState>>? = null, readinessState: Output<Either<String, ReadinessState>>? = null, resourceGroupName: Output<String>? = null)