@aws-sdk/client-transfer 3.131.0 → 3.142.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 (193) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +10 -10
  3. package/dist-cjs/Transfer.js +315 -0
  4. package/dist-cjs/commands/CreateAccessCommand.js +2 -2
  5. package/dist-cjs/commands/CreateAgreementCommand.js +36 -0
  6. package/dist-cjs/commands/CreateConnectorCommand.js +36 -0
  7. package/dist-cjs/commands/CreateProfileCommand.js +36 -0
  8. package/dist-cjs/commands/CreateServerCommand.js +2 -2
  9. package/dist-cjs/commands/CreateUserCommand.js +2 -2
  10. package/dist-cjs/commands/CreateWorkflowCommand.js +2 -2
  11. package/dist-cjs/commands/DeleteAccessCommand.js +1 -1
  12. package/dist-cjs/commands/DeleteAgreementCommand.js +36 -0
  13. package/dist-cjs/commands/DeleteCertificateCommand.js +36 -0
  14. package/dist-cjs/commands/DeleteConnectorCommand.js +36 -0
  15. package/dist-cjs/commands/DeleteProfileCommand.js +36 -0
  16. package/dist-cjs/commands/DeleteServerCommand.js +1 -1
  17. package/dist-cjs/commands/DeleteSshPublicKeyCommand.js +1 -1
  18. package/dist-cjs/commands/DeleteUserCommand.js +1 -1
  19. package/dist-cjs/commands/DeleteWorkflowCommand.js +1 -1
  20. package/dist-cjs/commands/DescribeAccessCommand.js +2 -2
  21. package/dist-cjs/commands/DescribeAgreementCommand.js +36 -0
  22. package/dist-cjs/commands/DescribeCertificateCommand.js +36 -0
  23. package/dist-cjs/commands/DescribeConnectorCommand.js +36 -0
  24. package/dist-cjs/commands/DescribeExecutionCommand.js +2 -2
  25. package/dist-cjs/commands/DescribeProfileCommand.js +36 -0
  26. package/dist-cjs/commands/DescribeSecurityPolicyCommand.js +2 -2
  27. package/dist-cjs/commands/DescribeServerCommand.js +2 -2
  28. package/dist-cjs/commands/DescribeUserCommand.js +2 -2
  29. package/dist-cjs/commands/DescribeWorkflowCommand.js +2 -2
  30. package/dist-cjs/commands/ImportCertificateCommand.js +36 -0
  31. package/dist-cjs/commands/ImportSshPublicKeyCommand.js +2 -2
  32. package/dist-cjs/commands/ListAccessesCommand.js +2 -2
  33. package/dist-cjs/commands/ListAgreementsCommand.js +36 -0
  34. package/dist-cjs/commands/ListCertificatesCommand.js +36 -0
  35. package/dist-cjs/commands/ListConnectorsCommand.js +36 -0
  36. package/dist-cjs/commands/ListExecutionsCommand.js +2 -2
  37. package/dist-cjs/commands/ListProfilesCommand.js +36 -0
  38. package/dist-cjs/commands/ListSecurityPoliciesCommand.js +2 -2
  39. package/dist-cjs/commands/ListServersCommand.js +2 -2
  40. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  41. package/dist-cjs/commands/ListUsersCommand.js +2 -2
  42. package/dist-cjs/commands/ListWorkflowsCommand.js +2 -2
  43. package/dist-cjs/commands/SendWorkflowStepStateCommand.js +2 -2
  44. package/dist-cjs/commands/StartFileTransferCommand.js +36 -0
  45. package/dist-cjs/commands/StartServerCommand.js +1 -1
  46. package/dist-cjs/commands/StopServerCommand.js +1 -1
  47. package/dist-cjs/commands/TagResourceCommand.js +1 -1
  48. package/dist-cjs/commands/TestIdentityProviderCommand.js +2 -2
  49. package/dist-cjs/commands/UntagResourceCommand.js +1 -1
  50. package/dist-cjs/commands/UpdateAccessCommand.js +2 -2
  51. package/dist-cjs/commands/UpdateAgreementCommand.js +36 -0
  52. package/dist-cjs/commands/UpdateCertificateCommand.js +36 -0
  53. package/dist-cjs/commands/UpdateConnectorCommand.js +36 -0
  54. package/dist-cjs/commands/UpdateProfileCommand.js +36 -0
  55. package/dist-cjs/commands/UpdateServerCommand.js +2 -2
  56. package/dist-cjs/commands/UpdateUserCommand.js +2 -2
  57. package/dist-cjs/commands/index.js +21 -0
  58. package/dist-cjs/models/models_0.js +633 -558
  59. package/dist-cjs/pagination/ListAgreementsPaginator.js +36 -0
  60. package/dist-cjs/pagination/ListCertificatesPaginator.js +36 -0
  61. package/dist-cjs/pagination/ListConnectorsPaginator.js +36 -0
  62. package/dist-cjs/pagination/ListProfilesPaginator.js +36 -0
  63. package/dist-cjs/pagination/index.js +4 -0
  64. package/dist-cjs/protocols/Aws_json1_1.js +1840 -383
  65. package/dist-es/Transfer.js +315 -0
  66. package/dist-es/commands/CreateAccessCommand.js +3 -3
  67. package/dist-es/commands/CreateAgreementCommand.js +39 -0
  68. package/dist-es/commands/CreateConnectorCommand.js +39 -0
  69. package/dist-es/commands/CreateProfileCommand.js +39 -0
  70. package/dist-es/commands/CreateServerCommand.js +3 -3
  71. package/dist-es/commands/CreateUserCommand.js +3 -3
  72. package/dist-es/commands/CreateWorkflowCommand.js +3 -3
  73. package/dist-es/commands/DeleteAccessCommand.js +2 -2
  74. package/dist-es/commands/DeleteAgreementCommand.js +39 -0
  75. package/dist-es/commands/DeleteCertificateCommand.js +39 -0
  76. package/dist-es/commands/DeleteConnectorCommand.js +39 -0
  77. package/dist-es/commands/DeleteProfileCommand.js +39 -0
  78. package/dist-es/commands/DeleteServerCommand.js +2 -2
  79. package/dist-es/commands/DeleteSshPublicKeyCommand.js +2 -2
  80. package/dist-es/commands/DeleteUserCommand.js +2 -2
  81. package/dist-es/commands/DeleteWorkflowCommand.js +2 -2
  82. package/dist-es/commands/DescribeAccessCommand.js +3 -3
  83. package/dist-es/commands/DescribeAgreementCommand.js +39 -0
  84. package/dist-es/commands/DescribeCertificateCommand.js +39 -0
  85. package/dist-es/commands/DescribeConnectorCommand.js +39 -0
  86. package/dist-es/commands/DescribeExecutionCommand.js +3 -3
  87. package/dist-es/commands/DescribeProfileCommand.js +39 -0
  88. package/dist-es/commands/DescribeSecurityPolicyCommand.js +3 -3
  89. package/dist-es/commands/DescribeServerCommand.js +3 -3
  90. package/dist-es/commands/DescribeUserCommand.js +3 -3
  91. package/dist-es/commands/DescribeWorkflowCommand.js +3 -3
  92. package/dist-es/commands/ImportCertificateCommand.js +39 -0
  93. package/dist-es/commands/ImportSshPublicKeyCommand.js +3 -3
  94. package/dist-es/commands/ListAccessesCommand.js +3 -3
  95. package/dist-es/commands/ListAgreementsCommand.js +39 -0
  96. package/dist-es/commands/ListCertificatesCommand.js +39 -0
  97. package/dist-es/commands/ListConnectorsCommand.js +39 -0
  98. package/dist-es/commands/ListExecutionsCommand.js +3 -3
  99. package/dist-es/commands/ListProfilesCommand.js +39 -0
  100. package/dist-es/commands/ListSecurityPoliciesCommand.js +3 -3
  101. package/dist-es/commands/ListServersCommand.js +3 -3
  102. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  103. package/dist-es/commands/ListUsersCommand.js +3 -3
  104. package/dist-es/commands/ListWorkflowsCommand.js +3 -3
  105. package/dist-es/commands/SendWorkflowStepStateCommand.js +3 -3
  106. package/dist-es/commands/StartFileTransferCommand.js +39 -0
  107. package/dist-es/commands/StartServerCommand.js +2 -2
  108. package/dist-es/commands/StopServerCommand.js +2 -2
  109. package/dist-es/commands/TagResourceCommand.js +2 -2
  110. package/dist-es/commands/TestIdentityProviderCommand.js +3 -3
  111. package/dist-es/commands/UntagResourceCommand.js +2 -2
  112. package/dist-es/commands/UpdateAccessCommand.js +3 -3
  113. package/dist-es/commands/UpdateAgreementCommand.js +39 -0
  114. package/dist-es/commands/UpdateCertificateCommand.js +39 -0
  115. package/dist-es/commands/UpdateConnectorCommand.js +39 -0
  116. package/dist-es/commands/UpdateProfileCommand.js +39 -0
  117. package/dist-es/commands/UpdateServerCommand.js +3 -3
  118. package/dist-es/commands/UpdateUserCommand.js +3 -3
  119. package/dist-es/commands/index.js +21 -0
  120. package/dist-es/models/models_0.js +203 -368
  121. package/dist-es/pagination/ListAgreementsPaginator.js +75 -0
  122. package/dist-es/pagination/ListCertificatesPaginator.js +75 -0
  123. package/dist-es/pagination/ListConnectorsPaginator.js +75 -0
  124. package/dist-es/pagination/ListProfilesPaginator.js +75 -0
  125. package/dist-es/pagination/index.js +4 -0
  126. package/dist-es/protocols/Aws_json1_1.js +2633 -716
  127. package/dist-types/Transfer.d.ts +190 -13
  128. package/dist-types/TransferClient.d.ts +32 -11
  129. package/dist-types/commands/CreateAccessCommand.d.ts +1 -1
  130. package/dist-types/commands/CreateAgreementCommand.d.ts +40 -0
  131. package/dist-types/commands/CreateConnectorCommand.d.ts +37 -0
  132. package/dist-types/commands/CreateProfileCommand.d.ts +36 -0
  133. package/dist-types/commands/CreateUserCommand.d.ts +1 -1
  134. package/dist-types/commands/DeleteAgreementCommand.d.ts +35 -0
  135. package/dist-types/commands/DeleteCertificateCommand.d.ts +36 -0
  136. package/dist-types/commands/DeleteConnectorCommand.d.ts +35 -0
  137. package/dist-types/commands/DeleteProfileCommand.d.ts +35 -0
  138. package/dist-types/commands/DescribeAccessCommand.d.ts +1 -1
  139. package/dist-types/commands/DescribeAgreementCommand.d.ts +35 -0
  140. package/dist-types/commands/DescribeCertificateCommand.d.ts +35 -0
  141. package/dist-types/commands/DescribeConnectorCommand.d.ts +36 -0
  142. package/dist-types/commands/DescribeProfileCommand.d.ts +35 -0
  143. package/dist-types/commands/ImportCertificateCommand.d.ts +37 -0
  144. package/dist-types/commands/ListAgreementsCommand.d.ts +39 -0
  145. package/dist-types/commands/ListCertificatesCommand.d.ts +39 -0
  146. package/dist-types/commands/ListConnectorsCommand.d.ts +35 -0
  147. package/dist-types/commands/ListProfilesCommand.d.ts +38 -0
  148. package/dist-types/commands/StartFileTransferCommand.d.ts +36 -0
  149. package/dist-types/commands/StopServerCommand.d.ts +1 -1
  150. package/dist-types/commands/UpdateAgreementCommand.d.ts +37 -0
  151. package/dist-types/commands/UpdateCertificateCommand.d.ts +35 -0
  152. package/dist-types/commands/UpdateConnectorCommand.d.ts +37 -0
  153. package/dist-types/commands/UpdateProfileCommand.d.ts +37 -0
  154. package/dist-types/commands/index.d.ts +21 -0
  155. package/dist-types/models/models_0.d.ts +1717 -788
  156. package/dist-types/pagination/ListAgreementsPaginator.d.ts +4 -0
  157. package/dist-types/pagination/ListCertificatesPaginator.d.ts +4 -0
  158. package/dist-types/pagination/ListConnectorsPaginator.d.ts +4 -0
  159. package/dist-types/pagination/ListProfilesPaginator.d.ts +4 -0
  160. package/dist-types/pagination/index.d.ts +4 -0
  161. package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
  162. package/dist-types/ts3.4/Transfer.d.ts +105 -0
  163. package/dist-types/ts3.4/TransferClient.d.ts +23 -2
  164. package/dist-types/ts3.4/commands/CreateAgreementCommand.d.ts +17 -0
  165. package/dist-types/ts3.4/commands/CreateConnectorCommand.d.ts +17 -0
  166. package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +17 -0
  167. package/dist-types/ts3.4/commands/DeleteAgreementCommand.d.ts +17 -0
  168. package/dist-types/ts3.4/commands/DeleteCertificateCommand.d.ts +17 -0
  169. package/dist-types/ts3.4/commands/DeleteConnectorCommand.d.ts +17 -0
  170. package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +17 -0
  171. package/dist-types/ts3.4/commands/DescribeAgreementCommand.d.ts +17 -0
  172. package/dist-types/ts3.4/commands/DescribeCertificateCommand.d.ts +17 -0
  173. package/dist-types/ts3.4/commands/DescribeConnectorCommand.d.ts +17 -0
  174. package/dist-types/ts3.4/commands/DescribeProfileCommand.d.ts +17 -0
  175. package/dist-types/ts3.4/commands/ImportCertificateCommand.d.ts +17 -0
  176. package/dist-types/ts3.4/commands/ListAgreementsCommand.d.ts +17 -0
  177. package/dist-types/ts3.4/commands/ListCertificatesCommand.d.ts +17 -0
  178. package/dist-types/ts3.4/commands/ListConnectorsCommand.d.ts +17 -0
  179. package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +17 -0
  180. package/dist-types/ts3.4/commands/StartFileTransferCommand.d.ts +17 -0
  181. package/dist-types/ts3.4/commands/UpdateAgreementCommand.d.ts +17 -0
  182. package/dist-types/ts3.4/commands/UpdateCertificateCommand.d.ts +17 -0
  183. package/dist-types/ts3.4/commands/UpdateConnectorCommand.d.ts +17 -0
  184. package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +17 -0
  185. package/dist-types/ts3.4/commands/index.d.ts +21 -0
  186. package/dist-types/ts3.4/models/models_0.d.ts +733 -357
  187. package/dist-types/ts3.4/pagination/ListAgreementsPaginator.d.ts +4 -0
  188. package/dist-types/ts3.4/pagination/ListCertificatesPaginator.d.ts +4 -0
  189. package/dist-types/ts3.4/pagination/ListConnectorsPaginator.d.ts +4 -0
  190. package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +4 -0
  191. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  192. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +63 -0
  193. package/package.json +6 -6
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_json1_1ListExecutionsCommand = exports.deserializeAws_json1_1ListAccessesCommand = exports.deserializeAws_json1_1ImportSshPublicKeyCommand = exports.deserializeAws_json1_1DescribeWorkflowCommand = exports.deserializeAws_json1_1DescribeUserCommand = exports.deserializeAws_json1_1DescribeServerCommand = exports.deserializeAws_json1_1DescribeSecurityPolicyCommand = exports.deserializeAws_json1_1DescribeExecutionCommand = exports.deserializeAws_json1_1DescribeAccessCommand = exports.deserializeAws_json1_1DeleteWorkflowCommand = exports.deserializeAws_json1_1DeleteUserCommand = exports.deserializeAws_json1_1DeleteSshPublicKeyCommand = exports.deserializeAws_json1_1DeleteServerCommand = exports.deserializeAws_json1_1DeleteAccessCommand = exports.deserializeAws_json1_1CreateWorkflowCommand = exports.deserializeAws_json1_1CreateUserCommand = exports.deserializeAws_json1_1CreateServerCommand = exports.deserializeAws_json1_1CreateAccessCommand = exports.serializeAws_json1_1UpdateUserCommand = exports.serializeAws_json1_1UpdateServerCommand = exports.serializeAws_json1_1UpdateAccessCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TestIdentityProviderCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopServerCommand = exports.serializeAws_json1_1StartServerCommand = exports.serializeAws_json1_1SendWorkflowStepStateCommand = exports.serializeAws_json1_1ListWorkflowsCommand = exports.serializeAws_json1_1ListUsersCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListServersCommand = exports.serializeAws_json1_1ListSecurityPoliciesCommand = exports.serializeAws_json1_1ListExecutionsCommand = exports.serializeAws_json1_1ListAccessesCommand = exports.serializeAws_json1_1ImportSshPublicKeyCommand = exports.serializeAws_json1_1DescribeWorkflowCommand = exports.serializeAws_json1_1DescribeUserCommand = exports.serializeAws_json1_1DescribeServerCommand = exports.serializeAws_json1_1DescribeSecurityPolicyCommand = exports.serializeAws_json1_1DescribeExecutionCommand = exports.serializeAws_json1_1DescribeAccessCommand = exports.serializeAws_json1_1DeleteWorkflowCommand = exports.serializeAws_json1_1DeleteUserCommand = exports.serializeAws_json1_1DeleteSshPublicKeyCommand = exports.serializeAws_json1_1DeleteServerCommand = exports.serializeAws_json1_1DeleteAccessCommand = exports.serializeAws_json1_1CreateWorkflowCommand = exports.serializeAws_json1_1CreateUserCommand = exports.serializeAws_json1_1CreateServerCommand = exports.serializeAws_json1_1CreateAccessCommand = void 0;
4
- exports.deserializeAws_json1_1UpdateUserCommand = exports.deserializeAws_json1_1UpdateServerCommand = exports.deserializeAws_json1_1UpdateAccessCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TestIdentityProviderCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopServerCommand = exports.deserializeAws_json1_1StartServerCommand = exports.deserializeAws_json1_1SendWorkflowStepStateCommand = exports.deserializeAws_json1_1ListWorkflowsCommand = exports.deserializeAws_json1_1ListUsersCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListServersCommand = exports.deserializeAws_json1_1ListSecurityPoliciesCommand = void 0;
3
+ exports.serializeAws_json1_1UpdateConnectorCommand = exports.serializeAws_json1_1UpdateCertificateCommand = exports.serializeAws_json1_1UpdateAgreementCommand = exports.serializeAws_json1_1UpdateAccessCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TestIdentityProviderCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopServerCommand = exports.serializeAws_json1_1StartServerCommand = exports.serializeAws_json1_1StartFileTransferCommand = exports.serializeAws_json1_1SendWorkflowStepStateCommand = exports.serializeAws_json1_1ListWorkflowsCommand = exports.serializeAws_json1_1ListUsersCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListServersCommand = exports.serializeAws_json1_1ListSecurityPoliciesCommand = exports.serializeAws_json1_1ListProfilesCommand = exports.serializeAws_json1_1ListExecutionsCommand = exports.serializeAws_json1_1ListConnectorsCommand = exports.serializeAws_json1_1ListCertificatesCommand = exports.serializeAws_json1_1ListAgreementsCommand = exports.serializeAws_json1_1ListAccessesCommand = exports.serializeAws_json1_1ImportSshPublicKeyCommand = exports.serializeAws_json1_1ImportCertificateCommand = exports.serializeAws_json1_1DescribeWorkflowCommand = exports.serializeAws_json1_1DescribeUserCommand = exports.serializeAws_json1_1DescribeServerCommand = exports.serializeAws_json1_1DescribeSecurityPolicyCommand = exports.serializeAws_json1_1DescribeProfileCommand = exports.serializeAws_json1_1DescribeExecutionCommand = exports.serializeAws_json1_1DescribeConnectorCommand = exports.serializeAws_json1_1DescribeCertificateCommand = exports.serializeAws_json1_1DescribeAgreementCommand = exports.serializeAws_json1_1DescribeAccessCommand = exports.serializeAws_json1_1DeleteWorkflowCommand = exports.serializeAws_json1_1DeleteUserCommand = exports.serializeAws_json1_1DeleteSshPublicKeyCommand = exports.serializeAws_json1_1DeleteServerCommand = exports.serializeAws_json1_1DeleteProfileCommand = exports.serializeAws_json1_1DeleteConnectorCommand = exports.serializeAws_json1_1DeleteCertificateCommand = exports.serializeAws_json1_1DeleteAgreementCommand = exports.serializeAws_json1_1DeleteAccessCommand = exports.serializeAws_json1_1CreateWorkflowCommand = exports.serializeAws_json1_1CreateUserCommand = exports.serializeAws_json1_1CreateServerCommand = exports.serializeAws_json1_1CreateProfileCommand = exports.serializeAws_json1_1CreateConnectorCommand = exports.serializeAws_json1_1CreateAgreementCommand = exports.serializeAws_json1_1CreateAccessCommand = void 0;
4
+ exports.deserializeAws_json1_1UpdateAccessCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TestIdentityProviderCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopServerCommand = exports.deserializeAws_json1_1StartServerCommand = exports.deserializeAws_json1_1StartFileTransferCommand = exports.deserializeAws_json1_1SendWorkflowStepStateCommand = exports.deserializeAws_json1_1ListWorkflowsCommand = exports.deserializeAws_json1_1ListUsersCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListServersCommand = exports.deserializeAws_json1_1ListSecurityPoliciesCommand = exports.deserializeAws_json1_1ListProfilesCommand = exports.deserializeAws_json1_1ListExecutionsCommand = exports.deserializeAws_json1_1ListConnectorsCommand = exports.deserializeAws_json1_1ListCertificatesCommand = exports.deserializeAws_json1_1ListAgreementsCommand = exports.deserializeAws_json1_1ListAccessesCommand = exports.deserializeAws_json1_1ImportSshPublicKeyCommand = exports.deserializeAws_json1_1ImportCertificateCommand = exports.deserializeAws_json1_1DescribeWorkflowCommand = exports.deserializeAws_json1_1DescribeUserCommand = exports.deserializeAws_json1_1DescribeServerCommand = exports.deserializeAws_json1_1DescribeSecurityPolicyCommand = exports.deserializeAws_json1_1DescribeProfileCommand = exports.deserializeAws_json1_1DescribeExecutionCommand = exports.deserializeAws_json1_1DescribeConnectorCommand = exports.deserializeAws_json1_1DescribeCertificateCommand = exports.deserializeAws_json1_1DescribeAgreementCommand = exports.deserializeAws_json1_1DescribeAccessCommand = exports.deserializeAws_json1_1DeleteWorkflowCommand = exports.deserializeAws_json1_1DeleteUserCommand = exports.deserializeAws_json1_1DeleteSshPublicKeyCommand = exports.deserializeAws_json1_1DeleteServerCommand = exports.deserializeAws_json1_1DeleteProfileCommand = exports.deserializeAws_json1_1DeleteConnectorCommand = exports.deserializeAws_json1_1DeleteCertificateCommand = exports.deserializeAws_json1_1DeleteAgreementCommand = exports.deserializeAws_json1_1DeleteAccessCommand = exports.deserializeAws_json1_1CreateWorkflowCommand = exports.deserializeAws_json1_1CreateUserCommand = exports.deserializeAws_json1_1CreateServerCommand = exports.deserializeAws_json1_1CreateProfileCommand = exports.deserializeAws_json1_1CreateConnectorCommand = exports.deserializeAws_json1_1CreateAgreementCommand = exports.deserializeAws_json1_1CreateAccessCommand = exports.serializeAws_json1_1UpdateUserCommand = exports.serializeAws_json1_1UpdateServerCommand = exports.serializeAws_json1_1UpdateProfileCommand = void 0;
5
+ exports.deserializeAws_json1_1UpdateUserCommand = exports.deserializeAws_json1_1UpdateServerCommand = exports.deserializeAws_json1_1UpdateProfileCommand = exports.deserializeAws_json1_1UpdateConnectorCommand = exports.deserializeAws_json1_1UpdateCertificateCommand = exports.deserializeAws_json1_1UpdateAgreementCommand = void 0;
5
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
8
  const models_0_1 = require("../models/models_0");
