@aws-sdk/client-clouddirectory 3.1068.0 → 3.1070.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.
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CloudDirectoryServiceException = exports.__ServiceException = void 0;
4
- const client_1 = require("@smithy/core/client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
6
- class CloudDirectoryServiceException extends client_1.ServiceException {
1
+ const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
+ exports.__ServiceException = __ServiceException;
3
+ exports.CloudDirectoryServiceException = class CloudDirectoryServiceException extends __ServiceException {
7
4
  constructor(options) {
8
5
  super(options);
9
6
  Object.setPrototypeOf(this, CloudDirectoryServiceException.prototype);
10
7
  }
11
- }
12
- exports.CloudDirectoryServiceException = CloudDirectoryServiceException;
8
+ };
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IncompatibleSchemaException = exports.InvalidFacetUpdateException = exports.InvalidSchemaDocException = exports.SchemaAlreadyPublishedException = exports.InvalidTaggingRequestException = exports.CannotListParentOfRootException = exports.InvalidNextTokenException = exports.NotNodeException = exports.ObjectAlreadyDetachedException = exports.StillContainsLinksException = exports.ObjectNotDetachedException = exports.FacetNotFoundException = exports.FacetInUseException = exports.DirectoryNotDisabledException = exports.DirectoryDeletedException = exports.UnsupportedIndexTypeException = exports.InvalidRuleException = exports.FacetAlreadyExistsException = exports.DirectoryAlreadyExistsException = exports.BatchWriteException = exports.NotIndexException = exports.IndexedAttributeMissingException = exports.NotPolicyException = exports.LinkNameAlreadyInUseException = exports.SchemaAlreadyExistsException = exports.InvalidAttachmentException = exports.ValidationException = exports.RetryableConflictException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.InvalidArnException = exports.InternalServiceException = exports.FacetValidationException = exports.DirectoryNotEnabledException = exports.AccessDeniedException = void 0;
4
- const CloudDirectoryServiceException_1 = require("./CloudDirectoryServiceException");
5
- class AccessDeniedException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
1
+ const { CloudDirectoryServiceException: __BaseException } = require("./CloudDirectoryServiceException");
2
+ exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
6
3
  name = "AccessDeniedException";
7
4
  $fault = "client";
8
5
  Message;
@@ -15,9 +12,8 @@ class AccessDeniedException extends CloudDirectoryServiceException_1.CloudDirect
15
12
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
13
  this.Message = opts.Message;
17
14
  }
18
- }
19
- exports.AccessDeniedException = AccessDeniedException;
20
- class DirectoryNotEnabledException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
15
+ };
16
+ exports.DirectoryNotEnabledException = class DirectoryNotEnabledException extends __BaseException {
21
17
  name = "DirectoryNotEnabledException";
22
18
  $fault = "client";
23
19
  Message;
@@ -30,9 +26,8 @@ class DirectoryNotEnabledException extends CloudDirectoryServiceException_1.Clou
30
26
  Object.setPrototypeOf(this, DirectoryNotEnabledException.prototype);
31
27
  this.Message = opts.Message;
32
28
  }
33
- }
34
- exports.DirectoryNotEnabledException = DirectoryNotEnabledException;
35
- class FacetValidationException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
29
+ };
30
+ exports.FacetValidationException = class FacetValidationException extends __BaseException {
36
31
  name = "FacetValidationException";
37
32
  $fault = "client";
38
33
  Message;
@@ -45,9 +40,8 @@ class FacetValidationException extends CloudDirectoryServiceException_1.CloudDir
45
40
  Object.setPrototypeOf(this, FacetValidationException.prototype);
46
41
  this.Message = opts.Message;
47
42
  }
