@aws-sdk/client-datasync 3.319.0 → 3.321.1

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 (136) hide show
  1. package/README.md +113 -8
  2. package/dist-cjs/DataSync.js +26 -0
  3. package/dist-cjs/commands/AddStorageSystemCommand.js +46 -0
  4. package/dist-cjs/commands/DescribeDiscoveryJobCommand.js +45 -0
  5. package/dist-cjs/commands/DescribeStorageSystemCommand.js +45 -0
  6. package/dist-cjs/commands/DescribeStorageSystemResourceMetricsCommand.js +45 -0
  7. package/dist-cjs/commands/DescribeStorageSystemResourcesCommand.js +45 -0
  8. package/dist-cjs/commands/GenerateRecommendationsCommand.js +45 -0
  9. package/dist-cjs/commands/ListDiscoveryJobsCommand.js +45 -0
  10. package/dist-cjs/commands/ListStorageSystemsCommand.js +45 -0
  11. package/dist-cjs/commands/RemoveStorageSystemCommand.js +45 -0
  12. package/dist-cjs/commands/StartDiscoveryJobCommand.js +45 -0
  13. package/dist-cjs/commands/StopDiscoveryJobCommand.js +45 -0
  14. package/dist-cjs/commands/UpdateDiscoveryJobCommand.js +45 -0
  15. package/dist-cjs/commands/UpdateStorageSystemCommand.js +46 -0
  16. package/dist-cjs/commands/index.js +13 -0
  17. package/dist-cjs/models/models_0.js +56 -8
  18. package/dist-cjs/pagination/DescribeStorageSystemResourceMetricsPaginator.js +29 -0
  19. package/dist-cjs/pagination/DescribeStorageSystemResourcesPaginator.js +29 -0
  20. package/dist-cjs/pagination/ListDiscoveryJobsPaginator.js +29 -0
  21. package/dist-cjs/pagination/ListStorageSystemsPaginator.js +29 -0
  22. package/dist-cjs/pagination/index.js +4 -0
  23. package/dist-cjs/protocols/Aws_json1_1.js +948 -87
  24. package/dist-es/DataSync.js +26 -0
  25. package/dist-es/commands/AddStorageSystemCommand.js +42 -0
  26. package/dist-es/commands/DescribeDiscoveryJobCommand.js +41 -0
  27. package/dist-es/commands/DescribeStorageSystemCommand.js +41 -0
  28. package/dist-es/commands/DescribeStorageSystemResourceMetricsCommand.js +41 -0
  29. package/dist-es/commands/DescribeStorageSystemResourcesCommand.js +41 -0
  30. package/dist-es/commands/GenerateRecommendationsCommand.js +41 -0
  31. package/dist-es/commands/ListDiscoveryJobsCommand.js +41 -0
  32. package/dist-es/commands/ListStorageSystemsCommand.js +41 -0
  33. package/dist-es/commands/RemoveStorageSystemCommand.js +41 -0
  34. package/dist-es/commands/StartDiscoveryJobCommand.js +41 -0
  35. package/dist-es/commands/StopDiscoveryJobCommand.js +41 -0
  36. package/dist-es/commands/UpdateDiscoveryJobCommand.js +41 -0
  37. package/dist-es/commands/UpdateStorageSystemCommand.js +42 -0
  38. package/dist-es/commands/index.js +13 -0
  39. package/dist-es/models/models_0.js +51 -7
  40. package/dist-es/pagination/DescribeStorageSystemResourceMetricsPaginator.js +25 -0
  41. package/dist-es/pagination/DescribeStorageSystemResourcesPaginator.js +25 -0
  42. package/dist-es/pagination/ListDiscoveryJobsPaginator.js +25 -0
  43. package/dist-es/pagination/ListStorageSystemsPaginator.js +25 -0
  44. package/dist-es/pagination/index.js +4 -0
  45. package/dist-es/protocols/Aws_json1_1.js +908 -74
  46. package/dist-types/DataSync.d.ts +94 -2
  47. package/dist-types/DataSyncClient.d.ts +18 -4
  48. package/dist-types/commands/AddStorageSystemCommand.d.ts +91 -0
  49. package/dist-types/commands/CancelTaskExecutionCommand.d.ts +4 -3
  50. package/dist-types/commands/CreateAgentCommand.d.ts +4 -3
  51. package/dist-types/commands/CreateLocationEfsCommand.d.ts +2 -1
  52. package/dist-types/commands/CreateLocationFsxLustreCommand.d.ts +2 -1
  53. package/dist-types/commands/CreateLocationFsxOntapCommand.d.ts +3 -3
  54. package/dist-types/commands/CreateLocationFsxOpenZfsCommand.d.ts +4 -4
  55. package/dist-types/commands/CreateLocationFsxWindowsCommand.d.ts +2 -1
  56. package/dist-types/commands/CreateLocationHdfsCommand.d.ts +2 -1
  57. package/dist-types/commands/CreateLocationNfsCommand.d.ts +2 -1
  58. package/dist-types/commands/CreateLocationObjectStorageCommand.d.ts +5 -2
  59. package/dist-types/commands/CreateLocationS3Command.d.ts +20 -3
  60. package/dist-types/commands/CreateLocationSmbCommand.d.ts +2 -1
  61. package/dist-types/commands/CreateTaskCommand.d.ts +8 -1
  62. package/dist-types/commands/DeleteAgentCommand.d.ts +4 -4
  63. package/dist-types/commands/DeleteLocationCommand.d.ts +2 -1
  64. package/dist-types/commands/DeleteTaskCommand.d.ts +2 -1
  65. package/dist-types/commands/DescribeAgentCommand.d.ts +4 -2
  66. package/dist-types/commands/DescribeDiscoveryJobCommand.d.ts +70 -0
  67. package/dist-types/commands/DescribeLocationEfsCommand.d.ts +4 -2
  68. package/dist-types/commands/DescribeLocationFsxLustreCommand.d.ts +2 -1
  69. package/dist-types/commands/DescribeLocationFsxOntapCommand.d.ts +2 -1
  70. package/dist-types/commands/DescribeLocationFsxOpenZfsCommand.d.ts +3 -2
  71. package/dist-types/commands/DescribeLocationFsxWindowsCommand.d.ts +4 -3
  72. package/dist-types/commands/DescribeLocationHdfsCommand.d.ts +2 -1
  73. package/dist-types/commands/DescribeLocationNfsCommand.d.ts +2 -1
  74. package/dist-types/commands/DescribeLocationObjectStorageCommand.d.ts +4 -2
  75. package/dist-types/commands/DescribeLocationS3Command.d.ts +2 -1
  76. package/dist-types/commands/DescribeLocationSmbCommand.d.ts +2 -1
  77. package/dist-types/commands/DescribeStorageSystemCommand.d.ts +71 -0
  78. package/dist-types/commands/DescribeStorageSystemResourceMetricsCommand.d.ts +77 -0
  79. package/dist-types/commands/DescribeStorageSystemResourcesCommand.d.ts +82 -0
  80. package/dist-types/commands/DescribeTaskCommand.d.ts +2 -1
  81. package/dist-types/commands/DescribeTaskExecutionCommand.d.ts +2 -1
  82. package/dist-types/commands/GenerateRecommendationsCommand.d.ts +82 -0
  83. package/dist-types/commands/ListAgentsCommand.d.ts +2 -1
  84. package/dist-types/commands/ListDiscoveryJobsCommand.d.ts +73 -0
  85. package/dist-types/commands/ListLocationsCommand.d.ts +2 -1
  86. package/dist-types/commands/ListStorageSystemsCommand.d.ts +71 -0
  87. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
  88. package/dist-types/commands/ListTaskExecutionsCommand.d.ts +2 -1
  89. package/dist-types/commands/ListTasksCommand.d.ts +2 -1
  90. package/dist-types/commands/RemoveStorageSystemCommand.d.ts +71 -0
  91. package/dist-types/commands/StartDiscoveryJobCommand.d.ts +80 -0
  92. package/dist-types/commands/StartTaskExecutionCommand.d.ts +10 -2
  93. package/dist-types/commands/StopDiscoveryJobCommand.d.ts +73 -0
  94. package/dist-types/commands/TagResourceCommand.d.ts +6 -4
  95. package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
  96. package/dist-types/commands/UpdateAgentCommand.d.ts +2 -1
  97. package/dist-types/commands/UpdateDiscoveryJobCommand.d.ts +71 -0
  98. package/dist-types/commands/UpdateLocationHdfsCommand.d.ts +2 -1
  99. package/dist-types/commands/UpdateLocationNfsCommand.d.ts +5 -3
  100. package/dist-types/commands/UpdateLocationObjectStorageCommand.d.ts +2 -1
  101. package/dist-types/commands/UpdateLocationSmbCommand.d.ts +4 -3
  102. package/dist-types/commands/UpdateStorageSystemCommand.d.ts +84 -0
  103. package/dist-types/commands/UpdateTaskCommand.d.ts +2 -1
  104. package/dist-types/commands/UpdateTaskExecutionCommand.d.ts +7 -7
  105. package/dist-types/commands/index.d.ts +13 -0
  106. package/dist-types/models/models_0.d.ts +1429 -296
  107. package/dist-types/pagination/DescribeStorageSystemResourceMetricsPaginator.d.ts +7 -0
  108. package/dist-types/pagination/DescribeStorageSystemResourcesPaginator.d.ts +7 -0
  109. package/dist-types/pagination/ListDiscoveryJobsPaginator.d.ts +7 -0
  110. package/dist-types/pagination/ListStorageSystemsPaginator.d.ts +7 -0
  111. package/dist-types/pagination/index.d.ts +4 -0
  112. package/dist-types/protocols/Aws_json1_1.d.ts +117 -0
  113. package/dist-types/ts3.4/DataSync.d.ts +227 -0
  114. package/dist-types/ts3.4/DataSyncClient.d.ts +78 -0
  115. package/dist-types/ts3.4/commands/AddStorageSystemCommand.d.ts +37 -0
  116. package/dist-types/ts3.4/commands/DescribeDiscoveryJobCommand.d.ts +41 -0
  117. package/dist-types/ts3.4/commands/DescribeStorageSystemCommand.d.ts +41 -0
  118. package/dist-types/ts3.4/commands/DescribeStorageSystemResourceMetricsCommand.d.ts +41 -0
  119. package/dist-types/ts3.4/commands/DescribeStorageSystemResourcesCommand.d.ts +41 -0
  120. package/dist-types/ts3.4/commands/GenerateRecommendationsCommand.d.ts +41 -0
  121. package/dist-types/ts3.4/commands/ListDiscoveryJobsCommand.d.ts +38 -0
  122. package/dist-types/ts3.4/commands/ListStorageSystemsCommand.d.ts +38 -0
  123. package/dist-types/ts3.4/commands/RemoveStorageSystemCommand.d.ts +38 -0
  124. package/dist-types/ts3.4/commands/StartDiscoveryJobCommand.d.ts +38 -0
  125. package/dist-types/ts3.4/commands/StopDiscoveryJobCommand.d.ts +37 -0
  126. package/dist-types/ts3.4/commands/UpdateDiscoveryJobCommand.d.ts +38 -0
  127. package/dist-types/ts3.4/commands/UpdateStorageSystemCommand.d.ts +38 -0
  128. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  129. package/dist-types/ts3.4/models/models_0.d.ts +302 -18
  130. package/dist-types/ts3.4/pagination/DescribeStorageSystemResourceMetricsPaginator.d.ts +11 -0
  131. package/dist-types/ts3.4/pagination/DescribeStorageSystemResourcesPaginator.d.ts +11 -0
  132. package/dist-types/ts3.4/pagination/ListDiscoveryJobsPaginator.d.ts +11 -0
  133. package/dist-types/ts3.4/pagination/ListStorageSystemsPaginator.d.ts +11 -0
  134. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  135. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +156 -0
  136. package/package.json +7 -5
