Class CfnCustomAction
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.chatbot.CfnCustomAction
- All Implemented Interfaces:
IInspectable,ICustomActionRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:00.210Z")
@Stability(Stable)
public class CfnCustomAction
extends CfnResource
implements IInspectable, ICustomActionRef, ITaggableV2
AWS Chatbot is now .
Typeattribute values remain unchanged.
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.*;
CfnCustomAction cfnCustomAction = CfnCustomAction.Builder.create(this, "MyCfnCustomAction")
.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 TypeClassDescriptionstatic final classA fluent builder forCfnCustomAction.static interfacestatic interfacestatic interfaceNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.chatbot.ICustomActionRef
ICustomActionRef.Jsii$Default, ICustomActionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCustomAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCustomAction(software.amazon.jsii.JsiiObjectRef objRef) CfnCustomAction(software.constructs.Construct scope, String id, CfnCustomActionProps props) Create a newAWS::Chatbot::CustomAction. -
Method Summary
Modifier and TypeMethodDescriptionThe name of the custom action.The name used to invoke this action in a chat channel.Defines when this custom action button should be attached to a notification.The fully defined ARN of the custom action.Tag Manager which manages the tags for this resource.A reference to a CustomAction resource.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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetActionName(String value) The name of the custom action.voidsetAliasName(String value) The name used to invoke this action in a chat channel.voidsetAttachments(List<Object> value) Defines when this custom action button should be attached to a notification.voidsetAttachments(IResolvable value) Defines when this custom action button should be attached to a notification.voidsetDefinition(IResolvable value) The definition of the command to run when invoked as an alias or as an action button.voidThe definition of the command to run when invoked as an alias or as an action button.voidThe tags to add to the configuration.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCustomAction
protected CfnCustomAction(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCustomAction
protected CfnCustomAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCustomAction
@Stability(Stable) public CfnCustomAction(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCustomActionProps props) Create a newAWS::Chatbot::CustomAction.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCustomActionArn
The fully defined ARN of the custom action. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCustomActionRef
A reference to a CustomAction resource.- Specified by:
getCustomActionRefin interfaceICustomActionRef
-
getActionName
The name of the custom action. -
setActionName
The name of the custom action. -
getDefinition
The definition of the command to run when invoked as an alias or as an action button.Returns union: either
IResolvableorCfnCustomAction.CustomActionDefinitionProperty -
setDefinition
The definition of the command to run when invoked as an alias or as an action button. -
setDefinition
@Stability(Stable) public void setDefinition(@NotNull CfnCustomAction.CustomActionDefinitionProperty value) The definition of the command to run when invoked as an alias or as an action button. -
getAliasName
The name used to invoke this action in a chat channel. -
setAliasName
The name used to invoke this action in a chat channel. -
getAttachments
Defines when this custom action button should be attached to a notification.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnCustomAction.CustomActionAttachmentProperty> -
setAttachments
Defines when this custom action button should be attached to a notification. -
setAttachments
Defines when this custom action button should be attached to a notification. -
getTags
The tags to add to the configuration. -
setTags
The tags to add to the configuration.
-