@@ -16,6 +17,36 @@ const serializeAws_json1_1CreateAccessCommand = async (input, context) => {
16
17
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
18
  };
18
19
  exports.serializeAws_json1_1CreateAccessCommand = serializeAws_json1_1CreateAccessCommand;
20
+ const serializeAws_json1_1CreateAgreementCommand = async (input, context) => {
21
+ const headers = {
22
+ "content-type": "application/x-amz-json-1.1",
23
+ "x-amz-target": "TransferService.CreateAgreement",
24
+ };
25
+ let body;
26
+ body = JSON.stringify(serializeAws_json1_1CreateAgreementRequest(input, context));
27
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
+ };
29
+ exports.serializeAws_json1_1CreateAgreementCommand = serializeAws_json1_1CreateAgreementCommand;
30
+ const serializeAws_json1_1CreateConnectorCommand = async (input, context) => {
31
+ const headers = {
32
+ "content-type": "application/x-amz-json-1.1",
33
+ "x-amz-target": "TransferService.CreateConnector",
34
+ };
35
+ let body;
36
+ body = JSON.stringify(serializeAws_json1_1CreateConnectorRequest(input, context));
37
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
38
+ };
39
+ exports.serializeAws_json1_1CreateConnectorCommand = serializeAws_json1_1CreateConnectorCommand;
40
+ const serializeAws_json1_1CreateProfileCommand = async (input, context) => {
41
+ const headers = {
42
+ "content-type": "application/x-amz-json-1.1",
43
+ "x-amz-target": "TransferService.CreateProfile",
44
+ };
45
+ let body;
46
+ body = JSON.stringify(serializeAws_json1_1CreateProfileRequest(input, context));
47
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
+ };
49
+ exports.serializeAws_json1_1CreateProfileCommand = serializeAws_json1_1CreateProfileCommand;
19
50
  const serializeAws_json1_1CreateServerCommand = async (input, context) => {
20
51
  const headers = {
21
52
  "content-type": "application/x-amz-json-1.1",
@@ -56,6 +87,46 @@ const serializeAws_json1_1DeleteAccessCommand = async (input, context) => {
56
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
88
  };
58
89
  exports.serializeAws_json1_1DeleteAccessCommand = serializeAws_json1_1DeleteAccessCommand;
90
+ const serializeAws_json1_1DeleteAgreementCommand = async (input, context) => {
91
+ const headers = {
92
+ "content-type": "application/x-amz-json-1.1",
93
+ "x-amz-target": "TransferService.DeleteAgreement",
94
+ };
95
+ let body;
96
+ body = JSON.stringify(serializeAws_json1_1DeleteAgreementRequest(input, context));
97
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
+ };
99
+ exports.serializeAws_json1_1DeleteAgreementCommand = serializeAws_json1_1DeleteAgreementCommand;
100
+ const serializeAws_json1_1DeleteCertificateCommand = async (input, context) => {
101
+ const headers = {
102
+ "content-type": "application/x-amz-json-1.1",
103
+ "x-amz-target": "TransferService.DeleteCertificate",
104
+ };
105
+ let body;
106
+ body = JSON.stringify(serializeAws_json1_1DeleteCertificateRequest(input, context));
107
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
+ };
109
+ exports.serializeAws_json1_1DeleteCertificateCommand = serializeAws_json1_1DeleteCertificateCommand;
110
+ const serializeAws_json1_1DeleteConnectorCommand = async (input, context) => {
111
+ const headers = {
112
+ "content-type": "application/x-amz-json-1.1",
113
+ "x-amz-target": "TransferService.DeleteConnector",
114
+ };
115
+ let body;
116
+ body = JSON.stringify(serializeAws_json1_1DeleteConnectorRequest(input, context));
117
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
+ };
119
+ exports.serializeAws_json1_1DeleteConnectorCommand = serializeAws_json1_1DeleteConnectorCommand;
120
+ const serializeAws_json1_1DeleteProfileCommand = async (input, context) => {
121
+ const headers = {
122
+ "content-type": "application/x-amz-json-1.1",
123
+ "x-amz-target": "TransferService.DeleteProfile",
124
+ };
125
+ let body;
126
+ body = JSON.stringify(serializeAws_json1_1DeleteProfileRequest(input, context));
127
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
128
+ };
129
+ exports.serializeAws_json1_1DeleteProfileCommand = serializeAws_json1_1DeleteProfileCommand;
59
130
  const serializeAws_json1_1DeleteServerCommand = async (input, context) => {
60
131
  const headers = {
61
132
  "content-type": "application/x-amz-json-1.1",
@@ -106,6 +177,36 @@ const serializeAws_json1_1DescribeAccessCommand = async (input, context) => {
106
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
178
  };
108
179
  exports.serializeAws_json1_1DescribeAccessCommand = serializeAws_json1_1DescribeAccessCommand;
180
+ const serializeAws_json1_1DescribeAgreementCommand = async (input, context) => {
181
+ const headers = {
182
+ "content-type": "application/x-amz-json-1.1",
183
+ "x-amz-target": "TransferService.DescribeAgreement",
184
+ };
185
+ let body;
186
+ body = JSON.stringify(serializeAws_json1_1DescribeAgreementRequest(input, context));
187
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
188
+ };
189
+ exports.serializeAws_json1_1DescribeAgreementCommand = serializeAws_json1_1DescribeAgreementCommand;
190
+ const serializeAws_json1_1DescribeCertificateCommand = async (input, context) => {
191
+ const headers = {
192
+ "content-type": "application/x-amz-json-1.1",
193
+ "x-amz-target": "TransferService.DescribeCertificate",
194
+ };
195
+ let body;
196
+ body = JSON.stringify(serializeAws_json1_1DescribeCertificateRequest(input, context));
197
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
+ };
199
+ exports.serializeAws_json1_1DescribeCertificateCommand = serializeAws_json1_1DescribeCertificateCommand;
200
+ const serializeAws_json1_1DescribeConnectorCommand = async (input, context) => {
201
+ const headers = {
202
+ "content-type": "application/x-amz-json-1.1",
203
+ "x-amz-target": "TransferService.DescribeConnector",
204
+ };
205
+ let body;
206
+ body = JSON.stringify(serializeAws_json1_1DescribeConnectorRequest(input, context));
207
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
208
+ };
209
+ exports.serializeAws_json1_1DescribeConnectorCommand = serializeAws_json1_1DescribeConnectorCommand;
109
210
  const serializeAws_json1_1DescribeExecutionCommand = async (input, context) => {
110
211
  const headers = {
111
212
  "content-type": "application/x-amz-json-1.1",
@@ -116,6 +217,16 @@ const serializeAws_json1_1DescribeExecutionCommand = async (input, context) => {
116
217
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
117
218
  };
118
219
  exports.serializeAws_json1_1DescribeExecutionCommand = serializeAws_json1_1DescribeExecutionCommand;
220
+ const serializeAws_json1_1DescribeProfileCommand = async (input, context) => {
221
+ const headers = {
222
+ "content-type": "application/x-amz-json-1.1",
223
+ "x-amz-target": "TransferService.DescribeProfile",
224
+ };
225
+ let body;
226
+ body = JSON.stringify(serializeAws_json1_1DescribeProfileRequest(input, context));
227
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
+ };
229
+ exports.serializeAws_json1_1DescribeProfileCommand = serializeAws_json1_1DescribeProfileCommand;
119
230
  const serializeAws_json1_1DescribeSecurityPolicyCommand = async (input, context) => {
120
231
  const headers = {
121
232
  "content-type": "application/x-amz-json-1.1",
@@ -156,6 +267,16 @@ const serializeAws_json1_1DescribeWorkflowCommand = async (input, context) => {
156
267
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
268
  };
158
269
  exports.serializeAws_json1_1DescribeWorkflowCommand = serializeAws_json1_1DescribeWorkflowCommand;
270
+ const serializeAws_json1_1ImportCertificateCommand = async (input, context) => {
271
+ const headers = {
272
+ "content-type": "application/x-amz-json-1.1",
273
+ "x-amz-target": "TransferService.ImportCertificate",
274
+ };
275
+ let body;
276
+ body = JSON.stringify(serializeAws_json1_1ImportCertificateRequest(input, context));
277
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
278
+ };
279
+ exports.serializeAws_json1_1ImportCertificateCommand = serializeAws_json1_1ImportCertificateCommand;
159
280
  const serializeAws_json1_1ImportSshPublicKeyCommand = async (input, context) => {
160
281
  const headers = {
161
282
  "content-type": "application/x-amz-json-1.1",
@@ -176,6 +297,36 @@ const serializeAws_json1_1ListAccessesCommand = async (input, context) => {
176
297
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
177
298
  };
178
299
  exports.serializeAws_json1_1ListAccessesCommand = serializeAws_json1_1ListAccessesCommand;
300
+ const serializeAws_json1_1ListAgreementsCommand = async (input, context) => {
301
+ const headers = {
302
+ "content-type": "application/x-amz-json-1.1",
303
+ "x-amz-target": "TransferService.ListAgreements",
304
+ };
305
+ let body;
306
+ body = JSON.stringify(serializeAws_json1_1ListAgreementsRequest(input, context));
307
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
308
+ };
309
+ exports.serializeAws_json1_1ListAgreementsCommand = serializeAws_json1_1ListAgreementsCommand;
310
+ const serializeAws_json1_1ListCertificatesCommand = async (input, context) => {
311
+ const headers = {
312
+ "content-type": "application/x-amz-json-1.1",
313
+ "x-amz-target": "TransferService.ListCertificates",
314
+ };
315
+ let body;
316
+ body = JSON.stringify(serializeAws_json1_1ListCertificatesRequest(input, context));
317
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
+ };
319
+ exports.serializeAws_json1_1ListCertificatesCommand = serializeAws_json1_1ListCertificatesCommand;
320
+ const serializeAws_json1_1ListConnectorsCommand = async (input, context) => {
321
+ const headers = {
322
+ "content-type": "application/x-amz-json-1.1",
323
+ "x-amz-target": "TransferService.ListConnectors",
324
+ };
325
+ let body;
326
+ body = JSON.stringify(serializeAws_json1_1ListConnectorsRequest(input, context));
327
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
+ };
329
+ exports.serializeAws_json1_1ListConnectorsCommand = serializeAws_json1_1ListConnectorsCommand;
179
330
  const serializeAws_json1_1ListExecutionsCommand = async (input, context) => {
180
331
  const headers = {
181
332
  "content-type": "application/x-amz-json-1.1",
@@ -186,6 +337,16 @@ const serializeAws_json1_1ListExecutionsCommand = async (input, context) => {
186
337
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
187
338
  };
188
339
  exports.serializeAws_json1_1ListExecutionsCommand = serializeAws_json1_1ListExecutionsCommand;
340
+ const serializeAws_json1_1ListProfilesCommand = async (input, context) => {
341
+ const headers = {
342
+ "content-type": "application/x-amz-json-1.1",
343
+ "x-amz-target": "TransferService.ListProfiles",
344
+ };
345
+ let body;
346
+ body = JSON.stringify(serializeAws_json1_1ListProfilesRequest(input, context));
347
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
348
+ };
349
+ exports.serializeAws_json1_1ListProfilesCommand = serializeAws_json1_1ListProfilesCommand;
189
350
  const serializeAws_json1_1ListSecurityPoliciesCommand = async (input, context) => {
190
351
  const headers = {
191
352
  "content-type": "application/x-amz-json-1.1",
@@ -246,6 +407,16 @@ const serializeAws_json1_1SendWorkflowStepStateCommand = async (input, context)
246
407
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
408
  };
248
409
  exports.serializeAws_json1_1SendWorkflowStepStateCommand = serializeAws_json1_1SendWorkflowStepStateCommand;
410
+ const serializeAws_json1_1StartFileTransferCommand = async (input, context) => {
411
+ const headers = {
412
+ "content-type": "application/x-amz-json-1.1",
413
+ "x-amz-target": "TransferService.StartFileTransfer",
414
+ };
415
+ let body;
416
+ body = JSON.stringify(serializeAws_json1_1StartFileTransferRequest(input, context));
417
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
418
+ };
419
+ exports.serializeAws_json1_1StartFileTransferCommand = serializeAws_json1_1StartFileTransferCommand;
249
420
  const serializeAws_json1_1StartServerCommand = async (input, context) => {
250
421
  const headers = {
251
422
  "content-type": "application/x-amz-json-1.1",
@@ -306,6 +477,46 @@ const serializeAws_json1_1UpdateAccessCommand = async (input, context) => {
306
477
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
307
478
  };
308
479
  exports.serializeAws_json1_1UpdateAccessCommand = serializeAws_json1_1UpdateAccessCommand;
480
+ const serializeAws_json1_1UpdateAgreementCommand = async (input, context) => {
481
+ const headers = {
482
+ "content-type": "application/x-amz-json-1.1",
483
+ "x-amz-target": "TransferService.UpdateAgreement",
484
+ };
485
+ let body;
486
+ body = JSON.stringify(serializeAws_json1_1UpdateAgreementRequest(input, context));
487
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
488
+ };
489
+ exports.serializeAws_json1_1UpdateAgreementCommand = serializeAws_json1_1UpdateAgreementCommand;
490
+ const serializeAws_json1_1UpdateCertificateCommand = async (input, context) => {
491
+ const headers = {
492
+ "content-type": "application/x-amz-json-1.1",
493
+ "x-amz-target": "TransferService.UpdateCertificate",
494
+ };
495
+ let body;
496
+ body = JSON.stringify(serializeAws_json1_1UpdateCertificateRequest(input, context));
497
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
498
+ };
499
+ exports.serializeAws_json1_1UpdateCertificateCommand = serializeAws_json1_1UpdateCertificateCommand;
500
+ const serializeAws_json1_1UpdateConnectorCommand = async (input, context) => {
501
+ const headers = {
502
+ "content-type": "application/x-amz-json-1.1",
503
+ "x-amz-target": "TransferService.UpdateConnector",
504
+ };
505
+ let body;
506
+ body = JSON.stringify(serializeAws_json1_1UpdateConnectorRequest(input, context));
507
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
508
+ };
509
+ exports.serializeAws_json1_1UpdateConnectorCommand = serializeAws_json1_1UpdateConnectorCommand;
510
+ const serializeAws_json1_1UpdateProfileCommand = async (input, context) => {
511
+ const headers = {
512
+ "content-type": "application/x-amz-json-1.1",
513
+ "x-amz-target": "TransferService.UpdateProfile",
514
+ };
515
+ let body;
516
+ body = JSON.stringify(serializeAws_json1_1UpdateProfileRequest(input, context));
517
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
518
+ };
519
+ exports.serializeAws_json1_1UpdateProfileCommand = serializeAws_json1_1UpdateProfileCommand;
309
520
  const serializeAws_json1_1UpdateServerCommand = async (input, context) => {
310
521
  const headers = {
311
522
  "content-type": "application/x-amz-json-1.1",
@@ -345,7 +556,6 @@ const deserializeAws_json1_1CreateAccessCommandError = async (output, context) =
345
556
  ...output,
346
557
  body: await parseBody(output.body, context),
347
558
  };
348
- let response;
349
559
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
350
560
  switch (errorCode) {
351
561
  case "InternalServiceError":
@@ -365,41 +575,35 @@ const deserializeAws_json1_1CreateAccessCommandError = async (output, context) =
365
575
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
366
576
  default:
367
577
  const parsedBody = parsedOutput.body;
368
- const $metadata = deserializeMetadata(output);
369
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
370
- response = new TransferServiceException_1.TransferServiceException({
371
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
372
- $fault: "client",
373
- $metadata,
578
+ (0, smithy_client_1.throwDefaultError)({
579
+ output,
580
+ parsedBody,
581
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
582
+ errorCode,
374
583
  });
375
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
376
584
  }
377
585
  };
378
- const deserializeAws_json1_1CreateServerCommand = async (output, context) => {
586
+ const deserializeAws_json1_1CreateAgreementCommand = async (output, context) => {
379
587
  if (output.statusCode >= 300) {
380
- return deserializeAws_json1_1CreateServerCommandError(output, context);
588
+ return deserializeAws_json1_1CreateAgreementCommandError(output, context);
381
589
  }
382
590
  const data = await parseBody(output.body, context);
383
591
  let contents = {};
384
- contents = deserializeAws_json1_1CreateServerResponse(data, context);
592
+ contents = deserializeAws_json1_1CreateAgreementResponse(data, context);
385
593
  const response = {
386
594
  $metadata: deserializeMetadata(output),
387
595
  ...contents,
388
596
  };
389
597
  return Promise.resolve(response);
390
598
  };
391
- exports.deserializeAws_json1_1CreateServerCommand = deserializeAws_json1_1CreateServerCommand;
392
- const deserializeAws_json1_1CreateServerCommandError = async (output, context) => {
599
+ exports.deserializeAws_json1_1CreateAgreementCommand = deserializeAws_json1_1CreateAgreementCommand;
600
+ const deserializeAws_json1_1CreateAgreementCommandError = async (output, context) => {
393
601
  const parsedOutput = {
394
602
  ...output,
395
603
  body: await parseBody(output.body, context),
396
604
  };
397
- let response;
398
605
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
399
606
  switch (errorCode) {
400
- case "AccessDeniedException":
401
- case "com.amazonaws.transfer#AccessDeniedException":
402
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
403
607
  case "InternalServiceError":
404
608
  case "com.amazonaws.transfer#InternalServiceError":
405
609
  throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
@@ -415,41 +619,35 @@ const deserializeAws_json1_1CreateServerCommandError = async (output, context) =
415
619
  case "ServiceUnavailableException":
416
620
  case "com.amazonaws.transfer#ServiceUnavailableException":
417
621
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
418
- case "ThrottlingException":
419
- case "com.amazonaws.transfer#ThrottlingException":
420
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
421
622
  default:
422
623
  const parsedBody = parsedOutput.body;
423
- const $metadata = deserializeMetadata(output);
424
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
425
- response = new TransferServiceException_1.TransferServiceException({
426
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
427
- $fault: "client",
428
- $metadata,
624
+ (0, smithy_client_1.throwDefaultError)({
625
+ output,
626
+ parsedBody,
627
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
628
+ errorCode,
429
629
  });
430
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
431
630
  }
432
631
  };
433
- const deserializeAws_json1_1CreateUserCommand = async (output, context) => {
632
+ const deserializeAws_json1_1CreateConnectorCommand = async (output, context) => {
434
633
  if (output.statusCode >= 300) {
435
- return deserializeAws_json1_1CreateUserCommandError(output, context);
634
+ return deserializeAws_json1_1CreateConnectorCommandError(output, context);
436
635
  }
437
636
  const data = await parseBody(output.body, context);
438
637
  let contents = {};
439
- contents = deserializeAws_json1_1CreateUserResponse(data, context);
638
+ contents = deserializeAws_json1_1CreateConnectorResponse(data, context);
440
639
  const response = {
441
640
  $metadata: deserializeMetadata(output),
442
641
  ...contents,
443
642
  };
444
643
  return Promise.resolve(response);
445
644
  };
446
- exports.deserializeAws_json1_1CreateUserCommand = deserializeAws_json1_1CreateUserCommand;
447
- const deserializeAws_json1_1CreateUserCommandError = async (output, context) => {
645
+ exports.deserializeAws_json1_1CreateConnectorCommand = deserializeAws_json1_1CreateConnectorCommand;
646
+ const deserializeAws_json1_1CreateConnectorCommandError = async (output, context) => {
448
647
  const parsedOutput = {
449
648
  ...output,
450
649
  body: await parseBody(output.body, context),
451
650
  };
452
- let response;
453
651
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
454
652
  switch (errorCode) {
455
653
  case "InternalServiceError":
@@ -469,139 +667,139 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
469
667
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
470
668
  default:
471
669
  const parsedBody = parsedOutput.body;
472
- const $metadata = deserializeMetadata(output);
473
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
474
- response = new TransferServiceException_1.TransferServiceException({
475
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
476
- $fault: "client",
477
- $metadata,
670
+ (0, smithy_client_1.throwDefaultError)({
671
+ output,
672
+ parsedBody,
673
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
674
+ errorCode,
478
675
  });
479
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
480
676
  }
481
677
  };
482
- const deserializeAws_json1_1CreateWorkflowCommand = async (output, context) => {
678
+ const deserializeAws_json1_1CreateProfileCommand = async (output, context) => {
483
679
  if (output.statusCode >= 300) {
484
- return deserializeAws_json1_1CreateWorkflowCommandError(output, context);
680
+ return deserializeAws_json1_1CreateProfileCommandError(output, context);
485
681
  }
486
682
  const data = await parseBody(output.body, context);
487
683
  let contents = {};
488
- contents = deserializeAws_json1_1CreateWorkflowResponse(data, context);
684
+ contents = deserializeAws_json1_1CreateProfileResponse(data, context);
489
685
  const response = {
490
686
  $metadata: deserializeMetadata(output),
491
687
  ...contents,
492
688
  };
493
689
  return Promise.resolve(response);
494
690
  };
495
- exports.deserializeAws_json1_1CreateWorkflowCommand = deserializeAws_json1_1CreateWorkflowCommand;
496
- const deserializeAws_json1_1CreateWorkflowCommandError = async (output, context) => {
691
+ exports.deserializeAws_json1_1CreateProfileCommand = deserializeAws_json1_1CreateProfileCommand;
692
+ const deserializeAws_json1_1CreateProfileCommandError = async (output, context) => {
497
693
  const parsedOutput = {
498
694
  ...output,
499
695
  body: await parseBody(output.body, context),
500
696
  };
501
- let response;
502
697
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
503
698
  switch (errorCode) {
504
- case "AccessDeniedException":
505
- case "com.amazonaws.transfer#AccessDeniedException":
506
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
507
699
  case "InternalServiceError":
508
700
  case "com.amazonaws.transfer#InternalServiceError":
509
701
  throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
510
702
  case "InvalidRequestException":
511
703
  case "com.amazonaws.transfer#InvalidRequestException":
512
704
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
513
- case "ResourceExistsException":
514
- case "com.amazonaws.transfer#ResourceExistsException":
515
- throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
705
+ case "ResourceNotFoundException":
706
+ case "com.amazonaws.transfer#ResourceNotFoundException":
707
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
516
708
  case "ServiceUnavailableException":
517
709
  case "com.amazonaws.transfer#ServiceUnavailableException":
518
710
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
519
- case "ThrottlingException":
520
- case "com.amazonaws.transfer#ThrottlingException":
521
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
522
711
  default:
523
712
  const parsedBody = parsedOutput.body;
524
- const $metadata = deserializeMetadata(output);
525
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
526
- response = new TransferServiceException_1.TransferServiceException({
527
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
528
- $fault: "client",
529
- $metadata,
713
+ (0, smithy_client_1.throwDefaultError)({
714
+ output,
715
+ parsedBody,
716
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
717
+ errorCode,
530
718
  });
531
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
532
719
  }
533
720
  };
534
- const deserializeAws_json1_1DeleteAccessCommand = async (output, context) => {
721
+ const deserializeAws_json1_1CreateServerCommand = async (output, context) => {
535
722
  if (output.statusCode >= 300) {
536
- return deserializeAws_json1_1DeleteAccessCommandError(output, context);
723
+ return deserializeAws_json1_1CreateServerCommandError(output, context);
537
724
  }
538
- await collectBody(output.body, context);
725
+ const data = await parseBody(output.body, context);
726
+ let contents = {};
727
+ contents = deserializeAws_json1_1CreateServerResponse(data, context);
539
728
  const response = {
540
729
  $metadata: deserializeMetadata(output),
730
+ ...contents,
541
731
  };
542
732
  return Promise.resolve(response);
543
733
  };
544
- exports.deserializeAws_json1_1DeleteAccessCommand = deserializeAws_json1_1DeleteAccessCommand;
545
- const deserializeAws_json1_1DeleteAccessCommandError = async (output, context) => {
734
+ exports.deserializeAws_json1_1CreateServerCommand = deserializeAws_json1_1CreateServerCommand;
735
+ const deserializeAws_json1_1CreateServerCommandError = async (output, context) => {
546
736
  const parsedOutput = {
547
737
  ...output,
548
738
  body: await parseBody(output.body, context),
549
739
  };
550
- let response;
551
740
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
552
741
  switch (errorCode) {
742
+ case "AccessDeniedException":
743
+ case "com.amazonaws.transfer#AccessDeniedException":
744
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
553
745
  case "InternalServiceError":
554
746
  case "com.amazonaws.transfer#InternalServiceError":
555
747
  throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
556
748
  case "InvalidRequestException":
557
749
  case "com.amazonaws.transfer#InvalidRequestException":
558
750
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
751
+ case "ResourceExistsException":
752
+ case "com.amazonaws.transfer#ResourceExistsException":
753
+ throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
559
754
  case "ResourceNotFoundException":
560
755
  case "com.amazonaws.transfer#ResourceNotFoundException":
561
756
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
562
757
  case "ServiceUnavailableException":
563
758
  case "com.amazonaws.transfer#ServiceUnavailableException":
564
759
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
760
+ case "ThrottlingException":
761
+ case "com.amazonaws.transfer#ThrottlingException":
762
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
565
763
  default:
566
764
  const parsedBody = parsedOutput.body;
567
- const $metadata = deserializeMetadata(output);
568
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
569
- response = new TransferServiceException_1.TransferServiceException({
570
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
571
- $fault: "client",
572
- $metadata,
765
+ (0, smithy_client_1.throwDefaultError)({
766
+ output,
767
+ parsedBody,
768
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
769
+ errorCode,
573
770
  });
574
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
575
771
  }
576
772
  };
577
- const deserializeAws_json1_1DeleteServerCommand = async (output, context) => {
773
+ const deserializeAws_json1_1CreateUserCommand = async (output, context) => {
578
774
  if (output.statusCode >= 300) {
579
- return deserializeAws_json1_1DeleteServerCommandError(output, context);
775
+ return deserializeAws_json1_1CreateUserCommandError(output, context);
580
776
  }
581
- await collectBody(output.body, context);
777
+ const data = await parseBody(output.body, context);
778
+ let contents = {};
779
+ contents = deserializeAws_json1_1CreateUserResponse(data, context);
582
780
  const response = {
583
781
  $metadata: deserializeMetadata(output),
782
+ ...contents,
584
783
  };
585
784
  return Promise.resolve(response);
586
785
  };
587
- exports.deserializeAws_json1_1DeleteServerCommand = deserializeAws_json1_1DeleteServerCommand;
588
- const deserializeAws_json1_1DeleteServerCommandError = async (output, context) => {
786
+ exports.deserializeAws_json1_1CreateUserCommand = deserializeAws_json1_1CreateUserCommand;
787
+ const deserializeAws_json1_1CreateUserCommandError = async (output, context) => {
589
788
  const parsedOutput = {
590
789
  ...output,
591
790
  body: await parseBody(output.body, context),
592
791
  };
593
- let response;
594
792
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
595
793
  switch (errorCode) {
596
- case "AccessDeniedException":
597
- case "com.amazonaws.transfer#AccessDeniedException":
598
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
599
794
  case "InternalServiceError":
600
795
  case "com.amazonaws.transfer#InternalServiceError":
601
796
  throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
602
797
  case "InvalidRequestException":
603
798
  case "com.amazonaws.transfer#InvalidRequestException":
604
799
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
800
+ case "ResourceExistsException":
801
+ case "com.amazonaws.transfer#ResourceExistsException":
802
+ throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
605
803
  case "ResourceNotFoundException":
606
804
  case "com.amazonaws.transfer#ResourceNotFoundException":
607
805
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
@@ -610,44 +808,47 @@ const deserializeAws_json1_1DeleteServerCommandError = async (output, context) =
610
808
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
611
809
  default:
612
810
  const parsedBody = parsedOutput.body;
613
- const $metadata = deserializeMetadata(output);
614
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
615
- response = new TransferServiceException_1.TransferServiceException({
616
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
617
- $fault: "client",
618
- $metadata,
811
+ (0, smithy_client_1.throwDefaultError)({
812
+ output,
813
+ parsedBody,
814
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
815
+ errorCode,
619
816
  });
620
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
621
817
  }
622
818
  };
623
- const deserializeAws_json1_1DeleteSshPublicKeyCommand = async (output, context) => {
819
+ const deserializeAws_json1_1CreateWorkflowCommand = async (output, context) => {
624
820
  if (output.statusCode >= 300) {
625
- return deserializeAws_json1_1DeleteSshPublicKeyCommandError(output, context);
821
+ return deserializeAws_json1_1CreateWorkflowCommandError(output, context);
626
822
  }
627
- await collectBody(output.body, context);
823
+ const data = await parseBody(output.body, context);
824
+ let contents = {};
825
+ contents = deserializeAws_json1_1CreateWorkflowResponse(data, context);
628
826
  const response = {
629
827
  $metadata: deserializeMetadata(output),
828
+ ...contents,
630
829
  };
631
830
  return Promise.resolve(response);
632
831
  };
633
- exports.deserializeAws_json1_1DeleteSshPublicKeyCommand = deserializeAws_json1_1DeleteSshPublicKeyCommand;
634
- const deserializeAws_json1_1DeleteSshPublicKeyCommandError = async (output, context) => {
832
+ exports.deserializeAws_json1_1CreateWorkflowCommand = deserializeAws_json1_1CreateWorkflowCommand;
833
+ const deserializeAws_json1_1CreateWorkflowCommandError = async (output, context) => {
635
834
  const parsedOutput = {
636
835
  ...output,
637
836
  body: await parseBody(output.body, context),
638
837
  };
639
- let response;
640
838
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
641
839
  switch (errorCode) {
840
+ case "AccessDeniedException":
841
+ case "com.amazonaws.transfer#AccessDeniedException":
842
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
642
843
  case "InternalServiceError":
643
844
  case "com.amazonaws.transfer#InternalServiceError":
644
845
  throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
645
846
  case "InvalidRequestException":
646
847
  case "com.amazonaws.transfer#InvalidRequestException":
647
848
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
648
- case "ResourceNotFoundException":
649
- case "com.amazonaws.transfer#ResourceNotFoundException":
650
- throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
849
+ case "ResourceExistsException":
850
+ case "com.amazonaws.transfer#ResourceExistsException":
851
+ throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
651
852
  case "ServiceUnavailableException":
652
853
  case "com.amazonaws.transfer#ServiceUnavailableException":
653
854
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
@@ -656,19 +857,17 @@ const deserializeAws_json1_1DeleteSshPublicKeyCommandError = async (output, cont
656
857
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
657
858
  default:
658
859
  const parsedBody = parsedOutput.body;
659
- const $metadata = deserializeMetadata(output);
660
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
661
- response = new TransferServiceException_1.TransferServiceException({
662
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
663
- $fault: "client",
664
- $metadata,
860
+ (0, smithy_client_1.throwDefaultError)({
861
+ output,
862
+ parsedBody,
863
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
864
+ errorCode,
665
865
  });
666
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
667
866
  }
668
867
  };
669
- const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
868
+ const deserializeAws_json1_1DeleteAccessCommand = async (output, context) => {
670
869
  if (output.statusCode >= 300) {
671
- return deserializeAws_json1_1DeleteUserCommandError(output, context);
870
+ return deserializeAws_json1_1DeleteAccessCommandError(output, context);
672
871
  }
673
872
  await collectBody(output.body, context);
674
873
  const response = {
@@ -676,13 +875,12 @@ const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
676
875
  };
677
876
  return Promise.resolve(response);
678
877
  };
679
- exports.deserializeAws_json1_1DeleteUserCommand = deserializeAws_json1_1DeleteUserCommand;
680
- const deserializeAws_json1_1DeleteUserCommandError = async (output, context) => {
878
+ exports.deserializeAws_json1_1DeleteAccessCommand = deserializeAws_json1_1DeleteAccessCommand;
879
+ const deserializeAws_json1_1DeleteAccessCommandError = async (output, context) => {
681
880
  const parsedOutput = {
682
881
  ...output,
683
882
  body: await parseBody(output.body, context),
684
883
  };
685
- let response;
686
884
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
687
885
  switch (errorCode) {
688
886
  case "InternalServiceError":
@@ -699,19 +897,17 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
699
897
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
700
898
  default:
701
899
  const parsedBody = parsedOutput.body;
702
- const $metadata = deserializeMetadata(output);
703
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
704
- response = new TransferServiceException_1.TransferServiceException({
705
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
706
- $fault: "client",
707
- $metadata,
900
+ (0, smithy_client_1.throwDefaultError)({
901
+ output,
902
+ parsedBody,
903
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
904
+ errorCode,
708
905
  });
709
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
710
906
  }
711
907
  };
712
- const deserializeAws_json1_1DeleteWorkflowCommand = async (output, context) => {
908
+ const deserializeAws_json1_1DeleteAgreementCommand = async (output, context) => {
713
909
  if (output.statusCode >= 300) {
714
- return deserializeAws_json1_1DeleteWorkflowCommandError(output, context);
910
+ return deserializeAws_json1_1DeleteAgreementCommandError(output, context);
715
911
  }
716
912
  await collectBody(output.body, context);
717
913
  const response = {
@@ -719,18 +915,14 @@ const deserializeAws_json1_1DeleteWorkflowCommand = async (output, context) => {
719
915
  };
720
916
  return Promise.resolve(response);
721
917
  };
722
- exports.deserializeAws_json1_1DeleteWorkflowCommand = deserializeAws_json1_1DeleteWorkflowCommand;
723
- const deserializeAws_json1_1DeleteWorkflowCommandError = async (output, context) => {
918
+ exports.deserializeAws_json1_1DeleteAgreementCommand = deserializeAws_json1_1DeleteAgreementCommand;
919
+ const deserializeAws_json1_1DeleteAgreementCommandError = async (output, context) => {
724
920
  const parsedOutput = {
725
921
  ...output,
726
922
  body: await parseBody(output.body, context),
727
923
  };
728
- let response;
729
924
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
730
925
  switch (errorCode) {
731
- case "AccessDeniedException":
732
- case "com.amazonaws.transfer#AccessDeniedException":
733
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
734
926
  case "InternalServiceError":
735
927
  case "com.amazonaws.transfer#InternalServiceError":
736
928
  throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
@@ -745,36 +937,30 @@ const deserializeAws_json1_1DeleteWorkflowCommandError = async (output, context)
745
937
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
746
938
  default:
747
939
  const parsedBody = parsedOutput.body;
748
- const $metadata = deserializeMetadata(output);
749
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
750
- response = new TransferServiceException_1.TransferServiceException({
751
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
752
- $fault: "client",
753
- $metadata,
940
+ (0, smithy_client_1.throwDefaultError)({
941
+ output,
942
+ parsedBody,
943
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
944
+ errorCode,
754
945
  });
755
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
756
946
  }
757
947
  };
758
- const deserializeAws_json1_1DescribeAccessCommand = async (output, context) => {
948
+ const deserializeAws_json1_1DeleteCertificateCommand = async (output, context) => {
759
949
  if (output.statusCode >= 300) {
760
- return deserializeAws_json1_1DescribeAccessCommandError(output, context);
950
+ return deserializeAws_json1_1DeleteCertificateCommandError(output, context);
761
951
  }
762
- const data = await parseBody(output.body, context);
763
- let contents = {};
764
- contents = deserializeAws_json1_1DescribeAccessResponse(data, context);
952
+ await collectBody(output.body, context);
765
953
  const response = {
766
954
  $metadata: deserializeMetadata(output),
767
- ...contents,
768
955
  };
769
956
  return Promise.resolve(response);
770
957
  };
771
- exports.deserializeAws_json1_1DescribeAccessCommand = deserializeAws_json1_1DescribeAccessCommand;
772
- const deserializeAws_json1_1DescribeAccessCommandError = async (output, context) => {
958
+ exports.deserializeAws_json1_1DeleteCertificateCommand = deserializeAws_json1_1DeleteCertificateCommand;
959
+ const deserializeAws_json1_1DeleteCertificateCommandError = async (output, context) => {
773
960
  const parsedOutput = {
774
961
  ...output,
775
962
  body: await parseBody(output.body, context),
776
963
  };
777
- let response;
778
964
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
779
965
  switch (errorCode) {
780
966
  case "InternalServiceError":
@@ -791,36 +977,30 @@ const deserializeAws_json1_1DescribeAccessCommandError = async (output, context)
791
977
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
792
978
  default:
793
979
  const parsedBody = parsedOutput.body;
794
- const $metadata = deserializeMetadata(output);
795
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
796
- response = new TransferServiceException_1.TransferServiceException({
797
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
798
- $fault: "client",
799
- $metadata,
980
+ (0, smithy_client_1.throwDefaultError)({
981
+ output,
982
+ parsedBody,
983
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
984
+ errorCode,
800
985
  });
801
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
802
986
  }
803
987
  };
804
- const deserializeAws_json1_1DescribeExecutionCommand = async (output, context) => {
988
+ const deserializeAws_json1_1DeleteConnectorCommand = async (output, context) => {
805
989
  if (output.statusCode >= 300) {
806
- return deserializeAws_json1_1DescribeExecutionCommandError(output, context);
990
+ return deserializeAws_json1_1DeleteConnectorCommandError(output, context);
807
991
  }
808
- const data = await parseBody(output.body, context);
809
- let contents = {};
810
- contents = deserializeAws_json1_1DescribeExecutionResponse(data, context);
992
+ await collectBody(output.body, context);
811
993
  const response = {
812
994
  $metadata: deserializeMetadata(output),
813
- ...contents,
814
995
  };
815
996
  return Promise.resolve(response);
816
997
  };
817
- exports.deserializeAws_json1_1DescribeExecutionCommand = deserializeAws_json1_1DescribeExecutionCommand;
818
- const deserializeAws_json1_1DescribeExecutionCommandError = async (output, context) => {
998
+ exports.deserializeAws_json1_1DeleteConnectorCommand = deserializeAws_json1_1DeleteConnectorCommand;
999
+ const deserializeAws_json1_1DeleteConnectorCommandError = async (output, context) => {
819
1000
  const parsedOutput = {
820
1001
  ...output,
821
1002
  body: await parseBody(output.body, context),
822
1003
  };
823
- let response;
824
1004
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
825
1005
  switch (errorCode) {
826
1006
  case "InternalServiceError":
@@ -837,17 +1017,482 @@ const deserializeAws_json1_1DescribeExecutionCommandError = async (output, conte
837
1017
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
838
1018
  default:
839
1019
  const parsedBody = parsedOutput.body;
840
- const $metadata = deserializeMetadata(output);
841
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
842
- response = new TransferServiceException_1.TransferServiceException({
843
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
844
- $fault: "client",
845
- $metadata,
1020
+ (0, smithy_client_1.throwDefaultError)({
1021
+ output,
1022
+ parsedBody,
1023
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1024
+ errorCode,
846
1025
  });
847
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
848
1026
  }
849
1027
  };
850
- const deserializeAws_json1_1DescribeSecurityPolicyCommand = async (output, context) => {
1028
+ const deserializeAws_json1_1DeleteProfileCommand = async (output, context) => {
1029
+ if (output.statusCode >= 300) {
1030
+ return deserializeAws_json1_1DeleteProfileCommandError(output, context);
1031
+ }
1032
+ await collectBody(output.body, context);
1033
+ const response = {
1034
+ $metadata: deserializeMetadata(output),
1035
+ };
1036
+ return Promise.resolve(response);
1037
+ };
1038
+ exports.deserializeAws_json1_1DeleteProfileCommand = deserializeAws_json1_1DeleteProfileCommand;
1039
+ const deserializeAws_json1_1DeleteProfileCommandError = async (output, context) => {
1040
+ const parsedOutput = {
1041
+ ...output,
1042
+ body: await parseBody(output.body, context),
1043
+ };
1044
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1045
+ switch (errorCode) {
1046
+ case "InternalServiceError":
1047
+ case "com.amazonaws.transfer#InternalServiceError":
1048
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1049
+ case "InvalidRequestException":
1050
+ case "com.amazonaws.transfer#InvalidRequestException":
1051
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1052
+ case "ResourceNotFoundException":
1053
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1054
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1055
+ case "ServiceUnavailableException":
1056
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1057
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1058
+ default:
1059
+ const parsedBody = parsedOutput.body;
1060
+ (0, smithy_client_1.throwDefaultError)({
1061
+ output,
1062
+ parsedBody,
1063
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1064
+ errorCode,
1065
+ });
1066
+ }
1067
+ };
1068
+ const deserializeAws_json1_1DeleteServerCommand = async (output, context) => {
1069
+ if (output.statusCode >= 300) {
1070
+ return deserializeAws_json1_1DeleteServerCommandError(output, context);
1071
+ }
1072
+ await collectBody(output.body, context);
1073
+ const response = {
1074
+ $metadata: deserializeMetadata(output),
1075
+ };
1076
+ return Promise.resolve(response);
1077
+ };
1078
+ exports.deserializeAws_json1_1DeleteServerCommand = deserializeAws_json1_1DeleteServerCommand;
1079
+ const deserializeAws_json1_1DeleteServerCommandError = async (output, context) => {
1080
+ const parsedOutput = {
1081
+ ...output,
1082
+ body: await parseBody(output.body, context),
1083
+ };
1084
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1085
+ switch (errorCode) {
1086
+ case "AccessDeniedException":
1087
+ case "com.amazonaws.transfer#AccessDeniedException":
1088
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
1089
+ case "InternalServiceError":
1090
+ case "com.amazonaws.transfer#InternalServiceError":
1091
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1092
+ case "InvalidRequestException":
1093
+ case "com.amazonaws.transfer#InvalidRequestException":
1094
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1095
+ case "ResourceNotFoundException":
1096
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1097
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1098
+ case "ServiceUnavailableException":
1099
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1100
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1101
+ default:
1102
+ const parsedBody = parsedOutput.body;
1103
+ (0, smithy_client_1.throwDefaultError)({
1104
+ output,
1105
+ parsedBody,
1106
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1107
+ errorCode,
1108
+ });
1109
+ }
1110
+ };
1111
+ const deserializeAws_json1_1DeleteSshPublicKeyCommand = async (output, context) => {
1112
+ if (output.statusCode >= 300) {
1113
+ return deserializeAws_json1_1DeleteSshPublicKeyCommandError(output, context);
1114
+ }
1115
+ await collectBody(output.body, context);
1116
+ const response = {
1117
+ $metadata: deserializeMetadata(output),
1118
+ };
1119
+ return Promise.resolve(response);
1120
+ };
1121
+ exports.deserializeAws_json1_1DeleteSshPublicKeyCommand = deserializeAws_json1_1DeleteSshPublicKeyCommand;
1122
+ const deserializeAws_json1_1DeleteSshPublicKeyCommandError = async (output, context) => {
1123
+ const parsedOutput = {
1124
+ ...output,
1125
+ body: await parseBody(output.body, context),
1126
+ };
1127
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1128
+ switch (errorCode) {
1129
+ case "InternalServiceError":
1130
+ case "com.amazonaws.transfer#InternalServiceError":
1131
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1132
+ case "InvalidRequestException":
1133
+ case "com.amazonaws.transfer#InvalidRequestException":
1134
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1135
+ case "ResourceNotFoundException":
1136
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1137
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1138
+ case "ServiceUnavailableException":
1139
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1140
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1141
+ case "ThrottlingException":
1142
+ case "com.amazonaws.transfer#ThrottlingException":
1143
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
1144
+ default:
1145
+ const parsedBody = parsedOutput.body;
1146
+ (0, smithy_client_1.throwDefaultError)({
1147
+ output,
1148
+ parsedBody,
1149
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1150
+ errorCode,
1151
+ });
1152
+ }
1153
+ };
1154
+ const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
1155
+ if (output.statusCode >= 300) {
1156
+ return deserializeAws_json1_1DeleteUserCommandError(output, context);
1157
+ }
1158
+ await collectBody(output.body, context);
1159
+ const response = {
1160
+ $metadata: deserializeMetadata(output),
1161
+ };
1162
+ return Promise.resolve(response);
1163
+ };
1164
+ exports.deserializeAws_json1_1DeleteUserCommand = deserializeAws_json1_1DeleteUserCommand;
1165
+ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) => {
1166
+ const parsedOutput = {
1167
+ ...output,
1168
+ body: await parseBody(output.body, context),
1169
+ };
1170
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1171
+ switch (errorCode) {
1172
+ case "InternalServiceError":
1173
+ case "com.amazonaws.transfer#InternalServiceError":
1174
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1175
+ case "InvalidRequestException":
1176
+ case "com.amazonaws.transfer#InvalidRequestException":
1177
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1178
+ case "ResourceNotFoundException":
1179
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1180
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1181
+ case "ServiceUnavailableException":
1182
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1183
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1184
+ default:
1185
+ const parsedBody = parsedOutput.body;
1186
+ (0, smithy_client_1.throwDefaultError)({
1187
+ output,
1188
+ parsedBody,
1189
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1190
+ errorCode,
1191
+ });
1192
+ }
1193
+ };
1194
+ const deserializeAws_json1_1DeleteWorkflowCommand = async (output, context) => {
1195
+ if (output.statusCode >= 300) {
1196
+ return deserializeAws_json1_1DeleteWorkflowCommandError(output, context);
1197
+ }
1198
+ await collectBody(output.body, context);
1199
+ const response = {
1200
+ $metadata: deserializeMetadata(output),
1201
+ };
1202
+ return Promise.resolve(response);
1203
+ };
1204
+ exports.deserializeAws_json1_1DeleteWorkflowCommand = deserializeAws_json1_1DeleteWorkflowCommand;
1205
+ const deserializeAws_json1_1DeleteWorkflowCommandError = async (output, context) => {
1206
+ const parsedOutput = {
1207
+ ...output,
1208
+ body: await parseBody(output.body, context),
1209
+ };
1210
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1211
+ switch (errorCode) {
1212
+ case "AccessDeniedException":
1213
+ case "com.amazonaws.transfer#AccessDeniedException":
1214
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
1215
+ case "InternalServiceError":
1216
+ case "com.amazonaws.transfer#InternalServiceError":
1217
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1218
+ case "InvalidRequestException":
1219
+ case "com.amazonaws.transfer#InvalidRequestException":
1220
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1221
+ case "ResourceNotFoundException":
1222
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1223
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1224
+ case "ServiceUnavailableException":
1225
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1226
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1227
+ default:
1228
+ const parsedBody = parsedOutput.body;
1229
+ (0, smithy_client_1.throwDefaultError)({
1230
+ output,
1231
+ parsedBody,
1232
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1233
+ errorCode,
1234
+ });
1235
+ }
1236
+ };
1237
+ const deserializeAws_json1_1DescribeAccessCommand = async (output, context) => {
1238
+ if (output.statusCode >= 300) {
1239
+ return deserializeAws_json1_1DescribeAccessCommandError(output, context);
1240
+ }
1241
+ const data = await parseBody(output.body, context);
1242
+ let contents = {};
1243
+ contents = deserializeAws_json1_1DescribeAccessResponse(data, context);
1244
+ const response = {
1245
+ $metadata: deserializeMetadata(output),
1246
+ ...contents,
1247
+ };
1248
+ return Promise.resolve(response);
1249
+ };
1250
+ exports.deserializeAws_json1_1DescribeAccessCommand = deserializeAws_json1_1DescribeAccessCommand;
1251
+ const deserializeAws_json1_1DescribeAccessCommandError = async (output, context) => {
1252
+ const parsedOutput = {
1253
+ ...output,
1254
+ body: await parseBody(output.body, context),
1255
+ };
1256
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1257
+ switch (errorCode) {
1258
+ case "InternalServiceError":
1259
+ case "com.amazonaws.transfer#InternalServiceError":
1260
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1261
+ case "InvalidRequestException":
1262
+ case "com.amazonaws.transfer#InvalidRequestException":
1263
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1264
+ case "ResourceNotFoundException":
1265
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1266
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1267
+ case "ServiceUnavailableException":
1268
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1269
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1270
+ default:
1271
+ const parsedBody = parsedOutput.body;
1272
+ (0, smithy_client_1.throwDefaultError)({
1273
+ output,
1274
+ parsedBody,
1275
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1276
+ errorCode,
1277
+ });
1278
+ }
1279
+ };
1280
+ const deserializeAws_json1_1DescribeAgreementCommand = async (output, context) => {
1281
+ if (output.statusCode >= 300) {
1282
+ return deserializeAws_json1_1DescribeAgreementCommandError(output, context);
1283
+ }
1284
+ const data = await parseBody(output.body, context);
1285
+ let contents = {};
1286
+ contents = deserializeAws_json1_1DescribeAgreementResponse(data, context);
1287
+ const response = {
1288
+ $metadata: deserializeMetadata(output),
1289
+ ...contents,
1290
+ };
1291
+ return Promise.resolve(response);
1292
+ };
1293
+ exports.deserializeAws_json1_1DescribeAgreementCommand = deserializeAws_json1_1DescribeAgreementCommand;
1294
+ const deserializeAws_json1_1DescribeAgreementCommandError = async (output, context) => {
1295
+ const parsedOutput = {
1296
+ ...output,
1297
+ body: await parseBody(output.body, context),
1298
+ };
1299
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1300
+ switch (errorCode) {
1301
+ case "InternalServiceError":
1302
+ case "com.amazonaws.transfer#InternalServiceError":
1303
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1304
+ case "InvalidRequestException":
1305
+ case "com.amazonaws.transfer#InvalidRequestException":
1306
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1307
+ case "ResourceNotFoundException":
1308
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1309
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1310
+ case "ServiceUnavailableException":
1311
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1312
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1313
+ default:
1314
+ const parsedBody = parsedOutput.body;
1315
+ (0, smithy_client_1.throwDefaultError)({
1316
+ output,
1317
+ parsedBody,
1318
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1319
+ errorCode,
1320
+ });
1321
+ }
1322
+ };
1323
+ const deserializeAws_json1_1DescribeCertificateCommand = async (output, context) => {
1324
+ if (output.statusCode >= 300) {
1325
+ return deserializeAws_json1_1DescribeCertificateCommandError(output, context);
1326
+ }
1327
+ const data = await parseBody(output.body, context);
1328
+ let contents = {};
1329
+ contents = deserializeAws_json1_1DescribeCertificateResponse(data, context);
1330
+ const response = {
1331
+ $metadata: deserializeMetadata(output),
1332
+ ...contents,
1333
+ };
1334
+ return Promise.resolve(response);
1335
+ };
1336
+ exports.deserializeAws_json1_1DescribeCertificateCommand = deserializeAws_json1_1DescribeCertificateCommand;
1337
+ const deserializeAws_json1_1DescribeCertificateCommandError = async (output, context) => {
1338
+ const parsedOutput = {
1339
+ ...output,
1340
+ body: await parseBody(output.body, context),
1341
+ };
1342
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1343
+ switch (errorCode) {
1344
+ case "InternalServiceError":
1345
+ case "com.amazonaws.transfer#InternalServiceError":
1346
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1347
+ case "InvalidRequestException":
1348
+ case "com.amazonaws.transfer#InvalidRequestException":
1349
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1350
+ case "ResourceNotFoundException":
1351
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1352
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1353
+ case "ServiceUnavailableException":
1354
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1355
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1356
+ default:
1357
+ const parsedBody = parsedOutput.body;
1358
+ (0, smithy_client_1.throwDefaultError)({
1359
+ output,
1360
+ parsedBody,
1361
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1362
+ errorCode,
1363
+ });
1364
+ }
1365
+ };
1366
+ const deserializeAws_json1_1DescribeConnectorCommand = async (output, context) => {
1367
+ if (output.statusCode >= 300) {
1368
+ return deserializeAws_json1_1DescribeConnectorCommandError(output, context);
1369
+ }
1370
+ const data = await parseBody(output.body, context);
1371
+ let contents = {};
1372
+ contents = deserializeAws_json1_1DescribeConnectorResponse(data, context);
1373
+ const response = {
1374
+ $metadata: deserializeMetadata(output),
1375
+ ...contents,
1376
+ };
1377
+ return Promise.resolve(response);
1378
+ };
1379
+ exports.deserializeAws_json1_1DescribeConnectorCommand = deserializeAws_json1_1DescribeConnectorCommand;
1380
+ const deserializeAws_json1_1DescribeConnectorCommandError = async (output, context) => {
1381
+ const parsedOutput = {
1382
+ ...output,
1383
+ body: await parseBody(output.body, context),
1384
+ };
1385
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1386
+ switch (errorCode) {
1387
+ case "InternalServiceError":
1388
+ case "com.amazonaws.transfer#InternalServiceError":
1389
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1390
+ case "InvalidRequestException":
1391
+ case "com.amazonaws.transfer#InvalidRequestException":
1392
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1393
+ case "ResourceNotFoundException":
1394
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1395
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1396
+ case "ServiceUnavailableException":
1397
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1398
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1399
+ default:
1400
+ const parsedBody = parsedOutput.body;
1401
+ (0, smithy_client_1.throwDefaultError)({
1402
+ output,
1403
+ parsedBody,
1404
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1405
+ errorCode,
1406
+ });
1407
+ }
1408
+ };
1409
+ const deserializeAws_json1_1DescribeExecutionCommand = async (output, context) => {
1410
+ if (output.statusCode >= 300) {
1411
+ return deserializeAws_json1_1DescribeExecutionCommandError(output, context);
1412
+ }
1413
+ const data = await parseBody(output.body, context);
1414
+ let contents = {};
1415
+ contents = deserializeAws_json1_1DescribeExecutionResponse(data, context);
1416
+ const response = {
1417
+ $metadata: deserializeMetadata(output),
1418
+ ...contents,
1419
+ };
1420
+ return Promise.resolve(response);
1421
+ };
1422
+ exports.deserializeAws_json1_1DescribeExecutionCommand = deserializeAws_json1_1DescribeExecutionCommand;
1423
+ const deserializeAws_json1_1DescribeExecutionCommandError = async (output, context) => {
1424
+ const parsedOutput = {
1425
+ ...output,
1426
+ body: await parseBody(output.body, context),
1427
+ };
1428
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1429
+ switch (errorCode) {
1430
+ case "InternalServiceError":
1431
+ case "com.amazonaws.transfer#InternalServiceError":
1432
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1433
+ case "InvalidRequestException":
1434
+ case "com.amazonaws.transfer#InvalidRequestException":
1435
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1436
+ case "ResourceNotFoundException":
1437
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1438
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1439
+ case "ServiceUnavailableException":
1440
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1441
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1442
+ default:
1443
+ const parsedBody = parsedOutput.body;
1444
+ (0, smithy_client_1.throwDefaultError)({
1445
+ output,
1446
+ parsedBody,
1447
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1448
+ errorCode,
1449
+ });
1450
+ }
1451
+ };
1452
+ const deserializeAws_json1_1DescribeProfileCommand = async (output, context) => {
1453
+ if (output.statusCode >= 300) {
1454
+ return deserializeAws_json1_1DescribeProfileCommandError(output, context);
1455
+ }
1456
+ const data = await parseBody(output.body, context);
1457
+ let contents = {};
1458
+ contents = deserializeAws_json1_1DescribeProfileResponse(data, context);
1459
+ const response = {
1460
+ $metadata: deserializeMetadata(output),
1461
+ ...contents,
1462
+ };
1463
+ return Promise.resolve(response);
1464
+ };
1465
+ exports.deserializeAws_json1_1DescribeProfileCommand = deserializeAws_json1_1DescribeProfileCommand;
1466
+ const deserializeAws_json1_1DescribeProfileCommandError = async (output, context) => {
1467
+ const parsedOutput = {
1468
+ ...output,
1469
+ body: await parseBody(output.body, context),
1470
+ };
1471
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1472
+ switch (errorCode) {
1473
+ case "InternalServiceError":
1474
+ case "com.amazonaws.transfer#InternalServiceError":
1475
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1476
+ case "InvalidRequestException":
1477
+ case "com.amazonaws.transfer#InvalidRequestException":
1478
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1479
+ case "ResourceNotFoundException":
1480
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1481
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1482
+ case "ServiceUnavailableException":
1483
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1484
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1485
+ default:
1486
+ const parsedBody = parsedOutput.body;
1487
+ (0, smithy_client_1.throwDefaultError)({
1488
+ output,
1489
+ parsedBody,
1490
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1491
+ errorCode,
1492
+ });
1493
+ }
1494
+ };
1495
+ const deserializeAws_json1_1DescribeSecurityPolicyCommand = async (output, context) => {
851
1496
  if (output.statusCode >= 300) {
852
1497
  return deserializeAws_json1_1DescribeSecurityPolicyCommandError(output, context);
853
1498
  }
@@ -866,7 +1511,6 @@ const deserializeAws_json1_1DescribeSecurityPolicyCommandError = async (output,
866
1511
  ...output,
867
1512
  body: await parseBody(output.body, context),
868
1513
  };
869
- let response;
870
1514
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
871
1515
  switch (errorCode) {
872
1516
  case "InternalServiceError":
@@ -883,14 +1527,12 @@ const deserializeAws_json1_1DescribeSecurityPolicyCommandError = async (output,
883
1527
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
884
1528
  default:
885
1529
  const parsedBody = parsedOutput.body;
886
- const $metadata = deserializeMetadata(output);
887
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
888
- response = new TransferServiceException_1.TransferServiceException({
889
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
890
- $fault: "client",
891
- $metadata,
1530
+ (0, smithy_client_1.throwDefaultError)({
1531
+ output,
1532
+ parsedBody,
1533
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1534
+ errorCode,
892
1535
  });
893
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
894
1536
  }
895
1537
  };
896
1538
  const deserializeAws_json1_1DescribeServerCommand = async (output, context) => {
@@ -912,7 +1554,6 @@ const deserializeAws_json1_1DescribeServerCommandError = async (output, context)
912
1554
  ...output,
913
1555
  body: await parseBody(output.body, context),
914
1556
  };
915
- let response;
916
1557
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
917
1558
  switch (errorCode) {
918
1559
  case "InternalServiceError":
@@ -929,14 +1570,12 @@ const deserializeAws_json1_1DescribeServerCommandError = async (output, context)
929
1570
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
930
1571
  default:
931
1572
  const parsedBody = parsedOutput.body;
932
- const $metadata = deserializeMetadata(output);
933
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
934
- response = new TransferServiceException_1.TransferServiceException({
935
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
936
- $fault: "client",
937
- $metadata,
1573
+ (0, smithy_client_1.throwDefaultError)({
1574
+ output,
1575
+ parsedBody,
1576
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1577
+ errorCode,
938
1578
  });
939
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
940
1579
  }
941
1580
  };
942
1581
  const deserializeAws_json1_1DescribeUserCommand = async (output, context) => {
@@ -958,7 +1597,6 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
958
1597
  ...output,
959
1598
  body: await parseBody(output.body, context),
960
1599
  };
961
- let response;
962
1600
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
963
1601
  switch (errorCode) {
964
1602
  case "InternalServiceError":
@@ -975,14 +1613,12 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
975
1613
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
976
1614
  default:
977
1615
  const parsedBody = parsedOutput.body;
978
- const $metadata = deserializeMetadata(output);
979
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
980
- response = new TransferServiceException_1.TransferServiceException({
981
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
982
- $fault: "client",
983
- $metadata,
1616
+ (0, smithy_client_1.throwDefaultError)({
1617
+ output,
1618
+ parsedBody,
1619
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1620
+ errorCode,
984
1621
  });
985
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
986
1622
  }
987
1623
  };
988
1624
  const deserializeAws_json1_1DescribeWorkflowCommand = async (output, context) => {
@@ -1004,7 +1640,6 @@ const deserializeAws_json1_1DescribeWorkflowCommandError = async (output, contex
1004
1640
  ...output,
1005
1641
  body: await parseBody(output.body, context),
1006
1642
  };
1007
- let response;
1008
1643
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1009
1644
  switch (errorCode) {
1010
1645
  case "InternalServiceError":
@@ -1021,14 +1656,55 @@ const deserializeAws_json1_1DescribeWorkflowCommandError = async (output, contex
1021
1656
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1022
1657
  default:
1023
1658
  const parsedBody = parsedOutput.body;
1024
- const $metadata = deserializeMetadata(output);
1025
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1026
- response = new TransferServiceException_1.TransferServiceException({
1027
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1028
- $fault: "client",
1029
- $metadata,
1659
+ (0, smithy_client_1.throwDefaultError)({
1660
+ output,
1661
+ parsedBody,
1662
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1663
+ errorCode,
1664
+ });
1665
+ }
1666
+ };
1667
+ const deserializeAws_json1_1ImportCertificateCommand = async (output, context) => {
1668
+ if (output.statusCode >= 300) {
1669
+ return deserializeAws_json1_1ImportCertificateCommandError(output, context);
1670
+ }
1671
+ const data = await parseBody(output.body, context);
1672
+ let contents = {};
1673
+ contents = deserializeAws_json1_1ImportCertificateResponse(data, context);
1674
+ const response = {
1675
+ $metadata: deserializeMetadata(output),
1676
+ ...contents,
1677
+ };
1678
+ return Promise.resolve(response);
1679
+ };
1680
+ exports.deserializeAws_json1_1ImportCertificateCommand = deserializeAws_json1_1ImportCertificateCommand;
1681
+ const deserializeAws_json1_1ImportCertificateCommandError = async (output, context) => {
1682
+ const parsedOutput = {
1683
+ ...output,
1684
+ body: await parseBody(output.body, context),
1685
+ };
1686
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1687
+ switch (errorCode) {
1688
+ case "InternalServiceError":
1689
+ case "com.amazonaws.transfer#InternalServiceError":
1690
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1691
+ case "InvalidRequestException":
1692
+ case "com.amazonaws.transfer#InvalidRequestException":
1693
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1694
+ case "ResourceNotFoundException":
1695
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1696
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1697
+ case "ServiceUnavailableException":
1698
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1699
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1700
+ default:
1701
+ const parsedBody = parsedOutput.body;
1702
+ (0, smithy_client_1.throwDefaultError)({
1703
+ output,
1704
+ parsedBody,
1705
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1706
+ errorCode,
1030
1707
  });
1031
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1032
1708
  }
1033
1709
  };
1034
1710
  const deserializeAws_json1_1ImportSshPublicKeyCommand = async (output, context) => {
@@ -1050,7 +1726,6 @@ const deserializeAws_json1_1ImportSshPublicKeyCommandError = async (output, cont
1050
1726
  ...output,
1051
1727
  body: await parseBody(output.body, context),
1052
1728
  };
1053
- let response;
1054
1729
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1055
1730
  switch (errorCode) {
1056
1731
  case "InternalServiceError":
@@ -1068,41 +1743,222 @@ const deserializeAws_json1_1ImportSshPublicKeyCommandError = async (output, cont
1068
1743
  case "ServiceUnavailableException":
1069
1744
  case "com.amazonaws.transfer#ServiceUnavailableException":
1070
1745
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1071
- case "ThrottlingException":
1072
- case "com.amazonaws.transfer#ThrottlingException":
1073
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
1746
+ case "ThrottlingException":
1747
+ case "com.amazonaws.transfer#ThrottlingException":
1748
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
1749
+ default:
1750
+ const parsedBody = parsedOutput.body;
1751
+ (0, smithy_client_1.throwDefaultError)({
1752
+ output,
1753
+ parsedBody,
1754
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1755
+ errorCode,
1756
+ });
1757
+ }
1758
+ };
1759
+ const deserializeAws_json1_1ListAccessesCommand = async (output, context) => {
1760
+ if (output.statusCode >= 300) {
1761
+ return deserializeAws_json1_1ListAccessesCommandError(output, context);
1762
+ }
1763
+ const data = await parseBody(output.body, context);
1764
+ let contents = {};
1765
+ contents = deserializeAws_json1_1ListAccessesResponse(data, context);
1766
+ const response = {
1767
+ $metadata: deserializeMetadata(output),
1768
+ ...contents,
1769
+ };
1770
+ return Promise.resolve(response);
1771
+ };
1772
+ exports.deserializeAws_json1_1ListAccessesCommand = deserializeAws_json1_1ListAccessesCommand;
1773
+ const deserializeAws_json1_1ListAccessesCommandError = async (output, context) => {
1774
+ const parsedOutput = {
1775
+ ...output,
1776
+ body: await parseBody(output.body, context),
1777
+ };
1778
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1779
+ switch (errorCode) {
1780
+ case "InternalServiceError":
1781
+ case "com.amazonaws.transfer#InternalServiceError":
1782
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1783
+ case "InvalidNextTokenException":
1784
+ case "com.amazonaws.transfer#InvalidNextTokenException":
1785
+ throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
1786
+ case "InvalidRequestException":
1787
+ case "com.amazonaws.transfer#InvalidRequestException":
1788
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1789
+ case "ResourceNotFoundException":
1790
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1791
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1792
+ case "ServiceUnavailableException":
1793
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1794
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1795
+ default:
1796
+ const parsedBody = parsedOutput.body;
1797
+ (0, smithy_client_1.throwDefaultError)({
1798
+ output,
1799
+ parsedBody,
1800
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1801
+ errorCode,
1802
+ });
1803
+ }
1804
+ };
1805
+ const deserializeAws_json1_1ListAgreementsCommand = async (output, context) => {
1806
+ if (output.statusCode >= 300) {
1807
+ return deserializeAws_json1_1ListAgreementsCommandError(output, context);
1808
+ }
1809
+ const data = await parseBody(output.body, context);
1810
+ let contents = {};
1811
+ contents = deserializeAws_json1_1ListAgreementsResponse(data, context);
1812
+ const response = {
1813
+ $metadata: deserializeMetadata(output),
1814
+ ...contents,
1815
+ };
1816
+ return Promise.resolve(response);
1817
+ };
1818
+ exports.deserializeAws_json1_1ListAgreementsCommand = deserializeAws_json1_1ListAgreementsCommand;
1819
+ const deserializeAws_json1_1ListAgreementsCommandError = async (output, context) => {
1820
+ const parsedOutput = {
1821
+ ...output,
1822
+ body: await parseBody(output.body, context),
1823
+ };
1824
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1825
+ switch (errorCode) {
1826
+ case "InternalServiceError":
1827
+ case "com.amazonaws.transfer#InternalServiceError":
1828
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1829
+ case "InvalidNextTokenException":
1830
+ case "com.amazonaws.transfer#InvalidNextTokenException":
1831
+ throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
1832
+ case "InvalidRequestException":
1833
+ case "com.amazonaws.transfer#InvalidRequestException":
1834
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1835
+ case "ResourceNotFoundException":
1836
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1837
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1838
+ case "ServiceUnavailableException":
1839
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1840
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1841
+ default:
1842
+ const parsedBody = parsedOutput.body;
1843
+ (0, smithy_client_1.throwDefaultError)({
1844
+ output,
1845
+ parsedBody,
1846
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1847
+ errorCode,
1848
+ });
1849
+ }
1850
+ };
1851
+ const deserializeAws_json1_1ListCertificatesCommand = async (output, context) => {
1852
+ if (output.statusCode >= 300) {
1853
+ return deserializeAws_json1_1ListCertificatesCommandError(output, context);
1854
+ }
1855
+ const data = await parseBody(output.body, context);
1856
+ let contents = {};
1857
+ contents = deserializeAws_json1_1ListCertificatesResponse(data, context);
1858
+ const response = {
1859
+ $metadata: deserializeMetadata(output),
1860
+ ...contents,
1861
+ };
1862
+ return Promise.resolve(response);
1863
+ };
1864
+ exports.deserializeAws_json1_1ListCertificatesCommand = deserializeAws_json1_1ListCertificatesCommand;
1865
+ const deserializeAws_json1_1ListCertificatesCommandError = async (output, context) => {
1866
+ const parsedOutput = {
1867
+ ...output,
1868
+ body: await parseBody(output.body, context),
1869
+ };
1870
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1871
+ switch (errorCode) {
1872
+ case "InternalServiceError":
1873
+ case "com.amazonaws.transfer#InternalServiceError":
1874
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1875
+ case "InvalidNextTokenException":
1876
+ case "com.amazonaws.transfer#InvalidNextTokenException":
1877
+ throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
1878
+ case "InvalidRequestException":
1879
+ case "com.amazonaws.transfer#InvalidRequestException":
1880
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1881
+ case "ResourceNotFoundException":
1882
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1883
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1884
+ case "ServiceUnavailableException":
1885
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1886
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1887
+ default:
1888
+ const parsedBody = parsedOutput.body;
1889
+ (0, smithy_client_1.throwDefaultError)({
1890
+ output,
1891
+ parsedBody,
1892
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1893
+ errorCode,
1894
+ });
1895
+ }
1896
+ };
1897
+ const deserializeAws_json1_1ListConnectorsCommand = async (output, context) => {
1898
+ if (output.statusCode >= 300) {
1899
+ return deserializeAws_json1_1ListConnectorsCommandError(output, context);
1900
+ }
1901
+ const data = await parseBody(output.body, context);
1902
+ let contents = {};
1903
+ contents = deserializeAws_json1_1ListConnectorsResponse(data, context);
1904
+ const response = {
1905
+ $metadata: deserializeMetadata(output),
1906
+ ...contents,
1907
+ };
1908
+ return Promise.resolve(response);
1909
+ };
1910
+ exports.deserializeAws_json1_1ListConnectorsCommand = deserializeAws_json1_1ListConnectorsCommand;
1911
+ const deserializeAws_json1_1ListConnectorsCommandError = async (output, context) => {
1912
+ const parsedOutput = {
1913
+ ...output,
1914
+ body: await parseBody(output.body, context),
1915
+ };
1916
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1917
+ switch (errorCode) {
1918
+ case "InternalServiceError":
1919
+ case "com.amazonaws.transfer#InternalServiceError":
1920
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1921
+ case "InvalidNextTokenException":
1922
+ case "com.amazonaws.transfer#InvalidNextTokenException":
1923
+ throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
1924
+ case "InvalidRequestException":
1925
+ case "com.amazonaws.transfer#InvalidRequestException":
1926
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1927
+ case "ResourceNotFoundException":
1928
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1929
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1930
+ case "ServiceUnavailableException":
1931
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1932
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1074
1933
  default:
1075
1934
  const parsedBody = parsedOutput.body;
1076
- const $metadata = deserializeMetadata(output);
1077
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1078
- response = new TransferServiceException_1.TransferServiceException({
1079
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1080
- $fault: "client",
1081
- $metadata,
1935
+ (0, smithy_client_1.throwDefaultError)({
1936
+ output,
1937
+ parsedBody,
1938
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1939
+ errorCode,
1082
1940
  });
1083
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1084
1941
  }
1085
1942
  };
1086
- const deserializeAws_json1_1ListAccessesCommand = async (output, context) => {
1943
+ const deserializeAws_json1_1ListExecutionsCommand = async (output, context) => {
1087
1944
  if (output.statusCode >= 300) {
1088
- return deserializeAws_json1_1ListAccessesCommandError(output, context);
1945
+ return deserializeAws_json1_1ListExecutionsCommandError(output, context);
1089
1946
  }
1090
1947
  const data = await parseBody(output.body, context);
1091
1948
  let contents = {};
1092
- contents = deserializeAws_json1_1ListAccessesResponse(data, context);
1949
+ contents = deserializeAws_json1_1ListExecutionsResponse(data, context);
1093
1950
  const response = {
1094
1951
  $metadata: deserializeMetadata(output),
1095
1952
  ...contents,
1096
1953
  };
1097
1954
  return Promise.resolve(response);
1098
1955
  };
1099
- exports.deserializeAws_json1_1ListAccessesCommand = deserializeAws_json1_1ListAccessesCommand;
1100
- const deserializeAws_json1_1ListAccessesCommandError = async (output, context) => {
1956
+ exports.deserializeAws_json1_1ListExecutionsCommand = deserializeAws_json1_1ListExecutionsCommand;
1957
+ const deserializeAws_json1_1ListExecutionsCommandError = async (output, context) => {
1101
1958
  const parsedOutput = {
1102
1959
  ...output,
1103
1960
  body: await parseBody(output.body, context),
1104
1961
  };
1105
- let response;
1106
1962
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1107
1963
  switch (errorCode) {
1108
1964
  case "InternalServiceError":
@@ -1122,36 +1978,33 @@ const deserializeAws_json1_1ListAccessesCommandError = async (output, context) =
1122
1978
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1123
1979
  default:
1124
1980
  const parsedBody = parsedOutput.body;
1125
- const $metadata = deserializeMetadata(output);
1126
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1127
- response = new TransferServiceException_1.TransferServiceException({
1128
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1129
- $fault: "client",
1130
- $metadata,
1981
+ (0, smithy_client_1.throwDefaultError)({
1982
+ output,
1983
+ parsedBody,
1984
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
1985
+ errorCode,
1131
1986
  });
1132
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1133
1987
  }
1134
1988
  };
1135
- const deserializeAws_json1_1ListExecutionsCommand = async (output, context) => {
1989
+ const deserializeAws_json1_1ListProfilesCommand = async (output, context) => {
1136
1990
  if (output.statusCode >= 300) {
1137
- return deserializeAws_json1_1ListExecutionsCommandError(output, context);
1991
+ return deserializeAws_json1_1ListProfilesCommandError(output, context);
1138
1992
  }
1139
1993
  const data = await parseBody(output.body, context);
1140
1994
  let contents = {};
1141
- contents = deserializeAws_json1_1ListExecutionsResponse(data, context);
1995
+ contents = deserializeAws_json1_1ListProfilesResponse(data, context);
1142
1996
  const response = {
1143
1997
  $metadata: deserializeMetadata(output),
1144
1998
  ...contents,
1145
1999
  };
1146
2000
  return Promise.resolve(response);
1147
2001
  };
1148
- exports.deserializeAws_json1_1ListExecutionsCommand = deserializeAws_json1_1ListExecutionsCommand;
1149
- const deserializeAws_json1_1ListExecutionsCommandError = async (output, context) => {
2002
+ exports.deserializeAws_json1_1ListProfilesCommand = deserializeAws_json1_1ListProfilesCommand;
2003
+ const deserializeAws_json1_1ListProfilesCommandError = async (output, context) => {
1150
2004
  const parsedOutput = {
1151
2005
  ...output,
1152
2006
  body: await parseBody(output.body, context),
1153
2007
  };
1154
- let response;
1155
2008
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1156
2009
  switch (errorCode) {
1157
2010
  case "InternalServiceError":
@@ -1171,14 +2024,12 @@ const deserializeAws_json1_1ListExecutionsCommandError = async (output, context)
1171
2024
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1172
2025
  default:
1173
2026
  const parsedBody = parsedOutput.body;
1174
- const $metadata = deserializeMetadata(output);
1175
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1176
- response = new TransferServiceException_1.TransferServiceException({
1177
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1178
- $fault: "client",
1179
- $metadata,
2027
+ (0, smithy_client_1.throwDefaultError)({
2028
+ output,
2029
+ parsedBody,
2030
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2031
+ errorCode,
1180
2032
  });
1181
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1182
2033
  }
1183
2034
  };
1184
2035
  const deserializeAws_json1_1ListSecurityPoliciesCommand = async (output, context) => {
@@ -1200,7 +2051,6 @@ const deserializeAws_json1_1ListSecurityPoliciesCommandError = async (output, co
1200
2051
  ...output,
1201
2052
  body: await parseBody(output.body, context),
1202
2053
  };
1203
- let response;
1204
2054
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1205
2055
  switch (errorCode) {
1206
2056
  case "InternalServiceError":
@@ -1217,14 +2067,12 @@ const deserializeAws_json1_1ListSecurityPoliciesCommandError = async (output, co
1217
2067
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1218
2068
  default:
1219
2069
  const parsedBody = parsedOutput.body;
1220
- const $metadata = deserializeMetadata(output);
1221
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1222
- response = new TransferServiceException_1.TransferServiceException({
1223
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1224
- $fault: "client",
1225
- $metadata,
2070
+ (0, smithy_client_1.throwDefaultError)({
2071
+ output,
2072
+ parsedBody,
2073
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2074
+ errorCode,
1226
2075
  });
1227
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1228
2076
  }
1229
2077
  };
1230
2078
  const deserializeAws_json1_1ListServersCommand = async (output, context) => {
@@ -1246,7 +2094,6 @@ const deserializeAws_json1_1ListServersCommandError = async (output, context) =>
1246
2094
  ...output,
1247
2095
  body: await parseBody(output.body, context),
1248
2096
  };
1249
- let response;
1250
2097
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1251
2098
  switch (errorCode) {
1252
2099
  case "InternalServiceError":
@@ -1263,14 +2110,12 @@ const deserializeAws_json1_1ListServersCommandError = async (output, context) =>
1263
2110
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1264
2111
  default:
1265
2112
  const parsedBody = parsedOutput.body;
1266
- const $metadata = deserializeMetadata(output);
1267
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1268
- response = new TransferServiceException_1.TransferServiceException({
1269
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1270
- $fault: "client",
1271
- $metadata,
2113
+ (0, smithy_client_1.throwDefaultError)({
2114
+ output,
2115
+ parsedBody,
2116
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2117
+ errorCode,
1272
2118
  });
1273
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1274
2119
  }
1275
2120
  };
1276
2121
  const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
@@ -1292,7 +2137,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
1292
2137
  ...output,
1293
2138
  body: await parseBody(output.body, context),
1294
2139
  };
1295
- let response;
1296
2140
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1297
2141
  switch (errorCode) {
1298
2142
  case "InternalServiceError":
@@ -1309,14 +2153,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
1309
2153
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1310
2154
  default:
1311
2155
  const parsedBody = parsedOutput.body;
1312
- const $metadata = deserializeMetadata(output);
1313
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1314
- response = new TransferServiceException_1.TransferServiceException({
1315
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1316
- $fault: "client",
1317
- $metadata,
2156
+ (0, smithy_client_1.throwDefaultError)({
2157
+ output,
2158
+ parsedBody,
2159
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2160
+ errorCode,
1318
2161
  });
1319
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1320
2162
  }
1321
2163
  };
1322
2164
  const deserializeAws_json1_1ListUsersCommand = async (output, context) => {
@@ -1338,7 +2180,6 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
1338
2180
  ...output,
1339
2181
  body: await parseBody(output.body, context),
1340
2182
  };
1341
- let response;
1342
2183
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1343
2184
  switch (errorCode) {
1344
2185
  case "InternalServiceError":
@@ -1358,14 +2199,12 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
1358
2199
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1359
2200
  default:
1360
2201
  const parsedBody = parsedOutput.body;
1361
- const $metadata = deserializeMetadata(output);
1362
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1363
- response = new TransferServiceException_1.TransferServiceException({
1364
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1365
- $fault: "client",
1366
- $metadata,
2202
+ (0, smithy_client_1.throwDefaultError)({
2203
+ output,
2204
+ parsedBody,
2205
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2206
+ errorCode,
1367
2207
  });
1368
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1369
2208
  }
1370
2209
  };
1371
2210
  const deserializeAws_json1_1ListWorkflowsCommand = async (output, context) => {
@@ -1387,7 +2226,6 @@ const deserializeAws_json1_1ListWorkflowsCommandError = async (output, context)
1387
2226
  ...output,
1388
2227
  body: await parseBody(output.body, context),
1389
2228
  };
1390
- let response;
1391
2229
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1392
2230
  switch (errorCode) {
1393
2231
  case "InternalServiceError":
@@ -1404,14 +2242,12 @@ const deserializeAws_json1_1ListWorkflowsCommandError = async (output, context)
1404
2242
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1405
2243
  default:
1406
2244
  const parsedBody = parsedOutput.body;
1407
- const $metadata = deserializeMetadata(output);
1408
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1409
- response = new TransferServiceException_1.TransferServiceException({
1410
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1411
- $fault: "client",
1412
- $metadata,
2245
+ (0, smithy_client_1.throwDefaultError)({
2246
+ output,
2247
+ parsedBody,
2248
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2249
+ errorCode,
1413
2250
  });
1414
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1415
2251
  }
1416
2252
  };
1417
2253
  const deserializeAws_json1_1SendWorkflowStepStateCommand = async (output, context) => {
@@ -1433,7 +2269,6 @@ const deserializeAws_json1_1SendWorkflowStepStateCommandError = async (output, c
1433
2269
  ...output,
1434
2270
  body: await parseBody(output.body, context),
1435
2271
  };
1436
- let response;
1437
2272
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1438
2273
  switch (errorCode) {
1439
2274
  case "AccessDeniedException":
@@ -1456,14 +2291,58 @@ const deserializeAws_json1_1SendWorkflowStepStateCommandError = async (output, c
1456
2291
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
1457
2292
  default:
1458
2293
  const parsedBody = parsedOutput.body;
1459
- const $metadata = deserializeMetadata(output);
1460
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1461
- response = new TransferServiceException_1.TransferServiceException({
1462
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1463
- $fault: "client",
1464
- $metadata,
2294
+ (0, smithy_client_1.throwDefaultError)({
2295
+ output,
2296
+ parsedBody,
2297
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2298
+ errorCode,
2299
+ });
2300
+ }
2301
+ };
2302
+ const deserializeAws_json1_1StartFileTransferCommand = async (output, context) => {
2303
+ if (output.statusCode >= 300) {
2304
+ return deserializeAws_json1_1StartFileTransferCommandError(output, context);
2305
+ }
2306
+ const data = await parseBody(output.body, context);
2307
+ let contents = {};
2308
+ contents = deserializeAws_json1_1StartFileTransferResponse(data, context);
2309
+ const response = {
2310
+ $metadata: deserializeMetadata(output),
2311
+ ...contents,
2312
+ };
2313
+ return Promise.resolve(response);
2314
+ };
2315
+ exports.deserializeAws_json1_1StartFileTransferCommand = deserializeAws_json1_1StartFileTransferCommand;
2316
+ const deserializeAws_json1_1StartFileTransferCommandError = async (output, context) => {
2317
+ const parsedOutput = {
2318
+ ...output,
2319
+ body: await parseBody(output.body, context),
2320
+ };
2321
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2322
+ switch (errorCode) {
2323
+ case "InternalServiceError":
2324
+ case "com.amazonaws.transfer#InternalServiceError":
2325
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
2326
+ case "InvalidRequestException":
2327
+ case "com.amazonaws.transfer#InvalidRequestException":
2328
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2329
+ case "ResourceNotFoundException":
2330
+ case "com.amazonaws.transfer#ResourceNotFoundException":
2331
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2332
+ case "ServiceUnavailableException":
2333
+ case "com.amazonaws.transfer#ServiceUnavailableException":
2334
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
2335
+ case "ThrottlingException":
2336
+ case "com.amazonaws.transfer#ThrottlingException":
2337
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
2338
+ default:
2339
+ const parsedBody = parsedOutput.body;
2340
+ (0, smithy_client_1.throwDefaultError)({
2341
+ output,
2342
+ parsedBody,
2343
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2344
+ errorCode,
1465
2345
  });
1466
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1467
2346
  }
1468
2347
  };
1469
2348
  const deserializeAws_json1_1StartServerCommand = async (output, context) => {
@@ -1482,7 +2361,6 @@ const deserializeAws_json1_1StartServerCommandError = async (output, context) =>
1482
2361
  ...output,
1483
2362
  body: await parseBody(output.body, context),
1484
2363
  };
1485
- let response;
1486
2364
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1487
2365
  switch (errorCode) {
1488
2366
  case "InternalServiceError":
@@ -1502,14 +2380,12 @@ const deserializeAws_json1_1StartServerCommandError = async (output, context) =>
1502
2380
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
1503
2381
  default:
1504
2382
  const parsedBody = parsedOutput.body;
1505
- const $metadata = deserializeMetadata(output);
1506
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1507
- response = new TransferServiceException_1.TransferServiceException({
1508
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1509
- $fault: "client",
1510
- $metadata,
2383
+ (0, smithy_client_1.throwDefaultError)({
2384
+ output,
2385
+ parsedBody,
2386
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2387
+ errorCode,
1511
2388
  });
1512
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1513
2389
  }
1514
2390
  };
1515
2391
  const deserializeAws_json1_1StopServerCommand = async (output, context) => {
@@ -1528,7 +2404,6 @@ const deserializeAws_json1_1StopServerCommandError = async (output, context) =>
1528
2404
  ...output,
1529
2405
  body: await parseBody(output.body, context),
1530
2406
  };
1531
- let response;
1532
2407
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1533
2408
  switch (errorCode) {
1534
2409
  case "InternalServiceError":
@@ -1548,14 +2423,12 @@ const deserializeAws_json1_1StopServerCommandError = async (output, context) =>
1548
2423
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
1549
2424
  default:
1550
2425
  const parsedBody = parsedOutput.body;
1551
- const $metadata = deserializeMetadata(output);
1552
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1553
- response = new TransferServiceException_1.TransferServiceException({
1554
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1555
- $fault: "client",
1556
- $metadata,
2426
+ (0, smithy_client_1.throwDefaultError)({
2427
+ output,
2428
+ parsedBody,
2429
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2430
+ errorCode,
1557
2431
  });
1558
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1559
2432
  }
1560
2433
  };
1561
2434
  const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
@@ -1574,7 +2447,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
1574
2447
  ...output,
1575
2448
  body: await parseBody(output.body, context),
1576
2449
  };
1577
- let response;
1578
2450
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1579
2451
  switch (errorCode) {
1580
2452
  case "InternalServiceError":
@@ -1591,14 +2463,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
1591
2463
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1592
2464
  default:
1593
2465
  const parsedBody = parsedOutput.body;
1594
- const $metadata = deserializeMetadata(output);
1595
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1596
- response = new TransferServiceException_1.TransferServiceException({
1597
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1598
- $fault: "client",
1599
- $metadata,
2466
+ (0, smithy_client_1.throwDefaultError)({
2467
+ output,
2468
+ parsedBody,
2469
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2470
+ errorCode,
1600
2471
  });
1601
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1602
2472
  }
1603
2473
  };
1604
2474
  const deserializeAws_json1_1TestIdentityProviderCommand = async (output, context) => {
@@ -1620,7 +2490,6 @@ const deserializeAws_json1_1TestIdentityProviderCommandError = async (output, co
1620
2490
  ...output,
1621
2491
  body: await parseBody(output.body, context),
1622
2492
  };
1623
- let response;
1624
2493
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1625
2494
  switch (errorCode) {
1626
2495
  case "InternalServiceError":
@@ -1637,14 +2506,12 @@ const deserializeAws_json1_1TestIdentityProviderCommandError = async (output, co
1637
2506
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1638
2507
  default:
1639
2508
  const parsedBody = parsedOutput.body;
1640
- const $metadata = deserializeMetadata(output);
1641
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1642
- response = new TransferServiceException_1.TransferServiceException({
1643
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1644
- $fault: "client",
1645
- $metadata,
2509
+ (0, smithy_client_1.throwDefaultError)({
2510
+ output,
2511
+ parsedBody,
2512
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2513
+ errorCode,
1646
2514
  });
1647
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1648
2515
  }
1649
2516
  };
1650
2517
  const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
@@ -1663,7 +2530,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
1663
2530
  ...output,
1664
2531
  body: await parseBody(output.body, context),
1665
2532
  };
1666
- let response;
1667
2533
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1668
2534
  switch (errorCode) {
1669
2535
  case "InternalServiceError":
@@ -1680,14 +2546,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
1680
2546
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1681
2547
  default:
1682
2548
  const parsedBody = parsedOutput.body;
1683
- const $metadata = deserializeMetadata(output);
1684
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1685
- response = new TransferServiceException_1.TransferServiceException({
1686
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1687
- $fault: "client",
1688
- $metadata,
2549
+ (0, smithy_client_1.throwDefaultError)({
2550
+ output,
2551
+ parsedBody,
2552
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2553
+ errorCode,
1689
2554
  });
1690
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1691
2555
  }
1692
2556
  };
1693
2557
  const deserializeAws_json1_1UpdateAccessCommand = async (output, context) => {
@@ -1709,7 +2573,6 @@ const deserializeAws_json1_1UpdateAccessCommandError = async (output, context) =
1709
2573
  ...output,
1710
2574
  body: await parseBody(output.body, context),
1711
2575
  };
1712
- let response;
1713
2576
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1714
2577
  switch (errorCode) {
1715
2578
  case "InternalServiceError":
@@ -1729,14 +2592,190 @@ const deserializeAws_json1_1UpdateAccessCommandError = async (output, context) =
1729
2592
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1730
2593
  default:
1731
2594
  const parsedBody = parsedOutput.body;
1732
- const $metadata = deserializeMetadata(output);
1733
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1734
- response = new TransferServiceException_1.TransferServiceException({
1735
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1736
- $fault: "client",
1737
- $metadata,
2595
+ (0, smithy_client_1.throwDefaultError)({
2596
+ output,
2597
+ parsedBody,
2598
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2599
+ errorCode,
2600
+ });
2601
+ }
2602
+ };
2603
+ const deserializeAws_json1_1UpdateAgreementCommand = async (output, context) => {
2604
+ if (output.statusCode >= 300) {
2605
+ return deserializeAws_json1_1UpdateAgreementCommandError(output, context);
2606
+ }
2607
+ const data = await parseBody(output.body, context);
2608
+ let contents = {};
2609
+ contents = deserializeAws_json1_1UpdateAgreementResponse(data, context);
2610
+ const response = {
2611
+ $metadata: deserializeMetadata(output),
2612
+ ...contents,
2613
+ };
2614
+ return Promise.resolve(response);
2615
+ };
2616
+ exports.deserializeAws_json1_1UpdateAgreementCommand = deserializeAws_json1_1UpdateAgreementCommand;
2617
+ const deserializeAws_json1_1UpdateAgreementCommandError = async (output, context) => {
2618
+ const parsedOutput = {
2619
+ ...output,
2620
+ body: await parseBody(output.body, context),
2621
+ };
2622
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2623
+ switch (errorCode) {
2624
+ case "InternalServiceError":
2625
+ case "com.amazonaws.transfer#InternalServiceError":
2626
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
2627
+ case "InvalidRequestException":
2628
+ case "com.amazonaws.transfer#InvalidRequestException":
2629
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2630
+ case "ResourceExistsException":
2631
+ case "com.amazonaws.transfer#ResourceExistsException":
2632
+ throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
2633
+ case "ResourceNotFoundException":
2634
+ case "com.amazonaws.transfer#ResourceNotFoundException":
2635
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2636
+ case "ServiceUnavailableException":
2637
+ case "com.amazonaws.transfer#ServiceUnavailableException":
2638
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
2639
+ default:
2640
+ const parsedBody = parsedOutput.body;
2641
+ (0, smithy_client_1.throwDefaultError)({
2642
+ output,
2643
+ parsedBody,
2644
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2645
+ errorCode,
2646
+ });
2647
+ }
2648
+ };
2649
+ const deserializeAws_json1_1UpdateCertificateCommand = async (output, context) => {
2650
+ if (output.statusCode >= 300) {
2651
+ return deserializeAws_json1_1UpdateCertificateCommandError(output, context);
2652
+ }
2653
+ const data = await parseBody(output.body, context);
2654
+ let contents = {};
2655
+ contents = deserializeAws_json1_1UpdateCertificateResponse(data, context);
2656
+ const response = {
2657
+ $metadata: deserializeMetadata(output),
2658
+ ...contents,
2659
+ };
2660
+ return Promise.resolve(response);
2661
+ };
2662
+ exports.deserializeAws_json1_1UpdateCertificateCommand = deserializeAws_json1_1UpdateCertificateCommand;
2663
+ const deserializeAws_json1_1UpdateCertificateCommandError = async (output, context) => {
2664
+ const parsedOutput = {
2665
+ ...output,
2666
+ body: await parseBody(output.body, context),
2667
+ };
2668
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2669
+ switch (errorCode) {
2670
+ case "InternalServiceError":
2671
+ case "com.amazonaws.transfer#InternalServiceError":
2672
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
2673
+ case "InvalidRequestException":
2674
+ case "com.amazonaws.transfer#InvalidRequestException":
2675
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2676
+ case "ResourceNotFoundException":
2677
+ case "com.amazonaws.transfer#ResourceNotFoundException":
2678
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2679
+ case "ServiceUnavailableException":
2680
+ case "com.amazonaws.transfer#ServiceUnavailableException":
2681
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
2682
+ default:
2683
+ const parsedBody = parsedOutput.body;
2684
+ (0, smithy_client_1.throwDefaultError)({
2685
+ output,
2686
+ parsedBody,
2687
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2688
+ errorCode,
2689
+ });
2690
+ }
2691
+ };
2692
+ const deserializeAws_json1_1UpdateConnectorCommand = async (output, context) => {
2693
+ if (output.statusCode >= 300) {
2694
+ return deserializeAws_json1_1UpdateConnectorCommandError(output, context);
2695
+ }
2696
+ const data = await parseBody(output.body, context);
2697
+ let contents = {};
2698
+ contents = deserializeAws_json1_1UpdateConnectorResponse(data, context);
2699
+ const response = {
2700
+ $metadata: deserializeMetadata(output),
2701
+ ...contents,
2702
+ };
2703
+ return Promise.resolve(response);
2704
+ };
2705
+ exports.deserializeAws_json1_1UpdateConnectorCommand = deserializeAws_json1_1UpdateConnectorCommand;
2706
+ const deserializeAws_json1_1UpdateConnectorCommandError = async (output, context) => {
2707
+ const parsedOutput = {
2708
+ ...output,
2709
+ body: await parseBody(output.body, context),
2710
+ };
2711
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2712
+ switch (errorCode) {
2713
+ case "InternalServiceError":
2714
+ case "com.amazonaws.transfer#InternalServiceError":
2715
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
2716
+ case "InvalidRequestException":
2717
+ case "com.amazonaws.transfer#InvalidRequestException":
2718
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2719
+ case "ResourceExistsException":
2720
+ case "com.amazonaws.transfer#ResourceExistsException":
2721
+ throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
2722
+ case "ResourceNotFoundException":
2723
+ case "com.amazonaws.transfer#ResourceNotFoundException":
2724
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2725
+ case "ServiceUnavailableException":
2726
+ case "com.amazonaws.transfer#ServiceUnavailableException":
2727
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
2728
+ default:
2729
+ const parsedBody = parsedOutput.body;
2730
+ (0, smithy_client_1.throwDefaultError)({
2731
+ output,
2732
+ parsedBody,
2733
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2734
+ errorCode,
2735
+ });
2736
+ }
2737
+ };
2738
+ const deserializeAws_json1_1UpdateProfileCommand = async (output, context) => {
2739
+ if (output.statusCode >= 300) {
2740
+ return deserializeAws_json1_1UpdateProfileCommandError(output, context);
2741
+ }
2742
+ const data = await parseBody(output.body, context);
2743
+ let contents = {};
2744
+ contents = deserializeAws_json1_1UpdateProfileResponse(data, context);
2745
+ const response = {
2746
+ $metadata: deserializeMetadata(output),
2747
+ ...contents,
2748
+ };
2749
+ return Promise.resolve(response);
2750
+ };
2751
+ exports.deserializeAws_json1_1UpdateProfileCommand = deserializeAws_json1_1UpdateProfileCommand;
2752
+ const deserializeAws_json1_1UpdateProfileCommandError = async (output, context) => {
2753
+ const parsedOutput = {
2754
+ ...output,
2755
+ body: await parseBody(output.body, context),
2756
+ };
2757
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2758
+ switch (errorCode) {
2759
+ case "InternalServiceError":
2760
+ case "com.amazonaws.transfer#InternalServiceError":
2761
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
2762
+ case "InvalidRequestException":
2763
+ case "com.amazonaws.transfer#InvalidRequestException":
2764
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2765
+ case "ResourceNotFoundException":
2766
+ case "com.amazonaws.transfer#ResourceNotFoundException":
2767
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2768
+ case "ServiceUnavailableException":
2769
+ case "com.amazonaws.transfer#ServiceUnavailableException":
2770
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
2771
+ default:
2772
+ const parsedBody = parsedOutput.body;
2773
+ (0, smithy_client_1.throwDefaultError)({
2774
+ output,
2775
+ parsedBody,
2776
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2777
+ errorCode,
1738
2778
  });
1739
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1740
2779
  }
1741
2780
  };
1742
2781
  const deserializeAws_json1_1UpdateServerCommand = async (output, context) => {
@@ -1758,7 +2797,6 @@ const deserializeAws_json1_1UpdateServerCommandError = async (output, context) =
1758
2797
  ...output,
1759
2798
  body: await parseBody(output.body, context),
1760
2799
  };
1761
- let response;
1762
2800
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1763
2801
  switch (errorCode) {
1764
2802
  case "AccessDeniedException":
@@ -1787,14 +2825,12 @@ const deserializeAws_json1_1UpdateServerCommandError = async (output, context) =
1787
2825
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
1788
2826
  default:
1789
2827
  const parsedBody = parsedOutput.body;
1790
- const $metadata = deserializeMetadata(output);
1791
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1792
- response = new TransferServiceException_1.TransferServiceException({
1793
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1794
- $fault: "client",
1795
- $metadata,
2828
+ (0, smithy_client_1.throwDefaultError)({
2829
+ output,
2830
+ parsedBody,
2831
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2832
+ errorCode,
1796
2833
  });
1797
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1798
2834
  }
1799
2835
  };
1800
2836
  const deserializeAws_json1_1UpdateUserCommand = async (output, context) => {
@@ -1816,7 +2852,6 @@ const deserializeAws_json1_1UpdateUserCommandError = async (output, context) =>
1816
2852
  ...output,
1817
2853
  body: await parseBody(output.body, context),
1818
2854
  };
1819
- let response;
1820
2855
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1821
2856
  switch (errorCode) {
1822
2857
  case "InternalServiceError":
@@ -1836,14 +2871,12 @@ const deserializeAws_json1_1UpdateUserCommandError = async (output, context) =>
1836
2871
  throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
1837
2872
  default:
1838
2873
  const parsedBody = parsedOutput.body;
1839
- const $metadata = deserializeMetadata(output);
1840
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1841
- response = new TransferServiceException_1.TransferServiceException({
1842
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1843
- $fault: "client",
1844
- $metadata,
2874
+ (0, smithy_client_1.throwDefaultError)({
2875
+ output,
2876
+ parsedBody,
2877
+ exceptionCtor: TransferServiceException_1.TransferServiceException,
2878
+ errorCode,
1845
2879
  });
1846
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1847
2880
  }
1848
2881
  };
1849
2882
  const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
@@ -1931,9 +2964,32 @@ const serializeAws_json1_1AddressAllocationIds = (input, context) => {
1931
2964
  return input
1932
2965
  .filter((e) => e != null)
1933
2966
  .map((entry) => {
1934
- if (entry === null) {
1935
- return null;
1936
- }
2967
+ return entry;
2968
+ });
2969
+ };
2970
+ const serializeAws_json1_1As2ConnectorConfig = (input, context) => {
2971
+ return {
2972
+ ...(input.Compression != null && { Compression: input.Compression }),
2973
+ ...(input.EncryptionAlgorithm != null && { EncryptionAlgorithm: input.EncryptionAlgorithm }),
2974
+ ...(input.LocalProfileId != null && { LocalProfileId: input.LocalProfileId }),
2975
+ ...(input.MdnResponse != null && { MdnResponse: input.MdnResponse }),
2976
+ ...(input.MdnSigningAlgorithm != null && { MdnSigningAlgorithm: input.MdnSigningAlgorithm }),
2977
+ ...(input.MessageSubject != null && { MessageSubject: input.MessageSubject }),
2978
+ ...(input.PartnerProfileId != null && { PartnerProfileId: input.PartnerProfileId }),
2979
+ ...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
2980
+ };
2981
+ };
2982
+ const serializeAws_json1_1As2Transports = (input, context) => {
2983
+ return input
2984
+ .filter((e) => e != null)
2985
+ .map((entry) => {
2986
+ return entry;
2987
+ });
2988
+ };
2989
+ const serializeAws_json1_1CertificateIds = (input, context) => {
2990
+ return input
2991
+ .filter((e) => e != null)
2992
+ .map((entry) => {
1937
2993
  return entry;
1938
2994
  });
1939
2995
  };
@@ -1961,6 +3017,37 @@ const serializeAws_json1_1CreateAccessRequest = (input, context) => {
1961
3017
  ...(input.ServerId != null && { ServerId: input.ServerId }),
1962
3018
  };
1963
3019
  };
3020
+ const serializeAws_json1_1CreateAgreementRequest = (input, context) => {
3021
+ return {
3022
+ ...(input.AccessRole != null && { AccessRole: input.AccessRole }),
3023
+ ...(input.BaseDirectory != null && { BaseDirectory: input.BaseDirectory }),
3024
+ ...(input.Description != null && { Description: input.Description }),
3025
+ ...(input.LocalProfileId != null && { LocalProfileId: input.LocalProfileId }),
3026
+ ...(input.PartnerProfileId != null && { PartnerProfileId: input.PartnerProfileId }),
3027
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
3028
+ ...(input.Status != null && { Status: input.Status }),
3029
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3030
+ };
3031
+ };
3032
+ const serializeAws_json1_1CreateConnectorRequest = (input, context) => {
3033
+ return {
3034
+ ...(input.AccessRole != null && { AccessRole: input.AccessRole }),
3035
+ ...(input.As2Config != null && { As2Config: serializeAws_json1_1As2ConnectorConfig(input.As2Config, context) }),
3036
+ ...(input.LoggingRole != null && { LoggingRole: input.LoggingRole }),
3037
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3038
+ ...(input.Url != null && { Url: input.Url }),
3039
+ };
3040
+ };
3041
+ const serializeAws_json1_1CreateProfileRequest = (input, context) => {
3042
+ return {
3043
+ ...(input.As2Id != null && { As2Id: input.As2Id }),
3044
+ ...(input.CertificateIds != null && {
3045
+ CertificateIds: serializeAws_json1_1CertificateIds(input.CertificateIds, context),
3046
+ }),
3047
+ ...(input.ProfileType != null && { ProfileType: input.ProfileType }),
3048
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3049
+ };
3050
+ };
1964
3051
  const serializeAws_json1_1CreateServerRequest = (input, context) => {
1965
3052
  return {
1966
3053
  ...(input.Certificate != null && { Certificate: input.Certificate }),
@@ -2032,6 +3119,27 @@ const serializeAws_json1_1DeleteAccessRequest = (input, context) => {
2032
3119
  ...(input.ServerId != null && { ServerId: input.ServerId }),
2033
3120
  };
2034
3121
  };
3122
+ const serializeAws_json1_1DeleteAgreementRequest = (input, context) => {
3123
+ return {
3124
+ ...(input.AgreementId != null && { AgreementId: input.AgreementId }),
3125
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
3126
+ };
3127
+ };
3128
+ const serializeAws_json1_1DeleteCertificateRequest = (input, context) => {
3129
+ return {
3130
+ ...(input.CertificateId != null && { CertificateId: input.CertificateId }),
3131
+ };
3132
+ };
3133
+ const serializeAws_json1_1DeleteConnectorRequest = (input, context) => {
3134
+ return {
3135
+ ...(input.ConnectorId != null && { ConnectorId: input.ConnectorId }),
3136
+ };
3137
+ };
3138
+ const serializeAws_json1_1DeleteProfileRequest = (input, context) => {
3139
+ return {
3140
+ ...(input.ProfileId != null && { ProfileId: input.ProfileId }),
3141
+ };
3142
+ };
2035
3143
  const serializeAws_json1_1DeleteServerRequest = (input, context) => {
2036
3144
  return {
2037
3145
  ...(input.ServerId != null && { ServerId: input.ServerId }),
@@ -2067,12 +3175,33 @@ const serializeAws_json1_1DescribeAccessRequest = (input, context) => {
2067
3175
  ...(input.ServerId != null && { ServerId: input.ServerId }),
2068
3176
  };
2069
3177
  };
3178
+ const serializeAws_json1_1DescribeAgreementRequest = (input, context) => {
3179
+ return {
3180
+ ...(input.AgreementId != null && { AgreementId: input.AgreementId }),
3181
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
3182
+ };
3183
+ };
3184
+ const serializeAws_json1_1DescribeCertificateRequest = (input, context) => {
3185
+ return {
3186
+ ...(input.CertificateId != null && { CertificateId: input.CertificateId }),
3187
+ };
3188
+ };
3189
+ const serializeAws_json1_1DescribeConnectorRequest = (input, context) => {
3190
+ return {
3191
+ ...(input.ConnectorId != null && { ConnectorId: input.ConnectorId }),
3192
+ };
3193
+ };
2070
3194
  const serializeAws_json1_1DescribeExecutionRequest = (input, context) => {
2071
3195
  return {
2072
3196
  ...(input.ExecutionId != null && { ExecutionId: input.ExecutionId }),
2073
3197
  ...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
2074
3198
  };
2075
3199
  };
3200
+ const serializeAws_json1_1DescribeProfileRequest = (input, context) => {
3201
+ return {
3202
+ ...(input.ProfileId != null && { ProfileId: input.ProfileId }),
3203
+ };
3204
+ };
2076
3205
  const serializeAws_json1_1DescribeSecurityPolicyRequest = (input, context) => {
2077
3206
  return {
2078
3207
  ...(input.SecurityPolicyName != null && { SecurityPolicyName: input.SecurityPolicyName }),
@@ -2113,6 +3242,13 @@ const serializeAws_json1_1EndpointDetails = (input, context) => {
2113
3242
  ...(input.VpcId != null && { VpcId: input.VpcId }),
2114
3243
  };
2115
3244
  };
3245
+ const serializeAws_json1_1FilePaths = (input, context) => {
3246
+ return input
3247
+ .filter((e) => e != null)
3248
+ .map((entry) => {
3249
+ return entry;
3250
+ });
3251
+ };
2116
3252
  const serializeAws_json1_1HomeDirectoryMapEntry = (input, context) => {
2117
3253
  return {
2118
3254
  ...(input.Entry != null && { Entry: input.Entry }),
@@ -2123,9 +3259,6 @@ const serializeAws_json1_1HomeDirectoryMappings = (input, context) => {
2123
3259
  return input
2124
3260
  .filter((e) => e != null)
2125
3261
  .map((entry) => {
2126
- if (entry === null) {
2127
- return null;
2128
- }
2129
3262
  return serializeAws_json1_1HomeDirectoryMapEntry(entry, context);
2130
3263
  });
2131
3264
  };
@@ -2137,6 +3270,18 @@ const serializeAws_json1_1IdentityProviderDetails = (input, context) => {
2137
3270
  ...(input.Url != null && { Url: input.Url }),
2138
3271
  };
2139
3272
  };
3273
+ const serializeAws_json1_1ImportCertificateRequest = (input, context) => {
3274
+ return {
3275
+ ...(input.ActiveDate != null && { ActiveDate: Math.round(input.ActiveDate.getTime() / 1000) }),
3276
+ ...(input.Certificate != null && { Certificate: input.Certificate }),
3277
+ ...(input.CertificateChain != null && { CertificateChain: input.CertificateChain }),
3278
+ ...(input.Description != null && { Description: input.Description }),
3279
+ ...(input.InactiveDate != null && { InactiveDate: Math.round(input.InactiveDate.getTime() / 1000) }),
3280
+ ...(input.PrivateKey != null && { PrivateKey: input.PrivateKey }),
3281
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3282
+ ...(input.Usage != null && { Usage: input.Usage }),
3283
+ };
3284
+ };
2140
3285
  const serializeAws_json1_1ImportSshPublicKeyRequest = (input, context) => {
2141
3286
  return {
2142
3287
  ...(input.ServerId != null && { ServerId: input.ServerId }),
@@ -2161,6 +3306,25 @@ const serializeAws_json1_1ListAccessesRequest = (input, context) => {
2161
3306
  ...(input.ServerId != null && { ServerId: input.ServerId }),
2162
3307
  };
2163
3308
  };
3309
+ const serializeAws_json1_1ListAgreementsRequest = (input, context) => {
3310
+ return {
3311
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3312
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3313
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
3314
+ };
3315
+ };
3316
+ const serializeAws_json1_1ListCertificatesRequest = (input, context) => {
3317
+ return {
3318
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3319
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3320
+ };
3321
+ };
3322
+ const serializeAws_json1_1ListConnectorsRequest = (input, context) => {
3323
+ return {
3324
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3325
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3326
+ };
3327
+ };
2164
3328
  const serializeAws_json1_1ListExecutionsRequest = (input, context) => {
2165
3329
  return {
2166
3330
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
@@ -2168,6 +3332,13 @@ const serializeAws_json1_1ListExecutionsRequest = (input, context) => {
2168
3332
  ...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
2169
3333
  };
2170
3334
  };
3335
+ const serializeAws_json1_1ListProfilesRequest = (input, context) => {
3336
+ return {
3337
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3338
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3339
+ ...(input.ProfileType != null && { ProfileType: input.ProfileType }),
3340
+ };
3341
+ };
2171
3342
  const serializeAws_json1_1ListSecurityPoliciesRequest = (input, context) => {
2172
3343
  return {
2173
3344
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
@@ -2204,9 +3375,6 @@ const serializeAws_json1_1OnUploadWorkflowDetails = (input, context) => {
2204
3375
  return input
2205
3376
  .filter((e) => e != null)
2206
3377
  .map((entry) => {
2207
- if (entry === null) {
2208
- return null;
2209
- }
2210
3378
  return serializeAws_json1_1WorkflowDetail(entry, context);
2211
3379
  });
2212
3380
  };
@@ -2221,6 +3389,9 @@ const serializeAws_json1_1PosixProfile = (input, context) => {
2221
3389
  };
2222
3390
  const serializeAws_json1_1ProtocolDetails = (input, context) => {
2223
3391
  return {
3392
+ ...(input.As2Transports != null && {
3393
+ As2Transports: serializeAws_json1_1As2Transports(input.As2Transports, context),
3394
+ }),
2224
3395
  ...(input.PassiveIp != null && { PassiveIp: input.PassiveIp }),
2225
3396
  ...(input.SetStatOption != null && { SetStatOption: input.SetStatOption }),
2226
3397
  ...(input.TlsSessionResumptionMode != null && { TlsSessionResumptionMode: input.TlsSessionResumptionMode }),
@@ -2230,9 +3401,6 @@ const serializeAws_json1_1Protocols = (input, context) => {
2230
3401
  return input
2231
3402
  .filter((e) => e != null)
2232
3403
  .map((entry) => {
2233
- if (entry === null) {
2234
- return null;
2235
- }
2236
3404
  return entry;
2237
3405
  });
2238
3406
  };
@@ -2252,9 +3420,6 @@ const serializeAws_json1_1S3Tags = (input, context) => {
2252
3420
  return input
2253
3421
  .filter((e) => e != null)
2254
3422
  .map((entry) => {
2255
- if (entry === null) {
2256
- return null;
2257
- }
2258
3423
  return serializeAws_json1_1S3Tag(entry, context);
2259
3424
  });
2260
3425
  };
@@ -2262,9 +3427,6 @@ const serializeAws_json1_1SecondaryGids = (input, context) => {
2262
3427
  return input
2263
3428
  .filter((e) => e != null)
2264
3429
  .map((entry) => {
2265
- if (entry === null) {
2266
- return null;
2267
- }
2268
3430
  return entry;
2269
3431
  });
2270
3432
  };
@@ -2272,9 +3434,6 @@ const serializeAws_json1_1SecurityGroupIds = (input, context) => {
2272
3434
  return input
2273
3435
  .filter((e) => e != null)
2274
3436
  .map((entry) => {
2275
- if (entry === null) {
2276
- return null;
2277
- }
2278
3437
  return entry;
2279
3438
  });
2280
3439
  };
@@ -2286,6 +3445,12 @@ const serializeAws_json1_1SendWorkflowStepStateRequest = (input, context) => {
2286
3445
  ...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
2287
3446
  };
2288
3447
  };
3448
+ const serializeAws_json1_1StartFileTransferRequest = (input, context) => {
3449
+ return {
3450
+ ...(input.ConnectorId != null && { ConnectorId: input.ConnectorId }),
3451
+ ...(input.SendFilePaths != null && { SendFilePaths: serializeAws_json1_1FilePaths(input.SendFilePaths, context) }),
3452
+ };
3453
+ };
2289
3454
  const serializeAws_json1_1StartServerRequest = (input, context) => {
2290
3455
  return {
2291
3456
  ...(input.ServerId != null && { ServerId: input.ServerId }),
@@ -2300,9 +3465,6 @@ const serializeAws_json1_1SubnetIds = (input, context) => {
2300
3465
  return input
2301
3466
  .filter((e) => e != null)
2302
3467
  .map((entry) => {
2303
- if (entry === null) {
2304
- return null;
2305
- }
2306
3468
  return entry;
2307
3469
  });
2308
3470
  };
@@ -2316,9 +3478,6 @@ const serializeAws_json1_1TagKeys = (input, context) => {
2316
3478
  return input
2317
3479
  .filter((e) => e != null)
2318
3480
  .map((entry) => {
2319
- if (entry === null) {
2320
- return null;
2321
- }
2322
3481
  return entry;
2323
3482
  });
2324
3483
  };
@@ -2332,9 +3491,6 @@ const serializeAws_json1_1Tags = (input, context) => {
2332
3491
  return input
2333
3492
  .filter((e) => e != null)
2334
3493
  .map((entry) => {
2335
- if (entry === null) {
2336
- return null;
2337
- }
2338
3494
  return serializeAws_json1_1Tag(entry, context);
2339
3495
  });
2340
3496
  };
@@ -2374,6 +3530,43 @@ const serializeAws_json1_1UpdateAccessRequest = (input, context) => {
2374
3530
  ...(input.ServerId != null && { ServerId: input.ServerId }),
2375
3531
  };
2376
3532
  };
3533
+ const serializeAws_json1_1UpdateAgreementRequest = (input, context) => {
3534
+ return {
3535
+ ...(input.AccessRole != null && { AccessRole: input.AccessRole }),
3536
+ ...(input.AgreementId != null && { AgreementId: input.AgreementId }),
3537
+ ...(input.BaseDirectory != null && { BaseDirectory: input.BaseDirectory }),
3538
+ ...(input.Description != null && { Description: input.Description }),
3539
+ ...(input.LocalProfileId != null && { LocalProfileId: input.LocalProfileId }),
3540
+ ...(input.PartnerProfileId != null && { PartnerProfileId: input.PartnerProfileId }),
3541
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
3542
+ ...(input.Status != null && { Status: input.Status }),
3543
+ };
3544
+ };
3545
+ const serializeAws_json1_1UpdateCertificateRequest = (input, context) => {
3546
+ return {
3547
+ ...(input.ActiveDate != null && { ActiveDate: Math.round(input.ActiveDate.getTime() / 1000) }),
3548
+ ...(input.CertificateId != null && { CertificateId: input.CertificateId }),
3549
+ ...(input.Description != null && { Description: input.Description }),
3550
+ ...(input.InactiveDate != null && { InactiveDate: Math.round(input.InactiveDate.getTime() / 1000) }),
3551
+ };
3552
+ };
3553
+ const serializeAws_json1_1UpdateConnectorRequest = (input, context) => {
3554
+ return {
3555
+ ...(input.AccessRole != null && { AccessRole: input.AccessRole }),
3556
+ ...(input.As2Config != null && { As2Config: serializeAws_json1_1As2ConnectorConfig(input.As2Config, context) }),
3557
+ ...(input.ConnectorId != null && { ConnectorId: input.ConnectorId }),
3558
+ ...(input.LoggingRole != null && { LoggingRole: input.LoggingRole }),
3559
+ ...(input.Url != null && { Url: input.Url }),
3560
+ };
3561
+ };
3562
+ const serializeAws_json1_1UpdateProfileRequest = (input, context) => {
3563
+ return {
3564
+ ...(input.CertificateIds != null && {
3565
+ CertificateIds: serializeAws_json1_1CertificateIds(input.CertificateIds, context),
3566
+ }),
3567
+ ...(input.ProfileId != null && { ProfileId: input.ProfileId }),
3568
+ };
3569
+ };
2377
3570
  const serializeAws_json1_1UpdateServerRequest = (input, context) => {
2378
3571
  return {
2379
3572
  ...(input.Certificate != null && { Certificate: input.Certificate }),
@@ -2449,9 +3642,6 @@ const serializeAws_json1_1WorkflowSteps = (input, context) => {
2449
3642
  return input
2450
3643
  .filter((e) => e != null)
2451
3644
  .map((entry) => {
2452
- if (entry === null) {
2453
- return null;
2454
- }
2455
3645
  return serializeAws_json1_1WorkflowStep(entry, context);
2456
3646
  });
2457
3647
  };
@@ -2471,6 +3661,40 @@ const deserializeAws_json1_1AddressAllocationIds = (output, context) => {
2471
3661
  });
2472
3662
  return retVal;
2473
3663
  };
3664
+ const deserializeAws_json1_1As2ConnectorConfig = (output, context) => {
3665
+ return {
3666
+ Compression: (0, smithy_client_1.expectString)(output.Compression),
3667
+ EncryptionAlgorithm: (0, smithy_client_1.expectString)(output.EncryptionAlgorithm),
3668
+ LocalProfileId: (0, smithy_client_1.expectString)(output.LocalProfileId),
3669
+ MdnResponse: (0, smithy_client_1.expectString)(output.MdnResponse),
3670
+ MdnSigningAlgorithm: (0, smithy_client_1.expectString)(output.MdnSigningAlgorithm),
3671
+ MessageSubject: (0, smithy_client_1.expectString)(output.MessageSubject),
3672
+ PartnerProfileId: (0, smithy_client_1.expectString)(output.PartnerProfileId),
3673
+ SigningAlgorithm: (0, smithy_client_1.expectString)(output.SigningAlgorithm),
3674
+ };
3675
+ };
3676
+ const deserializeAws_json1_1As2Transports = (output, context) => {
3677
+ const retVal = (output || [])
3678
+ .filter((e) => e != null)
3679
+ .map((entry) => {
3680
+ if (entry === null) {
3681
+ return null;
3682
+ }
3683
+ return (0, smithy_client_1.expectString)(entry);
3684
+ });
3685
+ return retVal;
3686
+ };
3687
+ const deserializeAws_json1_1CertificateIds = (output, context) => {
3688
+ const retVal = (output || [])
3689
+ .filter((e) => e != null)
3690
+ .map((entry) => {
3691
+ if (entry === null) {
3692
+ return null;
3693
+ }
3694
+ return (0, smithy_client_1.expectString)(entry);
3695
+ });
3696
+ return retVal;
3697
+ };
2474
3698
  const deserializeAws_json1_1ConflictException = (output, context) => {
2475
3699
  return {
2476
3700
  Message: (0, smithy_client_1.expectString)(output.Message),
@@ -2492,6 +3716,21 @@ const deserializeAws_json1_1CreateAccessResponse = (output, context) => {
2492
3716
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
2493
3717
  };
2494
3718
  };
3719
+ const deserializeAws_json1_1CreateAgreementResponse = (output, context) => {
3720
+ return {
3721
+ AgreementId: (0, smithy_client_1.expectString)(output.AgreementId),
3722
+ };
3723
+ };
3724
+ const deserializeAws_json1_1CreateConnectorResponse = (output, context) => {
3725
+ return {
3726
+ ConnectorId: (0, smithy_client_1.expectString)(output.ConnectorId),
3727
+ };
3728
+ };
3729
+ const deserializeAws_json1_1CreateProfileResponse = (output, context) => {
3730
+ return {
3731
+ ProfileId: (0, smithy_client_1.expectString)(output.ProfileId),
3732
+ };
3733
+ };
2495
3734
  const deserializeAws_json1_1CreateServerResponse = (output, context) => {
2496
3735
  return {
2497
3736
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
@@ -2528,6 +3767,21 @@ const deserializeAws_json1_1DescribeAccessResponse = (output, context) => {
2528
3767
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
2529
3768
  };
2530
3769
  };
3770
+ const deserializeAws_json1_1DescribeAgreementResponse = (output, context) => {
3771
+ return {
3772
+ Agreement: output.Agreement != null ? deserializeAws_json1_1DescribedAgreement(output.Agreement, context) : undefined,
3773
+ };
3774
+ };
3775
+ const deserializeAws_json1_1DescribeCertificateResponse = (output, context) => {
3776
+ return {
3777
+ Certificate: output.Certificate != null ? deserializeAws_json1_1DescribedCertificate(output.Certificate, context) : undefined,
3778
+ };
3779
+ };
3780
+ const deserializeAws_json1_1DescribeConnectorResponse = (output, context) => {
3781
+ return {
3782
+ Connector: output.Connector != null ? deserializeAws_json1_1DescribedConnector(output.Connector, context) : undefined,
3783
+ };
3784
+ };
2531
3785
  const deserializeAws_json1_1DescribedAccess = (output, context) => {
2532
3786
  return {
2533
3787
  ExternalId: (0, smithy_client_1.expectString)(output.ExternalId),
@@ -2541,6 +3795,55 @@ const deserializeAws_json1_1DescribedAccess = (output, context) => {
2541
3795
  Role: (0, smithy_client_1.expectString)(output.Role),
2542
3796
  };
2543
3797
  };
3798
+ const deserializeAws_json1_1DescribedAgreement = (output, context) => {
3799
+ return {
3800
+ AccessRole: (0, smithy_client_1.expectString)(output.AccessRole),
3801
+ AgreementId: (0, smithy_client_1.expectString)(output.AgreementId),
3802
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
3803
+ BaseDirectory: (0, smithy_client_1.expectString)(output.BaseDirectory),
3804
+ Description: (0, smithy_client_1.expectString)(output.Description),
3805
+ LocalProfileId: (0, smithy_client_1.expectString)(output.LocalProfileId),
3806
+ PartnerProfileId: (0, smithy_client_1.expectString)(output.PartnerProfileId),
3807
+ ServerId: (0, smithy_client_1.expectString)(output.ServerId),
3808
+ Status: (0, smithy_client_1.expectString)(output.Status),
3809
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
3810
+ };
3811
+ };
3812
+ const deserializeAws_json1_1DescribedCertificate = (output, context) => {
3813
+ return {
3814
+ ActiveDate: output.ActiveDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ActiveDate))) : undefined,
3815
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
3816
+ Certificate: (0, smithy_client_1.expectString)(output.Certificate),
3817
+ CertificateChain: (0, smithy_client_1.expectString)(output.CertificateChain),
3818
+ CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
3819
+ Description: (0, smithy_client_1.expectString)(output.Description),
3820
+ InactiveDate: output.InactiveDate != null
3821
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.InactiveDate)))
3822
+ : undefined,
3823
+ NotAfterDate: output.NotAfterDate != null
3824
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotAfterDate)))
3825
+ : undefined,
3826
+ NotBeforeDate: output.NotBeforeDate != null
3827
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotBeforeDate)))
3828
+ : undefined,
3829
+ Serial: (0, smithy_client_1.expectString)(output.Serial),
3830
+ Status: (0, smithy_client_1.expectString)(output.Status),
3831
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
3832
+ Type: (0, smithy_client_1.expectString)(output.Type),
3833
+ Usage: (0, smithy_client_1.expectString)(output.Usage),
3834
+ };
3835
+ };
3836
+ const deserializeAws_json1_1DescribedConnector = (output, context) => {
3837
+ return {
3838
+ AccessRole: (0, smithy_client_1.expectString)(output.AccessRole),
3839
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
3840
+ As2Config: output.As2Config != null ? deserializeAws_json1_1As2ConnectorConfig(output.As2Config, context) : undefined,
3841
+ ConnectorId: (0, smithy_client_1.expectString)(output.ConnectorId),
3842
+ LoggingRole: (0, smithy_client_1.expectString)(output.LoggingRole),
3843
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
3844
+ Url: (0, smithy_client_1.expectString)(output.Url),
3845
+ };
3846
+ };
2544
3847
  const deserializeAws_json1_1DescribedExecution = (output, context) => {
2545
3848
  return {
2546
3849
  ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId),
@@ -2559,6 +3862,16 @@ const deserializeAws_json1_1DescribedExecution = (output, context) => {
2559
3862
  Status: (0, smithy_client_1.expectString)(output.Status),
2560
3863
  };
2561
3864
  };
3865
+ const deserializeAws_json1_1DescribedProfile = (output, context) => {
3866
+ return {
3867
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
3868
+ As2Id: (0, smithy_client_1.expectString)(output.As2Id),
3869
+ CertificateIds: output.CertificateIds != null ? deserializeAws_json1_1CertificateIds(output.CertificateIds, context) : undefined,
3870
+ ProfileId: (0, smithy_client_1.expectString)(output.ProfileId),
3871
+ ProfileType: (0, smithy_client_1.expectString)(output.ProfileType),
3872
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
3873
+ };
3874
+ };
2562
3875
  const deserializeAws_json1_1DescribedSecurityPolicy = (output, context) => {
2563
3876
  return {
2564
3877
  Fips: (0, smithy_client_1.expectBoolean)(output.Fips),
@@ -2634,6 +3947,11 @@ const deserializeAws_json1_1DescribeExecutionResponse = (output, context) => {
2634
3947
  WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
2635
3948
  };
2636
3949
  };
3950
+ const deserializeAws_json1_1DescribeProfileResponse = (output, context) => {
3951
+ return {
3952
+ Profile: output.Profile != null ? deserializeAws_json1_1DescribedProfile(output.Profile, context) : undefined,
3953
+ };
3954
+ };
2637
3955
  const deserializeAws_json1_1DescribeSecurityPolicyResponse = (output, context) => {
2638
3956
  return {
2639
3957
  SecurityPolicy: output.SecurityPolicy != null
@@ -2741,6 +4059,11 @@ const deserializeAws_json1_1IdentityProviderDetails = (output, context) => {
2741
4059
  Url: (0, smithy_client_1.expectString)(output.Url),
2742
4060
  };
2743
4061
  };
4062
+ const deserializeAws_json1_1ImportCertificateResponse = (output, context) => {
4063
+ return {
4064
+ CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
4065
+ };
4066
+ };
2744
4067
  const deserializeAws_json1_1ImportSshPublicKeyResponse = (output, context) => {
2745
4068
  return {
2746
4069
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
@@ -2780,6 +4103,24 @@ const deserializeAws_json1_1ListAccessesResponse = (output, context) => {
2780
4103
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
2781
4104
  };
2782
4105
  };
4106
+ const deserializeAws_json1_1ListAgreementsResponse = (output, context) => {
4107
+ return {
4108
+ Agreements: output.Agreements != null ? deserializeAws_json1_1ListedAgreements(output.Agreements, context) : undefined,
4109
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4110
+ };
4111
+ };
4112
+ const deserializeAws_json1_1ListCertificatesResponse = (output, context) => {
4113
+ return {
4114
+ Certificates: output.Certificates != null ? deserializeAws_json1_1ListedCertificates(output.Certificates, context) : undefined,
4115
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4116
+ };
4117
+ };
4118
+ const deserializeAws_json1_1ListConnectorsResponse = (output, context) => {
4119
+ return {
4120
+ Connectors: output.Connectors != null ? deserializeAws_json1_1ListedConnectors(output.Connectors, context) : undefined,
4121
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4122
+ };
4123
+ };
2783
4124
  const deserializeAws_json1_1ListedAccess = (output, context) => {
2784
4125
  return {
2785
4126
  ExternalId: (0, smithy_client_1.expectString)(output.ExternalId),
@@ -2799,6 +4140,71 @@ const deserializeAws_json1_1ListedAccesses = (output, context) => {
2799
4140
  });
2800
4141
  return retVal;
2801
4142
  };
4143
+ const deserializeAws_json1_1ListedAgreement = (output, context) => {
4144
+ return {
4145
+ AgreementId: (0, smithy_client_1.expectString)(output.AgreementId),
4146
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4147
+ Description: (0, smithy_client_1.expectString)(output.Description),
4148
+ LocalProfileId: (0, smithy_client_1.expectString)(output.LocalProfileId),
4149
+ PartnerProfileId: (0, smithy_client_1.expectString)(output.PartnerProfileId),
4150
+ ServerId: (0, smithy_client_1.expectString)(output.ServerId),
4151
+ Status: (0, smithy_client_1.expectString)(output.Status),
4152
+ };
4153
+ };
4154
+ const deserializeAws_json1_1ListedAgreements = (output, context) => {
4155
+ const retVal = (output || [])
4156
+ .filter((e) => e != null)
4157
+ .map((entry) => {
4158
+ if (entry === null) {
4159
+ return null;
4160
+ }
4161
+ return deserializeAws_json1_1ListedAgreement(entry, context);
4162
+ });
4163
+ return retVal;
4164
+ };
4165
+ const deserializeAws_json1_1ListedCertificate = (output, context) => {
4166
+ return {
4167
+ ActiveDate: output.ActiveDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ActiveDate))) : undefined,
4168
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4169
+ CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
4170
+ Description: (0, smithy_client_1.expectString)(output.Description),
4171
+ InactiveDate: output.InactiveDate != null
4172
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.InactiveDate)))
4173
+ : undefined,
4174
+ Status: (0, smithy_client_1.expectString)(output.Status),
4175
+ Type: (0, smithy_client_1.expectString)(output.Type),
4176
+ Usage: (0, smithy_client_1.expectString)(output.Usage),
4177
+ };
4178
+ };
4179
+ const deserializeAws_json1_1ListedCertificates = (output, context) => {
4180
+ const retVal = (output || [])
4181
+ .filter((e) => e != null)
4182
+ .map((entry) => {
4183
+ if (entry === null) {
4184
+ return null;
4185
+ }
4186
+ return deserializeAws_json1_1ListedCertificate(entry, context);
4187
+ });
4188
+ return retVal;
4189
+ };
4190
+ const deserializeAws_json1_1ListedConnector = (output, context) => {
4191
+ return {
4192
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4193
+ ConnectorId: (0, smithy_client_1.expectString)(output.ConnectorId),
4194
+ Url: (0, smithy_client_1.expectString)(output.Url),
4195
+ };
4196
+ };
4197
+ const deserializeAws_json1_1ListedConnectors = (output, context) => {
4198
+ const retVal = (output || [])
4199
+ .filter((e) => e != null)
4200
+ .map((entry) => {
4201
+ if (entry === null) {
4202
+ return null;
4203
+ }
4204
+ return deserializeAws_json1_1ListedConnector(entry, context);
4205
+ });
4206
+ return retVal;
4207
+ };
2802
4208
  const deserializeAws_json1_1ListedExecution = (output, context) => {
2803
4209
  return {
2804
4210
  ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId),
@@ -2822,6 +4228,25 @@ const deserializeAws_json1_1ListedExecutions = (output, context) => {
2822
4228
  });
2823
4229
  return retVal;
2824
4230
  };
4231
+ const deserializeAws_json1_1ListedProfile = (output, context) => {
4232
+ return {
4233
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4234
+ As2Id: (0, smithy_client_1.expectString)(output.As2Id),
4235
+ ProfileId: (0, smithy_client_1.expectString)(output.ProfileId),
4236
+ ProfileType: (0, smithy_client_1.expectString)(output.ProfileType),
4237
+ };
4238
+ };
4239
+ const deserializeAws_json1_1ListedProfiles = (output, context) => {
4240
+ const retVal = (output || [])
4241
+ .filter((e) => e != null)
4242
+ .map((entry) => {
4243
+ if (entry === null) {
4244
+ return null;
4245
+ }
4246
+ return deserializeAws_json1_1ListedProfile(entry, context);
4247
+ });
4248
+ return retVal;
4249
+ };
2825
4250
  const deserializeAws_json1_1ListedServer = (output, context) => {
2826
4251
  return {
2827
4252
  Arn: (0, smithy_client_1.expectString)(output.Arn),
@@ -2891,6 +4316,12 @@ const deserializeAws_json1_1ListExecutionsResponse = (output, context) => {
2891
4316
  WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
2892
4317
  };
2893
4318
  };
4319
+ const deserializeAws_json1_1ListProfilesResponse = (output, context) => {
4320
+ return {
4321
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4322
+ Profiles: output.Profiles != null ? deserializeAws_json1_1ListedProfiles(output.Profiles, context) : undefined,
4323
+ };
4324
+ };
2894
4325
  const deserializeAws_json1_1ListSecurityPoliciesResponse = (output, context) => {
2895
4326
  return {
2896
4327
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -2951,6 +4382,7 @@ const deserializeAws_json1_1PosixProfile = (output, context) => {
2951
4382
  };
2952
4383
  const deserializeAws_json1_1ProtocolDetails = (output, context) => {
2953
4384
  return {
4385
+ As2Transports: output.As2Transports != null ? deserializeAws_json1_1As2Transports(output.As2Transports, context) : undefined,
2954
4386
  PassiveIp: (0, smithy_client_1.expectString)(output.PassiveIp),
2955
4387
  SetStatOption: (0, smithy_client_1.expectString)(output.SetStatOption),
2956
4388
  TlsSessionResumptionMode: (0, smithy_client_1.expectString)(output.TlsSessionResumptionMode),
@@ -3089,6 +4521,11 @@ const deserializeAws_json1_1SshPublicKeys = (output, context) => {
3089
4521
  });
3090
4522
  return retVal;
3091
4523
  };
4524
+ const deserializeAws_json1_1StartFileTransferResponse = (output, context) => {
4525
+ return {
4526
+ TransferId: (0, smithy_client_1.expectString)(output.TransferId),
4527
+ };
4528
+ };
3092
4529
  const deserializeAws_json1_1SubnetIds = (output, context) => {
3093
4530
  const retVal = (output || [])
3094
4531
  .filter((e) => e != null)
@@ -3143,6 +4580,26 @@ const deserializeAws_json1_1UpdateAccessResponse = (output, context) => {
3143
4580
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
3144
4581
  };
3145
4582
  };
4583
+ const deserializeAws_json1_1UpdateAgreementResponse = (output, context) => {
4584
+ return {
4585
+ AgreementId: (0, smithy_client_1.expectString)(output.AgreementId),
4586
+ };
4587
+ };
4588
+ const deserializeAws_json1_1UpdateCertificateResponse = (output, context) => {
4589
+ return {
4590
+ CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
4591
+ };
4592
+ };
4593
+ const deserializeAws_json1_1UpdateConnectorResponse = (output, context) => {
4594
+ return {
4595
+ ConnectorId: (0, smithy_client_1.expectString)(output.ConnectorId),
4596
+ };
4597
+ };
4598
+ const deserializeAws_json1_1UpdateProfileResponse = (output, context) => {
4599
+ return {
4600
+ ProfileId: (0, smithy_client_1.expectString)(output.ProfileId),
4601
+ };
4602
+ };
3146
4603
  const deserializeAws_json1_1UpdateServerResponse = (output, context) => {
3147
4604
  return {
3148
4605
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),