@@ -1,11 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_CreateLocationFsxOpenZfsCommand = exports.de_CreateLocationFsxOntapCommand = exports.de_CreateLocationFsxLustreCommand = exports.de_CreateLocationEfsCommand = exports.de_CreateAgentCommand = exports.de_CancelTaskExecutionCommand = exports.se_UpdateTaskExecutionCommand = exports.se_UpdateTaskCommand = exports.se_UpdateLocationSmbCommand = exports.se_UpdateLocationObjectStorageCommand = exports.se_UpdateLocationNfsCommand = exports.se_UpdateLocationHdfsCommand = exports.se_UpdateAgentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartTaskExecutionCommand = exports.se_ListTasksCommand = exports.se_ListTaskExecutionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListLocationsCommand = exports.se_ListAgentsCommand = exports.se_DescribeTaskExecutionCommand = exports.se_DescribeTaskCommand = exports.se_DescribeLocationSmbCommand = exports.se_DescribeLocationS3Command = exports.se_DescribeLocationObjectStorageCommand = exports.se_DescribeLocationNfsCommand = exports.se_DescribeLocationHdfsCommand = exports.se_DescribeLocationFsxWindowsCommand = exports.se_DescribeLocationFsxOpenZfsCommand = exports.se_DescribeLocationFsxOntapCommand = exports.se_DescribeLocationFsxLustreCommand = exports.se_DescribeLocationEfsCommand = exports.se_DescribeAgentCommand = exports.se_DeleteTaskCommand = exports.se_DeleteLocationCommand = exports.se_DeleteAgentCommand = exports.se_CreateTaskCommand = exports.se_CreateLocationSmbCommand = exports.se_CreateLocationS3Command = exports.se_CreateLocationObjectStorageCommand = exports.se_CreateLocationNfsCommand = exports.se_CreateLocationHdfsCommand = exports.se_CreateLocationFsxWindowsCommand = exports.se_CreateLocationFsxOpenZfsCommand = exports.se_CreateLocationFsxOntapCommand = exports.se_CreateLocationFsxLustreCommand = exports.se_CreateLocationEfsCommand = exports.se_CreateAgentCommand = exports.se_CancelTaskExecutionCommand = void 0;
4
- exports.de_UpdateTaskExecutionCommand = exports.de_UpdateTaskCommand = exports.de_UpdateLocationSmbCommand = exports.de_UpdateLocationObjectStorageCommand = exports.de_UpdateLocationNfsCommand = exports.de_UpdateLocationHdfsCommand = exports.de_UpdateAgentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartTaskExecutionCommand = exports.de_ListTasksCommand = exports.de_ListTaskExecutionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListLocationsCommand = exports.de_ListAgentsCommand = exports.de_DescribeTaskExecutionCommand = exports.de_DescribeTaskCommand = exports.de_DescribeLocationSmbCommand = exports.de_DescribeLocationS3Command = exports.de_DescribeLocationObjectStorageCommand = exports.de_DescribeLocationNfsCommand = exports.de_DescribeLocationHdfsCommand = exports.de_DescribeLocationFsxWindowsCommand = exports.de_DescribeLocationFsxOpenZfsCommand = exports.de_DescribeLocationFsxOntapCommand = exports.de_DescribeLocationFsxLustreCommand = exports.de_DescribeLocationEfsCommand = exports.de_DescribeAgentCommand = exports.de_DeleteTaskCommand = exports.de_DeleteLocationCommand = exports.de_DeleteAgentCommand = exports.de_CreateTaskCommand = exports.de_CreateLocationSmbCommand = exports.de_CreateLocationS3Command = exports.de_CreateLocationObjectStorageCommand = exports.de_CreateLocationNfsCommand = exports.de_CreateLocationHdfsCommand = exports.de_CreateLocationFsxWindowsCommand = void 0;
3
+ exports.se_UpdateDiscoveryJobCommand = exports.se_UpdateAgentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopDiscoveryJobCommand = exports.se_StartTaskExecutionCommand = exports.se_StartDiscoveryJobCommand = exports.se_RemoveStorageSystemCommand = exports.se_ListTasksCommand = exports.se_ListTaskExecutionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStorageSystemsCommand = exports.se_ListLocationsCommand = exports.se_ListDiscoveryJobsCommand = exports.se_ListAgentsCommand = exports.se_GenerateRecommendationsCommand = exports.se_DescribeTaskExecutionCommand = exports.se_DescribeTaskCommand = exports.se_DescribeStorageSystemResourcesCommand = exports.se_DescribeStorageSystemResourceMetricsCommand = exports.se_DescribeStorageSystemCommand = exports.se_DescribeLocationSmbCommand = exports.se_DescribeLocationS3Command = exports.se_DescribeLocationObjectStorageCommand = exports.se_DescribeLocationNfsCommand = exports.se_DescribeLocationHdfsCommand = exports.se_DescribeLocationFsxWindowsCommand = exports.se_DescribeLocationFsxOpenZfsCommand = exports.se_DescribeLocationFsxOntapCommand = exports.se_DescribeLocationFsxLustreCommand = exports.se_DescribeLocationEfsCommand = exports.se_DescribeDiscoveryJobCommand = exports.se_DescribeAgentCommand = exports.se_DeleteTaskCommand = exports.se_DeleteLocationCommand = exports.se_DeleteAgentCommand = exports.se_CreateTaskCommand = exports.se_CreateLocationSmbCommand = exports.se_CreateLocationS3Command = exports.se_CreateLocationObjectStorageCommand = exports.se_CreateLocationNfsCommand = exports.se_CreateLocationHdfsCommand = exports.se_CreateLocationFsxWindowsCommand = exports.se_CreateLocationFsxOpenZfsCommand = exports.se_CreateLocationFsxOntapCommand = exports.se_CreateLocationFsxLustreCommand = exports.se_CreateLocationEfsCommand = exports.se_CreateAgentCommand = exports.se_CancelTaskExecutionCommand = exports.se_AddStorageSystemCommand = void 0;
4
+ exports.de_RemoveStorageSystemCommand = exports.de_ListTasksCommand = exports.de_ListTaskExecutionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStorageSystemsCommand = exports.de_ListLocationsCommand = exports.de_ListDiscoveryJobsCommand = exports.de_ListAgentsCommand = exports.de_GenerateRecommendationsCommand = exports.de_DescribeTaskExecutionCommand = exports.de_DescribeTaskCommand = exports.de_DescribeStorageSystemResourcesCommand = exports.de_DescribeStorageSystemResourceMetricsCommand = exports.de_DescribeStorageSystemCommand = exports.de_DescribeLocationSmbCommand = exports.de_DescribeLocationS3Command = exports.de_DescribeLocationObjectStorageCommand = exports.de_DescribeLocationNfsCommand = exports.de_DescribeLocationHdfsCommand = exports.de_DescribeLocationFsxWindowsCommand = exports.de_DescribeLocationFsxOpenZfsCommand = exports.de_DescribeLocationFsxOntapCommand = exports.de_DescribeLocationFsxLustreCommand = exports.de_DescribeLocationEfsCommand = exports.de_DescribeDiscoveryJobCommand = exports.de_DescribeAgentCommand = exports.de_DeleteTaskCommand = exports.de_DeleteLocationCommand = exports.de_DeleteAgentCommand = exports.de_CreateTaskCommand = exports.de_CreateLocationSmbCommand = exports.de_CreateLocationS3Command = exports.de_CreateLocationObjectStorageCommand = exports.de_CreateLocationNfsCommand = exports.de_CreateLocationHdfsCommand = exports.de_CreateLocationFsxWindowsCommand = exports.de_CreateLocationFsxOpenZfsCommand = exports.de_CreateLocationFsxOntapCommand = exports.de_CreateLocationFsxLustreCommand = exports.de_CreateLocationEfsCommand = exports.de_CreateAgentCommand = exports.de_CancelTaskExecutionCommand = exports.de_AddStorageSystemCommand = exports.se_UpdateTaskExecutionCommand = exports.se_UpdateTaskCommand = exports.se_UpdateStorageSystemCommand = exports.se_UpdateLocationSmbCommand = exports.se_UpdateLocationObjectStorageCommand = exports.se_UpdateLocationNfsCommand = exports.se_UpdateLocationHdfsCommand = void 0;
5
+ exports.de_UpdateTaskExecutionCommand = exports.de_UpdateTaskCommand = exports.de_UpdateStorageSystemCommand = exports.de_UpdateLocationSmbCommand = exports.de_UpdateLocationObjectStorageCommand = exports.de_UpdateLocationNfsCommand = exports.de_UpdateLocationHdfsCommand = exports.de_UpdateDiscoveryJobCommand = exports.de_UpdateAgentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopDiscoveryJobCommand = exports.de_StartTaskExecutionCommand = exports.de_StartDiscoveryJobCommand = void 0;
5
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
+ const uuid_1 = require("uuid");
7
9
  const DataSyncServiceException_1 = require("../models/DataSyncServiceException");
8
10
  const models_0_1 = require("../models/models_0");
