@aws-sdk/client-datasync 3.316.0 → 3.320.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 (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 +8 -6
@@ -1,7 +1,21 @@
1
- import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
3
+ import { v4 as generateIdempotencyToken } from "uuid";
3
4
  import { DataSyncServiceException as __BaseException } from "../models/DataSyncServiceException";
4
5
  import { InternalException, InvalidRequestException, } from "../models/models_0";
6
+ export const se_AddStorageSystemCommand = async (input, context) => {
7
+ const headers = sharedHeaders("AddStorageSystem");
8
+ let body;
9
+ body = JSON.stringify(se_AddStorageSystemRequest(input, context));
10
+ let { hostname: resolvedHostname } = await context.endpoint();
11
+ if (context.disableHostPrefix !== true) {
12
+ resolvedHostname = "discovery-" + resolvedHostname;
13
+ if (!__isValidHostname(resolvedHostname)) {
14
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
15
+ }
16
+ }
17
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
18
+ };
5
19
  export const se_CancelTaskExecutionCommand = async (input, context) => {
6
20
  const headers = sharedHeaders("CancelTaskExecution");
7
21
  let body;
@@ -104,6 +118,19 @@ export const se_DescribeAgentCommand = async (input, context) => {
104
118
  body = JSON.stringify(_json(input));
105
119
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
120
  };
121
+ export const se_DescribeDiscoveryJobCommand = async (input, context) => {
122
+ const headers = sharedHeaders("DescribeDiscoveryJob");
123
+ let body;
124
+ body = JSON.stringify(_json(input));
125
+ let { hostname: resolvedHostname } = await context.endpoint();
126
+ if (context.disableHostPrefix !== true) {
127
+ resolvedHostname = "discovery-" + resolvedHostname;
128
+ if (!__isValidHostname(resolvedHostname)) {
129
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
130
+ }
131
+ }
132
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
133
+ };
107
134
  export const se_DescribeLocationEfsCommand = async (input, context) => {
108
135
  const headers = sharedHeaders("DescribeLocationEfs");
109
136
  let body;
@@ -164,6 +191,45 @@ export const se_DescribeLocationSmbCommand = async (input, context) => {
164
191
  body = JSON.stringify(_json(input));
165
192
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
193
  };
194
+ export const se_DescribeStorageSystemCommand = async (input, context) => {
195
+ const headers = sharedHeaders("DescribeStorageSystem");
196
+ let body;
197
+ body = JSON.stringify(_json(input));
198
+ let { hostname: resolvedHostname } = await context.endpoint();
199
+ if (context.disableHostPrefix !== true) {
200
+ resolvedHostname = "discovery-" + resolvedHostname;
201
+ if (!__isValidHostname(resolvedHostname)) {
202
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
203
+ }
204
+ }
205
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
206
+ };
207
+ export const se_DescribeStorageSystemResourceMetricsCommand = async (input, context) => {
208
+ const headers = sharedHeaders("DescribeStorageSystemResourceMetrics");
209
+ let body;
210
+ body = JSON.stringify(se_DescribeStorageSystemResourceMetricsRequest(input, context));
211
+ let { hostname: resolvedHostname } = await context.endpoint();
212
+ if (context.disableHostPrefix !== true) {
213
+ resolvedHostname = "discovery-" + resolvedHostname;
214
+ if (!__isValidHostname(resolvedHostname)) {
215
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
216
+ }
217
+ }
218
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
219
+ };
220
+ export const se_DescribeStorageSystemResourcesCommand = async (input, context) => {
221
+ const headers = sharedHeaders("DescribeStorageSystemResources");
222
+ let body;
223
+ body = JSON.stringify(_json(input));
224
+ let { hostname: resolvedHostname } = await context.endpoint();
225
+ if (context.disableHostPrefix !== true) {
226
+ resolvedHostname = "discovery-" + resolvedHostname;
227
+ if (!__isValidHostname(resolvedHostname)) {
228
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
229
+ }
230
+ }
231
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
232
+ };
167
233
  export const se_DescribeTaskCommand = async (input, context) => {
168
234
  const headers = sharedHeaders("DescribeTask");
169
235
  let body;
@@ -176,18 +242,57 @@ export const se_DescribeTaskExecutionCommand = async (input, context) => {
176
242
  body = JSON.stringify(_json(input));
177
243
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
178
244
  };
245
+ export const se_GenerateRecommendationsCommand = async (input, context) => {
246
+ const headers = sharedHeaders("GenerateRecommendations");
247
+ let body;
248
+ body = JSON.stringify(_json(input));
249
+ let { hostname: resolvedHostname } = await context.endpoint();
250
+ if (context.disableHostPrefix !== true) {
251
+ resolvedHostname = "discovery-" + resolvedHostname;
252
+ if (!__isValidHostname(resolvedHostname)) {
253
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
254
+ }
255
+ }
256
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
257
+ };
179
258
  export const se_ListAgentsCommand = async (input, context) => {
180
259
  const headers = sharedHeaders("ListAgents");
181
260
  let body;
182
261
  body = JSON.stringify(_json(input));
183
262
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
263
  };
264
+ export const se_ListDiscoveryJobsCommand = async (input, context) => {
265
+ const headers = sharedHeaders("ListDiscoveryJobs");
266
+ let body;
267
+ body = JSON.stringify(_json(input));
268
+ let { hostname: resolvedHostname } = await context.endpoint();
269
+ if (context.disableHostPrefix !== true) {
270
+ resolvedHostname = "discovery-" + resolvedHostname;
271
+ if (!__isValidHostname(resolvedHostname)) {
272
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
273
+ }
274
+ }
275
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
276
+ };
185
277
  export const se_ListLocationsCommand = async (input, context) => {
186
278
  const headers = sharedHeaders("ListLocations");
187
279
  let body;
188
280
  body = JSON.stringify(_json(input));
189
281
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
282
  };
283
+ export const se_ListStorageSystemsCommand = async (input, context) => {
284
+ const headers = sharedHeaders("ListStorageSystems");
285
+ let body;
286
+ body = JSON.stringify(_json(input));
287
+ let { hostname: resolvedHostname } = await context.endpoint();
288
+ if (context.disableHostPrefix !== true) {
289
+ resolvedHostname = "discovery-" + resolvedHostname;
290
+ if (!__isValidHostname(resolvedHostname)) {
291
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
292
+ }
293
+ }
294
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
295
+ };
191
296
  export const se_ListTagsForResourceCommand = async (input, context) => {
192
297
  const headers = sharedHeaders("ListTagsForResource");
193
298
  let body;
@@ -206,12 +311,51 @@ export const se_ListTasksCommand = async (input, context) => {
206
311
  body = JSON.stringify(_json(input));
207
312
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
208
313
  };
314
+ export const se_RemoveStorageSystemCommand = async (input, context) => {
315
+ const headers = sharedHeaders("RemoveStorageSystem");
316
+ let body;
317
+ body = JSON.stringify(_json(input));
318
+ let { hostname: resolvedHostname } = await context.endpoint();
319
+ if (context.disableHostPrefix !== true) {
320
+ resolvedHostname = "discovery-" + resolvedHostname;
321
+ if (!__isValidHostname(resolvedHostname)) {
322
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
323
+ }
324
+ }
325
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
326
+ };
327
+ export const se_StartDiscoveryJobCommand = async (input, context) => {
328
+ const headers = sharedHeaders("StartDiscoveryJob");
329
+ let body;
330
+ body = JSON.stringify(se_StartDiscoveryJobRequest(input, context));
331
+ let { hostname: resolvedHostname } = await context.endpoint();
332
+ if (context.disableHostPrefix !== true) {
333
+ resolvedHostname = "discovery-" + resolvedHostname;
334
+ if (!__isValidHostname(resolvedHostname)) {
335
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
336
+ }
337
+ }
338
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
339
+ };
209
340
  export const se_StartTaskExecutionCommand = async (input, context) => {
210
341
  const headers = sharedHeaders("StartTaskExecution");
211
342
  let body;
212
343
  body = JSON.stringify(_json(input));
213
344
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
214
345
  };
346
+ export const se_StopDiscoveryJobCommand = async (input, context) => {
347
+ const headers = sharedHeaders("StopDiscoveryJob");
348
+ let body;
349
+ body = JSON.stringify(_json(input));
350
+ let { hostname: resolvedHostname } = await context.endpoint();
351
+ if (context.disableHostPrefix !== true) {
352
+ resolvedHostname = "discovery-" + resolvedHostname;
353
+ if (!__isValidHostname(resolvedHostname)) {
354
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
355
+ }
356
+ }
357
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
358
+ };
215
359
  export const se_TagResourceCommand = async (input, context) => {
216
360
  const headers = sharedHeaders("TagResource");
217
361
  let body;
@@ -230,6 +374,19 @@ export const se_UpdateAgentCommand = async (input, context) => {
230
374
  body = JSON.stringify(_json(input));
231
375
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
376
  };
377
+ export const se_UpdateDiscoveryJobCommand = async (input, context) => {
378
+ const headers = sharedHeaders("UpdateDiscoveryJob");
379
+ let body;
380
+ body = JSON.stringify(_json(input));
381
+ let { hostname: resolvedHostname } = await context.endpoint();
382
+ if (context.disableHostPrefix !== true) {
383
+ resolvedHostname = "discovery-" + resolvedHostname;
384
+ if (!__isValidHostname(resolvedHostname)) {
385
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
386
+ }
387
+ }
388
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
389
+ };
233
390
  export const se_UpdateLocationHdfsCommand = async (input, context) => {
234
391
  const headers = sharedHeaders("UpdateLocationHdfs");
235
392
  let body;
@@ -254,6 +411,19 @@ export const se_UpdateLocationSmbCommand = async (input, context) => {
254
411
  body = JSON.stringify(_json(input));
255
412
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
413
  };
414
+ export const se_UpdateStorageSystemCommand = async (input, context) => {
415
+ const headers = sharedHeaders("UpdateStorageSystem");
416
+ let body;
417
+ body = JSON.stringify(_json(input));
418
+ let { hostname: resolvedHostname } = await context.endpoint();
419
+ if (context.disableHostPrefix !== true) {
420
+ resolvedHostname = "discovery-" + resolvedHostname;
421
+ if (!__isValidHostname(resolvedHostname)) {
422
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
423
+ }
424
+ }
425
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
426
+ };
257
427
  export const se_UpdateTaskCommand = async (input, context) => {
258
428
  const headers = sharedHeaders("UpdateTask");
259
429
  let body;
@@ -266,6 +436,41 @@ export const se_UpdateTaskExecutionCommand = async (input, context) => {
266
436
  body = JSON.stringify(_json(input));
267
437
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
268
438
  };
439
+ export const de_AddStorageSystemCommand = async (output, context) => {
440
+ if (output.statusCode >= 300) {
441
+ return de_AddStorageSystemCommandError(output, context);
442
+ }
443
+ const data = await parseBody(output.body, context);
444
+ let contents = {};
445
+ contents = _json(data);
446
+ const response = {
447
+ $metadata: deserializeMetadata(output),
448
+ ...contents,
449
+ };
450
+ return response;
451
+ };
452
+ const de_AddStorageSystemCommandError = async (output, context) => {
453
+ const parsedOutput = {
454
+ ...output,
455
+ body: await parseErrorBody(output.body, context),
456
+ };
457
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
458
+ switch (errorCode) {
459
+ case "InternalException":
460
+ case "com.amazonaws.datasync#InternalException":
461
+ throw await de_InternalExceptionRes(parsedOutput, context);
462
+ case "InvalidRequestException":
463
+ case "com.amazonaws.datasync#InvalidRequestException":
464
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
465
+ default:
466
+ const parsedBody = parsedOutput.body;
467
+ return throwDefaultError({
468
+ output,
469
+ parsedBody,
470
+ errorCode,
471
+ });
472
+ }
473
+ };
269
474
  export const de_CancelTaskExecutionCommand = async (output, context) => {
270
475
  if (output.statusCode >= 300) {
271
476
  return de_CancelTaskExecutionCommandError(output, context);
@@ -861,6 +1066,41 @@ const de_DescribeAgentCommandError = async (output, context) => {
861
1066
  });
862
1067
  }
863
1068
  };
1069
+ export const de_DescribeDiscoveryJobCommand = async (output, context) => {
1070
+ if (output.statusCode >= 300) {
1071
+ return de_DescribeDiscoveryJobCommandError(output, context);
1072
+ }
1073
+ const data = await parseBody(output.body, context);
1074
+ let contents = {};
1075
+ contents = de_DescribeDiscoveryJobResponse(data, context);
1076
+ const response = {
1077
+ $metadata: deserializeMetadata(output),
1078
+ ...contents,
1079
+ };
1080
+ return response;
1081
+ };
1082
+ const de_DescribeDiscoveryJobCommandError = async (output, context) => {
1083
+ const parsedOutput = {
1084
+ ...output,
1085
+ body: await parseErrorBody(output.body, context),
1086
+ };
1087
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1088
+ switch (errorCode) {
1089
+ case "InternalException":
1090
+ case "com.amazonaws.datasync#InternalException":
1091
+ throw await de_InternalExceptionRes(parsedOutput, context);
1092
+ case "InvalidRequestException":
1093
+ case "com.amazonaws.datasync#InvalidRequestException":
1094
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1095
+ default:
1096
+ const parsedBody = parsedOutput.body;
1097
+ return throwDefaultError({
1098
+ output,
1099
+ parsedBody,
1100
+ errorCode,
1101
+ });
1102
+ }
1103
+ };
864
1104
  export const de_DescribeLocationEfsCommand = async (output, context) => {
865
1105
  if (output.statusCode >= 300) {
866
1106
  return de_DescribeLocationEfsCommandError(output, context);
@@ -1211,20 +1451,20 @@ const de_DescribeLocationSmbCommandError = async (output, context) => {
1211
1451
  });
1212
1452
  }
1213
1453
  };
1214
- export const de_DescribeTaskCommand = async (output, context) => {
1454
+ export const de_DescribeStorageSystemCommand = async (output, context) => {
1215
1455
  if (output.statusCode >= 300) {
1216
- return de_DescribeTaskCommandError(output, context);
1456
+ return de_DescribeStorageSystemCommandError(output, context);
1217
1457
  }
1218
1458
  const data = await parseBody(output.body, context);
1219
1459
  let contents = {};
1220
- contents = de_DescribeTaskResponse(data, context);
1460
+ contents = de_DescribeStorageSystemResponse(data, context);
1221
1461
  const response = {
1222
1462
  $metadata: deserializeMetadata(output),
1223
1463
  ...contents,
1224
1464
  };
1225
1465
  return response;
1226
1466
  };
1227
- const de_DescribeTaskCommandError = async (output, context) => {
1467
+ const de_DescribeStorageSystemCommandError = async (output, context) => {
1228
1468
  const parsedOutput = {
1229
1469
  ...output,
1230
1470
  body: await parseErrorBody(output.body, context),
@@ -1246,20 +1486,20 @@ const de_DescribeTaskCommandError = async (output, context) => {
1246
1486
  });
1247
1487
  }
1248
1488
  };
1249
- export const de_DescribeTaskExecutionCommand = async (output, context) => {
1489
+ export const de_DescribeStorageSystemResourceMetricsCommand = async (output, context) => {
1250
1490
  if (output.statusCode >= 300) {
1251
- return de_DescribeTaskExecutionCommandError(output, context);
1491
+ return de_DescribeStorageSystemResourceMetricsCommandError(output, context);
1252
1492
  }
1253
1493
  const data = await parseBody(output.body, context);
1254
1494
  let contents = {};
1255
- contents = de_DescribeTaskExecutionResponse(data, context);
1495
+ contents = de_DescribeStorageSystemResourceMetricsResponse(data, context);
1256
1496
  const response = {
1257
1497
  $metadata: deserializeMetadata(output),
1258
1498
  ...contents,
1259
1499
  };
1260
1500
  return response;
1261
1501
  };
1262
- const de_DescribeTaskExecutionCommandError = async (output, context) => {
1502
+ const de_DescribeStorageSystemResourceMetricsCommandError = async (output, context) => {
1263
1503
  const parsedOutput = {
1264
1504
  ...output,
1265
1505
  body: await parseErrorBody(output.body, context),
@@ -1281,20 +1521,20 @@ const de_DescribeTaskExecutionCommandError = async (output, context) => {
1281
1521
  });
1282
1522
  }
1283
1523
  };
1284
- export const de_ListAgentsCommand = async (output, context) => {
1524
+ export const de_DescribeStorageSystemResourcesCommand = async (output, context) => {
1285
1525
  if (output.statusCode >= 300) {
1286
- return de_ListAgentsCommandError(output, context);
1526
+ return de_DescribeStorageSystemResourcesCommandError(output, context);
1287
1527
  }
1288
1528
  const data = await parseBody(output.body, context);
1289
1529
  let contents = {};
1290
- contents = _json(data);
1530
+ contents = de_DescribeStorageSystemResourcesResponse(data, context);
1291
1531
  const response = {
1292
1532
  $metadata: deserializeMetadata(output),
1293
1533
  ...contents,
1294
1534
  };
1295
1535
  return response;
1296
1536
  };
1297
- const de_ListAgentsCommandError = async (output, context) => {
1537
+ const de_DescribeStorageSystemResourcesCommandError = async (output, context) => {
1298
1538
  const parsedOutput = {
1299
1539
  ...output,
1300
1540
  body: await parseErrorBody(output.body, context),
@@ -1316,20 +1556,20 @@ const de_ListAgentsCommandError = async (output, context) => {
1316
1556
  });
1317
1557
  }
1318
1558
  };
1319
- export const de_ListLocationsCommand = async (output, context) => {
1559
+ export const de_DescribeTaskCommand = async (output, context) => {
1320
1560
  if (output.statusCode >= 300) {
1321
- return de_ListLocationsCommandError(output, context);
1561
+ return de_DescribeTaskCommandError(output, context);
1322
1562
  }
1323
1563
  const data = await parseBody(output.body, context);
1324
1564
  let contents = {};
1325
- contents = _json(data);
1565
+ contents = de_DescribeTaskResponse(data, context);
1326
1566
  const response = {
1327
1567
  $metadata: deserializeMetadata(output),
1328
1568
  ...contents,
1329
1569
  };
1330
1570
  return response;
1331
1571
  };
1332
- const de_ListLocationsCommandError = async (output, context) => {
1572
+ const de_DescribeTaskCommandError = async (output, context) => {
1333
1573
  const parsedOutput = {
1334
1574
  ...output,
1335
1575
  body: await parseErrorBody(output.body, context),
@@ -1351,20 +1591,20 @@ const de_ListLocationsCommandError = async (output, context) => {
1351
1591
  });
1352
1592
  }
1353
1593
  };
1354
- export const de_ListTagsForResourceCommand = async (output, context) => {
1594
+ export const de_DescribeTaskExecutionCommand = async (output, context) => {
1355
1595
  if (output.statusCode >= 300) {
1356
- return de_ListTagsForResourceCommandError(output, context);
1596
+ return de_DescribeTaskExecutionCommandError(output, context);
1357
1597
  }
1358
1598
  const data = await parseBody(output.body, context);
1359
1599
  let contents = {};
1360
- contents = _json(data);
1600
+ contents = de_DescribeTaskExecutionResponse(data, context);
1361
1601
  const response = {
1362
1602
  $metadata: deserializeMetadata(output),
1363
1603
  ...contents,
1364
1604
  };
1365
1605
  return response;
1366
1606
  };
1367
- const de_ListTagsForResourceCommandError = async (output, context) => {
1607
+ const de_DescribeTaskExecutionCommandError = async (output, context) => {
1368
1608
  const parsedOutput = {
1369
1609
  ...output,
1370
1610
  body: await parseErrorBody(output.body, context),
@@ -1386,9 +1626,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1386
1626
  });
1387
1627
  }
1388
1628
  };
1389
- export const de_ListTaskExecutionsCommand = async (output, context) => {
1629
+ export const de_GenerateRecommendationsCommand = async (output, context) => {
1390
1630
  if (output.statusCode >= 300) {
1391
- return de_ListTaskExecutionsCommandError(output, context);
1631
+ return de_GenerateRecommendationsCommandError(output, context);
1392
1632
  }
1393
1633
  const data = await parseBody(output.body, context);
1394
1634
  let contents = {};
@@ -1399,7 +1639,7 @@ export const de_ListTaskExecutionsCommand = async (output, context) => {
1399
1639
  };
1400
1640
  return response;
1401
1641
  };
1402
- const de_ListTaskExecutionsCommandError = async (output, context) => {
1642
+ const de_GenerateRecommendationsCommandError = async (output, context) => {
1403
1643
  const parsedOutput = {
1404
1644
  ...output,
1405
1645
  body: await parseErrorBody(output.body, context),
@@ -1421,9 +1661,9 @@ const de_ListTaskExecutionsCommandError = async (output, context) => {
1421
1661
  });
1422
1662
  }
1423
1663
  };
1424
- export const de_ListTasksCommand = async (output, context) => {
1664
+ export const de_ListAgentsCommand = async (output, context) => {
1425
1665
  if (output.statusCode >= 300) {
1426
- return de_ListTasksCommandError(output, context);
1666
+ return de_ListAgentsCommandError(output, context);
1427
1667
  }
1428
1668
  const data = await parseBody(output.body, context);
1429
1669
  let contents = {};
@@ -1434,7 +1674,7 @@ export const de_ListTasksCommand = async (output, context) => {
1434
1674
  };
1435
1675
  return response;
1436
1676
  };
1437
- const de_ListTasksCommandError = async (output, context) => {
1677
+ const de_ListAgentsCommandError = async (output, context) => {
1438
1678
  const parsedOutput = {
1439
1679
  ...output,
1440
1680
  body: await parseErrorBody(output.body, context),
@@ -1456,9 +1696,9 @@ const de_ListTasksCommandError = async (output, context) => {
1456
1696
  });
1457
1697
  }
1458
1698
  };
1459
- export const de_StartTaskExecutionCommand = async (output, context) => {
1699
+ export const de_ListDiscoveryJobsCommand = async (output, context) => {
1460
1700
  if (output.statusCode >= 300) {
1461
- return de_StartTaskExecutionCommandError(output, context);
1701
+ return de_ListDiscoveryJobsCommandError(output, context);
1462
1702
  }
1463
1703
  const data = await parseBody(output.body, context);
1464
1704
  let contents = {};
@@ -1469,7 +1709,7 @@ export const de_StartTaskExecutionCommand = async (output, context) => {
1469
1709
  };
1470
1710
  return response;
1471
1711
  };
1472
- const de_StartTaskExecutionCommandError = async (output, context) => {
1712
+ const de_ListDiscoveryJobsCommandError = async (output, context) => {
1473
1713
  const parsedOutput = {
1474
1714
  ...output,
1475
1715
  body: await parseErrorBody(output.body, context),
@@ -1491,9 +1731,9 @@ const de_StartTaskExecutionCommandError = async (output, context) => {
1491
1731
  });
1492
1732
  }
1493
1733
  };
1494
- export const de_TagResourceCommand = async (output, context) => {
1734
+ export const de_ListLocationsCommand = async (output, context) => {
1495
1735
  if (output.statusCode >= 300) {
1496
- return de_TagResourceCommandError(output, context);
1736
+ return de_ListLocationsCommandError(output, context);
1497
1737
  }
1498
1738
  const data = await parseBody(output.body, context);
1499
1739
  let contents = {};
@@ -1504,7 +1744,7 @@ export const de_TagResourceCommand = async (output, context) => {
1504
1744
  };
1505
1745
  return response;
1506
1746
  };
1507
- const de_TagResourceCommandError = async (output, context) => {
1747
+ const de_ListLocationsCommandError = async (output, context) => {
1508
1748
  const parsedOutput = {
1509
1749
  ...output,
1510
1750
  body: await parseErrorBody(output.body, context),
@@ -1526,9 +1766,9 @@ const de_TagResourceCommandError = async (output, context) => {
1526
1766
  });
1527
1767
  }
1528
1768
  };
1529
- export const de_UntagResourceCommand = async (output, context) => {
1769
+ export const de_ListStorageSystemsCommand = async (output, context) => {
1530
1770
  if (output.statusCode >= 300) {
1531
- return de_UntagResourceCommandError(output, context);
1771
+ return de_ListStorageSystemsCommandError(output, context);
1532
1772
  }
1533
1773
  const data = await parseBody(output.body, context);
1534
1774
  let contents = {};
@@ -1539,7 +1779,7 @@ export const de_UntagResourceCommand = async (output, context) => {
1539
1779
  };
1540
1780
  return response;
1541
1781
  };
1542
- const de_UntagResourceCommandError = async (output, context) => {
1782
+ const de_ListStorageSystemsCommandError = async (output, context) => {
1543
1783
  const parsedOutput = {
1544
1784
  ...output,
1545
1785
  body: await parseErrorBody(output.body, context),
@@ -1561,9 +1801,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1561
1801
  });
1562
1802
  }
1563
1803
  };
1564
- export const de_UpdateAgentCommand = async (output, context) => {
1804
+ export const de_ListTagsForResourceCommand = async (output, context) => {
1565
1805
  if (output.statusCode >= 300) {
1566
- return de_UpdateAgentCommandError(output, context);
1806
+ return de_ListTagsForResourceCommandError(output, context);
1567
1807
  }
1568
1808
  const data = await parseBody(output.body, context);
1569
1809
  let contents = {};
@@ -1574,7 +1814,7 @@ export const de_UpdateAgentCommand = async (output, context) => {
1574
1814
  };
1575
1815
  return response;
1576
1816
  };
1577
- const de_UpdateAgentCommandError = async (output, context) => {
1817
+ const de_ListTagsForResourceCommandError = async (output, context) => {
1578
1818
  const parsedOutput = {
1579
1819
  ...output,
1580
1820
  body: await parseErrorBody(output.body, context),
@@ -1596,9 +1836,9 @@ const de_UpdateAgentCommandError = async (output, context) => {
1596
1836
  });
1597
1837
  }
1598
1838
  };
1599
- export const de_UpdateLocationHdfsCommand = async (output, context) => {
1839
+ export const de_ListTaskExecutionsCommand = async (output, context) => {
1600
1840
  if (output.statusCode >= 300) {
1601
- return de_UpdateLocationHdfsCommandError(output, context);
1841
+ return de_ListTaskExecutionsCommandError(output, context);
1602
1842
  }
1603
1843
  const data = await parseBody(output.body, context);
1604
1844
  let contents = {};
@@ -1609,7 +1849,7 @@ export const de_UpdateLocationHdfsCommand = async (output, context) => {
1609
1849
  };
1610
1850
  return response;
1611
1851
  };
1612
- const de_UpdateLocationHdfsCommandError = async (output, context) => {
1852
+ const de_ListTaskExecutionsCommandError = async (output, context) => {
1613
1853
  const parsedOutput = {
1614
1854
  ...output,
1615
1855
  body: await parseErrorBody(output.body, context),
@@ -1631,9 +1871,9 @@ const de_UpdateLocationHdfsCommandError = async (output, context) => {
1631
1871
  });
1632
1872
  }
1633
1873
  };
1634
- export const de_UpdateLocationNfsCommand = async (output, context) => {
1874
+ export const de_ListTasksCommand = async (output, context) => {
1635
1875
  if (output.statusCode >= 300) {
1636
- return de_UpdateLocationNfsCommandError(output, context);
1876
+ return de_ListTasksCommandError(output, context);
1637
1877
  }
1638
1878
  const data = await parseBody(output.body, context);
1639
1879
  let contents = {};
@@ -1644,7 +1884,7 @@ export const de_UpdateLocationNfsCommand = async (output, context) => {
1644
1884
  };
1645
1885
  return response;
1646
1886
  };
1647
- const de_UpdateLocationNfsCommandError = async (output, context) => {
1887
+ const de_ListTasksCommandError = async (output, context) => {
1648
1888
  const parsedOutput = {
1649
1889
  ...output,
1650
1890
  body: await parseErrorBody(output.body, context),
@@ -1666,9 +1906,9 @@ const de_UpdateLocationNfsCommandError = async (output, context) => {
1666
1906
  });
1667
1907
  }
1668
1908
  };
1669
- export const de_UpdateLocationObjectStorageCommand = async (output, context) => {
1909
+ export const de_RemoveStorageSystemCommand = async (output, context) => {
1670
1910
  if (output.statusCode >= 300) {
1671
- return de_UpdateLocationObjectStorageCommandError(output, context);
1911
+ return de_RemoveStorageSystemCommandError(output, context);
1672
1912
  }
1673
1913
  const data = await parseBody(output.body, context);
1674
1914
  let contents = {};
@@ -1679,7 +1919,7 @@ export const de_UpdateLocationObjectStorageCommand = async (output, context) =>
1679
1919
  };
1680
1920
  return response;
1681
1921
  };
1682
- const de_UpdateLocationObjectStorageCommandError = async (output, context) => {
1922
+ const de_RemoveStorageSystemCommandError = async (output, context) => {
1683
1923
  const parsedOutput = {
1684
1924
  ...output,
1685
1925
  body: await parseErrorBody(output.body, context),
@@ -1701,9 +1941,9 @@ const de_UpdateLocationObjectStorageCommandError = async (output, context) => {
1701
1941
  });
1702
1942
  }
1703
1943
  };
1704
- export const de_UpdateLocationSmbCommand = async (output, context) => {
1944
+ export const de_StartDiscoveryJobCommand = async (output, context) => {
1705
1945
  if (output.statusCode >= 300) {
1706
- return de_UpdateLocationSmbCommandError(output, context);
1946
+ return de_StartDiscoveryJobCommandError(output, context);
1707
1947
  }
1708
1948
  const data = await parseBody(output.body, context);
1709
1949
  let contents = {};
@@ -1714,7 +1954,7 @@ export const de_UpdateLocationSmbCommand = async (output, context) => {
1714
1954
  };
1715
1955
  return response;
1716
1956
  };
1717
- const de_UpdateLocationSmbCommandError = async (output, context) => {
1957
+ const de_StartDiscoveryJobCommandError = async (output, context) => {
1718
1958
  const parsedOutput = {
1719
1959
  ...output,
1720
1960
  body: await parseErrorBody(output.body, context),
@@ -1736,9 +1976,9 @@ const de_UpdateLocationSmbCommandError = async (output, context) => {
1736
1976
  });
1737
1977
  }
1738
1978
  };
1739
- export const de_UpdateTaskCommand = async (output, context) => {
1979
+ export const de_StartTaskExecutionCommand = async (output, context) => {
1740
1980
  if (output.statusCode >= 300) {
1741
- return de_UpdateTaskCommandError(output, context);
1981
+ return de_StartTaskExecutionCommandError(output, context);
1742
1982
  }
1743
1983
  const data = await parseBody(output.body, context);
1744
1984
  let contents = {};
@@ -1749,7 +1989,7 @@ export const de_UpdateTaskCommand = async (output, context) => {
1749
1989
  };
1750
1990
  return response;
1751
1991
  };
1752
- const de_UpdateTaskCommandError = async (output, context) => {
1992
+ const de_StartTaskExecutionCommandError = async (output, context) => {
1753
1993
  const parsedOutput = {
1754
1994
  ...output,
1755
1995
  body: await parseErrorBody(output.body, context),
@@ -1771,9 +2011,9 @@ const de_UpdateTaskCommandError = async (output, context) => {
1771
2011
  });
1772
2012
  }
1773
2013
  };
1774
- export const de_UpdateTaskExecutionCommand = async (output, context) => {
2014
+ export const de_StopDiscoveryJobCommand = async (output, context) => {
1775
2015
  if (output.statusCode >= 300) {
1776
- return de_UpdateTaskExecutionCommandError(output, context);
2016
+ return de_StopDiscoveryJobCommandError(output, context);
1777
2017
  }
1778
2018
  const data = await parseBody(output.body, context);
1779
2019
  let contents = {};
@@ -1784,7 +2024,7 @@ export const de_UpdateTaskExecutionCommand = async (output, context) => {
1784
2024
  };
1785
2025
  return response;
1786
2026
  };
1787
- const de_UpdateTaskExecutionCommandError = async (output, context) => {
2027
+ const de_StopDiscoveryJobCommandError = async (output, context) => {
1788
2028
  const parsedOutput = {
1789
2029
  ...output,
1790
2030
  body: await parseErrorBody(output.body, context),
@@ -1806,23 +2046,420 @@ const de_UpdateTaskExecutionCommandError = async (output, context) => {
1806
2046
  });
1807
2047
  }
1808
2048
  };
1809
- const de_InternalExceptionRes = async (parsedOutput, context) => {
1810
- const body = parsedOutput.body;
1811
- const deserialized = _json(body);
1812
- const exception = new InternalException({
1813
- $metadata: deserializeMetadata(parsedOutput),
1814
- ...deserialized,
1815
- });
1816
- return __decorateServiceException(exception, body);
2049
+ export const de_TagResourceCommand = async (output, context) => {
2050
+ if (output.statusCode >= 300) {
2051
+ return de_TagResourceCommandError(output, context);
2052
+ }
2053
+ const data = await parseBody(output.body, context);
2054
+ let contents = {};
2055
+ contents = _json(data);
2056
+ const response = {
2057
+ $metadata: deserializeMetadata(output),
2058
+ ...contents,
2059
+ };
2060
+ return response;
1817
2061
  };
1818
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1819
- const body = parsedOutput.body;
1820
- const deserialized = _json(body);
1821
- const exception = new InvalidRequestException({
1822
- $metadata: deserializeMetadata(parsedOutput),
1823
- ...deserialized,
1824
- });
1825
- return __decorateServiceException(exception, body);
2062
+ const de_TagResourceCommandError = async (output, context) => {
2063
+ const parsedOutput = {
2064
+ ...output,
2065
+ body: await parseErrorBody(output.body, context),
2066
+ };
2067
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2068
+ switch (errorCode) {
2069
+ case "InternalException":
2070
+ case "com.amazonaws.datasync#InternalException":
2071
+ throw await de_InternalExceptionRes(parsedOutput, context);
2072
+ case "InvalidRequestException":
2073
+ case "com.amazonaws.datasync#InvalidRequestException":
2074
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2075
+ default:
2076
+ const parsedBody = parsedOutput.body;
2077
+ return throwDefaultError({
2078
+ output,
2079
+ parsedBody,
2080
+ errorCode,
2081
+ });
2082
+ }
2083
+ };
2084
+ export const de_UntagResourceCommand = async (output, context) => {
2085
+ if (output.statusCode >= 300) {
2086
+ return de_UntagResourceCommandError(output, context);
2087
+ }
2088
+ const data = await parseBody(output.body, context);
2089
+ let contents = {};
2090
+ contents = _json(data);
2091
+ const response = {
2092
+ $metadata: deserializeMetadata(output),
2093
+ ...contents,
2094
+ };
2095
+ return response;
2096
+ };
2097
+ const de_UntagResourceCommandError = async (output, context) => {
2098
+ const parsedOutput = {
2099
+ ...output,
2100
+ body: await parseErrorBody(output.body, context),
2101
+ };
2102
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2103
+ switch (errorCode) {
2104
+ case "InternalException":
2105
+ case "com.amazonaws.datasync#InternalException":
2106
+ throw await de_InternalExceptionRes(parsedOutput, context);
2107
+ case "InvalidRequestException":
2108
+ case "com.amazonaws.datasync#InvalidRequestException":
2109
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2110
+ default:
2111
+ const parsedBody = parsedOutput.body;
2112
+ return throwDefaultError({
2113
+ output,
2114
+ parsedBody,
2115
+ errorCode,
2116
+ });
2117
+ }
2118
+ };
2119
+ export const de_UpdateAgentCommand = async (output, context) => {
2120
+ if (output.statusCode >= 300) {
2121
+ return de_UpdateAgentCommandError(output, context);
2122
+ }
2123
+ const data = await parseBody(output.body, context);
2124
+ let contents = {};
2125
+ contents = _json(data);
2126
+ const response = {
2127
+ $metadata: deserializeMetadata(output),
2128
+ ...contents,
2129
+ };
2130
+ return response;
2131
+ };
2132
+ const de_UpdateAgentCommandError = async (output, context) => {
2133
+ const parsedOutput = {
2134
+ ...output,
2135
+ body: await parseErrorBody(output.body, context),
2136
+ };
2137
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2138
+ switch (errorCode) {
2139
+ case "InternalException":
2140
+ case "com.amazonaws.datasync#InternalException":
2141
+ throw await de_InternalExceptionRes(parsedOutput, context);
2142
+ case "InvalidRequestException":
2143
+ case "com.amazonaws.datasync#InvalidRequestException":
2144
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2145
+ default:
2146
+ const parsedBody = parsedOutput.body;
2147
+ return throwDefaultError({
2148
+ output,
2149
+ parsedBody,
2150
+ errorCode,
2151
+ });
2152
+ }
2153
+ };
2154
+ export const de_UpdateDiscoveryJobCommand = async (output, context) => {
2155
+ if (output.statusCode >= 300) {
2156
+ return de_UpdateDiscoveryJobCommandError(output, context);
2157
+ }
2158
+ const data = await parseBody(output.body, context);
2159
+ let contents = {};
2160
+ contents = _json(data);
2161
+ const response = {
2162
+ $metadata: deserializeMetadata(output),
2163
+ ...contents,
2164
+ };
2165
+ return response;
2166
+ };
2167
+ const de_UpdateDiscoveryJobCommandError = async (output, context) => {
2168
+ const parsedOutput = {
2169
+ ...output,
2170
+ body: await parseErrorBody(output.body, context),
2171
+ };
2172
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2173
+ switch (errorCode) {
2174
+ case "InternalException":
2175
+ case "com.amazonaws.datasync#InternalException":
2176
+ throw await de_InternalExceptionRes(parsedOutput, context);
2177
+ case "InvalidRequestException":
2178
+ case "com.amazonaws.datasync#InvalidRequestException":
2179
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2180
+ default:
2181
+ const parsedBody = parsedOutput.body;
2182
+ return throwDefaultError({
2183
+ output,
2184
+ parsedBody,
2185
+ errorCode,
2186
+ });
2187
+ }
2188
+ };
2189
+ export const de_UpdateLocationHdfsCommand = async (output, context) => {
2190
+ if (output.statusCode >= 300) {
2191
+ return de_UpdateLocationHdfsCommandError(output, context);
2192
+ }
2193
+ const data = await parseBody(output.body, context);
2194
+ let contents = {};
2195
+ contents = _json(data);
2196
+ const response = {
2197
+ $metadata: deserializeMetadata(output),
2198
+ ...contents,
2199
+ };
2200
+ return response;
2201
+ };
2202
+ const de_UpdateLocationHdfsCommandError = async (output, context) => {
2203
+ const parsedOutput = {
2204
+ ...output,
2205
+ body: await parseErrorBody(output.body, context),
2206
+ };
2207
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2208
+ switch (errorCode) {
2209
+ case "InternalException":
2210
+ case "com.amazonaws.datasync#InternalException":
2211
+ throw await de_InternalExceptionRes(parsedOutput, context);
2212
+ case "InvalidRequestException":
2213
+ case "com.amazonaws.datasync#InvalidRequestException":
2214
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2215
+ default:
2216
+ const parsedBody = parsedOutput.body;
2217
+ return throwDefaultError({
2218
+ output,
2219
+ parsedBody,
2220
+ errorCode,
2221
+ });
2222
+ }
2223
+ };
2224
+ export const de_UpdateLocationNfsCommand = async (output, context) => {
2225
+ if (output.statusCode >= 300) {
2226
+ return de_UpdateLocationNfsCommandError(output, context);
2227
+ }
2228
+ const data = await parseBody(output.body, context);
2229
+ let contents = {};
2230
+ contents = _json(data);
2231
+ const response = {
2232
+ $metadata: deserializeMetadata(output),
2233
+ ...contents,
2234
+ };
2235
+ return response;
2236
+ };
2237
+ const de_UpdateLocationNfsCommandError = async (output, context) => {
2238
+ const parsedOutput = {
2239
+ ...output,
2240
+ body: await parseErrorBody(output.body, context),
2241
+ };
2242
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2243
+ switch (errorCode) {
2244
+ case "InternalException":
2245
+ case "com.amazonaws.datasync#InternalException":
2246
+ throw await de_InternalExceptionRes(parsedOutput, context);
2247
+ case "InvalidRequestException":
2248
+ case "com.amazonaws.datasync#InvalidRequestException":
2249
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2250
+ default:
2251
+ const parsedBody = parsedOutput.body;
2252
+ return throwDefaultError({
2253
+ output,
2254
+ parsedBody,
2255
+ errorCode,
2256
+ });
2257
+ }
2258
+ };
2259
+ export const de_UpdateLocationObjectStorageCommand = async (output, context) => {
2260
+ if (output.statusCode >= 300) {
2261
+ return de_UpdateLocationObjectStorageCommandError(output, context);
2262
+ }
2263
+ const data = await parseBody(output.body, context);
2264
+ let contents = {};
2265
+ contents = _json(data);
2266
+ const response = {
2267
+ $metadata: deserializeMetadata(output),
2268
+ ...contents,
2269
+ };
2270
+ return response;
2271
+ };
2272
+ const de_UpdateLocationObjectStorageCommandError = async (output, context) => {
2273
+ const parsedOutput = {
2274
+ ...output,
2275
+ body: await parseErrorBody(output.body, context),
2276
+ };
2277
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2278
+ switch (errorCode) {
2279
+ case "InternalException":
2280
+ case "com.amazonaws.datasync#InternalException":
2281
+ throw await de_InternalExceptionRes(parsedOutput, context);
2282
+ case "InvalidRequestException":
2283
+ case "com.amazonaws.datasync#InvalidRequestException":
2284
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2285
+ default:
2286
+ const parsedBody = parsedOutput.body;
2287
+ return throwDefaultError({
2288
+ output,
2289
+ parsedBody,
2290
+ errorCode,
2291
+ });
2292
+ }
2293
+ };
2294
+ export const de_UpdateLocationSmbCommand = async (output, context) => {
2295
+ if (output.statusCode >= 300) {
2296
+ return de_UpdateLocationSmbCommandError(output, context);
2297
+ }
2298
+ const data = await parseBody(output.body, context);
2299
+ let contents = {};
2300
+ contents = _json(data);
2301
+ const response = {
2302
+ $metadata: deserializeMetadata(output),
2303
+ ...contents,
2304
+ };
2305
+ return response;
2306
+ };
2307
+ const de_UpdateLocationSmbCommandError = async (output, context) => {
2308
+ const parsedOutput = {
2309
+ ...output,
2310
+ body: await parseErrorBody(output.body, context),
2311
+ };
2312
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2313
+ switch (errorCode) {
2314
+ case "InternalException":
2315
+ case "com.amazonaws.datasync#InternalException":
2316
+ throw await de_InternalExceptionRes(parsedOutput, context);
2317
+ case "InvalidRequestException":
2318
+ case "com.amazonaws.datasync#InvalidRequestException":
2319
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2320
+ default:
2321
+ const parsedBody = parsedOutput.body;
2322
+ return throwDefaultError({
2323
+ output,
2324
+ parsedBody,
2325
+ errorCode,
2326
+ });
2327
+ }
2328
+ };
2329
+ export const de_UpdateStorageSystemCommand = async (output, context) => {
2330
+ if (output.statusCode >= 300) {
2331
+ return de_UpdateStorageSystemCommandError(output, context);
2332
+ }
2333
+ const data = await parseBody(output.body, context);
2334
+ let contents = {};
2335
+ contents = _json(data);
2336
+ const response = {
2337
+ $metadata: deserializeMetadata(output),
2338
+ ...contents,
2339
+ };
2340
+ return response;
2341
+ };
2342
+ const de_UpdateStorageSystemCommandError = async (output, context) => {
2343
+ const parsedOutput = {
2344
+ ...output,
2345
+ body: await parseErrorBody(output.body, context),
2346
+ };
2347
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2348
+ switch (errorCode) {
2349
+ case "InternalException":
2350
+ case "com.amazonaws.datasync#InternalException":
2351
+ throw await de_InternalExceptionRes(parsedOutput, context);
2352
+ case "InvalidRequestException":
2353
+ case "com.amazonaws.datasync#InvalidRequestException":
2354
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2355
+ default:
2356
+ const parsedBody = parsedOutput.body;
2357
+ return throwDefaultError({
2358
+ output,
2359
+ parsedBody,
2360
+ errorCode,
2361
+ });
2362
+ }
2363
+ };
2364
+ export const de_UpdateTaskCommand = async (output, context) => {
2365
+ if (output.statusCode >= 300) {
2366
+ return de_UpdateTaskCommandError(output, context);
2367
+ }
2368
+ const data = await parseBody(output.body, context);
2369
+ let contents = {};
2370
+ contents = _json(data);
2371
+ const response = {
2372
+ $metadata: deserializeMetadata(output),
2373
+ ...contents,
2374
+ };
2375
+ return response;
2376
+ };
2377
+ const de_UpdateTaskCommandError = async (output, context) => {
2378
+ const parsedOutput = {
2379
+ ...output,
2380
+ body: await parseErrorBody(output.body, context),
2381
+ };
2382
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2383
+ switch (errorCode) {
2384
+ case "InternalException":
2385
+ case "com.amazonaws.datasync#InternalException":
2386
+ throw await de_InternalExceptionRes(parsedOutput, context);
2387
+ case "InvalidRequestException":
2388
+ case "com.amazonaws.datasync#InvalidRequestException":
2389
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2390
+ default:
2391
+ const parsedBody = parsedOutput.body;
2392
+ return throwDefaultError({
2393
+ output,
2394
+ parsedBody,
2395
+ errorCode,
2396
+ });
2397
+ }
2398
+ };
2399
+ export const de_UpdateTaskExecutionCommand = async (output, context) => {
2400
+ if (output.statusCode >= 300) {
2401
+ return de_UpdateTaskExecutionCommandError(output, context);
2402
+ }
2403
+ const data = await parseBody(output.body, context);
2404
+ let contents = {};
2405
+ contents = _json(data);
2406
+ const response = {
2407
+ $metadata: deserializeMetadata(output),
2408
+ ...contents,
2409
+ };
2410
+ return response;
2411
+ };
2412
+ const de_UpdateTaskExecutionCommandError = async (output, context) => {
2413
+ const parsedOutput = {
2414
+ ...output,
2415
+ body: await parseErrorBody(output.body, context),
2416
+ };
2417
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2418
+ switch (errorCode) {
2419
+ case "InternalException":
2420
+ case "com.amazonaws.datasync#InternalException":
2421
+ throw await de_InternalExceptionRes(parsedOutput, context);
2422
+ case "InvalidRequestException":
2423
+ case "com.amazonaws.datasync#InvalidRequestException":
2424
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2425
+ default:
2426
+ const parsedBody = parsedOutput.body;
2427
+ return throwDefaultError({
2428
+ output,
2429
+ parsedBody,
2430
+ errorCode,
2431
+ });
2432
+ }
2433
+ };
2434
+ const de_InternalExceptionRes = async (parsedOutput, context) => {
2435
+ const body = parsedOutput.body;
2436
+ const deserialized = _json(body);
2437
+ const exception = new InternalException({
2438
+ $metadata: deserializeMetadata(parsedOutput),
2439
+ ...deserialized,
2440
+ });
2441
+ return __decorateServiceException(exception, body);
2442
+ };
2443
+ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
2444
+ const body = parsedOutput.body;
2445
+ const deserialized = _json(body);
2446
+ const exception = new InvalidRequestException({
2447
+ $metadata: deserializeMetadata(parsedOutput),
2448
+ ...deserialized,
2449
+ });
2450
+ return __decorateServiceException(exception, body);
2451
+ };
2452
+ const se_AddStorageSystemRequest = (input, context) => {
2453
+ return take(input, {
2454
+ AgentArns: _json,
2455
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2456
+ CloudWatchLogGroupArn: [],
2457
+ Credentials: _json,
2458
+ Name: [],
2459
+ ServerConfiguration: _json,
2460
+ SystemType: [],
2461
+ Tags: _json,
2462
+ });
1826
2463
  };
1827
2464
  const se_CreateLocationHdfsRequest = (input, context) => {
1828
2465
  return take(input, {
@@ -1855,6 +2492,25 @@ const se_CreateLocationObjectStorageRequest = (input, context) => {
1855
2492
  Tags: _json,
1856
2493
  });
1857
2494
  };
2495
+ const se_DescribeStorageSystemResourceMetricsRequest = (input, context) => {
2496
+ return take(input, {
2497
+ DiscoveryJobArn: [],
2498
+ EndTime: (_) => Math.round(_.getTime() / 1000),
2499
+ MaxResults: [],
2500
+ NextToken: [],
2501
+ ResourceId: [],
2502
+ ResourceType: [],
2503
+ StartTime: (_) => Math.round(_.getTime() / 1000),
2504
+ });
2505
+ };
2506
+ const se_StartDiscoveryJobRequest = (input, context) => {
2507
+ return take(input, {
2508
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2509
+ CollectionDurationMinutes: [],
2510
+ StorageSystemArn: [],
2511
+ Tags: _json,
2512
+ });
2513
+ };
1858
2514
  const se_UpdateLocationHdfsRequest = (input, context) => {
1859
2515
  return take(input, {
1860
2516
  AgentArns: _json,
@@ -1895,6 +2551,16 @@ const de_DescribeAgentResponse = (output, context) => {
1895
2551
  Status: __expectString,
1896
2552
  });
1897
2553
  };
2554
+ const de_DescribeDiscoveryJobResponse = (output, context) => {
2555
+ return take(output, {
2556
+ CollectionDurationMinutes: __expectInt32,
2557
+ DiscoveryJobArn: __expectString,
2558
+ JobEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2559
+ JobStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2560
+ Status: __expectString,
2561
+ StorageSystemArn: __expectString,
2562
+ });
2563
+ };
1898
2564
  const de_DescribeLocationEfsResponse = (output, context) => {
1899
2565
  return take(output, {
1900
2566
  AccessPointArn: __expectString,
@@ -2002,6 +2668,32 @@ const de_DescribeLocationSmbResponse = (output, context) => {
2002
2668
  User: __expectString,
2003
2669
  });
2004
2670
  };
2671
+ const de_DescribeStorageSystemResourceMetricsResponse = (output, context) => {
2672
+ return take(output, {
2673
+ Metrics: (_) => de_Metrics(_, context),
2674
+ NextToken: __expectString,
2675
+ });
2676
+ };
2677
+ const de_DescribeStorageSystemResourcesResponse = (output, context) => {
2678
+ return take(output, {
2679
+ NextToken: __expectString,
2680
+ ResourceDetails: (_) => de_ResourceDetails(_, context),
2681
+ });
2682
+ };
2683
+ const de_DescribeStorageSystemResponse = (output, context) => {
2684
+ return take(output, {
2685
+ AgentArns: _json,
2686
+ CloudWatchLogGroupArn: __expectString,
2687
+ ConnectivityStatus: __expectString,
2688
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2689
+ ErrorMessage: __expectString,
2690
+ Name: __expectString,
2691
+ SecretsManagerArn: __expectString,
2692
+ ServerConfiguration: _json,
2693
+ StorageSystemArn: __expectString,
2694
+ SystemType: __expectString,
2695
+ });
2696
+ };
2005
2697
  const de_DescribeTaskExecutionResponse = (output, context) => {
2006
2698
  return take(output, {
2007
2699
  BytesCompressed: __expectLong,
@@ -2039,6 +2731,148 @@ const de_DescribeTaskResponse = (output, context) => {
2039
2731
  TaskArn: __expectString,
2040
2732
  });
2041
2733
  };
2734
+ const de_IOPS = (output, context) => {
2735
+ return take(output, {
2736
+ Other: __limitedParseDouble,
2737
+ Read: __limitedParseDouble,
2738
+ Total: __limitedParseDouble,
2739
+ Write: __limitedParseDouble,
2740
+ });
2741
+ };
2742
+ const de_Latency = (output, context) => {
2743
+ return take(output, {
2744
+ Other: __limitedParseDouble,
2745
+ Read: __limitedParseDouble,
2746
+ Write: __limitedParseDouble,
2747
+ });
2748
+ };
2749
+ const de_MaxP95Performance = (output, context) => {
2750
+ return take(output, {
2751
+ IopsOther: __limitedParseDouble,
2752
+ IopsRead: __limitedParseDouble,
2753
+ IopsTotal: __limitedParseDouble,
2754
+ IopsWrite: __limitedParseDouble,
2755
+ LatencyOther: __limitedParseDouble,
2756
+ LatencyRead: __limitedParseDouble,
2757
+ LatencyWrite: __limitedParseDouble,
2758
+ ThroughputOther: __limitedParseDouble,
2759
+ ThroughputRead: __limitedParseDouble,
2760
+ ThroughputTotal: __limitedParseDouble,
2761
+ ThroughputWrite: __limitedParseDouble,
2762
+ });
2763
+ };
2764
+ const de_Metrics = (output, context) => {
2765
+ const retVal = (output || [])
2766
+ .filter((e) => e != null)
2767
+ .map((entry) => {
2768
+ return de_ResourceMetrics(entry, context);
2769
+ });
2770
+ return retVal;
2771
+ };
2772
+ const de_NetAppONTAPCluster = (output, context) => {
2773
+ return take(output, {
2774
+ CifsShareCount: __expectLong,
2775
+ ClusterBlockStorageLogicalUsed: __expectLong,
2776
+ ClusterBlockStorageSize: __expectLong,
2777
+ ClusterBlockStorageUsed: __expectLong,
2778
+ ClusterName: __expectString,
2779
+ MaxP95Performance: (_) => de_MaxP95Performance(_, context),
2780
+ NfsExportedVolumes: __expectLong,
2781
+ RecommendationStatus: __expectString,
2782
+ Recommendations: _json,
2783
+ ResourceId: __expectString,
2784
+ });
2785
+ };
2786
+ const de_NetAppONTAPClusters = (output, context) => {
2787
+ const retVal = (output || [])
2788
+ .filter((e) => e != null)
2789
+ .map((entry) => {
2790
+ return de_NetAppONTAPCluster(entry, context);
2791
+ });
2792
+ return retVal;
2793
+ };
2794
+ const de_NetAppONTAPSVM = (output, context) => {
2795
+ return take(output, {
2796
+ CifsShareCount: __expectLong,
2797
+ ClusterUuid: __expectString,
2798
+ EnabledProtocols: _json,
2799
+ MaxP95Performance: (_) => de_MaxP95Performance(_, context),
2800
+ NfsExportedVolumes: __expectLong,
2801
+ RecommendationStatus: __expectString,
2802
+ Recommendations: _json,
2803
+ ResourceId: __expectString,
2804
+ SvmName: __expectString,
2805
+ TotalCapacityProvisioned: __expectLong,
2806
+ TotalCapacityUsed: __expectLong,
2807
+ TotalLogicalCapacityUsed: __expectLong,
2808
+ TotalSnapshotCapacityUsed: __expectLong,
2809
+ });
2810
+ };
2811
+ const de_NetAppONTAPSVMs = (output, context) => {
2812
+ const retVal = (output || [])
2813
+ .filter((e) => e != null)
2814
+ .map((entry) => {
2815
+ return de_NetAppONTAPSVM(entry, context);
2816
+ });
2817
+ return retVal;
2818
+ };
2819
+ const de_NetAppONTAPVolume = (output, context) => {
2820
+ return take(output, {
2821
+ CapacityProvisioned: __expectLong,
2822
+ CapacityUsed: __expectLong,
2823
+ CifsShareCount: __expectLong,
2824
+ LogicalCapacityUsed: __expectLong,
2825
+ MaxP95Performance: (_) => de_MaxP95Performance(_, context),
2826
+ NfsExported: __expectBoolean,
2827
+ RecommendationStatus: __expectString,
2828
+ Recommendations: _json,
2829
+ ResourceId: __expectString,
2830
+ SecurityStyle: __expectString,
2831
+ SnapshotCapacityUsed: __expectLong,
2832
+ SvmName: __expectString,
2833
+ SvmUuid: __expectString,
2834
+ VolumeName: __expectString,
2835
+ });
2836
+ };
2837
+ const de_NetAppONTAPVolumes = (output, context) => {
2838
+ const retVal = (output || [])
2839
+ .filter((e) => e != null)
2840
+ .map((entry) => {
2841
+ return de_NetAppONTAPVolume(entry, context);
2842
+ });
2843
+ return retVal;
2844
+ };
2845
+ const de_P95Metrics = (output, context) => {
2846
+ return take(output, {
2847
+ IOPS: (_) => de_IOPS(_, context),
2848
+ Latency: (_) => de_Latency(_, context),
2849
+ Throughput: (_) => de_Throughput(_, context),
2850
+ });
2851
+ };
2852
+ const de_ResourceDetails = (output, context) => {
2853
+ return take(output, {
2854
+ NetAppONTAPClusters: (_) => de_NetAppONTAPClusters(_, context),
2855
+ NetAppONTAPSVMs: (_) => de_NetAppONTAPSVMs(_, context),
2856
+ NetAppONTAPVolumes: (_) => de_NetAppONTAPVolumes(_, context),
2857
+ });
2858
+ };
2859
+ const de_ResourceMetrics = (output, context) => {
2860
+ return take(output, {
2861
+ Capacity: _json,
2862
+ P95Metrics: (_) => de_P95Metrics(_, context),
2863
+ ResourceId: __expectString,
2864
+ ResourceType: __expectString,
2865
+ Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2866
+ });
2867
+ };
2868
+ const de_Throughput = (output, context) => {
2869
+ return take(output, {
2870
+ Other: __limitedParseDouble,
2871
+ Read: __limitedParseDouble,
2872
+ Total: __limitedParseDouble,
2873
+ Write: __limitedParseDouble,
2874
+ });
2875
+ };
2042
2876
  const deserializeMetadata = (output) => ({
2043
2877
  httpStatusCode: output.statusCode,
2044
2878
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],