Skip to content

Commit

Permalink
feat(client-connect): This release adds APIs to provision agents that…
Browse files Browse the repository at this point in the history
… are global / available in multiple AWS regions and distribute them across these regions by percentage.
  • Loading branch information
awstools committed Aug 10, 2023
1 parent f80ac69 commit cda89d3
Show file tree
Hide file tree
Showing 27 changed files with 2,215 additions and 557 deletions.
24 changes: 24 additions & 0 deletions clients/client-connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,14 @@ AssociateSecurityKey

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/associatesecuritykeycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/associatesecuritykeycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/associatesecuritykeycommandoutput.html)

</details>
<details>
<summary>
AssociateTrafficDistributionGroupUser
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/associatetrafficdistributiongroupusercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/associatetrafficdistributiongroupusercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/associatetrafficdistributiongroupusercommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -876,6 +884,14 @@ DisassociateSecurityKey

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/disassociatesecuritykeycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/disassociatesecuritykeycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/disassociatesecuritykeycommandoutput.html)

</details>
<details>
<summary>
DisassociateTrafficDistributionGroupUser
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/disassociatetrafficdistributiongroupusercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/disassociatetrafficdistributiongroupusercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/disassociatetrafficdistributiongroupusercommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -1212,6 +1228,14 @@ ListTrafficDistributionGroups

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/listtrafficdistributiongroupscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/listtrafficdistributiongroupscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/listtrafficdistributiongroupscommandoutput.html)

</details>
<details>
<summary>
ListTrafficDistributionGroupUsers
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/classes/listtrafficdistributiongroupuserscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/listtrafficdistributiongroupuserscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connect/interfaces/listtrafficdistributiongroupuserscommandoutput.html)