11
+ const se_AddStorageSystemCommand = async (input, context) => {
12
+ const headers = sharedHeaders("AddStorageSystem");
13
+ let body;
14
+ body = JSON.stringify(se_AddStorageSystemRequest(input, context));
15
+ let { hostname: resolvedHostname } = await context.endpoint();
16
+ if (context.disableHostPrefix !== true) {
17
+ resolvedHostname = "discovery-" + resolvedHostname;
18
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
19
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
20
+ }
21
+ }
22
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
23
+ };
24
+ exports.se_AddStorageSystemCommand = se_AddStorageSystemCommand;
9
25
  const se_CancelTaskExecutionCommand = async (input, context) => {
10
26
  const headers = sharedHeaders("CancelTaskExecution");
11
27
  let body;
@@ -125,6 +141,20 @@ const se_DescribeAgentCommand = async (input, context) => {
125
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
142
  };
127
143
  exports.se_DescribeAgentCommand = se_DescribeAgentCommand;
144
+ const se_DescribeDiscoveryJobCommand = async (input, context) => {
145
+ const headers = sharedHeaders("DescribeDiscoveryJob");
146
+ let body;
147
+ body = JSON.stringify((0, smithy_client_1._json)(input));
148
+ let { hostname: resolvedHostname } = await context.endpoint();
149
+ if (context.disableHostPrefix !== true) {
150
+ resolvedHostname = "discovery-" + resolvedHostname;
151
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
152
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
153
+ }
154
+ }
155
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
156
+ };
157
+ exports.se_DescribeDiscoveryJobCommand = se_DescribeDiscoveryJobCommand;
128
158
  const se_DescribeLocationEfsCommand = async (input, context) => {
129
159
  const headers = sharedHeaders("DescribeLocationEfs");
130
160
  let body;
@@ -195,6 +225,48 @@ const se_DescribeLocationSmbCommand = async (input, context) => {
195
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
226
  };
197
227
  exports.se_DescribeLocationSmbCommand = se_DescribeLocationSmbCommand;
228
+ const se_DescribeStorageSystemCommand = async (input, context) => {
229
+ const headers = sharedHeaders("DescribeStorageSystem");
230
+ let body;
231
+ body = JSON.stringify((0, smithy_client_1._json)(input));
232
+ let { hostname: resolvedHostname } = await context.endpoint();
233
+ if (context.disableHostPrefix !== true) {
234
+ resolvedHostname = "discovery-" + resolvedHostname;
235
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
236
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
237
+ }
238
+ }
239
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
240
+ };
241
+ exports.se_DescribeStorageSystemCommand = se_DescribeStorageSystemCommand;
242
+ const se_DescribeStorageSystemResourceMetricsCommand = async (input, context) => {
243
+ const headers = sharedHeaders("DescribeStorageSystemResourceMetrics");
244
+ let body;
245
+ body = JSON.stringify(se_DescribeStorageSystemResourceMetricsRequest(input, context));
246
+ let { hostname: resolvedHostname } = await context.endpoint();
247
+ if (context.disableHostPrefix !== true) {
248
+ resolvedHostname = "discovery-" + resolvedHostname;
249
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
250
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
251
+ }
252
+ }
253
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
254
+ };
255
+ exports.se_DescribeStorageSystemResourceMetricsCommand = se_DescribeStorageSystemResourceMetricsCommand;
256
+ const se_DescribeStorageSystemResourcesCommand = async (input, context) => {
257
+ const headers = sharedHeaders("DescribeStorageSystemResources");
258
+ let body;
259
+ body = JSON.stringify((0, smithy_client_1._json)(input));
260
+ let { hostname: resolvedHostname } = await context.endpoint();
261
+ if (context.disableHostPrefix !== true) {
262
+ resolvedHostname = "discovery-" + resolvedHostname;
263
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
264
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
265
+ }
266
+ }
267
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
268
+ };
269
+ exports.se_DescribeStorageSystemResourcesCommand = se_DescribeStorageSystemResourcesCommand;
198
270
  const se_DescribeTaskCommand = async (input, context) => {
199
271
  const headers = sharedHeaders("DescribeTask");
200
272
  let body;
@@ -209,6 +281,20 @@ const se_DescribeTaskExecutionCommand = async (input, context) => {
209
281
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
282
  };
211
283
  exports.se_DescribeTaskExecutionCommand = se_DescribeTaskExecutionCommand;
284
+ const se_GenerateRecommendationsCommand = async (input, context) => {
285
+ const headers = sharedHeaders("GenerateRecommendations");
286
+ let body;
287
+ body = JSON.stringify((0, smithy_client_1._json)(input));
288
+ let { hostname: resolvedHostname } = await context.endpoint();
289
+ if (context.disableHostPrefix !== true) {
290
+ resolvedHostname = "discovery-" + resolvedHostname;
291
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
292
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
293
+ }
294
+ }
295
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
296
+ };
297
+ exports.se_GenerateRecommendationsCommand = se_GenerateRecommendationsCommand;
212
298
  const se_ListAgentsCommand = async (input, context) => {
213
299
  const headers = sharedHeaders("ListAgents");
214
300
  let body;
@@ -216,6 +302,20 @@ const se_ListAgentsCommand = async (input, context) => {
216
302
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
217
303
  };
218
304
  exports.se_ListAgentsCommand = se_ListAgentsCommand;
305
+ const se_ListDiscoveryJobsCommand = async (input, context) => {
306
+ const headers = sharedHeaders("ListDiscoveryJobs");
307
+ let body;
308
+ body = JSON.stringify((0, smithy_client_1._json)(input));
309
+ let { hostname: resolvedHostname } = await context.endpoint();
310
+ if (context.disableHostPrefix !== true) {
311
+ resolvedHostname = "discovery-" + resolvedHostname;
312
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
313
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
314
+ }
315
+ }
316
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
317
+ };
318
+ exports.se_ListDiscoveryJobsCommand = se_ListDiscoveryJobsCommand;
219
319
  const se_ListLocationsCommand = async (input, context) => {
220
320
  const headers = sharedHeaders("ListLocations");
221
321
  let body;
@@ -223,6 +323,20 @@ const se_ListLocationsCommand = async (input, context) => {
223
323
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
224
324
  };
225
325
  exports.se_ListLocationsCommand = se_ListLocationsCommand;
326
+ const se_ListStorageSystemsCommand = async (input, context) => {
327
+ const headers = sharedHeaders("ListStorageSystems");
328
+ let body;
329
+ body = JSON.stringify((0, smithy_client_1._json)(input));
330
+ let { hostname: resolvedHostname } = await context.endpoint();
331
+ if (context.disableHostPrefix !== true) {
332
+ resolvedHostname = "discovery-" + resolvedHostname;
333
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
334
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
335
+ }
336
+ }
337
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
338
+ };
339
+ exports.se_ListStorageSystemsCommand = se_ListStorageSystemsCommand;
226
340
  const se_ListTagsForResourceCommand = async (input, context) => {
227
341
  const headers = sharedHeaders("ListTagsForResource");
228
342
  let body;
@@ -244,6 +358,34 @@ const se_ListTasksCommand = async (input, context) => {
244
358
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
359
  };
246
360
  exports.se_ListTasksCommand = se_ListTasksCommand;
361
+ const se_RemoveStorageSystemCommand = async (input, context) => {
362
+ const headers = sharedHeaders("RemoveStorageSystem");
363
+ let body;
364
+ body = JSON.stringify((0, smithy_client_1._json)(input));
365
+ let { hostname: resolvedHostname } = await context.endpoint();
366
+ if (context.disableHostPrefix !== true) {
367
+ resolvedHostname = "discovery-" + resolvedHostname;
368
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
369
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
370
+ }
371
+ }
372
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
373
+ };
374
+ exports.se_RemoveStorageSystemCommand = se_RemoveStorageSystemCommand;
375
+ const se_StartDiscoveryJobCommand = async (input, context) => {
376
+ const headers = sharedHeaders("StartDiscoveryJob");
377
+ let body;
378
+ body = JSON.stringify(se_StartDiscoveryJobRequest(input, context));
379
+ let { hostname: resolvedHostname } = await context.endpoint();
380
+ if (context.disableHostPrefix !== true) {
381
+ resolvedHostname = "discovery-" + resolvedHostname;
382
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
383
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
384
+ }
385
+ }
386
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
387
+ };
388
+ exports.se_StartDiscoveryJobCommand = se_StartDiscoveryJobCommand;
247
389
  const se_StartTaskExecutionCommand = async (input, context) => {
248
390
  const headers = sharedHeaders("StartTaskExecution");
249
391
  let body;
@@ -251,6 +393,20 @@ const se_StartTaskExecutionCommand = async (input, context) => {
251
393
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
394
  };
253
395
  exports.se_StartTaskExecutionCommand = se_StartTaskExecutionCommand;
396
+ const se_StopDiscoveryJobCommand = async (input, context) => {
397
+ const headers = sharedHeaders("StopDiscoveryJob");
398
+ let body;
399
+ body = JSON.stringify((0, smithy_client_1._json)(input));
400
+ let { hostname: resolvedHostname } = await context.endpoint();
401
+ if (context.disableHostPrefix !== true) {
402
+ resolvedHostname = "discovery-" + resolvedHostname;
403
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
404
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
405
+ }
406
+ }
407
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
408
+ };
409
+ exports.se_StopDiscoveryJobCommand = se_StopDiscoveryJobCommand;
254
410
  const se_TagResourceCommand = async (input, context) => {
255
411
  const headers = sharedHeaders("TagResource");
256
412
  let body;
@@ -272,6 +428,20 @@ const se_UpdateAgentCommand = async (input, context) => {
272
428
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
273
429
  };
274
430
  exports.se_UpdateAgentCommand = se_UpdateAgentCommand;
431
+ const se_UpdateDiscoveryJobCommand = async (input, context) => {
432
+ const headers = sharedHeaders("UpdateDiscoveryJob");
433
+ let body;
434
+ body = JSON.stringify((0, smithy_client_1._json)(input));
435
+ let { hostname: resolvedHostname } = await context.endpoint();
436
+ if (context.disableHostPrefix !== true) {
437
+ resolvedHostname = "discovery-" + resolvedHostname;
438
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
439
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
440
+ }
441
+ }
442
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
443
+ };
444
+ exports.se_UpdateDiscoveryJobCommand = se_UpdateDiscoveryJobCommand;
275
445
  const se_UpdateLocationHdfsCommand = async (input, context) => {
276
446
  const headers = sharedHeaders("UpdateLocationHdfs");
277
447
  let body;
@@ -300,6 +470,20 @@ const se_UpdateLocationSmbCommand = async (input, context) => {
300
470
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
471
  };
302
472
  exports.se_UpdateLocationSmbCommand = se_UpdateLocationSmbCommand;
473
+ const se_UpdateStorageSystemCommand = async (input, context) => {
474
+ const headers = sharedHeaders("UpdateStorageSystem");
475
+ let body;
476
+ body = JSON.stringify((0, smithy_client_1._json)(input));
477
+ let { hostname: resolvedHostname } = await context.endpoint();
478
+ if (context.disableHostPrefix !== true) {
479
+ resolvedHostname = "discovery-" + resolvedHostname;
480
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
481
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
482
+ }
483
+ }
484
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
485
+ };
486
+ exports.se_UpdateStorageSystemCommand = se_UpdateStorageSystemCommand;
303
487
  const se_UpdateTaskCommand = async (input, context) => {
304
488
  const headers = sharedHeaders("UpdateTask");
305
489
  let body;
@@ -314,6 +498,42 @@ const se_UpdateTaskExecutionCommand = async (input, context) => {
314
498
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
315
499
  };
316
500
  exports.se_UpdateTaskExecutionCommand = se_UpdateTaskExecutionCommand;
501
+ const de_AddStorageSystemCommand = async (output, context) => {
502
+ if (output.statusCode >= 300) {
503
+ return de_AddStorageSystemCommandError(output, context);
504
+ }
505
+ const data = await parseBody(output.body, context);
506
+ let contents = {};
507
+ contents = (0, smithy_client_1._json)(data);
508
+ const response = {
509
+ $metadata: deserializeMetadata(output),
510
+ ...contents,
511
+ };
512
+ return response;
513
+ };
514
+ exports.de_AddStorageSystemCommand = de_AddStorageSystemCommand;
515
+ const de_AddStorageSystemCommandError = async (output, context) => {
516
+ const parsedOutput = {
517
+ ...output,
518
+ body: await parseErrorBody(output.body, context),
519
+ };
520
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
521
+ switch (errorCode) {
522
+ case "InternalException":
523
+ case "com.amazonaws.datasync#InternalException":
524
+ throw await de_InternalExceptionRes(parsedOutput, context);
525
+ case "InvalidRequestException":
526
+ case "com.amazonaws.datasync#InvalidRequestException":
527
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
528
+ default:
529
+ const parsedBody = parsedOutput.body;
530
+ return throwDefaultError({
531
+ output,
532
+ parsedBody,
533
+ errorCode,
534
+ });
535
+ }
536
+ };
317
537
  const de_CancelTaskExecutionCommand = async (output, context) => {
318
538
  if (output.statusCode >= 300) {
319
539
  return de_CancelTaskExecutionCommandError(output, context);
@@ -926,6 +1146,42 @@ const de_DescribeAgentCommandError = async (output, context) => {
926
1146
  });
927
1147
  }
928
1148
  };
