Class CfnCustomActionPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.chatbot.CfnCustomActionPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCustomActionPropsMixin>
- Enclosing class:
CfnCustomActionPropsMixin
@Stability(Stable)
public static final class CfnCustomActionPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCustomActionPropsMixin>
A fluent builder for
CfnCustomActionPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionactionName(String actionName) The name of the custom action.The name used to invoke this action in a chat channel.attachments(List<? extends Object> attachments) Defines when this custom action button should be attached to a notification.attachments(IResolvable attachments) Defines when this custom action button should be attached to a notification.build()create()create(CfnPropertyMixinOptions options) The definition of the command to run when invoked as an alias or as an action button.definition(IResolvable definition) The definition of the command to run when invoked as an alias or as an action button.The tags to add to the configuration.
-
Method Details
-
create
@Stability(Stable) public static CfnCustomActionPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnCustomActionPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnCustomActionPropsMixin.Builder.
-
actionName
The name of the custom action.This name is included in the Amazon Resource Name (ARN).
- Parameters:
actionName- The name of the custom action. This parameter is required.- Returns:
this- See Also:
-
aliasName
The name used to invoke this action in a chat channel.For example,
@Amazon Q run my-alias.- Parameters:
aliasName- The name used to invoke this action in a chat channel. This parameter is required.- Returns:
this- See Also:
-
attachments
Defines when this custom action button should be attached to a notification.- Parameters:
attachments- Defines when this custom action button should be attached to a notification. This parameter is required.- Returns:
this- See Also:
-
attachments
@Stability(Stable) public CfnCustomActionPropsMixin.Builder attachments(List<? extends Object> attachments) Defines when this custom action button should be attached to a notification.- Parameters:
attachments- Defines when this custom action button should be attached to a notification. This parameter is required.- Returns:
this- See Also:
-
definition
The definition of the command to run when invoked as an alias or as an action button.- Parameters:
definition- The definition of the command to run when invoked as an alias or as an action button. This parameter is required.- Returns:
this- See Also:
-
definition
@Stability(Stable) public CfnCustomActionPropsMixin.Builder definition(CfnCustomActionPropsMixin.CustomActionDefinitionProperty definition) The definition of the command to run when invoked as an alias or as an action button.- Parameters:
definition- The definition of the command to run when invoked as an alias or as an action button. This parameter is required.- Returns:
this- See Also:
-
tags
The tags to add to the configuration.- Parameters:
tags- The tags to add to the configuration. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCustomActionPropsMixin>- Returns:
- a newly built instance of
CfnCustomActionPropsMixin.
-