Skip to content
v2.275.0

CfnCustomActionProps Struct ​

Properties for defining a CfnCustomAction.

Example ​

ts
// 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 cfnCustomActionProps: chatbot.CfnCustomActionProps = {
  actionName: 'actionName',
  definition: {
    commandText: 'commandText',
  },

  // the properties below are optional
  aliasName: 'aliasName',
  attachments: [{
    buttonText: 'buttonText',
    criteria: [{
      operator: 'operator',
      variableName: 'variableName',

      // the properties below are optional
      value: 'value',
    }],
    notificationType: 'notificationType',
    variables: {
      variablesKey: 'variables',
    },
  }],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

actionNamestringaction_namestractionNameStringActionNamestringActionName*stringrequired#
The name of the custom action.

This name is included in the Amazon Resource Name (ARN).

aliasNameoptionalstringalias_nameoptionalstraliasNameoptionalStringAliasNameoptionalstringAliasNameoptional*string#
The name used to invoke this action in a chat channel.

For example, @Amazon Q run my-alias .

attachmentsoptionalIResolvable | IResolvable | CfnCustomAction.CustomActionAttachmentProperty[]attachmentsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CustomActionAttachmentProperty]]]attachmentsoptionalIResolvableAttachmentsoptionalIResolvableAttachmentsoptionalinterface{}#
Defines when this custom action button should be attached to a notification.
definitionIResolvable | CfnCustomAction.CustomActionDefinitionPropertydefinitiontyping.Union[IResolvable, CustomActionDefinitionProperty]definitionIResolvableDefinitionIResolvableDefinitioninterface{}required#
The definition of the command to run when invoked as an alias or as an action button.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The tags to add to the configuration.