@aws-sdk/client-datasync 3.185.0 → 3.188.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 (61) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/DataSync.js +178 -185
  3. package/dist-es/DataSyncClient.js +22 -28
  4. package/dist-es/commands/CancelTaskExecutionCommand.js +21 -28
  5. package/dist-es/commands/CreateAgentCommand.js +21 -28
  6. package/dist-es/commands/CreateLocationEfsCommand.js +21 -28
  7. package/dist-es/commands/CreateLocationFsxLustreCommand.js +21 -28
  8. package/dist-es/commands/CreateLocationFsxOntapCommand.js +21 -28
  9. package/dist-es/commands/CreateLocationFsxOpenZfsCommand.js +21 -28
  10. package/dist-es/commands/CreateLocationFsxWindowsCommand.js +21 -28
  11. package/dist-es/commands/CreateLocationHdfsCommand.js +21 -28
  12. package/dist-es/commands/CreateLocationNfsCommand.js +21 -28
  13. package/dist-es/commands/CreateLocationObjectStorageCommand.js +21 -28
  14. package/dist-es/commands/CreateLocationS3Command.js +21 -28
  15. package/dist-es/commands/CreateLocationSmbCommand.js +21 -28
  16. package/dist-es/commands/CreateTaskCommand.js +21 -28
  17. package/dist-es/commands/DeleteAgentCommand.js +21 -28
  18. package/dist-es/commands/DeleteLocationCommand.js +21 -28
  19. package/dist-es/commands/DeleteTaskCommand.js +21 -28
  20. package/dist-es/commands/DescribeAgentCommand.js +21 -28
  21. package/dist-es/commands/DescribeLocationEfsCommand.js +21 -28
  22. package/dist-es/commands/DescribeLocationFsxLustreCommand.js +21 -28
  23. package/dist-es/commands/DescribeLocationFsxOntapCommand.js +21 -28
  24. package/dist-es/commands/DescribeLocationFsxOpenZfsCommand.js +21 -28
  25. package/dist-es/commands/DescribeLocationFsxWindowsCommand.js +21 -28
  26. package/dist-es/commands/DescribeLocationHdfsCommand.js +21 -28
  27. package/dist-es/commands/DescribeLocationNfsCommand.js +21 -28
  28. package/dist-es/commands/DescribeLocationObjectStorageCommand.js +21 -28
  29. package/dist-es/commands/DescribeLocationS3Command.js +21 -28
  30. package/dist-es/commands/DescribeLocationSmbCommand.js +21 -28
  31. package/dist-es/commands/DescribeTaskCommand.js +21 -28
  32. package/dist-es/commands/DescribeTaskExecutionCommand.js +21 -28
  33. package/dist-es/commands/ListAgentsCommand.js +21 -28
  34. package/dist-es/commands/ListLocationsCommand.js +21 -28
  35. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  36. package/dist-es/commands/ListTaskExecutionsCommand.js +21 -28
  37. package/dist-es/commands/ListTasksCommand.js +21 -28
  38. package/dist-es/commands/StartTaskExecutionCommand.js +21 -28
  39. package/dist-es/commands/TagResourceCommand.js +21 -28
  40. package/dist-es/commands/UntagResourceCommand.js +21 -28
  41. package/dist-es/commands/UpdateAgentCommand.js +21 -28
  42. package/dist-es/commands/UpdateLocationHdfsCommand.js +21 -28
  43. package/dist-es/commands/UpdateLocationNfsCommand.js +21 -28
  44. package/dist-es/commands/UpdateLocationObjectStorageCommand.js +21 -28
  45. package/dist-es/commands/UpdateLocationSmbCommand.js +21 -28
  46. package/dist-es/commands/UpdateTaskCommand.js +21 -28
  47. package/dist-es/commands/UpdateTaskExecutionCommand.js +21 -28
  48. package/dist-es/endpoints.js +8 -8
  49. package/dist-es/models/DataSyncServiceException.js +5 -10
  50. package/dist-es/models/models_0.js +366 -136
  51. package/dist-es/pagination/ListAgentsPaginator.js +25 -68
  52. package/dist-es/pagination/ListLocationsPaginator.js +25 -68
  53. package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
  54. package/dist-es/pagination/ListTaskExecutionsPaginator.js +25 -68
  55. package/dist-es/pagination/ListTasksPaginator.js +25 -68
  56. package/dist-es/protocols/Aws_json1_1.js +2608 -3288
  57. package/dist-es/runtimeConfig.browser.js +26 -12
  58. package/dist-es/runtimeConfig.js +30 -12
  59. package/dist-es/runtimeConfig.native.js +8 -5
  60. package/dist-es/runtimeConfig.shared.js +8 -11
  61. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
