ChannelArgs

data class ChannelArgs(val channelName: Output<String>? = null, val kind: Output<Either<String, Kind>>? = null, val location: Output<String>? = null, val properties: Output<Any>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val sku: Output<SkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ChannelArgs>

Bot channel resource definition API Version: 2021-03-01.

Example Usage

Create Alexa Channel

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var channel = new AzureNative.BotService.Channel("channel", new()
{
ChannelName = "AlexaChannel",
Location = "global",
Properties = new AzureNative.BotService.Inputs.AlexaChannelArgs
{
ChannelName = "AlexaChannel",
Properties = new AzureNative.BotService.Inputs.AlexaChannelPropertiesArgs
{
AlexaSkillId = "XAlexaSkillIdX",
IsEnabled = true,
},
},
ResourceGroupName = "OneResourceGroupName",
ResourceName = "samplebotname",
});
});
package main
import (
botservice "github.com/pulumi/pulumi-azure-native-sdk/botservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := botservice.NewChannel(ctx, "channel", &botservice.ChannelArgs{
ChannelName: pulumi.String("AlexaChannel"),
Location: pulumi.String("global"),
Properties: botservice.AlexaChannel{
ChannelName: "AlexaChannel",
Properties: botservice.AlexaChannelProperties{
AlexaSkillId: "XAlexaSkillIdX",
IsEnabled: true,
},
},
ResourceGroupName: pulumi.String("OneResourceGroupName"),
ResourceName: pulumi.String("samplebotname"),
})
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.botservice.Channel;
import com.pulumi.azurenative.botservice.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("AlexaChannel")
.location("global")
.properties(Map.ofEntries(
Map.entry("channelName", "AlexaChannel"),
Map.entry("properties", Map.ofEntries(
Map.entry("alexaSkillId", "XAlexaSkillIdX"),
Map.entry("isEnabled", true)
))
))
.resourceGroupName("OneResourceGroupName")
.resourceName("samplebotname")
.build());
}
}

Create Channel

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var channel = new AzureNative.BotService.Channel("channel", new()
{
ChannelName = "EmailChannel",
Location = "global",
Properties = new AzureNative.BotService.Inputs.EmailChannelArgs
{
ChannelName = "EmailChannel",
Properties = new AzureNative.BotService.Inputs.EmailChannelPropertiesArgs
{
EmailAddress = "a@b.com",
IsEnabled = true,
Password = "pwd",
},
},
ResourceGroupName = "OneResourceGroupName",
ResourceName = "samplebotname",
});
});
package main
import (
botservice "github.com/pulumi/pulumi-azure-native-sdk/botservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := botservice.NewChannel(ctx, "channel", &botservice.ChannelArgs{
ChannelName: pulumi.String("EmailChannel"),
Location: pulumi.String("global"),
Properties: botservice.EmailChannel{
ChannelName: "EmailChannel",
Properties: botservice.EmailChannelProperties{
EmailAddress: "a@b.com",
IsEnabled: true,
Password: "pwd",
},
},
ResourceGroupName: pulumi.String("OneResourceGroupName"),
ResourceName: pulumi.String("samplebotname"),
})
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.botservice.Channel;
import com.pulumi.azurenative.botservice.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("EmailChannel")
.location("global")
.properties(Map.ofEntries(
Map.entry("channelName", "EmailChannel"),
Map.entry("properties", Map.ofEntries(
Map.entry("emailAddress", "a@b.com"),
Map.entry("isEnabled", true),
Map.entry("password", "pwd")
))
))
.resourceGroupName("OneResourceGroupName")
.resourceName("samplebotname")
.build());
}
}

Create DirectLine Speech Channel

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var channel = new AzureNative.BotService.Channel("channel", new()
{
ChannelName = "DirectLineSpeechChannel",
Location = "global",
Properties = new AzureNative.BotService.Inputs.DirectLineSpeechChannelArgs
{
ChannelName = "DirectLineSpeechChannel",
Properties = new AzureNative.BotService.Inputs.DirectLineSpeechChannelPropertiesArgs
{
CognitiveServiceRegion = "XcognitiveServiceRegionX",
CognitiveServiceSubscriptionKey = "XcognitiveServiceSubscriptionKeyX",
IsEnabled = true,
},
},
ResourceGroupName = "OneResourceGroupName",
ResourceName = "samplebotname",
});
});
package main
import (
botservice "github.com/pulumi/pulumi-azure-native-sdk/botservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := botservice.NewChannel(ctx, "channel", &botservice.ChannelArgs{
ChannelName: pulumi.String("DirectLineSpeechChannel"),
Location: pulumi.String("global"),
Properties: botservice.DirectLineSpeechChannel{
ChannelName: "DirectLineSpeechChannel",
Properties: botservice.DirectLineSpeechChannelProperties{
CognitiveServiceRegion: "XcognitiveServiceRegionX",
CognitiveServiceSubscriptionKey: "XcognitiveServiceSubscriptionKeyX",
IsEnabled: true,
},
},
ResourceGroupName: pulumi.String("OneResourceGroupName"),
ResourceName: pulumi.String("samplebotname"),
})
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.botservice.Channel;
import com.pulumi.azurenative.botservice.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("DirectLineSpeechChannel")
.location("global")
.properties(Map.ofEntries(
Map.entry("channelName", "DirectLineSpeechChannel"),
Map.entry("properties", Map.ofEntries(
Map.entry("cognitiveServiceRegion", "XcognitiveServiceRegionX"),
Map.entry("cognitiveServiceSubscriptionKey", "XcognitiveServiceSubscriptionKeyX"),
Map.entry("isEnabled", true)
))
))
.resourceGroupName("OneResourceGroupName")
.resourceName("samplebotname")
.build());
}
}

