@@ -3,7 +3,7 @@ import * as chatbot from 'aws-cdk-lib/aws-chatbot';
33import { SlackChannelConfigurationProps } from 'aws-cdk-lib/aws-chatbot/lib/slack-channel-configuration' ;
44import { Construct } from 'constructs' ;
55
6- export interface SlackChannelId {
6+ export interface SlackChannel {
77 readonly slackChannelConfigurationName : string ;
88 readonly slackWorkspaceId : string ;
99 readonly slackChannelId : string ;
@@ -12,7 +12,7 @@ export interface SlackChannelId {
1212export class AccountChatbots {
1313 public static slackChatBots : Record < string , chatbot . SlackChannelConfiguration > = { } ;
1414
15- public static existsSlackChannel ( scope : Construct , chatbotProps : SlackChannelId ) : boolean {
15+ public static existsSlackChannel ( scope : Construct , chatbotProps : SlackChannel ) : boolean {
1616 const account = Stack . of ( scope ) . account ;
1717 const chatBotId = AccountChatbots . slackBotId ( account , chatbotProps ) ;
1818 return ! ! AccountChatbots . slackChatBots [ chatBotId ] ;
@@ -28,7 +28,7 @@ export class AccountChatbots {
2828 return AccountChatbots . slackChatBots [ chatBotId ] ;
2929 }
3030
31- public static findSlackChannel ( scope : Construct , chatbotProps : SlackChannelId ) {
31+ public static findSlackChannel ( scope : Construct , chatbotProps : SlackChannel ) {
3232 const account = Stack . of ( scope ) . account ;
3333 const chatBotId = AccountChatbots . slackBotId ( account , chatbotProps ) ;
3434
@@ -37,7 +37,7 @@ export class AccountChatbots {
3737 return AccountChatbots . slackChatBots [ chatBotId ] ;
3838 }
3939
40- private static slackBotId ( account : string , chatbotProps : SlackChannelId ) : string {
40+ private static slackBotId ( account : string , chatbotProps : SlackChannel ) : string {
4141 return [
4242 account ,
4343 chatbotProps . slackWorkspaceId ,
0 commit comments