48
- }
49
- exports.FacetValidationException = FacetValidationException;
50
- class InternalServiceException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
43
+ };
44
+ exports.InternalServiceException = class InternalServiceException extends __BaseException {
51
45
  name = "InternalServiceException";
52
46
  $fault = "server";
53
47
  Message;
@@ -60,9 +54,8 @@ class InternalServiceException extends CloudDirectoryServiceException_1.CloudDir
60
54
  Object.setPrototypeOf(this, InternalServiceException.prototype);
61
55
  this.Message = opts.Message;
62
56
  }
63
- }
64
- exports.InternalServiceException = InternalServiceException;
65
- class InvalidArnException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
57
+ };
58
+ exports.InvalidArnException = class InvalidArnException extends __BaseException {
66
59
  name = "InvalidArnException";
67
60
  $fault = "client";
68
61
  Message;
@@ -75,9 +68,8 @@ class InvalidArnException extends CloudDirectoryServiceException_1.CloudDirector
75
68
  Object.setPrototypeOf(this, InvalidArnException.prototype);
76
69
  this.Message = opts.Message;
77
70
  }
78
- }
79
- exports.InvalidArnException = InvalidArnException;
80
- class LimitExceededException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
71
+ };
72
+ exports.LimitExceededException = class LimitExceededException extends __BaseException {
81
73
  name = "LimitExceededException";
82
74
  $fault = "client";
83
75
  Message;
@@ -90,9 +82,8 @@ class LimitExceededException extends CloudDirectoryServiceException_1.CloudDirec
90
82
  Object.setPrototypeOf(this, LimitExceededException.prototype);
91
83
  this.Message = opts.Message;
92
84
  }
93
- }
94
- exports.LimitExceededException = LimitExceededException;
95
- class ResourceNotFoundException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
85
+ };
86
+ exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
96
87
  name = "ResourceNotFoundException";
97
88
  $fault = "client";
98
89
  Message;
@@ -105,9 +96,8 @@ class ResourceNotFoundException extends CloudDirectoryServiceException_1.CloudDi
105
96
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
106
97
  this.Message = opts.Message;
107
98
  }
108
- }
109
- exports.ResourceNotFoundException = ResourceNotFoundException;
110
- class RetryableConflictException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
99
+ };
100
+ exports.RetryableConflictException = class RetryableConflictException extends __BaseException {
111
101
  name = "RetryableConflictException";
112
102
  $fault = "client";
113
103
  Message;
@@ -120,9 +110,8 @@ class RetryableConflictException extends CloudDirectoryServiceException_1.CloudD
120
110
  Object.setPrototypeOf(this, RetryableConflictException.prototype);
121
111
  this.Message = opts.Message;
122
112
  }
123
- }
124
- exports.RetryableConflictException = RetryableConflictException;
125
- class ValidationException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
113
+ };
114
+ exports.ValidationException = class ValidationException extends __BaseException {
126
115
  name = "ValidationException";
127
116
  $fault = "client";
128
117
  Message;
@@ -135,9 +124,8 @@ class ValidationException extends CloudDirectoryServiceException_1.CloudDirector
135
124
  Object.setPrototypeOf(this, ValidationException.prototype);
136
125
  this.Message = opts.Message;
137
126
  }
138
- }
139
- exports.ValidationException = ValidationException;
140
- class InvalidAttachmentException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
127
+ };
128
+ exports.InvalidAttachmentException = class InvalidAttachmentException extends __BaseException {
141
129
  name = "InvalidAttachmentException";
142
130
  $fault = "client";
143
131
  Message;
@@ -150,9 +138,8 @@ class InvalidAttachmentException extends CloudDirectoryServiceException_1.CloudD
150
138
  Object.setPrototypeOf(this, InvalidAttachmentException.prototype);
151
139
  this.Message = opts.Message;
152
140
  }
153
- }
154
- exports.InvalidAttachmentException = InvalidAttachmentException;
155
- class SchemaAlreadyExistsException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
141
+ };
142
+ exports.SchemaAlreadyExistsException = class SchemaAlreadyExistsException extends __BaseException {
156
143
  name = "SchemaAlreadyExistsException";
157
144
  $fault = "client";
158
145
  Message;
@@ -165,9 +152,8 @@ class SchemaAlreadyExistsException extends CloudDirectoryServiceException_1.Clou
165
152
  Object.setPrototypeOf(this, SchemaAlreadyExistsException.prototype);
166
153
  this.Message = opts.Message;
167
154
  }
