Interface CfnCustomActionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCustomActionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:46.720Z")
@Stability(Stable)
public interface CfnCustomActionProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnCustomAction.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.chatbot.*;
CfnCustomActionProps cfnCustomActionProps = CfnCustomActionProps.builder()
.actionName("actionName")
.definition(CustomActionDefinitionProperty.builder()
.commandText("commandText")
.build())
// the properties below are optional
.aliasName("aliasName")
.attachments(List.of(CustomActionAttachmentProperty.builder()
.buttonText("buttonText")
.criteria(List.of(CustomActionAttachmentCriteriaProperty.builder()
.operator("operator")
.variableName("variableName")
// the properties below are optional
.value("value")
.build()))
.notificationType("notificationType")
.variables(Map.of(
"variablesKey", "variables"))
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnCustomActionPropsstatic final classAn implementation forCfnCustomActionProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnCustomActionProps.Builderbuilder()The name of the custom action.default StringThe name used to invoke this action in a chat channel.default ObjectDefines when this custom action button should be attached to a notification.The definition of the command to run when invoked as an alias or as an action button.getTags()The tags to add to the configuration.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getActionName
The name of the custom action.This name is included in the Amazon Resource Name (ARN).
- See Also:
-
getDefinition
The definition of the command to run when invoked as an alias or as an action button.Returns union: either
IResolvableorCfnCustomAction.CustomActionDefinitionProperty- See Also:
-
getAliasName
The name used to invoke this action in a chat channel.For example,
@Amazon Q run my-alias.- See Also:
-
getAttachments
Defines when this custom action button should be attached to a notification.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnCustomAction.CustomActionAttachmentProperty>- See Also:
-
getTags
The tags to add to the configuration.- See Also:
-
builder
- Returns:
- a
CfnCustomActionProps.BuilderofCfnCustomActionProps
-