# CustomActionDefinitionProperty

> AWS Chatbot is now Amazon Q Developer . [Learn more](https://docs.aws.amazon.com//chatbot/latest/adminguide/service-rename.html) >  > `Type` attribute values remain unchanged.

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

- Source: Generated at build time
- Type last changed: v2.172.0 · 7 Dec 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `commandText`: string (required) — The command string to run which may include variables by prefixing with a dollar sign ($).