168
- }
169
- exports.SchemaAlreadyExistsException = SchemaAlreadyExistsException;
170
- class LinkNameAlreadyInUseException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
155
+ };
156
+ exports.LinkNameAlreadyInUseException = class LinkNameAlreadyInUseException extends __BaseException {
171
157
  name = "LinkNameAlreadyInUseException";
172
158
  $fault = "client";
173
159
  Message;
@@ -180,9 +166,8 @@ class LinkNameAlreadyInUseException extends CloudDirectoryServiceException_1.Clo
180
166
  Object.setPrototypeOf(this, LinkNameAlreadyInUseException.prototype);
181
167
  this.Message = opts.Message;
182
168
  }
183
- }
184
- exports.LinkNameAlreadyInUseException = LinkNameAlreadyInUseException;
185
- class NotPolicyException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
169
+ };
170
+ exports.NotPolicyException = class NotPolicyException extends __BaseException {
186
171
  name = "NotPolicyException";
187
172
  $fault = "client";
188
173
  Message;
@@ -195,9 +180,8 @@ class NotPolicyException extends CloudDirectoryServiceException_1.CloudDirectory
195
180
  Object.setPrototypeOf(this, NotPolicyException.prototype);
196
181
  this.Message = opts.Message;
197
182
  }
198
- }
199
- exports.NotPolicyException = NotPolicyException;
200
- class IndexedAttributeMissingException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
183
+ };
184
+ exports.IndexedAttributeMissingException = class IndexedAttributeMissingException extends __BaseException {
201
185
  name = "IndexedAttributeMissingException";
202
186
  $fault = "client";
203
187
  Message;
@@ -210,9 +194,8 @@ class IndexedAttributeMissingException extends CloudDirectoryServiceException_1.
210
194
  Object.setPrototypeOf(this, IndexedAttributeMissingException.prototype);
211
195
  this.Message = opts.Message;
212
196
  }
213
- }
214
- exports.IndexedAttributeMissingException = IndexedAttributeMissingException;
215
- class NotIndexException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
197
+ };
198
+ exports.NotIndexException = class NotIndexException extends __BaseException {
216
199
  name = "NotIndexException";
217
200
  $fault = "client";
218
201
  Message;
@@ -225,9 +208,8 @@ class NotIndexException extends CloudDirectoryServiceException_1.CloudDirectoryS
225
208
  Object.setPrototypeOf(this, NotIndexException.prototype);
226
209
  this.Message = opts.Message;
227
210
  }
228
- }
229
- exports.NotIndexException = NotIndexException;
230
- class BatchWriteException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
211
+ };
212
+ exports.BatchWriteException = class BatchWriteException extends __BaseException {
231
213
  name = "BatchWriteException";
232
214
  $fault = "client";
233
215
  Index;
@@ -244,9 +226,8 @@ class BatchWriteException extends CloudDirectoryServiceException_1.CloudDirector
244
226
  this.Type = opts.Type;
245
227
  this.Message = opts.Message;
246
228
  }
247
- }
248
- exports.BatchWriteException = BatchWriteException;
249
- class DirectoryAlreadyExistsException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
229
+ };
230
+ exports.DirectoryAlreadyExistsException = class DirectoryAlreadyExistsException extends __BaseException {
250
231
  name = "DirectoryAlreadyExistsException";
251
232
  $fault = "client";
252
233
  Message;
@@ -259,9 +240,8 @@ class DirectoryAlreadyExistsException extends CloudDirectoryServiceException_1.C
259
240
  Object.setPrototypeOf(this, DirectoryAlreadyExistsException.prototype);
260
241
  this.Message = opts.Message;
261
242
  }
