Class ChannelSlack
Manages a Slack integration for a Bot Channel
Note A bot can only have a single Slack Channel associated with it.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var current = Output.Create(Azure.Core.GetClientConfig.InvokeAsync());
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "northeurope",
});
var exampleChannelsRegistration = new Azure.Bot.ChannelsRegistration("exampleChannelsRegistration", new Azure.Bot.ChannelsRegistrationArgs
{
Location = "global",
ResourceGroupName = exampleResourceGroup.Name,
Sku = "F0",
MicrosoftAppId = current.Apply(current => current.ClientId),
});
var exampleChannelSlack = new Azure.Bot.ChannelSlack("exampleChannelSlack", new Azure.Bot.ChannelSlackArgs
{
BotName = exampleChannelsRegistration.Name,
Location = exampleChannelsRegistration.Location,
ResourceGroupName = exampleResourceGroup.Name,
ClientId = "exampleId",
ClientSecret = "exampleSecret",
VerificationToken = "exampleVerificationToken",
});
}
}
Inherited Members
Namespace: Pulumi.Azure.Bot
Assembly: Pulumi.Azure.dll
Syntax
public class ChannelSlack : CustomResource
Constructors
View SourceChannelSlack(String, ChannelSlackArgs, CustomResourceOptions)
Create a ChannelSlack resource with the given unique name, arguments, and options.
Declaration
public ChannelSlack(string name, ChannelSlackArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ChannelSlackArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBotName
The name of the Bot Resource this channel will be associated with. Changing this forces a new resource to be created.
Declaration
public Output<string> BotName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ClientId
The Client ID that will be used to authenticate with Slack.
Declaration
public Output<string> ClientId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ClientSecret
The Client Secret that will be used to authenticate with Slack.
Declaration
public Output<string> ClientSecret { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LandingPageUrl
The Slack Landing Page URL.
Declaration
public Output<string> LandingPageUrl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Location
The supported Azure location where the resource exists. Changing this forces a new resource to be created.
Declaration
public Output<string> Location { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the resource group in which to create the Bot Channel. Changing this forces a new resource to be created.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VerificationToken
The Verification Token that will be used to authenticate with Slack.
Declaration
public Output<string> VerificationToken { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ChannelSlackState, CustomResourceOptions)
Get an existing ChannelSlack resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ChannelSlack Get(string name, Input<string> id, ChannelSlackState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ChannelSlackState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ChannelSlack |