-
Notifications
You must be signed in to change notification settings - Fork 4
/
cloudformation.yml
52 lines (50 loc) · 2.56 KB
/
cloudformation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
AWSTemplateFormatVersion: "2010-09-09"
Description: AWS Chatbot Configuration
Parameters:
ConfigurationNameParameter:
Type: String
Description: The name of the configuration.
GuardrailPoliciesParameter:
Type: CommaDelimitedList
Description: 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.
IamRoleArnParameter:
Type: String
Description: The ARN of the IAM role that defines the permissions for AWS Chatbot. This is a user-defined role that AWS Chatbot will assume. This is not the service-linked role. For more information, see IAM Policies for AWS Chatbot.
LoggingLevelParameter:
Type: String
Description: 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.
AllowedValues:
- ERROR
- INFO
- NONE
SlackChannelIdParameter:
Type: String
Description: 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 9-character string at the end of the URL. For example, ABCBBLZZZ.
SlackWorkspaceIdParameter:
Type: String
Description: The ID of the Slack workspace authorized with AWS Chatbot. To get the workspace ID, you must perform the initial authorization flow with Slack in the AWS Chatbot console. Then you can copy and paste the workspace ID from the console. For more details, see steps 1-4 in Setting Up AWS Chatbot with Slack in the AWS Chatbot User Guide.
SnsTopicArnsParameter:
Type: CommaDelimitedList
Description: The ARNs of the SNS topics that deliver notifications to AWS Chatbot.
UserRoleRequiredParameter:
Type: String
Description: Enables use of a user role requirement in your chat configuration.
AllowedValues:
- false
- true
Resources:
SlackChannelConfiguration:
Type: AWS::Chatbot::SlackChannelConfiguration
Properties:
ConfigurationName: !Ref ConfigurationNameParameter
GuardrailPolicies: !Ref GuardrailPoliciesParameter
IamRoleArn: !Ref IamRoleArnParameter
LoggingLevel: !Ref LoggingLevelParameter
SlackChannelId: !Ref SlackChannelIdParameter
SlackWorkspaceId: !Ref SlackWorkspaceIdParameter
SnsTopicArns: !Ref SnsTopicArnsParameter
UserRoleRequired: !Ref UserRoleRequiredParameter
Outputs:
ConfigurationArn:
Description: The ARN of the Chatbot Slack configuration
Value: !Ref SlackChannelConfiguration