@aws-sdk/client-connect 3.100.0 → 3.109.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 (131) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist-cjs/Connect.js +105 -0
  3. package/dist-cjs/ConnectClient.js +2 -0
  4. package/dist-cjs/commands/CreateTaskTemplateCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteTaskTemplateCommand.js +36 -0
  6. package/dist-cjs/commands/GetCurrentUserDataCommand.js +36 -0
  7. package/dist-cjs/commands/GetTaskTemplateCommand.js +36 -0
  8. package/dist-cjs/commands/ListQueuesCommand.js +3 -3
  9. package/dist-cjs/commands/ListQuickConnectsCommand.js +3 -3
  10. package/dist-cjs/commands/ListRoutingProfileQueuesCommand.js +3 -3
  11. package/dist-cjs/commands/ListRoutingProfilesCommand.js +3 -3
  12. package/dist-cjs/commands/ListSecurityKeysCommand.js +3 -3
  13. package/dist-cjs/commands/ListSecurityProfilePermissionsCommand.js +3 -3
  14. package/dist-cjs/commands/ListSecurityProfilesCommand.js +3 -3
  15. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  16. package/dist-cjs/commands/ListTaskTemplatesCommand.js +36 -0
  17. package/dist-cjs/commands/ListUseCasesCommand.js +3 -3
  18. package/dist-cjs/commands/ListUserHierarchyGroupsCommand.js +3 -3
  19. package/dist-cjs/commands/ListUsersCommand.js +3 -3
  20. package/dist-cjs/commands/PutUserStatusCommand.js +3 -3
  21. package/dist-cjs/commands/ReleasePhoneNumberCommand.js +2 -2
  22. package/dist-cjs/commands/ResumeContactRecordingCommand.js +3 -3
  23. package/dist-cjs/commands/TransferContactCommand.js +36 -0
  24. package/dist-cjs/commands/UpdateTaskTemplateCommand.js +36 -0
  25. package/dist-cjs/commands/index.js +7 -0
  26. package/dist-cjs/models/models_0.js +283 -236
  27. package/dist-cjs/models/models_1.js +254 -2
  28. package/dist-cjs/pagination/GetCurrentUserDataPaginator.js +36 -0
  29. package/dist-cjs/pagination/ListTaskTemplatesPaginator.js +36 -0
  30. package/dist-cjs/pagination/index.js +2 -0
  31. package/dist-cjs/protocols/Aws_restJson1.js +1279 -34
  32. package/dist-es/Connect.js +105 -0
  33. package/dist-es/ConnectClient.js +2 -0
  34. package/dist-es/commands/CreateTaskTemplateCommand.js +39 -0
  35. package/dist-es/commands/DeleteTaskTemplateCommand.js +39 -0
  36. package/dist-es/commands/GetCurrentUserDataCommand.js +39 -0
  37. package/dist-es/commands/GetTaskTemplateCommand.js +39 -0
  38. package/dist-es/commands/ListQueuesCommand.js +1 -1
  39. package/dist-es/commands/ListQuickConnectsCommand.js +1 -1
  40. package/dist-es/commands/ListRoutingProfileQueuesCommand.js +1 -1
  41. package/dist-es/commands/ListRoutingProfilesCommand.js +1 -1
  42. package/dist-es/commands/ListSecurityKeysCommand.js +1 -1
  43. package/dist-es/commands/ListSecurityProfilePermissionsCommand.js +1 -1
  44. package/dist-es/commands/ListSecurityProfilesCommand.js +1 -1
  45. package/dist-es/commands/ListTagsForResourceCommand.js +1 -1
  46. package/dist-es/commands/ListTaskTemplatesCommand.js +39 -0
  47. package/dist-es/commands/ListUseCasesCommand.js +1 -1
  48. package/dist-es/commands/ListUserHierarchyGroupsCommand.js +1 -1
  49. package/dist-es/commands/ListUsersCommand.js +1 -1
  50. package/dist-es/commands/PutUserStatusCommand.js +1 -1
  51. package/dist-es/commands/ReleasePhoneNumberCommand.js +1 -1
  52. package/dist-es/commands/ResumeContactRecordingCommand.js +1 -1
  53. package/dist-es/commands/TransferContactCommand.js +39 -0
  54. package/dist-es/commands/UpdateTaskTemplateCommand.js +39 -0
  55. package/dist-es/commands/index.js +7 -0
  56. package/dist-es/models/models_0.js +214 -160
  57. package/dist-es/models/models_1.js +169 -0
  58. package/dist-es/pagination/GetCurrentUserDataPaginator.js +75 -0
  59. package/dist-es/pagination/ListTaskTemplatesPaginator.js +75 -0
  60. package/dist-es/pagination/index.js +2 -0
  61. package/dist-es/protocols/Aws_restJson1.js +1440 -63
  62. package/dist-types/Connect.d.ts +104 -22
  63. package/dist-types/ConnectClient.d.ts +9 -2
  64. package/dist-types/commands/AssociateDefaultVocabularyCommand.d.ts +2 -1
  65. package/dist-types/commands/CreateTaskTemplateCommand.d.ts +35 -0
  66. package/dist-types/commands/DeleteTaskTemplateCommand.d.ts +35 -0
  67. package/dist-types/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +2 -1
  68. package/dist-types/commands/GetCurrentUserDataCommand.d.ts +35 -0
  69. package/dist-types/commands/GetTaskTemplateCommand.d.ts +35 -0
  70. package/dist-types/commands/ListPhoneNumbersV2Command.d.ts +1 -1
  71. package/dist-types/commands/ListQueuesCommand.d.ts +1 -1
  72. package/dist-types/commands/ListQuickConnectsCommand.d.ts +1 -1
  73. package/dist-types/commands/ListRoutingProfileQueuesCommand.d.ts +1 -1
  74. package/dist-types/commands/ListRoutingProfilesCommand.d.ts +1 -1
  75. package/dist-types/commands/ListSecurityKeysCommand.d.ts +1 -1
  76. package/dist-types/commands/ListSecurityProfilePermissionsCommand.d.ts +1 -1
  77. package/dist-types/commands/ListSecurityProfilesCommand.d.ts +1 -1
  78. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  79. package/dist-types/commands/ListTaskTemplatesCommand.d.ts +35 -0
  80. package/dist-types/commands/ListUseCasesCommand.d.ts +1 -1
  81. package/dist-types/commands/ListUserHierarchyGroupsCommand.d.ts +1 -1
  82. package/dist-types/commands/ListUsersCommand.d.ts +1 -1
  83. package/dist-types/commands/PutUserStatusCommand.d.ts +5 -6
  84. package/dist-types/commands/ReleasePhoneNumberCommand.d.ts +1 -1
  85. package/dist-types/commands/ResumeContactRecordingCommand.d.ts +1 -1
  86. package/dist-types/commands/SearchVocabulariesCommand.d.ts +2 -1
  87. package/dist-types/commands/StartChatContactCommand.d.ts +3 -3
  88. package/dist-types/commands/StartContactRecordingCommand.d.ts +9 -7
  89. package/dist-types/commands/StopContactCommand.d.ts +3 -1
  90. package/dist-types/commands/TagResourceCommand.d.ts +2 -1
  91. package/dist-types/commands/TransferContactCommand.d.ts +58 -0
  92. package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +2 -1
  93. package/dist-types/commands/UpdateTaskTemplateCommand.d.ts +37 -0
  94. package/dist-types/commands/index.d.ts +7 -0
  95. package/dist-types/models/models_0.d.ts +927 -850
  96. package/dist-types/models/models_1.d.ts +979 -50
  97. package/dist-types/pagination/GetCurrentUserDataPaginator.d.ts +4 -0
  98. package/dist-types/pagination/ListTaskTemplatesPaginator.d.ts +4 -0
  99. package/dist-types/pagination/index.d.ts +2 -0
  100. package/dist-types/protocols/Aws_restJson1.d.ts +21 -0
  101. package/dist-types/ts3.4/Connect.d.ts +35 -0
  102. package/dist-types/ts3.4/ConnectClient.d.ts +9 -2
  103. package/dist-types/ts3.4/commands/CreateTaskTemplateCommand.d.ts +17 -0
  104. package/dist-types/ts3.4/commands/DeleteTaskTemplateCommand.d.ts +17 -0
  105. package/dist-types/ts3.4/commands/GetCurrentUserDataCommand.d.ts +17 -0
  106. package/dist-types/ts3.4/commands/GetTaskTemplateCommand.d.ts +17 -0
  107. package/dist-types/ts3.4/commands/ListQueuesCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/ListQuickConnectsCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/ListRoutingProfileQueuesCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/ListRoutingProfilesCommand.d.ts +1 -1
  111. package/dist-types/ts3.4/commands/ListSecurityKeysCommand.d.ts +1 -1
  112. package/dist-types/ts3.4/commands/ListSecurityProfilePermissionsCommand.d.ts +1 -1
  113. package/dist-types/ts3.4/commands/ListSecurityProfilesCommand.d.ts +1 -1
  114. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  115. package/dist-types/ts3.4/commands/ListTaskTemplatesCommand.d.ts +17 -0
  116. package/dist-types/ts3.4/commands/ListUseCasesCommand.d.ts +1 -1
  117. package/dist-types/ts3.4/commands/ListUserHierarchyGroupsCommand.d.ts +1 -1
  118. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +1 -1
  119. package/dist-types/ts3.4/commands/PutUserStatusCommand.d.ts +1 -1
  120. package/dist-types/ts3.4/commands/ReleasePhoneNumberCommand.d.ts +1 -1
  121. package/dist-types/ts3.4/commands/ResumeContactRecordingCommand.d.ts +1 -1
  122. package/dist-types/ts3.4/commands/TransferContactCommand.d.ts +17 -0
  123. package/dist-types/ts3.4/commands/UpdateTaskTemplateCommand.d.ts +17 -0
  124. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  125. package/dist-types/ts3.4/models/models_0.d.ts +555 -517
  126. package/dist-types/ts3.4/models/models_1.d.ts +539 -26
  127. package/dist-types/ts3.4/pagination/GetCurrentUserDataPaginator.d.ts +4 -0
  128. package/dist-types/ts3.4/pagination/ListTaskTemplatesPaginator.d.ts +4 -0
  129. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  130. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +21 -0
  131. package/package.json +29 -28