262
- }
263
- exports.DirectoryAlreadyExistsException = DirectoryAlreadyExistsException;
264
- class FacetAlreadyExistsException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
243
+ };
244
+ exports.FacetAlreadyExistsException = class FacetAlreadyExistsException extends __BaseException {
265
245
  name = "FacetAlreadyExistsException";
266
246
  $fault = "client";
267
247
  Message;
@@ -274,9 +254,8 @@ class FacetAlreadyExistsException extends CloudDirectoryServiceException_1.Cloud
274
254
  Object.setPrototypeOf(this, FacetAlreadyExistsException.prototype);
275
255
  this.Message = opts.Message;
276
256
  }
277
- }
278
- exports.FacetAlreadyExistsException = FacetAlreadyExistsException;
279
- class InvalidRuleException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
257
+ };
258
+ exports.InvalidRuleException = class InvalidRuleException extends __BaseException {
280
259
  name = "InvalidRuleException";
281
260
  $fault = "client";
282
261
  Message;
@@ -289,9 +268,8 @@ class InvalidRuleException extends CloudDirectoryServiceException_1.CloudDirecto
289
268
  Object.setPrototypeOf(this, InvalidRuleException.prototype);
290
269
  this.Message = opts.Message;
291
270
  }
292
- }
293
- exports.InvalidRuleException = InvalidRuleException;
294
- class UnsupportedIndexTypeException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
271
+ };
272
+ exports.UnsupportedIndexTypeException = class UnsupportedIndexTypeException extends __BaseException {
295
273
  name = "UnsupportedIndexTypeException";
296
274
  $fault = "client";
297
275
  Message;
@@ -304,9 +282,8 @@ class UnsupportedIndexTypeException extends CloudDirectoryServiceException_1.Clo
304
282
  Object.setPrototypeOf(this, UnsupportedIndexTypeException.prototype);
305
283
  this.Message = opts.Message;
306
284
  }
307
- }
308
- exports.UnsupportedIndexTypeException = UnsupportedIndexTypeException;
309
- class DirectoryDeletedException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
285
+ };
286
+ exports.DirectoryDeletedException = class DirectoryDeletedException extends __BaseException {
310
287
  name = "DirectoryDeletedException";
311
288
  $fault = "client";
312
289
  Message;
@@ -319,9 +296,8 @@ class DirectoryDeletedException extends CloudDirectoryServiceException_1.CloudDi
319
296
  Object.setPrototypeOf(this, DirectoryDeletedException.prototype);
320
297
  this.Message = opts.Message;
321
298
  }
322
- }
323
- exports.DirectoryDeletedException = DirectoryDeletedException;
324
- class DirectoryNotDisabledException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
299
+ };
300
+ exports.DirectoryNotDisabledException = class DirectoryNotDisabledException extends __BaseException {
325
301
  name = "DirectoryNotDisabledException";
326
302
  $fault = "client";
327
303
  Message;
@@ -334,9 +310,8 @@ class DirectoryNotDisabledException extends CloudDirectoryServiceException_1.Clo
334
310
  Object.setPrototypeOf(this, DirectoryNotDisabledException.prototype);
335
311
  this.Message = opts.Message;
336
312
  }
337
- }
338
- exports.DirectoryNotDisabledException = DirectoryNotDisabledException;
339
- class FacetInUseException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
313
+ };
314
+ exports.FacetInUseException = class FacetInUseException extends __BaseException {
340
315
  name = "FacetInUseException";
341
316
  $fault = "client";
342
317
  Message;
@@ -349,9 +324,8 @@ class FacetInUseException extends CloudDirectoryServiceException_1.CloudDirector
349
324
  Object.setPrototypeOf(this, FacetInUseException.prototype);
350
325
  this.Message = opts.Message;
351
326
  }
