@aws-sdk/client-outposts 3.181.0 → 3.183.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 (44) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Outposts.js +106 -113
  3. package/dist-es/OutpostsClient.js +22 -28
  4. package/dist-es/commands/CancelOrderCommand.js +21 -28
  5. package/dist-es/commands/CreateOrderCommand.js +21 -28
  6. package/dist-es/commands/CreateOutpostCommand.js +21 -28
  7. package/dist-es/commands/CreateSiteCommand.js +21 -28
  8. package/dist-es/commands/DeleteOutpostCommand.js +21 -28
  9. package/dist-es/commands/DeleteSiteCommand.js +21 -28
  10. package/dist-es/commands/GetCatalogItemCommand.js +21 -28
  11. package/dist-es/commands/GetConnectionCommand.js +21 -28
  12. package/dist-es/commands/GetOrderCommand.js +21 -28
  13. package/dist-es/commands/GetOutpostCommand.js +21 -28
  14. package/dist-es/commands/GetOutpostInstanceTypesCommand.js +21 -28
  15. package/dist-es/commands/GetSiteAddressCommand.js +21 -28
  16. package/dist-es/commands/GetSiteCommand.js +21 -28
  17. package/dist-es/commands/ListAssetsCommand.js +21 -28
  18. package/dist-es/commands/ListCatalogItemsCommand.js +21 -28
  19. package/dist-es/commands/ListOrdersCommand.js +21 -28
  20. package/dist-es/commands/ListOutpostsCommand.js +21 -28
  21. package/dist-es/commands/ListSitesCommand.js +21 -28
  22. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  23. package/dist-es/commands/StartConnectionCommand.js +21 -28
  24. package/dist-es/commands/TagResourceCommand.js +21 -28
  25. package/dist-es/commands/UntagResourceCommand.js +21 -28
  26. package/dist-es/commands/UpdateOutpostCommand.js +21 -28
  27. package/dist-es/commands/UpdateSiteAddressCommand.js +21 -28
  28. package/dist-es/commands/UpdateSiteCommand.js +21 -28
  29. package/dist-es/commands/UpdateSiteRackPhysicalPropertiesCommand.js +21 -28
  30. package/dist-es/endpoints.js +8 -8
  31. package/dist-es/models/OutpostsServiceException.js +5 -10
  32. package/dist-es/models/models_0.js +281 -144
  33. package/dist-es/pagination/GetOutpostInstanceTypesPaginator.js +25 -68
  34. package/dist-es/pagination/ListAssetsPaginator.js +25 -68
  35. package/dist-es/pagination/ListCatalogItemsPaginator.js +25 -68
  36. package/dist-es/pagination/ListOrdersPaginator.js +25 -68
  37. package/dist-es/pagination/ListOutpostsPaginator.js +25 -68
  38. package/dist-es/pagination/ListSitesPaginator.js +25 -68
  39. package/dist-es/protocols/Aws_restJson1.js +1870 -2638
  40. package/dist-es/runtimeConfig.browser.js +26 -12
  41. package/dist-es/runtimeConfig.js +30 -12
  42. package/dist-es/runtimeConfig.native.js +8 -5
  43. package/dist-es/runtimeConfig.shared.js +8 -11
  44. package/package.json +33 -33
@@ -1,18 +1,17 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { OutpostsServiceException as __BaseException } from "./OutpostsServiceException";
3
- var AccessDeniedException = (function (_super) {
4
- __extends(AccessDeniedException, _super);
5
- function AccessDeniedException(opts) {
6
- var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
7
- _this.name = "AccessDeniedException";
8
- _this.$fault = "client";
9
- Object.setPrototypeOf(_this, AccessDeniedException.prototype);
10
- _this.Message = opts.Message;
11
- return _this;
2
+ export class AccessDeniedException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "AccessDeniedException",
6
+ $fault: "client",
7
+ ...opts,
8
+ });
9
+ this.name = "AccessDeniedException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ this.Message = opts.Message;
12
13
  }
13
- return AccessDeniedException;
14
- }(__BaseException));
15
- export { AccessDeniedException };
14
+ }
16
15
  export var AddressType;
17
16
  (function (AddressType) {
18
17
  AddressType["OPERATING_ADDRESS"] = "OPERATING_ADDRESS";
@@ -27,60 +26,60 @@ export var ResourceType;
27
26
  ResourceType["ORDER"] = "ORDER";
28
27
  ResourceType["OUTPOST"] = "OUTPOST";
29
28
  })(ResourceType || (ResourceType = {}));