Create Email Channel

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var channel = new AzureNative.BotService.Channel("channel", new()
{
ChannelName = "EmailChannel",
Location = "global",
Properties = new AzureNative.BotService.Inputs.EmailChannelArgs
{
ChannelName = "EmailChannel",
Properties = new AzureNative.BotService.Inputs.EmailChannelPropertiesArgs
{
AuthMethod = 1,
EmailAddress = "a@b.com",
IsEnabled = true,
MagicCode = "000000",
},
},
ResourceGroupName = "OneResourceGroupName",
ResourceName = "samplebotname",
});
});
package main
import (
botservice "github.com/pulumi/pulumi-azure-native-sdk/botservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := botservice.NewChannel(ctx, "channel", &botservice.ChannelArgs{
ChannelName: pulumi.String("EmailChannel"),
Location: pulumi.String("global"),
Properties: botservice.EmailChannel{
ChannelName: "EmailChannel",
Properties: botservice.EmailChannelProperties{
AuthMethod: 1,
EmailAddress: "a@b.com",
IsEnabled: true,
MagicCode: "000000",
},
},
ResourceGroupName: pulumi.String("OneResourceGroupName"),
ResourceName: pulumi.String("samplebotname"),
})
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.botservice.Channel;
import com.pulumi.azurenative.botservice.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("EmailChannel")
.location("global")
.properties(Map.ofEntries(
Map.entry("channelName", "EmailChannel"),
Map.entry("properties", Map.ofEntries(
Map.entry("authMethod", 1),
Map.entry("emailAddress", "a@b.com"),
Map.entry("isEnabled", true),
Map.entry("magicCode", "000000")
))
))
.resourceGroupName("OneResourceGroupName")
.resourceName("samplebotname")
.build());
}
}

Create Line Channel

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var channel = new AzureNative.BotService.Channel("channel", new()
{
ChannelName = "LineChannel",
Location = "global",
Properties = new AzureNative.BotService.Inputs.LineChannelArgs
{
ChannelName = "LineChannel",
Properties = new AzureNative.BotService.Inputs.LineChannelPropertiesArgs
{
LineRegistrations = new[]
{
new AzureNative.BotService.Inputs.LineRegistrationArgs
{
ChannelAccessToken = "channelAccessToken",
ChannelSecret = "channelSecret",
},
},
},
},
ResourceGroupName = "OneResourceGroupName",
ResourceName = "samplebotname",
});
});
package main
import (
botservice "github.com/pulumi/pulumi-azure-native-sdk/botservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := botservice.NewChannel(ctx, "channel", &botservice.ChannelArgs{
ChannelName: pulumi.String("LineChannel"),
Location: pulumi.String("global"),
Properties: botservice.LineChannel{
ChannelName: "LineChannel",
Properties: botservice.LineChannelProperties{
LineRegistrations: []botservice.LineRegistration{
{
ChannelAccessToken: "channelAccessToken",
ChannelSecret: "channelSecret",
},
},
},
},
ResourceGroupName: pulumi.String("OneResourceGroupName"),
ResourceName: pulumi.String("samplebotname"),
})
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.botservice.Channel;
import com.pulumi.azurenative.botservice.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("LineChannel")
.location("global")
.properties(Map.ofEntries(
Map.entry("channelName", "LineChannel"),
Map.entry("properties", Map.of("lineRegistrations", Map.ofEntries(
Map.entry("channelAccessToken", "channelAccessToken"),
Map.entry("channelSecret", "channelSecret")
)))
))
.resourceGroupName("OneResourceGroupName")
.resourceName("samplebotname")
.build());
}
}

Import

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

$ pulumi import azure-native:botservice:Channel myresource1 /subscriptions/subscription-id/providers/Microsoft.BotService/botServices

Constructors

Link copied to clipboard
constructor(channelName: Output<String>? = null, kind: Output<Either<String, Kind>>? = null, location: Output<String>? = null, properties: Output<Any>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, sku: Output<SkuArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The name of the Channel resource.

Link copied to clipboard
val kind: Output<Either<String, Kind>>? = null

Required. Gets or sets the Kind of the resource.

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

Specifies the location of the resource.

Link copied to clipboard
val properties: Output<Any>? = null

The set of properties specific to bot channel resource

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

The name of the Bot resource group in the user subscription.

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

The name of the Bot resource.

Link copied to clipboard
val sku: Output<SkuArgs>? = null

Gets or sets the SKU of the resource.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Contains resource tags defined as key/value pairs.

Functions

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