352
- }
353
- exports.FacetInUseException = FacetInUseException;
354
- class FacetNotFoundException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
327
+ };
328
+ exports.FacetNotFoundException = class FacetNotFoundException extends __BaseException {
355
329
  name = "FacetNotFoundException";
356
330
  $fault = "client";
357
331
  Message;
@@ -364,9 +338,8 @@ class FacetNotFoundException extends CloudDirectoryServiceException_1.CloudDirec
364
338
  Object.setPrototypeOf(this, FacetNotFoundException.prototype);
365
339
  this.Message = opts.Message;
366
340
  }
367
- }
368
- exports.FacetNotFoundException = FacetNotFoundException;
369
- class ObjectNotDetachedException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
341
+ };
342
+ exports.ObjectNotDetachedException = class ObjectNotDetachedException extends __BaseException {
370
343
  name = "ObjectNotDetachedException";
371
344
  $fault = "client";
372
345
  Message;
@@ -379,9 +352,8 @@ class ObjectNotDetachedException extends CloudDirectoryServiceException_1.CloudD
379
352
  Object.setPrototypeOf(this, ObjectNotDetachedException.prototype);
380
353
  this.Message = opts.Message;
381
354
  }
382
- }
383
- exports.ObjectNotDetachedException = ObjectNotDetachedException;
384
- class StillContainsLinksException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
355
+ };
356
+ exports.StillContainsLinksException = class StillContainsLinksException extends __BaseException {
385
357
  name = "StillContainsLinksException";
386
358
  $fault = "client";
387
359
  Message;
@@ -394,9 +366,8 @@ class StillContainsLinksException extends CloudDirectoryServiceException_1.Cloud
394
366
  Object.setPrototypeOf(this, StillContainsLinksException.prototype);
395
367
  this.Message = opts.Message;
396
368
  }
397
- }
398
- exports.StillContainsLinksException = StillContainsLinksException;
399
- class ObjectAlreadyDetachedException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
369
+ };
370
+ exports.ObjectAlreadyDetachedException = class ObjectAlreadyDetachedException extends __BaseException {
400
371
  name = "ObjectAlreadyDetachedException";
401
372
  $fault = "client";
402
373
  Message;
@@ -409,9 +380,8 @@ class ObjectAlreadyDetachedException extends CloudDirectoryServiceException_1.Cl
409
380
  Object.setPrototypeOf(this, ObjectAlreadyDetachedException.prototype);
410
381
  this.Message = opts.Message;
411
382
  }
412
- }
413
- exports.ObjectAlreadyDetachedException = ObjectAlreadyDetachedException;
414
- class NotNodeException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
383
+ };
384
+ exports.NotNodeException = class NotNodeException extends __BaseException {
415
385
  name = "NotNodeException";
416
386
  $fault = "client";
417
387
  Message;
@@ -424,9 +394,8 @@ class NotNodeException extends CloudDirectoryServiceException_1.CloudDirectorySe
424
394
  Object.setPrototypeOf(this, NotNodeException.prototype);
425
395
  this.Message = opts.Message;
426
396
  }
427
- }
428
- exports.NotNodeException = NotNodeException;
429
- class InvalidNextTokenException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
397
+ };
398
+ exports.InvalidNextTokenException = class InvalidNextTokenException extends __BaseException {
430
399
  name = "InvalidNextTokenException";
431
400
  $fault = "client";
432
401
  Message;
@@ -439,9 +408,8 @@ class InvalidNextTokenException extends CloudDirectoryServiceException_1.CloudDi
439
408
  Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
440
409
  this.Message = opts.Message;
441
410
  }
442
- }
443
- exports.InvalidNextTokenException = InvalidNextTokenException;
444
- class CannotListParentOfRootException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
411
+ };
412
+ exports.CannotListParentOfRootException = class CannotListParentOfRootException extends __BaseException {
445
413
  name = "CannotListParentOfRootException";
446
414
  $fault = "client";
447
415
  Message;
@@ -454,9 +422,8 @@ class CannotListParentOfRootException extends CloudDirectoryServiceException_1.C
454
422
  Object.setPrototypeOf(this, CannotListParentOfRootException.prototype);
455
423
  this.Message = opts.Message;
456
424
  }
