@aws-sdk/client-transfer 3.130.0 → 3.141.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 +31 -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 +1743 -85
  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 +2408 -449
  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 +7 -7
@@ -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",
@@ -375,21 +586,21 @@ const deserializeAws_json1_1CreateAccessCommandError = async (output, context) =
375
586
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
376
587
  }
377
588
  };
378
- const deserializeAws_json1_1CreateServerCommand = async (output, context) => {
589
+ const deserializeAws_json1_1CreateAgreementCommand = async (output, context) => {
379
590
  if (output.statusCode >= 300) {
380
- return deserializeAws_json1_1CreateServerCommandError(output, context);
591
+ return deserializeAws_json1_1CreateAgreementCommandError(output, context);
381
592
  }
382
593
  const data = await parseBody(output.body, context);
383
594
  let contents = {};
384
- contents = deserializeAws_json1_1CreateServerResponse(data, context);
595
+ contents = deserializeAws_json1_1CreateAgreementResponse(data, context);
385
596
  const response = {
386
597
  $metadata: deserializeMetadata(output),
387
598
  ...contents,
388
599
  };
389
600
  return Promise.resolve(response);
390
601
  };
391
- exports.deserializeAws_json1_1CreateServerCommand = deserializeAws_json1_1CreateServerCommand;
392
- const deserializeAws_json1_1CreateServerCommandError = async (output, context) => {
602
+ exports.deserializeAws_json1_1CreateAgreementCommand = deserializeAws_json1_1CreateAgreementCommand;
603
+ const deserializeAws_json1_1CreateAgreementCommandError = async (output, context) => {
393
604
  const parsedOutput = {
394
605
  ...output,
395
606
  body: await parseBody(output.body, context),
@@ -397,9 +608,6 @@ const deserializeAws_json1_1CreateServerCommandError = async (output, context) =
397
608
  let response;
398
609
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
399
610
  switch (errorCode) {
400
- case "AccessDeniedException":
401
- case "com.amazonaws.transfer#AccessDeniedException":
402
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
403
611
  case "InternalServiceError":
404
612
  case "com.amazonaws.transfer#InternalServiceError":
405
613
  throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
@@ -415,9 +623,6 @@ const deserializeAws_json1_1CreateServerCommandError = async (output, context) =
415
623
  case "ServiceUnavailableException":
416
624
  case "com.amazonaws.transfer#ServiceUnavailableException":
417
625
  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
626
  default:
422
627
  const parsedBody = parsedOutput.body;
423
628
  const $metadata = deserializeMetadata(output);
@@ -430,21 +635,21 @@ const deserializeAws_json1_1CreateServerCommandError = async (output, context) =
430
635
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
431
636
  }
432
637
  };
433
- const deserializeAws_json1_1CreateUserCommand = async (output, context) => {
638
+ const deserializeAws_json1_1CreateConnectorCommand = async (output, context) => {
434
639
  if (output.statusCode >= 300) {
435
- return deserializeAws_json1_1CreateUserCommandError(output, context);
640
+ return deserializeAws_json1_1CreateConnectorCommandError(output, context);
436
641
  }
437
642
  const data = await parseBody(output.body, context);
438
643
  let contents = {};
439
- contents = deserializeAws_json1_1CreateUserResponse(data, context);
644
+ contents = deserializeAws_json1_1CreateConnectorResponse(data, context);
440
645
  const response = {
441
646
  $metadata: deserializeMetadata(output),
442
647
  ...contents,
443
648
  };
444
649
  return Promise.resolve(response);
445
650
  };
446
- exports.deserializeAws_json1_1CreateUserCommand = deserializeAws_json1_1CreateUserCommand;
447
- const deserializeAws_json1_1CreateUserCommandError = async (output, context) => {
651
+ exports.deserializeAws_json1_1CreateConnectorCommand = deserializeAws_json1_1CreateConnectorCommand;
652
+ const deserializeAws_json1_1CreateConnectorCommandError = async (output, context) => {
448
653
  const parsedOutput = {
449
654
  ...output,
450
655
  body: await parseBody(output.body, context),
@@ -479,21 +684,21 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
479
684
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
480
685
  }
481
686
  };
482
- const deserializeAws_json1_1CreateWorkflowCommand = async (output, context) => {
687
+ const deserializeAws_json1_1CreateProfileCommand = async (output, context) => {
483
688
  if (output.statusCode >= 300) {
484
- return deserializeAws_json1_1CreateWorkflowCommandError(output, context);
689
+ return deserializeAws_json1_1CreateProfileCommandError(output, context);
485
690
  }
486
691
  const data = await parseBody(output.body, context);
487
692
  let contents = {};
488
- contents = deserializeAws_json1_1CreateWorkflowResponse(data, context);
693
+ contents = deserializeAws_json1_1CreateProfileResponse(data, context);
489
694
  const response = {
490
695
  $metadata: deserializeMetadata(output),
491
696
  ...contents,
492
697
  };
493
698
  return Promise.resolve(response);
494
699
  };
495
- exports.deserializeAws_json1_1CreateWorkflowCommand = deserializeAws_json1_1CreateWorkflowCommand;
496
- const deserializeAws_json1_1CreateWorkflowCommandError = async (output, context) => {
700
+ exports.deserializeAws_json1_1CreateProfileCommand = deserializeAws_json1_1CreateProfileCommand;
701
+ const deserializeAws_json1_1CreateProfileCommandError = async (output, context) => {
497
702
  const parsedOutput = {
498
703
  ...output,
499
704
  body: await parseBody(output.body, context),
@@ -501,24 +706,18 @@ const deserializeAws_json1_1CreateWorkflowCommandError = async (output, context)
501
706
  let response;
502
707
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
503
708
  switch (errorCode) {
504
- case "AccessDeniedException":
505
- case "com.amazonaws.transfer#AccessDeniedException":
506
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
507
709
  case "InternalServiceError":
508
710
  case "com.amazonaws.transfer#InternalServiceError":
509
711
  throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
510
712
  case "InvalidRequestException":
511
713
  case "com.amazonaws.transfer#InvalidRequestException":
512
714
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
513
- case "ResourceExistsException":
514
- case "com.amazonaws.transfer#ResourceExistsException":
515
- throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
715
+ case "ResourceNotFoundException":
716
+ case "com.amazonaws.transfer#ResourceNotFoundException":
717
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
516
718
  case "ServiceUnavailableException":
517
719
  case "com.amazonaws.transfer#ServiceUnavailableException":
518
720
  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
721
  default:
523
722
  const parsedBody = parsedOutput.body;
524
723
  const $metadata = deserializeMetadata(output);
@@ -531,18 +730,21 @@ const deserializeAws_json1_1CreateWorkflowCommandError = async (output, context)
531
730
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
532
731
  }
533
732
  };
534
- const deserializeAws_json1_1DeleteAccessCommand = async (output, context) => {
733
+ const deserializeAws_json1_1CreateServerCommand = async (output, context) => {
535
734
  if (output.statusCode >= 300) {
536
- return deserializeAws_json1_1DeleteAccessCommandError(output, context);
735
+ return deserializeAws_json1_1CreateServerCommandError(output, context);
537
736
  }
538
- await collectBody(output.body, context);
737
+ const data = await parseBody(output.body, context);
738
+ let contents = {};
739
+ contents = deserializeAws_json1_1CreateServerResponse(data, context);
539
740
  const response = {
540
741
  $metadata: deserializeMetadata(output),
742
+ ...contents,
541
743
  };
542
744
  return Promise.resolve(response);
543
745
  };
544
- exports.deserializeAws_json1_1DeleteAccessCommand = deserializeAws_json1_1DeleteAccessCommand;
545
- const deserializeAws_json1_1DeleteAccessCommandError = async (output, context) => {
746
+ exports.deserializeAws_json1_1CreateServerCommand = deserializeAws_json1_1CreateServerCommand;
747
+ const deserializeAws_json1_1CreateServerCommandError = async (output, context) => {
546
748
  const parsedOutput = {
547
749
  ...output,
548
750
  body: await parseBody(output.body, context),
@@ -550,18 +752,27 @@ const deserializeAws_json1_1DeleteAccessCommandError = async (output, context) =
550
752
  let response;
551
753
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
552
754
  switch (errorCode) {
755
+ case "AccessDeniedException":
756
+ case "com.amazonaws.transfer#AccessDeniedException":
757
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
553
758
  case "InternalServiceError":
554
759
  case "com.amazonaws.transfer#InternalServiceError":
555
760
  throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
556
761
  case "InvalidRequestException":
557
762
  case "com.amazonaws.transfer#InvalidRequestException":
558
763
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
764
+ case "ResourceExistsException":
765
+ case "com.amazonaws.transfer#ResourceExistsException":
766
+ throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
559
767
  case "ResourceNotFoundException":
560
768
  case "com.amazonaws.transfer#ResourceNotFoundException":
561
769
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
562
770
  case "ServiceUnavailableException":
563
771
  case "com.amazonaws.transfer#ServiceUnavailableException":
564
772
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
773
+ case "ThrottlingException":
774
+ case "com.amazonaws.transfer#ThrottlingException":
775
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
565
776
  default:
566
777
  const parsedBody = parsedOutput.body;
567
778
  const $metadata = deserializeMetadata(output);
@@ -574,18 +785,21 @@ const deserializeAws_json1_1DeleteAccessCommandError = async (output, context) =
574
785
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
575
786
  }
576
787
  };
577
- const deserializeAws_json1_1DeleteServerCommand = async (output, context) => {
788
+ const deserializeAws_json1_1CreateUserCommand = async (output, context) => {
578
789
  if (output.statusCode >= 300) {
579
- return deserializeAws_json1_1DeleteServerCommandError(output, context);
790
+ return deserializeAws_json1_1CreateUserCommandError(output, context);
580
791
  }
581
- await collectBody(output.body, context);
792
+ const data = await parseBody(output.body, context);
793
+ let contents = {};
794
+ contents = deserializeAws_json1_1CreateUserResponse(data, context);
582
795
  const response = {
583
796
  $metadata: deserializeMetadata(output),
797
+ ...contents,
584
798
  };
585
799
  return Promise.resolve(response);
586
800
  };
587
- exports.deserializeAws_json1_1DeleteServerCommand = deserializeAws_json1_1DeleteServerCommand;
588
- const deserializeAws_json1_1DeleteServerCommandError = async (output, context) => {
801
+ exports.deserializeAws_json1_1CreateUserCommand = deserializeAws_json1_1CreateUserCommand;
802
+ const deserializeAws_json1_1CreateUserCommandError = async (output, context) => {
589
803
  const parsedOutput = {
590
804
  ...output,
591
805
  body: await parseBody(output.body, context),
@@ -593,15 +807,15 @@ const deserializeAws_json1_1DeleteServerCommandError = async (output, context) =
593
807
  let response;
594
808
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
595
809
  switch (errorCode) {
596
- case "AccessDeniedException":
597
- case "com.amazonaws.transfer#AccessDeniedException":
598
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
599
810
  case "InternalServiceError":
600
811
  case "com.amazonaws.transfer#InternalServiceError":
601
812
  throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
602
813
  case "InvalidRequestException":
603
814
  case "com.amazonaws.transfer#InvalidRequestException":
604
815
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
816
+ case "ResourceExistsException":
817
+ case "com.amazonaws.transfer#ResourceExistsException":
818
+ throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
605
819
  case "ResourceNotFoundException":
606
820
  case "com.amazonaws.transfer#ResourceNotFoundException":
607
821
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
@@ -620,18 +834,21 @@ const deserializeAws_json1_1DeleteServerCommandError = async (output, context) =
620
834
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
621
835
  }
622
836
  };
623
- const deserializeAws_json1_1DeleteSshPublicKeyCommand = async (output, context) => {
837
+ const deserializeAws_json1_1CreateWorkflowCommand = async (output, context) => {
624
838
  if (output.statusCode >= 300) {
625
- return deserializeAws_json1_1DeleteSshPublicKeyCommandError(output, context);
839
+ return deserializeAws_json1_1CreateWorkflowCommandError(output, context);
626
840
  }
627
- await collectBody(output.body, context);
841
+ const data = await parseBody(output.body, context);
842
+ let contents = {};
843
+ contents = deserializeAws_json1_1CreateWorkflowResponse(data, context);
628
844
  const response = {
629
845
  $metadata: deserializeMetadata(output),
846
+ ...contents,
630
847
  };
631
848
  return Promise.resolve(response);
632
849
  };
633
- exports.deserializeAws_json1_1DeleteSshPublicKeyCommand = deserializeAws_json1_1DeleteSshPublicKeyCommand;
634
- const deserializeAws_json1_1DeleteSshPublicKeyCommandError = async (output, context) => {
850
+ exports.deserializeAws_json1_1CreateWorkflowCommand = deserializeAws_json1_1CreateWorkflowCommand;
851
+ const deserializeAws_json1_1CreateWorkflowCommandError = async (output, context) => {
635
852
  const parsedOutput = {
636
853
  ...output,
637
854
  body: await parseBody(output.body, context),
@@ -639,15 +856,18 @@ const deserializeAws_json1_1DeleteSshPublicKeyCommandError = async (output, cont
639
856
  let response;
640
857
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
641
858
  switch (errorCode) {
859
+ case "AccessDeniedException":
860
+ case "com.amazonaws.transfer#AccessDeniedException":
861
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
642
862
  case "InternalServiceError":
643
863
  case "com.amazonaws.transfer#InternalServiceError":
644
864
  throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
645
865
  case "InvalidRequestException":
646
866
  case "com.amazonaws.transfer#InvalidRequestException":
647
867
  throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
648
- case "ResourceNotFoundException":
649
- case "com.amazonaws.transfer#ResourceNotFoundException":
650
- throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
868
+ case "ResourceExistsException":
869
+ case "com.amazonaws.transfer#ResourceExistsException":
870
+ throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
651
871
  case "ServiceUnavailableException":
652
872
  case "com.amazonaws.transfer#ServiceUnavailableException":
653
873
  throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
@@ -666,9 +886,9 @@ const deserializeAws_json1_1DeleteSshPublicKeyCommandError = async (output, cont
666
886
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
667
887
  }
668
888
  };
669
- const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
889
+ const deserializeAws_json1_1DeleteAccessCommand = async (output, context) => {
670
890
  if (output.statusCode >= 300) {
671
- return deserializeAws_json1_1DeleteUserCommandError(output, context);
891
+ return deserializeAws_json1_1DeleteAccessCommandError(output, context);
672
892
  }
673
893
  await collectBody(output.body, context);
674
894
  const response = {
@@ -676,8 +896,8 @@ const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
676
896
  };
677
897
  return Promise.resolve(response);
678
898
  };
679
- exports.deserializeAws_json1_1DeleteUserCommand = deserializeAws_json1_1DeleteUserCommand;
680
- const deserializeAws_json1_1DeleteUserCommandError = async (output, context) => {
899
+ exports.deserializeAws_json1_1DeleteAccessCommand = deserializeAws_json1_1DeleteAccessCommand;
900
+ const deserializeAws_json1_1DeleteAccessCommandError = async (output, context) => {
681
901
  const parsedOutput = {
682
902
  ...output,
683
903
  body: await parseBody(output.body, context),
@@ -709,9 +929,9 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
709
929
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
710
930
  }
711
931
  };
712
- const deserializeAws_json1_1DeleteWorkflowCommand = async (output, context) => {
932
+ const deserializeAws_json1_1DeleteAgreementCommand = async (output, context) => {
713
933
  if (output.statusCode >= 300) {
714
- return deserializeAws_json1_1DeleteWorkflowCommandError(output, context);
934
+ return deserializeAws_json1_1DeleteAgreementCommandError(output, context);
715
935
  }
716
936
  await collectBody(output.body, context);
717
937
  const response = {
@@ -719,8 +939,8 @@ const deserializeAws_json1_1DeleteWorkflowCommand = async (output, context) => {
719
939
  };
720
940
  return Promise.resolve(response);
721
941
  };
722
- exports.deserializeAws_json1_1DeleteWorkflowCommand = deserializeAws_json1_1DeleteWorkflowCommand;
723
- const deserializeAws_json1_1DeleteWorkflowCommandError = async (output, context) => {
942
+ exports.deserializeAws_json1_1DeleteAgreementCommand = deserializeAws_json1_1DeleteAgreementCommand;
943
+ const deserializeAws_json1_1DeleteAgreementCommandError = async (output, context) => {
724
944
  const parsedOutput = {
725
945
  ...output,
726
946
  body: await parseBody(output.body, context),
@@ -728,9 +948,6 @@ const deserializeAws_json1_1DeleteWorkflowCommandError = async (output, context)
728
948
  let response;
729
949
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
730
950
  switch (errorCode) {
731
- case "AccessDeniedException":
732
- case "com.amazonaws.transfer#AccessDeniedException":
733
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
734
951
  case "InternalServiceError":
735
952
  case "com.amazonaws.transfer#InternalServiceError":
736
953
  throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
@@ -755,21 +972,18 @@ const deserializeAws_json1_1DeleteWorkflowCommandError = async (output, context)
755
972
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
756
973
  }
757
974
  };
758
- const deserializeAws_json1_1DescribeAccessCommand = async (output, context) => {
975
+ const deserializeAws_json1_1DeleteCertificateCommand = async (output, context) => {
759
976
  if (output.statusCode >= 300) {
760
- return deserializeAws_json1_1DescribeAccessCommandError(output, context);
977
+ return deserializeAws_json1_1DeleteCertificateCommandError(output, context);
761
978
  }
762
- const data = await parseBody(output.body, context);
763
- let contents = {};
764
- contents = deserializeAws_json1_1DescribeAccessResponse(data, context);
979
+ await collectBody(output.body, context);
765
980
  const response = {
766
981
  $metadata: deserializeMetadata(output),
767
- ...contents,
768
982
  };
769
983
  return Promise.resolve(response);
770
984
  };
771
- exports.deserializeAws_json1_1DescribeAccessCommand = deserializeAws_json1_1DescribeAccessCommand;
772
- const deserializeAws_json1_1DescribeAccessCommandError = async (output, context) => {
985
+ exports.deserializeAws_json1_1DeleteCertificateCommand = deserializeAws_json1_1DeleteCertificateCommand;
986
+ const deserializeAws_json1_1DeleteCertificateCommandError = async (output, context) => {
773
987
  const parsedOutput = {
774
988
  ...output,
775
989
  body: await parseBody(output.body, context),
@@ -801,21 +1015,18 @@ const deserializeAws_json1_1DescribeAccessCommandError = async (output, context)
801
1015
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
802
1016
  }
803
1017
  };
804
- const deserializeAws_json1_1DescribeExecutionCommand = async (output, context) => {
1018
+ const deserializeAws_json1_1DeleteConnectorCommand = async (output, context) => {
805
1019
  if (output.statusCode >= 300) {
806
- return deserializeAws_json1_1DescribeExecutionCommandError(output, context);
1020
+ return deserializeAws_json1_1DeleteConnectorCommandError(output, context);
807
1021
  }
808
- const data = await parseBody(output.body, context);
809
- let contents = {};
810
- contents = deserializeAws_json1_1DescribeExecutionResponse(data, context);
1022
+ await collectBody(output.body, context);
811
1023
  const response = {
812
1024
  $metadata: deserializeMetadata(output),
813
- ...contents,
814
1025
  };
815
1026
  return Promise.resolve(response);
816
1027
  };
817
- exports.deserializeAws_json1_1DescribeExecutionCommand = deserializeAws_json1_1DescribeExecutionCommand;
818
- const deserializeAws_json1_1DescribeExecutionCommandError = async (output, context) => {
1028
+ exports.deserializeAws_json1_1DeleteConnectorCommand = deserializeAws_json1_1DeleteConnectorCommand;
1029
+ const deserializeAws_json1_1DeleteConnectorCommandError = async (output, context) => {
819
1030
  const parsedOutput = {
820
1031
  ...output,
821
1032
  body: await parseBody(output.body, context),
@@ -847,7 +1058,507 @@ const deserializeAws_json1_1DescribeExecutionCommandError = async (output, conte
847
1058
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
848
1059
  }
849
1060
  };
850
- const deserializeAws_json1_1DescribeSecurityPolicyCommand = async (output, context) => {
1061
+ const deserializeAws_json1_1DeleteProfileCommand = async (output, context) => {
1062
+ if (output.statusCode >= 300) {
1063
+ return deserializeAws_json1_1DeleteProfileCommandError(output, context);
1064
+ }
1065
+ await collectBody(output.body, context);
1066
+ const response = {
1067
+ $metadata: deserializeMetadata(output),
1068
+ };
1069
+ return Promise.resolve(response);
1070
+ };
1071
+ exports.deserializeAws_json1_1DeleteProfileCommand = deserializeAws_json1_1DeleteProfileCommand;
1072
+ const deserializeAws_json1_1DeleteProfileCommandError = async (output, context) => {
1073
+ const parsedOutput = {
1074
+ ...output,
1075
+ body: await parseBody(output.body, context),
1076
+ };
1077
+ let response;
1078
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1079
+ switch (errorCode) {
1080
+ case "InternalServiceError":
1081
+ case "com.amazonaws.transfer#InternalServiceError":
1082
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1083
+ case "InvalidRequestException":
1084
+ case "com.amazonaws.transfer#InvalidRequestException":
1085
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1086
+ case "ResourceNotFoundException":
1087
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1088
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1089
+ case "ServiceUnavailableException":
1090
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1091
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1092
+ default:
1093
+ const parsedBody = parsedOutput.body;
1094
+ const $metadata = deserializeMetadata(output);
1095
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1096
+ response = new TransferServiceException_1.TransferServiceException({
1097
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1098
+ $fault: "client",
1099
+ $metadata,
1100
+ });
1101
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1102
+ }
1103
+ };
1104
+ const deserializeAws_json1_1DeleteServerCommand = async (output, context) => {
1105
+ if (output.statusCode >= 300) {
1106
+ return deserializeAws_json1_1DeleteServerCommandError(output, context);
1107
+ }
1108
+ await collectBody(output.body, context);
1109
+ const response = {
1110
+ $metadata: deserializeMetadata(output),
1111
+ };
1112
+ return Promise.resolve(response);
1113
+ };
1114
+ exports.deserializeAws_json1_1DeleteServerCommand = deserializeAws_json1_1DeleteServerCommand;
1115
+ const deserializeAws_json1_1DeleteServerCommandError = async (output, context) => {
1116
+ const parsedOutput = {
1117
+ ...output,
1118
+ body: await parseBody(output.body, context),
1119
+ };
1120
+ let response;
1121
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1122
+ switch (errorCode) {
1123
+ case "AccessDeniedException":
1124
+ case "com.amazonaws.transfer#AccessDeniedException":
1125
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
1126
+ case "InternalServiceError":
1127
+ case "com.amazonaws.transfer#InternalServiceError":
1128
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1129
+ case "InvalidRequestException":
1130
+ case "com.amazonaws.transfer#InvalidRequestException":
1131
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1132
+ case "ResourceNotFoundException":
1133
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1134
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1135
+ case "ServiceUnavailableException":
1136
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1137
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1138
+ default:
1139
+ const parsedBody = parsedOutput.body;
1140
+ const $metadata = deserializeMetadata(output);
1141
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1142
+ response = new TransferServiceException_1.TransferServiceException({
1143
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1144
+ $fault: "client",
1145
+ $metadata,
1146
+ });
1147
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1148
+ }
1149
+ };
1150
+ const deserializeAws_json1_1DeleteSshPublicKeyCommand = async (output, context) => {
1151
+ if (output.statusCode >= 300) {
1152
+ return deserializeAws_json1_1DeleteSshPublicKeyCommandError(output, context);
1153
+ }
1154
+ await collectBody(output.body, context);
1155
+ const response = {
1156
+ $metadata: deserializeMetadata(output),
1157
+ };
1158
+ return Promise.resolve(response);
1159
+ };
1160
+ exports.deserializeAws_json1_1DeleteSshPublicKeyCommand = deserializeAws_json1_1DeleteSshPublicKeyCommand;
1161
+ const deserializeAws_json1_1DeleteSshPublicKeyCommandError = async (output, context) => {
1162
+ const parsedOutput = {
1163
+ ...output,
1164
+ body: await parseBody(output.body, context),
1165
+ };
1166
+ let response;
1167
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1168
+ switch (errorCode) {
1169
+ case "InternalServiceError":
1170
+ case "com.amazonaws.transfer#InternalServiceError":
1171
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1172
+ case "InvalidRequestException":
1173
+ case "com.amazonaws.transfer#InvalidRequestException":
1174
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1175
+ case "ResourceNotFoundException":
1176
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1177
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1178
+ case "ServiceUnavailableException":
1179
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1180
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1181
+ case "ThrottlingException":
1182
+ case "com.amazonaws.transfer#ThrottlingException":
1183
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
1184
+ default:
1185
+ const parsedBody = parsedOutput.body;
1186
+ const $metadata = deserializeMetadata(output);
1187
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1188
+ response = new TransferServiceException_1.TransferServiceException({
1189
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1190
+ $fault: "client",
1191
+ $metadata,
1192
+ });
1193
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1194
+ }
1195
+ };
1196
+ const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
1197
+ if (output.statusCode >= 300) {
1198
+ return deserializeAws_json1_1DeleteUserCommandError(output, context);
1199
+ }
1200
+ await collectBody(output.body, context);
1201
+ const response = {
1202
+ $metadata: deserializeMetadata(output),
1203
+ };
1204
+ return Promise.resolve(response);
1205
+ };
1206
+ exports.deserializeAws_json1_1DeleteUserCommand = deserializeAws_json1_1DeleteUserCommand;
1207
+ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) => {
1208
+ const parsedOutput = {
1209
+ ...output,
1210
+ body: await parseBody(output.body, context),
1211
+ };
1212
+ let response;
1213
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1214
+ switch (errorCode) {
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
+ const $metadata = deserializeMetadata(output);
1230
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1231
+ response = new TransferServiceException_1.TransferServiceException({
1232
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1233
+ $fault: "client",
1234
+ $metadata,
1235
+ });
1236
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1237
+ }
1238
+ };
1239
+ const deserializeAws_json1_1DeleteWorkflowCommand = async (output, context) => {
1240
+ if (output.statusCode >= 300) {
1241
+ return deserializeAws_json1_1DeleteWorkflowCommandError(output, context);
1242
+ }
1243
+ await collectBody(output.body, context);
1244
+ const response = {
1245
+ $metadata: deserializeMetadata(output),
1246
+ };
1247
+ return Promise.resolve(response);
1248
+ };
1249
+ exports.deserializeAws_json1_1DeleteWorkflowCommand = deserializeAws_json1_1DeleteWorkflowCommand;
1250
+ const deserializeAws_json1_1DeleteWorkflowCommandError = async (output, context) => {
1251
+ const parsedOutput = {
1252
+ ...output,
1253
+ body: await parseBody(output.body, context),
1254
+ };
1255
+ let response;
1256
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1257
+ switch (errorCode) {
1258
+ case "AccessDeniedException":
1259
+ case "com.amazonaws.transfer#AccessDeniedException":
1260
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
1261
+ case "InternalServiceError":
1262
+ case "com.amazonaws.transfer#InternalServiceError":
1263
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1264
+ case "InvalidRequestException":
1265
+ case "com.amazonaws.transfer#InvalidRequestException":
1266
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1267
+ case "ResourceNotFoundException":
1268
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1269
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1270
+ case "ServiceUnavailableException":
1271
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1272
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1273
+ default:
1274
+ const parsedBody = parsedOutput.body;
1275
+ const $metadata = deserializeMetadata(output);
1276
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1277
+ response = new TransferServiceException_1.TransferServiceException({
1278
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1279
+ $fault: "client",
1280
+ $metadata,
1281
+ });
1282
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1283
+ }
1284
+ };
1285
+ const deserializeAws_json1_1DescribeAccessCommand = async (output, context) => {
1286
+ if (output.statusCode >= 300) {
1287
+ return deserializeAws_json1_1DescribeAccessCommandError(output, context);
1288
+ }
1289
+ const data = await parseBody(output.body, context);
1290
+ let contents = {};
1291
+ contents = deserializeAws_json1_1DescribeAccessResponse(data, context);
1292
+ const response = {
1293
+ $metadata: deserializeMetadata(output),
1294
+ ...contents,
1295
+ };
1296
+ return Promise.resolve(response);
1297
+ };
1298
+ exports.deserializeAws_json1_1DescribeAccessCommand = deserializeAws_json1_1DescribeAccessCommand;
1299
+ const deserializeAws_json1_1DescribeAccessCommandError = async (output, context) => {
1300
+ const parsedOutput = {
1301
+ ...output,
1302
+ body: await parseBody(output.body, context),
1303
+ };
1304
+ let response;
1305
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1306
+ switch (errorCode) {
1307
+ case "InternalServiceError":
1308
+ case "com.amazonaws.transfer#InternalServiceError":
1309
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1310
+ case "InvalidRequestException":
1311
+ case "com.amazonaws.transfer#InvalidRequestException":
1312
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1313
+ case "ResourceNotFoundException":
1314
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1315
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1316
+ case "ServiceUnavailableException":
1317
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1318
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1319
+ default:
1320
+ const parsedBody = parsedOutput.body;
1321
+ const $metadata = deserializeMetadata(output);
1322
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1323
+ response = new TransferServiceException_1.TransferServiceException({
1324
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1325
+ $fault: "client",
1326
+ $metadata,
1327
+ });
1328
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1329
+ }
1330
+ };
1331
+ const deserializeAws_json1_1DescribeAgreementCommand = async (output, context) => {
1332
+ if (output.statusCode >= 300) {
1333
+ return deserializeAws_json1_1DescribeAgreementCommandError(output, context);
1334
+ }
1335
+ const data = await parseBody(output.body, context);
1336
+ let contents = {};
1337
+ contents = deserializeAws_json1_1DescribeAgreementResponse(data, context);
1338
+ const response = {
1339
+ $metadata: deserializeMetadata(output),
1340
+ ...contents,
1341
+ };
1342
+ return Promise.resolve(response);
1343
+ };
1344
+ exports.deserializeAws_json1_1DescribeAgreementCommand = deserializeAws_json1_1DescribeAgreementCommand;
1345
+ const deserializeAws_json1_1DescribeAgreementCommandError = async (output, context) => {
1346
+ const parsedOutput = {
1347
+ ...output,
1348
+ body: await parseBody(output.body, context),
1349
+ };
1350
+ let response;
1351
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1352
+ switch (errorCode) {
1353
+ case "InternalServiceError":
1354
+ case "com.amazonaws.transfer#InternalServiceError":
1355
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1356
+ case "InvalidRequestException":
1357
+ case "com.amazonaws.transfer#InvalidRequestException":
1358
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1359
+ case "ResourceNotFoundException":
1360
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1361
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1362
+ case "ServiceUnavailableException":
1363
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1364
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1365
+ default:
1366
+ const parsedBody = parsedOutput.body;
1367
+ const $metadata = deserializeMetadata(output);
1368
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1369
+ response = new TransferServiceException_1.TransferServiceException({
1370
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1371
+ $fault: "client",
1372
+ $metadata,
1373
+ });
1374
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1375
+ }
1376
+ };
1377
+ const deserializeAws_json1_1DescribeCertificateCommand = async (output, context) => {
1378
+ if (output.statusCode >= 300) {
1379
+ return deserializeAws_json1_1DescribeCertificateCommandError(output, context);
1380
+ }
1381
+ const data = await parseBody(output.body, context);
1382
+ let contents = {};
1383
+ contents = deserializeAws_json1_1DescribeCertificateResponse(data, context);
1384
+ const response = {
1385
+ $metadata: deserializeMetadata(output),
1386
+ ...contents,
1387
+ };
1388
+ return Promise.resolve(response);
1389
+ };
1390
+ exports.deserializeAws_json1_1DescribeCertificateCommand = deserializeAws_json1_1DescribeCertificateCommand;
1391
+ const deserializeAws_json1_1DescribeCertificateCommandError = async (output, context) => {
1392
+ const parsedOutput = {
1393
+ ...output,
1394
+ body: await parseBody(output.body, context),
1395
+ };
1396
+ let response;
1397
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1398
+ switch (errorCode) {
1399
+ case "InternalServiceError":
1400
+ case "com.amazonaws.transfer#InternalServiceError":
1401
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1402
+ case "InvalidRequestException":
1403
+ case "com.amazonaws.transfer#InvalidRequestException":
1404
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1405
+ case "ResourceNotFoundException":
1406
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1407
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1408
+ case "ServiceUnavailableException":
1409
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1410
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1411
+ default:
1412
+ const parsedBody = parsedOutput.body;
1413
+ const $metadata = deserializeMetadata(output);
1414
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1415
+ response = new TransferServiceException_1.TransferServiceException({
1416
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1417
+ $fault: "client",
1418
+ $metadata,
1419
+ });
1420
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1421
+ }
1422
+ };
1423
+ const deserializeAws_json1_1DescribeConnectorCommand = async (output, context) => {
1424
+ if (output.statusCode >= 300) {
1425
+ return deserializeAws_json1_1DescribeConnectorCommandError(output, context);
1426
+ }
1427
+ const data = await parseBody(output.body, context);
1428
+ let contents = {};
1429
+ contents = deserializeAws_json1_1DescribeConnectorResponse(data, context);
1430
+ const response = {
1431
+ $metadata: deserializeMetadata(output),
1432
+ ...contents,
1433
+ };
1434
+ return Promise.resolve(response);
1435
+ };
1436
+ exports.deserializeAws_json1_1DescribeConnectorCommand = deserializeAws_json1_1DescribeConnectorCommand;
1437
+ const deserializeAws_json1_1DescribeConnectorCommandError = async (output, context) => {
1438
+ const parsedOutput = {
1439
+ ...output,
1440
+ body: await parseBody(output.body, context),
1441
+ };
1442
+ let response;
1443
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1444
+ switch (errorCode) {
1445
+ case "InternalServiceError":
1446
+ case "com.amazonaws.transfer#InternalServiceError":
1447
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1448
+ case "InvalidRequestException":
1449
+ case "com.amazonaws.transfer#InvalidRequestException":
1450
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1451
+ case "ResourceNotFoundException":
1452
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1453
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1454
+ case "ServiceUnavailableException":
1455
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1456
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1457
+ default:
1458
+ 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,
1465
+ });
1466
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1467
+ }
1468
+ };
1469
+ const deserializeAws_json1_1DescribeExecutionCommand = async (output, context) => {
1470
+ if (output.statusCode >= 300) {
1471
+ return deserializeAws_json1_1DescribeExecutionCommandError(output, context);
1472
+ }
1473
+ const data = await parseBody(output.body, context);
1474
+ let contents = {};
1475
+ contents = deserializeAws_json1_1DescribeExecutionResponse(data, context);
1476
+ const response = {
1477
+ $metadata: deserializeMetadata(output),
1478
+ ...contents,
1479
+ };
1480
+ return Promise.resolve(response);
1481
+ };
1482
+ exports.deserializeAws_json1_1DescribeExecutionCommand = deserializeAws_json1_1DescribeExecutionCommand;
1483
+ const deserializeAws_json1_1DescribeExecutionCommandError = async (output, context) => {
1484
+ const parsedOutput = {
1485
+ ...output,
1486
+ body: await parseBody(output.body, context),
1487
+ };
1488
+ let response;
1489
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1490
+ switch (errorCode) {
1491
+ case "InternalServiceError":
1492
+ case "com.amazonaws.transfer#InternalServiceError":
1493
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1494
+ case "InvalidRequestException":
1495
+ case "com.amazonaws.transfer#InvalidRequestException":
1496
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1497
+ case "ResourceNotFoundException":
1498
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1499
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1500
+ case "ServiceUnavailableException":
1501
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1502
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1503
+ default:
1504
+ 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,
1511
+ });
1512
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1513
+ }
1514
+ };
1515
+ const deserializeAws_json1_1DescribeProfileCommand = async (output, context) => {
1516
+ if (output.statusCode >= 300) {
1517
+ return deserializeAws_json1_1DescribeProfileCommandError(output, context);
1518
+ }
1519
+ const data = await parseBody(output.body, context);
1520
+ let contents = {};
1521
+ contents = deserializeAws_json1_1DescribeProfileResponse(data, context);
1522
+ const response = {
1523
+ $metadata: deserializeMetadata(output),
1524
+ ...contents,
1525
+ };
1526
+ return Promise.resolve(response);
1527
+ };
1528
+ exports.deserializeAws_json1_1DescribeProfileCommand = deserializeAws_json1_1DescribeProfileCommand;
1529
+ const deserializeAws_json1_1DescribeProfileCommandError = async (output, context) => {
1530
+ const parsedOutput = {
1531
+ ...output,
1532
+ body: await parseBody(output.body, context),
1533
+ };
1534
+ let response;
1535
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1536
+ switch (errorCode) {
1537
+ case "InternalServiceError":
1538
+ case "com.amazonaws.transfer#InternalServiceError":
1539
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1540
+ case "InvalidRequestException":
1541
+ case "com.amazonaws.transfer#InvalidRequestException":
1542
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1543
+ case "ResourceNotFoundException":
1544
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1545
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1546
+ case "ServiceUnavailableException":
1547
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1548
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1549
+ default:
1550
+ 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,
1557
+ });
1558
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1559
+ }
1560
+ };
1561
+ const deserializeAws_json1_1DescribeSecurityPolicyCommand = async (output, context) => {
851
1562
  if (output.statusCode >= 300) {
852
1563
  return deserializeAws_json1_1DescribeSecurityPolicyCommandError(output, context);
853
1564
  }
@@ -1031,6 +1742,52 @@ const deserializeAws_json1_1DescribeWorkflowCommandError = async (output, contex
1031
1742
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1032
1743
  }
1033
1744
  };
1745
+ const deserializeAws_json1_1ImportCertificateCommand = async (output, context) => {
1746
+ if (output.statusCode >= 300) {
1747
+ return deserializeAws_json1_1ImportCertificateCommandError(output, context);
1748
+ }
1749
+ const data = await parseBody(output.body, context);
1750
+ let contents = {};
1751
+ contents = deserializeAws_json1_1ImportCertificateResponse(data, context);
1752
+ const response = {
1753
+ $metadata: deserializeMetadata(output),
1754
+ ...contents,
1755
+ };
1756
+ return Promise.resolve(response);
1757
+ };
1758
+ exports.deserializeAws_json1_1ImportCertificateCommand = deserializeAws_json1_1ImportCertificateCommand;
1759
+ const deserializeAws_json1_1ImportCertificateCommandError = async (output, context) => {
1760
+ const parsedOutput = {
1761
+ ...output,
1762
+ body: await parseBody(output.body, context),
1763
+ };
1764
+ let response;
1765
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1766
+ switch (errorCode) {
1767
+ case "InternalServiceError":
1768
+ case "com.amazonaws.transfer#InternalServiceError":
1769
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1770
+ case "InvalidRequestException":
1771
+ case "com.amazonaws.transfer#InvalidRequestException":
1772
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1773
+ case "ResourceNotFoundException":
1774
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1775
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1776
+ case "ServiceUnavailableException":
1777
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1778
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1779
+ default:
1780
+ const parsedBody = parsedOutput.body;
1781
+ const $metadata = deserializeMetadata(output);
1782
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1783
+ response = new TransferServiceException_1.TransferServiceException({
1784
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1785
+ $fault: "client",
1786
+ $metadata,
1787
+ });
1788
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1789
+ }
1790
+ };
1034
1791
  const deserializeAws_json1_1ImportSshPublicKeyCommand = async (output, context) => {
1035
1792
  if (output.statusCode >= 300) {
1036
1793
  return deserializeAws_json1_1ImportSshPublicKeyCommandError(output, context);
@@ -1132,21 +1889,217 @@ const deserializeAws_json1_1ListAccessesCommandError = async (output, context) =
1132
1889
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1133
1890
  }
1134
1891
  };
1892
+ const deserializeAws_json1_1ListAgreementsCommand = async (output, context) => {
1893
+ if (output.statusCode >= 300) {
1894
+ return deserializeAws_json1_1ListAgreementsCommandError(output, context);
1895
+ }
1896
+ const data = await parseBody(output.body, context);
1897
+ let contents = {};
1898
+ contents = deserializeAws_json1_1ListAgreementsResponse(data, context);
1899
+ const response = {
1900
+ $metadata: deserializeMetadata(output),
1901
+ ...contents,
1902
+ };
1903
+ return Promise.resolve(response);
1904
+ };
1905
+ exports.deserializeAws_json1_1ListAgreementsCommand = deserializeAws_json1_1ListAgreementsCommand;
1906
+ const deserializeAws_json1_1ListAgreementsCommandError = async (output, context) => {
1907
+ const parsedOutput = {
1908
+ ...output,
1909
+ body: await parseBody(output.body, context),
1910
+ };
1911
+ let response;
1912
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1913
+ switch (errorCode) {
1914
+ case "InternalServiceError":
1915
+ case "com.amazonaws.transfer#InternalServiceError":
1916
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1917
+ case "InvalidNextTokenException":
1918
+ case "com.amazonaws.transfer#InvalidNextTokenException":
1919
+ throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
1920
+ case "InvalidRequestException":
1921
+ case "com.amazonaws.transfer#InvalidRequestException":
1922
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1923
+ case "ResourceNotFoundException":
1924
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1925
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1926
+ case "ServiceUnavailableException":
1927
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1928
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1929
+ default:
1930
+ const parsedBody = parsedOutput.body;
1931
+ const $metadata = deserializeMetadata(output);
1932
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1933
+ response = new TransferServiceException_1.TransferServiceException({
1934
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1935
+ $fault: "client",
1936
+ $metadata,
1937
+ });
1938
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1939
+ }
1940
+ };
1941
+ const deserializeAws_json1_1ListCertificatesCommand = async (output, context) => {
1942
+ if (output.statusCode >= 300) {
1943
+ return deserializeAws_json1_1ListCertificatesCommandError(output, context);
1944
+ }
1945
+ const data = await parseBody(output.body, context);
1946
+ let contents = {};
1947
+ contents = deserializeAws_json1_1ListCertificatesResponse(data, context);
1948
+ const response = {
1949
+ $metadata: deserializeMetadata(output),
1950
+ ...contents,
1951
+ };
1952
+ return Promise.resolve(response);
1953
+ };
1954
+ exports.deserializeAws_json1_1ListCertificatesCommand = deserializeAws_json1_1ListCertificatesCommand;
1955
+ const deserializeAws_json1_1ListCertificatesCommandError = async (output, context) => {
1956
+ const parsedOutput = {
1957
+ ...output,
1958
+ body: await parseBody(output.body, context),
1959
+ };
1960
+ let response;
1961
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1962
+ switch (errorCode) {
1963
+ case "InternalServiceError":
1964
+ case "com.amazonaws.transfer#InternalServiceError":
1965
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
1966
+ case "InvalidNextTokenException":
1967
+ case "com.amazonaws.transfer#InvalidNextTokenException":
1968
+ throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
1969
+ case "InvalidRequestException":
1970
+ case "com.amazonaws.transfer#InvalidRequestException":
1971
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1972
+ case "ResourceNotFoundException":
1973
+ case "com.amazonaws.transfer#ResourceNotFoundException":
1974
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1975
+ case "ServiceUnavailableException":
1976
+ case "com.amazonaws.transfer#ServiceUnavailableException":
1977
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1978
+ default:
1979
+ const parsedBody = parsedOutput.body;
1980
+ const $metadata = deserializeMetadata(output);
1981
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1982
+ response = new TransferServiceException_1.TransferServiceException({
1983
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1984
+ $fault: "client",
1985
+ $metadata,
1986
+ });
1987
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1988
+ }
1989
+ };
1990
+ const deserializeAws_json1_1ListConnectorsCommand = async (output, context) => {
1991
+ if (output.statusCode >= 300) {
1992
+ return deserializeAws_json1_1ListConnectorsCommandError(output, context);
1993
+ }
1994
+ const data = await parseBody(output.body, context);
1995
+ let contents = {};
1996
+ contents = deserializeAws_json1_1ListConnectorsResponse(data, context);
1997
+ const response = {
1998
+ $metadata: deserializeMetadata(output),
1999
+ ...contents,
2000
+ };
2001
+ return Promise.resolve(response);
2002
+ };
2003
+ exports.deserializeAws_json1_1ListConnectorsCommand = deserializeAws_json1_1ListConnectorsCommand;
2004
+ const deserializeAws_json1_1ListConnectorsCommandError = async (output, context) => {
2005
+ const parsedOutput = {
2006
+ ...output,
2007
+ body: await parseBody(output.body, context),
2008
+ };
2009
+ let response;
2010
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2011
+ switch (errorCode) {
2012
+ case "InternalServiceError":
2013
+ case "com.amazonaws.transfer#InternalServiceError":
2014
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
2015
+ case "InvalidNextTokenException":
2016
+ case "com.amazonaws.transfer#InvalidNextTokenException":
2017
+ throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
2018
+ case "InvalidRequestException":
2019
+ case "com.amazonaws.transfer#InvalidRequestException":
2020
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2021
+ case "ResourceNotFoundException":
2022
+ case "com.amazonaws.transfer#ResourceNotFoundException":
2023
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2024
+ case "ServiceUnavailableException":
2025
+ case "com.amazonaws.transfer#ServiceUnavailableException":
2026
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
2027
+ default:
2028
+ const parsedBody = parsedOutput.body;
2029
+ const $metadata = deserializeMetadata(output);
2030
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2031
+ response = new TransferServiceException_1.TransferServiceException({
2032
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2033
+ $fault: "client",
2034
+ $metadata,
2035
+ });
2036
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2037
+ }
2038
+ };
1135
2039
  const deserializeAws_json1_1ListExecutionsCommand = async (output, context) => {
1136
2040
  if (output.statusCode >= 300) {
1137
- return deserializeAws_json1_1ListExecutionsCommandError(output, context);
2041
+ return deserializeAws_json1_1ListExecutionsCommandError(output, context);
2042
+ }
2043
+ const data = await parseBody(output.body, context);
2044
+ let contents = {};
2045
+ contents = deserializeAws_json1_1ListExecutionsResponse(data, context);
2046
+ const response = {
2047
+ $metadata: deserializeMetadata(output),
2048
+ ...contents,
2049
+ };
2050
+ return Promise.resolve(response);
2051
+ };
2052
+ exports.deserializeAws_json1_1ListExecutionsCommand = deserializeAws_json1_1ListExecutionsCommand;
2053
+ const deserializeAws_json1_1ListExecutionsCommandError = async (output, context) => {
2054
+ const parsedOutput = {
2055
+ ...output,
2056
+ body: await parseBody(output.body, context),
2057
+ };
2058
+ let response;
2059
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2060
+ switch (errorCode) {
2061
+ case "InternalServiceError":
2062
+ case "com.amazonaws.transfer#InternalServiceError":
2063
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
2064
+ case "InvalidNextTokenException":
2065
+ case "com.amazonaws.transfer#InvalidNextTokenException":
2066
+ throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
2067
+ case "InvalidRequestException":
2068
+ case "com.amazonaws.transfer#InvalidRequestException":
2069
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2070
+ case "ResourceNotFoundException":
2071
+ case "com.amazonaws.transfer#ResourceNotFoundException":
2072
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2073
+ case "ServiceUnavailableException":
2074
+ case "com.amazonaws.transfer#ServiceUnavailableException":
2075
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
2076
+ default:
2077
+ const parsedBody = parsedOutput.body;
2078
+ const $metadata = deserializeMetadata(output);
2079
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2080
+ response = new TransferServiceException_1.TransferServiceException({
2081
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2082
+ $fault: "client",
2083
+ $metadata,
2084
+ });
2085
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2086
+ }
2087
+ };
2088
+ const deserializeAws_json1_1ListProfilesCommand = async (output, context) => {
2089
+ if (output.statusCode >= 300) {
2090
+ return deserializeAws_json1_1ListProfilesCommandError(output, context);
1138
2091
  }
1139
2092
  const data = await parseBody(output.body, context);
1140
2093
  let contents = {};
1141
- contents = deserializeAws_json1_1ListExecutionsResponse(data, context);
2094
+ contents = deserializeAws_json1_1ListProfilesResponse(data, context);
1142
2095
  const response = {
1143
2096
  $metadata: deserializeMetadata(output),
1144
2097
  ...contents,
1145
2098
  };
1146
2099
  return Promise.resolve(response);
1147
2100
  };
1148
- exports.deserializeAws_json1_1ListExecutionsCommand = deserializeAws_json1_1ListExecutionsCommand;
1149
- const deserializeAws_json1_1ListExecutionsCommandError = async (output, context) => {
2101
+ exports.deserializeAws_json1_1ListProfilesCommand = deserializeAws_json1_1ListProfilesCommand;
2102
+ const deserializeAws_json1_1ListProfilesCommandError = async (output, context) => {
1150
2103
  const parsedOutput = {
1151
2104
  ...output,
1152
2105
  body: await parseBody(output.body, context),
@@ -1466,6 +2419,55 @@ const deserializeAws_json1_1SendWorkflowStepStateCommandError = async (output, c
1466
2419
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1467
2420
  }
1468
2421
  };
2422
+ const deserializeAws_json1_1StartFileTransferCommand = async (output, context) => {
2423
+ if (output.statusCode >= 300) {
2424
+ return deserializeAws_json1_1StartFileTransferCommandError(output, context);
2425
+ }
2426
+ const data = await parseBody(output.body, context);
2427
+ let contents = {};
2428
+ contents = deserializeAws_json1_1StartFileTransferResponse(data, context);
2429
+ const response = {
2430
+ $metadata: deserializeMetadata(output),
2431
+ ...contents,
2432
+ };
2433
+ return Promise.resolve(response);
2434
+ };
2435
+ exports.deserializeAws_json1_1StartFileTransferCommand = deserializeAws_json1_1StartFileTransferCommand;
2436
+ const deserializeAws_json1_1StartFileTransferCommandError = async (output, context) => {
2437
+ const parsedOutput = {
2438
+ ...output,
2439
+ body: await parseBody(output.body, context),
2440
+ };
2441
+ let response;
2442
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2443
+ switch (errorCode) {
2444
+ case "InternalServiceError":
2445
+ case "com.amazonaws.transfer#InternalServiceError":
2446
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
2447
+ case "InvalidRequestException":
2448
+ case "com.amazonaws.transfer#InvalidRequestException":
2449
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2450
+ case "ResourceNotFoundException":
2451
+ case "com.amazonaws.transfer#ResourceNotFoundException":
2452
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2453
+ case "ServiceUnavailableException":
2454
+ case "com.amazonaws.transfer#ServiceUnavailableException":
2455
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
2456
+ case "ThrottlingException":
2457
+ case "com.amazonaws.transfer#ThrottlingException":
2458
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
2459
+ default:
2460
+ const parsedBody = parsedOutput.body;
2461
+ const $metadata = deserializeMetadata(output);
2462
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2463
+ response = new TransferServiceException_1.TransferServiceException({
2464
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2465
+ $fault: "client",
2466
+ $metadata,
2467
+ });
2468
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2469
+ }
2470
+ };
1469
2471
  const deserializeAws_json1_1StartServerCommand = async (output, context) => {
1470
2472
  if (output.statusCode >= 300) {
1471
2473
  return deserializeAws_json1_1StartServerCommandError(output, context);
@@ -1739,6 +2741,196 @@ const deserializeAws_json1_1UpdateAccessCommandError = async (output, context) =
1739
2741
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1740
2742
  }
1741
2743
  };
2744
+ const deserializeAws_json1_1UpdateAgreementCommand = async (output, context) => {
2745
+ if (output.statusCode >= 300) {
2746
+ return deserializeAws_json1_1UpdateAgreementCommandError(output, context);
2747
+ }
2748
+ const data = await parseBody(output.body, context);
2749
+ let contents = {};
2750
+ contents = deserializeAws_json1_1UpdateAgreementResponse(data, context);
2751
+ const response = {
2752
+ $metadata: deserializeMetadata(output),
2753
+ ...contents,
2754
+ };
2755
+ return Promise.resolve(response);
2756
+ };
2757
+ exports.deserializeAws_json1_1UpdateAgreementCommand = deserializeAws_json1_1UpdateAgreementCommand;
2758
+ const deserializeAws_json1_1UpdateAgreementCommandError = async (output, context) => {
2759
+ const parsedOutput = {
2760
+ ...output,
2761
+ body: await parseBody(output.body, context),
2762
+ };
2763
+ let response;
2764
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2765
+ switch (errorCode) {
2766
+ case "InternalServiceError":
2767
+ case "com.amazonaws.transfer#InternalServiceError":
2768
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
2769
+ case "InvalidRequestException":
2770
+ case "com.amazonaws.transfer#InvalidRequestException":
2771
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2772
+ case "ResourceExistsException":
2773
+ case "com.amazonaws.transfer#ResourceExistsException":
2774
+ throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
2775
+ case "ResourceNotFoundException":
2776
+ case "com.amazonaws.transfer#ResourceNotFoundException":
2777
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2778
+ case "ServiceUnavailableException":
2779
+ case "com.amazonaws.transfer#ServiceUnavailableException":
2780
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
2781
+ default:
2782
+ const parsedBody = parsedOutput.body;
2783
+ const $metadata = deserializeMetadata(output);
2784
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2785
+ response = new TransferServiceException_1.TransferServiceException({
2786
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2787
+ $fault: "client",
2788
+ $metadata,
2789
+ });
2790
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2791
+ }
2792
+ };
2793
+ const deserializeAws_json1_1UpdateCertificateCommand = async (output, context) => {
2794
+ if (output.statusCode >= 300) {
2795
+ return deserializeAws_json1_1UpdateCertificateCommandError(output, context);
2796
+ }
2797
+ const data = await parseBody(output.body, context);
2798
+ let contents = {};
2799
+ contents = deserializeAws_json1_1UpdateCertificateResponse(data, context);
2800
+ const response = {
2801
+ $metadata: deserializeMetadata(output),
2802
+ ...contents,
2803
+ };
2804
+ return Promise.resolve(response);
2805
+ };
2806
+ exports.deserializeAws_json1_1UpdateCertificateCommand = deserializeAws_json1_1UpdateCertificateCommand;
2807
+ const deserializeAws_json1_1UpdateCertificateCommandError = async (output, context) => {
2808
+ const parsedOutput = {
2809
+ ...output,
2810
+ body: await parseBody(output.body, context),
2811
+ };
2812
+ let response;
2813
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2814
+ switch (errorCode) {
2815
+ case "InternalServiceError":
2816
+ case "com.amazonaws.transfer#InternalServiceError":
2817
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
2818
+ case "InvalidRequestException":
2819
+ case "com.amazonaws.transfer#InvalidRequestException":
2820
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2821
+ case "ResourceNotFoundException":
2822
+ case "com.amazonaws.transfer#ResourceNotFoundException":
2823
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2824
+ case "ServiceUnavailableException":
2825
+ case "com.amazonaws.transfer#ServiceUnavailableException":
2826
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
2827
+ default:
2828
+ const parsedBody = parsedOutput.body;
2829
+ const $metadata = deserializeMetadata(output);
2830
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2831
+ response = new TransferServiceException_1.TransferServiceException({
2832
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2833
+ $fault: "client",
2834
+ $metadata,
2835
+ });
2836
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2837
+ }
2838
+ };
2839
+ const deserializeAws_json1_1UpdateConnectorCommand = async (output, context) => {
2840
+ if (output.statusCode >= 300) {
2841
+ return deserializeAws_json1_1UpdateConnectorCommandError(output, context);
2842
+ }
2843
+ const data = await parseBody(output.body, context);
2844
+ let contents = {};
2845
+ contents = deserializeAws_json1_1UpdateConnectorResponse(data, context);
2846
+ const response = {
2847
+ $metadata: deserializeMetadata(output),
2848
+ ...contents,
2849
+ };
2850
+ return Promise.resolve(response);
2851
+ };
2852
+ exports.deserializeAws_json1_1UpdateConnectorCommand = deserializeAws_json1_1UpdateConnectorCommand;
2853
+ const deserializeAws_json1_1UpdateConnectorCommandError = async (output, context) => {
2854
+ const parsedOutput = {
2855
+ ...output,
2856
+ body: await parseBody(output.body, context),
2857
+ };
2858
+ let response;
2859
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2860
+ switch (errorCode) {
2861
+ case "InternalServiceError":
2862
+ case "com.amazonaws.transfer#InternalServiceError":
2863
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
2864
+ case "InvalidRequestException":
2865
+ case "com.amazonaws.transfer#InvalidRequestException":
2866
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2867
+ case "ResourceExistsException":
2868
+ case "com.amazonaws.transfer#ResourceExistsException":
2869
+ throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
2870
+ case "ResourceNotFoundException":
2871
+ case "com.amazonaws.transfer#ResourceNotFoundException":
2872
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2873
+ case "ServiceUnavailableException":
2874
+ case "com.amazonaws.transfer#ServiceUnavailableException":
2875
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
2876
+ default:
2877
+ const parsedBody = parsedOutput.body;
2878
+ const $metadata = deserializeMetadata(output);
2879
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2880
+ response = new TransferServiceException_1.TransferServiceException({
2881
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2882
+ $fault: "client",
2883
+ $metadata,
2884
+ });
2885
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2886
+ }
2887
+ };
2888
+ const deserializeAws_json1_1UpdateProfileCommand = async (output, context) => {
2889
+ if (output.statusCode >= 300) {
2890
+ return deserializeAws_json1_1UpdateProfileCommandError(output, context);
2891
+ }
2892
+ const data = await parseBody(output.body, context);
2893
+ let contents = {};
2894
+ contents = deserializeAws_json1_1UpdateProfileResponse(data, context);
2895
+ const response = {
2896
+ $metadata: deserializeMetadata(output),
2897
+ ...contents,
2898
+ };
2899
+ return Promise.resolve(response);
2900
+ };
2901
+ exports.deserializeAws_json1_1UpdateProfileCommand = deserializeAws_json1_1UpdateProfileCommand;
2902
+ const deserializeAws_json1_1UpdateProfileCommandError = async (output, context) => {
2903
+ const parsedOutput = {
2904
+ ...output,
2905
+ body: await parseBody(output.body, context),
2906
+ };
2907
+ let response;
2908
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2909
+ switch (errorCode) {
2910
+ case "InternalServiceError":
2911
+ case "com.amazonaws.transfer#InternalServiceError":
2912
+ throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
2913
+ case "InvalidRequestException":
2914
+ case "com.amazonaws.transfer#InvalidRequestException":
2915
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2916
+ case "ResourceNotFoundException":
2917
+ case "com.amazonaws.transfer#ResourceNotFoundException":
2918
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2919
+ case "ServiceUnavailableException":
2920
+ case "com.amazonaws.transfer#ServiceUnavailableException":
2921
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
2922
+ default:
2923
+ const parsedBody = parsedOutput.body;
2924
+ const $metadata = deserializeMetadata(output);
2925
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2926
+ response = new TransferServiceException_1.TransferServiceException({
2927
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2928
+ $fault: "client",
2929
+ $metadata,
2930
+ });
2931
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2932
+ }
2933
+ };
1742
2934
  const deserializeAws_json1_1UpdateServerCommand = async (output, context) => {
1743
2935
  if (output.statusCode >= 300) {
1744
2936
  return deserializeAws_json1_1UpdateServerCommandError(output, context);
@@ -1937,6 +3129,38 @@ const serializeAws_json1_1AddressAllocationIds = (input, context) => {
1937
3129
  return entry;
1938
3130
  });
1939
3131
  };
3132
+ const serializeAws_json1_1As2ConnectorConfig = (input, context) => {
3133
+ return {
3134
+ ...(input.Compression != null && { Compression: input.Compression }),
3135
+ ...(input.EncryptionAlgorithm != null && { EncryptionAlgorithm: input.EncryptionAlgorithm }),
3136
+ ...(input.LocalProfileId != null && { LocalProfileId: input.LocalProfileId }),
3137
+ ...(input.MdnResponse != null && { MdnResponse: input.MdnResponse }),
3138
+ ...(input.MdnSigningAlgorithm != null && { MdnSigningAlgorithm: input.MdnSigningAlgorithm }),
3139
+ ...(input.MessageSubject != null && { MessageSubject: input.MessageSubject }),
3140
+ ...(input.PartnerProfileId != null && { PartnerProfileId: input.PartnerProfileId }),
3141
+ ...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
3142
+ };
3143
+ };
3144
+ const serializeAws_json1_1As2Transports = (input, context) => {
3145
+ return input
3146
+ .filter((e) => e != null)
3147
+ .map((entry) => {
3148
+ if (entry === null) {
3149
+ return null;
3150
+ }
3151
+ return entry;
3152
+ });
3153
+ };
3154
+ const serializeAws_json1_1CertificateIds = (input, context) => {
3155
+ return input
3156
+ .filter((e) => e != null)
3157
+ .map((entry) => {
3158
+ if (entry === null) {
3159
+ return null;
3160
+ }
3161
+ return entry;
3162
+ });
3163
+ };
1940
3164
  const serializeAws_json1_1CopyStepDetails = (input, context) => {
1941
3165
  return {
1942
3166
  ...(input.DestinationFileLocation != null && {
@@ -1961,6 +3185,37 @@ const serializeAws_json1_1CreateAccessRequest = (input, context) => {
1961
3185
  ...(input.ServerId != null && { ServerId: input.ServerId }),
1962
3186
  };
1963
3187
  };
3188
+ const serializeAws_json1_1CreateAgreementRequest = (input, context) => {
3189
+ return {
3190
+ ...(input.AccessRole != null && { AccessRole: input.AccessRole }),
3191
+ ...(input.BaseDirectory != null && { BaseDirectory: input.BaseDirectory }),
3192
+ ...(input.Description != null && { Description: input.Description }),
3193
+ ...(input.LocalProfileId != null && { LocalProfileId: input.LocalProfileId }),
3194
+ ...(input.PartnerProfileId != null && { PartnerProfileId: input.PartnerProfileId }),
3195
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
3196
+ ...(input.Status != null && { Status: input.Status }),
3197
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3198
+ };
3199
+ };
3200
+ const serializeAws_json1_1CreateConnectorRequest = (input, context) => {
3201
+ return {
3202
+ ...(input.AccessRole != null && { AccessRole: input.AccessRole }),
3203
+ ...(input.As2Config != null && { As2Config: serializeAws_json1_1As2ConnectorConfig(input.As2Config, context) }),
3204
+ ...(input.LoggingRole != null && { LoggingRole: input.LoggingRole }),
3205
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3206
+ ...(input.Url != null && { Url: input.Url }),
3207
+ };
3208
+ };
3209
+ const serializeAws_json1_1CreateProfileRequest = (input, context) => {
3210
+ return {
3211
+ ...(input.As2Id != null && { As2Id: input.As2Id }),
3212
+ ...(input.CertificateIds != null && {
3213
+ CertificateIds: serializeAws_json1_1CertificateIds(input.CertificateIds, context),
3214
+ }),
3215
+ ...(input.ProfileType != null && { ProfileType: input.ProfileType }),
3216
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3217
+ };
3218
+ };
1964
3219
  const serializeAws_json1_1CreateServerRequest = (input, context) => {
1965
3220
  return {
1966
3221
  ...(input.Certificate != null && { Certificate: input.Certificate }),
@@ -2032,6 +3287,27 @@ const serializeAws_json1_1DeleteAccessRequest = (input, context) => {
2032
3287
  ...(input.ServerId != null && { ServerId: input.ServerId }),
2033
3288
  };
2034
3289
  };
3290
+ const serializeAws_json1_1DeleteAgreementRequest = (input, context) => {
3291
+ return {
3292
+ ...(input.AgreementId != null && { AgreementId: input.AgreementId }),
3293
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
3294
+ };
3295
+ };
3296
+ const serializeAws_json1_1DeleteCertificateRequest = (input, context) => {
3297
+ return {
3298
+ ...(input.CertificateId != null && { CertificateId: input.CertificateId }),
3299
+ };
3300
+ };
3301
+ const serializeAws_json1_1DeleteConnectorRequest = (input, context) => {
3302
+ return {
3303
+ ...(input.ConnectorId != null && { ConnectorId: input.ConnectorId }),
3304
+ };
3305
+ };
3306
+ const serializeAws_json1_1DeleteProfileRequest = (input, context) => {
3307
+ return {
3308
+ ...(input.ProfileId != null && { ProfileId: input.ProfileId }),
3309
+ };
3310
+ };
2035
3311
  const serializeAws_json1_1DeleteServerRequest = (input, context) => {
2036
3312
  return {
2037
3313
  ...(input.ServerId != null && { ServerId: input.ServerId }),
@@ -2067,12 +3343,33 @@ const serializeAws_json1_1DescribeAccessRequest = (input, context) => {
2067
3343
  ...(input.ServerId != null && { ServerId: input.ServerId }),
2068
3344
  };
2069
3345
  };
3346
+ const serializeAws_json1_1DescribeAgreementRequest = (input, context) => {
3347
+ return {
3348
+ ...(input.AgreementId != null && { AgreementId: input.AgreementId }),
3349
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
3350
+ };
3351
+ };
3352
+ const serializeAws_json1_1DescribeCertificateRequest = (input, context) => {
3353
+ return {
3354
+ ...(input.CertificateId != null && { CertificateId: input.CertificateId }),
3355
+ };
3356
+ };
3357
+ const serializeAws_json1_1DescribeConnectorRequest = (input, context) => {
3358
+ return {
3359
+ ...(input.ConnectorId != null && { ConnectorId: input.ConnectorId }),
3360
+ };
3361
+ };
2070
3362
  const serializeAws_json1_1DescribeExecutionRequest = (input, context) => {
2071
3363
  return {
2072
3364
  ...(input.ExecutionId != null && { ExecutionId: input.ExecutionId }),
2073
3365
  ...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
2074
3366
  };
2075
3367
  };
3368
+ const serializeAws_json1_1DescribeProfileRequest = (input, context) => {
3369
+ return {
3370
+ ...(input.ProfileId != null && { ProfileId: input.ProfileId }),
3371
+ };
3372
+ };
2076
3373
  const serializeAws_json1_1DescribeSecurityPolicyRequest = (input, context) => {
2077
3374
  return {
2078
3375
  ...(input.SecurityPolicyName != null && { SecurityPolicyName: input.SecurityPolicyName }),
@@ -2113,6 +3410,16 @@ const serializeAws_json1_1EndpointDetails = (input, context) => {
2113
3410
  ...(input.VpcId != null && { VpcId: input.VpcId }),
2114
3411
  };
2115
3412
  };
3413
+ const serializeAws_json1_1FilePaths = (input, context) => {
3414
+ return input
3415
+ .filter((e) => e != null)
3416
+ .map((entry) => {
3417
+ if (entry === null) {
3418
+ return null;
3419
+ }
3420
+ return entry;
3421
+ });
3422
+ };
2116
3423
  const serializeAws_json1_1HomeDirectoryMapEntry = (input, context) => {
2117
3424
  return {
2118
3425
  ...(input.Entry != null && { Entry: input.Entry }),
@@ -2137,6 +3444,18 @@ const serializeAws_json1_1IdentityProviderDetails = (input, context) => {
2137
3444
  ...(input.Url != null && { Url: input.Url }),
2138
3445
  };
2139
3446
  };
3447
+ const serializeAws_json1_1ImportCertificateRequest = (input, context) => {
3448
+ return {
3449
+ ...(input.ActiveDate != null && { ActiveDate: Math.round(input.ActiveDate.getTime() / 1000) }),
3450
+ ...(input.Certificate != null && { Certificate: input.Certificate }),
3451
+ ...(input.CertificateChain != null && { CertificateChain: input.CertificateChain }),
3452
+ ...(input.Description != null && { Description: input.Description }),
3453
+ ...(input.InactiveDate != null && { InactiveDate: Math.round(input.InactiveDate.getTime() / 1000) }),
3454
+ ...(input.PrivateKey != null && { PrivateKey: input.PrivateKey }),
3455
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3456
+ ...(input.Usage != null && { Usage: input.Usage }),
3457
+ };
3458
+ };
2140
3459
  const serializeAws_json1_1ImportSshPublicKeyRequest = (input, context) => {
2141
3460
  return {
2142
3461
  ...(input.ServerId != null && { ServerId: input.ServerId }),
@@ -2161,6 +3480,25 @@ const serializeAws_json1_1ListAccessesRequest = (input, context) => {
2161
3480
  ...(input.ServerId != null && { ServerId: input.ServerId }),
2162
3481
  };
2163
3482
  };
3483
+ const serializeAws_json1_1ListAgreementsRequest = (input, context) => {
3484
+ return {
3485
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3486
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3487
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
3488
+ };
3489
+ };
3490
+ const serializeAws_json1_1ListCertificatesRequest = (input, context) => {
3491
+ return {
3492
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3493
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3494
+ };
3495
+ };
3496
+ const serializeAws_json1_1ListConnectorsRequest = (input, context) => {
3497
+ return {
3498
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3499
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3500
+ };
3501
+ };
2164
3502
  const serializeAws_json1_1ListExecutionsRequest = (input, context) => {
2165
3503
  return {
2166
3504
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
@@ -2168,6 +3506,13 @@ const serializeAws_json1_1ListExecutionsRequest = (input, context) => {
2168
3506
  ...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
2169
3507
  };
2170
3508
  };
3509
+ const serializeAws_json1_1ListProfilesRequest = (input, context) => {
3510
+ return {
3511
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3512
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3513
+ ...(input.ProfileType != null && { ProfileType: input.ProfileType }),
3514
+ };
3515
+ };
2171
3516
  const serializeAws_json1_1ListSecurityPoliciesRequest = (input, context) => {
2172
3517
  return {
2173
3518
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
@@ -2221,6 +3566,9 @@ const serializeAws_json1_1PosixProfile = (input, context) => {
2221
3566
  };
2222
3567
  const serializeAws_json1_1ProtocolDetails = (input, context) => {
2223
3568
  return {
3569
+ ...(input.As2Transports != null && {
3570
+ As2Transports: serializeAws_json1_1As2Transports(input.As2Transports, context),
3571
+ }),
2224
3572
  ...(input.PassiveIp != null && { PassiveIp: input.PassiveIp }),
2225
3573
  ...(input.SetStatOption != null && { SetStatOption: input.SetStatOption }),
2226
3574
  ...(input.TlsSessionResumptionMode != null && { TlsSessionResumptionMode: input.TlsSessionResumptionMode }),
@@ -2286,6 +3634,12 @@ const serializeAws_json1_1SendWorkflowStepStateRequest = (input, context) => {
2286
3634
  ...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
2287
3635
  };
2288
3636
  };
3637
+ const serializeAws_json1_1StartFileTransferRequest = (input, context) => {
3638
+ return {
3639
+ ...(input.ConnectorId != null && { ConnectorId: input.ConnectorId }),
3640
+ ...(input.SendFilePaths != null && { SendFilePaths: serializeAws_json1_1FilePaths(input.SendFilePaths, context) }),
3641
+ };
3642
+ };
2289
3643
  const serializeAws_json1_1StartServerRequest = (input, context) => {
2290
3644
  return {
2291
3645
  ...(input.ServerId != null && { ServerId: input.ServerId }),
@@ -2374,6 +3728,43 @@ const serializeAws_json1_1UpdateAccessRequest = (input, context) => {
2374
3728
  ...(input.ServerId != null && { ServerId: input.ServerId }),
2375
3729
  };
2376
3730
  };
3731
+ const serializeAws_json1_1UpdateAgreementRequest = (input, context) => {
3732
+ return {
3733
+ ...(input.AccessRole != null && { AccessRole: input.AccessRole }),
3734
+ ...(input.AgreementId != null && { AgreementId: input.AgreementId }),
3735
+ ...(input.BaseDirectory != null && { BaseDirectory: input.BaseDirectory }),
3736
+ ...(input.Description != null && { Description: input.Description }),
3737
+ ...(input.LocalProfileId != null && { LocalProfileId: input.LocalProfileId }),
3738
+ ...(input.PartnerProfileId != null && { PartnerProfileId: input.PartnerProfileId }),
3739
+ ...(input.ServerId != null && { ServerId: input.ServerId }),
3740
+ ...(input.Status != null && { Status: input.Status }),
3741
+ };
3742
+ };
3743
+ const serializeAws_json1_1UpdateCertificateRequest = (input, context) => {
3744
+ return {
3745
+ ...(input.ActiveDate != null && { ActiveDate: Math.round(input.ActiveDate.getTime() / 1000) }),
3746
+ ...(input.CertificateId != null && { CertificateId: input.CertificateId }),
3747
+ ...(input.Description != null && { Description: input.Description }),
3748
+ ...(input.InactiveDate != null && { InactiveDate: Math.round(input.InactiveDate.getTime() / 1000) }),
3749
+ };
3750
+ };
3751
+ const serializeAws_json1_1UpdateConnectorRequest = (input, context) => {
3752
+ return {
3753
+ ...(input.AccessRole != null && { AccessRole: input.AccessRole }),
3754
+ ...(input.As2Config != null && { As2Config: serializeAws_json1_1As2ConnectorConfig(input.As2Config, context) }),
3755
+ ...(input.ConnectorId != null && { ConnectorId: input.ConnectorId }),
3756
+ ...(input.LoggingRole != null && { LoggingRole: input.LoggingRole }),
3757
+ ...(input.Url != null && { Url: input.Url }),
3758
+ };
3759
+ };
3760
+ const serializeAws_json1_1UpdateProfileRequest = (input, context) => {
3761
+ return {
3762
+ ...(input.CertificateIds != null && {
3763
+ CertificateIds: serializeAws_json1_1CertificateIds(input.CertificateIds, context),
3764
+ }),
3765
+ ...(input.ProfileId != null && { ProfileId: input.ProfileId }),
3766
+ };
3767
+ };
2377
3768
  const serializeAws_json1_1UpdateServerRequest = (input, context) => {
2378
3769
  return {
2379
3770
  ...(input.Certificate != null && { Certificate: input.Certificate }),
@@ -2471,6 +3862,40 @@ const deserializeAws_json1_1AddressAllocationIds = (output, context) => {
2471
3862
  });
2472
3863
  return retVal;
2473
3864
  };
3865
+ const deserializeAws_json1_1As2ConnectorConfig = (output, context) => {
3866
+ return {
3867
+ Compression: (0, smithy_client_1.expectString)(output.Compression),
3868
+ EncryptionAlgorithm: (0, smithy_client_1.expectString)(output.EncryptionAlgorithm),
3869
+ LocalProfileId: (0, smithy_client_1.expectString)(output.LocalProfileId),
3870
+ MdnResponse: (0, smithy_client_1.expectString)(output.MdnResponse),
3871
+ MdnSigningAlgorithm: (0, smithy_client_1.expectString)(output.MdnSigningAlgorithm),
3872
+ MessageSubject: (0, smithy_client_1.expectString)(output.MessageSubject),
3873
+ PartnerProfileId: (0, smithy_client_1.expectString)(output.PartnerProfileId),
3874
+ SigningAlgorithm: (0, smithy_client_1.expectString)(output.SigningAlgorithm),
3875
+ };
3876
+ };
3877
+ const deserializeAws_json1_1As2Transports = (output, context) => {
3878
+ const retVal = (output || [])
3879
+ .filter((e) => e != null)
3880
+ .map((entry) => {
3881
+ if (entry === null) {
3882
+ return null;
3883
+ }
3884
+ return (0, smithy_client_1.expectString)(entry);
3885
+ });
3886
+ return retVal;
3887
+ };
3888
+ const deserializeAws_json1_1CertificateIds = (output, context) => {
3889
+ const retVal = (output || [])
3890
+ .filter((e) => e != null)
3891
+ .map((entry) => {
3892
+ if (entry === null) {
3893
+ return null;
3894
+ }
3895
+ return (0, smithy_client_1.expectString)(entry);
3896
+ });
3897
+ return retVal;
3898
+ };
2474
3899
  const deserializeAws_json1_1ConflictException = (output, context) => {
2475
3900
  return {
2476
3901
  Message: (0, smithy_client_1.expectString)(output.Message),
@@ -2492,6 +3917,21 @@ const deserializeAws_json1_1CreateAccessResponse = (output, context) => {
2492
3917
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
2493
3918
  };
2494
3919
  };
3920
+ const deserializeAws_json1_1CreateAgreementResponse = (output, context) => {
3921
+ return {
3922
+ AgreementId: (0, smithy_client_1.expectString)(output.AgreementId),
3923
+ };
3924
+ };
3925
+ const deserializeAws_json1_1CreateConnectorResponse = (output, context) => {
3926
+ return {
3927
+ ConnectorId: (0, smithy_client_1.expectString)(output.ConnectorId),
3928
+ };
3929
+ };
3930
+ const deserializeAws_json1_1CreateProfileResponse = (output, context) => {
3931
+ return {
3932
+ ProfileId: (0, smithy_client_1.expectString)(output.ProfileId),
3933
+ };
3934
+ };
2495
3935
  const deserializeAws_json1_1CreateServerResponse = (output, context) => {
2496
3936
  return {
2497
3937
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
@@ -2528,6 +3968,21 @@ const deserializeAws_json1_1DescribeAccessResponse = (output, context) => {
2528
3968
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
2529
3969
  };
2530
3970
  };
3971
+ const deserializeAws_json1_1DescribeAgreementResponse = (output, context) => {
3972
+ return {
3973
+ Agreement: output.Agreement != null ? deserializeAws_json1_1DescribedAgreement(output.Agreement, context) : undefined,
3974
+ };
3975
+ };
3976
+ const deserializeAws_json1_1DescribeCertificateResponse = (output, context) => {
3977
+ return {
3978
+ Certificate: output.Certificate != null ? deserializeAws_json1_1DescribedCertificate(output.Certificate, context) : undefined,
3979
+ };
3980
+ };
3981
+ const deserializeAws_json1_1DescribeConnectorResponse = (output, context) => {
3982
+ return {
3983
+ Connector: output.Connector != null ? deserializeAws_json1_1DescribedConnector(output.Connector, context) : undefined,
3984
+ };
3985
+ };
2531
3986
  const deserializeAws_json1_1DescribedAccess = (output, context) => {
2532
3987
  return {
2533
3988
  ExternalId: (0, smithy_client_1.expectString)(output.ExternalId),
@@ -2541,6 +3996,55 @@ const deserializeAws_json1_1DescribedAccess = (output, context) => {
2541
3996
  Role: (0, smithy_client_1.expectString)(output.Role),
2542
3997
  };
2543
3998
  };
3999
+ const deserializeAws_json1_1DescribedAgreement = (output, context) => {
4000
+ return {
4001
+ AccessRole: (0, smithy_client_1.expectString)(output.AccessRole),
4002
+ AgreementId: (0, smithy_client_1.expectString)(output.AgreementId),
4003
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4004
+ BaseDirectory: (0, smithy_client_1.expectString)(output.BaseDirectory),
4005
+ Description: (0, smithy_client_1.expectString)(output.Description),
4006
+ LocalProfileId: (0, smithy_client_1.expectString)(output.LocalProfileId),
4007
+ PartnerProfileId: (0, smithy_client_1.expectString)(output.PartnerProfileId),
4008
+ ServerId: (0, smithy_client_1.expectString)(output.ServerId),
4009
+ Status: (0, smithy_client_1.expectString)(output.Status),
4010
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
4011
+ };
4012
+ };
4013
+ const deserializeAws_json1_1DescribedCertificate = (output, context) => {
4014
+ return {
4015
+ ActiveDate: output.ActiveDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ActiveDate))) : undefined,
4016
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4017
+ Certificate: (0, smithy_client_1.expectString)(output.Certificate),
4018
+ CertificateChain: (0, smithy_client_1.expectString)(output.CertificateChain),
4019
+ CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
4020
+ Description: (0, smithy_client_1.expectString)(output.Description),
4021
+ InactiveDate: output.InactiveDate != null
4022
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.InactiveDate)))
4023
+ : undefined,
4024
+ NotAfterDate: output.NotAfterDate != null
4025
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotAfterDate)))
4026
+ : undefined,
4027
+ NotBeforeDate: output.NotBeforeDate != null
4028
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotBeforeDate)))
4029
+ : undefined,
4030
+ Serial: (0, smithy_client_1.expectString)(output.Serial),
4031
+ Status: (0, smithy_client_1.expectString)(output.Status),
4032
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
4033
+ Type: (0, smithy_client_1.expectString)(output.Type),
4034
+ Usage: (0, smithy_client_1.expectString)(output.Usage),
4035
+ };
4036
+ };
4037
+ const deserializeAws_json1_1DescribedConnector = (output, context) => {
4038
+ return {
4039
+ AccessRole: (0, smithy_client_1.expectString)(output.AccessRole),
4040
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4041
+ As2Config: output.As2Config != null ? deserializeAws_json1_1As2ConnectorConfig(output.As2Config, context) : undefined,
4042
+ ConnectorId: (0, smithy_client_1.expectString)(output.ConnectorId),
4043
+ LoggingRole: (0, smithy_client_1.expectString)(output.LoggingRole),
4044
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
4045
+ Url: (0, smithy_client_1.expectString)(output.Url),
4046
+ };
4047
+ };
2544
4048
  const deserializeAws_json1_1DescribedExecution = (output, context) => {
2545
4049
  return {
2546
4050
  ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId),
@@ -2559,6 +4063,16 @@ const deserializeAws_json1_1DescribedExecution = (output, context) => {
2559
4063
  Status: (0, smithy_client_1.expectString)(output.Status),
2560
4064
  };
2561
4065
  };
4066
+ const deserializeAws_json1_1DescribedProfile = (output, context) => {
4067
+ return {
4068
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4069
+ As2Id: (0, smithy_client_1.expectString)(output.As2Id),
4070
+ CertificateIds: output.CertificateIds != null ? deserializeAws_json1_1CertificateIds(output.CertificateIds, context) : undefined,
4071
+ ProfileId: (0, smithy_client_1.expectString)(output.ProfileId),
4072
+ ProfileType: (0, smithy_client_1.expectString)(output.ProfileType),
4073
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
4074
+ };
4075
+ };
2562
4076
  const deserializeAws_json1_1DescribedSecurityPolicy = (output, context) => {
2563
4077
  return {
2564
4078
  Fips: (0, smithy_client_1.expectBoolean)(output.Fips),
@@ -2634,6 +4148,11 @@ const deserializeAws_json1_1DescribeExecutionResponse = (output, context) => {
2634
4148
  WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
2635
4149
  };
2636
4150
  };
4151
+ const deserializeAws_json1_1DescribeProfileResponse = (output, context) => {
4152
+ return {
4153
+ Profile: output.Profile != null ? deserializeAws_json1_1DescribedProfile(output.Profile, context) : undefined,
4154
+ };
4155
+ };
2637
4156
  const deserializeAws_json1_1DescribeSecurityPolicyResponse = (output, context) => {
2638
4157
  return {
2639
4158
  SecurityPolicy: output.SecurityPolicy != null
@@ -2741,6 +4260,11 @@ const deserializeAws_json1_1IdentityProviderDetails = (output, context) => {
2741
4260
  Url: (0, smithy_client_1.expectString)(output.Url),
2742
4261
  };
2743
4262
  };
4263
+ const deserializeAws_json1_1ImportCertificateResponse = (output, context) => {
4264
+ return {
4265
+ CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
4266
+ };
4267
+ };
2744
4268
  const deserializeAws_json1_1ImportSshPublicKeyResponse = (output, context) => {
2745
4269
  return {
2746
4270
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
@@ -2780,6 +4304,24 @@ const deserializeAws_json1_1ListAccessesResponse = (output, context) => {
2780
4304
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
2781
4305
  };
2782
4306
  };
4307
+ const deserializeAws_json1_1ListAgreementsResponse = (output, context) => {
4308
+ return {
4309
+ Agreements: output.Agreements != null ? deserializeAws_json1_1ListedAgreements(output.Agreements, context) : undefined,
4310
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4311
+ };
4312
+ };
4313
+ const deserializeAws_json1_1ListCertificatesResponse = (output, context) => {
4314
+ return {
4315
+ Certificates: output.Certificates != null ? deserializeAws_json1_1ListedCertificates(output.Certificates, context) : undefined,
4316
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4317
+ };
4318
+ };
4319
+ const deserializeAws_json1_1ListConnectorsResponse = (output, context) => {
4320
+ return {
4321
+ Connectors: output.Connectors != null ? deserializeAws_json1_1ListedConnectors(output.Connectors, context) : undefined,
4322
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4323
+ };
4324
+ };
2783
4325
  const deserializeAws_json1_1ListedAccess = (output, context) => {
2784
4326
  return {
2785
4327
  ExternalId: (0, smithy_client_1.expectString)(output.ExternalId),
@@ -2799,6 +4341,71 @@ const deserializeAws_json1_1ListedAccesses = (output, context) => {
2799
4341
  });
2800
4342
  return retVal;
2801
4343
  };
4344
+ const deserializeAws_json1_1ListedAgreement = (output, context) => {
4345
+ return {
4346
+ AgreementId: (0, smithy_client_1.expectString)(output.AgreementId),
4347
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4348
+ Description: (0, smithy_client_1.expectString)(output.Description),
4349
+ LocalProfileId: (0, smithy_client_1.expectString)(output.LocalProfileId),
4350
+ PartnerProfileId: (0, smithy_client_1.expectString)(output.PartnerProfileId),
4351
+ ServerId: (0, smithy_client_1.expectString)(output.ServerId),
4352
+ Status: (0, smithy_client_1.expectString)(output.Status),
4353
+ };
4354
+ };
4355
+ const deserializeAws_json1_1ListedAgreements = (output, context) => {
4356
+ const retVal = (output || [])
4357
+ .filter((e) => e != null)
4358
+ .map((entry) => {
4359
+ if (entry === null) {
4360
+ return null;
4361
+ }
4362
+ return deserializeAws_json1_1ListedAgreement(entry, context);
4363
+ });
4364
+ return retVal;
4365
+ };
4366
+ const deserializeAws_json1_1ListedCertificate = (output, context) => {
4367
+ return {
4368
+ ActiveDate: output.ActiveDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ActiveDate))) : undefined,
4369
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4370
+ CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
4371
+ Description: (0, smithy_client_1.expectString)(output.Description),
4372
+ InactiveDate: output.InactiveDate != null
4373
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.InactiveDate)))
4374
+ : undefined,
4375
+ Status: (0, smithy_client_1.expectString)(output.Status),
4376
+ Type: (0, smithy_client_1.expectString)(output.Type),
4377
+ Usage: (0, smithy_client_1.expectString)(output.Usage),
4378
+ };
4379
+ };
4380
+ const deserializeAws_json1_1ListedCertificates = (output, context) => {
4381
+ const retVal = (output || [])
4382
+ .filter((e) => e != null)
4383
+ .map((entry) => {
4384
+ if (entry === null) {
4385
+ return null;
4386
+ }
4387
+ return deserializeAws_json1_1ListedCertificate(entry, context);
4388
+ });
4389
+ return retVal;
4390
+ };
4391
+ const deserializeAws_json1_1ListedConnector = (output, context) => {
4392
+ return {
4393
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4394
+ ConnectorId: (0, smithy_client_1.expectString)(output.ConnectorId),
4395
+ Url: (0, smithy_client_1.expectString)(output.Url),
4396
+ };
4397
+ };
4398
+ const deserializeAws_json1_1ListedConnectors = (output, context) => {
4399
+ const retVal = (output || [])
4400
+ .filter((e) => e != null)
4401
+ .map((entry) => {
4402
+ if (entry === null) {
4403
+ return null;
4404
+ }
4405
+ return deserializeAws_json1_1ListedConnector(entry, context);
4406
+ });
4407
+ return retVal;
4408
+ };
2802
4409
  const deserializeAws_json1_1ListedExecution = (output, context) => {
2803
4410
  return {
2804
4411
  ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId),
@@ -2822,6 +4429,25 @@ const deserializeAws_json1_1ListedExecutions = (output, context) => {
2822
4429
  });
2823
4430
  return retVal;
2824
4431
  };
4432
+ const deserializeAws_json1_1ListedProfile = (output, context) => {
4433
+ return {
4434
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4435
+ As2Id: (0, smithy_client_1.expectString)(output.As2Id),
4436
+ ProfileId: (0, smithy_client_1.expectString)(output.ProfileId),
4437
+ ProfileType: (0, smithy_client_1.expectString)(output.ProfileType),
4438
+ };
4439
+ };
4440
+ const deserializeAws_json1_1ListedProfiles = (output, context) => {
4441
+ const retVal = (output || [])
4442
+ .filter((e) => e != null)
4443
+ .map((entry) => {
4444
+ if (entry === null) {
4445
+ return null;
4446
+ }
4447
+ return deserializeAws_json1_1ListedProfile(entry, context);
4448
+ });
4449
+ return retVal;
4450
+ };
2825
4451
  const deserializeAws_json1_1ListedServer = (output, context) => {
2826
4452
  return {
2827
4453
  Arn: (0, smithy_client_1.expectString)(output.Arn),
@@ -2891,6 +4517,12 @@ const deserializeAws_json1_1ListExecutionsResponse = (output, context) => {
2891
4517
  WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
2892
4518
  };
2893
4519
  };
4520
+ const deserializeAws_json1_1ListProfilesResponse = (output, context) => {
4521
+ return {
4522
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4523
+ Profiles: output.Profiles != null ? deserializeAws_json1_1ListedProfiles(output.Profiles, context) : undefined,
4524
+ };
4525
+ };
2894
4526
  const deserializeAws_json1_1ListSecurityPoliciesResponse = (output, context) => {
2895
4527
  return {
2896
4528
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -2951,6 +4583,7 @@ const deserializeAws_json1_1PosixProfile = (output, context) => {
2951
4583
  };
2952
4584
  const deserializeAws_json1_1ProtocolDetails = (output, context) => {
2953
4585
  return {
4586
+ As2Transports: output.As2Transports != null ? deserializeAws_json1_1As2Transports(output.As2Transports, context) : undefined,
2954
4587
  PassiveIp: (0, smithy_client_1.expectString)(output.PassiveIp),
2955
4588
  SetStatOption: (0, smithy_client_1.expectString)(output.SetStatOption),
2956
4589
  TlsSessionResumptionMode: (0, smithy_client_1.expectString)(output.TlsSessionResumptionMode),
@@ -3089,6 +4722,11 @@ const deserializeAws_json1_1SshPublicKeys = (output, context) => {
3089
4722
  });
3090
4723
  return retVal;
3091
4724
  };
4725
+ const deserializeAws_json1_1StartFileTransferResponse = (output, context) => {
4726
+ return {
4727
+ TransferId: (0, smithy_client_1.expectString)(output.TransferId),
4728
+ };
4729
+ };
3092
4730
  const deserializeAws_json1_1SubnetIds = (output, context) => {
3093
4731
  const retVal = (output || [])
3094
4732
  .filter((e) => e != null)
@@ -3143,6 +4781,26 @@ const deserializeAws_json1_1UpdateAccessResponse = (output, context) => {
3143
4781
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),
3144
4782
  };
3145
4783
  };
4784
+ const deserializeAws_json1_1UpdateAgreementResponse = (output, context) => {
4785
+ return {
4786
+ AgreementId: (0, smithy_client_1.expectString)(output.AgreementId),
4787
+ };
4788
+ };
4789
+ const deserializeAws_json1_1UpdateCertificateResponse = (output, context) => {
4790
+ return {
4791
+ CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
4792
+ };
4793
+ };
4794
+ const deserializeAws_json1_1UpdateConnectorResponse = (output, context) => {
4795
+ return {
4796
+ ConnectorId: (0, smithy_client_1.expectString)(output.ConnectorId),
4797
+ };
4798
+ };
4799
+ const deserializeAws_json1_1UpdateProfileResponse = (output, context) => {
4800
+ return {
4801
+ ProfileId: (0, smithy_client_1.expectString)(output.ProfileId),
4802
+ };
4803
+ };
3146
4804
  const deserializeAws_json1_1UpdateServerResponse = (output, context) => {
3147
4805
  return {
3148
4806
  ServerId: (0, smithy_client_1.expectString)(output.ServerId),