Skip to content

Commit 23a0082

Browse files
author
awstools
committed
feat(client-chatbot): This change adds support for tagging Chatbot configurations.
1 parent 0292fb4 commit 23a0082

20 files changed

+1203
-7
lines changed

clients/client-chatbot/README.md

+31-7
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ using your favorite package manager:
2323

2424
The AWS SDK is modulized by clients and commands.
2525
To send a request, you only need to import the `ChatbotClient` and
26-
the commands you need, for example `ListMicrosoftTeamsConfiguredTeamsCommand`:
26+
the commands you need, for example `ListTagsForResourceCommand`:
2727

2828
```js
2929
// ES5 example
30-
const { ChatbotClient, ListMicrosoftTeamsConfiguredTeamsCommand } = require("@aws-sdk/client-chatbot");
30+
const { ChatbotClient, ListTagsForResourceCommand } = require("@aws-sdk/client-chatbot");
3131
```
3232

3333
```ts
3434
// ES6+ example
35-
import { ChatbotClient, ListMicrosoftTeamsConfiguredTeamsCommand } from "@aws-sdk/client-chatbot";
35+
import { ChatbotClient, ListTagsForResourceCommand } from "@aws-sdk/client-chatbot";
3636
```
3737

3838
### Usage
@@ -51,7 +51,7 @@ const client = new ChatbotClient({ region: "REGION" });
5151
const params = {
5252
/** input parameters */
5353
};
54-
const command = new ListMicrosoftTeamsConfiguredTeamsCommand(params);
54+
const command = new ListTagsForResourceCommand(params);
5555
```
5656

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

131131
// async/await.
132132
try {
133-
const data = await client.listMicrosoftTeamsConfiguredTeams(params);
133+
const data = await client.listTagsForResource(params);
134134
// process data.
135135
} catch (error) {
136136
// error handling.
137137
}
138138

139139
// Promises.
140140
client
141-
.listMicrosoftTeamsConfiguredTeams(params)
141+
.listTagsForResource(params)
142142
.then((data) => {
143143
// process data.
144144
})
@@ -147,7 +147,7 @@ client
147147
});
148148

149149
// callbacks.
150-
client.listMicrosoftTeamsConfiguredTeams(params, (err, data) => {
150+
client.listTagsForResource(params, (err, data) => {
151151
// process err and data.
152152
});
153153
```
@@ -354,6 +354,30 @@ ListMicrosoftTeamsUserIdentities
354354

355355
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/ListMicrosoftTeamsUserIdentitiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/ListMicrosoftTeamsUserIdentitiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/ListMicrosoftTeamsUserIdentitiesCommandOutput/)
356356

357+
</details>
358+
<details>
359+
<summary>
360+
ListTagsForResource
361+
</summary>
362+
363+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/ListTagsForResourceCommandOutput/)
364+
365+
</details>
366+
<details>
367+
<summary>
368+
TagResource
369+
</summary>
370+
371+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/TagResourceCommandOutput/)
372+
373+
</details>
374+
<details>
375+
<summary>
376+
UntagResource
377+
</summary>
378+
379+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/chatbot/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-chatbot/Interface/UntagResourceCommandOutput/)
380+
357381
</details>
358382
<details>
359383
<summary>

clients/client-chatbot/src/Chatbot.ts