1149
+ const de_DescribeDiscoveryJobCommand = async (output, context) => {
1150
+ if (output.statusCode >= 300) {
1151
+ return de_DescribeDiscoveryJobCommandError(output, context);
1152
+ }
1153
+ const data = await parseBody(output.body, context);
1154
+ let contents = {};
1155
+ contents = de_DescribeDiscoveryJobResponse(data, context);
1156
+ const response = {
1157
+ $metadata: deserializeMetadata(output),
1158
+ ...contents,
1159
+ };
1160
+ return response;
1161
+ };
1162
+ exports.de_DescribeDiscoveryJobCommand = de_DescribeDiscoveryJobCommand;
1163
+ const de_DescribeDiscoveryJobCommandError = async (output, context) => {
1164
+ const parsedOutput = {
1165
+ ...output,
1166
+ body: await parseErrorBody(output.body, context),
1167
+ };
1168
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1169
+ switch (errorCode) {
1170
+ case "InternalException":
1171
+ case "com.amazonaws.datasync#InternalException":
1172
+ throw await de_InternalExceptionRes(parsedOutput, context);
1173
+ case "InvalidRequestException":
1174
+ case "com.amazonaws.datasync#InvalidRequestException":
1175
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1176
+ default:
1177
+ const parsedBody = parsedOutput.body;
1178
+ return throwDefaultError({
1179
+ output,
1180
+ parsedBody,
1181
+ errorCode,
1182
+ });
1183
+ }
1184
+ };
929
1185
  const de_DescribeLocationEfsCommand = async (output, context) => {
930
1186
  if (output.statusCode >= 300) {
931
1187
  return de_DescribeLocationEfsCommandError(output, context);
@@ -1286,21 +1542,21 @@ const de_DescribeLocationSmbCommandError = async (output, context) => {
1286
1542
  });
1287
1543
  }
1288
1544
  };