</details>
<details>
<summary>
Expand Down
69 changes: 69 additions & 0 deletions clients/client-connect/src/Connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ import {
AssociateSecurityKeyCommandInput,
AssociateSecurityKeyCommandOutput,
} from "./commands/AssociateSecurityKeyCommand";
import {
AssociateTrafficDistributionGroupUserCommand,
AssociateTrafficDistributionGroupUserCommandInput,
AssociateTrafficDistributionGroupUserCommandOutput,
} from "./commands/AssociateTrafficDistributionGroupUserCommand";
import {
ClaimPhoneNumberCommand,
ClaimPhoneNumberCommandInput,
Expand Down Expand Up @@ -393,6 +398,11 @@ import {
DisassociateSecurityKeyCommandInput,
DisassociateSecurityKeyCommandOutput,
} from "./commands/DisassociateSecurityKeyCommand";
import {
DisassociateTrafficDistributionGroupUserCommand,
DisassociateTrafficDistributionGroupUserCommandInput,
DisassociateTrafficDistributionGroupUserCommandOutput,
} from "./commands/DisassociateTrafficDistributionGroupUserCommand";
import {
DismissUserContactCommand,
DismissUserContactCommandInput,
Expand Down Expand Up @@ -583,6 +593,11 @@ import {
ListTrafficDistributionGroupsCommandInput,
ListTrafficDistributionGroupsCommandOutput,
} from "./commands/ListTrafficDistributionGroupsCommand";
import {
ListTrafficDistributionGroupUsersCommand,
ListTrafficDistributionGroupUsersCommandInput,
ListTrafficDistributionGroupUsersCommandOutput,
} from "./commands/ListTrafficDistributionGroupUsersCommand";
import {
ListUseCasesCommand,
ListUseCasesCommandInput,
Expand Down Expand Up @@ -937,6 +952,7 @@ const commands = {
AssociateQueueQuickConnectsCommand,
AssociateRoutingProfileQueuesCommand,
AssociateSecurityKeyCommand,
AssociateTrafficDistributionGroupUserCommand,
ClaimPhoneNumberCommand,
CreateAgentStatusCommand,
CreateContactFlowCommand,
Expand Down Expand Up @@ -1009,6 +1025,7 @@ const commands = {
DisassociateQueueQuickConnectsCommand,
DisassociateRoutingProfileQueuesCommand,
DisassociateSecurityKeyCommand,
DisassociateTrafficDistributionGroupUserCommand,
DismissUserContactCommand,
GetContactAttributesCommand,
GetCurrentMetricDataCommand,
Expand Down Expand Up @@ -1051,6 +1068,7 @@ const commands = {
ListTagsForResourceCommand,
ListTaskTemplatesCommand,
ListTrafficDistributionGroupsCommand,
ListTrafficDistributionGroupUsersCommand,
ListUseCasesCommand,
ListUserHierarchyGroupsCommand,
ListUsersCommand,
Expand Down Expand Up @@ -1304,6 +1322,23 @@ export interface Connect {
cb: (err: any, data?: AssociateSecurityKeyCommandOutput) => void
): void;

/**
* @see {@link AssociateTrafficDistributionGroupUserCommand}
*/
associateTrafficDistributionGroupUser(
args: AssociateTrafficDistributionGroupUserCommandInput,
options?: __HttpHandlerOptions
): Promise<AssociateTrafficDistributionGroupUserCommandOutput>;
associateTrafficDistributionGroupUser(
args: AssociateTrafficDistributionGroupUserCommandInput,
cb: (err: any, data?: AssociateTrafficDistributionGroupUserCommandOutput) => void
): void;
associateTrafficDistributionGroupUser(
args: AssociateTrafficDistributionGroupUserCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: AssociateTrafficDistributionGroupUserCommandOutput) => void
): void;

/**
* @see {@link ClaimPhoneNumberCommand}
*/
Expand Down Expand Up @@ -2435,6 +2470,23 @@ export interface Connect {
cb: (err: any, data?: DisassociateSecurityKeyCommandOutput) => void
): void;

/**
* @see {@link DisassociateTrafficDistributionGroupUserCommand}
*/
disassociateTrafficDistributionGroupUser(
args: DisassociateTrafficDistributionGroupUserCommandInput,
options?: __HttpHandlerOptions
): Promise<DisassociateTrafficDistributionGroupUserCommandOutput>;
disassociateTrafficDistributionGroupUser(
args: DisassociateTrafficDistributionGroupUserCommandInput,
cb: (err: any, data?: DisassociateTrafficDistributionGroupUserCommandOutput) => void
): void;
disassociateTrafficDistributionGroupUser(
args: DisassociateTrafficDistributionGroupUserCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DisassociateTrafficDistributionGroupUserCommandOutput) => void
): void;

/**
* @see {@link DismissUserContactCommand}
*/
Expand Down Expand Up @@ -3095,6 +3147,23 @@ export interface Connect {
cb: (err: any, data?: ListTrafficDistributionGroupsCommandOutput) => void
): void;

/**
* @see {@link ListTrafficDistributionGroupUsersCommand}
*/
listTrafficDistributionGroupUsers(
args: ListTrafficDistributionGroupUsersCommandInput,
options?: __HttpHandlerOptions
): Promise<ListTrafficDistributionGroupUsersCommandOutput>;
listTrafficDistributionGroupUsers(
args: ListTrafficDistributionGroupUsersCommandInput,
cb: (err: any, data?: ListTrafficDistributionGroupUsersCommandOutput) => void
): void;
listTrafficDistributionGroupUsers(
args: ListTrafficDistributionGroupUsersCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListTrafficDistributionGroupUsersCommandOutput) => void
): void;

/**
* @see {@link ListUseCasesCommand}
*/
Expand Down
18 changes: 18 additions & 0 deletions clients/client-connect/src/ConnectClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ import {
AssociateSecurityKeyCommandInput,
AssociateSecurityKeyCommandOutput,
} from "./commands/AssociateSecurityKeyCommand";
import {
AssociateTrafficDistributionGroupUserCommandInput,
AssociateTrafficDistributionGroupUserCommandOutput,
} from "./commands/AssociateTrafficDistributionGroupUserCommand";
import { ClaimPhoneNumberCommandInput, ClaimPhoneNumberCommandOutput } from "./commands/ClaimPhoneNumberCommand";
import { CreateAgentStatusCommandInput, CreateAgentStatusCommandOutput } from "./commands/CreateAgentStatusCommand";
import { CreateContactFlowCommandInput, CreateContactFlowCommandOutput } from "./commands/CreateContactFlowCommand";
Expand Down Expand Up @@ -280,6 +284,10 @@ import {
DisassociateSecurityKeyCommandInput,
DisassociateSecurityKeyCommandOutput,
} from "./commands/DisassociateSecurityKeyCommand";
import {
DisassociateTrafficDistributionGroupUserCommandInput,
DisassociateTrafficDistributionGroupUserCommandOutput,
} from "./commands/DisassociateTrafficDistributionGroupUserCommand";
import { DismissUserContactCommandInput, DismissUserContactCommandOutput } from "./commands/DismissUserContactCommand";
import {
GetContactAttributesCommandInput,
Expand Down Expand Up @@ -388,6 +396,10 @@ import {
ListTrafficDistributionGroupsCommandInput,
ListTrafficDistributionGroupsCommandOutput,
} from "./commands/ListTrafficDistributionGroupsCommand";
import {
ListTrafficDistributionGroupUsersCommandInput,
ListTrafficDistributionGroupUsersCommandOutput,
} from "./commands/ListTrafficDistributionGroupUsersCommand";
import { ListUseCasesCommandInput, ListUseCasesCommandOutput } from "./commands/ListUseCasesCommand";
import {
ListUserHierarchyGroupsCommandInput,
Expand Down Expand Up @@ -626,6 +638,7 @@ export type ServiceInputTypes =
| AssociateQueueQuickConnectsCommandInput
| AssociateRoutingProfileQueuesCommandInput
| AssociateSecurityKeyCommandInput
| AssociateTrafficDistributionGroupUserCommandInput
| ClaimPhoneNumberCommandInput
| CreateAgentStatusCommandInput
| CreateContactFlowCommandInput
Expand Down Expand Up @@ -698,6 +711,7 @@ export type ServiceInputTypes =
| DisassociateQueueQuickConnectsCommandInput
| DisassociateRoutingProfileQueuesCommandInput
| DisassociateSecurityKeyCommandInput
| DisassociateTrafficDistributionGroupUserCommandInput
| DismissUserContactCommandInput
| GetContactAttributesCommandInput
| GetCurrentMetricDataCommandInput
Expand Down Expand Up @@ -739,6 +753,7 @@ export type ServiceInputTypes =
| ListSecurityProfilesCommandInput
| ListTagsForResourceCommandInput
| ListTaskTemplatesCommandInput
| ListTrafficDistributionGroupUsersCommandInput
| ListTrafficDistributionGroupsCommandInput
| ListUseCasesCommandInput
| ListUserHierarchyGroupsCommandInput
Expand Down Expand Up @@ -828,6 +843,7 @@ export type ServiceOutputTypes =
| AssociateQueueQuickConnectsCommandOutput
| AssociateRoutingProfileQueuesCommandOutput
| AssociateSecurityKeyCommandOutput
| AssociateTrafficDistributionGroupUserCommandOutput
| ClaimPhoneNumberCommandOutput
| CreateAgentStatusCommandOutput
| CreateContactFlowCommandOutput
Expand Down Expand Up @@ -900,6 +916,7 @@ export type ServiceOutputTypes =
| DisassociateQueueQuickConnectsCommandOutput
| DisassociateRoutingProfileQueuesCommandOutput
| DisassociateSecurityKeyCommandOutput
| DisassociateTrafficDistributionGroupUserCommandOutput
| DismissUserContactCommandOutput
| GetContactAttributesCommandOutput
| GetCurrentMetricDataCommandOutput
Expand Down Expand Up @@ -941,6 +958,7 @@ export type ServiceOutputTypes =
| ListSecurityProfilesCommandOutput
| ListTagsForResourceCommandOutput
| ListTaskTemplatesCommandOutput
| ListTrafficDistributionGroupUsersCommandOutput
| ListTrafficDistributionGroupsCommandOutput
| ListUseCasesCommandOutput
| ListUserHierarchyGroupsCommandOutput
Expand Down
Loading

0 comments on commit cda89d3

Please sign in to comment.