457
- }
458
- exports.CannotListParentOfRootException = CannotListParentOfRootException;
459
- class InvalidTaggingRequestException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
425
+ };
426
+ exports.InvalidTaggingRequestException = class InvalidTaggingRequestException extends __BaseException {
460
427
  name = "InvalidTaggingRequestException";
461
428
  $fault = "client";
462
429
  Message;
@@ -469,9 +436,8 @@ class InvalidTaggingRequestException extends CloudDirectoryServiceException_1.Cl
469
436
  Object.setPrototypeOf(this, InvalidTaggingRequestException.prototype);
470
437
  this.Message = opts.Message;
471
438
  }
472
- }
473
- exports.InvalidTaggingRequestException = InvalidTaggingRequestException;
474
- class SchemaAlreadyPublishedException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
439
+ };
440
+ exports.SchemaAlreadyPublishedException = class SchemaAlreadyPublishedException extends __BaseException {
475
441
  name = "SchemaAlreadyPublishedException";
476
442
  $fault = "client";
477
443
  Message;
@@ -484,9 +450,8 @@ class SchemaAlreadyPublishedException extends CloudDirectoryServiceException_1.C
484
450
  Object.setPrototypeOf(this, SchemaAlreadyPublishedException.prototype);
485
451
  this.Message = opts.Message;
486
452
  }
487
- }
488
- exports.SchemaAlreadyPublishedException = SchemaAlreadyPublishedException;
489
- class InvalidSchemaDocException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
453
+ };
454
+ exports.InvalidSchemaDocException = class InvalidSchemaDocException extends __BaseException {
490
455
  name = "InvalidSchemaDocException";
491
456
  $fault = "client";
492
457
  Message;
@@ -499,9 +464,8 @@ class InvalidSchemaDocException extends CloudDirectoryServiceException_1.CloudDi
499
464
  Object.setPrototypeOf(this, InvalidSchemaDocException.prototype);
500
465
  this.Message = opts.Message;
501
466
  }
502
- }
503
- exports.InvalidSchemaDocException = InvalidSchemaDocException;
504
- class InvalidFacetUpdateException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
467
+ };
468
+ exports.InvalidFacetUpdateException = class InvalidFacetUpdateException extends __BaseException {
505
469
  name = "InvalidFacetUpdateException";
506
470
  $fault = "client";
507
471
  Message;
@@ -514,9 +478,8 @@ class InvalidFacetUpdateException extends CloudDirectoryServiceException_1.Cloud
514
478
  Object.setPrototypeOf(this, InvalidFacetUpdateException.prototype);
515
479
  this.Message = opts.Message;
516
480
  }
517
- }
518
- exports.InvalidFacetUpdateException = InvalidFacetUpdateException;
519
- class IncompatibleSchemaException extends CloudDirectoryServiceException_1.CloudDirectoryServiceException {
481
+ };
482
+ exports.IncompatibleSchemaException = class IncompatibleSchemaException extends __BaseException {
520
483
  name = "IncompatibleSchemaException";
521
484
  $fault = "client";
522
485
  Message;
@@ -529,5 +492,4 @@ class IncompatibleSchemaException extends CloudDirectoryServiceException_1.Cloud
529
492
  Object.setPrototypeOf(this, IncompatibleSchemaException.prototype);
530
493
  this.Message = opts.Message;
531
494
  }