1289
- const de_DescribeTaskCommand = async (output, context) => {
1545
+ const de_DescribeStorageSystemCommand = async (output, context) => {
1290
1546
  if (output.statusCode >= 300) {
1291
- return de_DescribeTaskCommandError(output, context);
1547
+ return de_DescribeStorageSystemCommandError(output, context);
1292
1548
  }
1293
1549
  const data = await parseBody(output.body, context);
1294
1550
  let contents = {};
1295
- contents = de_DescribeTaskResponse(data, context);
1551
+ contents = de_DescribeStorageSystemResponse(data, context);
1296
1552
  const response = {
1297
1553
  $metadata: deserializeMetadata(output),
1298
1554
  ...contents,
1299
1555
  };
1300
1556
  return response;
1301
1557
  };
1302
- exports.de_DescribeTaskCommand = de_DescribeTaskCommand;
1303
- const de_DescribeTaskCommandError = async (output, context) => {
1558
+ exports.de_DescribeStorageSystemCommand = de_DescribeStorageSystemCommand;
1559
+ const de_DescribeStorageSystemCommandError = async (output, context) => {
1304
1560
  const parsedOutput = {
1305
1561
  ...output,
1306
1562
  body: await parseErrorBody(output.body, context),
@@ -1322,21 +1578,21 @@ const de_DescribeTaskCommandError = async (output, context) => {
1322
1578
  });
1323
1579
  }
1324
1580
  };
1325
- const de_DescribeTaskExecutionCommand = async (output, context) => {
1581
+ const de_DescribeStorageSystemResourceMetricsCommand = async (output, context) => {
1326
1582
  if (output.statusCode >= 300) {
1327
- return de_DescribeTaskExecutionCommandError(output, context);
1583
+ return de_DescribeStorageSystemResourceMetricsCommandError(output, context);
1328
1584
  }
1329
1585
  const data = await parseBody(output.body, context);
1330
1586
  let contents = {};
1331
- contents = de_DescribeTaskExecutionResponse(data, context);
1587
+ contents = de_DescribeStorageSystemResourceMetricsResponse(data, context);
1332
1588
  const response = {
1333
1589
  $metadata: deserializeMetadata(output),
1334
1590
  ...contents,
1335
1591
  };
1336
1592
  return response;
1337
1593
  };
1338
- exports.de_DescribeTaskExecutionCommand = de_DescribeTaskExecutionCommand;
1339
- const de_DescribeTaskExecutionCommandError = async (output, context) => {
1594
+ exports.de_DescribeStorageSystemResourceMetricsCommand = de_DescribeStorageSystemResourceMetricsCommand;
1595
+ const de_DescribeStorageSystemResourceMetricsCommandError = async (output, context) => {
1340
1596
  const parsedOutput = {
1341
1597
  ...output,
1342
1598
  body: await parseErrorBody(output.body, context),
@@ -1358,21 +1614,21 @@ const de_DescribeTaskExecutionCommandError = async (output, context) => {
1358
1614
  });
1359
1615
  }
1360
1616
  };
1361
- const de_ListAgentsCommand = async (output, context) => {
1617
+ const de_DescribeStorageSystemResourcesCommand = async (output, context) => {
1362
1618
  if (output.statusCode >= 300) {
1363
- return de_ListAgentsCommandError(output, context);
1619
+ return de_DescribeStorageSystemResourcesCommandError(output, context);
1364
1620
  }
1365
1621
  const data = await parseBody(output.body, context);
1366
1622
  let contents = {};
1367
- contents = (0, smithy_client_1._json)(data);
1623
+ contents = de_DescribeStorageSystemResourcesResponse(data, context);
1368
1624
  const response = {
1369
1625
  $metadata: deserializeMetadata(output),
1370
1626
  ...contents,
1371
1627
  };
1372
1628
  return response;
1373
1629
  };
1374
- exports.de_ListAgentsCommand = de_ListAgentsCommand;
1375
- const de_ListAgentsCommandError = async (output, context) => {
1630
+ exports.de_DescribeStorageSystemResourcesCommand = de_DescribeStorageSystemResourcesCommand;
1631
+ const de_DescribeStorageSystemResourcesCommandError = async (output, context) => {
1376
1632
  const parsedOutput = {
1377
1633
  ...output,
1378
1634
  body: await parseErrorBody(output.body, context),
@@ -1394,21 +1650,21 @@ const de_ListAgentsCommandError = async (output, context) => {
1394
1650
  });
1395
1651
  }
1396
1652
  };
1397
- const de_ListLocationsCommand = async (output, context) => {
1653
+ const de_DescribeTaskCommand = async (output, context) => {
1398
1654
  if (output.statusCode >= 300) {
1399
- return de_ListLocationsCommandError(output, context);
1655
+ return de_DescribeTaskCommandError(output, context);
1400
1656
  }
1401
1657
  const data = await parseBody(output.body, context);
1402
1658
  let contents = {};
1403
- contents = (0, smithy_client_1._json)(data);
1659
+ contents = de_DescribeTaskResponse(data, context);
1404
1660
  const response = {
1405
1661
  $metadata: deserializeMetadata(output),
1406
1662
  ...contents,
1407
1663
  };
1408
1664
  return response;
1409
1665
  };
1410
- exports.de_ListLocationsCommand = de_ListLocationsCommand;
1411
- const de_ListLocationsCommandError = async (output, context) => {
1666
+ exports.de_DescribeTaskCommand = de_DescribeTaskCommand;
1667
+ const de_DescribeTaskCommandError = async (output, context) => {
1412
1668
  const parsedOutput = {
1413
1669
  ...output,
1414
1670
  body: await parseErrorBody(output.body, context),
@@ -1430,21 +1686,21 @@ const de_ListLocationsCommandError = async (output, context) => {
1430
1686
  });
1431
1687
  }
1432
1688
  };
1433
- const de_ListTagsForResourceCommand = async (output, context) => {
1689
+ const de_DescribeTaskExecutionCommand = async (output, context) => {
1434
1690
  if (output.statusCode >= 300) {
1435
- return de_ListTagsForResourceCommandError(output, context);
1691
+ return de_DescribeTaskExecutionCommandError(output, context);
1436
1692
  }
1437
1693
  const data = await parseBody(output.body, context);
1438
1694
  let contents = {};
1439
- contents = (0, smithy_client_1._json)(data);
1695
+ contents = de_DescribeTaskExecutionResponse(data, context);
1440
1696
  const response = {
1441
1697
  $metadata: deserializeMetadata(output),
1442
1698
  ...contents,
1443
1699
  };
1444
1700
  return response;
1445
1701
  };
1446
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1447
- const de_ListTagsForResourceCommandError = async (output, context) => {
1702
+ exports.de_DescribeTaskExecutionCommand = de_DescribeTaskExecutionCommand;
1703
+ const de_DescribeTaskExecutionCommandError = async (output, context) => {
1448
1704
  const parsedOutput = {
1449
1705
  ...output,
1450
1706
  body: await parseErrorBody(output.body, context),
@@ -1466,9 +1722,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1466
1722
  });
1467
1723
  }
1468
1724
  };
1469
- const de_ListTaskExecutionsCommand = async (output, context) => {
1725
+ const de_GenerateRecommendationsCommand = async (output, context) => {
1470
1726
  if (output.statusCode >= 300) {
1471
- return de_ListTaskExecutionsCommandError(output, context);
1727
+ return de_GenerateRecommendationsCommandError(output, context);
1472
1728
  }
1473
1729
  const data = await parseBody(output.body, context);
1474
1730
  let contents = {};
@@ -1479,8 +1735,8 @@ const de_ListTaskExecutionsCommand = async (output, context) => {
1479
1735
  };
1480
1736
  return response;
1481
1737
  };
1482
- exports.de_ListTaskExecutionsCommand = de_ListTaskExecutionsCommand;
1483
- const de_ListTaskExecutionsCommandError = async (output, context) => {
1738
+ exports.de_GenerateRecommendationsCommand = de_GenerateRecommendationsCommand;
1739
+ const de_GenerateRecommendationsCommandError = async (output, context) => {
1484
1740
  const parsedOutput = {
1485
1741
  ...output,
1486
1742
  body: await parseErrorBody(output.body, context),
@@ -1502,9 +1758,9 @@ const de_ListTaskExecutionsCommandError = async (output, context) => {
1502
1758
  });
1503
1759
  }
1504
1760
  };
1505
- const de_ListTasksCommand = async (output, context) => {
1761
+ const de_ListAgentsCommand = async (output, context) => {
1506
1762
  if (output.statusCode >= 300) {
1507
- return de_ListTasksCommandError(output, context);
1763
+ return de_ListAgentsCommandError(output, context);
1508
1764
  }
1509
1765
  const data = await parseBody(output.body, context);
1510
1766
  let contents = {};
@@ -1515,8 +1771,8 @@ const de_ListTasksCommand = async (output, context) => {
1515
1771
  };
1516
1772
  return response;
1517
1773
  };
1518
- exports.de_ListTasksCommand = de_ListTasksCommand;
1519
- const de_ListTasksCommandError = async (output, context) => {
1774
+ exports.de_ListAgentsCommand = de_ListAgentsCommand;
1775
+ const de_ListAgentsCommandError = async (output, context) => {
1520
1776
  const parsedOutput = {
1521
1777
  ...output,
1522
1778
  body: await parseErrorBody(output.body, context),
@@ -1538,9 +1794,9 @@ const de_ListTasksCommandError = async (output, context) => {
1538
1794
  });
1539
1795
  }
1540
1796
  };
1541
- const de_StartTaskExecutionCommand = async (output, context) => {
1797
+ const de_ListDiscoveryJobsCommand = async (output, context) => {
1542
1798
  if (output.statusCode >= 300) {
1543
- return de_StartTaskExecutionCommandError(output, context);
1799
+ return de_ListDiscoveryJobsCommandError(output, context);
1544
1800
  }
1545
1801
  const data = await parseBody(output.body, context);
1546
1802
  let contents = {};
@@ -1551,8 +1807,8 @@ const de_StartTaskExecutionCommand = async (output, context) => {
1551
1807
  };
1552
1808
  return response;
1553
1809
  };
1554
- exports.de_StartTaskExecutionCommand = de_StartTaskExecutionCommand;
1555
- const de_StartTaskExecutionCommandError = async (output, context) => {
1810
+ exports.de_ListDiscoveryJobsCommand = de_ListDiscoveryJobsCommand;
1811
+ const de_ListDiscoveryJobsCommandError = async (output, context) => {
1556
1812
  const parsedOutput = {
1557
1813
  ...output,
1558
1814
  body: await parseErrorBody(output.body, context),
@@ -1574,9 +1830,9 @@ const de_StartTaskExecutionCommandError = async (output, context) => {
1574
1830
  });
1575
1831
  }
1576
1832
  };
1577
- const de_TagResourceCommand = async (output, context) => {
1833
+ const de_ListLocationsCommand = async (output, context) => {
1578
1834
  if (output.statusCode >= 300) {
1579
- return de_TagResourceCommandError(output, context);
1835
+ return de_ListLocationsCommandError(output, context);
1580
1836
  }
1581
1837
  const data = await parseBody(output.body, context);
1582
1838
  let contents = {};
@@ -1587,8 +1843,8 @@ const de_TagResourceCommand = async (output, context) => {
1587
1843
  };
1588
1844
  return response;
1589
1845
  };
1590
- exports.de_TagResourceCommand = de_TagResourceCommand;
1591
- const de_TagResourceCommandError = async (output, context) => {
1846
+ exports.de_ListLocationsCommand = de_ListLocationsCommand;
1847
+ const de_ListLocationsCommandError = async (output, context) => {
1592
1848
  const parsedOutput = {
1593
1849
  ...output,
1594
1850
  body: await parseErrorBody(output.body, context),
@@ -1610,9 +1866,9 @@ const de_TagResourceCommandError = async (output, context) => {
1610
1866
  });
1611
1867
  }
1612
1868
  };
1613
- const de_UntagResourceCommand = async (output, context) => {
1869
+ const de_ListStorageSystemsCommand = async (output, context) => {
1614
1870
  if (output.statusCode >= 300) {
1615
- return de_UntagResourceCommandError(output, context);
1871
+ return de_ListStorageSystemsCommandError(output, context);
1616
1872
  }
1617
1873
  const data = await parseBody(output.body, context);
1618
1874
  let contents = {};
@@ -1623,8 +1879,8 @@ const de_UntagResourceCommand = async (output, context) => {
1623
1879
  };
1624
1880
  return response;
1625
1881
  };
1626
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
1627
- const de_UntagResourceCommandError = async (output, context) => {
1882
+ exports.de_ListStorageSystemsCommand = de_ListStorageSystemsCommand;
1883
+ const de_ListStorageSystemsCommandError = async (output, context) => {
1628
1884
  const parsedOutput = {
1629
1885
  ...output,
1630
1886
  body: await parseErrorBody(output.body, context),
@@ -1646,9 +1902,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1646
1902
  });
1647
1903
  }
1648
1904
  };
1649
- const de_UpdateAgentCommand = async (output, context) => {
1905
+ const de_ListTagsForResourceCommand = async (output, context) => {
1650
1906
  if (output.statusCode >= 300) {
1651
- return de_UpdateAgentCommandError(output, context);
1907
+ return de_ListTagsForResourceCommandError(output, context);
1652
1908
  }
1653
1909
  const data = await parseBody(output.body, context);
1654
1910
  let contents = {};
@@ -1659,8 +1915,8 @@ const de_UpdateAgentCommand = async (output, context) => {
1659
1915
  };
1660
1916
  return response;
1661
1917
  };
1662
- exports.de_UpdateAgentCommand = de_UpdateAgentCommand;
1663
- const de_UpdateAgentCommandError = async (output, context) => {
1918
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1919
+ const de_ListTagsForResourceCommandError = async (output, context) => {
1664
1920
  const parsedOutput = {
1665
1921
  ...output,
1666
1922
  body: await parseErrorBody(output.body, context),
@@ -1682,9 +1938,9 @@ const de_UpdateAgentCommandError = async (output, context) => {
1682
1938
  });
1683
1939
  }
1684
1940
  };
1685
- const de_UpdateLocationHdfsCommand = async (output, context) => {
1941
+ const de_ListTaskExecutionsCommand = async (output, context) => {
1686
1942
  if (output.statusCode >= 300) {
1687
- return de_UpdateLocationHdfsCommandError(output, context);
1943
+ return de_ListTaskExecutionsCommandError(output, context);
1688
1944
  }
1689
1945
  const data = await parseBody(output.body, context);
1690
1946
  let contents = {};
@@ -1695,8 +1951,8 @@ const de_UpdateLocationHdfsCommand = async (output, context) => {
1695
1951
  };
1696
1952
  return response;
1697
1953
  };
1698
- exports.de_UpdateLocationHdfsCommand = de_UpdateLocationHdfsCommand;
1699
- const de_UpdateLocationHdfsCommandError = async (output, context) => {
1954
+ exports.de_ListTaskExecutionsCommand = de_ListTaskExecutionsCommand;
1955
+ const de_ListTaskExecutionsCommandError = async (output, context) => {
1700
1956
  const parsedOutput = {
1701
1957
  ...output,
1702
1958
  body: await parseErrorBody(output.body, context),
@@ -1718,9 +1974,9 @@ const de_UpdateLocationHdfsCommandError = async (output, context) => {
1718
1974
  });
1719
1975
  }
1720
1976
  };
1721
- const de_UpdateLocationNfsCommand = async (output, context) => {
1977
+ const de_ListTasksCommand = async (output, context) => {
1722
1978
  if (output.statusCode >= 300) {
1723
- return de_UpdateLocationNfsCommandError(output, context);
1979
+ return de_ListTasksCommandError(output, context);
1724
1980
  }
1725
1981
  const data = await parseBody(output.body, context);
1726
1982
  let contents = {};
@@ -1731,8 +1987,8 @@ const de_UpdateLocationNfsCommand = async (output, context) => {
1731
1987
  };
1732
1988
  return response;
1733
1989
  };
1734
- exports.de_UpdateLocationNfsCommand = de_UpdateLocationNfsCommand;
1735
- const de_UpdateLocationNfsCommandError = async (output, context) => {
1990
+ exports.de_ListTasksCommand = de_ListTasksCommand;
1991
+ const de_ListTasksCommandError = async (output, context) => {
1736
1992
  const parsedOutput = {
1737
1993
  ...output,
1738
1994
  body: await parseErrorBody(output.body, context),
@@ -1754,9 +2010,9 @@ const de_UpdateLocationNfsCommandError = async (output, context) => {
1754
2010
  });
1755
2011
  }
1756
2012
  };
1757
- const de_UpdateLocationObjectStorageCommand = async (output, context) => {
2013
+ const de_RemoveStorageSystemCommand = async (output, context) => {
1758
2014
  if (output.statusCode >= 300) {
1759
- return de_UpdateLocationObjectStorageCommandError(output, context);
2015
+ return de_RemoveStorageSystemCommandError(output, context);
1760
2016
  }
1761
2017
  const data = await parseBody(output.body, context);
1762
2018
  let contents = {};
@@ -1767,8 +2023,8 @@ const de_UpdateLocationObjectStorageCommand = async (output, context) => {
1767
2023
  };
1768
2024
  return response;
1769
2025
  };
1770
- exports.de_UpdateLocationObjectStorageCommand = de_UpdateLocationObjectStorageCommand;
1771
- const de_UpdateLocationObjectStorageCommandError = async (output, context) => {
2026
+ exports.de_RemoveStorageSystemCommand = de_RemoveStorageSystemCommand;
2027
+ const de_RemoveStorageSystemCommandError = async (output, context) => {
1772
2028
  const parsedOutput = {
1773
2029
  ...output,
1774
2030
  body: await parseErrorBody(output.body, context),
@@ -1790,9 +2046,9 @@ const de_UpdateLocationObjectStorageCommandError = async (output, context) => {
1790
2046
  });
1791
2047
  }
1792
2048
  };
1793
- const de_UpdateLocationSmbCommand = async (output, context) => {
2049
+ const de_StartDiscoveryJobCommand = async (output, context) => {
1794
2050
  if (output.statusCode >= 300) {
1795
- return de_UpdateLocationSmbCommandError(output, context);
2051
+ return de_StartDiscoveryJobCommandError(output, context);
1796
2052
  }
1797
2053
  const data = await parseBody(output.body, context);
1798
2054
  let contents = {};
@@ -1803,8 +2059,8 @@ const de_UpdateLocationSmbCommand = async (output, context) => {
1803
2059
  };
1804
2060
  return response;
1805
2061
  };
1806
- exports.de_UpdateLocationSmbCommand = de_UpdateLocationSmbCommand;
1807
- const de_UpdateLocationSmbCommandError = async (output, context) => {
2062
+ exports.de_StartDiscoveryJobCommand = de_StartDiscoveryJobCommand;
2063
+ const de_StartDiscoveryJobCommandError = async (output, context) => {
1808
2064
  const parsedOutput = {
1809
2065
  ...output,
1810
2066
  body: await parseErrorBody(output.body, context),
@@ -1826,9 +2082,9 @@ const de_UpdateLocationSmbCommandError = async (output, context) => {
1826
2082
  });
1827
2083
  }
1828
2084
  };
1829
- const de_UpdateTaskCommand = async (output, context) => {
2085
+ const de_StartTaskExecutionCommand = async (output, context) => {
1830
2086
  if (output.statusCode >= 300) {
1831
- return de_UpdateTaskCommandError(output, context);
2087
+ return de_StartTaskExecutionCommandError(output, context);
1832
2088
  }
1833
2089
  const data = await parseBody(output.body, context);
1834
2090
  let contents = {};
@@ -1839,8 +2095,8 @@ const de_UpdateTaskCommand = async (output, context) => {
1839
2095
  };
1840
2096
  return response;
1841
2097
  };
1842
- exports.de_UpdateTaskCommand = de_UpdateTaskCommand;
1843
- const de_UpdateTaskCommandError = async (output, context) => {
2098
+ exports.de_StartTaskExecutionCommand = de_StartTaskExecutionCommand;
2099
+ const de_StartTaskExecutionCommandError = async (output, context) => {
1844
2100
  const parsedOutput = {
1845
2101
  ...output,
1846
2102
  body: await parseErrorBody(output.body, context),
@@ -1862,9 +2118,9 @@ const de_UpdateTaskCommandError = async (output, context) => {
1862
2118
  });
1863
2119
  }
1864
2120
  };
1865
- const de_UpdateTaskExecutionCommand = async (output, context) => {
2121
+ const de_StopDiscoveryJobCommand = async (output, context) => {
1866
2122
  if (output.statusCode >= 300) {
1867
- return de_UpdateTaskExecutionCommandError(output, context);
2123
+ return de_StopDiscoveryJobCommandError(output, context);
1868
2124
  }
1869
2125
  const data = await parseBody(output.body, context);
1870
2126
  let contents = {};
@@ -1875,8 +2131,8 @@ const de_UpdateTaskExecutionCommand = async (output, context) => {
1875
2131
  };
1876
2132
  return response;
1877
2133
  };
1878
- exports.de_UpdateTaskExecutionCommand = de_UpdateTaskExecutionCommand;
1879
- const de_UpdateTaskExecutionCommandError = async (output, context) => {
2134
+ exports.de_StopDiscoveryJobCommand = de_StopDiscoveryJobCommand;
2135
+ const de_StopDiscoveryJobCommandError = async (output, context) => {
1880
2136
  const parsedOutput = {
1881
2137
  ...output,
1882
2138
  body: await parseErrorBody(output.body, context),
@@ -1898,24 +2154,432 @@ const de_UpdateTaskExecutionCommandError = async (output, context) => {
1898
2154
  });
1899
2155
  }
1900
2156
  };
1901
- const de_InternalExceptionRes = async (parsedOutput, context) => {
1902
- const body = parsedOutput.body;
1903
- const deserialized = (0, smithy_client_1._json)(body);
1904
- const exception = new models_0_1.InternalException({
1905
- $metadata: deserializeMetadata(parsedOutput),
1906
- ...deserialized,
1907
- });
1908
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2157
+ const de_TagResourceCommand = async (output, context) => {
2158
+ if (output.statusCode >= 300) {
2159
+ return de_TagResourceCommandError(output, context);
2160
+ }
2161
+ const data = await parseBody(output.body, context);
2162
+ let contents = {};
2163
+ contents = (0, smithy_client_1._json)(data);
2164
+ const response = {
2165
+ $metadata: deserializeMetadata(output),
2166
+ ...contents,
2167
+ };
2168
+ return response;
1909
2169
  };
1910
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1911
- const body = parsedOutput.body;
1912
- const deserialized = (0, smithy_client_1._json)(body);
1913
- const exception = new models_0_1.InvalidRequestException({
2170
+ exports.de_TagResourceCommand = de_TagResourceCommand;
2171
+ const de_TagResourceCommandError = async (output, context) => {
2172
+ const parsedOutput = {
2173
+ ...output,
2174
+ body: await parseErrorBody(output.body, context),
2175
+ };
2176
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2177
+ switch (errorCode) {
2178
+ case "InternalException":
2179
+ case "com.amazonaws.datasync#InternalException":
2180
+ throw await de_InternalExceptionRes(parsedOutput, context);
2181
+ case "InvalidRequestException":
2182
+ case "com.amazonaws.datasync#InvalidRequestException":
2183
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2184
+ default:
2185
+ const parsedBody = parsedOutput.body;
2186
+ return throwDefaultError({
2187
+ output,
2188
+ parsedBody,
2189
+ errorCode,
2190
+ });
2191
+ }
2192
+ };
2193
+ const de_UntagResourceCommand = async (output, context) => {
2194
+ if (output.statusCode >= 300) {
2195
+ return de_UntagResourceCommandError(output, context);
2196
+ }
2197
+ const data = await parseBody(output.body, context);
2198
+ let contents = {};
2199
+ contents = (0, smithy_client_1._json)(data);
2200
+ const response = {
2201
+ $metadata: deserializeMetadata(output),
2202
+ ...contents,
2203
+ };
2204
+ return response;
2205
+ };
2206
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
2207
+ const de_UntagResourceCommandError = async (output, context) => {
2208
+ const parsedOutput = {
2209
+ ...output,
2210
+ body: await parseErrorBody(output.body, context),
2211
+ };
2212
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2213
+ switch (errorCode) {
2214
+ case "InternalException":
2215
+ case "com.amazonaws.datasync#InternalException":
2216
+ throw await de_InternalExceptionRes(parsedOutput, context);
2217
+ case "InvalidRequestException":
2218
+ case "com.amazonaws.datasync#InvalidRequestException":
2219
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2220
+ default:
2221
+ const parsedBody = parsedOutput.body;
2222
+ return throwDefaultError({
2223
+ output,
2224
+ parsedBody,
2225
+ errorCode,
2226
+ });
2227
+ }
2228
+ };
2229
+ const de_UpdateAgentCommand = async (output, context) => {
2230
+ if (output.statusCode >= 300) {
2231
+ return de_UpdateAgentCommandError(output, context);
2232
+ }
2233
+ const data = await parseBody(output.body, context);
2234
+ let contents = {};
2235
+ contents = (0, smithy_client_1._json)(data);
2236
+ const response = {
2237
+ $metadata: deserializeMetadata(output),
2238
+ ...contents,
2239
+ };
2240
+ return response;
2241
+ };
2242
+ exports.de_UpdateAgentCommand = de_UpdateAgentCommand;
2243
+ const de_UpdateAgentCommandError = async (output, context) => {
2244
+ const parsedOutput = {
2245
+ ...output,
2246
+ body: await parseErrorBody(output.body, context),
2247
+ };
2248
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2249
+ switch (errorCode) {
2250
+ case "InternalException":
2251
+ case "com.amazonaws.datasync#InternalException":
2252
+ throw await de_InternalExceptionRes(parsedOutput, context);
2253
+ case "InvalidRequestException":
2254
+ case "com.amazonaws.datasync#InvalidRequestException":
2255
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2256
+ default:
2257
+ const parsedBody = parsedOutput.body;
2258
+ return throwDefaultError({
2259
+ output,
2260
+ parsedBody,
2261
+ errorCode,
2262
+ });
2263
+ }
2264
+ };
2265
+ const de_UpdateDiscoveryJobCommand = async (output, context) => {
2266
+ if (output.statusCode >= 300) {
2267
+ return de_UpdateDiscoveryJobCommandError(output, context);
2268
+ }
2269
+ const data = await parseBody(output.body, context);
2270
+ let contents = {};
2271
+ contents = (0, smithy_client_1._json)(data);
2272
+ const response = {
2273
+ $metadata: deserializeMetadata(output),
2274
+ ...contents,
2275
+ };
2276
+ return response;
2277
+ };
2278
+ exports.de_UpdateDiscoveryJobCommand = de_UpdateDiscoveryJobCommand;
2279
+ const de_UpdateDiscoveryJobCommandError = async (output, context) => {
2280
+ const parsedOutput = {
2281
+ ...output,
2282
+ body: await parseErrorBody(output.body, context),
2283
+ };
2284
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2285
+ switch (errorCode) {
2286
+ case "InternalException":
2287
+ case "com.amazonaws.datasync#InternalException":
2288
+ throw await de_InternalExceptionRes(parsedOutput, context);
2289
+ case "InvalidRequestException":
2290
+ case "com.amazonaws.datasync#InvalidRequestException":
2291
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2292
+ default:
2293
+ const parsedBody = parsedOutput.body;
2294
+ return throwDefaultError({
2295
+ output,
2296
+ parsedBody,
2297
+ errorCode,
2298
+ });
2299
+ }
2300
+ };
2301
+ const de_UpdateLocationHdfsCommand = async (output, context) => {
2302
+ if (output.statusCode >= 300) {
2303
+ return de_UpdateLocationHdfsCommandError(output, context);
2304
+ }
2305
+ const data = await parseBody(output.body, context);
2306
+ let contents = {};
2307
+ contents = (0, smithy_client_1._json)(data);
2308
+ const response = {
2309
+ $metadata: deserializeMetadata(output),
2310
+ ...contents,
2311
+ };
2312
+ return response;
2313
+ };
2314
+ exports.de_UpdateLocationHdfsCommand = de_UpdateLocationHdfsCommand;
2315
+ const de_UpdateLocationHdfsCommandError = async (output, context) => {
2316
+ const parsedOutput = {
2317
+ ...output,
2318
+ body: await parseErrorBody(output.body, context),
2319
+ };
2320
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2321
+ switch (errorCode) {
2322
+ case "InternalException":
2323
+ case "com.amazonaws.datasync#InternalException":
2324
+ throw await de_InternalExceptionRes(parsedOutput, context);
2325
+ case "InvalidRequestException":
2326
+ case "com.amazonaws.datasync#InvalidRequestException":
2327
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2328
+ default:
2329
+ const parsedBody = parsedOutput.body;
2330
+ return throwDefaultError({
2331
+ output,
2332
+ parsedBody,
2333
+ errorCode,
2334
+ });
2335
+ }
2336
+ };
2337
+ const de_UpdateLocationNfsCommand = async (output, context) => {
2338
+ if (output.statusCode >= 300) {
2339
+ return de_UpdateLocationNfsCommandError(output, context);
2340
+ }
2341
+ const data = await parseBody(output.body, context);
2342
+ let contents = {};
2343
+ contents = (0, smithy_client_1._json)(data);
2344
+ const response = {
2345
+ $metadata: deserializeMetadata(output),
2346
+ ...contents,
2347
+ };
2348
+ return response;
2349
+ };
2350
+ exports.de_UpdateLocationNfsCommand = de_UpdateLocationNfsCommand;
2351
+ const de_UpdateLocationNfsCommandError = async (output, context) => {
2352
+ const parsedOutput = {
2353
+ ...output,
2354
+ body: await parseErrorBody(output.body, context),
2355
+ };
2356
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2357
+ switch (errorCode) {
2358
+ case "InternalException":
2359
+ case "com.amazonaws.datasync#InternalException":
2360
+ throw await de_InternalExceptionRes(parsedOutput, context);
2361
+ case "InvalidRequestException":
2362
+ case "com.amazonaws.datasync#InvalidRequestException":
2363
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2364
+ default:
2365
+ const parsedBody = parsedOutput.body;
2366
+ return throwDefaultError({
2367
+ output,
2368
+ parsedBody,
2369
+ errorCode,
2370
+ });
2371
+ }
2372
+ };
2373
+ const de_UpdateLocationObjectStorageCommand = async (output, context) => {
2374
+ if (output.statusCode >= 300) {
2375
+ return de_UpdateLocationObjectStorageCommandError(output, context);
2376
+ }
2377
+ const data = await parseBody(output.body, context);
2378
+ let contents = {};
2379
+ contents = (0, smithy_client_1._json)(data);
2380
+ const response = {
2381
+ $metadata: deserializeMetadata(output),
2382
+ ...contents,
2383
+ };
2384
+ return response;
2385
+ };
2386
+ exports.de_UpdateLocationObjectStorageCommand = de_UpdateLocationObjectStorageCommand;
2387
+ const de_UpdateLocationObjectStorageCommandError = async (output, context) => {
2388
+ const parsedOutput = {
2389
+ ...output,
2390
+ body: await parseErrorBody(output.body, context),
2391
+ };
2392
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2393
+ switch (errorCode) {
2394
+ case "InternalException":
2395
+ case "com.amazonaws.datasync#InternalException":
2396
+ throw await de_InternalExceptionRes(parsedOutput, context);
2397
+ case "InvalidRequestException":
2398
+ case "com.amazonaws.datasync#InvalidRequestException":
2399
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2400
+ default:
2401
+ const parsedBody = parsedOutput.body;
2402
+ return throwDefaultError({
2403
+ output,
2404
+ parsedBody,
2405
+ errorCode,
2406
+ });
2407
+ }
2408
+ };
2409
+ const de_UpdateLocationSmbCommand = async (output, context) => {
2410
+ if (output.statusCode >= 300) {
2411
+ return de_UpdateLocationSmbCommandError(output, context);
2412
+ }
2413
+ const data = await parseBody(output.body, context);
2414
+ let contents = {};
2415
+ contents = (0, smithy_client_1._json)(data);
2416
+ const response = {
2417
+ $metadata: deserializeMetadata(output),
2418
+ ...contents,
2419
+ };
2420
+ return response;
2421
+ };
2422
+ exports.de_UpdateLocationSmbCommand = de_UpdateLocationSmbCommand;
2423
+ const de_UpdateLocationSmbCommandError = async (output, context) => {
2424
+ const parsedOutput = {
2425
+ ...output,
2426
+ body: await parseErrorBody(output.body, context),
2427
+ };
2428
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2429
+ switch (errorCode) {
2430
+ case "InternalException":
2431
+ case "com.amazonaws.datasync#InternalException":
2432
+ throw await de_InternalExceptionRes(parsedOutput, context);
2433
+ case "InvalidRequestException":
2434
+ case "com.amazonaws.datasync#InvalidRequestException":
2435
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2436
+ default:
2437
+ const parsedBody = parsedOutput.body;
2438
+ return throwDefaultError({
2439
+ output,
2440
+ parsedBody,
2441
+ errorCode,
2442
+ });
2443
+ }
2444
+ };
2445
+ const de_UpdateStorageSystemCommand = async (output, context) => {
2446
+ if (output.statusCode >= 300) {
2447
+ return de_UpdateStorageSystemCommandError(output, context);
2448
+ }
2449
+ const data = await parseBody(output.body, context);
2450
+ let contents = {};
2451
+ contents = (0, smithy_client_1._json)(data);
2452
+ const response = {
2453
+ $metadata: deserializeMetadata(output),
2454
+ ...contents,
2455
+ };
2456
+ return response;
2457
+ };
2458
+ exports.de_UpdateStorageSystemCommand = de_UpdateStorageSystemCommand;
2459
+ const de_UpdateStorageSystemCommandError = async (output, context) => {
2460
+ const parsedOutput = {
2461
+ ...output,
2462
+ body: await parseErrorBody(output.body, context),
2463
+ };
2464
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2465
+ switch (errorCode) {
2466
+ case "InternalException":
2467
+ case "com.amazonaws.datasync#InternalException":
2468
+ throw await de_InternalExceptionRes(parsedOutput, context);
2469
+ case "InvalidRequestException":
2470
+ case "com.amazonaws.datasync#InvalidRequestException":
2471
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2472
+ default:
2473
+ const parsedBody = parsedOutput.body;
2474
+ return throwDefaultError({
2475
+ output,
2476
+ parsedBody,
2477
+ errorCode,
2478
+ });
2479
+ }
2480
+ };
2481
+ const de_UpdateTaskCommand = async (output, context) => {
2482
+ if (output.statusCode >= 300) {
2483
+ return de_UpdateTaskCommandError(output, context);
2484
+ }
2485
+ const data = await parseBody(output.body, context);
2486
+ let contents = {};
2487
+ contents = (0, smithy_client_1._json)(data);
2488
+ const response = {
2489
+ $metadata: deserializeMetadata(output),
2490
+ ...contents,
2491
+ };
2492
+ return response;
2493
+ };
2494
+ exports.de_UpdateTaskCommand = de_UpdateTaskCommand;
2495
+ const de_UpdateTaskCommandError = async (output, context) => {
2496
+ const parsedOutput = {
2497
+ ...output,
2498
+ body: await parseErrorBody(output.body, context),
2499
+ };
2500
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2501
+ switch (errorCode) {
2502
+ case "InternalException":
2503
+ case "com.amazonaws.datasync#InternalException":
2504
+ throw await de_InternalExceptionRes(parsedOutput, context);
2505
+ case "InvalidRequestException":
2506
+ case "com.amazonaws.datasync#InvalidRequestException":
2507
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2508
+ default:
2509
+ const parsedBody = parsedOutput.body;
2510
+ return throwDefaultError({
2511
+ output,
2512
+ parsedBody,
2513
+ errorCode,
2514
+ });
2515
+ }
2516
+ };
2517
+ const de_UpdateTaskExecutionCommand = async (output, context) => {
2518
+ if (output.statusCode >= 300) {
2519
+ return de_UpdateTaskExecutionCommandError(output, context);
2520
+ }
2521
+ const data = await parseBody(output.body, context);
2522
+ let contents = {};
2523
+ contents = (0, smithy_client_1._json)(data);
2524
+ const response = {
2525
+ $metadata: deserializeMetadata(output),
2526
+ ...contents,
2527
+ };
2528
+ return response;
2529
+ };
2530
+ exports.de_UpdateTaskExecutionCommand = de_UpdateTaskExecutionCommand;
2531
+ const de_UpdateTaskExecutionCommandError = async (output, context) => {
2532
+ const parsedOutput = {
2533
+ ...output,
2534
+ body: await parseErrorBody(output.body, context),
2535
+ };
2536
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2537
+ switch (errorCode) {
2538
+ case "InternalException":
2539
+ case "com.amazonaws.datasync#InternalException":
2540
+ throw await de_InternalExceptionRes(parsedOutput, context);
2541
+ case "InvalidRequestException":
2542
+ case "com.amazonaws.datasync#InvalidRequestException":
2543
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2544
+ default:
2545
+ const parsedBody = parsedOutput.body;
2546
+ return throwDefaultError({
2547
+ output,
2548
+ parsedBody,
2549
+ errorCode,
2550
+ });
2551
+ }
2552
+ };
2553
+ const de_InternalExceptionRes = async (parsedOutput, context) => {
2554
+ const body = parsedOutput.body;
2555
+ const deserialized = (0, smithy_client_1._json)(body);
2556
+ const exception = new models_0_1.InternalException({
2557
+ $metadata: deserializeMetadata(parsedOutput),
2558
+ ...deserialized,
2559
+ });
2560
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2561
+ };
2562
+ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
2563
+ const body = parsedOutput.body;
2564
+ const deserialized = (0, smithy_client_1._json)(body);
2565
+ const exception = new models_0_1.InvalidRequestException({
1914
2566
  $metadata: deserializeMetadata(parsedOutput),
1915
2567
  ...deserialized,
1916
2568
  });
1917
2569
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1918
2570
  };
2571
+ const se_AddStorageSystemRequest = (input, context) => {
2572
+ return (0, smithy_client_1.take)(input, {
2573
+ AgentArns: smithy_client_1._json,
2574
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
2575
+ CloudWatchLogGroupArn: [],
2576
+ Credentials: smithy_client_1._json,
2577
+ Name: [],
2578
+ ServerConfiguration: smithy_client_1._json,
2579
+ SystemType: [],
2580
+ Tags: smithy_client_1._json,
2581
+ });
2582
+ };
1919
2583
  const se_CreateLocationHdfsRequest = (input, context) => {
1920
2584
  return (0, smithy_client_1.take)(input, {
1921
2585
  AgentArns: smithy_client_1._json,
@@ -1947,6 +2611,25 @@ const se_CreateLocationObjectStorageRequest = (input, context) => {
1947
2611
  Tags: smithy_client_1._json,
1948
2612
  });
1949
2613
  };
2614
+ const se_DescribeStorageSystemResourceMetricsRequest = (input, context) => {
2615
+ return (0, smithy_client_1.take)(input, {
2616
+ DiscoveryJobArn: [],
2617
+ EndTime: (_) => Math.round(_.getTime() / 1000),
2618
+ MaxResults: [],
2619
+ NextToken: [],
2620
+ ResourceId: [],
2621
+ ResourceType: [],
2622
+ StartTime: (_) => Math.round(_.getTime() / 1000),
2623
+ });
2624
+ };
2625
+ const se_StartDiscoveryJobRequest = (input, context) => {
2626
+ return (0, smithy_client_1.take)(input, {
2627
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
2628
+ CollectionDurationMinutes: [],
2629
+ StorageSystemArn: [],
2630
+ Tags: smithy_client_1._json,
2631
+ });
2632
+ };
1950
2633
  const se_UpdateLocationHdfsRequest = (input, context) => {
1951
2634
  return (0, smithy_client_1.take)(input, {
1952
2635
  AgentArns: smithy_client_1._json,
@@ -1987,6 +2670,16 @@ const de_DescribeAgentResponse = (output, context) => {
1987
2670
  Status: smithy_client_1.expectString,
1988
2671
  });
1989
2672
  };
2673
+ const de_DescribeDiscoveryJobResponse = (output, context) => {
2674
+ return (0, smithy_client_1.take)(output, {
2675
+ CollectionDurationMinutes: smithy_client_1.expectInt32,
2676
+ DiscoveryJobArn: smithy_client_1.expectString,
2677
+ JobEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2678
+ JobStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2679
+ Status: smithy_client_1.expectString,
2680
+ StorageSystemArn: smithy_client_1.expectString,
2681
+ });
2682
+ };
1990
2683
  const de_DescribeLocationEfsResponse = (output, context) => {
1991
2684
  return (0, smithy_client_1.take)(output, {
1992
2685
  AccessPointArn: smithy_client_1.expectString,
@@ -2094,6 +2787,32 @@ const de_DescribeLocationSmbResponse = (output, context) => {
2094
2787
  User: smithy_client_1.expectString,
2095
2788
  });
2096
2789
  };
2790
+ const de_DescribeStorageSystemResourceMetricsResponse = (output, context) => {
2791
+ return (0, smithy_client_1.take)(output, {
2792
+ Metrics: (_) => de_Metrics(_, context),
2793
+ NextToken: smithy_client_1.expectString,
2794
+ });
2795
+ };
2796
+ const de_DescribeStorageSystemResourcesResponse = (output, context) => {
2797
+ return (0, smithy_client_1.take)(output, {
2798
+ NextToken: smithy_client_1.expectString,
2799
+ ResourceDetails: (_) => de_ResourceDetails(_, context),
2800
+ });
2801
+ };
2802
+ const de_DescribeStorageSystemResponse = (output, context) => {
2803
+ return (0, smithy_client_1.take)(output, {
2804
+ AgentArns: smithy_client_1._json,
2805
+ CloudWatchLogGroupArn: smithy_client_1.expectString,
2806
+ ConnectivityStatus: smithy_client_1.expectString,
2807
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2808
+ ErrorMessage: smithy_client_1.expectString,
2809
+ Name: smithy_client_1.expectString,
2810
+ SecretsManagerArn: smithy_client_1.expectString,
2811
+ ServerConfiguration: smithy_client_1._json,
2812
+ StorageSystemArn: smithy_client_1.expectString,
2813
+ SystemType: smithy_client_1.expectString,
2814
+ });
2815
+ };
2097
2816
  const de_DescribeTaskExecutionResponse = (output, context) => {
2098
2817
  return (0, smithy_client_1.take)(output, {
2099
2818
  BytesCompressed: smithy_client_1.expectLong,
@@ -2131,6 +2850,148 @@ const de_DescribeTaskResponse = (output, context) => {
2131
2850
  TaskArn: smithy_client_1.expectString,
2132
2851
  });
2133
2852
  };
2853
+ const de_IOPS = (output, context) => {
2854
+ return (0, smithy_client_1.take)(output, {
2855
+ Other: smithy_client_1.limitedParseDouble,
2856
+ Read: smithy_client_1.limitedParseDouble,
2857
+ Total: smithy_client_1.limitedParseDouble,
2858
+ Write: smithy_client_1.limitedParseDouble,
2859
+ });
2860
+ };
2861
+ const de_Latency = (output, context) => {
2862
+ return (0, smithy_client_1.take)(output, {
2863
+ Other: smithy_client_1.limitedParseDouble,
2864
+ Read: smithy_client_1.limitedParseDouble,
2865
+ Write: smithy_client_1.limitedParseDouble,
2866
+ });
2867
+ };
2868
+ const de_MaxP95Performance = (output, context) => {
2869
+ return (0, smithy_client_1.take)(output, {
2870
+ IopsOther: smithy_client_1.limitedParseDouble,
2871
+ IopsRead: smithy_client_1.limitedParseDouble,
2872
+ IopsTotal: smithy_client_1.limitedParseDouble,
2873
+ IopsWrite: smithy_client_1.limitedParseDouble,
2874
+ LatencyOther: smithy_client_1.limitedParseDouble,
2875
+ LatencyRead: smithy_client_1.limitedParseDouble,
2876
+ LatencyWrite: smithy_client_1.limitedParseDouble,
2877
+ ThroughputOther: smithy_client_1.limitedParseDouble,
2878
+ ThroughputRead: smithy_client_1.limitedParseDouble,
2879
+ ThroughputTotal: smithy_client_1.limitedParseDouble,
2880
+ ThroughputWrite: smithy_client_1.limitedParseDouble,
2881
+ });
2882
+ };
2883
+ const de_Metrics = (output, context) => {
2884
+ const retVal = (output || [])
2885
+ .filter((e) => e != null)
2886
+ .map((entry) => {
2887
+ return de_ResourceMetrics(entry, context);
2888
+ });
2889
+ return retVal;
2890
+ };
2891
+ const de_NetAppONTAPCluster = (output, context) => {
2892
+ return (0, smithy_client_1.take)(output, {
2893
+ CifsShareCount: smithy_client_1.expectLong,
2894
+ ClusterBlockStorageLogicalUsed: smithy_client_1.expectLong,
2895
+ ClusterBlockStorageSize: smithy_client_1.expectLong,
2896
+ ClusterBlockStorageUsed: smithy_client_1.expectLong,
2897
+ ClusterName: smithy_client_1.expectString,
2898
+ MaxP95Performance: (_) => de_MaxP95Performance(_, context),
2899
+ NfsExportedVolumes: smithy_client_1.expectLong,
2900
+ RecommendationStatus: smithy_client_1.expectString,
2901
+ Recommendations: smithy_client_1._json,
2902
+ ResourceId: smithy_client_1.expectString,
2903
+ });
2904
+ };
2905
+ const de_NetAppONTAPClusters = (output, context) => {
2906
+ const retVal = (output || [])
2907
+ .filter((e) => e != null)
2908
+ .map((entry) => {
2909
+ return de_NetAppONTAPCluster(entry, context);
2910
+ });
2911
+ return retVal;
2912
+ };
2913
+ const de_NetAppONTAPSVM = (output, context) => {
2914
+ return (0, smithy_client_1.take)(output, {
2915
+ CifsShareCount: smithy_client_1.expectLong,
2916
+ ClusterUuid: smithy_client_1.expectString,
2917
+ EnabledProtocols: smithy_client_1._json,
2918
+ MaxP95Performance: (_) => de_MaxP95Performance(_, context),
2919
+ NfsExportedVolumes: smithy_client_1.expectLong,
2920
+ RecommendationStatus: smithy_client_1.expectString,
2921
+ Recommendations: smithy_client_1._json,
2922
+ ResourceId: smithy_client_1.expectString,
2923
+ SvmName: smithy_client_1.expectString,
2924
+ TotalCapacityProvisioned: smithy_client_1.expectLong,
2925
+ TotalCapacityUsed: smithy_client_1.expectLong,
2926
+ TotalLogicalCapacityUsed: smithy_client_1.expectLong,
2927
+ TotalSnapshotCapacityUsed: smithy_client_1.expectLong,
2928
+ });
2929
+ };
2930
+ const de_NetAppONTAPSVMs = (output, context) => {
2931
+ const retVal = (output || [])
2932
+ .filter((e) => e != null)
2933
+ .map((entry) => {
2934
+ return de_NetAppONTAPSVM(entry, context);
2935
+ });
2936
+ return retVal;
2937
+ };
2938
+ const de_NetAppONTAPVolume = (output, context) => {
2939
+ return (0, smithy_client_1.take)(output, {
2940
+ CapacityProvisioned: smithy_client_1.expectLong,
2941
+ CapacityUsed: smithy_client_1.expectLong,
2942
+ CifsShareCount: smithy_client_1.expectLong,
2943
+ LogicalCapacityUsed: smithy_client_1.expectLong,
2944
+ MaxP95Performance: (_) => de_MaxP95Performance(_, context),
2945
+ NfsExported: smithy_client_1.expectBoolean,
2946
+ RecommendationStatus: smithy_client_1.expectString,
2947
+ Recommendations: smithy_client_1._json,
2948
+ ResourceId: smithy_client_1.expectString,
2949
+ SecurityStyle: smithy_client_1.expectString,
2950
+ SnapshotCapacityUsed: smithy_client_1.expectLong,
2951
+ SvmName: smithy_client_1.expectString,
2952
+ SvmUuid: smithy_client_1.expectString,
2953
+ VolumeName: smithy_client_1.expectString,
2954
+ });
2955
+ };
2956
+ const de_NetAppONTAPVolumes = (output, context) => {
2957
+ const retVal = (output || [])
2958
+ .filter((e) => e != null)
2959
+ .map((entry) => {
2960
+ return de_NetAppONTAPVolume(entry, context);
2961
+ });
2962
+ return retVal;
2963
+ };
2964
+ const de_P95Metrics = (output, context) => {
2965
+ return (0, smithy_client_1.take)(output, {
2966
+ IOPS: (_) => de_IOPS(_, context),
2967
+ Latency: (_) => de_Latency(_, context),
2968
+ Throughput: (_) => de_Throughput(_, context),
2969
+ });
2970
+ };
2971
+ const de_ResourceDetails = (output, context) => {
2972
+ return (0, smithy_client_1.take)(output, {
2973
+ NetAppONTAPClusters: (_) => de_NetAppONTAPClusters(_, context),
2974
+ NetAppONTAPSVMs: (_) => de_NetAppONTAPSVMs(_, context),
2975
+ NetAppONTAPVolumes: (_) => de_NetAppONTAPVolumes(_, context),
2976
+ });
2977
+ };
2978
+ const de_ResourceMetrics = (output, context) => {
2979
+ return (0, smithy_client_1.take)(output, {
2980
+ Capacity: smithy_client_1._json,
2981
+ P95Metrics: (_) => de_P95Metrics(_, context),
2982
+ ResourceId: smithy_client_1.expectString,
2983
+ ResourceType: smithy_client_1.expectString,
2984
+ Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2985
+ });
2986
+ };
2987
+ const de_Throughput = (output, context) => {
2988
+ return (0, smithy_client_1.take)(output, {
2989
+ Other: smithy_client_1.limitedParseDouble,
2990
+ Read: smithy_client_1.limitedParseDouble,
2991
+ Total: smithy_client_1.limitedParseDouble,
2992
+ Write: smithy_client_1.limitedParseDouble,
2993
+ });
2994
+ };
2134
2995
  const deserializeMetadata = (output) => ({
2135
2996
  httpStatusCode: output.statusCode,
2136
2997
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],