import * as pulumi from "@pulumi/pulumi"; /** * Manages a Slack integration for a Bot Channel * * > **Note:** A bot can only have a single Slack Channel associated with it. * * ## 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 exampleChannelSlack = new azure.bot.ChannelSlack("example", { * botName: exampleChannelsRegistration.name, * location: exampleChannelsRegistration.location, * resourceGroupName: example.name, * clientId: "exampleId", * clientSecret: "exampleSecret", * verificationToken: "exampleVerificationToken", * }); * ``` * * ## Import * * The Slack Integration for a Bot Channel can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:bot/channelSlack:ChannelSlack example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.BotService/botServices/example/channels/SlackChannel * ``` */ export declare class ChannelSlack extends pulumi.CustomResource { /** * Get an existing ChannelSlack 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?: ChannelSlackState, opts?: pulumi.CustomResourceOptions): ChannelSlack; /** * Returns true if the given object is an instance of ChannelSlack. 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 ChannelSlack; /** * 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 Client ID that will be used to authenticate with Slack. */ readonly clientId: pulumi.Output; /** * The Client Secret that will be used to authenticate with Slack. */ readonly clientSecret: pulumi.Output; /** * The Slack Landing Page URL. */ readonly landingPageUrl: 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; /** * The Signing Secret that will be used to sign the requests. */ readonly signingSecret: pulumi.Output; /** * The Verification Token that will be used to authenticate with Slack. */ readonly verificationToken: pulumi.Output; /** * Create a ChannelSlack 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: ChannelSlackArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ChannelSlack resources. */ export interface ChannelSlackState { /** * 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 Client ID that will be used to authenticate with Slack. */ clientId?: pulumi.Input; /** * The Client Secret that will be used to authenticate with Slack. */ clientSecret?: pulumi.Input; /** * The Slack Landing Page URL. */ landingPageUrl?: 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; /** * The Signing Secret that will be used to sign the requests. */ signingSecret?: pulumi.Input; /** * The Verification Token that will be used to authenticate with Slack. */ verificationToken?: pulumi.Input; } /** * The set of arguments for constructing a ChannelSlack resource. */ export interface ChannelSlackArgs { /** * 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 Client ID that will be used to authenticate with Slack. */ clientId: pulumi.Input; /** * The Client Secret that will be used to authenticate with Slack. */ clientSecret: pulumi.Input; /** * The Slack Landing Page URL. */ landingPageUrl?: 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; /** * The Signing Secret that will be used to sign the requests. */ signingSecret?: pulumi.Input; /** * The Verification Token that will be used to authenticate with Slack. */ verificationToken: pulumi.Input; }