Skip to content

Commit da3e816

Browse files
author
awstools
committed
feat(client-connectcases): This feature provides capabilities to help track and meet service level agreements (SLAs) on cases programmatically. It allows configuring a new related item of type Sla on a case using CreateRelatedItem API and provides the ability to search for this new related item using SearchRelatedItems API.
1 parent 96681c6 commit da3e816

11 files changed

+7415
-6674
lines changed

clients/client-connectcases/src/commands/CreateCaseCommand.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export interface CreateCaseCommandOutput extends CreateCaseResponse, __MetadataB
3434
* <p>Creates a case in the specified Cases domain. Case system and custom fields are taken
3535
* as an array id/value pairs with a declared data types.</p>
3636
* <p>The following fields are required when creating a case:</p>
37-
*
3837
* <ul>
3938
* <li>
4039
* <p>

clients/client-connectcases/src/commands/CreateDomainCommand.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad
3737
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_CreateIntegrationAssociation.html">CreateIntegrationAssociation</a> API. You need specific IAM
3838
* permissions to successfully associate the Cases domain. For more information, see
3939
* <a href="https://docs.aws.amazon.com/connect/latest/adminguide/required-permissions-iam-cases.html#onboard-cases-iam">Onboard to Cases</a>.</p>
40-
*
4140
* </important>
4241
* @example
4342
* Use a bare-bones client and the command you need to make an API call.

