@aws-sdk/client-connectcases 3.840.0 → 3.842.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +17 -19
  2. package/dist-cjs/index.js +77 -0
  3. package/dist-es/ConnectCases.js +4 -0
  4. package/dist-es/commands/DeleteCaseCommand.js +22 -0
  5. package/dist-es/commands/DeleteRelatedItemCommand.js +22 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/protocols/Aws_restJson1.js +41 -0
  8. package/dist-types/ConnectCases.d.ts +15 -19
  9. package/dist-types/ConnectCasesClient.d.ts +5 -21
  10. package/dist-types/commands/BatchGetCaseRuleCommand.d.ts +3 -7
  11. package/dist-types/commands/BatchGetFieldCommand.d.ts +2 -4
  12. package/dist-types/commands/BatchPutFieldOptionsCommand.d.ts +4 -8
  13. package/dist-types/commands/CreateCaseCommand.d.ts +4 -27
  14. package/dist-types/commands/CreateCaseRuleCommand.d.ts +5 -12
  15. package/dist-types/commands/CreateDomainCommand.d.ts +4 -17
  16. package/dist-types/commands/CreateFieldCommand.d.ts +5 -11
  17. package/dist-types/commands/CreateLayoutCommand.d.ts +5 -23
  18. package/dist-types/commands/CreateRelatedItemCommand.d.ts +4 -26
  19. package/dist-types/commands/CreateTemplateCommand.d.ts +5 -38
  20. package/dist-types/commands/DeleteCaseCommand.d.ts +86 -0
  21. package/dist-types/commands/DeleteCaseRuleCommand.d.ts +4 -10
  22. package/dist-types/commands/DeleteDomainCommand.d.ts +4 -12
  23. package/dist-types/commands/DeleteFieldCommand.d.ts +5 -62
  24. package/dist-types/commands/DeleteLayoutCommand.d.ts +4 -22
  25. package/dist-types/commands/DeleteRelatedItemCommand.d.ts +87 -0
  26. package/dist-types/commands/DeleteTemplateCommand.d.ts +4 -23
  27. package/dist-types/commands/GetCaseAuditEventsCommand.d.ts +2 -4
  28. package/dist-types/commands/GetCaseCommand.d.ts +2 -4
  29. package/dist-types/commands/GetCaseEventConfigurationCommand.d.ts +2 -4
  30. package/dist-types/commands/GetDomainCommand.d.ts +2 -4
  31. package/dist-types/commands/GetLayoutCommand.d.ts +2 -4
  32. package/dist-types/commands/GetTemplateCommand.d.ts +3 -27
  33. package/dist-types/commands/ListCaseRulesCommand.d.ts +3 -7
  34. package/dist-types/commands/ListCasesForContactCommand.d.ts +2 -4
  35. package/dist-types/commands/ListDomainsCommand.d.ts +2 -4
  36. package/dist-types/commands/ListFieldOptionsCommand.d.ts +2 -4
  37. package/dist-types/commands/ListFieldsCommand.d.ts +2 -4
  38. package/dist-types/commands/ListLayoutsCommand.d.ts +3 -6
  39. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -4
  40. package/dist-types/commands/ListTemplatesCommand.d.ts +3 -29
  41. package/dist-types/commands/PutCaseEventConfigurationCommand.d.ts +4 -11
  42. package/dist-types/commands/SearchCasesCommand.d.ts +3 -11
  43. package/dist-types/commands/SearchRelatedItemsCommand.d.ts +3 -9
  44. package/dist-types/commands/TagResourceCommand.d.ts +2 -4
  45. package/dist-types/commands/UntagResourceCommand.d.ts +2 -4
  46. package/dist-types/commands/UpdateCaseCommand.d.ts +3 -11
  47. package/dist-types/commands/UpdateCaseRuleCommand.d.ts +4 -10
  48. package/dist-types/commands/UpdateFieldCommand.d.ts +3 -7
  49. package/dist-types/commands/UpdateLayoutCommand.d.ts +5 -18
  50. package/dist-types/commands/UpdateTemplateCommand.d.ts +4 -35
  51. package/dist-types/commands/index.d.ts +2 -0
  52. package/dist-types/index.d.ts +1 -19
  53. package/dist-types/models/models_0.d.ts +107 -159
  54. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  55. package/dist-types/ts3.4/ConnectCases.d.ts +34 -0
  56. package/dist-types/ts3.4/ConnectCasesClient.d.ts +12 -0
  57. package/dist-types/ts3.4/commands/DeleteCaseCommand.d.ts +47 -0
  58. package/dist-types/ts3.4/commands/DeleteRelatedItemCommand.d.ts +51 -0
  59. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  60. package/dist-types/ts3.4/models/models_0.d.ts +11 -0
  61. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  62. package/package.json +1 -1
package/README.md CHANGED
@@ -6,25 +6,7 @@
6
6
 
7
7
  AWS SDK for JavaScript ConnectCases Client for Node.js, Browser and React Native.
8
8
 
