Skip to content

Commit d2612b5

Browse files
author
awstools
committed
feat(client-connect): This release adds a new API GetContactMetrics for Amazon Connect.
1 parent d47a2b8 commit d2612b5

File tree

57 files changed

+1802
-711
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1802
-711
lines changed

clients/client-connect/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,6 +1201,14 @@ GetContactAttributes
12011201

12021202
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/GetContactAttributesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/GetContactAttributesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/GetContactAttributesCommandOutput/)
12031203

1204+
</details>
1205+
<details>
1206+
<summary>
1207+
GetContactMetrics
1208+
</summary>
1209+
1210+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/GetContactMetricsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/GetContactMetricsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/GetContactMetricsCommandOutput/)
1211+
12041212
</details>
12051213
<details>
12061214
<summary>

clients/client-connect/src/Connect.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,11 @@ import {
580580
GetContactAttributesCommandInput,
581581
GetContactAttributesCommandOutput,
582582
} from "./commands/GetContactAttributesCommand";
583+
import {
584+
GetContactMetricsCommand,
585+
GetContactMetricsCommandInput,
586+
GetContactMetricsCommandOutput,
587+
} from "./commands/GetContactMetricsCommand";
583588
import {
584589
GetCurrentMetricDataCommand,
585590
GetCurrentMetricDataCommandInput,
@@ -1457,6 +1462,7 @@ const commands = {
14571462
DismissUserContactCommand,
14581463
GetAttachedFileCommand,
14591464
GetContactAttributesCommand,
1465+
GetContactMetricsCommand,
14601466
GetCurrentMetricDataCommand,
14611467
GetCurrentUserDataCommand,
14621468
GetEffectiveHoursOfOperationsCommand,
@@ -3556,6 +3562,23 @@ export interface Connect {
35563562
cb: (err: any, data?: GetContactAttributesCommandOutput) => void
35573563
): void;
35583564

3565+
/**
3566+
* @see {@link GetContactMetricsCommand}
3567+
*/
3568+
getContactMetrics(
3569+
args: GetContactMetricsCommandInput,
3570+
options?: __HttpHandlerOptions
3571+
): Promise<GetContactMetricsCommandOutput>;
3572+
getContactMetrics(
3573+
args: GetContactMetricsCommandInput,
3574+
cb: (err: any, data?: GetContactMetricsCommandOutput) => void
3575+
): void;
3576+
getContactMetrics(
3577+
args: GetContactMetricsCommandInput,
3578+
options: __HttpHandlerOptions,
3579+
cb: (err: any, data?: GetContactMetricsCommandOutput) => void
3580+
): void;
3581+
35593582
/**
35603583
* @see {@link GetCurrentMetricDataCommand}
35613584
*/

clients/client-connect/src/ConnectClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ import {
397397
GetContactAttributesCommandInput,
398398
GetContactAttributesCommandOutput,
399399
} from "./commands/GetContactAttributesCommand";
400+
import { GetContactMetricsCommandInput, GetContactMetricsCommandOutput } from "./commands/GetContactMetricsCommand";
400401
import {
401402
GetCurrentMetricDataCommandInput,
402403
GetCurrentMetricDataCommandOutput,
@@ -994,6 +995,7 @@ export type ServiceInputTypes =
994995
| DismissUserContactCommandInput
995996
| GetAttachedFileCommandInput
996997
| GetContactAttributesCommandInput
998+
| GetContactMetricsCommandInput
997999
| GetCurrentMetricDataCommandInput
9981000
| GetCurrentUserDataCommandInput
9991001
| GetEffectiveHoursOfOperationsCommandInput
@@ -1281,6 +1283,7 @@ export type ServiceOutputTypes =
12811283
| DismissUserContactCommandOutput
12821284
| GetAttachedFileCommandOutput
12831285
| GetContactAttributesCommandOutput
1286+
| GetContactMetricsCommandOutput
12841287
| GetCurrentMetricDataCommandOutput
12851288
| GetCurrentUserDataCommandOutput
12861289
| GetEffectiveHoursOfOperationsCommandOutput

clients/client-connect/src/commands/AssociateQueueQuickConnectsCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ export interface AssociateQueueQuickConnectsCommandInput extends AssociateQueueQ
3131
export interface AssociateQueueQuickConnectsCommandOutput extends __MetadataBearer {}
3232

3333
/**
34-
* <p>This API is in preview release for Amazon Connect and is subject to change.</p>
35-
* <p>Associates a set of quick connects with a queue.</p>
34+
* <p>Associates a set of quick connects with a queue.</p>
3635
* @example
3736
* Use a bare-bones client and the command you need to make an API call.
3837
* ```javascript

clients/client-connect/src/commands/CreateAgentStatusCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export interface CreateAgentStatusCommandInput extends CreateAgentStatusRequest
2828
export interface CreateAgentStatusCommandOutput extends CreateAgentStatusResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>This API is in preview release for Amazon Connect and is subject to change.</p>
32-
* <p>Creates an agent status for the specified Amazon Connect instance.</p>
31+
* <p>Creates an agent status for the specified Amazon Connect instance.</p>
3332
* @example
3433
* Use a bare-bones client and the command you need to make an API call.
3534
* ```javascript

clients/client-connect/src/commands/CreateHoursOfOperationCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export interface CreateHoursOfOperationCommandInput extends CreateHoursOfOperati
2828
export interface CreateHoursOfOperationCommandOutput extends CreateHoursOfOperationResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>This API is in preview release for Amazon Connect and is subject to change.</p>
32-
* <p>Creates hours of operation. </p>
31+
* <p>Creates hours of operation. </p>
3332
* @example
3433
* Use a bare-bones client and the command you need to make an API call.
3534
* ```javascript

clients/client-connect/src/commands/CreateHoursOfOperationOverrideCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export interface CreateHoursOfOperationOverrideCommandOutput
3434

3535
/**
3636
* <p>Creates an hours of operation override in an Amazon Connect hours of operation
37-
* resource</p>
37+
* resource.</p>
3838
* @example
3939
* Use a bare-bones client and the command you need to make an API call.
4040
* ```javascript

clients/client-connect/src/commands/CreateUserCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ export interface CreateUserCommandOutput extends CreateUserResponse, __MetadataB
3131
* <p>Creates a user account for the specified Amazon Connect instance.</p>
3232
* <important>
3333
* <p>Certain <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_UserIdentityInfo.html">UserIdentityInfo</a> parameters
34-
* are required in some situations. For example, <code>Email</code> is required if you are using
35-
* SAML for identity management. <code>FirstName</code> and <code>LastName</code> are required if
36-
* you are using Amazon Connect or SAML for identity management.</p>
34+
* are required in some situations. For example, <code>Email</code>, <code>FirstName</code> and
35+
* <code>LastName</code> are required if you are using Amazon Connect or SAML for identity
36+
* management.</p>
3737
* </important>
3838
* <p>For information about how to create users using the Amazon Connect admin website, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/user-management.html">Add Users</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
3939
* @example

clients/client-connect/src/commands/CreateViewCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ export interface CreateViewCommandOutput extends CreateViewResponse, __MetadataB
115115
* <p>The request is not valid.</p>
116116
*
117117
* @throws {@link ResourceInUseException} (client fault)
118-
* <p>That resource is already in use. Please try another.</p>
118+
* <p>That resource is already in use (for example, you're trying to add a record with the same
119+
* name as an existing record). If you are trying to delete a resource (for example,
120+
* DeleteHoursOfOperation or DeletePredefinedAttribute), remove its reference from related resources
121+
* and then try again.</p>
119122
*
120123
* @throws {@link ResourceNotFoundException} (client fault)
121124
* <p>The specified resource was not found.</p>

clients/client-connect/src/commands/CreateViewVersionCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ export interface CreateViewVersionCommandOutput extends CreateViewVersionRespons
9898
* <p>The request is not valid.</p>
9999
*
100100
* @throws {@link ResourceInUseException} (client fault)
101-
* <p>That resource is already in use. Please try another.</p>
101+
* <p>That resource is already in use (for example, you're trying to add a record with the same
102+
* name as an existing record). If you are trying to delete a resource (for example,
103+
* DeleteHoursOfOperation or DeletePredefinedAttribute), remove its reference from related resources
104+
* and then try again.</p>
102105
*
103106
* @throws {@link ResourceNotFoundException} (client fault)
104107
* <p>The specified resource was not found.</p>

0 commit comments

Comments
 (0)