SlackChannelConfigurationArgs

data class SlackChannelConfigurationArgs(val configurationName: Output<String>? = null, val guardrailPolicyArns: Output<List<String>>? = null, val iamRoleArn: Output<String>? = null, val loggingLevel: Output<String>? = null, val slackChannelId: Output<String>? = null, val slackTeamId: Output<String>? = null, val snsTopicArns: Output<List<String>>? = null, val tags: Output<Map<String, String>>? = null, val timeouts: Output<SlackChannelConfigurationTimeoutsArgs>? = null, val userAuthorizationRequired: Output<Boolean>? = null) : ConvertibleToJava<SlackChannelConfigurationArgs>

Resource for managing an AWS Chatbot Slack Channel Configuration.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.chatbot.SlackChannelConfiguration("test", {
configurationName: "min-slaka-kanal",
iamRoleArn: testAwsIamRole.arn,
slackChannelId: "C07EZ1ABC23",
slackTeamId: "T07EA123LEP",
tags: {
Name: "min-slaka-kanal",
},
});
import pulumi
import pulumi_aws as aws
test = aws.chatbot.SlackChannelConfiguration("test",
configuration_name="min-slaka-kanal",
iam_role_arn=test_aws_iam_role["arn"],
slack_channel_id="C07EZ1ABC23",
slack_team_id="T07EA123LEP",
tags={
"Name": "min-slaka-kanal",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Chatbot.SlackChannelConfiguration("test", new()
{
ConfigurationName = "min-slaka-kanal",
IamRoleArn = testAwsIamRole.Arn,
SlackChannelId = "C07EZ1ABC23",
SlackTeamId = "T07EA123LEP",
Tags =
{
{ "Name", "min-slaka-kanal" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/chatbot"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := chatbot.NewSlackChannelConfiguration(ctx, "test", &chatbot.SlackChannelConfigurationArgs{
ConfigurationName: pulumi.String("min-slaka-kanal"),
IamRoleArn: pulumi.Any(testAwsIamRole.Arn),
SlackChannelId: pulumi.String("C07EZ1ABC23"),
SlackTeamId: pulumi.String("T07EA123LEP"),
Tags: pulumi.StringMap{
"Name": pulumi.String("min-slaka-kanal"),
},
})
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.aws.chatbot.SlackChannelConfiguration;
import com.pulumi.aws.chatbot.SlackChannelConfigurationArgs;
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 test = new SlackChannelConfiguration("test", SlackChannelConfigurationArgs.builder()
.configurationName("min-slaka-kanal")
.iamRoleArn(testAwsIamRole.arn())
.slackChannelId("C07EZ1ABC23")
.slackTeamId("T07EA123LEP")
.tags(Map.of("Name", "min-slaka-kanal"))
.build());
}
}
resources:
test:
type: aws:chatbot:SlackChannelConfiguration
properties:
configurationName: min-slaka-kanal
iamRoleArn: ${testAwsIamRole.arn}
slackChannelId: C07EZ1ABC23
slackTeamId: T07EA123LEP
tags:
Name: min-slaka-kanal

Import

Using pulumi import, import Chatbot Slack Channel Configuration using the chat_configuration_arn. For example:

$ pulumi import aws:chatbot/slackChannelConfiguration:SlackChannelConfiguration example arn:aws:chatbot::123456789012:chat-configuration/slack-channel/min-slaka-kanal

Constructors

Link copied to clipboard
constructor(configurationName: Output<String>? = null, guardrailPolicyArns: Output<List<String>>? = null, iamRoleArn: Output<String>? = null, loggingLevel: Output<String>? = null, slackChannelId: Output<String>? = null, slackTeamId: Output<String>? = null, snsTopicArns: Output<List<String>>? = null, tags: Output<Map<String, String>>? = null, timeouts: Output<SlackChannelConfigurationTimeoutsArgs>? = null, userAuthorizationRequired: Output<Boolean>? = null)

Properties

Link copied to clipboard
val configurationName: Output<String>? = null

Name of the Slack channel configuration.

Link copied to clipboard
val guardrailPolicyArns: Output<List<String>>? = null

List of IAM policy ARNs that are applied as channel guardrails. The AWS managed AdministratorAccess policy is applied by default if this is not set.

Link copied to clipboard
val iamRoleArn: Output<String>? = null

User-defined role that AWS Chatbot assumes. This is not the service-linked role.

Link copied to clipboard
val loggingLevel: Output<String>? = null

Logging levels include ERROR, INFO, or NONE.

Link copied to clipboard
val slackChannelId: Output<String>? = null

ID of the Slack channel. For example, C07EZ1ABC23.

Link copied to clipboard
val slackTeamId: Output<String>? = null

ID of the Slack workspace authorized with AWS Chatbot. For example, T07EA123LEP. The following arguments are optional:

Link copied to clipboard
val snsTopicArns: Output<List<String>>? = null

ARNs of the SNS topics that deliver notifications to AWS Chatbot.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Map of tags assigned to the resource.

Link copied to clipboard
Link copied to clipboard
val userAuthorizationRequired: Output<Boolean>? = null

Enables use of a user role requirement in your chat configuration.

Functions

Link copied to clipboard
open override fun toJava(): SlackChannelConfigurationArgs