532
- }
533
- exports.IncompatibleSchemaException = IncompatibleSchemaException;
495
+ };
@@ -1,36 +1,32 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
- const client_1 = require("@aws-sdk/core/client");
8
- const client_2 = require("@smithy/core/client");
9
- const config_1 = require("@smithy/core/config");
10
- const retry_1 = require("@smithy/core/retry");
11
- const serde_1 = require("@smithy/core/serde");
12
- const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
13
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { Sha256 } = require("@aws-crypto/sha256-browser");
3
+ const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
4
+ const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
5
+ const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
6
+ const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
7
+ const { calculateBodyLength } = require("@smithy/core/serde");
8
+ const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
9
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
14
10
  const getRuntimeConfig = (config) => {
15
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
16
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
17
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
11
+ const defaultsMode = resolveDefaultsModeConfig(config);
12
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
13
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
14
  return {
19
15
  ...clientSharedValues,
20
16
  ...config,
21
17
  runtime: "browser",
22
18
  defaultsMode,
23
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
19
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
24
20
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
25
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
26
- maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
27
- region: config?.region ?? (0, client_2.invalidProvider)("Region is missing"),
28
- requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
29
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
30
- sha256: config?.sha256 ?? sha256_browser_1.Sha256,
31
- streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
32
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
33
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
21
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
22
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
23
+ region: config?.region ?? invalidProvider("Region is missing"),
24
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
+ sha256: config?.sha256 ?? Sha256,
27
+ streamCollector: config?.streamCollector ?? streamCollector,
28
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
34
30
  };
35
31
  };
36
32
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,23 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const client_1 = require("@aws-sdk/core/client");
7
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
8
- const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
- const client_2 = require("@smithy/core/client");
10
- const config_1 = require("@smithy/core/config");
11
- const retry_1 = require("@smithy/core/retry");
12
- const serde_1 = require("@smithy/core/serde");
13
- const node_http_handler_1 = require("@smithy/node-http-handler");
14
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
3
+ const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
4
+ const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
5
+ const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
6
+ const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
7
+ const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
8
+ const { calculateBodyLength, Hash } = require("@smithy/core/serde");
9
+ const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
10
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
15
11
  const getRuntimeConfig = (config) => {
16
- (0, client_2.emitWarningIfUnsupportedVersion)(process.version);
17
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
18
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
19
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
20
- (0, client_1.emitWarningIfUnsupportedVersion)(process.version);
12
+ emitWarningIfUnsupportedVersion(process.version);
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ awsCheckVersion(process.version);
21
17
  const loaderConfig = {
22
18
  profile: config?.profile,
23
19
  logger: clientSharedValues.logger,
@@ -27,23 +23,23 @@ const getRuntimeConfig = (config) => {
27
23
  ...config,
28
24
  runtime: "node",
29
25
  defaultsMode,
30
- authSchemePreference: config?.authSchemePreference ?? (0, config_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
31
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
32
- credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
33
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
34
- maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
35
- region: config?.region ?? (0, config_1.loadConfig)(config_1.NODE_REGION_CONFIG_OPTIONS, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
36
- requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
26
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
27
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
32
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
37
33
  retryMode: config?.retryMode ??
38
- (0, config_1.loadConfig)({
39
- ...retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
- default: async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE,
34
+ loadNodeConfig({
35
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
41
37
  }, config),
42
- sha256: config?.sha256 ?? serde_1.Hash.bind(null, "sha256"),
43
- streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
44
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
45
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
46
- userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(client_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
38
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
+ streamCollector: config?.streamCollector ?? streamCollector,
40
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
42
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
47
43
  };
48
44
  };
49
45
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,15 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const sha256_js_1 = require("@aws-crypto/sha256-js");
5
- const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
1
+ const { Sha256 } = require("@aws-crypto/sha256-js");
2
+ const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
6
3
  const getRuntimeConfig = (config) => {
7
- const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
8
5
  return {
9
6
  ...browserDefaults,
10
7
  ...config,
11
8
  runtime: "react-native",
12
- sha256: config?.sha256 ?? sha256_js_1.Sha256,
9
+ sha256: config?.sha256 ?? Sha256,
13
10
  };
14
11
  };
15
12
  exports.getRuntimeConfig = getRuntimeConfig;