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 Uses Azure REST API version 2023-09-15-preview. In version 2.x of the Azure Native provider, it used API version 2022-09-15. Other available API versions: 2022-09-15. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native botservice [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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/v3"
"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.ConnectionSettingPropertiesArgs{
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 com.pulumi.azurenative.botservice.inputs.ConnectionSettingPropertiesArgs;
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(ConnectionSettingPropertiesArgs.builder()
.clientId("sampleclientid")
.clientSecret("samplesecret")
.parameters(
ConnectionSettingParameterArgs.builder()
.key("key1")
.value("value1")
.build(),
ConnectionSettingParameterArgs.builder()
.key("key2")
.value("value2")
.build())
.scopes("samplescope")
.serviceProviderId("serviceproviderid")
.build())
.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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}

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