@@ -20,6 +20,7 @@ import { CreateQueueCommand } from "./commands/CreateQueueCommand";
20
20
  import { CreateQuickConnectCommand, } from "./commands/CreateQuickConnectCommand";
21
21
  import { CreateRoutingProfileCommand, } from "./commands/CreateRoutingProfileCommand";
22
22
  import { CreateSecurityProfileCommand, } from "./commands/CreateSecurityProfileCommand";
23
+ import { CreateTaskTemplateCommand, } from "./commands/CreateTaskTemplateCommand";
23
24
  import { CreateUseCaseCommand, } from "./commands/CreateUseCaseCommand";
24
25
  import { CreateUserCommand } from "./commands/CreateUserCommand";
25
26
  import { CreateUserHierarchyGroupCommand, } from "./commands/CreateUserHierarchyGroupCommand";
@@ -31,6 +32,7 @@ import { DeleteInstanceCommand, } from "./commands/DeleteInstanceCommand";
31
32
  import { DeleteIntegrationAssociationCommand, } from "./commands/DeleteIntegrationAssociationCommand";
32
33
  import { DeleteQuickConnectCommand, } from "./commands/DeleteQuickConnectCommand";
33
34
  import { DeleteSecurityProfileCommand, } from "./commands/DeleteSecurityProfileCommand";
