import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Directline integration for a Bot Channel * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const current = azure.core.getClientConfig({}); * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleChannelsRegistration = new azure.bot.ChannelsRegistration("example", { * name: "example", * location: "global", * resourceGroupName: example.name, * sku: "F0", * microsoftAppId: current.then(current => current.clientId), * }); * const exampleChannelDirectLine = new azure.bot.ChannelDirectLine("example", { * botName: exampleChannelsRegistration.name, * location: exampleChannelsRegistration.location, * resourceGroupName: example.name, * sites: [{ * name: "default", * enabled: true, * }], * }); * ``` * * ## Import * * The Directline Channel for a Bot can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:bot/channelDirectLine:ChannelDirectLine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.BotService/botServices/example/channels/DirectlineChannel * ``` */ export declare class ChannelDirectLine extends pulumi.CustomResource { /** * Get an existing ChannelDirectLine resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ChannelDirectLineState, opts?: pulumi.CustomResourceOptions): ChannelDirectLine; /** * Returns true if the given object is an instance of ChannelDirectLine. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ChannelDirectLine; /** * The name of the Bot Resource this channel will be associated with. Changing this forces a new resource to be created. */ readonly botName: pulumi.Output; /** * The supported Azure location where the resource exists. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * The name of the resource group in which to create the Bot Channel. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A site represents a client application that you want to connect to your bot. One or more `site` blocks as defined below. */ readonly sites: pulumi.Output; /** * Create a ChannelDirectLine resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ChannelDirectLineArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ChannelDirectLine resources. */ export interface ChannelDirectLineState { /** * The name of the Bot Resource this channel will be associated with. Changing this forces a new resource to be created. */ botName?: pulumi.Input; /** * The supported Azure location where the resource exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name of the resource group in which to create the Bot Channel. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A site represents a client application that you want to connect to your bot. One or more `site` blocks as defined below. */ sites?: pulumi.Input[]>; } /** * The set of arguments for constructing a ChannelDirectLine resource. */ export interface ChannelDirectLineArgs { /** * The name of the Bot Resource this channel will be associated with. Changing this forces a new resource to be created. */ botName: pulumi.Input; /** * The supported Azure location where the resource exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name of the resource group in which to create the Bot Channel. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A site represents a client application that you want to connect to your bot. One or more `site` blocks as defined below. */ sites: pulumi.Input[]>; }