UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

812 lines (811 loc) 36.6 kB
import * as cdk from "../../core/lib"; import * as constructs from "constructs"; import * as cfn_parse from "../../core/lib/helpers-internal"; import { CustomActionReference, ICustomActionRef, IMicrosoftTeamsChannelConfigurationRef, ISlackChannelConfigurationRef, MicrosoftTeamsChannelConfigurationReference, SlackChannelConfigurationReference } from "../../interfaces/generated/aws-chatbot-interfaces.generated"; import { aws_iam as iamRefs, aws_sns as snsRefs } from "../../interfaces"; /** * > AWS Chatbot is now . [Learn more](https://docs.aws.amazon.com//chatbot/latest/adminguide/service-rename.html) > > `Type` attribute values remain unchanged. * * The `AWS::Chatbot::MicrosoftTeamsChannelConfiguration` resource configures a Microsoft Teams channel to allow users to use with CloudFormation templates. * * This resource requires some setup to be done in the in chat applications console. To provide the required Microsoft Teams team and tenant IDs, you must perform the initial authorization flow with Microsoft Teams in the in chat applications console, then copy and paste the IDs from the console. For more details, see steps 1-3 in [Get started with Microsoft Teams](https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html#teams-client-setup) in the *in chat applications Administrator Guide* . * * @cloudformationResource AWS::Chatbot::MicrosoftTeamsChannelConfiguration * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html */ export declare class CfnMicrosoftTeamsChannelConfiguration extends cdk.CfnResource implements cdk.IInspectable, IMicrosoftTeamsChannelConfigurationRef, cdk.ITaggableV2 { /** * The CloudFormation resource type name for this resource class. */ static readonly CFN_RESOURCE_TYPE_NAME: string; /** * Build a CfnMicrosoftTeamsChannelConfiguration from CloudFormation properties * * A factory method that creates a new instance of this class from an object * containing the CloudFormation properties of this resource. * Used in the @aws-cdk/cloudformation-include module. * * @internal */ static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnMicrosoftTeamsChannelConfiguration; /** * Checks whether the given object is a CfnMicrosoftTeamsChannelConfiguration */ static isCfnMicrosoftTeamsChannelConfiguration(x: any): x is CfnMicrosoftTeamsChannelConfiguration; static arnForMicrosoftTeamsChannelConfiguration(resource: IMicrosoftTeamsChannelConfigurationRef): string; /** * Tag Manager which manages the tags for this resource */ readonly cdkTagManager: cdk.TagManager; /** * The name of the configuration. */ private _configurationName; /** * Links a list of resource ARNs (for example, custom action ARNs) to a Microsoft Teams channel configuration for . */ private _customizationResourceArns?; /** * The list of IAM policy ARNs that are applied as channel guardrails. */ private _guardrailPolicies?; /** * The ARN of the IAM role that defines the permissions for . */ private _iamRoleArn; /** * Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. */ private _loggingLevel?; /** * The ARNs of the SNS topics that deliver notifications to . */ private _snsTopicArns?; /** * The tags to add to the configuration. */ private _tags?; /** * The ID of the Microsoft Team authorized with . */ private _teamId; /** * The ID of the Microsoft Teams channel. */ private _teamsChannelId; /** * The name of the Microsoft Teams channel. */ private _teamsChannelName?; /** * The ID of the Microsoft Teams tenant. */ private _teamsTenantId; /** * Enables use of a user role requirement in your chat configuration. */ private _userRoleRequired?; /** * Create a new `AWS::Chatbot::MicrosoftTeamsChannelConfiguration`. * * @param scope Scope in which this resource is defined * @param id Construct identifier for this resource (unique in its scope) * @param props Resource properties */ constructor(scope: constructs.Construct, id: string, props: CfnMicrosoftTeamsChannelConfigurationProps); get microsoftTeamsChannelConfigurationRef(): MicrosoftTeamsChannelConfigurationReference; /** * The name of the configuration. */ get configurationName(): string; /** * The name of the configuration. */ set configurationName(value: string); /** * Links a list of resource ARNs (for example, custom action ARNs) to a Microsoft Teams channel configuration for . */ get customizationResourceArns(): Array<string> | undefined; /** * Links a list of resource ARNs (for example, custom action ARNs) to a Microsoft Teams channel configuration for . */ set customizationResourceArns(value: Array<string> | undefined); /** * The list of IAM policy ARNs that are applied as channel guardrails. */ get guardrailPolicies(): Array<string> | undefined; /** * The list of IAM policy ARNs that are applied as channel guardrails. */ set guardrailPolicies(value: Array<string> | undefined); /** * The ARN of the IAM role that defines the permissions for . */ get iamRoleArn(): string; /** * The ARN of the IAM role that defines the permissions for . */ set iamRoleArn(value: string); /** * Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. */ get loggingLevel(): string | undefined; /** * Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. */ set loggingLevel(value: string | undefined); /** * The ARNs of the SNS topics that deliver notifications to . */ get snsTopicArns(): Array<string> | undefined; /** * The ARNs of the SNS topics that deliver notifications to . */ set snsTopicArns(value: Array<string> | undefined); /** * The tags to add to the configuration. */ get tags(): Array<cdk.CfnTag> | undefined; /** * The tags to add to the configuration. */ set tags(value: Array<cdk.CfnTag> | undefined); /** * The ID of the Microsoft Team authorized with . */ get teamId(): string; /** * The ID of the Microsoft Team authorized with . */ set teamId(value: string); /** * The ID of the Microsoft Teams channel. */ get teamsChannelId(): string; /** * The ID of the Microsoft Teams channel. */ set teamsChannelId(value: string); /** * The name of the Microsoft Teams channel. */ get teamsChannelName(): string | undefined; /** * The name of the Microsoft Teams channel. */ set teamsChannelName(value: string | undefined); /** * The ID of the Microsoft Teams tenant. */ get teamsTenantId(): string; /** * The ID of the Microsoft Teams tenant. */ set teamsTenantId(value: string); /** * Enables use of a user role requirement in your chat configuration. */ get userRoleRequired(): boolean | cdk.IResolvable | undefined; /** * Enables use of a user role requirement in your chat configuration. */ set userRoleRequired(value: boolean | cdk.IResolvable | undefined); /** * The ARN of the resource. * * @cloudformationAttribute Arn */ get attrArn(): string; protected get cfnProperties(): Record<string, any>; /** * Examines the CloudFormation resource and discloses attributes * * @param inspector tree inspector to collect and process attributes */ inspect(inspector: cdk.TreeInspector): void; protected renderProperties(props: Record<string, any>): Record<string, any>; } /** * Properties for defining a `CfnMicrosoftTeamsChannelConfiguration` * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html */ export interface CfnMicrosoftTeamsChannelConfigurationProps { /** * The name of the configuration. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-configurationname */ readonly configurationName: string; /** * Links a list of resource ARNs (for example, custom action ARNs) to a Microsoft Teams channel configuration for . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-customizationresourcearns */ readonly customizationResourceArns?: Array<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. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-guardrailpolicies */ readonly guardrailPolicies?: Array<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](https://docs.aws.amazon.com/chatbot/latest/adminguide/chatbot-iam-policies.html) . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-iamrolearn */ readonly iamRoleArn: string; /** * 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` . * * @default - "NONE" * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-logginglevel */ readonly loggingLevel?: string; /** * The ARNs of the SNS topics that deliver notifications to . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-snstopicarns */ readonly snsTopicArns?: Array<string>; /** * The tags to add to the configuration. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-tags */ readonly tags?: Array<cdk.CfnTag>; /** * The ID of the Microsoft Team authorized with . * * To get the team ID, you must perform the initial authorization flow with Microsoft Teams in the in chat applications console. Then you can copy and paste the team ID from the console. For more details, see steps 1-3 in [Tutorial: Get started with Microsoft Teams](https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html) in the *in chat applications Administrator Guide* . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-teamid */ readonly teamId: string; /** * The ID of the Microsoft Teams channel. * * To get the channel ID, open Microsoft Teams, right click on the channel name in the left pane, then choose *Copy* . An example of the channel ID syntax is: `19%3ab6ef35dc342d56ba5654e6fc6d25a071%40thread.tacv2` . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-teamschannelid */ readonly teamsChannelId: string; /** * The name of the Microsoft Teams channel. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-teamschannelname */ readonly teamsChannelName?: string; /** * The ID of the Microsoft Teams tenant. * * To get the tenant ID, you must perform the initial authorization flow with Microsoft Teams in the in chat applications console. Then you can copy and paste the tenant ID from the console. For more details, see steps 1-3 in [Tutorial: Get started with Microsoft Teams](https://docs.aws.amazon.com/chatbot/latest/adminguide/teams-setup.html) in the *in chat applications Administrator Guide* . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-teamstenantid */ readonly teamsTenantId: string; /** * Enables use of a user role requirement in your chat configuration. * * @default - false * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-userrolerequired */ readonly userRoleRequired?: boolean | cdk.IResolvable; } /** * > AWS Chatbot is now . [Learn more](https://docs.aws.amazon.com//chatbot/latest/adminguide/service-rename.html) > > `Type` attribute values remain unchanged. * * The `AWS::Chatbot::SlackChannelConfiguration` resource configures a Slack channel to allow users to use with CloudFormation templates. * * This resource requires some setup to be done in the in chat applications console. To provide the required Slack workspace ID, you must perform the initial authorization flow with Slack in the in chat applications console, then copy and paste the workspace ID from the console. For more details, see steps 1-3 in [Tutorial: Get started with Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/slack-setup.html#slack-client-setup) in the *in chat applications User Guide* . * * @cloudformationResource AWS::Chatbot::SlackChannelConfiguration * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html */ export declare class CfnSlackChannelConfiguration extends cdk.CfnResource implements cdk.IInspectable, ISlackChannelConfigurationRef, cdk.ITaggableV2 { /** * The CloudFormation resource type name for this resource class. */ static readonly CFN_RESOURCE_TYPE_NAME: string; /** * Build a CfnSlackChannelConfiguration from CloudFormation properties * * A factory method that creates a new instance of this class from an object * containing the CloudFormation properties of this resource. * Used in the @aws-cdk/cloudformation-include module. * * @internal */ static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnSlackChannelConfiguration; /** * Checks whether the given object is a CfnSlackChannelConfiguration */ static isCfnSlackChannelConfiguration(x: any): x is CfnSlackChannelConfiguration; static arnForSlackChannelConfiguration(resource: ISlackChannelConfigurationRef): string; /** * Tag Manager which manages the tags for this resource */ readonly cdkTagManager: cdk.TagManager; /** * The name of the configuration. */ private _configurationName; /** * Links a list of resource ARNs (for example, custom action ARNs) to a Slack channel configuration for . */ private _customizationResourceArns?; /** * The list of IAM policy ARNs that are applied as channel guardrails. */ private _guardrailPolicies?; /** * The ARN of the IAM role that defines the permissions for . */ private _iamRoleArn; /** * Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. */ private _loggingLevel?; /** * The ID of the Slack channel. */ private _slackChannelId; /** * The ID of the Slack workspace authorized with . */ private _slackWorkspaceId; /** * The ARNs of the SNS topics that deliver notifications to . */ private _snsTopicArns?; /** * The tags to add to the configuration. */ private _tags?; /** * Enables use of a user role requirement in your chat configuration. */ private _userRoleRequired?; /** * Create a new `AWS::Chatbot::SlackChannelConfiguration`. * * @param scope Scope in which this resource is defined * @param id Construct identifier for this resource (unique in its scope) * @param props Resource properties */ constructor(scope: constructs.Construct, id: string, props: CfnSlackChannelConfigurationProps); get slackChannelConfigurationRef(): SlackChannelConfigurationReference; /** * The name of the configuration. */ get configurationName(): string; /** * The name of the configuration. */ set configurationName(value: string); /** * Links a list of resource ARNs (for example, custom action ARNs) to a Slack channel configuration for . */ get customizationResourceArns(): Array<string> | undefined; /** * Links a list of resource ARNs (for example, custom action ARNs) to a Slack channel configuration for . */ set customizationResourceArns(value: Array<string> | undefined); /** * The list of IAM policy ARNs that are applied as channel guardrails. */ get guardrailPolicies(): Array<string> | undefined; /** * The list of IAM policy ARNs that are applied as channel guardrails. */ set guardrailPolicies(value: Array<string> | undefined); /** * The ARN of the IAM role that defines the permissions for . */ get iamRoleArn(): string; /** * The ARN of the IAM role that defines the permissions for . */ set iamRoleArn(value: string); /** * Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. */ get loggingLevel(): string | undefined; /** * Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. */ set loggingLevel(value: string | undefined); /** * The ID of the Slack channel. */ get slackChannelId(): string; /** * The ID of the Slack channel. */ set slackChannelId(value: string); /** * The ID of the Slack workspace authorized with . */ get slackWorkspaceId(): string; /** * The ID of the Slack workspace authorized with . */ set slackWorkspaceId(value: string); /** * The ARNs of the SNS topics that deliver notifications to . */ get snsTopicArns(): Array<string> | undefined; /** * The ARNs of the SNS topics that deliver notifications to . */ set snsTopicArns(value: Array<string> | undefined); /** * The tags to add to the configuration. */ get tags(): Array<cdk.CfnTag> | undefined; /** * The tags to add to the configuration. */ set tags(value: Array<cdk.CfnTag> | undefined); /** * Enables use of a user role requirement in your chat configuration. */ get userRoleRequired(): boolean | cdk.IResolvable | undefined; /** * Enables use of a user role requirement in your chat configuration. */ set userRoleRequired(value: boolean | cdk.IResolvable | undefined); /** * The ARN of the resource. * * @cloudformationAttribute Arn */ get attrArn(): string; protected get cfnProperties(): Record<string, any>; /** * Examines the CloudFormation resource and discloses attributes * * @param inspector tree inspector to collect and process attributes */ inspect(inspector: cdk.TreeInspector): void; protected renderProperties(props: Record<string, any>): Record<string, any>; } /** * Properties for defining a `CfnSlackChannelConfiguration` * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html */ export interface CfnSlackChannelConfigurationProps { /** * The name of the configuration. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-configurationname */ readonly configurationName: string; /** * Links a list of resource ARNs (for example, custom action ARNs) to a Slack channel configuration for . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-customizationresourcearns */ readonly customizationResourceArns?: Array<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. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-guardrailpolicies */ readonly guardrailPolicies?: Array<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](https://docs.aws.amazon.com/chatbot/latest/adminguide/chatbot-iam-policies.html) . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-iamrolearn */ readonly iamRoleArn: iamRefs.IRoleRef | string; /** * 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` . * * @default - "NONE" * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-logginglevel */ readonly loggingLevel?: 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` . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-slackchannelid */ readonly slackChannelId: 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](https://docs.aws.amazon.com/chatbot/latest/adminguide/slack-setup.html#slack-client-setup) in the *in chat applications User Guide* . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-slackworkspaceid */ readonly slackWorkspaceId: string; /** * The ARNs of the SNS topics that deliver notifications to . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-snstopicarns */ readonly snsTopicArns?: Array<snsRefs.ITopicRef | string>; /** * The tags to add to the configuration. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-tags */ readonly tags?: Array<cdk.CfnTag>; /** * Enables use of a user role requirement in your chat configuration. * * @default - false * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-userrolerequired */ readonly userRoleRequired?: boolean | cdk.IResolvable; } /** * > AWS Chatbot is now . * * [Learn more](https://docs.aws.amazon.com//chatbot/latest/adminguide/service-rename.html) * > * > `Type` attribute values remain unchanged. * * @cloudformationResource AWS::Chatbot::CustomAction * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-customaction.html */ export declare class CfnCustomAction extends cdk.CfnResource implements cdk.IInspectable, ICustomActionRef, cdk.ITaggableV2 { /** * The CloudFormation resource type name for this resource class. */ static readonly CFN_RESOURCE_TYPE_NAME: string; /** * Build a CfnCustomAction from CloudFormation properties * * A factory method that creates a new instance of this class from an object * containing the CloudFormation properties of this resource. * Used in the @aws-cdk/cloudformation-include module. * * @internal */ static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnCustomAction; /** * Checks whether the given object is a CfnCustomAction */ static isCfnCustomAction(x: any): x is CfnCustomAction; static arnForCustomAction(resource: ICustomActionRef): string; /** * The name of the custom action. */ private _actionName; /** * The name used to invoke this action in a chat channel. */ private _aliasName?; /** * Defines when this custom action button should be attached to a notification. */ private _attachments?; /** * Tag Manager which manages the tags for this resource */ readonly cdkTagManager: cdk.TagManager; /** * The definition of the command to run when invoked as an alias or as an action button. */ private _definition; /** * The tags to add to the configuration. */ private _tags?; /** * Create a new `AWS::Chatbot::CustomAction`. * * @param scope Scope in which this resource is defined * @param id Construct identifier for this resource (unique in its scope) * @param props Resource properties */ constructor(scope: constructs.Construct, id: string, props: CfnCustomActionProps); get customActionRef(): CustomActionReference; /** * The name of the custom action. */ get actionName(): string; /** * The name of the custom action. */ set actionName(value: string); /** * The name used to invoke this action in a chat channel. */ get aliasName(): string | undefined; /** * The name used to invoke this action in a chat channel. */ set aliasName(value: string | undefined); /** * Defines when this custom action button should be attached to a notification. */ get attachments(): Array<CfnCustomAction.CustomActionAttachmentProperty | cdk.IResolvable> | cdk.IResolvable | undefined; /** * Defines when this custom action button should be attached to a notification. */ set attachments(value: Array<CfnCustomAction.CustomActionAttachmentProperty | cdk.IResolvable> | cdk.IResolvable | undefined); /** * The definition of the command to run when invoked as an alias or as an action button. */ get definition(): CfnCustomAction.CustomActionDefinitionProperty | cdk.IResolvable; /** * The definition of the command to run when invoked as an alias or as an action button. */ set definition(value: CfnCustomAction.CustomActionDefinitionProperty | cdk.IResolvable); /** * The tags to add to the configuration. */ get tags(): Array<cdk.CfnTag> | undefined; /** * The tags to add to the configuration. */ set tags(value: Array<cdk.CfnTag> | undefined); /** * The fully defined ARN of the custom action. * * @cloudformationAttribute CustomActionArn */ get attrCustomActionArn(): string; protected get cfnProperties(): Record<string, any>; /** * Examines the CloudFormation resource and discloses attributes * * @param inspector tree inspector to collect and process attributes */ inspect(inspector: cdk.TreeInspector): void; protected renderProperties(props: Record<string, any>): Record<string, any>; } export declare namespace CfnCustomAction { /** * > AWS Chatbot is now . [Learn more](https://docs.aws.amazon.com//chatbot/latest/adminguide/service-rename.html) > > `Type` attribute values remain unchanged. * * Defines when a custom action button should be attached to a notification. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachment.html */ interface CustomActionAttachmentProperty { /** * The text of the button that appears on the notification. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachment.html#cfn-chatbot-customaction-customactionattachment-buttontext */ readonly buttonText?: string; /** * The criteria for when a button should be shown based on values in the notification. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachment.html#cfn-chatbot-customaction-customactionattachment-criteria */ readonly criteria?: Array<CfnCustomAction.CustomActionAttachmentCriteriaProperty | cdk.IResolvable> | cdk.IResolvable; /** * The type of notification that the custom action should be attached to. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachment.html#cfn-chatbot-customaction-customactionattachment-notificationtype */ readonly notificationType?: string; /** * The variables to extract from the notification. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachment.html#cfn-chatbot-customaction-customactionattachment-variables */ readonly variables?: cdk.IResolvable | Record<string, string>; } /** * > AWS Chatbot is now . [Learn more](https://docs.aws.amazon.com//chatbot/latest/adminguide/service-rename.html) > > `Type` attribute values remain unchanged. * * A criteria for when a button should be shown based on values in the notification. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachmentcriteria.html */ interface CustomActionAttachmentCriteriaProperty { /** * The operation to perform on the named variable. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachmentcriteria.html#cfn-chatbot-customaction-customactionattachmentcriteria-operator */ readonly operator: string; /** * A value that is compared with the actual value of the variable based on the behavior of the operator. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachmentcriteria.html#cfn-chatbot-customaction-customactionattachmentcriteria-value */ readonly value?: string; /** * The name of the variable to operate on. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactionattachmentcriteria.html#cfn-chatbot-customaction-customactionattachmentcriteria-variablename */ readonly variableName: string; } /** * > AWS Chatbot is now . [Learn more](https://docs.aws.amazon.com//chatbot/latest/adminguide/service-rename.html) > > `Type` attribute values remain unchanged. * * The definition of the command to run when invoked as an alias or as an action button. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactiondefinition.html */ interface CustomActionDefinitionProperty { /** * The command string to run which may include variables by prefixing with a dollar sign ($). * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-chatbot-customaction-customactiondefinition.html#cfn-chatbot-customaction-customactiondefinition-commandtext */ readonly commandText: string; } } /** * Properties for defining a `CfnCustomAction` * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-customaction.html */ export interface CfnCustomActionProps { /** * The name of the custom action. * * This name is included in the Amazon Resource Name (ARN). * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-customaction.html#cfn-chatbot-customaction-actionname */ readonly actionName: string; /** * The name used to invoke this action in a chat channel. * * For example, `@Amazon Q run my-alias` . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-customaction.html#cfn-chatbot-customaction-aliasname */ readonly aliasName?: string; /** * Defines when this custom action button should be attached to a notification. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-customaction.html#cfn-chatbot-customaction-attachments */ readonly attachments?: Array<CfnCustomAction.CustomActionAttachmentProperty | cdk.IResolvable> | cdk.IResolvable; /** * The definition of the command to run when invoked as an alias or as an action button. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-customaction.html#cfn-chatbot-customaction-definition */ readonly definition: CfnCustomAction.CustomActionDefinitionProperty | cdk.IResolvable; /** * The tags to add to the configuration. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-customaction.html#cfn-chatbot-customaction-tags */ readonly tags?: Array<cdk.CfnTag>; } export type { IMicrosoftTeamsChannelConfigurationRef, MicrosoftTeamsChannelConfigurationReference }; export type { ISlackChannelConfigurationRef, SlackChannelConfigurationReference }; export type { ICustomActionRef, CustomActionReference };