@aws-sdk/client-database-migration-service 3.42.0 → 3.47.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/CHANGELOG.md +50 -0
- package/dist-cjs/endpoints.js +1 -32
- package/dist-cjs/models/models_0.js +4 -143
- package/dist-cjs/protocols/Aws_json1_1.js +3 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -32
- package/dist-es/models/models_0.js +0 -92
- package/dist-es/protocols/Aws_json1_1.js +4 -2
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/DatabaseMigrationService.d.ts +18 -3
- package/dist-types/DatabaseMigrationServiceClient.d.ts +5 -1
- package/dist-types/commands/DescribeReplicationTaskAssessmentResultsCommand.d.ts +5 -3
- package/dist-types/commands/StartReplicationTaskAssessmentCommand.d.ts +13 -0
- package/dist-types/models/models_0.d.ts +14 -138
- 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/DatabaseMigrationServiceClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +2 -92
- 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 +39 -46
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
|
-
export var AccessDeniedFault;
|
|
4
|
-
(function (AccessDeniedFault) {
|
|
5
|
-
AccessDeniedFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
6
|
-
})(AccessDeniedFault || (AccessDeniedFault = {}));
|
|
7
3
|
export var AccountQuota;
|
|
8
4
|
(function (AccountQuota) {
|
|
9
5
|
AccountQuota.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -20,10 +16,6 @@ export var AddTagsToResourceResponse;
|
|
|
20
16
|
(function (AddTagsToResourceResponse) {
|
|
21
17
|
AddTagsToResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
22
18
|
})(AddTagsToResourceResponse || (AddTagsToResourceResponse = {}));
|
|
23
|
-
export var ResourceNotFoundFault;
|
|
24
|
-
(function (ResourceNotFoundFault) {
|
|
25
|
-
ResourceNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
26
|
-
})(ResourceNotFoundFault || (ResourceNotFoundFault = {}));
|
|
27
19
|
export var ApplyPendingMaintenanceActionMessage;
|
|
28
20
|
(function (ApplyPendingMaintenanceActionMessage) {
|
|
29
21
|
ApplyPendingMaintenanceActionMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -56,10 +48,6 @@ export var CancelReplicationTaskAssessmentRunResponse;
|
|
|
56
48
|
(function (CancelReplicationTaskAssessmentRunResponse) {
|
|
57
49
|
CancelReplicationTaskAssessmentRunResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
58
50
|
})(CancelReplicationTaskAssessmentRunResponse || (CancelReplicationTaskAssessmentRunResponse = {}));
|
|
59
|
-
export var InvalidResourceStateFault;
|
|
60
|
-
(function (InvalidResourceStateFault) {
|
|
61
|
-
InvalidResourceStateFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
62
|
-
})(InvalidResourceStateFault || (InvalidResourceStateFault = {}));
|
|
63
51
|
export var DmsTransferSettings;
|
|
64
52
|
(function (DmsTransferSettings) {
|
|
65
53
|
DmsTransferSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -278,22 +266,6 @@ export var CreateEndpointResponse;
|
|
|
278
266
|
(function (CreateEndpointResponse) {
|
|
279
267
|
CreateEndpointResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Endpoint && { Endpoint: Endpoint.filterSensitiveLog(obj.Endpoint) }))); };
|
|
280
268
|
})(CreateEndpointResponse || (CreateEndpointResponse = {}));
|
|
281
|
-
export var KMSKeyNotAccessibleFault;
|
|
282
|
-
(function (KMSKeyNotAccessibleFault) {
|
|
283
|
-
KMSKeyNotAccessibleFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
284
|
-
})(KMSKeyNotAccessibleFault || (KMSKeyNotAccessibleFault = {}));
|
|
285
|
-
export var ResourceAlreadyExistsFault;
|
|
286
|
-
(function (ResourceAlreadyExistsFault) {
|
|
287
|
-
ResourceAlreadyExistsFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
288
|
-
})(ResourceAlreadyExistsFault || (ResourceAlreadyExistsFault = {}));
|
|
289
|
-
export var ResourceQuotaExceededFault;
|
|
290
|
-
(function (ResourceQuotaExceededFault) {
|
|
291
|
-
ResourceQuotaExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
292
|
-
})(ResourceQuotaExceededFault || (ResourceQuotaExceededFault = {}));
|
|
293
|
-
export var S3AccessDeniedFault;
|
|
294
|
-
(function (S3AccessDeniedFault) {
|
|
295
|
-
S3AccessDeniedFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
296
|
-
})(S3AccessDeniedFault || (S3AccessDeniedFault = {}));
|
|
297
269
|
export var CreateEventSubscriptionMessage;
|
|
298
270
|
(function (CreateEventSubscriptionMessage) {
|
|
299
271
|
CreateEventSubscriptionMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -306,34 +278,6 @@ export var CreateEventSubscriptionResponse;
|
|
|
306
278
|
(function (CreateEventSubscriptionResponse) {
|
|
307
279
|
CreateEventSubscriptionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
308
280
|
})(CreateEventSubscriptionResponse || (CreateEventSubscriptionResponse = {}));
|
|
309
|
-
export var KMSAccessDeniedFault;
|
|
310
|
-
(function (KMSAccessDeniedFault) {
|
|
311
|
-
KMSAccessDeniedFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
312
|
-
})(KMSAccessDeniedFault || (KMSAccessDeniedFault = {}));
|
|
313
|
-
export var KMSDisabledFault;
|
|
314
|
-
(function (KMSDisabledFault) {
|
|
315
|
-
KMSDisabledFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
316
|
-
})(KMSDisabledFault || (KMSDisabledFault = {}));
|
|
317
|
-
export var KMSInvalidStateFault;
|
|
318
|
-
(function (KMSInvalidStateFault) {
|
|
319
|
-
KMSInvalidStateFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
320
|
-
})(KMSInvalidStateFault || (KMSInvalidStateFault = {}));
|
|
321
|
-
export var KMSNotFoundFault;
|
|
322
|
-
(function (KMSNotFoundFault) {
|
|
323
|
-
KMSNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
324
|
-
})(KMSNotFoundFault || (KMSNotFoundFault = {}));
|
|
325
|
-
export var KMSThrottlingFault;
|
|
326
|
-
(function (KMSThrottlingFault) {
|
|
327
|
-
KMSThrottlingFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
328
|
-
})(KMSThrottlingFault || (KMSThrottlingFault = {}));
|
|
329
|
-
export var SNSInvalidTopicFault;
|
|
330
|
-
(function (SNSInvalidTopicFault) {
|
|
331
|
-
SNSInvalidTopicFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
332
|
-
})(SNSInvalidTopicFault || (SNSInvalidTopicFault = {}));
|
|
333
|
-
export var SNSNoAuthorizationFault;
|
|
334
|
-
(function (SNSNoAuthorizationFault) {
|
|
335
|
-
SNSNoAuthorizationFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
336
|
-
})(SNSNoAuthorizationFault || (SNSNoAuthorizationFault = {}));
|
|
337
281
|
export var CreateReplicationInstanceMessage;
|
|
338
282
|
(function (CreateReplicationInstanceMessage) {
|
|
339
283
|
CreateReplicationInstanceMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -366,22 +310,6 @@ export var CreateReplicationInstanceResponse;
|
|
|
366
310
|
(function (CreateReplicationInstanceResponse) {
|
|
367
311
|
CreateReplicationInstanceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
368
312
|
})(CreateReplicationInstanceResponse || (CreateReplicationInstanceResponse = {}));
|
|
369
|
-
export var InsufficientResourceCapacityFault;
|
|
370
|
-
(function (InsufficientResourceCapacityFault) {
|
|
371
|
-
InsufficientResourceCapacityFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
372
|
-
})(InsufficientResourceCapacityFault || (InsufficientResourceCapacityFault = {}));
|
|
373
|
-
export var InvalidSubnet;
|
|
374
|
-
(function (InvalidSubnet) {
|
|
375
|
-
InvalidSubnet.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
376
|
-
})(InvalidSubnet || (InvalidSubnet = {}));
|
|
377
|
-
export var ReplicationSubnetGroupDoesNotCoverEnoughAZs;
|
|
378
|
-
(function (ReplicationSubnetGroupDoesNotCoverEnoughAZs) {
|
|
379
|
-
ReplicationSubnetGroupDoesNotCoverEnoughAZs.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
380
|
-
})(ReplicationSubnetGroupDoesNotCoverEnoughAZs || (ReplicationSubnetGroupDoesNotCoverEnoughAZs = {}));
|
|
381
|
-
export var StorageQuotaExceededFault;
|
|
382
|
-
(function (StorageQuotaExceededFault) {
|
|
383
|
-
StorageQuotaExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
384
|
-
})(StorageQuotaExceededFault || (StorageQuotaExceededFault = {}));
|
|
385
313
|
export var CreateReplicationSubnetGroupMessage;
|
|
386
314
|
(function (CreateReplicationSubnetGroupMessage) {
|
|
387
315
|
CreateReplicationSubnetGroupMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -729,10 +657,6 @@ export var ImportCertificateResponse;
|
|
|
729
657
|
(function (ImportCertificateResponse) {
|
|
730
658
|
ImportCertificateResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
731
659
|
})(ImportCertificateResponse || (ImportCertificateResponse = {}));
|
|
732
|
-
export var InvalidCertificateFault;
|
|
733
|
-
(function (InvalidCertificateFault) {
|
|
734
|
-
InvalidCertificateFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
735
|
-
})(InvalidCertificateFault || (InvalidCertificateFault = {}));
|
|
736
660
|
export var ListTagsForResourceMessage;
|
|
737
661
|
(function (ListTagsForResourceMessage) {
|
|
738
662
|
ListTagsForResourceMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -769,10 +693,6 @@ export var ModifyReplicationInstanceResponse;
|
|
|
769
693
|
(function (ModifyReplicationInstanceResponse) {
|
|
770
694
|
ModifyReplicationInstanceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
771
695
|
})(ModifyReplicationInstanceResponse || (ModifyReplicationInstanceResponse = {}));
|
|
772
|
-
export var UpgradeDependencyFailureFault;
|
|
773
|
-
(function (UpgradeDependencyFailureFault) {
|
|
774
|
-
UpgradeDependencyFailureFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
775
|
-
})(UpgradeDependencyFailureFault || (UpgradeDependencyFailureFault = {}));
|
|
776
696
|
export var ModifyReplicationSubnetGroupMessage;
|
|
777
697
|
(function (ModifyReplicationSubnetGroupMessage) {
|
|
778
698
|
ModifyReplicationSubnetGroupMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -781,10 +701,6 @@ export var ModifyReplicationSubnetGroupResponse;
|
|
|
781
701
|
(function (ModifyReplicationSubnetGroupResponse) {
|
|
782
702
|
ModifyReplicationSubnetGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
783
703
|
})(ModifyReplicationSubnetGroupResponse || (ModifyReplicationSubnetGroupResponse = {}));
|
|
784
|
-
export var SubnetAlreadyInUse;
|
|
785
|
-
(function (SubnetAlreadyInUse) {
|
|
786
|
-
SubnetAlreadyInUse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
787
|
-
})(SubnetAlreadyInUse || (SubnetAlreadyInUse = {}));
|
|
788
704
|
export var ModifyReplicationTaskMessage;
|
|
789
705
|
(function (ModifyReplicationTaskMessage) {
|
|
790
706
|
ModifyReplicationTaskMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -864,14 +780,6 @@ export var StartReplicationTaskAssessmentResponse;
|
|
|
864
780
|
(function (StartReplicationTaskAssessmentResponse) {
|
|
865
781
|
StartReplicationTaskAssessmentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
866
782
|
})(StartReplicationTaskAssessmentResponse || (StartReplicationTaskAssessmentResponse = {}));
|
|
867
|
-
export var KMSFault;
|
|
868
|
-
(function (KMSFault) {
|
|
869
|
-
KMSFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
870
|
-
})(KMSFault || (KMSFault = {}));
|
|
871
|
-
export var S3ResourceNotFoundFault;
|
|
872
|
-
(function (S3ResourceNotFoundFault) {
|
|
873
|
-
S3ResourceNotFoundFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
874
|
-
})(S3ResourceNotFoundFault || (S3ResourceNotFoundFault = {}));
|
|
875
783
|
export var StartReplicationTaskAssessmentRunMessage;
|
|
876
784
|
(function (StartReplicationTaskAssessmentRunMessage) {
|
|
877
785
|
StartReplicationTaskAssessmentRunMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -5340,7 +5340,7 @@ var serializeAws_json1_1RemoveTagsFromResourceMessage = function (input, context
|
|
|
5340
5340
|
input.TagKeys !== null && { TagKeys: serializeAws_json1_1KeyList(input.TagKeys, context) }));
|
|
5341
5341
|
};
|
|
5342
5342
|
var serializeAws_json1_1S3Settings = function (input, context) {
|
|
5343
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddColumnName !== undefined && input.AddColumnName !== null && { AddColumnName: input.AddColumnName })), (input.BucketFolder !== undefined && input.BucketFolder !== null && { BucketFolder: input.BucketFolder })), (input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName })), (input.CannedAclForObjects !== undefined &&
|
|
5343
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddColumnName !== undefined && input.AddColumnName !== null && { AddColumnName: input.AddColumnName })), (input.BucketFolder !== undefined && input.BucketFolder !== null && { BucketFolder: input.BucketFolder })), (input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName })), (input.CannedAclForObjects !== undefined &&
|
|
5344
5344
|
input.CannedAclForObjects !== null && { CannedAclForObjects: input.CannedAclForObjects })), (input.CdcInsertsAndUpdates !== undefined &&
|
|
5345
5345
|
input.CdcInsertsAndUpdates !== null && { CdcInsertsAndUpdates: input.CdcInsertsAndUpdates })), (input.CdcInsertsOnly !== undefined &&
|
|
5346
5346
|
input.CdcInsertsOnly !== null && { CdcInsertsOnly: input.CdcInsertsOnly })), (input.CdcMaxBatchInterval !== undefined &&
|
|
@@ -5350,7 +5350,8 @@ var serializeAws_json1_1S3Settings = function (input, context) {
|
|
|
5350
5350
|
input.CsvRowDelimiter !== null && { CsvRowDelimiter: input.CsvRowDelimiter })), (input.DataFormat !== undefined && input.DataFormat !== null && { DataFormat: input.DataFormat })), (input.DataPageSize !== undefined && input.DataPageSize !== null && { DataPageSize: input.DataPageSize })), (input.DatePartitionDelimiter !== undefined &&
|
|
5351
5351
|
input.DatePartitionDelimiter !== null && { DatePartitionDelimiter: input.DatePartitionDelimiter })), (input.DatePartitionEnabled !== undefined &&
|
|
5352
5352
|
input.DatePartitionEnabled !== null && { DatePartitionEnabled: input.DatePartitionEnabled })), (input.DatePartitionSequence !== undefined &&
|
|
5353
|
-
input.DatePartitionSequence !== null && { DatePartitionSequence: input.DatePartitionSequence })), (input.
|
|
5353
|
+
input.DatePartitionSequence !== null && { DatePartitionSequence: input.DatePartitionSequence })), (input.DatePartitionTimezone !== undefined &&
|
|
5354
|
+
input.DatePartitionTimezone !== null && { DatePartitionTimezone: input.DatePartitionTimezone })), (input.DictPageSizeLimit !== undefined &&
|
|
5354
5355
|
input.DictPageSizeLimit !== null && { DictPageSizeLimit: input.DictPageSizeLimit })), (input.EnableStatistics !== undefined &&
|
|
5355
5356
|
input.EnableStatistics !== null && { EnableStatistics: input.EnableStatistics })), (input.EncodingType !== undefined && input.EncodingType !== null && { EncodingType: input.EncodingType })), (input.EncryptionMode !== undefined &&
|
|
5356
5357
|
input.EncryptionMode !== null && { EncryptionMode: input.EncryptionMode })), (input.ExternalTableDefinition !== undefined &&
|
|
@@ -6863,6 +6864,7 @@ var deserializeAws_json1_1S3Settings = function (output, context) {
|
|
|
6863
6864
|
DatePartitionDelimiter: __expectString(output.DatePartitionDelimiter),
|
|
6864
6865
|
DatePartitionEnabled: __expectBoolean(output.DatePartitionEnabled),
|
|
6865
6866
|
DatePartitionSequence: __expectString(output.DatePartitionSequence),
|
|
6867
|
+
DatePartitionTimezone: __expectString(output.DatePartitionTimezone),
|
|
6866
6868
|
DictPageSizeLimit: __expectInt32(output.DictPageSizeLimit),
|
|
6867
6869
|
EnableStatistics: __expectBoolean(output.EnableStatistics),
|
|
6868
6870
|
EncodingType: __expectString(output.EncodingType),
|
|
@@ -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;
|
|
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 }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : 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 }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (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: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
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
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import {
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
export var getRuntimeConfig = function (config) {
|
|
17
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
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 }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
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 }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
28
|
};
|
|
@@ -349,9 +349,11 @@ export declare class DatabaseMigrationService extends DatabaseMigrationServiceCl
|
|
|
349
349
|
describeReplicationSubnetGroups(args: DescribeReplicationSubnetGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeReplicationSubnetGroupsCommandOutput) => void): void;
|
|
350
350
|
/**
|
|
351
351
|
* <p>Returns the task assessment results from the Amazon S3 bucket that DMS creates in your
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
*
|
|
352
|
+
* Amazon Web Services account. This action always returns the
|
|
353
|
+
* latest results.</p>
|
|
354
|
+
* <p>For more information about DMS task assessments, see
|
|
355
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.AssessmentReport.html">Creating a task assessment report</a>
|
|
356
|
+
* in the <i>Database Migration Service User Guide</i>.</p>
|
|
355
357
|
*/
|
|
356
358
|
describeReplicationTaskAssessmentResults(args: DescribeReplicationTaskAssessmentResultsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeReplicationTaskAssessmentResultsCommandOutput>;
|
|
357
359
|
describeReplicationTaskAssessmentResults(args: DescribeReplicationTaskAssessmentResultsCommandInput, cb: (err: any, data?: DescribeReplicationTaskAssessmentResultsCommandOutput) => void): void;
|
|
@@ -518,6 +520,19 @@ export declare class DatabaseMigrationService extends DatabaseMigrationServiceCl
|
|
|
518
520
|
/**
|
|
519
521
|
* <p> Starts the replication task assessment for unsupported data types in the source
|
|
520
522
|
* database. </p>
|
|
523
|
+
* <p>You can only use this operation for a task if the following conditions are true:</p>
|
|
524
|
+
* <ul>
|
|
525
|
+
* <li>
|
|
526
|
+
* <p>The task must be in the <code>stopped</code> state.</p>
|
|
527
|
+
* </li>
|
|
528
|
+
* <li>
|
|
529
|
+
* <p>The task must have successful connections to the source and target.</p>
|
|
530
|
+
* </li>
|
|
531
|
+
* </ul>
|
|
532
|
+
* <p>If either of these conditions are not met, an <code>InvalidResourceStateFault</code> error will result. </p>
|
|
533
|
+
* <p>For information about DMS task assessments, see
|
|
534
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.AssessmentReport.html">Creating a task assessment report</a>
|
|
535
|
+
* in the <i>Database Migration Service User Guide</i>.</p>
|
|
521
536
|
*/
|
|
522
537
|
startReplicationTaskAssessment(args: StartReplicationTaskAssessmentCommandInput, options?: __HttpHandlerOptions): Promise<StartReplicationTaskAssessmentCommandOutput>;
|
|
523
538
|
startReplicationTaskAssessment(args: StartReplicationTaskAssessmentCommandInput, cb: (err: any, data?: StartReplicationTaskAssessmentCommandOutput) => void): void;
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
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";
|
|
9
9
|
import { AddTagsToResourceCommandInput, AddTagsToResourceCommandOutput } from "./commands/AddTagsToResourceCommand";
|
|
10
10
|
import { ApplyPendingMaintenanceActionCommandInput, ApplyPendingMaintenanceActionCommandOutput } from "./commands/ApplyPendingMaintenanceActionCommand";
|
|
@@ -163,6 +163,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
163
163
|
* @internal
|
|
164
164
|
*/
|
|
165
165
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
166
|
+
/**
|
|
167
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
168
|
+
*/
|
|
169
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
166
170
|
}
|
|
167
171
|
declare type DatabaseMigrationServiceClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
168
172
|
/**
|
|
@@ -8,9 +8,11 @@ export interface DescribeReplicationTaskAssessmentResultsCommandOutput extends D
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Returns the task assessment results from the Amazon S3 bucket that DMS creates in your
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* Amazon Web Services account. This action always returns the
|
|
12
|
+
* latest results.</p>
|
|
13
|
+
* <p>For more information about DMS task assessments, see
|
|
14
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.AssessmentReport.html">Creating a task assessment report</a>
|
|
15
|
+
* in the <i>Database Migration Service User Guide</i>.</p>
|
|
14
16
|
* @example
|
|
15
17
|
* Use a bare-bones client and the command you need to make an API call.
|
|
16
18
|
* ```javascript
|
|
@@ -9,6 +9,19 @@ export interface StartReplicationTaskAssessmentCommandOutput extends StartReplic
|
|
|
9
9
|
/**
|
|
10
10
|
* <p> Starts the replication task assessment for unsupported data types in the source
|
|
11
11
|
* database. </p>
|
|
12
|
+
* <p>You can only use this operation for a task if the following conditions are true:</p>
|
|
13
|
+
* <ul>
|
|
14
|
+
* <li>
|
|
15
|
+
* <p>The task must be in the <code>stopped</code> state.</p>
|
|
16
|
+
* </li>
|
|
17
|
+
* <li>
|
|
18
|
+
* <p>The task must have successful connections to the source and target.</p>
|
|
19
|
+
* </li>
|
|
20
|
+
* </ul>
|
|
21
|
+
* <p>If either of these conditions are not met, an <code>InvalidResourceStateFault</code> error will result. </p>
|
|
22
|
+
* <p>For information about DMS task assessments, see
|
|
23
|
+
* <a href="https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.AssessmentReport.html">Creating a task assessment report</a>
|
|
24
|
+
* in the <i>Database Migration Service User Guide</i>.</p>
|
|
12
25
|
* @example
|
|
13
26
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
27
|
* ```javascript
|