Skip to content

Commit

Permalink
feat(client-chatbot): This change adds support for tagging Chatbot co…
Browse files Browse the repository at this point in the history
…nfigurations.
  • Loading branch information
awstools committed May 22, 2024
1 parent 0292fb4 commit 23a0082
Show file tree
Hide file tree
Showing 20 changed files with 1,203 additions and 7 deletions.
38 changes: 31 additions & 7 deletions clients/client-chatbot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,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 `ListMicrosoftTeamsConfiguredTeamsCommand`:
the commands you need, for example `ListTagsForResourceCommand`:

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

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

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

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

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

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

// callbacks.
client.listMicrosoftTeamsConfiguredTeams(params, (err, data) => {
client.listTagsForResource(params, (err, data) => {
// process err and data.
});
```
Expand Down Expand Up @@ -354,6 +354,30 @@ ListMicrosoftTeamsUserIdentities

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

</details>
<details>
<summary>
ListTagsForResource
</summary>

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

</details>
<details>
<summary>
TagResource
</summary>

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

</details>
<details>
<summary>
UntagResource
</summary>

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

</details>
<details>
<summary>
Expand Down
53 changes: 53 additions & 0 deletions clients/client-chatbot/src/Chatbot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,17 @@ import {
ListMicrosoftTeamsUserIdentitiesCommandInput,
ListMicrosoftTeamsUserIdentitiesCommandOutput,
} from "./commands/ListMicrosoftTeamsUserIdentitiesCommand";
import {
ListTagsForResourceCommand,
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import {
UntagResourceCommand,
UntagResourceCommandInput,
UntagResourceCommandOutput,
} from "./commands/UntagResourceCommand";
import {
UpdateAccountPreferencesCommand,
UpdateAccountPreferencesCommandInput,
Expand Down Expand Up @@ -139,6 +150,9 @@ const commands = {
ListMicrosoftTeamsChannelConfigurationsCommand,
ListMicrosoftTeamsConfiguredTeamsCommand,
ListMicrosoftTeamsUserIdentitiesCommand,
ListTagsForResourceCommand,
TagResourceCommand,
UntagResourceCommand,
UpdateAccountPreferencesCommand,
UpdateChimeWebhookConfigurationCommand,
UpdateMicrosoftTeamsChannelConfigurationCommand,
Expand Down Expand Up @@ -477,6 +491,45 @@ export interface Chatbot {
cb: (err: any, data?: ListMicrosoftTeamsUserIdentitiesCommandOutput) => void
): void;

/**
* @see {@link ListTagsForResourceCommand}
*/
listTagsForResource(
args: ListTagsForResourceCommandInput,
options?: __HttpHandlerOptions
): Promise<ListTagsForResourceCommandOutput>;
listTagsForResource(
args: ListTagsForResourceCommandInput,
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
): void;
listTagsForResource(
args: ListTagsForResourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
): void;

/**
* @see {@link TagResourceCommand}
*/
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
tagResource(
args: TagResourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: TagResourceCommandOutput) => void
): void;

/**
* @see {@link UntagResourceCommand}
*/
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
untagResource(
args: UntagResourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UntagResourceCommandOutput) => void
): void;

/**
* @see {@link UpdateAccountPreferencesCommand}
*/
Expand Down
12 changes: 12 additions & 0 deletions clients/client-chatbot/src/ChatbotClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ import {
ListMicrosoftTeamsUserIdentitiesCommandInput,
ListMicrosoftTeamsUserIdentitiesCommandOutput,
} from "./commands/ListMicrosoftTeamsUserIdentitiesCommand";
import {
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
import {
UpdateAccountPreferencesCommandInput,
UpdateAccountPreferencesCommandOutput,
Expand Down Expand Up @@ -179,6 +185,9 @@ export type ServiceInputTypes =
| ListMicrosoftTeamsChannelConfigurationsCommandInput
| ListMicrosoftTeamsConfiguredTeamsCommandInput
| ListMicrosoftTeamsUserIdentitiesCommandInput
| ListTagsForResourceCommandInput
| TagResourceCommandInput
| UntagResourceCommandInput
| UpdateAccountPreferencesCommandInput
| UpdateChimeWebhookConfigurationCommandInput
| UpdateMicrosoftTeamsChannelConfigurationCommandInput
Expand Down Expand Up @@ -207,6 +216,9 @@ export type ServiceOutputTypes =
| ListMicrosoftTeamsChannelConfigurationsCommandOutput
| ListMicrosoftTeamsConfiguredTeamsCommandOutput
| ListMicrosoftTeamsUserIdentitiesCommandOutput
| ListTagsForResourceCommandOutput
| TagResourceCommandOutput
| UntagResourceCommandOutput
| UpdateAccountPreferencesCommandOutput
| UpdateChimeWebhookConfigurationCommandOutput
| UpdateMicrosoftTeamsChannelConfigurationCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ export interface CreateChimeWebhookConfigurationCommandOutput
* IamRoleArn: "STRING_VALUE", // required
* ConfigurationName: "STRING_VALUE", // required
* LoggingLevel: "STRING_VALUE",
* Tags: [ // Tags
* { // Tag
* TagKey: "STRING_VALUE", // required
* TagValue: "STRING_VALUE", // required
* },
* ],
* };
* const command = new CreateChimeWebhookConfigurationCommand(input);
* const response = await client.send(command);
Expand All @@ -61,6 +67,12 @@ export interface CreateChimeWebhookConfigurationCommandOutput
* // ],
* // ConfigurationName: "STRING_VALUE",
* // LoggingLevel: "STRING_VALUE",
* // Tags: [ // Tags
* // { // Tag
* // TagKey: "STRING_VALUE", // required
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ export interface CreateMicrosoftTeamsChannelConfigurationCommandOutput
* "STRING_VALUE",
* ],
* UserAuthorizationRequired: true || false,
* Tags: [ // Tags
* { // Tag
* TagKey: "STRING_VALUE", // required
* TagValue: "STRING_VALUE", // required
* },
* ],
* };
* const command = new CreateMicrosoftTeamsChannelConfigurationCommand(input);
* const response = await client.send(command);
Expand All @@ -76,6 +82,12 @@ export interface CreateMicrosoftTeamsChannelConfigurationCommandOutput
* // "STRING_VALUE",
* // ],
* // UserAuthorizationRequired: true || false,
* // Tags: [ // Tags
* // { // Tag
* // TagKey: "STRING_VALUE", // required
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ export interface CreateSlackChannelConfigurationCommandOutput
* "STRING_VALUE",
* ],
* UserAuthorizationRequired: true || false,
* Tags: [ // Tags
* { // Tag
* TagKey: "STRING_VALUE", // required
* TagValue: "STRING_VALUE", // required
* },
* ],
* };
* const command = new CreateSlackChannelConfigurationCommand(input);
* const response = await client.send(command);
Expand All @@ -73,6 +79,12 @@ export interface CreateSlackChannelConfigurationCommandOutput
* // "STRING_VALUE",
* // ],
* // UserAuthorizationRequired: true || false,
* // Tags: [ // Tags
* // { // Tag
* // TagKey: "STRING_VALUE", // required
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ export interface DescribeChimeWebhookConfigurationsCommandOutput
* // ],
* // ConfigurationName: "STRING_VALUE",
* // LoggingLevel: "STRING_VALUE",
* // Tags: [ // Tags
* // { // Tag
* // TagKey: "STRING_VALUE", // required
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // },
* // ],
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ export interface DescribeSlackChannelConfigurationsCommandOutput
* // "STRING_VALUE",
* // ],
* // UserAuthorizationRequired: true || false,
* // Tags: [ // Tags
* // { // Tag
* // TagKey: "STRING_VALUE", // required
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // },
* // ],
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ export interface GetMicrosoftTeamsChannelConfigurationCommandOutput
* // "STRING_VALUE",
* // ],
* // UserAuthorizationRequired: true || false,
* // Tags: [ // Tags
* // { // Tag
* // TagKey: "STRING_VALUE", // required
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ export interface ListMicrosoftTeamsChannelConfigurationsCommandOutput
* // "STRING_VALUE",
* // ],
* // UserAuthorizationRequired: true || false,
* // Tags: [ // Tags
* // { // Tag
* // TagKey: "STRING_VALUE", // required
* // TagValue: "STRING_VALUE", // required
* // },
* // ],
* // },
* // ],
* // };
Expand Down
Loading

0 comments on commit 23a0082

Please sign in to comment.