35
+ import { DeleteTaskTemplateCommand, } from "./commands/DeleteTaskTemplateCommand";
34
36
  import { DeleteUseCaseCommand, } from "./commands/DeleteUseCaseCommand";
35
37
  import { DeleteUserCommand } from "./commands/DeleteUserCommand";
36
38
  import { DeleteUserHierarchyGroupCommand, } from "./commands/DeleteUserHierarchyGroupCommand";
@@ -63,8 +65,10 @@ import { DisassociateRoutingProfileQueuesCommand, } from "./commands/Disassociat
63
65
  import { DisassociateSecurityKeyCommand, } from "./commands/DisassociateSecurityKeyCommand";
64
66
  import { GetContactAttributesCommand, } from "./commands/GetContactAttributesCommand";
65
67
  import { GetCurrentMetricDataCommand, } from "./commands/GetCurrentMetricDataCommand";
68
+ import { GetCurrentUserDataCommand, } from "./commands/GetCurrentUserDataCommand";
66
69
  import { GetFederationTokenCommand, } from "./commands/GetFederationTokenCommand";
67
70
  import { GetMetricDataCommand, } from "./commands/GetMetricDataCommand";
71
+ import { GetTaskTemplateCommand, } from "./commands/GetTaskTemplateCommand";
68
72
  import { ListAgentStatusesCommand, } from "./commands/ListAgentStatusesCommand";
