BotConnectionArgs

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

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

Example Usage

Create Connection Setting

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var botConnection = new AzureNative.BotService.BotConnection("botConnection", new()
{
ConnectionName = "sampleConnection",
Location = "West US",
Properties = new AzureNative.BotService.Inputs.ConnectionSettingPropertiesArgs
{
ClientId = "sampleclientid",
ClientSecret = "samplesecret",
Parameters = new[]
{
new AzureNative.BotService.Inputs.ConnectionSettingParameterArgs
{
Key = "key1",
Value = "value1",
},
new AzureNative.BotService.Inputs.ConnectionSettingParameterArgs
{
Key = "key2",
Value = "value2",
},
},
Scopes = "samplescope",
ServiceProviderId = "serviceproviderid",
},
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.NewBotConnection(ctx, "botConnection", &botservice.BotConnectionArgs{
ConnectionName: pulumi.String("sampleConnection"),
Location: pulumi.String("West US"),
Properties: botservice.ConnectionSettingPropertiesResponse{
ClientId: pulumi.String("sampleclientid"),
ClientSecret: pulumi.String("samplesecret"),
Parameters: botservice.ConnectionSettingParameterArray{
&botservice.ConnectionSettingParameterArgs{
Key: pulumi.String("key1"),
Value: pulumi.String("value1"),
},
&botservice.ConnectionSettingParameterArgs{
Key: pulumi.String("key2"),
Value: pulumi.String("value2"),
},
},
Scopes: pulumi.String("samplescope"),
ServiceProviderId: pulumi.String("serviceproviderid"),
},
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.BotConnection;
import com.pulumi.azurenative.botservice.BotConnectionArgs;
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 botConnection = new BotConnection("botConnection", BotConnectionArgs.builder()
.connectionName("sampleConnection")
.location("West US")
.properties(Map.ofEntries(
Map.entry("clientId", "sampleclientid"),
Map.entry("clientSecret", "samplesecret"),
Map.entry("parameters",
Map.ofEntries(
Map.entry("key", "key1"),
Map.entry("value", "value1")
),
Map.ofEntries(
Map.entry("key", "key2"),
Map.entry("value", "value2")
)),
Map.entry("scopes", "samplescope"),
Map.entry("serviceProviderId", "serviceproviderid")
))
.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:BotConnection sampleConnection /subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname/connections/sampleConnection

Constructors

Link copied to clipboard
constructor(connectionName: Output<String>? = null, kind: Output<Either<String, Kind>>? = null, location: Output<String>? = null, properties: Output<ConnectionSettingPropertiesArgs>? = 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 connectionName: Output<String>? = null

The name of the Bot Service Connection Setting 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

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(): BotConnectionArgs