@aws-sdk/client-dynamodb 3.44.0 → 3.47.1
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/CHANGELOG.md +47 -0
- package/dist-cjs/endpoints.js +1 -28
- package/dist-cjs/models/models_0.js +4 -188
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -28
- package/dist-es/models/models_0.js +0 -122
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/DynamoDBClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -180
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/DynamoDBClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -120
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +41 -48
|
@@ -85,14 +85,6 @@ export var BackupDescription;
|
|
|
85
85
|
(function (BackupDescription) {
|
|
86
86
|
BackupDescription.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
87
87
|
})(BackupDescription || (BackupDescription = {}));
|
|
88
|
-
export var BackupInUseException;
|
|
89
|
-
(function (BackupInUseException) {
|
|
90
|
-
BackupInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
91
|
-
})(BackupInUseException || (BackupInUseException = {}));
|
|
92
|
-
export var BackupNotFoundException;
|
|
93
|
-
(function (BackupNotFoundException) {
|
|
94
|
-
BackupNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
95
|
-
})(BackupNotFoundException || (BackupNotFoundException = {}));
|
|
96
88
|
export var BackupSummary;
|
|
97
89
|
(function (BackupSummary) {
|
|
98
90
|
BackupSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -130,38 +122,10 @@ export var BatchStatementError;
|
|
|
130
122
|
(function (BatchStatementError) {
|
|
131
123
|
BatchStatementError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
132
124
|
})(BatchStatementError || (BatchStatementError = {}));
|
|
133
|
-
export var InternalServerError;
|
|
134
|
-
(function (InternalServerError) {
|
|
135
|
-
InternalServerError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
136
|
-
})(InternalServerError || (InternalServerError = {}));
|
|
137
|
-
export var RequestLimitExceeded;
|
|
138
|
-
(function (RequestLimitExceeded) {
|
|
139
|
-
RequestLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
140
|
-
})(RequestLimitExceeded || (RequestLimitExceeded = {}));
|
|
141
|
-
export var InvalidEndpointException;
|
|
142
|
-
(function (InvalidEndpointException) {
|
|
143
|
-
InvalidEndpointException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
144
|
-
})(InvalidEndpointException || (InvalidEndpointException = {}));
|
|
145
|
-
export var ProvisionedThroughputExceededException;
|
|
146
|
-
(function (ProvisionedThroughputExceededException) {
|
|
147
|
-
ProvisionedThroughputExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
148
|
-
})(ProvisionedThroughputExceededException || (ProvisionedThroughputExceededException = {}));
|
|
149
|
-
export var ResourceNotFoundException;
|
|
150
|
-
(function (ResourceNotFoundException) {
|
|
151
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
152
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
153
|
-
export var ItemCollectionSizeLimitExceededException;
|
|
154
|
-
(function (ItemCollectionSizeLimitExceededException) {
|
|
155
|
-
ItemCollectionSizeLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
156
|
-
})(ItemCollectionSizeLimitExceededException || (ItemCollectionSizeLimitExceededException = {}));
|
|
157
125
|
export var BillingModeSummary;
|
|
158
126
|
(function (BillingModeSummary) {
|
|
159
127
|
BillingModeSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
160
128
|
})(BillingModeSummary || (BillingModeSummary = {}));
|
|
161
|
-
export var ConditionalCheckFailedException;
|
|
162
|
-
(function (ConditionalCheckFailedException) {
|
|
163
|
-
ConditionalCheckFailedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
164
|
-
})(ConditionalCheckFailedException || (ConditionalCheckFailedException = {}));
|
|
165
129
|
export var PointInTimeRecoveryDescription;
|
|
166
130
|
(function (PointInTimeRecoveryDescription) {
|
|
167
131
|
PointInTimeRecoveryDescription.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -170,10 +134,6 @@ export var ContinuousBackupsDescription;
|
|
|
170
134
|
(function (ContinuousBackupsDescription) {
|
|
171
135
|
ContinuousBackupsDescription.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
172
136
|
})(ContinuousBackupsDescription || (ContinuousBackupsDescription = {}));
|
|
173
|
-
export var ContinuousBackupsUnavailableException;
|
|
174
|
-
(function (ContinuousBackupsUnavailableException) {
|
|
175
|
-
ContinuousBackupsUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
176
|
-
})(ContinuousBackupsUnavailableException || (ContinuousBackupsUnavailableException = {}));
|
|
177
137
|
export var ContributorInsightsSummary;
|
|
178
138
|
(function (ContributorInsightsSummary) {
|
|
179
139
|
ContributorInsightsSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -186,18 +146,6 @@ export var CreateBackupOutput;
|
|
|
186
146
|
(function (CreateBackupOutput) {
|
|
187
147
|
CreateBackupOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
188
148
|
})(CreateBackupOutput || (CreateBackupOutput = {}));
|
|
189
|
-
export var LimitExceededException;
|
|
190
|
-
(function (LimitExceededException) {
|
|
191
|
-
LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
192
|
-
})(LimitExceededException || (LimitExceededException = {}));
|
|
193
|
-
export var TableInUseException;
|
|
194
|
-
(function (TableInUseException) {
|
|
195
|
-
TableInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
196
|
-
})(TableInUseException || (TableInUseException = {}));
|
|
197
|
-
export var TableNotFoundException;
|
|
198
|
-
(function (TableNotFoundException) {
|
|
199
|
-
TableNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
200
|
-
})(TableNotFoundException || (TableNotFoundException = {}));
|
|
201
149
|
export var CreateGlobalSecondaryIndexAction;
|
|
202
150
|
(function (CreateGlobalSecondaryIndexAction) {
|
|
203
151
|
CreateGlobalSecondaryIndexAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -239,10 +187,6 @@ export var CreateGlobalTableOutput;
|
|
|
239
187
|
(function (CreateGlobalTableOutput) {
|
|
240
188
|
CreateGlobalTableOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
241
189
|
})(CreateGlobalTableOutput || (CreateGlobalTableOutput = {}));
|
|
242
|
-
export var GlobalTableAlreadyExistsException;
|
|
243
|
-
(function (GlobalTableAlreadyExistsException) {
|
|
244
|
-
GlobalTableAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
245
|
-
})(GlobalTableAlreadyExistsException || (GlobalTableAlreadyExistsException = {}));
|
|
246
190
|
export var CreateReplicaAction;
|
|
247
191
|
(function (CreateReplicaAction) {
|
|
248
192
|
CreateReplicaAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -299,10 +243,6 @@ export var CreateTableOutput;
|
|
|
299
243
|
(function (CreateTableOutput) {
|
|
300
244
|
CreateTableOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
301
245
|
})(CreateTableOutput || (CreateTableOutput = {}));
|
|
302
|
-
export var ResourceInUseException;
|
|
303
|
-
(function (ResourceInUseException) {
|
|
304
|
-
ResourceInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
305
|
-
})(ResourceInUseException || (ResourceInUseException = {}));
|
|
306
246
|
export var DeleteBackupInput;
|
|
307
247
|
(function (DeleteBackupInput) {
|
|
308
248
|
DeleteBackupInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -315,10 +255,6 @@ export var DeleteGlobalSecondaryIndexAction;
|
|
|
315
255
|
(function (DeleteGlobalSecondaryIndexAction) {
|
|
316
256
|
DeleteGlobalSecondaryIndexAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
317
257
|
})(DeleteGlobalSecondaryIndexAction || (DeleteGlobalSecondaryIndexAction = {}));
|
|
318
|
-
export var TransactionConflictException;
|
|
319
|
-
(function (TransactionConflictException) {
|
|
320
|
-
TransactionConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
321
|
-
})(TransactionConflictException || (TransactionConflictException = {}));
|
|
322
258
|
export var DeleteReplicaAction;
|
|
323
259
|
(function (DeleteReplicaAction) {
|
|
324
260
|
DeleteReplicaAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -398,10 +334,6 @@ export var DescribeExportOutput;
|
|
|
398
334
|
(function (DescribeExportOutput) {
|
|
399
335
|
DescribeExportOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
400
336
|
})(DescribeExportOutput || (DescribeExportOutput = {}));
|
|
401
|
-
export var ExportNotFoundException;
|
|
402
|
-
(function (ExportNotFoundException) {
|
|
403
|
-
ExportNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
404
|
-
})(ExportNotFoundException || (ExportNotFoundException = {}));
|
|
405
337
|
export var DescribeGlobalTableInput;
|
|
406
338
|
(function (DescribeGlobalTableInput) {
|
|
407
339
|
DescribeGlobalTableInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -410,10 +342,6 @@ export var DescribeGlobalTableOutput;
|
|
|
410
342
|
(function (DescribeGlobalTableOutput) {
|
|
411
343
|
DescribeGlobalTableOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
412
344
|
})(DescribeGlobalTableOutput || (DescribeGlobalTableOutput = {}));
|
|
413
|
-
export var GlobalTableNotFoundException;
|
|
414
|
-
(function (GlobalTableNotFoundException) {
|
|
415
|
-
GlobalTableNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
416
|
-
})(GlobalTableNotFoundException || (GlobalTableNotFoundException = {}));
|
|
417
345
|
export var DescribeGlobalTableSettingsInput;
|
|
418
346
|
(function (DescribeGlobalTableSettingsInput) {
|
|
419
347
|
DescribeGlobalTableSettingsInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -494,22 +422,6 @@ export var KinesisStreamingDestinationOutput;
|
|
|
494
422
|
(function (KinesisStreamingDestinationOutput) {
|
|
495
423
|
KinesisStreamingDestinationOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
496
424
|
})(KinesisStreamingDestinationOutput || (KinesisStreamingDestinationOutput = {}));
|
|
497
|
-
export var DuplicateItemException;
|
|
498
|
-
(function (DuplicateItemException) {
|
|
499
|
-
DuplicateItemException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
500
|
-
})(DuplicateItemException || (DuplicateItemException = {}));
|
|
501
|
-
export var IdempotentParameterMismatchException;
|
|
502
|
-
(function (IdempotentParameterMismatchException) {
|
|
503
|
-
IdempotentParameterMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
504
|
-
})(IdempotentParameterMismatchException || (IdempotentParameterMismatchException = {}));
|
|
505
|
-
export var TransactionInProgressException;
|
|
506
|
-
(function (TransactionInProgressException) {
|
|
507
|
-
TransactionInProgressException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
508
|
-
})(TransactionInProgressException || (TransactionInProgressException = {}));
|
|
509
|
-
export var ExportConflictException;
|
|
510
|
-
(function (ExportConflictException) {
|
|
511
|
-
ExportConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
512
|
-
})(ExportConflictException || (ExportConflictException = {}));
|
|
513
425
|
export var ExportTableToPointInTimeInput;
|
|
514
426
|
(function (ExportTableToPointInTimeInput) {
|
|
515
427
|
ExportTableToPointInTimeInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -518,14 +430,6 @@ export var ExportTableToPointInTimeOutput;
|
|
|
518
430
|
(function (ExportTableToPointInTimeOutput) {
|
|
519
431
|
ExportTableToPointInTimeOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
520
432
|
})(ExportTableToPointInTimeOutput || (ExportTableToPointInTimeOutput = {}));
|
|
521
|
-
export var InvalidExportTimeException;
|
|
522
|
-
(function (InvalidExportTimeException) {
|
|
523
|
-
InvalidExportTimeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
524
|
-
})(InvalidExportTimeException || (InvalidExportTimeException = {}));
|
|
525
|
-
export var PointInTimeRecoveryUnavailableException;
|
|
526
|
-
(function (PointInTimeRecoveryUnavailableException) {
|
|
527
|
-
PointInTimeRecoveryUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
528
|
-
})(PointInTimeRecoveryUnavailableException || (PointInTimeRecoveryUnavailableException = {}));
|
|
529
433
|
export var ListBackupsInput;
|
|
530
434
|
(function (ListBackupsInput) {
|
|
531
435
|
ListBackupsInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -590,14 +494,6 @@ export var RestoreTableFromBackupOutput;
|
|
|
590
494
|
(function (RestoreTableFromBackupOutput) {
|
|
591
495
|
RestoreTableFromBackupOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
592
496
|
})(RestoreTableFromBackupOutput || (RestoreTableFromBackupOutput = {}));
|
|
593
|
-
export var TableAlreadyExistsException;
|
|
594
|
-
(function (TableAlreadyExistsException) {
|
|
595
|
-
TableAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
596
|
-
})(TableAlreadyExistsException || (TableAlreadyExistsException = {}));
|
|
597
|
-
export var InvalidRestoreTimeException;
|
|
598
|
-
(function (InvalidRestoreTimeException) {
|
|
599
|
-
InvalidRestoreTimeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
600
|
-
})(InvalidRestoreTimeException || (InvalidRestoreTimeException = {}));
|
|
601
497
|
export var RestoreTableToPointInTimeInput;
|
|
602
498
|
(function (RestoreTableToPointInTimeInput) {
|
|
603
499
|
RestoreTableToPointInTimeInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -634,14 +530,6 @@ export var UpdateContributorInsightsOutput;
|
|
|
634
530
|
(function (UpdateContributorInsightsOutput) {
|
|
635
531
|
UpdateContributorInsightsOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
636
532
|
})(UpdateContributorInsightsOutput || (UpdateContributorInsightsOutput = {}));
|
|
637
|
-
export var ReplicaAlreadyExistsException;
|
|
638
|
-
(function (ReplicaAlreadyExistsException) {
|
|
639
|
-
ReplicaAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
640
|
-
})(ReplicaAlreadyExistsException || (ReplicaAlreadyExistsException = {}));
|
|
641
|
-
export var ReplicaNotFoundException;
|
|
642
|
-
(function (ReplicaNotFoundException) {
|
|
643
|
-
ReplicaNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
644
|
-
})(ReplicaNotFoundException || (ReplicaNotFoundException = {}));
|
|
645
533
|
export var ReplicaUpdate;
|
|
646
534
|
(function (ReplicaUpdate) {
|
|
647
535
|
ReplicaUpdate.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -654,10 +542,6 @@ export var UpdateGlobalTableOutput;
|
|
|
654
542
|
(function (UpdateGlobalTableOutput) {
|
|
655
543
|
UpdateGlobalTableOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
656
544
|
})(UpdateGlobalTableOutput || (UpdateGlobalTableOutput = {}));
|
|
657
|
-
export var IndexNotFoundException;
|
|
658
|
-
(function (IndexNotFoundException) {
|
|
659
|
-
IndexNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
660
|
-
})(IndexNotFoundException || (IndexNotFoundException = {}));
|
|
661
545
|
export var GlobalTableGlobalSecondaryIndexSettingsUpdate;
|
|
662
546
|
(function (GlobalTableGlobalSecondaryIndexSettingsUpdate) {
|
|
663
547
|
GlobalTableGlobalSecondaryIndexSettingsUpdate.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -953,12 +837,6 @@ export var TransactGetItemsOutput;
|
|
|
953
837
|
(function (TransactGetItemsOutput) {
|
|
954
838
|
TransactGetItemsOutput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Responses && { Responses: obj.Responses.map(function (item) { return ItemResponse.filterSensitiveLog(item); }) }))); };
|
|
955
839
|
})(TransactGetItemsOutput || (TransactGetItemsOutput = {}));
|
|
956
|
-
export var TransactionCanceledException;
|
|
957
|
-
(function (TransactionCanceledException) {
|
|
958
|
-
TransactionCanceledException.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.CancellationReasons && {
|
|
959
|
-
CancellationReasons: obj.CancellationReasons.map(function (item) { return CancellationReason.filterSensitiveLog(item); }),
|
|
960
|
-
}))); };
|
|
961
|
-
})(TransactionCanceledException || (TransactionCanceledException = {}));
|
|
962
840
|
export var BatchGetItemInput;
|
|
963
841
|
(function (BatchGetItemInput) {
|
|
964
842
|
BatchGetItemInput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.RequestItems && {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : (function () { return Promise.resolve(undefined); }), maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : DEFAULT_MAX_ATTEMPTS, region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : invalidProvider("Region is missing"), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : (function () { return Promise.resolve(undefined); }), maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : DEFAULT_MAX_ATTEMPTS, region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : invalidProvider("Region is missing"), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new RequestHandler(defaultConfigProvider), retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : Sha256, streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : streamCollector, useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : fromUtf8, utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,22 +1,29 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
7
|
import { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS } from "@aws-sdk/middleware-endpoint-discovery";
|
|
8
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
9
9
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
10
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
11
11
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
12
12
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
13
13
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
14
14
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
15
15
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
16
|
-
import {
|
|
16
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
17
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
17
18
|
export var getRuntimeConfig = function (config) {
|
|
18
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
19
|
-
|
|
20
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
21
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
20
22
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
21
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS), maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new
|
|
23
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS), maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new RequestHandler(defaultConfigProvider), retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
24
|
+
switch (_a.label) {
|
|
25
|
+
case 0: return [4, defaultConfigProvider()];
|
|
26
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
27
|
+
}
|
|
28
|
+
}); }); } })), sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : Hash.bind(null, "sha256"), streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : streamCollector, useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : fromUtf8, utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : toUtf8 });
|
|
22
29
|
};
|
|
@@ -5,7 +5,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
5
5
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
6
6
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
7
7
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
8
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
9
9
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
10
10
|
import { BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput } from "./commands/BatchExecuteStatementCommand";
|
|
11
11
|
import { BatchGetItemCommandInput, BatchGetItemCommandOutput } from "./commands/BatchGetItemCommand";
|
|
@@ -165,6 +165,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
165
165
|
* @internal
|
|
166
166
|
*/
|
|
167
167
|
endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
|
|
168
|
+
/**
|
|
169
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
170
|
+
*/
|
|
171
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
168
172
|
}
|
|
169
173
|
declare type DynamoDBClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & EndpointDiscoveryInputConfig;
|
|
170
174
|
/**
|