Skip to content

Commit

Permalink
feat(client-chatbot): Adds support for programmatic management of cus…
Browse files Browse the repository at this point in the history
…tom actions and aliases which can be associated with channel configurations.
  • Loading branch information
awstools committed Nov 22, 2024
1 parent 372482a commit acdb624
Show file tree
Hide file tree
Showing 19 changed files with 3,402 additions and 109 deletions.
78 changes: 71 additions & 7 deletions clients/client-chatbot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ using your favorite package manager:

The AWS SDK is modulized by clients and commands.
To send a request, you only need to import the `ChatbotClient` and
the commands you need, for example `ListTagsForResourceCommand`:
the commands you need, for example `ListCustomActionsCommand`:

```js
// ES5 example
const { ChatbotClient, ListTagsForResourceCommand } = require("@aws-sdk/client-chatbot");
const { ChatbotClient, ListCustomActionsCommand } = require("@aws-sdk/client-chatbot");
```

```ts
// ES6+ example
import { ChatbotClient, ListTagsForResourceCommand } from "@aws-sdk/client-chatbot";
import { ChatbotClient, ListCustomActionsCommand } from "@aws-sdk/client-chatbot";
```

### Usage
Expand All @@ -74,7 +74,7 @@ const client = new ChatbotClient({ region: "REGION" });
const params = {
/** input parameters */
};
const command = new ListTagsForResourceCommand(params);
const command = new ListCustomActionsCommand(params);
```

#### Async/await
Expand Down Expand Up @@ -153,15 +153,15 @@ const client = new AWS.Chatbot({ region: "REGION" });

// async/await.
try {
const data = await client.listTagsForResource(params);
const data = await client.listCustomActions(params);
// process data.
} catch (error) {
// error handling.
}

// Promises.
client
.listTagsForResource(params)
.listCustomActions(params)
.then((data) => {
// process data.
})
Expand All @@ -170,7 +170,7 @@ client
});

// callbacks.
client.listTagsForResource(params, (err, data) => {
client.listCustomActions(params, (err, data) => {
// process err and data.
});
```
Expand Down Expand Up @@ -226,13 +226,29 @@ see LICENSE for more information.

## Client Commands (Operations List)

<details>
<summary>
AssociateToConfiguration
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/AssociateToConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/AssociateToConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/AssociateToConfigurationCommandOutput/)

</details>
<details>
<summary>
CreateChimeWebhookConfiguration
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/CreateChimeWebhookConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/CreateChimeWebhookConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/CreateChimeWebhookConfigurationCommandOutput/)

</details>
<details>
<summary>
CreateCustomAction
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/CreateCustomActionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/CreateCustomActionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/CreateCustomActionCommandOutput/)

</details>
<details>
<summary>
Expand All @@ -257,6 +273,14 @@ DeleteChimeWebhookConfiguration

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/DeleteChimeWebhookConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/DeleteChimeWebhookConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/DeleteChimeWebhookConfigurationCommandOutput/)

</details>
<details>
<summary>
DeleteCustomAction
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/DeleteCustomActionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/DeleteCustomActionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/DeleteCustomActionCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -337,6 +361,14 @@ DescribeSlackWorkspaces

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/DescribeSlackWorkspacesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/DescribeSlackWorkspacesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/DescribeSlackWorkspacesCommandOutput/)

</details>
<details>
<summary>
DisassociateFromConfiguration
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/DisassociateFromConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/DisassociateFromConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/DisassociateFromConfigurationCommandOutput/)

</details>
<details>
<summary>
Expand All @@ -345,6 +377,14 @@ GetAccountPreferences

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/GetAccountPreferencesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/GetAccountPreferencesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/GetAccountPreferencesCommandOutput/)

</details>
<details>
<summary>
GetCustomAction
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/GetCustomActionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/GetCustomActionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/GetCustomActionCommandOutput/)

</details>
<details>
<summary>
Expand All @@ -353,6 +393,22 @@ GetMicrosoftTeamsChannelConfiguration

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/GetMicrosoftTeamsChannelConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/GetMicrosoftTeamsChannelConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/GetMicrosoftTeamsChannelConfigurationCommandOutput/)

</details>
<details>
<summary>
ListAssociations
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/ListAssociationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/ListAssociationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/ListAssociationsCommandOutput/)

</details>
<details>
<summary>
ListCustomActions
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/ListCustomActionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/ListCustomActionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/ListCustomActionsCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -417,6 +473,14 @@ UpdateChimeWebhookConfiguration

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/UpdateChimeWebhookConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/UpdateChimeWebhookConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/UpdateChimeWebhookConfigurationCommandOutput/)

</details>
<details>
<summary>
UpdateCustomAction
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/UpdateCustomActionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/UpdateCustomActionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/UpdateCustomActionCommandOutput/)

</details>
<details>
<summary>
Expand Down
4 changes: 3 additions & 1 deletion clients/client-chatbot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
"@smithy/util-middleware": "^3.0.10",
"@smithy/util-retry": "^3.0.10",
"@smithy/util-utf8": "^3.0.0",
"tslib": "^2.6.2"
"@types/uuid": "^9.0.1",
"tslib": "^2.6.2",
"uuid": "^9.0.1"
},
"devDependencies": {
"@tsconfig/node16": "16.1.3",
Expand Down
Loading

0 comments on commit acdb624

Please sign in to comment.