Skip to content
v2.278.0

CustomActionDefinitionProperty Struct ​

AWS Chatbot is now Amazon Q Developer . Learn more > > Type attribute values remain unchanged.

The definition of the command to run when invoked as an alias or as an action button.

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 customActionDefinitionProperty: chatbot.CfnCustomAction.CustomActionDefinitionProperty = {
  commandText: 'commandText',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_chatbot as chatbot

custom_action_definition_property = chatbot.CfnCustomAction.CustomActionDefinitionProperty(
    command_text="commandText"
)
java
// 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.*;

CustomActionDefinitionProperty customActionDefinitionProperty = CustomActionDefinitionProperty.builder()
        .commandText("commandText")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Chatbot;

var customActionDefinitionProperty = new CustomActionDefinitionProperty {
    CommandText = "commandText"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customActionDefinitionProperty := &CustomActionDefinitionProperty{
	CommandText: jsii.String("commandText"),
}

Properties ​

commandTextstringcommand_textstrcommandTextStringCommandTextstringCommandText*string required #
The command string to run which may include variables by prefixing with a dollar sign ($).