69
73
  import { ListApprovedOriginsCommand, } from "./commands/ListApprovedOriginsCommand";
70
74
  import { ListBotsCommand } from "./commands/ListBotsCommand";
@@ -91,6 +95,7 @@ import { ListSecurityKeysCommand, } from "./commands/ListSecurityKeysCommand";
91
95
  import { ListSecurityProfilePermissionsCommand, } from "./commands/ListSecurityProfilePermissionsCommand";
92
96
  import { ListSecurityProfilesCommand, } from "./commands/ListSecurityProfilesCommand";
93
97
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
98
+ import { ListTaskTemplatesCommand, } from "./commands/ListTaskTemplatesCommand";
94
99
  import { ListUseCasesCommand, } from "./commands/ListUseCasesCommand";
95
100
  import { ListUserHierarchyGroupsCommand, } from "./commands/ListUserHierarchyGroupsCommand";
96
101
  import { ListUsersCommand } from "./commands/ListUsersCommand";
@@ -110,6 +115,7 @@ import { StopContactRecordingCommand, } from "./commands/StopContactRecordingCom
110
115
  import { StopContactStreamingCommand, } from "./commands/StopContactStreamingCommand";
111
116
  import { SuspendContactRecordingCommand, } from "./commands/SuspendContactRecordingCommand";
112
117
  import { TagResourceCommand } from "./commands/TagResourceCommand";
118
+ import { TransferContactCommand, } from "./commands/TransferContactCommand";
113
119
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
114
120
  import { UpdateAgentStatusCommand, } from "./commands/UpdateAgentStatusCommand";
115
121
  import { UpdateContactAttributesCommand, } from "./commands/UpdateContactAttributesCommand";
@@ -136,6 +142,7 @@ import { UpdateRoutingProfileDefaultOutboundQueueCommand, } from "./commands/Upd
136
142
  import { UpdateRoutingProfileNameCommand, } from "./commands/UpdateRoutingProfileNameCommand";
137
143
  import { UpdateRoutingProfileQueuesCommand, } from "./commands/UpdateRoutingProfileQueuesCommand";
138
144
  import { UpdateSecurityProfileCommand, } from "./commands/UpdateSecurityProfileCommand";
145
+ import { UpdateTaskTemplateCommand, } from "./commands/UpdateTaskTemplateCommand";
139
146
  import { UpdateUserHierarchyCommand, } from "./commands/UpdateUserHierarchyCommand";
140
147
  import { UpdateUserHierarchyGroupNameCommand, } from "./commands/UpdateUserHierarchyGroupNameCommand";
141
148
  import { UpdateUserHierarchyStructureCommand, } from "./commands/UpdateUserHierarchyStructureCommand";
@@ -443,6 +450,20 @@ var Connect = (function (_super) {
443
450
  return this.send(command, optionsOrCb);
444
451
  }
445
452
  };