9
- <ul>
10
- <li>
11
- <p>
12
- <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Cases.html">Cases
13
- actions</a>
14
- </p>
15
- </li>
16
- <li>
17
- <p>
18
- <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Cases.html">Cases data
19
- types</a>
20
- </p>
21
- </li>
22
- </ul>
23
- <p>With Amazon Connect Cases, your agents can track and manage customer issues that require
24
- multiple interactions, follow-up tasks, and teams in your contact center. A case represents a
25
- customer issue. It records the issue, the steps and interactions taken to resolve the issue,
26
- and the outcome. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/cases.html">Amazon Connect Cases</a> in the
27
- <i>Amazon Connect Administrator Guide</i>.</p>
9
+ <ul> <li> <p> <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Cases.html">Cases actions</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Cases.html">Cases data types</a> </p> </li> </ul> <p>With Amazon Connect Cases, your agents can track and manage customer issues that require multiple interactions, follow-up tasks, and teams in your contact center. A case represents a customer issue. It records the issue, the steps and interactions taken to resolve the issue, and the outcome. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/cases.html">Amazon Connect Cases</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
28
10
 
29
11
  ## Installing
30
12
 
@@ -300,6 +282,14 @@ CreateTemplate
300
282
 
301
283
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/CreateTemplateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/CreateTemplateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/CreateTemplateCommandOutput/)
302
284
 
285
+ </details>
286
+ <details>
287
+ <summary>
288
+ DeleteCase
289
+ </summary>
290
+
291
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/DeleteCaseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteCaseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteCaseCommandOutput/)
292
+
303
293
  </details>
304
294
  <details>
305
295
  <summary>
@@ -332,6 +322,14 @@ DeleteLayout
332
322
 
333
323
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/DeleteLayoutCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteLayoutCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteLayoutCommandOutput/)
334
324
 
325
+ </details>
326
+ <details>
327
+ <summary>
328
+ DeleteRelatedItem
329
+ </summary>
330
+
331
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/DeleteRelatedItemCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteRelatedItemCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteRelatedItemCommandOutput/)
332
+
335
333
  </details>
336
334
  <details>
337
335
  <summary>
package/dist-cjs/index.js CHANGED
@@ -46,10 +46,12 @@ __export(index_exports, {
46
46
  CreateRelatedItemCommand: () => CreateRelatedItemCommand,
47
47
  CreateRelatedItemRequestFilterSensitiveLog: () => CreateRelatedItemRequestFilterSensitiveLog,
48
48
  CreateTemplateCommand: () => CreateTemplateCommand,
49
+ DeleteCaseCommand: () => DeleteCaseCommand,
49
50
  DeleteCaseRuleCommand: () => DeleteCaseRuleCommand,
50
51
  DeleteDomainCommand: () => DeleteDomainCommand,
51
52
  DeleteFieldCommand: () => DeleteFieldCommand,
52
53
  DeleteLayoutCommand: () => DeleteLayoutCommand,
54
+ DeleteRelatedItemCommand: () => DeleteRelatedItemCommand,
53
55
  DeleteTemplateCommand: () => DeleteTemplateCommand,
54
56
  DomainStatus: () => DomainStatus,
55
57
  FieldFilter: () => FieldFilter,
@@ -904,6 +906,16 @@ var se_CreateTemplateCommand = /* @__PURE__ */ __name(async (input, context) =>
904
906
  b.m("POST").h(headers).b(body);
905
907
  return b.build();
906
908
  }, "se_CreateTemplateCommand");
909
+ var se_DeleteCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
910
+ const b = (0, import_core.requestBuilder)(input, context);
911
+ const headers = {};
912
+ b.bp("/domains/{domainId}/cases/{caseId}");
913
+ b.p("domainId", () => input.domainId, "{domainId}", false);
914
+ b.p("caseId", () => input.caseId, "{caseId}", false);
915
+ let body;
916
+ b.m("DELETE").h(headers).b(body);
917
+ return b.build();
918
+ }, "se_DeleteCaseCommand");
907
919
  var se_DeleteCaseRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
908
920
  const b = (0, import_core.requestBuilder)(input, context);
909
921
  const headers = {};
@@ -943,6 +955,17 @@ var se_DeleteLayoutCommand = /* @__PURE__ */ __name(async (input, context) => {
943
955
  b.m("DELETE").h(headers).b(body);
944
956
  return b.build();
945
957
  }, "se_DeleteLayoutCommand");
958
+ var se_DeleteRelatedItemCommand = /* @__PURE__ */ __name(async (input, context) => {
959
+ const b = (0, import_core.requestBuilder)(input, context);
960
+ const headers = {};
961
+ b.bp("/domains/{domainId}/cases/{caseId}/related-items/{relatedItemId}");
962
+ b.p("domainId", () => input.domainId, "{domainId}", false);
963
+ b.p("caseId", () => input.caseId, "{caseId}", false);
964
+ b.p("relatedItemId", () => input.relatedItemId, "{relatedItemId}", false);
965
+ let body;
966
+ b.m("DELETE").h(headers).b(body);
967
+ return b.build();
968
+ }, "se_DeleteRelatedItemCommand");
946
969
  var se_DeleteTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
947
970
  const b = (0, import_core.requestBuilder)(input, context);
948
971
  const headers = {};
@@ -1463,6 +1486,16 @@ var de_CreateTemplateCommand = /* @__PURE__ */ __name(async (output, context) =>
1463
1486
  Object.assign(contents, doc);
1464
1487
  return contents;
1465
1488
  }, "de_CreateTemplateCommand");
