@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.
- package/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +257 -277
- package/dist-cjs/models/CloudDirectoryServiceException.js +4 -8
- package/dist-cjs/models/errors.js +71 -109
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +739 -486
- package/package.json +8 -8
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.CloudDirectoryServiceException =
|
|
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
|
-
|
|
2
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
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 =
|
|
16
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
17
|
-
const clientSharedValues = (
|
|
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 ??
|
|
19
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
24
20
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
25
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
26
|
-
maxAttempts: config?.maxAttempts ??
|
|
27
|
-
region: config?.region ??
|
|
28
|
-
requestHandler:
|
|
29
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
30
|
-
sha256: config?.sha256 ??
|
|
31
|
-
streamCollector: config?.streamCollector ??
|
|
32
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
33
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
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
|
-
|
|
17
|
-
const defaultsMode =
|
|
18
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
19
|
-
const clientSharedValues = (
|
|
20
|
-
(
|
|
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 ?? (
|
|
31
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
32
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ??
|
|
33
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
-
maxAttempts: config?.maxAttempts ?? (
|
|
35
|
-
region: config?.region ?? (
|
|
36
|
-
requestHandler:
|
|
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
|
-
(
|
|
39
|
-
...
|
|
40
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
34
|
+
loadNodeConfig({
|
|
35
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
41
37
|
}, config),
|
|
42
|
-
sha256: config?.sha256 ??
|
|
43
|
-
streamCollector: config?.streamCollector ??
|
|
44
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (
|
|
45
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (
|
|
46
|
-
userAgentAppId: config?.userAgentAppId ?? (
|
|
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
|
-
|
|
2
|
-
|
|
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 = (
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
8
5
|
return {
|
|
9
6
|
...browserDefaults,
|
|
10
7
|
...config,
|
|
11
8
|
runtime: "react-native",
|
|
12
|
-
sha256: config?.sha256 ??
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
13
10
|
};
|
|
14
11
|
};
|
|
15
12
|
exports.getRuntimeConfig = getRuntimeConfig;
|