453
+ Connect.prototype.createTaskTemplate = function (args, optionsOrCb, cb) {
454
+ var command = new CreateTaskTemplateCommand(args);
455
+ if (typeof optionsOrCb === "function") {
456
+ this.send(command, optionsOrCb);
457
+ }
458
+ else if (typeof cb === "function") {
459
+ if (typeof optionsOrCb !== "object")
460
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
461
+ this.send(command, optionsOrCb || {}, cb);
462
+ }
463
+ else {
464
+ return this.send(command, optionsOrCb);
465
+ }
466
+ };
446
467
  Connect.prototype.createUseCase = function (args, optionsOrCb, cb) {
447
468
  var command = new CreateUseCaseCommand(args);
448
469
  if (typeof optionsOrCb === "function") {
@@ -597,6 +618,20 @@ var Connect = (function (_super) {
597
618
  return this.send(command, optionsOrCb);
598
619
  }
599
620
  };
621
+ Connect.prototype.deleteTaskTemplate = function (args, optionsOrCb, cb) {
622
+ var command = new DeleteTaskTemplateCommand(args);
623
+ if (typeof optionsOrCb === "function") {
624
+ this.send(command, optionsOrCb);
625
+ }
626
+ else if (typeof cb === "function") {
627
+ if (typeof optionsOrCb !== "object")
628
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
629
+ this.send(command, optionsOrCb || {}, cb);
630
+ }
631
+ else {
632
+ return this.send(command, optionsOrCb);
633
+ }
634
+ };
600
635
  Connect.prototype.deleteUseCase = function (args, optionsOrCb, cb) {
601
636
  var command = new DeleteUseCaseCommand(args);
602
637
  if (typeof optionsOrCb === "function") {
@@ -1045,6 +1080,20 @@ var Connect = (function (_super) {
1045
1080
  return this.send(command, optionsOrCb);
1046
1081
  }
1047
1082
  };
1083
+ Connect.prototype.getCurrentUserData = function (args, optionsOrCb, cb) {
1084
+ var command = new GetCurrentUserDataCommand(args);
1085
+ if (typeof optionsOrCb === "function") {
1086
+ this.send(command, optionsOrCb);
1087
+ }
1088
+ else if (typeof cb === "function") {
1089
+ if (typeof optionsOrCb !== "object")
1090
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1091
+ this.send(command, optionsOrCb || {}, cb);
1092
+ }
1093
+ else {
1094
+ return this.send(command, optionsOrCb);
1095
+ }
1096
+ };
1048
1097
  Connect.prototype.getFederationToken = function (args, optionsOrCb, cb) {
1049
1098
  var command = new GetFederationTokenCommand(args);
1050
1099
  if (typeof optionsOrCb === "function") {
@@ -1073,6 +1122,20 @@ var Connect = (function (_super) {
1073
1122
  return this.send(command, optionsOrCb);
1074
1123
  }
1075
1124
  };
1125
+ Connect.prototype.getTaskTemplate = function (args, optionsOrCb, cb) {
1126
+ var command = new GetTaskTemplateCommand(args);
1127
+ if (typeof optionsOrCb === "function") {
1128
+ this.send(command, optionsOrCb);
1129
+ }
1130
+ else if (typeof cb === "function") {
1131
+ if (typeof optionsOrCb !== "object")
1132
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1133
+ this.send(command, optionsOrCb || {}, cb);
1134
+ }
1135
+ else {
1136
+ return this.send(command, optionsOrCb);
1137
+ }
1138
+ };
1076
1139
  Connect.prototype.listAgentStatuses = function (args, optionsOrCb, cb) {
1077
1140
  var command = new ListAgentStatusesCommand(args);
1078
1141
  if (typeof optionsOrCb === "function") {
@@ -1437,6 +1500,20 @@ var Connect = (function (_super) {
1437
1500
  return this.send(command, optionsOrCb);
1438
1501
  }
1439
1502
  };
1503
+ Connect.prototype.listTaskTemplates = function (args, optionsOrCb, cb) {
1504
+ var command = new ListTaskTemplatesCommand(args);
1505
+ if (typeof optionsOrCb === "function") {
1506
+ this.send(command, optionsOrCb);
1507
+ }
1508
+ else if (typeof cb === "function") {
1509
+ if (typeof optionsOrCb !== "object")
1510
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1511
+ this.send(command, optionsOrCb || {}, cb);
1512
+ }
1513
+ else {
1514
+ return this.send(command, optionsOrCb);
1515
+ }
1516
+ };
1440
1517
  Connect.prototype.listUseCases = function (args, optionsOrCb, cb) {
1441
1518
  var command = new ListUseCasesCommand(args);
1442
1519
  if (typeof optionsOrCb === "function") {
@@ -1703,6 +1780,20 @@ var Connect = (function (_super) {
1703
1780
  return this.send(command, optionsOrCb);
1704
1781
  }
1705
1782
  };
1783
+ Connect.prototype.transferContact = function (args, optionsOrCb, cb) {
1784
+ var command = new TransferContactCommand(args);
1785
+ if (typeof optionsOrCb === "function") {
1786
+ this.send(command, optionsOrCb);
1787
+ }
1788
+ else if (typeof cb === "function") {
1789
+ if (typeof optionsOrCb !== "object")
1790
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1791
+ this.send(command, optionsOrCb || {}, cb);
1792
+ }
1793
+ else {
1794
+ return this.send(command, optionsOrCb);
1795
+ }
1796
+ };
1706
1797
  Connect.prototype.untagResource = function (args, optionsOrCb, cb) {
1707
1798
  var command = new UntagResourceCommand(args);
1708
1799
  if (typeof optionsOrCb === "function") {
@@ -2067,6 +2158,20 @@ var Connect = (function (_super) {
2067
2158
  return this.send(command, optionsOrCb);
2068
2159
  }
2069
2160
  };
2161
+ Connect.prototype.updateTaskTemplate = function (args, optionsOrCb, cb) {
2162
+ var command = new UpdateTaskTemplateCommand(args);
2163
+ if (typeof optionsOrCb === "function") {
2164
+ this.send(command, optionsOrCb);
2165
+ }
2166
+ else if (typeof cb === "function") {
2167
+ if (typeof optionsOrCb !== "object")
2168
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
2169
+ this.send(command, optionsOrCb || {}, cb);
2170
+ }
2171
+ else {
2172
+ return this.send(command, optionsOrCb);
2173
+ }
2174
+ };
2070
2175
  Connect.prototype.updateUserHierarchy = function (args, optionsOrCb, cb) {
2071
2176
  var command = new UpdateUserHierarchyCommand(args);
2072
2177
  if (typeof optionsOrCb === "function") {
@@ -3,6 +3,7 @@ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-re
3
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
5
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
6
7
  import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
7
8
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
@@ -25,6 +26,7 @@ var ConnectClient = (function (_super) {
25
26
  _this.middlewareStack.use(getContentLengthPlugin(_this.config));
26
27
  _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
27
28
  _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
28
30
  _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
29
31
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
30
32
  return _this;
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateTaskTemplateRequest, CreateTaskTemplateResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreateTaskTemplateCommand, serializeAws_restJson1CreateTaskTemplateCommand, } from "../protocols/Aws_restJson1";
6
+ var CreateTaskTemplateCommand = (function (_super) {
7
+ __extends(CreateTaskTemplateCommand, _super);
8
+ function CreateTaskTemplateCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateTaskTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "CreateTaskTemplateCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateTaskTemplateRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateTaskTemplateResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateTaskTemplateCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1CreateTaskTemplateCommand(input, context);
33
+ };
34
+ CreateTaskTemplateCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1CreateTaskTemplateCommand(output, context);
36
+ };
37
+ return CreateTaskTemplateCommand;
38
+ }($Command));
39
+ export { CreateTaskTemplateCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteTaskTemplateRequest, DeleteTaskTemplateResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteTaskTemplateCommand, serializeAws_restJson1DeleteTaskTemplateCommand, } from "../protocols/Aws_restJson1";
6
+ var DeleteTaskTemplateCommand = (function (_super) {
7
+ __extends(DeleteTaskTemplateCommand, _super);
8
+ function DeleteTaskTemplateCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteTaskTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "DeleteTaskTemplateCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteTaskTemplateRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteTaskTemplateResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteTaskTemplateCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DeleteTaskTemplateCommand(input, context);
33
+ };
34
+ DeleteTaskTemplateCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DeleteTaskTemplateCommand(output, context);
36
+ };
37
+ return DeleteTaskTemplateCommand;
38
+ }($Command));
39
+ export { DeleteTaskTemplateCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetCurrentUserDataRequest, GetCurrentUserDataResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetCurrentUserDataCommand, serializeAws_restJson1GetCurrentUserDataCommand, } from "../protocols/Aws_restJson1";
6
+ var GetCurrentUserDataCommand = (function (_super) {
7
+ __extends(GetCurrentUserDataCommand, _super);
8
+ function GetCurrentUserDataCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetCurrentUserDataCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "GetCurrentUserDataCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetCurrentUserDataRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetCurrentUserDataResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetCurrentUserDataCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1GetCurrentUserDataCommand(input, context);
33
+ };
34
+ GetCurrentUserDataCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1GetCurrentUserDataCommand(output, context);
36
+ };
37
+ return GetCurrentUserDataCommand;
38
+ }($Command));
39
+ export { GetCurrentUserDataCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetTaskTemplateRequest, GetTaskTemplateResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetTaskTemplateCommand, serializeAws_restJson1GetTaskTemplateCommand, } from "../protocols/Aws_restJson1";
6
+ var GetTaskTemplateCommand = (function (_super) {
7
+ __extends(GetTaskTemplateCommand, _super);
8
+ function GetTaskTemplateCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetTaskTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "GetTaskTemplateCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetTaskTemplateRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetTaskTemplateResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetTaskTemplateCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1GetTaskTemplateCommand(input, context);
33
+ };
34
+ GetTaskTemplateCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1GetTaskTemplateCommand(output, context);
36
+ };
37
+ return GetTaskTemplateCommand;
38
+ }($Command));
39
+ export { GetTaskTemplateCommand };
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListQueuesRequest, ListQueuesResponse } from "../models/models_0";
4
+ import { ListQueuesRequest, ListQueuesResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListQueuesCommand, serializeAws_restJson1ListQueuesCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListQueuesCommand = (function (_super) {
7
7
  __extends(ListQueuesCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListQuickConnectsRequest, ListQuickConnectsResponse } from "../models/models_0";
4
+ import { ListQuickConnectsRequest, ListQuickConnectsResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListQuickConnectsCommand, serializeAws_restJson1ListQuickConnectsCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListQuickConnectsCommand = (function (_super) {
7
7
  __extends(ListQuickConnectsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListRoutingProfileQueuesRequest, ListRoutingProfileQueuesResponse } from "../models/models_0";
4
+ import { ListRoutingProfileQueuesRequest, ListRoutingProfileQueuesResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListRoutingProfileQueuesCommand, serializeAws_restJson1ListRoutingProfileQueuesCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListRoutingProfileQueuesCommand = (function (_super) {
7
7
  __extends(ListRoutingProfileQueuesCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListRoutingProfilesRequest, ListRoutingProfilesResponse } from "../models/models_0";
4
+ import { ListRoutingProfilesRequest, ListRoutingProfilesResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListRoutingProfilesCommand, serializeAws_restJson1ListRoutingProfilesCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListRoutingProfilesCommand = (function (_super) {
7
7
  __extends(ListRoutingProfilesCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListSecurityKeysRequest, ListSecurityKeysResponse } from "../models/models_0";
4
+ import { ListSecurityKeysRequest, ListSecurityKeysResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListSecurityKeysCommand, serializeAws_restJson1ListSecurityKeysCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListSecurityKeysCommand = (function (_super) {
7
7
  __extends(ListSecurityKeysCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListSecurityProfilePermissionsRequest, ListSecurityProfilePermissionsResponse } from "../models/models_0";
4
+ import { ListSecurityProfilePermissionsRequest, ListSecurityProfilePermissionsResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListSecurityProfilePermissionsCommand, serializeAws_restJson1ListSecurityProfilePermissionsCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListSecurityProfilePermissionsCommand = (function (_super) {
7
7
  __extends(ListSecurityProfilePermissionsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListSecurityProfilesRequest, ListSecurityProfilesResponse } from "../models/models_0";
4
+ import { ListSecurityProfilesRequest, ListSecurityProfilesResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListSecurityProfilesCommand, serializeAws_restJson1ListSecurityProfilesCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListSecurityProfilesCommand = (function (_super) {
7
7
  __extends(ListSecurityProfilesCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
4
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListTagsForResourceCommand = (function (_super) {
7
7
  __extends(ListTagsForResourceCommand, _super);
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListTaskTemplatesRequest, ListTaskTemplatesResponse } from "../models/models_1";
5
+ import { deserializeAws_restJson1ListTaskTemplatesCommand, serializeAws_restJson1ListTaskTemplatesCommand, } from "../protocols/Aws_restJson1";
6
+ var ListTaskTemplatesCommand = (function (_super) {
7
+ __extends(ListTaskTemplatesCommand, _super);
8
+ function ListTaskTemplatesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListTaskTemplatesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "ListTaskTemplatesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListTaskTemplatesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListTaskTemplatesResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTaskTemplatesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListTaskTemplatesCommand(input, context);
33
+ };
34
+ ListTaskTemplatesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListTaskTemplatesCommand(output, context);
36
+ };
37
+ return ListTaskTemplatesCommand;
38
+ }($Command));
39
+ export { ListTaskTemplatesCommand };
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListUseCasesRequest, ListUseCasesResponse } from "../models/models_0";
4
+ import { ListUseCasesRequest, ListUseCasesResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListUseCasesCommand, serializeAws_restJson1ListUseCasesCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListUseCasesCommand = (function (_super) {
7
7
  __extends(ListUseCasesCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListUserHierarchyGroupsRequest, ListUserHierarchyGroupsResponse } from "../models/models_0";
4
+ import { ListUserHierarchyGroupsRequest, ListUserHierarchyGroupsResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListUserHierarchyGroupsCommand, serializeAws_restJson1ListUserHierarchyGroupsCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListUserHierarchyGroupsCommand = (function (_super) {
7
7
  __extends(ListUserHierarchyGroupsCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListUsersRequest, ListUsersResponse } from "../models/models_0";
4
+ import { ListUsersRequest, ListUsersResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListUsersCommand, serializeAws_restJson1ListUsersCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListUsersCommand = (function (_super) {
7
7
  __extends(ListUsersCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { PutUserStatusRequest, PutUserStatusResponse } from "../models/models_0";
4
+ import { PutUserStatusRequest, PutUserStatusResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1PutUserStatusCommand, serializeAws_restJson1PutUserStatusCommand, } from "../protocols/Aws_restJson1";
6
6
  var PutUserStatusCommand = (function (_super) {
7
7
  __extends(PutUserStatusCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ReleasePhoneNumberRequest } from "../models/models_0";
4
+ import { ReleasePhoneNumberRequest } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ReleasePhoneNumberCommand, serializeAws_restJson1ReleasePhoneNumberCommand, } from "../protocols/Aws_restJson1";
6
6
  var ReleasePhoneNumberCommand = (function (_super) {
7
7
  __extends(ReleasePhoneNumberCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ResumeContactRecordingRequest, ResumeContactRecordingResponse } from "../models/models_0";
4
+ import { ResumeContactRecordingRequest, ResumeContactRecordingResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ResumeContactRecordingCommand, serializeAws_restJson1ResumeContactRecordingCommand, } from "../protocols/Aws_restJson1";
6
6
  var ResumeContactRecordingCommand = (function (_super) {
7
7
  __extends(ResumeContactRecordingCommand, _super);
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { TransferContactRequest, TransferContactResponse } from "../models/models_1";
5
+ import { deserializeAws_restJson1TransferContactCommand, serializeAws_restJson1TransferContactCommand, } from "../protocols/Aws_restJson1";
6
+ var TransferContactCommand = (function (_super) {
7
+ __extends(TransferContactCommand, _super);
8
+ function TransferContactCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ TransferContactCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "TransferContactCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: TransferContactRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: TransferContactResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ TransferContactCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1TransferContactCommand(input, context);
33
+ };
34
+ TransferContactCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1TransferContactCommand(output, context);
36
+ };
37
+ return TransferContactCommand;
38
+ }($Command));
39
+ export { TransferContactCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateTaskTemplateRequest, UpdateTaskTemplateResponse } from "../models/models_1";
5
+ import { deserializeAws_restJson1UpdateTaskTemplateCommand, serializeAws_restJson1UpdateTaskTemplateCommand, } from "../protocols/Aws_restJson1";
6
+ var UpdateTaskTemplateCommand = (function (_super) {
7
+ __extends(UpdateTaskTemplateCommand, _super);
8
+ function UpdateTaskTemplateCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateTaskTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "UpdateTaskTemplateCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateTaskTemplateRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateTaskTemplateResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateTaskTemplateCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1UpdateTaskTemplateCommand(input, context);
33
+ };
34
+ UpdateTaskTemplateCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1UpdateTaskTemplateCommand(output, context);
36
+ };
37
+ return UpdateTaskTemplateCommand;
38
+ }($Command));
39
+ export { UpdateTaskTemplateCommand };