2
  import { DataSyncServiceException as __BaseException } from "./DataSyncServiceException";
4
3
  export var AgentStatus;
@@ -11,33 +10,33 @@ export var Atime;
11
10
  Atime["BEST_EFFORT"] = "BEST_EFFORT";
12
11
  Atime["NONE"] = "NONE";
13
12
  })(Atime || (Atime = {}));
14
- var InternalException = (function (_super) {
15
- __extends(InternalException, _super);
16
- function InternalException(opts) {
17
- var _this = _super.call(this, __assign({ name: "InternalException", $fault: "server" }, opts)) || this;
18
- _this.name = "InternalException";
19
- _this.$fault = "server";
20
- Object.setPrototypeOf(_this, InternalException.prototype);
21
- _this.errorCode = opts.errorCode;
22
- return _this;
13
+ export class InternalException extends __BaseException {
14
+ constructor(opts) {
15
+ super({
16
+ name: "InternalException",
17
+ $fault: "server",
18
+ ...opts,
19
+ });
20
+ this.name = "InternalException";
21
+ this.$fault = "server";
22
+ Object.setPrototypeOf(this, InternalException.prototype);
23
+ this.errorCode = opts.errorCode;
23
24
  }
24
- return InternalException;
25
- }(__BaseException));
26
- export { InternalException };
27
- var InvalidRequestException = (function (_super) {
28
- __extends(InvalidRequestException, _super);
29
- function InvalidRequestException(opts) {
30
- var _this = _super.call(this, __assign({ name: "InvalidRequestException", $fault: "client" }, opts)) || this;
31
- _this.name = "InvalidRequestException";
32
- _this.$fault = "client";
33
- Object.setPrototypeOf(_this, InvalidRequestException.prototype);
34
- _this.errorCode = opts.errorCode;
35
- _this.datasyncErrorCode = opts.datasyncErrorCode;
36
- return _this;
25
+ }
26
+ export class InvalidRequestException extends __BaseException {
27
+ constructor(opts) {
28
+ super({
29
+ name: "InvalidRequestException",
30
+ $fault: "client",
31
+ ...opts,
32
+ });
33
+ this.name = "InvalidRequestException";
34
+ this.$fault = "client";
35
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
36
+ this.errorCode = opts.errorCode;
37
+ this.datasyncErrorCode = opts.datasyncErrorCode;
37
38
  }
38
- return InvalidRequestException;
39
- }(__BaseException));
40
- export { InvalidRequestException };
39
+ }
41
40
  export var EfsInTransitEncryption;
42
41
  (function (EfsInTransitEncryption) {
43
42
  EfsInTransitEncryption["NONE"] = "NONE";
@@ -220,113 +219,344 @@ export var TaskFilterName;
220
219
  TaskFilterName["CreationTime"] = "CreationTime";
221
220
  TaskFilterName["LocationId"] = "LocationId";
222
221
  })(TaskFilterName || (TaskFilterName = {}));
223
- export var AgentListEntryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
224
- export var CancelTaskExecutionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
225
- export var CancelTaskExecutionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
226
- export var TagListEntryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
227
- export var CreateAgentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
228
- export var CreateAgentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
229
- export var Ec2ConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
230
- export var CreateLocationEfsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
231
- export var CreateLocationEfsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
232
- export var CreateLocationFsxLustreRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
233
- export var CreateLocationFsxLustreResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
234
- export var NfsMountOptionsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
235
- export var FsxProtocolNfsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
236
- export var SmbMountOptionsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
237
- export var FsxProtocolSmbFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Password && { Password: SENSITIVE_STRING }))); };
238
- export var FsxProtocolFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SMB && { SMB: FsxProtocolSmbFilterSensitiveLog(obj.SMB) }))); };
239
- export var CreateLocationFsxOntapRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Protocol && { Protocol: FsxProtocolFilterSensitiveLog(obj.Protocol) }))); };
240
- export var CreateLocationFsxOntapResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
241
- export var CreateLocationFsxOpenZfsRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Protocol && { Protocol: FsxProtocolFilterSensitiveLog(obj.Protocol) }))); };
242
- export var CreateLocationFsxOpenZfsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
243
- export var CreateLocationFsxWindowsRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Password && { Password: SENSITIVE_STRING }))); };
244
- export var CreateLocationFsxWindowsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
245
- export var HdfsNameNodeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
246
- export var QopConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
247
- export var CreateLocationHdfsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
248
- export var CreateLocationHdfsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
249
- export var OnPremConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
250
- export var CreateLocationNfsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
251
- export var CreateLocationNfsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
252
- export var CreateLocationObjectStorageRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SecretKey && { SecretKey: SENSITIVE_STRING }))); };
253
- export var CreateLocationObjectStorageResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
254
- export var S3ConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
255
- export var CreateLocationS3RequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
256
- export var CreateLocationS3ResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
257
- export var CreateLocationSmbRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Password && { Password: SENSITIVE_STRING }))); };
258
- export var CreateLocationSmbResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
259
- export var FilterRuleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
260
- export var OptionsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
261
- export var TaskScheduleFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
262
- export var CreateTaskRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
263
- export var CreateTaskResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
264
- export var DeleteAgentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
265
- export var DeleteAgentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
266
- export var DeleteLocationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
267
- export var DeleteLocationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
268
- export var DeleteTaskRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
269
- export var DeleteTaskResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
270
- export var DescribeAgentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
271
- export var PrivateLinkConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
272
- export var DescribeAgentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
273
- export var DescribeLocationEfsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
274
- export var DescribeLocationEfsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
275
- export var DescribeLocationFsxLustreRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
276
- export var DescribeLocationFsxLustreResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
277
- export var DescribeLocationFsxOntapRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
278
- export var DescribeLocationFsxOntapResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Protocol && { Protocol: FsxProtocolFilterSensitiveLog(obj.Protocol) }))); };
279
- export var DescribeLocationFsxOpenZfsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
280
- export var DescribeLocationFsxOpenZfsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Protocol && { Protocol: FsxProtocolFilterSensitiveLog(obj.Protocol) }))); };
281
- export var DescribeLocationFsxWindowsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
282
- export var DescribeLocationFsxWindowsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
283
- export var DescribeLocationHdfsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
284
- export var DescribeLocationHdfsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
285
- export var DescribeLocationNfsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
286
- export var DescribeLocationNfsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
287
- export var DescribeLocationObjectStorageRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
288
- export var DescribeLocationObjectStorageResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
289
- export var DescribeLocationS3RequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
290
- export var DescribeLocationS3ResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
291
- export var DescribeLocationSmbRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
292
- export var DescribeLocationSmbResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
293
- export var DescribeTaskRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
294
- export var DescribeTaskResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
295
- export var DescribeTaskExecutionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
296
- export var TaskExecutionResultDetailFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
297
- export var DescribeTaskExecutionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
298
- export var ListAgentsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
299
- export var ListAgentsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
300
- export var LocationFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
301
- export var ListLocationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
302
- export var LocationListEntryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
303
- export var ListLocationsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
304
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
305
- export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
306
- export var ListTaskExecutionsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
307
- export var TaskExecutionListEntryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
308
- export var ListTaskExecutionsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
309
- export var TaskFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
310
- export var ListTasksRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
311
- export var TaskListEntryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
312
- export var ListTasksResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
313
- export var StartTaskExecutionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
314
- export var StartTaskExecutionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
315
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
316
- export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
317
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
318
- export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
319
- export var UpdateAgentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
320
- export var UpdateAgentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
321
- export var UpdateLocationHdfsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
322
- export var UpdateLocationHdfsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
323
- export var UpdateLocationNfsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
324
- export var UpdateLocationNfsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
325
- export var UpdateLocationObjectStorageRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SecretKey && { SecretKey: SENSITIVE_STRING }))); };
326
- export var UpdateLocationObjectStorageResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
327
- export var UpdateLocationSmbRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Password && { Password: SENSITIVE_STRING }))); };
328
- export var UpdateLocationSmbResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
329
- export var UpdateTaskRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
330
- export var UpdateTaskResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
331
- export var UpdateTaskExecutionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
332
- export var UpdateTaskExecutionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
222
+ export const AgentListEntryFilterSensitiveLog = (obj) => ({
223
+ ...obj,
224
+ });
225
+ export const CancelTaskExecutionRequestFilterSensitiveLog = (obj) => ({
226
+ ...obj,
227
+ });
228
+ export const CancelTaskExecutionResponseFilterSensitiveLog = (obj) => ({
229
+ ...obj,
230
+ });
231
+ export const TagListEntryFilterSensitiveLog = (obj) => ({
232
+ ...obj,
233
+ });
234
+ export const CreateAgentRequestFilterSensitiveLog = (obj) => ({
235
+ ...obj,
236
+ });
237
+ export const CreateAgentResponseFilterSensitiveLog = (obj) => ({
238
+ ...obj,
239
+ });
240
+ export const Ec2ConfigFilterSensitiveLog = (obj) => ({
241
+ ...obj,
242
+ });
243
+ export const CreateLocationEfsRequestFilterSensitiveLog = (obj) => ({
244
+ ...obj,
245
+ });
246
+ export const CreateLocationEfsResponseFilterSensitiveLog = (obj) => ({
247
+ ...obj,
248
+ });
249
+ export const CreateLocationFsxLustreRequestFilterSensitiveLog = (obj) => ({
250
+ ...obj,
251
+ });
252
+ export const CreateLocationFsxLustreResponseFilterSensitiveLog = (obj) => ({
253
+ ...obj,
254
+ });
255
+ export const NfsMountOptionsFilterSensitiveLog = (obj) => ({
256
+ ...obj,
257
+ });
258
+ export const FsxProtocolNfsFilterSensitiveLog = (obj) => ({
259
+ ...obj,
260
+ });
261
+ export const SmbMountOptionsFilterSensitiveLog = (obj) => ({
262
+ ...obj,
263
+ });
264
+ export const FsxProtocolSmbFilterSensitiveLog = (obj) => ({
265
+ ...obj,
266
+ ...(obj.Password && { Password: SENSITIVE_STRING }),
267
+ });
268
+ export const FsxProtocolFilterSensitiveLog = (obj) => ({
269
+ ...obj,
270
+ ...(obj.SMB && { SMB: FsxProtocolSmbFilterSensitiveLog(obj.SMB) }),
271
+ });
272
+ export const CreateLocationFsxOntapRequestFilterSensitiveLog = (obj) => ({
273
+ ...obj,
274
+ ...(obj.Protocol && { Protocol: FsxProtocolFilterSensitiveLog(obj.Protocol) }),
275
+ });
276
+ export const CreateLocationFsxOntapResponseFilterSensitiveLog = (obj) => ({
277
+ ...obj,
278
+ });
279
+ export const CreateLocationFsxOpenZfsRequestFilterSensitiveLog = (obj) => ({
280
+ ...obj,
281
+ ...(obj.Protocol && { Protocol: FsxProtocolFilterSensitiveLog(obj.Protocol) }),
282
+ });
283
+ export const CreateLocationFsxOpenZfsResponseFilterSensitiveLog = (obj) => ({
284
+ ...obj,
285
+ });
286
+ export const CreateLocationFsxWindowsRequestFilterSensitiveLog = (obj) => ({
287
+ ...obj,
288
+ ...(obj.Password && { Password: SENSITIVE_STRING }),
289
+ });
290
+ export const CreateLocationFsxWindowsResponseFilterSensitiveLog = (obj) => ({
291
+ ...obj,
292
+ });
293
+ export const HdfsNameNodeFilterSensitiveLog = (obj) => ({
294
+ ...obj,
295
+ });
296
+ export const QopConfigurationFilterSensitiveLog = (obj) => ({
297
+ ...obj,
298
+ });
299
+ export const CreateLocationHdfsRequestFilterSensitiveLog = (obj) => ({
300
+ ...obj,
301
+ });
302
+ export const CreateLocationHdfsResponseFilterSensitiveLog = (obj) => ({
303
+ ...obj,
304
+ });
305
+ export const OnPremConfigFilterSensitiveLog = (obj) => ({
306
+ ...obj,
307
+ });
308
+ export const CreateLocationNfsRequestFilterSensitiveLog = (obj) => ({
309
+ ...obj,
310
+ });
311
+ export const CreateLocationNfsResponseFilterSensitiveLog = (obj) => ({
312
+ ...obj,
313
+ });
314
+ export const CreateLocationObjectStorageRequestFilterSensitiveLog = (obj) => ({
315
+ ...obj,
316
+ ...(obj.SecretKey && { SecretKey: SENSITIVE_STRING }),
317
+ });
318
+ export const CreateLocationObjectStorageResponseFilterSensitiveLog = (obj) => ({
319
+ ...obj,
320
+ });
321
+ export const S3ConfigFilterSensitiveLog = (obj) => ({
322
+ ...obj,
323
+ });
324
+ export const CreateLocationS3RequestFilterSensitiveLog = (obj) => ({
325
+ ...obj,
326
+ });
327
+ export const CreateLocationS3ResponseFilterSensitiveLog = (obj) => ({
328
+ ...obj,
329
+ });
330
+ export const CreateLocationSmbRequestFilterSensitiveLog = (obj) => ({
331
+ ...obj,
332
+ ...(obj.Password && { Password: SENSITIVE_STRING }),
333
+ });
334
+ export const CreateLocationSmbResponseFilterSensitiveLog = (obj) => ({
335
+ ...obj,
336
+ });
337
+ export const FilterRuleFilterSensitiveLog = (obj) => ({
338
+ ...obj,
339
+ });
340
+ export const OptionsFilterSensitiveLog = (obj) => ({
341
+ ...obj,
342
+ });
343
+ export const TaskScheduleFilterSensitiveLog = (obj) => ({
344
+ ...obj,
345
+ });
346
+ export const CreateTaskRequestFilterSensitiveLog = (obj) => ({
347
+ ...obj,
348
+ });
349
+ export const CreateTaskResponseFilterSensitiveLog = (obj) => ({
350
+ ...obj,
351
+ });
352
+ export const DeleteAgentRequestFilterSensitiveLog = (obj) => ({
353
+ ...obj,
354
+ });
355
+ export const DeleteAgentResponseFilterSensitiveLog = (obj) => ({
356
+ ...obj,
357
+ });
358
+ export const DeleteLocationRequestFilterSensitiveLog = (obj) => ({
359
+ ...obj,
360
+ });
361
+ export const DeleteLocationResponseFilterSensitiveLog = (obj) => ({
362
+ ...obj,
363
+ });
364
+ export const DeleteTaskRequestFilterSensitiveLog = (obj) => ({
365
+ ...obj,
366
+ });
367
+ export const DeleteTaskResponseFilterSensitiveLog = (obj) => ({
368
+ ...obj,
369
+ });
370
+ export const DescribeAgentRequestFilterSensitiveLog = (obj) => ({
371
+ ...obj,
372
+ });
373
+ export const PrivateLinkConfigFilterSensitiveLog = (obj) => ({
374
+ ...obj,
375
+ });
376
+ export const DescribeAgentResponseFilterSensitiveLog = (obj) => ({
377
+ ...obj,
378
+ });
379
+ export const DescribeLocationEfsRequestFilterSensitiveLog = (obj) => ({
380
+ ...obj,
381
+ });
382
+ export const DescribeLocationEfsResponseFilterSensitiveLog = (obj) => ({
383
+ ...obj,
384
+ });
385
+ export const DescribeLocationFsxLustreRequestFilterSensitiveLog = (obj) => ({
386
+ ...obj,
387
+ });
388
+ export const DescribeLocationFsxLustreResponseFilterSensitiveLog = (obj) => ({
389
+ ...obj,
390
+ });
391
+ export const DescribeLocationFsxOntapRequestFilterSensitiveLog = (obj) => ({
392
+ ...obj,
393
+ });
394
+ export const DescribeLocationFsxOntapResponseFilterSensitiveLog = (obj) => ({
395
+ ...obj,
396
+ ...(obj.Protocol && { Protocol: FsxProtocolFilterSensitiveLog(obj.Protocol) }),
397
+ });
398
+ export const DescribeLocationFsxOpenZfsRequestFilterSensitiveLog = (obj) => ({
399
+ ...obj,
400
+ });
401
+ export const DescribeLocationFsxOpenZfsResponseFilterSensitiveLog = (obj) => ({
402
+ ...obj,
403
+ ...(obj.Protocol && { Protocol: FsxProtocolFilterSensitiveLog(obj.Protocol) }),
404
+ });
405
+ export const DescribeLocationFsxWindowsRequestFilterSensitiveLog = (obj) => ({
406
+ ...obj,
407
+ });
408
+ export const DescribeLocationFsxWindowsResponseFilterSensitiveLog = (obj) => ({
409
+ ...obj,
410
+ });
411
+ export const DescribeLocationHdfsRequestFilterSensitiveLog = (obj) => ({
412
+ ...obj,
413
+ });
414
+ export const DescribeLocationHdfsResponseFilterSensitiveLog = (obj) => ({
415
+ ...obj,
416
+ });
417
+ export const DescribeLocationNfsRequestFilterSensitiveLog = (obj) => ({
418
+ ...obj,
419
+ });
420
+ export const DescribeLocationNfsResponseFilterSensitiveLog = (obj) => ({
421
+ ...obj,
422
+ });
423
+ export const DescribeLocationObjectStorageRequestFilterSensitiveLog = (obj) => ({
424
+ ...obj,
425
+ });
426
+ export const DescribeLocationObjectStorageResponseFilterSensitiveLog = (obj) => ({
427
+ ...obj,
428
+ });
429
+ export const DescribeLocationS3RequestFilterSensitiveLog = (obj) => ({
430
+ ...obj,
431
+ });
432
+ export const DescribeLocationS3ResponseFilterSensitiveLog = (obj) => ({
433
+ ...obj,
434
+ });
435
+ export const DescribeLocationSmbRequestFilterSensitiveLog = (obj) => ({
436
+ ...obj,
437
+ });
438
+ export const DescribeLocationSmbResponseFilterSensitiveLog = (obj) => ({
439
+ ...obj,
440
+ });
441
+ export const DescribeTaskRequestFilterSensitiveLog = (obj) => ({
442
+ ...obj,
443
+ });
444
+ export const DescribeTaskResponseFilterSensitiveLog = (obj) => ({
445
+ ...obj,
446
+ });
447
+ export const DescribeTaskExecutionRequestFilterSensitiveLog = (obj) => ({
448
+ ...obj,
449
+ });
450
+ export const TaskExecutionResultDetailFilterSensitiveLog = (obj) => ({
451
+ ...obj,
452
+ });
453
+ export const DescribeTaskExecutionResponseFilterSensitiveLog = (obj) => ({
454
+ ...obj,
455
+ });
456
+ export const ListAgentsRequestFilterSensitiveLog = (obj) => ({
457
+ ...obj,
458
+ });
459
+ export const ListAgentsResponseFilterSensitiveLog = (obj) => ({
460
+ ...obj,
461
+ });
462
+ export const LocationFilterFilterSensitiveLog = (obj) => ({
463
+ ...obj,
464
+ });
465
+ export const ListLocationsRequestFilterSensitiveLog = (obj) => ({
466
+ ...obj,
467
+ });
468
+ export const LocationListEntryFilterSensitiveLog = (obj) => ({
469
+ ...obj,
470
+ });
471
+ export const ListLocationsResponseFilterSensitiveLog = (obj) => ({
472
+ ...obj,
473
+ });
474
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
475
+ ...obj,
476
+ });
477
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
478
+ ...obj,
479
+ });
480
+ export const ListTaskExecutionsRequestFilterSensitiveLog = (obj) => ({
481
+ ...obj,
482
+ });
483
+ export const TaskExecutionListEntryFilterSensitiveLog = (obj) => ({
484
+ ...obj,
485
+ });
486
+ export const ListTaskExecutionsResponseFilterSensitiveLog = (obj) => ({
487
+ ...obj,
488
+ });
489
+ export const TaskFilterFilterSensitiveLog = (obj) => ({
490
+ ...obj,
491
+ });
492
+ export const ListTasksRequestFilterSensitiveLog = (obj) => ({
493
+ ...obj,
494
+ });
495
+ export const TaskListEntryFilterSensitiveLog = (obj) => ({
496
+ ...obj,
497
+ });
498
+ export const ListTasksResponseFilterSensitiveLog = (obj) => ({
499
+ ...obj,
500
+ });
501
+ export const StartTaskExecutionRequestFilterSensitiveLog = (obj) => ({
502
+ ...obj,
503
+ });
504
+ export const StartTaskExecutionResponseFilterSensitiveLog = (obj) => ({
505
+ ...obj,
506
+ });
507
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
508
+ ...obj,
509
+ });
510
+ export const TagResourceResponseFilterSensitiveLog = (obj) => ({
511
+ ...obj,
512
+ });
513
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
514
+ ...obj,
515
+ });
516
+ export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
517
+ ...obj,
518
+ });
519
+ export const UpdateAgentRequestFilterSensitiveLog = (obj) => ({
520
+ ...obj,
521
+ });
522
+ export const UpdateAgentResponseFilterSensitiveLog = (obj) => ({
523
+ ...obj,
524
+ });
525
+ export const UpdateLocationHdfsRequestFilterSensitiveLog = (obj) => ({
526
+ ...obj,
527
+ });
528
+ export const UpdateLocationHdfsResponseFilterSensitiveLog = (obj) => ({
529
+ ...obj,
530
+ });
531
+ export const UpdateLocationNfsRequestFilterSensitiveLog = (obj) => ({
532
+ ...obj,
533
+ });
534
+ export const UpdateLocationNfsResponseFilterSensitiveLog = (obj) => ({
535
+ ...obj,
536
+ });
537
+ export const UpdateLocationObjectStorageRequestFilterSensitiveLog = (obj) => ({
538
+ ...obj,
539
+ ...(obj.SecretKey && { SecretKey: SENSITIVE_STRING }),
540
+ });
541
+ export const UpdateLocationObjectStorageResponseFilterSensitiveLog = (obj) => ({
542
+ ...obj,
543
+ });
544
+ export const UpdateLocationSmbRequestFilterSensitiveLog = (obj) => ({
545
+ ...obj,
546
+ ...(obj.Password && { Password: SENSITIVE_STRING }),
547
+ });
548
+ export const UpdateLocationSmbResponseFilterSensitiveLog = (obj) => ({
549
+ ...obj,
550
+ });
551
+ export const UpdateTaskRequestFilterSensitiveLog = (obj) => ({
552
+ ...obj,
553
+ });
554
+ export const UpdateTaskResponseFilterSensitiveLog = (obj) => ({
555
+ ...obj,
556
+ });
557
+ export const UpdateTaskExecutionRequestFilterSensitiveLog = (obj) => ({
558
+ ...obj,
559
+ });
560
+ export const UpdateTaskExecutionResponseFilterSensitiveLog = (obj) => ({
561
+ ...obj,
562
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListAgentsCommand } from "../commands/ListAgentsCommand";
3
2
  import { DataSync } from "../DataSync";
4
3
  import { DataSyncClient } from "../DataSyncClient";
5
- var makePagedClientRequest = function (client, input) {
6
- var args = [];
7
- for (var _i = 2; _i < arguments.length; _i++) {
8
- args[_i - 2] = arguments[_i];
9
- }
10
- return __awaiter(void 0, void 0, void 0, function () {
11
- return __generator(this, function (_a) {
12
- switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListAgentsCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListAgentsCommand(input), ...args);
18
6
  };
19
- var makePagedRequest = function (client, input) {
20
- var args = [];
21
- for (var _i = 2; _i < arguments.length; _i++) {
22
- args[_i - 2] = arguments[_i];
23
- }
24
- return __awaiter(void 0, void 0, void 0, function () {
25
- return __generator(this, function (_a) {
26
- switch (_a.label) {
27
- case 0: return [4, client.listAgents.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listAgents(input, ...args);
32
9
  };
33
- export function paginateListAgents(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListAgents(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof DataSync) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof DataSyncClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected DataSync | DataSyncClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListAgents_1() {
39
- var token, hasNext, page, prevToken;
40
- return __generator(this, function (_a) {
41
- switch (_a.label) {
42
- case 0:
43
- token = config.startingToken || undefined;
44
- hasNext = true;
45
- _a.label = 1;
46
- case 1:
47
- if (!hasNext) return [3, 9];
48
- input.NextToken = token;
49
- input["MaxResults"] = config.pageSize;
50
- if (!(config.client instanceof DataSync)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
- case 2:
53
- page = _a.sent();
54
- return [3, 6];
55
- case 3:
56
- if (!(config.client instanceof DataSyncClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
- case 4:
59
- page = _a.sent();
60
- return [3, 6];
61
- case 5: throw new Error("Invalid client, expected DataSync | DataSyncClient");
62
- case 6: return [4, __await(page)];
63
- case 7: return [4, _a.sent()];
64
- case 8:
65
- _a.sent();
66
- prevToken = token;
67
- token = page.NextToken;
68
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
- return [3, 1];
70
- case 9: return [4, __await(undefined)];
71
- case 10: return [2, _a.sent()];
72
- }
73
- });
74
- });
31
+ return undefined;
75
32
  }