interface CfnSlackChannelConfigurationProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Chatbot.CfnSlackChannelConfigurationProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awschatbot#CfnSlackChannelConfigurationProps |
![]() | software.amazon.awscdk.services.chatbot.CfnSlackChannelConfigurationProps |
![]() | aws_cdk.aws_chatbot.CfnSlackChannelConfigurationProps |
![]() | aws-cdk-lib » aws_chatbot » CfnSlackChannelConfigurationProps |
Properties for defining a CfnSlackChannelConfiguration
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_chatbot as chatbot } from 'aws-cdk-lib';
const cfnSlackChannelConfigurationProps: chatbot.CfnSlackChannelConfigurationProps = {
configurationName: 'configurationName',
iamRoleArn: 'iamRoleArn',
slackChannelId: 'slackChannelId',
slackWorkspaceId: 'slackWorkspaceId',
// the properties below are optional
customizationResourceArns: ['customizationResourceArns'],
guardrailPolicies: ['guardrailPolicies'],
loggingLevel: 'loggingLevel',
snsTopicArns: ['snsTopicArns'],
tags: [{
key: 'key',
value: 'value',
}],
userRoleRequired: false,
};
Properties
Name | Type | Description |
---|---|---|
configuration | string | The name of the configuration. |
iam | string | The ARN of the IAM role that defines the permissions for . |
slack | string | The ID of the Slack channel. |
slack | string | The ID of the Slack workspace authorized with . |
customization | string[] | Links a list of resource ARNs (for example, custom action ARNs) to a Slack channel configuration for . |
guardrail | string[] | The list of IAM policy ARNs that are applied as channel guardrails. |
logging | string | Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. |
sns | string[] | The ARNs of the SNS topics that deliver notifications to . |
tags? | Cfn [] | The tags to add to the configuration. |
user | boolean | IResolvable | Enables use of a user role requirement in your chat configuration. |
configurationName
Type:
string
The name of the configuration.
iamRoleArn
Type:
string
The ARN of the IAM role that defines the permissions for .
This is a user-defined role that will assume. This is not the service-linked role. For more information, see IAM Policies for in chat applications .
slackChannelId
Type:
string
The ID of the Slack channel.
To get the ID, open Slack, right click on the channel name in the left pane, then choose Copy Link. The channel ID is the character string at the end of the URL. For example, ABCBBLZZZ
.
slackWorkspaceId
Type:
string
The ID of the Slack workspace authorized with .
To get the workspace ID, you must perform the initial authorization flow with Slack in the in chat applications console. Then you can copy and paste the workspace ID from the console. For more details, see steps 1-3 in Tutorial: Get started with Slack in the in chat applications User Guide .
customizationResourceArns?
Type:
string[]
(optional)
Links a list of resource ARNs (for example, custom action ARNs) to a Slack channel configuration for .
guardrailPolicies?
Type:
string[]
(optional)
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.
loggingLevel?
Type:
string
(optional, default: "NONE")
Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs.
Logging levels include ERROR
, INFO
, or NONE
.
snsTopicArns?
Type:
string[]
(optional)
The ARNs of the SNS topics that deliver notifications to .
tags?
Type:
Cfn
[]
(optional)
The tags to add to the configuration.
userRoleRequired?
Type:
boolean |
IResolvable
(optional, default: false)
Enables use of a user role requirement in your chat configuration.