+53
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,17 @@ import {
9898
ListMicrosoftTeamsUserIdentitiesCommandInput,
9999
ListMicrosoftTeamsUserIdentitiesCommandOutput,
100100
} from "./commands/ListMicrosoftTeamsUserIdentitiesCommand";
101+
import {
102+
ListTagsForResourceCommand,
103+
ListTagsForResourceCommandInput,
104+
ListTagsForResourceCommandOutput,
105+
} from "./commands/ListTagsForResourceCommand";
106+
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
107+
import {
108+
UntagResourceCommand,
109+
UntagResourceCommandInput,
110+
UntagResourceCommandOutput,
111+
} from "./commands/UntagResourceCommand";
101112
import {
102113
UpdateAccountPreferencesCommand,
103114
UpdateAccountPreferencesCommandInput,
@@ -139,6 +150,9 @@ const commands = {
139150
ListMicrosoftTeamsChannelConfigurationsCommand,
140151
ListMicrosoftTeamsConfiguredTeamsCommand,
141152
ListMicrosoftTeamsUserIdentitiesCommand,
153+
ListTagsForResourceCommand,
154+
TagResourceCommand,
155+
UntagResourceCommand,
142156
UpdateAccountPreferencesCommand,
143157
UpdateChimeWebhookConfigurationCommand,
144158
UpdateMicrosoftTeamsChannelConfigurationCommand,
@@ -477,6 +491,45 @@ export interface Chatbot {
477491
cb: (err: any, data?: ListMicrosoftTeamsUserIdentitiesCommandOutput) => void
478492
): void;
479493

494+
/**
495+
* @see {@link ListTagsForResourceCommand}
496+
*/
497+
listTagsForResource(
498+
args: ListTagsForResourceCommandInput,
499+
options?: __HttpHandlerOptions
500+
): Promise<ListTagsForResourceCommandOutput>;
501+
listTagsForResource(
502+
args: ListTagsForResourceCommandInput,
503+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
504+
): void;
505+
listTagsForResource(
506+
args: ListTagsForResourceCommandInput,
507+
options: __HttpHandlerOptions,
508+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
509+
): void;
510+
511+
/**
512+
* @see {@link TagResourceCommand}
513+
*/
514+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
515+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
516+
tagResource(
517+
args: TagResourceCommandInput,
518+
options: __HttpHandlerOptions,
519+
cb: (err: any, data?: TagResourceCommandOutput) => void
520+
): void;
521+
522+
/**
523+
* @see {@link UntagResourceCommand}
524+
*/
525+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
526+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
527+
untagResource(
528+
args: UntagResourceCommandInput,
529+
options: __HttpHandlerOptions,
530+
cb: (err: any, data?: UntagResourceCommandOutput) => void
531+
): void;
532+
480533
/**
481534
* @see {@link UpdateAccountPreferencesCommand}
482535
*/

clients/client-chatbot/src/ChatbotClient.ts

+12
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ import {
129129
ListMicrosoftTeamsUserIdentitiesCommandInput,
130130
ListMicrosoftTeamsUserIdentitiesCommandOutput,
131131
} from "./commands/ListMicrosoftTeamsUserIdentitiesCommand";
132+
import {
133+
ListTagsForResourceCommandInput,
134+
ListTagsForResourceCommandOutput,
135+
} from "./commands/ListTagsForResourceCommand";
136+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
137+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
132138
import {
133139
UpdateAccountPreferencesCommandInput,
134140
UpdateAccountPreferencesCommandOutput,
@@ -179,6 +185,9 @@ export type ServiceInputTypes =
179185
| ListMicrosoftTeamsChannelConfigurationsCommandInput
180186
| ListMicrosoftTeamsConfiguredTeamsCommandInput
181187
| ListMicrosoftTeamsUserIdentitiesCommandInput
188+
| ListTagsForResourceCommandInput
189+
| TagResourceCommandInput
190+
| UntagResourceCommandInput
182191
| UpdateAccountPreferencesCommandInput
183192
| UpdateChimeWebhookConfigurationCommandInput
184193
| UpdateMicrosoftTeamsChannelConfigurationCommandInput
@@ -207,6 +216,9 @@ export type ServiceOutputTypes =
207216
| ListMicrosoftTeamsChannelConfigurationsCommandOutput
208217
| ListMicrosoftTeamsConfiguredTeamsCommandOutput
209218
| ListMicrosoftTeamsUserIdentitiesCommandOutput
219+
| ListTagsForResourceCommandOutput
220+
| TagResourceCommandOutput
221+
| UntagResourceCommandOutput
210222
| UpdateAccountPreferencesCommandOutput
211223
| UpdateChimeWebhookConfigurationCommandOutput
212224
| UpdateMicrosoftTeamsChannelConfigurationCommandOutput

clients/client-chatbot/src/commands/CreateChimeWebhookConfigurationCommand.ts

+12
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ export interface CreateChimeWebhookConfigurationCommandOutput
4848
* IamRoleArn: "STRING_VALUE", // required
4949
* ConfigurationName: "STRING_VALUE", // required
5050
* LoggingLevel: "STRING_VALUE",
51+
* Tags: [ // Tags
52+
* { // Tag
53+
* TagKey: "STRING_VALUE", // required
54+
* TagValue: "STRING_VALUE", // required
55+
* },
56+
* ],
5157
* };
5258
* const command = new CreateChimeWebhookConfigurationCommand(input);
5359
* const response = await client.send(command);
@@ -61,6 +67,12 @@ export interface CreateChimeWebhookConfigurationCommandOutput
6167
* // ],
6268
* // ConfigurationName: "STRING_VALUE",
6369
* // LoggingLevel: "STRING_VALUE",
70+
* // Tags: [ // Tags
71+
* // { // Tag
72+
* // TagKey: "STRING_VALUE", // required
73+
* // TagValue: "STRING_VALUE", // required
74+
* // },
75+
* // ],
6476
* // },
6577
* // };
6678
*

clients/client-chatbot/src/commands/CreateMicrosoftTeamsChannelConfigurationCommand.ts

+12
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ export interface CreateMicrosoftTeamsChannelConfigurationCommandOutput
5555
* "STRING_VALUE",
5656
* ],
5757
* UserAuthorizationRequired: true || false,
58+
* Tags: [ // Tags
59+
* { // Tag
60+
* TagKey: "STRING_VALUE", // required
61+
* TagValue: "STRING_VALUE", // required
62+
* },
63+
* ],
5864
* };
5965
* const command = new CreateMicrosoftTeamsChannelConfigurationCommand(input);
6066
* const response = await client.send(command);
@@ -76,6 +82,12 @@ export interface CreateMicrosoftTeamsChannelConfigurationCommandOutput
7682
* // "STRING_VALUE",
7783
* // ],
7884
* // UserAuthorizationRequired: true || false,
85+
* // Tags: [ // Tags
86+
* // { // Tag
87+
* // TagKey: "STRING_VALUE", // required
88+
* // TagValue: "STRING_VALUE", // required
89+
* // },
90+
* // ],
7991
* // },
8092
* // };
8193
*

