@aws-sdk/client-clouddirectory 3.1075.0 → 3.1076.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,495 +0,0 @@
1
- const { CloudDirectoryServiceException: __BaseException } = require("./CloudDirectoryServiceException");
2
- exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- Message;
6
- constructor(opts) {
7
- super({
8
- name: "AccessDeniedException",
9
- $fault: "client",
10
- ...opts,
11
- });
12
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
- this.Message = opts.Message;
14
- }
15
- };
16
- exports.DirectoryNotEnabledException = class DirectoryNotEnabledException extends __BaseException {
17
- name = "DirectoryNotEnabledException";
18
- $fault = "client";
19
- Message;
20
- constructor(opts) {
21
- super({
22
- name: "DirectoryNotEnabledException",
23
- $fault: "client",
24
- ...opts,
25
- });
26
- Object.setPrototypeOf(this, DirectoryNotEnabledException.prototype);
27
- this.Message = opts.Message;
28
- }
29
- };
30
- exports.FacetValidationException = class FacetValidationException extends __BaseException {
31
- name = "FacetValidationException";
32
- $fault = "client";
33
- Message;
34
- constructor(opts) {
35
- super({
36
- name: "FacetValidationException",
37
- $fault: "client",
38
- ...opts,
39
- });
40
- Object.setPrototypeOf(this, FacetValidationException.prototype);
41
- this.Message = opts.Message;
42
- }
43
- };
44
- exports.InternalServiceException = class InternalServiceException extends __BaseException {
45
- name = "InternalServiceException";
46
- $fault = "server";
47
- Message;
48
- constructor(opts) {
49
- super({
50
- name: "InternalServiceException",
51
- $fault: "server",
52
- ...opts,
53
- });
54
- Object.setPrototypeOf(this, InternalServiceException.prototype);
55
- this.Message = opts.Message;
56
- }
57
- };
58
- exports.InvalidArnException = class InvalidArnException extends __BaseException {
59
- name = "InvalidArnException";
60
- $fault = "client";
61
- Message;
62
- constructor(opts) {
63
- super({
64
- name: "InvalidArnException",
65
- $fault: "client",
66
- ...opts,
67
- });
68
- Object.setPrototypeOf(this, InvalidArnException.prototype);
69
- this.Message = opts.Message;
70
- }
71
- };
72
- exports.LimitExceededException = class LimitExceededException extends __BaseException {
73
- name = "LimitExceededException";
74
- $fault = "client";
75
- Message;
76
- constructor(opts) {
77
- super({
78
- name: "LimitExceededException",
79
- $fault: "client",
80
- ...opts,
81
- });
82
- Object.setPrototypeOf(this, LimitExceededException.prototype);
83
- this.Message = opts.Message;
84
- }
85
- };
86
- exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
87
- name = "ResourceNotFoundException";
88
- $fault = "client";
89
- Message;
90
- constructor(opts) {
91
- super({
92
- name: "ResourceNotFoundException",
93
- $fault: "client",
94
- ...opts,
95
- });
96
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
97
- this.Message = opts.Message;
98
- }
99
- };
100
- exports.RetryableConflictException = class RetryableConflictException extends __BaseException {
101
- name = "RetryableConflictException";
102
- $fault = "client";
103
- Message;
104
- constructor(opts) {
105
- super({
106
- name: "RetryableConflictException",
107
- $fault: "client",
108
- ...opts,
109
- });
110
- Object.setPrototypeOf(this, RetryableConflictException.prototype);
111
- this.Message = opts.Message;
112
- }
113
- };
114
- exports.ValidationException = class ValidationException extends __BaseException {
115
- name = "ValidationException";
116
- $fault = "client";
117
- Message;
118
- constructor(opts) {
119
- super({
120
- name: "ValidationException",
121
- $fault: "client",
122
- ...opts,
123
- });
124
- Object.setPrototypeOf(this, ValidationException.prototype);
125
- this.Message = opts.Message;
126
- }
127
- };
128
- exports.InvalidAttachmentException = class InvalidAttachmentException extends __BaseException {
129
- name = "InvalidAttachmentException";
130
- $fault = "client";
131
- Message;
132
- constructor(opts) {
133
- super({
134
- name: "InvalidAttachmentException",
135
- $fault: "client",
136
- ...opts,
137
- });
138
- Object.setPrototypeOf(this, InvalidAttachmentException.prototype);
139
- this.Message = opts.Message;
140
- }
141
- };
142
- exports.SchemaAlreadyExistsException = class SchemaAlreadyExistsException extends __BaseException {
143
- name = "SchemaAlreadyExistsException";
144
- $fault = "client";
145
- Message;
146
- constructor(opts) {
147
- super({
148
- name: "SchemaAlreadyExistsException",
149
- $fault: "client",
150
- ...opts,
151
- });
152
- Object.setPrototypeOf(this, SchemaAlreadyExistsException.prototype);
153
- this.Message = opts.Message;
154
- }
155
- };
156
- exports.LinkNameAlreadyInUseException = class LinkNameAlreadyInUseException extends __BaseException {
157
- name = "LinkNameAlreadyInUseException";
158
- $fault = "client";
159
- Message;
160
- constructor(opts) {
161
- super({
162
- name: "LinkNameAlreadyInUseException",
163
- $fault: "client",
164
- ...opts,
165
- });
166
- Object.setPrototypeOf(this, LinkNameAlreadyInUseException.prototype);
167
- this.Message = opts.Message;
168
- }
169
- };
170
- exports.NotPolicyException = class NotPolicyException extends __BaseException {
171
- name = "NotPolicyException";
172
- $fault = "client";
173
- Message;
174
- constructor(opts) {
175
- super({
176
- name: "NotPolicyException",
177
- $fault: "client",
178
- ...opts,
179
- });
180
- Object.setPrototypeOf(this, NotPolicyException.prototype);
181
- this.Message = opts.Message;
182
- }
183
- };
184
- exports.IndexedAttributeMissingException = class IndexedAttributeMissingException extends __BaseException {
185
- name = "IndexedAttributeMissingException";
186
- $fault = "client";
187
- Message;
188
- constructor(opts) {
189
- super({
190
- name: "IndexedAttributeMissingException",
191
- $fault: "client",
192
- ...opts,
193
- });
194
- Object.setPrototypeOf(this, IndexedAttributeMissingException.prototype);
195
- this.Message = opts.Message;
196
- }
197
- };
198
- exports.NotIndexException = class NotIndexException extends __BaseException {
199
- name = "NotIndexException";
200
- $fault = "client";
201
- Message;
202
- constructor(opts) {
203
- super({
204
- name: "NotIndexException",
205
- $fault: "client",
206
- ...opts,
207
- });
208
- Object.setPrototypeOf(this, NotIndexException.prototype);
209
- this.Message = opts.Message;
210
- }
211
- };
212
- exports.BatchWriteException = class BatchWriteException extends __BaseException {
213
- name = "BatchWriteException";
214
- $fault = "client";
215
- Index;
216
- Type;
217
- Message;
218
- constructor(opts) {
219
- super({
220
- name: "BatchWriteException",
221
- $fault: "client",
222
- ...opts,
223
- });
224
- Object.setPrototypeOf(this, BatchWriteException.prototype);
225
- this.Index = opts.Index;
226
- this.Type = opts.Type;
227
- this.Message = opts.Message;
228
- }
229
- };
230
- exports.DirectoryAlreadyExistsException = class DirectoryAlreadyExistsException extends __BaseException {
231
- name = "DirectoryAlreadyExistsException";
232
- $fault = "client";
233
- Message;
234
- constructor(opts) {
235
- super({
236
- name: "DirectoryAlreadyExistsException",
237
- $fault: "client",
238
- ...opts,
239
- });
240
- Object.setPrototypeOf(this, DirectoryAlreadyExistsException.prototype);
241
- this.Message = opts.Message;
242
- }
243
- };
244
- exports.FacetAlreadyExistsException = class FacetAlreadyExistsException extends __BaseException {
245
- name = "FacetAlreadyExistsException";
246
- $fault = "client";
247
- Message;
248
- constructor(opts) {
249
- super({
250
- name: "FacetAlreadyExistsException",
251
- $fault: "client",
252
- ...opts,
253
- });
254
- Object.setPrototypeOf(this, FacetAlreadyExistsException.prototype);
255
- this.Message = opts.Message;
256
- }
257
- };
258
- exports.InvalidRuleException = class InvalidRuleException extends __BaseException {
259
- name = "InvalidRuleException";
260
- $fault = "client";
261
- Message;
262
- constructor(opts) {
263
- super({
264
- name: "InvalidRuleException",
265
- $fault: "client",
266
- ...opts,
267
- });
268
- Object.setPrototypeOf(this, InvalidRuleException.prototype);
269
- this.Message = opts.Message;
270
- }
271
- };
272
- exports.UnsupportedIndexTypeException = class UnsupportedIndexTypeException extends __BaseException {
273
- name = "UnsupportedIndexTypeException";
274
- $fault = "client";
275
- Message;
276
- constructor(opts) {
277
- super({
278
- name: "UnsupportedIndexTypeException",
279
- $fault: "client",
280
- ...opts,
281
- });
282
- Object.setPrototypeOf(this, UnsupportedIndexTypeException.prototype);
283
- this.Message = opts.Message;
284
- }
285
- };
286
- exports.DirectoryDeletedException = class DirectoryDeletedException extends __BaseException {
287
- name = "DirectoryDeletedException";
288
- $fault = "client";
289
- Message;
290
- constructor(opts) {
291
- super({
292
- name: "DirectoryDeletedException",
293
- $fault: "client",
294
- ...opts,
295
- });
296
- Object.setPrototypeOf(this, DirectoryDeletedException.prototype);
297
- this.Message = opts.Message;
298
- }
299
- };
300
- exports.DirectoryNotDisabledException = class DirectoryNotDisabledException extends __BaseException {
301
- name = "DirectoryNotDisabledException";
302
- $fault = "client";
303
- Message;
304
- constructor(opts) {
305
- super({
306
- name: "DirectoryNotDisabledException",
307
- $fault: "client",
308
- ...opts,
309
- });
310
- Object.setPrototypeOf(this, DirectoryNotDisabledException.prototype);
311
- this.Message = opts.Message;
312
- }
313
- };
314
- exports.FacetInUseException = class FacetInUseException extends __BaseException {
315
- name = "FacetInUseException";
316
- $fault = "client";
317
- Message;
318
- constructor(opts) {
319
- super({
320
- name: "FacetInUseException",
321
- $fault: "client",
322
- ...opts,
323
- });
324
- Object.setPrototypeOf(this, FacetInUseException.prototype);
325
- this.Message = opts.Message;
326
- }
327
- };
328
- exports.FacetNotFoundException = class FacetNotFoundException extends __BaseException {
329
- name = "FacetNotFoundException";
330
- $fault = "client";
331
- Message;
332
- constructor(opts) {
333
- super({
334
- name: "FacetNotFoundException",
335
- $fault: "client",
336
- ...opts,
337
- });
338
- Object.setPrototypeOf(this, FacetNotFoundException.prototype);
339
- this.Message = opts.Message;
340
- }
341
- };
342
- exports.ObjectNotDetachedException = class ObjectNotDetachedException extends __BaseException {
343
- name = "ObjectNotDetachedException";
344
- $fault = "client";
345
- Message;
346
- constructor(opts) {
347
- super({
348
- name: "ObjectNotDetachedException",
349
- $fault: "client",
350
- ...opts,
351
- });
352
- Object.setPrototypeOf(this, ObjectNotDetachedException.prototype);
353
- this.Message = opts.Message;
354
- }
355
- };
356
- exports.StillContainsLinksException = class StillContainsLinksException extends __BaseException {
357
- name = "StillContainsLinksException";
358
- $fault = "client";
359
- Message;
360
- constructor(opts) {
361
- super({
362
- name: "StillContainsLinksException",
363
- $fault: "client",
364
- ...opts,
365
- });
366
- Object.setPrototypeOf(this, StillContainsLinksException.prototype);
367
- this.Message = opts.Message;
368
- }
369
- };
370
- exports.ObjectAlreadyDetachedException = class ObjectAlreadyDetachedException extends __BaseException {
371
- name = "ObjectAlreadyDetachedException";
372
- $fault = "client";
373
- Message;
374
- constructor(opts) {
375
- super({
376
- name: "ObjectAlreadyDetachedException",
377
- $fault: "client",
378
- ...opts,
379
- });
380
- Object.setPrototypeOf(this, ObjectAlreadyDetachedException.prototype);
381
- this.Message = opts.Message;
382
- }
383
- };
384
- exports.NotNodeException = class NotNodeException extends __BaseException {
385
- name = "NotNodeException";
386
- $fault = "client";
387
- Message;
388
- constructor(opts) {
389
- super({
390
- name: "NotNodeException",
391
- $fault: "client",
392
- ...opts,
393
- });
394
- Object.setPrototypeOf(this, NotNodeException.prototype);
395
- this.Message = opts.Message;
396
- }
397
- };
398
- exports.InvalidNextTokenException = class InvalidNextTokenException extends __BaseException {
399
- name = "InvalidNextTokenException";
400
- $fault = "client";
401
- Message;
402
- constructor(opts) {
403
- super({
404
- name: "InvalidNextTokenException",
405
- $fault: "client",
406
- ...opts,
407
- });
408
- Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
409
- this.Message = opts.Message;
410
- }
411
- };
412
- exports.CannotListParentOfRootException = class CannotListParentOfRootException extends __BaseException {
413
- name = "CannotListParentOfRootException";
414
- $fault = "client";
415
- Message;
416
- constructor(opts) {
417
- super({
418
- name: "CannotListParentOfRootException",
419
- $fault: "client",
420
- ...opts,
421
- });
422
- Object.setPrototypeOf(this, CannotListParentOfRootException.prototype);
423
- this.Message = opts.Message;
424
- }
425
- };
426
- exports.InvalidTaggingRequestException = class InvalidTaggingRequestException extends __BaseException {
427
- name = "InvalidTaggingRequestException";
428
- $fault = "client";
429
- Message;
430
- constructor(opts) {
431
- super({
432
- name: "InvalidTaggingRequestException",
433
- $fault: "client",
434
- ...opts,
435
- });
436
- Object.setPrototypeOf(this, InvalidTaggingRequestException.prototype);
437
- this.Message = opts.Message;
438
- }
439
- };
440
- exports.SchemaAlreadyPublishedException = class SchemaAlreadyPublishedException extends __BaseException {
441
- name = "SchemaAlreadyPublishedException";
442
- $fault = "client";
443
- Message;
444
- constructor(opts) {
445
- super({
446
- name: "SchemaAlreadyPublishedException",
447
- $fault: "client",
448
- ...opts,
449
- });
450
- Object.setPrototypeOf(this, SchemaAlreadyPublishedException.prototype);
451
- this.Message = opts.Message;
452
- }
453
- };
454
- exports.InvalidSchemaDocException = class InvalidSchemaDocException extends __BaseException {
455
- name = "InvalidSchemaDocException";
456
- $fault = "client";
457
- Message;
458
- constructor(opts) {
459
- super({
460
- name: "InvalidSchemaDocException",
461
- $fault: "client",
462
- ...opts,
463
- });
464
- Object.setPrototypeOf(this, InvalidSchemaDocException.prototype);
465
- this.Message = opts.Message;
466
- }
467
- };
468
- exports.InvalidFacetUpdateException = class InvalidFacetUpdateException extends __BaseException {
469
- name = "InvalidFacetUpdateException";
470
- $fault = "client";
471
- Message;
472
- constructor(opts) {
473
- super({
474
- name: "InvalidFacetUpdateException",
475
- $fault: "client",
476
- ...opts,
477
- });
478
- Object.setPrototypeOf(this, InvalidFacetUpdateException.prototype);
479
- this.Message = opts.Message;
480
- }
481
- };
482
- exports.IncompatibleSchemaException = class IncompatibleSchemaException extends __BaseException {
483
- name = "IncompatibleSchemaException";
484
- $fault = "client";
485
- Message;
486
- constructor(opts) {
487
- super({
488
- name: "IncompatibleSchemaException",
489
- $fault: "client",
490
- ...opts,
491
- });
492
- Object.setPrototypeOf(this, IncompatibleSchemaException.prototype);
493
- this.Message = opts.Message;
494
- }
495
- };
@@ -1,32 +0,0 @@
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");
10
- const getRuntimeConfig = (config) => {
11
- const defaultsMode = resolveDefaultsModeConfig(config);
12
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
13
- const clientSharedValues = getSharedRuntimeConfig(config);
14
- return {
15
- ...clientSharedValues,
16
- ...config,
17
- runtime: "browser",
18
- defaultsMode,
19
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
20
- credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
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)),
30
- };
31
- };
32
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,45 +0,0 @@
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");
11
- const getRuntimeConfig = (config) => {
12
- emitWarningIfUnsupportedVersion(process.version);
13
- const defaultsMode = resolveDefaultsModeConfig(config);
14
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
- const clientSharedValues = getSharedRuntimeConfig(config);
16
- awsCheckVersion(process.version);
17
- const loaderConfig = {
18
- profile: config?.profile,
19
- logger: clientSharedValues.logger,
20
- };
21
- return {
22
- ...clientSharedValues,
23
- ...config,
24
- runtime: "node",
25
- defaultsMode,
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),
33
- retryMode: config?.retryMode ??
34
- loadNodeConfig({
35
- ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
- default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
- }, config),
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),
43
- };
44
- };
45
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,12 +0,0 @@
1
- const { Sha256 } = require("@aws-crypto/sha256-js");
2
- const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
3
- const getRuntimeConfig = (config) => {
4
- const browserDefaults = getBrowserRuntimeConfig(config);
5
- return {
6
- ...browserDefaults,
7
- ...config,
8
- runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
- };
11
- };
12
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,38 +0,0 @@
1
- const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
3
- const { NoOpLogger } = require("@smithy/core/client");
4
- const { parseUrl } = require("@smithy/core/protocols");
5
- const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
6
- const { defaultCloudDirectoryHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
7
- const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
8
- const { errorTypeRegistries } = require("./schemas/schemas_0");
9
- exports.getRuntimeConfig = (config) => {
10
- return {
11
- apiVersion: "2017-01-11",
12
- base64Decoder: config?.base64Decoder ?? fromBase64,
13
- base64Encoder: config?.base64Encoder ?? toBase64,
14
- disableHostPrefix: config?.disableHostPrefix ?? false,
15
- endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
16
- extensions: config?.extensions ?? [],
17
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCloudDirectoryHttpAuthSchemeProvider,
18
- httpAuthSchemes: config?.httpAuthSchemes ?? [
19
- {
20
- schemeId: "aws.auth#sigv4",
21
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
22
- signer: new AwsSdkSigV4Signer(),
23
- },
24
- ],
25
- logger: config?.logger ?? new NoOpLogger(),
26
- protocol: config?.protocol ?? AwsRestJsonProtocol,
27
- protocolSettings: config?.protocolSettings ?? {
28
- defaultNamespace: "com.amazonaws.clouddirectory",
29
- errorTypeRegistries,
30
- version: "2017-01-11",
31
- serviceTarget: "AmazonCloudDirectory_20170111",
32
- },
33
- serviceId: config?.serviceId ?? "CloudDirectory",
34
- urlParser: config?.urlParser ?? parseUrl,
35
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
37
- };
38
- };