30
- var ConflictException = (function (_super) {
31
- __extends(ConflictException, _super);
32
- function ConflictException(opts) {
33
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
34
- _this.name = "ConflictException";
35
- _this.$fault = "client";
36
- Object.setPrototypeOf(_this, ConflictException.prototype);
37
- _this.Message = opts.Message;
38
- _this.ResourceId = opts.ResourceId;
39
- _this.ResourceType = opts.ResourceType;
40
- return _this;
29
+ export class ConflictException extends __BaseException {
30
+ constructor(opts) {
31
+ super({
32
+ name: "ConflictException",
33
+ $fault: "client",
34
+ ...opts,
35
+ });
36
+ this.name = "ConflictException";
37
+ this.$fault = "client";
38
+ Object.setPrototypeOf(this, ConflictException.prototype);
39
+ this.Message = opts.Message;
40
+ this.ResourceId = opts.ResourceId;
41
+ this.ResourceType = opts.ResourceType;
41
42
  }
42
- return ConflictException;
43
- }(__BaseException));
44
- export { ConflictException };
45
- var InternalServerException = (function (_super) {
46
- __extends(InternalServerException, _super);
47
- function InternalServerException(opts) {
48
- var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
49
- _this.name = "InternalServerException";
50
- _this.$fault = "server";
51
- Object.setPrototypeOf(_this, InternalServerException.prototype);
52
- _this.Message = opts.Message;
53
- return _this;
43
+ }
44
+ export class InternalServerException extends __BaseException {
45
+ constructor(opts) {
46
+ super({
47
+ name: "InternalServerException",
48
+ $fault: "server",
49
+ ...opts,
50
+ });
51
+ this.name = "InternalServerException";
52
+ this.$fault = "server";
53
+ Object.setPrototypeOf(this, InternalServerException.prototype);
54
+ this.Message = opts.Message;
54
55
  }
55
- return InternalServerException;
56
- }(__BaseException));
57
- export { InternalServerException };
58
- var NotFoundException = (function (_super) {
59
- __extends(NotFoundException, _super);
60
- function NotFoundException(opts) {
61
- var _this = _super.call(this, __assign({ name: "NotFoundException", $fault: "client" }, opts)) || this;
62
- _this.name = "NotFoundException";
63
- _this.$fault = "client";
64
- Object.setPrototypeOf(_this, NotFoundException.prototype);
65
- _this.Message = opts.Message;
66
- return _this;
56
+ }
57
+ export class NotFoundException extends __BaseException {
58
+ constructor(opts) {
59
+ super({
60
+ name: "NotFoundException",
61
+ $fault: "client",
62
+ ...opts,
63
+ });
64
+ this.name = "NotFoundException";
65
+ this.$fault = "client";
66
+ Object.setPrototypeOf(this, NotFoundException.prototype);
67
+ this.Message = opts.Message;
67
68
  }
68
- return NotFoundException;
69
- }(__BaseException));
70
- export { NotFoundException };
71
- var ValidationException = (function (_super) {
72
- __extends(ValidationException, _super);
73
- function ValidationException(opts) {
74
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
75
- _this.name = "ValidationException";
76
- _this.$fault = "client";
77
- Object.setPrototypeOf(_this, ValidationException.prototype);
78
- _this.Message = opts.Message;
79
- return _this;
69
+ }
70
+ export class ValidationException extends __BaseException {
71
+ constructor(opts) {
72
+ super({
73
+ name: "ValidationException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ this.name = "ValidationException";
78
+ this.$fault = "client";
79
+ Object.setPrototypeOf(this, ValidationException.prototype);
80
+ this.Message = opts.Message;
80
81
  }
81
- return ValidationException;
82
- }(__BaseException));
83
- export { ValidationException };
82
+ }
84
83
  export var CatalogItemStatus;
85
84
  (function (CatalogItemStatus) {
86
85
  CatalogItemStatus["AVAILABLE"] = "AVAILABLE";
@@ -137,19 +136,19 @@ export var OrderStatus;
137
136
  OrderStatus["PROCESSING"] = "PROCESSING";
138
137
  OrderStatus["RECEIVED"] = "RECEIVED";
139
138
  })(OrderStatus || (OrderStatus = {}));
140
- var ServiceQuotaExceededException = (function (_super) {
141
- __extends(ServiceQuotaExceededException, _super);
142
- function ServiceQuotaExceededException(opts) {
143
- var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
144
- _this.name = "ServiceQuotaExceededException";
145
- _this.$fault = "client";
146
- Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
147
- _this.Message = opts.Message;
148
- return _this;
139
+ export class ServiceQuotaExceededException extends __BaseException {
140
+ constructor(opts) {
141
+ super({
142
+ name: "ServiceQuotaExceededException",
143
+ $fault: "client",
144
+ ...opts,
145
+ });
146
+ this.name = "ServiceQuotaExceededException";
147
+ this.$fault = "client";
148
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
149
+ this.Message = opts.Message;
149
150
  }
150
- return ServiceQuotaExceededException;
151
- }(__BaseException));
152
- export { ServiceQuotaExceededException };
151
+ }
153
152
  export var SupportedHardwareType;
154
153
  (function (SupportedHardwareType) {
155
154
  SupportedHardwareType["RACK"] = "RACK";
@@ -232,72 +231,210 @@ export var OrderType;
232
231
  OrderType["OUTPOST"] = "OUTPOST";
233
232
  OrderType["REPLACEMENT"] = "REPLACEMENT";
234
233
  })(OrderType || (OrderType = {}));
235
- export var AddressFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
236
- export var AssetLocationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
237
- export var ComputeAttributesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
238
- export var AssetInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
239
- export var CancelOrderInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
240
- export var CancelOrderOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
241
- export var EC2CapacityFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
242
- export var CatalogItemFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
243
- export var ConnectionDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
244
- export var LineItemRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
245
- export var CreateOrderInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
246
- export var LineItemAssetInformationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
247
- export var ShipmentInformationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
248
- export var LineItemFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
249
- export var OrderFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
250
- export var CreateOrderOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
251
- export var CreateOutpostInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
252
- export var OutpostFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
253
- export var CreateOutpostOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
254
- export var RackPhysicalPropertiesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
255
- export var CreateSiteInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
256
- export var SiteFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
257
- export var CreateSiteOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
258
- export var DeleteOutpostInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
259
- export var DeleteOutpostOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
260
- export var DeleteSiteInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
261
- export var DeleteSiteOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
262
- export var GetCatalogItemInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
263
- export var GetCatalogItemOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
264
- export var GetConnectionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
265
- export var GetConnectionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
266
- export var GetOrderInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
267
- export var GetOrderOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
268
- export var GetOutpostInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
269
- export var GetOutpostOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
270
- export var GetOutpostInstanceTypesInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
271
- export var InstanceTypeItemFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
272
- export var GetOutpostInstanceTypesOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
273
- export var GetSiteInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
274
- export var GetSiteOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
275
- export var GetSiteAddressInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
276
- export var GetSiteAddressOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
277
- export var ListAssetsInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
278
- export var ListAssetsOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
279
- export var ListCatalogItemsInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
280
- export var ListCatalogItemsOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
281
- export var ListOrdersInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
282
- export var OrderSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
283
- export var ListOrdersOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
284
- export var ListOutpostsInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
285
- export var ListOutpostsOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
286
- export var ListSitesInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
287
- export var ListSitesOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
288
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
289
- export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
290
- export var StartConnectionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
291
- export var StartConnectionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
292
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
293
- export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
294
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
295
- export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
296
- export var UpdateOutpostInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
297
- export var UpdateOutpostOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
298
- export var UpdateSiteInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
299
- export var UpdateSiteOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
300
- export var UpdateSiteAddressInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
301
- export var UpdateSiteAddressOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
302
- export var UpdateSiteRackPhysicalPropertiesInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
303
- export var UpdateSiteRackPhysicalPropertiesOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
234
+ export const AddressFilterSensitiveLog = (obj) => ({
235
+ ...obj,
236
+ });
237
+ export const AssetLocationFilterSensitiveLog = (obj) => ({
238
+ ...obj,
239
+ });
240
+ export const ComputeAttributesFilterSensitiveLog = (obj) => ({
241
+ ...obj,
242
+ });
243
+ export const AssetInfoFilterSensitiveLog = (obj) => ({
244
+ ...obj,
245
+ });
246
+ export const CancelOrderInputFilterSensitiveLog = (obj) => ({
247
+ ...obj,
248
+ });
249
+ export const CancelOrderOutputFilterSensitiveLog = (obj) => ({
250
+ ...obj,
251
+ });
252
+ export const EC2CapacityFilterSensitiveLog = (obj) => ({
253
+ ...obj,
254
+ });
255
+ export const CatalogItemFilterSensitiveLog = (obj) => ({
256
+ ...obj,
257
+ });
258
+ export const ConnectionDetailsFilterSensitiveLog = (obj) => ({
259
+ ...obj,
260
+ });
261
+ export const LineItemRequestFilterSensitiveLog = (obj) => ({
262
+ ...obj,
263
+ });
264
+ export const CreateOrderInputFilterSensitiveLog = (obj) => ({
265
+ ...obj,
266
+ });
267
+ export const LineItemAssetInformationFilterSensitiveLog = (obj) => ({
268
+ ...obj,
269
+ });
270
+ export const ShipmentInformationFilterSensitiveLog = (obj) => ({
271
+ ...obj,
272
+ });
273
+ export const LineItemFilterSensitiveLog = (obj) => ({
274
+ ...obj,
275
+ });
276
+ export const OrderFilterSensitiveLog = (obj) => ({
277
+ ...obj,
278
+ });
279
+ export const CreateOrderOutputFilterSensitiveLog = (obj) => ({
280
+ ...obj,
281
+ });
282
+ export const CreateOutpostInputFilterSensitiveLog = (obj) => ({
283
+ ...obj,
284
+ });
285
+ export const OutpostFilterSensitiveLog = (obj) => ({
286
+ ...obj,
287
+ });
288
+ export const CreateOutpostOutputFilterSensitiveLog = (obj) => ({
289
+ ...obj,
290
+ });
291
+ export const RackPhysicalPropertiesFilterSensitiveLog = (obj) => ({
292
+ ...obj,
293
+ });
294
+ export const CreateSiteInputFilterSensitiveLog = (obj) => ({
295
+ ...obj,
296
+ });
297
+ export const SiteFilterSensitiveLog = (obj) => ({
298
+ ...obj,
299
+ });
300
+ export const CreateSiteOutputFilterSensitiveLog = (obj) => ({
301
+ ...obj,
302
+ });
303
+ export const DeleteOutpostInputFilterSensitiveLog = (obj) => ({
304
+ ...obj,
305
+ });
306
+ export const DeleteOutpostOutputFilterSensitiveLog = (obj) => ({
307
+ ...obj,
308
+ });
309
+ export const DeleteSiteInputFilterSensitiveLog = (obj) => ({
310
+ ...obj,
311
+ });
312
+ export const DeleteSiteOutputFilterSensitiveLog = (obj) => ({
313
+ ...obj,
314
+ });
315
+ export const GetCatalogItemInputFilterSensitiveLog = (obj) => ({
316
+ ...obj,
317
+ });
318
+ export const GetCatalogItemOutputFilterSensitiveLog = (obj) => ({
319
+ ...obj,
320
+ });
321
+ export const GetConnectionRequestFilterSensitiveLog = (obj) => ({
322
+ ...obj,
323
+ });
324
+ export const GetConnectionResponseFilterSensitiveLog = (obj) => ({
325
+ ...obj,
326
+ });
327
+ export const GetOrderInputFilterSensitiveLog = (obj) => ({
328
+ ...obj,
329
+ });
330
+ export const GetOrderOutputFilterSensitiveLog = (obj) => ({
331
+ ...obj,
332
+ });
333
+ export const GetOutpostInputFilterSensitiveLog = (obj) => ({
334
+ ...obj,
335
+ });
336
+ export const GetOutpostOutputFilterSensitiveLog = (obj) => ({
337
+ ...obj,
338
+ });
339
+ export const GetOutpostInstanceTypesInputFilterSensitiveLog = (obj) => ({
340
+ ...obj,
341
+ });
342
+ export const InstanceTypeItemFilterSensitiveLog = (obj) => ({
343
+ ...obj,
344
+ });
345
+ export const GetOutpostInstanceTypesOutputFilterSensitiveLog = (obj) => ({
346
+ ...obj,
347
+ });
348
+ export const GetSiteInputFilterSensitiveLog = (obj) => ({
349
+ ...obj,
350
+ });
351
+ export const GetSiteOutputFilterSensitiveLog = (obj) => ({
352
+ ...obj,
353
+ });
354
+ export const GetSiteAddressInputFilterSensitiveLog = (obj) => ({
355
+ ...obj,
356
+ });
357
+ export const GetSiteAddressOutputFilterSensitiveLog = (obj) => ({
358
+ ...obj,
359
+ });
360
+ export const ListAssetsInputFilterSensitiveLog = (obj) => ({
361
+ ...obj,
362
+ });
363
+ export const ListAssetsOutputFilterSensitiveLog = (obj) => ({
364
+ ...obj,
365
+ });
366
+ export const ListCatalogItemsInputFilterSensitiveLog = (obj) => ({
367
+ ...obj,
368
+ });
369
+ export const ListCatalogItemsOutputFilterSensitiveLog = (obj) => ({
370
+ ...obj,
371
+ });
372
+ export const ListOrdersInputFilterSensitiveLog = (obj) => ({
373
+ ...obj,
374
+ });
375
+ export const OrderSummaryFilterSensitiveLog = (obj) => ({
376
+ ...obj,
377
+ });
378
+ export const ListOrdersOutputFilterSensitiveLog = (obj) => ({
379
+ ...obj,
380
+ });
381
+ export const ListOutpostsInputFilterSensitiveLog = (obj) => ({
382
+ ...obj,
383
+ });
384
+ export const ListOutpostsOutputFilterSensitiveLog = (obj) => ({
385
+ ...obj,
386
+ });
387
+ export const ListSitesInputFilterSensitiveLog = (obj) => ({
388
+ ...obj,
389
+ });
390
+ export const ListSitesOutputFilterSensitiveLog = (obj) => ({
391
+ ...obj,
392
+ });
393
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
394
+ ...obj,
395
+ });
396
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
397
+ ...obj,
398
+ });
399
+ export const StartConnectionRequestFilterSensitiveLog = (obj) => ({
400
+ ...obj,
401
+ });
402
+ export const StartConnectionResponseFilterSensitiveLog = (obj) => ({
403
+ ...obj,
404
+ });
405
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
406
+ ...obj,
407
+ });
408
+ export const TagResourceResponseFilterSensitiveLog = (obj) => ({
409
+ ...obj,
410
+ });
411
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
412
+ ...obj,
413
+ });
414
+ export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
415
+ ...obj,
416
+ });
417
+ export const UpdateOutpostInputFilterSensitiveLog = (obj) => ({
418
+ ...obj,
419
+ });
420
+ export const UpdateOutpostOutputFilterSensitiveLog = (obj) => ({
421
+ ...obj,
422
+ });
423
+ export const UpdateSiteInputFilterSensitiveLog = (obj) => ({
424
+ ...obj,
425
+ });
426
+ export const UpdateSiteOutputFilterSensitiveLog = (obj) => ({
427
+ ...obj,
428
+ });
429
+ export const UpdateSiteAddressInputFilterSensitiveLog = (obj) => ({
430
+ ...obj,
431
+ });
432
+ export const UpdateSiteAddressOutputFilterSensitiveLog = (obj) => ({
433
+ ...obj,
434
+ });
435
+ export const UpdateSiteRackPhysicalPropertiesInputFilterSensitiveLog = (obj) => ({
436
+ ...obj,
437
+ });
438
+ export const UpdateSiteRackPhysicalPropertiesOutputFilterSensitiveLog = (obj) => ({
439
+ ...obj,
440
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { GetOutpostInstanceTypesCommand, } from "../commands/GetOutpostInstanceTypesCommand";
3
2
  import { Outposts } from "../Outposts";
4
3
  import { OutpostsClient } from "../OutpostsClient";
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 GetOutpostInstanceTypesCommand(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 GetOutpostInstanceTypesCommand(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.getOutpostInstanceTypes.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.getOutpostInstanceTypes(input, ...args);
32
9
  };
33
- export function paginateGetOutpostInstanceTypes(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateGetOutpostInstanceTypes(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 Outposts) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof OutpostsClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected Outposts | OutpostsClient");
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 paginateGetOutpostInstanceTypes_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 Outposts)) 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 OutpostsClient)) 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 Outposts | OutpostsClient");
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
  }
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListAssetsCommand } from "../commands/ListAssetsCommand";
3
2
  import { Outposts } from "../Outposts";
4
3
  import { OutpostsClient } from "../OutpostsClient";
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 ListAssetsCommand(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 ListAssetsCommand(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.listAssets.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.listAssets(input, ...args);
32
9
  };
33
- export function paginateListAssets(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListAssets(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 Outposts) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof OutpostsClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected Outposts | OutpostsClient");
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 paginateListAssets_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 Outposts)) 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 OutpostsClient)) 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 Outposts | OutpostsClient");
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
  }