clients/client-chatbot/src/commands/CreateSlackChannelConfigurationCommand.ts

+12
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ export interface CreateSlackChannelConfigurationCommandOutput
5353
* "STRING_VALUE",
5454
* ],
5555
* UserAuthorizationRequired: true || false,
56+
* Tags: [ // Tags
57+
* { // Tag
58+
* TagKey: "STRING_VALUE", // required
59+
* TagValue: "STRING_VALUE", // required
60+
* },
61+
* ],
5662
* };
5763
* const command = new CreateSlackChannelConfigurationCommand(input);
5864
* const response = await client.send(command);
@@ -73,6 +79,12 @@ export interface CreateSlackChannelConfigurationCommandOutput
7379
* // "STRING_VALUE",
7480
* // ],
7581
* // UserAuthorizationRequired: true || false,
82+
* // Tags: [ // Tags
83+
* // { // Tag
84+
* // TagKey: "STRING_VALUE", // required
85+
* // TagValue: "STRING_VALUE", // required
86+
* // },
87+
* // ],
7688
* // },
7789
* // };
7890
*

clients/client-chatbot/src/commands/DescribeChimeWebhookConfigurationsCommand.ts

+6
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ export interface DescribeChimeWebhookConfigurationsCommandOutput
6161
* // ],
6262
* // ConfigurationName: "STRING_VALUE",
6363
* // LoggingLevel: "STRING_VALUE",
64+
* // Tags: [ // Tags
65+
* // { // Tag
66+
* // TagKey: "STRING_VALUE", // required
67+
* // TagValue: "STRING_VALUE", // required
68+
* // },
69+
* // ],
6470
* // },
6571
* // ],
6672
* // };

clients/client-chatbot/src/commands/DescribeSlackChannelConfigurationsCommand.ts

+6
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ export interface DescribeSlackChannelConfigurationsCommandOutput
6868
* // "STRING_VALUE",
6969
* // ],
7070
* // UserAuthorizationRequired: true || false,
71+
* // Tags: [ // Tags
72+
* // { // Tag
73+
* // TagKey: "STRING_VALUE", // required
74+
* // TagValue: "STRING_VALUE", // required
75+
* // },
76+
* // ],
7177
* // },
7278
* // ],
7379
* // };

clients/client-chatbot/src/commands/GetMicrosoftTeamsChannelConfigurationCommand.ts

+6
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ export interface GetMicrosoftTeamsChannelConfigurationCommandOutput
6262
* // "STRING_VALUE",
6363
* // ],
6464
* // UserAuthorizationRequired: true || false,
65+
* // Tags: [ // Tags
66+
* // { // Tag
67+
* // TagKey: "STRING_VALUE", // required
68+
* // TagValue: "STRING_VALUE", // required
69+
* // },
70+
* // ],
6571
* // },
6672
* // };
6773
*

clients/client-chatbot/src/commands/ListMicrosoftTeamsChannelConfigurationsCommand.ts

+6
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ export interface ListMicrosoftTeamsChannelConfigurationsCommandOutput
6666
* // "STRING_VALUE",
6767
* // ],
6868
* // UserAuthorizationRequired: true || false,
69+
* // Tags: [ // Tags
70+
* // { // Tag
71+
* // TagKey: "STRING_VALUE", // required
72+
* // TagValue: "STRING_VALUE", // required
73+
* // },
74+
* // ],
6975
* // },
7076
* // ],
7177
* // };

0 commit comments

Comments
 (0)