Skip to content

Commit acdb624

Browse files
author
awstools
committed
feat(client-chatbot): Adds support for programmatic management of custom actions and aliases which can be associated with channel configurations.
1 parent 372482a commit acdb624

19 files changed

+3402
-109
lines changed

clients/client-chatbot/README.md

+71-7
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ using your favorite package manager:
4646

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

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

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

6161
### Usage
@@ -74,7 +74,7 @@ const client = new ChatbotClient({ region: "REGION" });
7474
const params = {
7575
/** input parameters */
7676
};
77-
const command = new ListTagsForResourceCommand(params);
77+
const command = new ListCustomActionsCommand(params);
7878
```
7979

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

154154
// async/await.
155155
try {
156-
const data = await client.listTagsForResource(params);
156+
const data = await client.listCustomActions(params);
157157
// process data.
158158
} catch (error) {
159159
// error handling.
160160
}
161161

162162
// Promises.
163163
client
164-
.listTagsForResource(params)
164+
.listCustomActions(params)
165165
.then((data) => {
166166
// process data.
167167
})
@@ -170,7 +170,7 @@ client
170170
});
171171

172172
// callbacks.
173-
client.listTagsForResource(params, (err, data) => {
173+
client.listCustomActions(params, (err, data) => {
174174
// process err and data.
175175
});
176176
```
@@ -226,13 +226,29 @@ see LICENSE for more information.
226226

227227
## Client Commands (Operations List)
228228

229+
<details>
230+
<summary>
231+
AssociateToConfiguration
232+
</summary>
233+
234+
[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/)
235+
236+
</details>
229237
<details>
230238
<summary>
231239
CreateChimeWebhookConfiguration
232240
</summary>
233241

234242
[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/)
235243

244+
</details>
245+
<details>
246+
<summary>
247+
CreateCustomAction
248+
</summary>
249+
250+
[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/)
251+
236252
</details>
237253
<details>
238254
<summary>
@@ -257,6 +273,14 @@ DeleteChimeWebhookConfiguration
257273

258274
[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/)
259275

276+
</details>
277+
<details>
278+
<summary>
279+
DeleteCustomAction
280+
</summary>
281+
282+
[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/)
283+
260284
</details>
261285
<details>
262286
<summary>
@@ -337,6 +361,14 @@ DescribeSlackWorkspaces
337361

338362
[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/)
339363

364+
</details>
365+
<details>
366+
<summary>
367+
DisassociateFromConfiguration
368+
</summary>
369+
370+
[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/)
371+
340372
</details>
341373
<details>
342374
<summary>
@@ -345,6 +377,14 @@ GetAccountPreferences
345377

346378
[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/)
347379

380+
</details>
381+
<details>
382+
<summary>
383+
GetCustomAction
384+
</summary>
385+
386+
[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/)
387+
348388
</details>
349389
<details>
350390
<summary>
@@ -353,6 +393,22 @@ GetMicrosoftTeamsChannelConfiguration
353393

354394
[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/)
355395

396+
</details>
397+
<details>
398+
<summary>
399+
ListAssociations
400+
</summary>
401+
402+
[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/)
403+
404+
</details>
405+
<details>
406+
<summary>
407+
ListCustomActions
408+
</summary>
409+
410+
[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/)
411+
356412
</details>
357413
<details>
358414
<summary>
@@ -417,6 +473,14 @@ UpdateChimeWebhookConfiguration
417473

418474
[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/)
419475

476+
</details>
477+
<details>
478+
<summary>
479+
UpdateCustomAction
480+
</summary>
481+
482+
[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/)
483+
420484
</details>
421485
<details>
422486
<summary>

clients/client-chatbot/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@
5858
"@smithy/util-middleware": "^3.0.10",
5959
"@smithy/util-retry": "^3.0.10",
6060
"@smithy/util-utf8": "^3.0.0",
61-
"tslib": "^2.6.2"
61+
"@types/uuid": "^9.0.1",
62+
"tslib": "^2.6.2",
63+
"uuid": "^9.0.1"
6264
},
6365
"devDependencies": {
6466
"@tsconfig/node16": "16.1.3",

0 commit comments

Comments
 (0)