1489
+ var de_DeleteCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1490
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1491
+ return de_CommandError(output, context);
1492
+ }
1493
+ const contents = (0, import_smithy_client.map)({
1494
+ $metadata: deserializeMetadata(output)
1495
+ });
1496
+ await (0, import_smithy_client.collectBody)(output.body, context);
1497
+ return contents;
1498
+ }, "de_DeleteCaseCommand");
1466
1499
  var de_DeleteCaseRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
1467
1500
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1468
1501
  return de_CommandError(output, context);
@@ -1503,6 +1536,16 @@ var de_DeleteLayoutCommand = /* @__PURE__ */ __name(async (output, context) => {
1503
1536
  await (0, import_smithy_client.collectBody)(output.body, context);
1504
1537
  return contents;
1505
1538
  }, "de_DeleteLayoutCommand");
1539
+ var de_DeleteRelatedItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1540
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1541
+ return de_CommandError(output, context);
1542
+ }
1543
+ const contents = (0, import_smithy_client.map)({
1544
+ $metadata: deserializeMetadata(output)
1545
+ });
1546
+ await (0, import_smithy_client.collectBody)(output.body, context);
1547
+ return contents;
1548
+ }, "de_DeleteRelatedItemCommand");
1506
1549
  var de_DeleteTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1507
1550
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1508
1551
  return de_CommandError(output, context);
@@ -2553,6 +2596,21 @@ var CreateTemplateCommand = class extends import_smithy_client.Command.classBuil
2553
2596
  }
2554
2597
  };
2555
2598
 
2599
+ // src/commands/DeleteCaseCommand.ts
2600
+
2601
+
2602
+
2603
+ var DeleteCaseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2604
+ return [
2605
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2606
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2607
+ ];
2608
+ }).s("AmazonConnectCases", "DeleteCase", {}).n("ConnectCasesClient", "DeleteCaseCommand").f(void 0, void 0).ser(se_DeleteCaseCommand).de(de_DeleteCaseCommand).build() {
2609
+ static {
2610
+ __name(this, "DeleteCaseCommand");
2611
+ }
2612
+ };
2613
+
2556
2614
  // src/commands/DeleteCaseRuleCommand.ts
2557
2615
 
2558
2616
 
@@ -2613,6 +2671,21 @@ var DeleteLayoutCommand = class extends import_smithy_client.Command.classBuilde
2613
2671
  }
2614
2672
  };
2615
2673
 
2674
+ // src/commands/DeleteRelatedItemCommand.ts
2675
+
2676
+
2677
+
2678
+ var DeleteRelatedItemCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2679
+ return [
2680
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2681
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2682
+ ];
2683
+ }).s("AmazonConnectCases", "DeleteRelatedItem", {}).n("ConnectCasesClient", "DeleteRelatedItemCommand").f(void 0, void 0).ser(se_DeleteRelatedItemCommand).de(de_DeleteRelatedItemCommand).build() {
2684
+ static {
2685
+ __name(this, "DeleteRelatedItemCommand");
2686
+ }
2687
+ };
2688
+
2616
2689
  // src/commands/DeleteTemplateCommand.ts
2617
2690
 
2618
2691
 
