Resource schema for AWS::Chatbot::SlackChannelConfiguration.
To use chatbot_slack_channel_configuration to create a Slack channel configuration:
resource "awscc_chatbot_slack_channel_configuration" "example" {
configuration_name = "example-slack-channel-config"
iam_role_arn = awscc_iam_role.example.arn
slack_channel_id = var.channel_id
slack_workspace_id = var.workspace_id
}
resource "awscc_iam_role" "example" {
role_name = "ChatBot-Channel-Role"
assume_role_policy_document = jsonencode({
Version = "2012-10-17"
Statement = [
{
Action = "sts:AssumeRole"
Effect = "Allow"
Sid = ""
Principal = {
Service = "chatbot.amazonaws.com"
}
},
]
})
managed_policy_arns = ["arn:aws:iam::aws:policy/AWSResourceExplorerReadOnlyAccess"]
}
configuration_name
(String) The name of the configurationiam_role_arn
(String) The ARN of the IAM role that defines the permissions for AWS Chatbotslack_channel_id
(String) The id of the Slack channelslack_workspace_id
(String) The id of the Slack workspaceguardrail_policies
(List of String) The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.logging_level
(String) Specifies the logging level for this configuration:ERROR,INFO or NONE. This property affects the log entries pushed to Amazon CloudWatch logssns_topic_arns
(List of String) ARNs of SNS topics which delivers notifications to AWS Chatbot, for example CloudWatch alarm notifications.user_role_required
(Boolean) Enables use of a user role requirement in your chat configurationarn
(String) Amazon Resource Name (ARN) of the configurationid
(String) Uniquely identifies the resource.Import is supported using the following syntax:
$ terraform import awscc_chatbot_slack_channel_configuration.example <resource ID>