clients/client-connectcases/src/commands/CreateRelatedItemCommand.ts

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { ConnectCasesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectCasesClient";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { CreateRelatedItemRequest, CreateRelatedItemResponse } from "../models/models_0";
9+
import {
10+
CreateRelatedItemRequest,
11+
CreateRelatedItemRequestFilterSensitiveLog,
12+
CreateRelatedItemResponse,
13+
} from "../models/models_0";
1014
import { de_CreateRelatedItemCommand, se_CreateRelatedItemCommand } from "../protocols/Aws_restJson1";
1115

1216
/**
@@ -69,6 +73,23 @@ export interface CreateRelatedItemCommandOutput extends CreateRelatedItemRespons
6973
* file: { // FileContent
7074
* fileArn: "STRING_VALUE", // required
7175
* },
76+
* sla: { // SlaInputContent Union: only one key present
77+
* slaInputConfiguration: { // SlaInputConfiguration
78+
* name: "STRING_VALUE", // required
79+
* type: "STRING_VALUE", // required
80+
* fieldId: "STRING_VALUE",
81+
* targetFieldValues: [ // SlaFieldValueUnionList
82+
* { // FieldValueUnion Union: only one key present
83+
* stringValue: "STRING_VALUE",
84+
* doubleValue: Number("double"),
85+
* booleanValue: true || false,
86+
* emptyValue: {},
87+
* userArnValue: "STRING_VALUE",
88+
* },
89+
* ],
90+
* targetSlaMinutes: Number("long"), // required
91+
* },
92+
* },
7293
* },
7394
* performedBy: { // UserUnion Union: only one key present
7495
* userArn: "STRING_VALUE",
@@ -133,7 +154,7 @@ export class CreateRelatedItemCommand extends $Command
133154
})
134155
.s("AmazonConnectCases", "CreateRelatedItem", {})
135156
.n("ConnectCasesClient", "CreateRelatedItemCommand")
136-
.f(void 0, void 0)
157+
.f(CreateRelatedItemRequestFilterSensitiveLog, void 0)
137158
.ser(se_CreateRelatedItemCommand)
138159
.de(de_CreateRelatedItemCommand)
139160
.build() {

clients/client-connectcases/src/commands/DeleteDomainCommand.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export interface DeleteDomainCommandOutput extends DeleteDomainResponse, __Metad
2929

3030
/**
3131
* <p>Deletes a Cases domain.</p>
32-
*
3332
* <note>
3433
* <p>After deleting your domain you must disassociate the deleted domain from your Amazon Connect instance with another API call before being able to use Cases again with this
3534
* Amazon Connect instance. See <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DeleteIntegrationAssociation.html">DeleteIntegrationAssociation</a>.</p>

clients/client-connectcases/src/commands/DeleteLayoutCommand.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export interface DeleteLayoutCommandOutput extends DeleteLayoutResponse, __Metad
3030
/**
3131
* <p>Deletes a layout from a cases template. You can delete up to 100 layouts per
3232
* domain.</p>
33-
*
3433
* <p>After a layout is deleted:</p>
3534
* <ul>
3635
* <li>

clients/client-connectcases/src/commands/DeleteTemplateCommand.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export interface DeleteTemplateCommandOutput extends DeleteTemplateResponse, __M
2929

3030
/**
3131
* <p>Deletes a cases template. You can delete up to 100 templates per domain.</p>
32-
*
3332
* <p>After a cases template is deleted:</p>
3433
* <ul>
3534
* <li>

clients/client-connectcases/src/commands/PutCaseEventConfigurationCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ export interface PutCaseEventConfigurationCommandOutput extends PutCaseEventConf
7171
* @throws {@link AccessDeniedException} (client fault)
7272
* <p>You do not have sufficient access to perform this action.</p>
7373
*
74+
* @throws {@link ConflictException} (client fault)
75+
* <p>The requested operation would cause a conflict with the current state of a service
76+
* resource associated with the request. Resolve the conflict before retrying this request. See
77+
* the accompanying error message for details.</p>
78+
*
7479
* @throws {@link InternalServerException} (server fault)
7580
* <p>We couldn't process your request because of an issue with the server. Try again
7681
* later.</p>

clients/client-connectcases/src/commands/SearchRelatedItemsCommand.ts

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { ConnectCasesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectCasesClient";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { SearchRelatedItemsRequest, SearchRelatedItemsResponse } from "../models/models_0";
9+
import {
10+
SearchRelatedItemsRequest,
11+
SearchRelatedItemsRequestFilterSensitiveLog,
12+
SearchRelatedItemsResponse,
13+
SearchRelatedItemsResponseFilterSensitiveLog,
14+
} from "../models/models_0";
1015
import { de_SearchRelatedItemsCommand, se_SearchRelatedItemsCommand } from "../protocols/Aws_restJson1";
1116

1217
/**
@@ -56,6 +61,10 @@ export interface SearchRelatedItemsCommandOutput extends SearchRelatedItemsRespo
5661
* file: { // FileFilter
5762
* fileArn: "STRING_VALUE",
5863
* },
64+
* sla: { // SlaFilter
65+
* name: "STRING_VALUE",
66+
* status: "STRING_VALUE",
67+
* },
5968
* },
6069
* ],
6170
* };
@@ -81,6 +90,25 @@ export interface SearchRelatedItemsCommandOutput extends SearchRelatedItemsRespo
8190
* // file: { // FileContent
8291
* // fileArn: "STRING_VALUE", // required
8392
* // },
93+
* // sla: { // SlaContent
94+
* // slaConfiguration: { // SlaConfiguration
95+
* // name: "STRING_VALUE", // required
96+
* // type: "STRING_VALUE", // required
97+
* // status: "STRING_VALUE", // required
98+
* // fieldId: "STRING_VALUE",
99+
* // targetFieldValues: [ // SlaFieldValueUnionList
100+
* // { // FieldValueUnion Union: only one key present
101+
* // stringValue: "STRING_VALUE",
102+
* // doubleValue: Number("double"),
103+
* // booleanValue: true || false,
104+
* // emptyValue: {},
105+
* // userArnValue: "STRING_VALUE",
106+
* // },
107+
* // ],
108+
* // targetTime: new Date("TIMESTAMP"), // required
109+
* // completionTime: new Date("TIMESTAMP"),
110+
* // },
111+
* // },
84112
* // },
85113
* // tags: { // Tags
86114
* // "<keys>": "STRING_VALUE",
@@ -140,7 +168,7 @@ export class SearchRelatedItemsCommand extends $Command
140168
})
141169
.s("AmazonConnectCases", "SearchRelatedItems", {})
142170
.n("ConnectCasesClient", "SearchRelatedItemsCommand")
143-
.f(void 0, void 0)
171+
.f(SearchRelatedItemsRequestFilterSensitiveLog, SearchRelatedItemsResponseFilterSensitiveLog)
144172
.ser(se_SearchRelatedItemsCommand)
145173
.de(de_SearchRelatedItemsCommand)
146174
.build() {

0 commit comments

Comments
 (0)