@@ -3000,10 +3073,12 @@ var commands = {
3000
3073
  CreateLayoutCommand,
3001
3074
  CreateRelatedItemCommand,
3002
3075
  CreateTemplateCommand,
3076
+ DeleteCaseCommand,
3003
3077
  DeleteCaseRuleCommand,
3004
3078
  DeleteDomainCommand,
3005
3079
  DeleteFieldCommand,
3006
3080
  DeleteLayoutCommand,
3081
+ DeleteRelatedItemCommand,
3007
3082
  DeleteTemplateCommand,
3008
3083
  GetCaseCommand,
3009
3084
  GetCaseAuditEventsCommand,
@@ -3098,10 +3173,12 @@ var paginateSearchRelatedItems = (0, import_core.createPaginator)(ConnectCasesCl
3098
3173
  CreateLayoutCommand,
3099
3174
  CreateRelatedItemCommand,
3100
3175
  CreateTemplateCommand,
3176
+ DeleteCaseCommand,
3101
3177
  DeleteCaseRuleCommand,
3102
3178
  DeleteDomainCommand,
3103
3179
  DeleteFieldCommand,
3104
3180
  DeleteLayoutCommand,
3181
+ DeleteRelatedItemCommand,
3105
3182
  DeleteTemplateCommand,
3106
3183
  GetCaseAuditEventsCommand,
3107
3184
  GetCaseCommand,
@@ -9,10 +9,12 @@ import { CreateFieldCommand } from "./commands/CreateFieldCommand";
9
9
  import { CreateLayoutCommand, } from "./commands/CreateLayoutCommand";
10
10
  import { CreateRelatedItemCommand, } from "./commands/CreateRelatedItemCommand";
11
11
  import { CreateTemplateCommand, } from "./commands/CreateTemplateCommand";
12
+ import { DeleteCaseCommand } from "./commands/DeleteCaseCommand";
12
13
  import { DeleteCaseRuleCommand, } from "./commands/DeleteCaseRuleCommand";
13
14
  import { DeleteDomainCommand, } from "./commands/DeleteDomainCommand";
14
15
  import { DeleteFieldCommand } from "./commands/DeleteFieldCommand";
15
16
  import { DeleteLayoutCommand, } from "./commands/DeleteLayoutCommand";
17
+ import { DeleteRelatedItemCommand, } from "./commands/DeleteRelatedItemCommand";
16
18
  import { DeleteTemplateCommand, } from "./commands/DeleteTemplateCommand";
17
19
  import { GetCaseAuditEventsCommand, } from "./commands/GetCaseAuditEventsCommand";
18
20
  import { GetCaseCommand } from "./commands/GetCaseCommand";
@@ -50,10 +52,12 @@ const commands = {
50
52
  CreateLayoutCommand,
51
53
  CreateRelatedItemCommand,
52
54
  CreateTemplateCommand,
55
+ DeleteCaseCommand,
53
56
  DeleteCaseRuleCommand,
54
57
  DeleteDomainCommand,
55
58
  DeleteFieldCommand,
56
59
  DeleteLayoutCommand,
60
+ DeleteRelatedItemCommand,
57
61
  DeleteTemplateCommand,
58
62
  GetCaseCommand,
59
63
  GetCaseAuditEventsCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteCaseCommand, se_DeleteCaseCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteCaseCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonConnectCases", "DeleteCase", {})
17
+ .n("ConnectCasesClient", "DeleteCaseCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteCaseCommand)
20
+ .de(de_DeleteCaseCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteRelatedItemCommand, se_DeleteRelatedItemCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteRelatedItemCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonConnectCases", "DeleteRelatedItem", {})
17
+ .n("ConnectCasesClient", "DeleteRelatedItemCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteRelatedItemCommand)
20
+ .de(de_DeleteRelatedItemCommand)
21
+ .build() {
22
+ }
@@ -8,10 +8,12 @@ export * from "./CreateFieldCommand";
8
8
  export * from "./CreateLayoutCommand";
9
9
  export * from "./CreateRelatedItemCommand";
10
10
  export * from "./CreateTemplateCommand";
11
+ export * from "./DeleteCaseCommand";
11
12
  export * from "./DeleteCaseRuleCommand";
12
13
  export * from "./DeleteDomainCommand";
13
14
  export * from "./DeleteFieldCommand";
14
15
  export * from "./DeleteLayoutCommand";
16
+ export * from "./DeleteRelatedItemCommand";
15
17
  export * from "./DeleteTemplateCommand";
16
18
  export * from "./GetCaseAuditEventsCommand";
17
19
  export * from "./GetCaseCommand";
@@ -160,6 +160,16 @@ export const se_CreateTemplateCommand = async (input, context) => {
160
160
  b.m("POST").h(headers).b(body);
161
161
  return b.build();
162
162
  };
163
+ export const se_DeleteCaseCommand = async (input, context) => {
164
+ const b = rb(input, context);
165
+ const headers = {};
166
+ b.bp("/domains/{domainId}/cases/{caseId}");
167
+ b.p("domainId", () => input.domainId, "{domainId}", false);
168
+ b.p("caseId", () => input.caseId, "{caseId}", false);
169
+ let body;
170
+ b.m("DELETE").h(headers).b(body);
171
+ return b.build();
172
+ };
163
173
  export const se_DeleteCaseRuleCommand = async (input, context) => {
164
174
  const b = rb(input, context);
165
175
  const headers = {};
@@ -199,6 +209,17 @@ export const se_DeleteLayoutCommand = async (input, context) => {
199
209
  b.m("DELETE").h(headers).b(body);
200
210
  return b.build();
201
211
  };
212
+ export const se_DeleteRelatedItemCommand = async (input, context) => {
213
+ const b = rb(input, context);
214
+ const headers = {};
215
+ b.bp("/domains/{domainId}/cases/{caseId}/related-items/{relatedItemId}");
216
+ b.p("domainId", () => input.domainId, "{domainId}", false);
217
+ b.p("caseId", () => input.caseId, "{caseId}", false);
218
+ b.p("relatedItemId", () => input.relatedItemId, "{relatedItemId}", false);
219
+ let body;
220
+ b.m("DELETE").h(headers).b(body);
221
+ return b.build();
222
+ };
202
223
  export const se_DeleteTemplateCommand = async (input, context) => {
203
224
  const b = rb(input, context);
204
225
  const headers = {};
@@ -695,6 +716,16 @@ export const de_CreateTemplateCommand = async (output, context) => {
695
716
  Object.assign(contents, doc);
696
717
  return contents;
697
718
  };
719
+ export const de_DeleteCaseCommand = async (output, context) => {
720
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
721
+ return de_CommandError(output, context);
722
+ }
723
+ const contents = map({
724
+ $metadata: deserializeMetadata(output),
725
+ });
726
+ await collectBody(output.body, context);
727
+ return contents;
728
+ };
698
729
  export const de_DeleteCaseRuleCommand = async (output, context) => {
699
730
  if (output.statusCode !== 200 && output.statusCode >= 300) {
700
731
  return de_CommandError(output, context);
@@ -735,6 +766,16 @@ export const de_DeleteLayoutCommand = async (output, context) => {
735
766
  await collectBody(output.body, context);
736
767
  return contents;
737
768
  };
769
+ export const de_DeleteRelatedItemCommand = async (output, context) => {
770
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
771
+ return de_CommandError(output, context);
772
+ }
773
+ const contents = map({
774
+ $metadata: deserializeMetadata(output),
775
+ });
776
+ await collectBody(output.body, context);
777
+ return contents;
778
+ };
738
779
  export const de_DeleteTemplateCommand = async (output, context) => {
739
780
  if (output.statusCode !== 200 && output.statusCode >= 300) {
740
781
  return de_CommandError(output, context);
@@ -9,10 +9,12 @@ import { CreateFieldCommandInput, CreateFieldCommandOutput } from "./commands/Cr
9
9
  import { CreateLayoutCommandInput, CreateLayoutCommandOutput } from "./commands/CreateLayoutCommand";
10
10
  import { CreateRelatedItemCommandInput, CreateRelatedItemCommandOutput } from "./commands/CreateRelatedItemCommand";
11
11
  import { CreateTemplateCommandInput, CreateTemplateCommandOutput } from "./commands/CreateTemplateCommand";
12
+ import { DeleteCaseCommandInput, DeleteCaseCommandOutput } from "./commands/DeleteCaseCommand";
12
13
  import { DeleteCaseRuleCommandInput, DeleteCaseRuleCommandOutput } from "./commands/DeleteCaseRuleCommand";
13
14
  import { DeleteDomainCommandInput, DeleteDomainCommandOutput } from "./commands/DeleteDomainCommand";
14
15
  import { DeleteFieldCommandInput, DeleteFieldCommandOutput } from "./commands/DeleteFieldCommand";
15
16
  import { DeleteLayoutCommandInput, DeleteLayoutCommandOutput } from "./commands/DeleteLayoutCommand";
17
+ import { DeleteRelatedItemCommandInput, DeleteRelatedItemCommandOutput } from "./commands/DeleteRelatedItemCommand";
16
18
  import { DeleteTemplateCommandInput, DeleteTemplateCommandOutput } from "./commands/DeleteTemplateCommand";
17
19
  import { GetCaseAuditEventsCommandInput, GetCaseAuditEventsCommandOutput } from "./commands/GetCaseAuditEventsCommand";
18
20
  import { GetCaseCommandInput, GetCaseCommandOutput } from "./commands/GetCaseCommand";
@@ -100,6 +102,12 @@ export interface ConnectCases {
100
102
  createTemplate(args: CreateTemplateCommandInput, options?: __HttpHandlerOptions): Promise<CreateTemplateCommandOutput>;
101
103
  createTemplate(args: CreateTemplateCommandInput, cb: (err: any, data?: CreateTemplateCommandOutput) => void): void;
102
104
  createTemplate(args: CreateTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTemplateCommandOutput) => void): void;
105
+ /**
106
+ * @see {@link DeleteCaseCommand}
107
+ */
108
+ deleteCase(args: DeleteCaseCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCaseCommandOutput>;
109
+ deleteCase(args: DeleteCaseCommandInput, cb: (err: any, data?: DeleteCaseCommandOutput) => void): void;
110
+ deleteCase(args: DeleteCaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCaseCommandOutput) => void): void;
103
111
  /**
104
112
  * @see {@link DeleteCaseRuleCommand}
105
113
  */
@@ -124,6 +132,12 @@ export interface ConnectCases {
124
132
  deleteLayout(args: DeleteLayoutCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLayoutCommandOutput>;
125
133
  deleteLayout(args: DeleteLayoutCommandInput, cb: (err: any, data?: DeleteLayoutCommandOutput) => void): void;
126
134
  deleteLayout(args: DeleteLayoutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLayoutCommandOutput) => void): void;
135
+ /**
136
+ * @see {@link DeleteRelatedItemCommand}
137
+ */
138
+ deleteRelatedItem(args: DeleteRelatedItemCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRelatedItemCommandOutput>;
139
+ deleteRelatedItem(args: DeleteRelatedItemCommandInput, cb: (err: any, data?: DeleteRelatedItemCommandOutput) => void): void;
140
+ deleteRelatedItem(args: DeleteRelatedItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRelatedItemCommandOutput) => void): void;
127
141
  /**
128
142
  * @see {@link DeleteTemplateCommand}
129
143
  */
@@ -277,25 +291,7 @@ export interface ConnectCases {
277
291
  updateTemplate(args: UpdateTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTemplateCommandOutput) => void): void;
278
292
  }
279
293
  /**
280
- * <ul>
281
- * <li>
282
- * <p>
283
- * <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Cases.html">Cases
284
- * actions</a>
285
- * </p>
286
- * </li>
287
- * <li>
288
- * <p>
289
- * <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Cases.html">Cases data
290
- * types</a>
291
- * </p>
292
- * </li>
293
- * </ul>
294
- * <p>With Amazon Connect Cases, your agents can track and manage customer issues that require
295
- * multiple interactions, follow-up tasks, and teams in your contact center. A case represents a
296
- * customer issue. It records the issue, the steps and interactions taken to resolve the issue,
297
- * and the outcome. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/cases.html">Amazon Connect Cases</a> in the
298
- * <i>Amazon Connect Administrator Guide</i>.</p>
294
+ * <ul> <li> <p> <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Cases.html">Cases actions</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Cases.html">Cases data types</a> </p> </li> </ul> <p>With Amazon Connect Cases, your agents can track and manage customer issues that require multiple interactions, follow-up tasks, and teams in your contact center. A case represents a customer issue. It records the issue, the steps and interactions taken to resolve the issue, and the outcome. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/cases.html">Amazon Connect Cases</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
299
295
  * @public
300
296
  */
301
297
  export declare class ConnectCases extends ConnectCasesClient implements ConnectCases {
@@ -17,10 +17,12 @@ import { CreateFieldCommandInput, CreateFieldCommandOutput } from "./commands/Cr
17
17
  import { CreateLayoutCommandInput, CreateLayoutCommandOutput } from "./commands/CreateLayoutCommand";
18
18
  import { CreateRelatedItemCommandInput, CreateRelatedItemCommandOutput } from "./commands/CreateRelatedItemCommand";
19
19
  import { CreateTemplateCommandInput, CreateTemplateCommandOutput } from "./commands/CreateTemplateCommand";
20
+ import { DeleteCaseCommandInput, DeleteCaseCommandOutput } from "./commands/DeleteCaseCommand";
20
21
  import { DeleteCaseRuleCommandInput, DeleteCaseRuleCommandOutput } from "./commands/DeleteCaseRuleCommand";
21
22
  import { DeleteDomainCommandInput, DeleteDomainCommandOutput } from "./commands/DeleteDomainCommand";
22
23
  import { DeleteFieldCommandInput, DeleteFieldCommandOutput } from "./commands/DeleteFieldCommand";
23
24
  import { DeleteLayoutCommandInput, DeleteLayoutCommandOutput } from "./commands/DeleteLayoutCommand";
25
+ import { DeleteRelatedItemCommandInput, DeleteRelatedItemCommandOutput } from "./commands/DeleteRelatedItemCommand";
24
26
  import { DeleteTemplateCommandInput, DeleteTemplateCommandOutput } from "./commands/DeleteTemplateCommand";
25
27
  import { GetCaseAuditEventsCommandInput, GetCaseAuditEventsCommandOutput } from "./commands/GetCaseAuditEventsCommand";
26
28
  import { GetCaseCommandInput, GetCaseCommandOutput } from "./commands/GetCaseCommand";
@@ -52,11 +54,11 @@ export { __Client };
52
54
  /**
53
55
  * @public
54
56
  */
55
- export type ServiceInputTypes = BatchGetCaseRuleCommandInput | BatchGetFieldCommandInput | BatchPutFieldOptionsCommandInput | CreateCaseCommandInput | CreateCaseRuleCommandInput | CreateDomainCommandInput | CreateFieldCommandInput | CreateLayoutCommandInput | CreateRelatedItemCommandInput | CreateTemplateCommandInput | DeleteCaseRuleCommandInput | DeleteDomainCommandInput | DeleteFieldCommandInput | DeleteLayoutCommandInput | DeleteTemplateCommandInput | GetCaseAuditEventsCommandInput | GetCaseCommandInput | GetCaseEventConfigurationCommandInput | GetDomainCommandInput | GetLayoutCommandInput | GetTemplateCommandInput | ListCaseRulesCommandInput | ListCasesForContactCommandInput | ListDomainsCommandInput | ListFieldOptionsCommandInput | ListFieldsCommandInput | ListLayoutsCommandInput | ListTagsForResourceCommandInput | ListTemplatesCommandInput | PutCaseEventConfigurationCommandInput | SearchCasesCommandInput | SearchRelatedItemsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCaseCommandInput | UpdateCaseRuleCommandInput | UpdateFieldCommandInput | UpdateLayoutCommandInput | UpdateTemplateCommandInput;
57
+ export type ServiceInputTypes = BatchGetCaseRuleCommandInput | BatchGetFieldCommandInput | BatchPutFieldOptionsCommandInput | CreateCaseCommandInput | CreateCaseRuleCommandInput | CreateDomainCommandInput | CreateFieldCommandInput | CreateLayoutCommandInput | CreateRelatedItemCommandInput | CreateTemplateCommandInput | DeleteCaseCommandInput | DeleteCaseRuleCommandInput | DeleteDomainCommandInput | DeleteFieldCommandInput | DeleteLayoutCommandInput | DeleteRelatedItemCommandInput | DeleteTemplateCommandInput | GetCaseAuditEventsCommandInput | GetCaseCommandInput | GetCaseEventConfigurationCommandInput | GetDomainCommandInput | GetLayoutCommandInput | GetTemplateCommandInput | ListCaseRulesCommandInput | ListCasesForContactCommandInput | ListDomainsCommandInput | ListFieldOptionsCommandInput | ListFieldsCommandInput | ListLayoutsCommandInput | ListTagsForResourceCommandInput | ListTemplatesCommandInput | PutCaseEventConfigurationCommandInput | SearchCasesCommandInput | SearchRelatedItemsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCaseCommandInput | UpdateCaseRuleCommandInput | UpdateFieldCommandInput | UpdateLayoutCommandInput | UpdateTemplateCommandInput;
56
58
  /**
57
59
  * @public
58
60
  */
59
- export type ServiceOutputTypes = BatchGetCaseRuleCommandOutput | BatchGetFieldCommandOutput | BatchPutFieldOptionsCommandOutput | CreateCaseCommandOutput | CreateCaseRuleCommandOutput | CreateDomainCommandOutput | CreateFieldCommandOutput | CreateLayoutCommandOutput | CreateRelatedItemCommandOutput | CreateTemplateCommandOutput | DeleteCaseRuleCommandOutput | DeleteDomainCommandOutput | DeleteFieldCommandOutput | DeleteLayoutCommandOutput | DeleteTemplateCommandOutput | GetCaseAuditEventsCommandOutput | GetCaseCommandOutput | GetCaseEventConfigurationCommandOutput | GetDomainCommandOutput | GetLayoutCommandOutput | GetTemplateCommandOutput | ListCaseRulesCommandOutput | ListCasesForContactCommandOutput | ListDomainsCommandOutput | ListFieldOptionsCommandOutput | ListFieldsCommandOutput | ListLayoutsCommandOutput | ListTagsForResourceCommandOutput | ListTemplatesCommandOutput | PutCaseEventConfigurationCommandOutput | SearchCasesCommandOutput | SearchRelatedItemsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCaseCommandOutput | UpdateCaseRuleCommandOutput | UpdateFieldCommandOutput | UpdateLayoutCommandOutput | UpdateTemplateCommandOutput;
61
+ export type ServiceOutputTypes = BatchGetCaseRuleCommandOutput | BatchGetFieldCommandOutput | BatchPutFieldOptionsCommandOutput | CreateCaseCommandOutput | CreateCaseRuleCommandOutput | CreateDomainCommandOutput | CreateFieldCommandOutput | CreateLayoutCommandOutput | CreateRelatedItemCommandOutput | CreateTemplateCommandOutput | DeleteCaseCommandOutput | DeleteCaseRuleCommandOutput | DeleteDomainCommandOutput | DeleteFieldCommandOutput | DeleteLayoutCommandOutput | DeleteRelatedItemCommandOutput | DeleteTemplateCommandOutput | GetCaseAuditEventsCommandOutput | GetCaseCommandOutput | GetCaseEventConfigurationCommandOutput | GetDomainCommandOutput | GetLayoutCommandOutput | GetTemplateCommandOutput | ListCaseRulesCommandOutput | ListCasesForContactCommandOutput | ListDomainsCommandOutput | ListFieldOptionsCommandOutput | ListFieldsCommandOutput | ListLayoutsCommandOutput | ListTagsForResourceCommandOutput | ListTemplatesCommandOutput | PutCaseEventConfigurationCommandOutput | SearchCasesCommandOutput | SearchRelatedItemsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCaseCommandOutput | UpdateCaseRuleCommandOutput | UpdateFieldCommandOutput | UpdateLayoutCommandOutput | UpdateTemplateCommandOutput;
60
62
  /**
61
63
  * @public
62
64
  */
@@ -208,25 +210,7 @@ export type ConnectCasesClientResolvedConfigType = __SmithyResolvedConfiguration
208
210
  export interface ConnectCasesClientResolvedConfig extends ConnectCasesClientResolvedConfigType {
209
211
  }
210
212
  /**
211
- * <ul>
212
- * <li>
213
- * <p>
214
- * <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Cases.html">Cases
215
- * actions</a>
216
- * </p>
217
- * </li>
218
- * <li>
219
- * <p>
220
- * <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Cases.html">Cases data
221
- * types</a>
222
- * </p>
223
- * </li>
224
- * </ul>
225
- * <p>With Amazon Connect Cases, your agents can track and manage customer issues that require
226
- * multiple interactions, follow-up tasks, and teams in your contact center. A case represents a
227
- * customer issue. It records the issue, the steps and interactions taken to resolve the issue,
228
- * and the outcome. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/cases.html">Amazon Connect Cases</a> in the
229
- * <i>Amazon Connect Administrator Guide</i>.</p>
213
+ * <ul> <li> <p> <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Cases.html">Cases actions</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Cases.html">Cases data types</a> </p> </li> </ul> <p>With Amazon Connect Cases, your agents can track and manage customer issues that require multiple interactions, follow-up tasks, and teams in your contact center. A case represents a customer issue. It records the issue, the steps and interactions taken to resolve the issue, and the outcome. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/cases.html">Amazon Connect Cases</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
230
214
  * @public
231
215
  */
232
216
  export declare class ConnectCasesClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ConnectCasesClientResolvedConfig> {
@@ -27,9 +27,7 @@ declare const BatchGetCaseRuleCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Gets a batch of case rules. In the Amazon Connect admin website, case rules are known as <i>case field conditions</i>. For more
31
- * information about case field conditions, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/case-field-conditions.html">Add case field conditions to a
32
- * case template</a>.</p>
30
+ * <p>Gets a batch of case rules. In the Amazon Connect admin website, case rules are known as <i>case field conditions</i>. For more information about case field conditions, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/case-field-conditions.html">Add case field conditions to a case template</a>.</p>
33
31
  * @example
34
32
  * Use a bare-bones client and the command you need to make an API call.
35
33
  * ```javascript
@@ -115,12 +113,10 @@ declare const BatchGetCaseRuleCommand_base: {
115
113
  * <p>You do not have sufficient access to perform this action.</p>
116
114
  *
117
115
  * @throws {@link InternalServerException} (server fault)
118
- * <p>We couldn't process your request because of an issue with the server. Try again
119
- * later.</p>
116
+ * <p>We couldn't process your request because of an issue with the server. Try again later.</p>
120
117
  *
121
118
  * @throws {@link ResourceNotFoundException} (client fault)
122
- * <p>We couldn't find the requested resource. Check that your resources exists and were created
123
- * in the same Amazon Web Services Region as your request, and try your request again.</p>
119
+ * <p>We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.</p>
124
120
  *
125
121
  * @throws {@link ThrottlingException} (client fault)
126
122
  * <p>The rate has been exceeded for this API. Please try again after a few minutes.</p>
@@ -82,12 +82,10 @@ declare const BatchGetFieldCommand_base: {
82
82
  * <p>You do not have sufficient access to perform this action.</p>
83
83
  *
84
84
  * @throws {@link InternalServerException} (server fault)
85
- * <p>We couldn't process your request because of an issue with the server. Try again
86
- * later.</p>
85
+ * <p>We couldn't process your request because of an issue with the server. Try again later.</p>
87
86
  *
88
87
  * @throws {@link ResourceNotFoundException} (client fault)
89
- * <p>We couldn't find the requested resource. Check that your resources exists and were created
90
- * in the same Amazon Web Services Region as your request, and try your request again.</p>
88
+ * <p>We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.</p>
91
89
  *
92
90
  * @throws {@link ThrottlingException} (client fault)
93
91
  * <p>The rate has been exceeded for this API. Please try again after a few minutes.</p>
@@ -27,8 +27,7 @@ declare const BatchPutFieldOptionsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates and updates a set of field options for a single select field in a Cases
31
- * domain.</p>
30
+ * <p>Creates and updates a set of field options for a single select field in a Cases domain.</p>
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -70,16 +69,13 @@ declare const BatchPutFieldOptionsCommand_base: {
70
69
  * <p>You do not have sufficient access to perform this action.</p>
71
70
  *
72
71
  * @throws {@link InternalServerException} (server fault)
73
- * <p>We couldn't process your request because of an issue with the server. Try again
74
- * later.</p>
72
+ * <p>We couldn't process your request because of an issue with the server. Try again later.</p>
75
73
  *
76
74
  * @throws {@link ResourceNotFoundException} (client fault)
77
- * <p>We couldn't find the requested resource. Check that your resources exists and were created
78
- * in the same Amazon Web Services Region as your request, and try your request again.</p>
75
+ * <p>We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.</p>
79
76
  *
80
77
  * @throws {@link ServiceQuotaExceededException} (client fault)
81
- * <p>The service quota has been exceeded. For a list of service quotas, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html">Amazon Connect Service Quotas</a> in the <i>Amazon Connect
82
- * Administrator Guide</i>.</p>
78
+ * <p>The service quota has been exceeded. For a list of service quotas, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html">Amazon Connect Service Quotas</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
83
79
  *
84
80
  * @throws {@link ThrottlingException} (client fault)
85
81
  * <p>The rate has been exceeded for this API. Please try again after a few minutes.</p>
@@ -27,26 +27,7 @@ declare const CreateCaseCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <note>
31
- * <p>If you provide a value for <code>PerformedBy.UserArn</code> you must also have <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html">connect:DescribeUser</a> permission on the User ARN resource that you provide</p>
32
- * </note>
33
- * <p>Creates a case in the specified Cases domain. Case system and custom fields are taken
34
- * as an array id/value pairs with a declared data types.</p>
35
- * <p>The following fields are required when creating a case:</p>
36
- * <ul>
37
- * <li>
38
- * <p>
39
- * <code>customer_id</code> - You must provide the full customer profile ARN in this format:
40
- * <code>arn:aws:profile:your_AWS_Region:your_AWS_account
41
- * ID:domains/your_profiles_domain_name/profiles/profile_ID</code>
42
- * </p>
43
- * </li>
44
- * <li>
45
- * <p>
46
- * <code>title</code>
47
- * </p>
48
- * </li>
49
- * </ul>
30
+ * <note> <p>If you provide a value for <code>PerformedBy.UserArn</code> you must also have <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html">connect:DescribeUser</a> permission on the User ARN resource that you provide</p> </note> <p>Creates a case in the specified Cases domain. Case system and custom fields are taken as an array id/value pairs with a declared data types.</p> <p>The following fields are required when creating a case:</p> <ul> <li> <p> <code>customer_id</code> - You must provide the full customer profile ARN in this format: <code>arn:aws:profile:your_AWS_Region:your_AWS_account ID:domains/your_profiles_domain_name/profiles/profile_ID</code> </p> </li> <li> <p> <code>title</code> </p> </li> </ul>
50
31
  * @example
51
32
  * Use a bare-bones client and the command you need to make an API call.
52
33
  * ```javascript
@@ -93,17 +74,13 @@ declare const CreateCaseCommand_base: {
93
74
  * <p>You do not have sufficient access to perform this action.</p>
94
75
  *
95
76
  * @throws {@link ConflictException} (client fault)
96
- * <p>The requested operation would cause a conflict with the current state of a service
97
- * resource associated with the request. Resolve the conflict before retrying this request. See
98
- * the accompanying error message for details.</p>
77
+ * <p>The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.</p>
99
78
  *
100
79
  * @throws {@link InternalServerException} (server fault)
101
- * <p>We couldn't process your request because of an issue with the server. Try again
102
- * later.</p>
80
+ * <p>We couldn't process your request because of an issue with the server. Try again later.</p>
103
81
  *
104
82
  * @throws {@link ResourceNotFoundException} (client fault)
105
- * <p>We couldn't find the requested resource. Check that your resources exists and were created
106
- * in the same Amazon Web Services Region as your request, and try your request again.</p>
83
+ * <p>We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.</p>
107
84
  *
108
85
  * @throws {@link ThrottlingException} (client fault)
109
86
  * <p>The rate has been exceeded for this API. Please try again after a few minutes.</p>