@aws-sdk/client-redshift 3.43.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 +48 -0
- package/dist-cjs/endpoints.js +1 -20
- package/dist-cjs/models/models_0.js +4 -648
- package/dist-cjs/models/models_1.js +3 -117
- package/dist-cjs/protocols/Aws_query.js +4 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -20
- package/dist-es/models/models_0.js +0 -428
- package/dist-es/models/models_1.js +0 -76
- package/dist-es/protocols/Aws_query.js +4 -0
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/Redshift.d.ts +1 -1
- package/dist-types/RedshiftClient.d.ts +5 -1
- package/dist-types/commands/AuthorizeDataShareCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +6 -644
- package/dist-types/models/models_1.d.ts +0 -114
- 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/RedshiftClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +2 -428
- package/dist-types/ts3.4/models/models_1.d.ts +0 -76
- 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 +40 -47
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdatePartnerStatusInputMessage = exports.RotateEncryptionKeyResult = exports.RotateEncryptionKeyMessage =
|
|
3
|
+
exports.GetClusterCredentialsMessage = exports.EnableSnapshotCopyResult = exports.EnableSnapshotCopyMessage = exports.EnableLoggingMessage = exports.DisassociateDataShareConsumerMessage = exports.DisableSnapshotCopyResult = exports.DisableSnapshotCopyMessage = exports.DisableLoggingMessage = exports.UsageLimitList = exports.DescribeUsageLimitsMessage = exports.TaggedResourceListMessage = exports.TaggedResource = exports.DescribeTagsMessage = exports.TableRestoreStatusMessage = exports.TableRestoreStatus = exports.DescribeTableRestoreStatusMessage = exports.DescribeSnapshotSchedulesOutputMessage = exports.DescribeSnapshotSchedulesMessage = exports.SnapshotCopyGrantMessage = exports.DescribeSnapshotCopyGrantsMessage = exports.ScheduledActionsMessage = exports.DescribeScheduledActionsMessage = exports.ScheduledActionTypeValues = exports.ScheduledActionFilter = exports.ScheduledActionFilterName = exports.DescribeResizeMessage = exports.ReservedNodesMessage = exports.DescribeReservedNodesMessage = exports.ReservedNodeOfferingsMessage = exports.ReservedNodeOffering = exports.DescribeReservedNodeOfferingsMessage = exports.DescribeReservedNodeExchangeStatusOutputMessage = exports.DescribeReservedNodeExchangeStatusInputMessage = exports.DescribePartnersOutputMessage = exports.PartnerIntegrationInfo = exports.PartnerIntegrationStatus = exports.DescribePartnersInputMessage = exports.OrderableClusterOptionsMessage = exports.OrderableClusterOption = exports.DescribeOrderableClusterOptionsMessage = exports.NodeConfigurationOptionsMessage = exports.NodeConfigurationOption = exports.Mode = exports.DescribeNodeConfigurationOptionsMessage = exports.NodeConfigurationOptionsFilter = exports.OperatorType = exports.NodeConfigurationOptionsFilterName = exports.LoggingStatus = exports.DescribeLoggingStatusMessage = exports.HsmConfigurationMessage = void 0;
|
|
4
|
+
exports.RevokeSnapshotAccessResult = exports.RevokeSnapshotAccessMessage = exports.RevokeEndpointAccessMessage = exports.RevokeClusterSecurityGroupIngressResult = exports.RevokeClusterSecurityGroupIngressMessage = exports.ResumeClusterResult = exports.RestoreTableFromClusterSnapshotResult = exports.RestoreTableFromClusterSnapshotMessage = exports.RestoreFromClusterSnapshotResult = exports.RestoreFromClusterSnapshotMessage = exports.ResizeClusterResult = exports.ResetClusterParameterGroupMessage = exports.RejectDataShareMessage = exports.RebootClusterResult = exports.RebootClusterMessage = exports.PurchaseReservedNodeOfferingResult = exports.PurchaseReservedNodeOfferingMessage = exports.PauseClusterResult = exports.ModifyUsageLimitMessage = exports.ModifySnapshotScheduleMessage = exports.ModifySnapshotCopyRetentionPeriodResult = exports.ModifySnapshotCopyRetentionPeriodMessage = exports.ModifyScheduledActionMessage = exports.ModifyEventSubscriptionResult = exports.ModifyEventSubscriptionMessage = exports.ModifyEndpointAccessMessage = exports.ModifyClusterSubnetGroupResult = exports.ModifyClusterSubnetGroupMessage = exports.ModifyClusterSnapshotScheduleMessage = exports.ModifyClusterSnapshotResult = exports.ModifyClusterSnapshotMessage = exports.ModifyClusterParameterGroupMessage = exports.ModifyClusterMaintenanceResult = exports.ModifyClusterMaintenanceMessage = exports.ModifyClusterIamRolesResult = exports.ModifyClusterIamRolesMessage = exports.ModifyClusterDbRevisionResult = exports.ModifyClusterDbRevisionMessage = exports.ModifyClusterResult = exports.ModifyClusterMessage = exports.ModifyAuthenticationProfileResult = exports.ModifyAuthenticationProfileMessage = exports.ModifyAquaOutputMessage = exports.ModifyAquaInputMessage = exports.GetReservedNodeExchangeOfferingsOutputMessage = exports.GetReservedNodeExchangeOfferingsInputMessage = exports.GetReservedNodeExchangeConfigurationOptionsOutputMessage = exports.ReservedNodeConfigurationOption = exports.GetReservedNodeExchangeConfigurationOptionsInputMessage = exports.ReservedNodeExchangeActionType = void 0;
|
|
5
|
+
exports.UpdatePartnerStatusInputMessage = exports.RotateEncryptionKeyResult = exports.RotateEncryptionKeyMessage = void 0;
|
|
6
6
|
var HsmConfigurationMessage;
|
|
7
7
|
(function (HsmConfigurationMessage) {
|
|
8
8
|
HsmConfigurationMessage.filterSensitiveLog = (obj) => ({
|
|
@@ -122,12 +122,6 @@ var DescribeReservedNodeExchangeStatusOutputMessage;
|
|
|
122
122
|
...obj,
|
|
123
123
|
});
|
|
124
124
|
})(DescribeReservedNodeExchangeStatusOutputMessage = exports.DescribeReservedNodeExchangeStatusOutputMessage || (exports.DescribeReservedNodeExchangeStatusOutputMessage = {}));
|
|
125
|
-
var ReservedNodeExchangeNotFoundFault;
|
|
126
|
-
(function (ReservedNodeExchangeNotFoundFault) {
|
|
127
|
-
ReservedNodeExchangeNotFoundFault.filterSensitiveLog = (obj) => ({
|
|
128
|
-
...obj,
|
|
129
|
-
});
|
|
130
|
-
})(ReservedNodeExchangeNotFoundFault = exports.ReservedNodeExchangeNotFoundFault || (exports.ReservedNodeExchangeNotFoundFault = {}));
|
|
131
125
|
var DescribeReservedNodeOfferingsMessage;
|
|
132
126
|
(function (DescribeReservedNodeOfferingsMessage) {
|
|
133
127
|
DescribeReservedNodeOfferingsMessage.filterSensitiveLog = (obj) => ({
|
|
@@ -223,12 +217,6 @@ var DescribeTableRestoreStatusMessage;
|
|
|
223
217
|
...obj,
|
|
224
218
|
});
|
|
225
219
|
})(DescribeTableRestoreStatusMessage = exports.DescribeTableRestoreStatusMessage || (exports.DescribeTableRestoreStatusMessage = {}));
|
|
226
|
-
var TableRestoreNotFoundFault;
|
|
227
|
-
(function (TableRestoreNotFoundFault) {
|
|
228
|
-
TableRestoreNotFoundFault.filterSensitiveLog = (obj) => ({
|
|
229
|
-
...obj,
|
|
230
|
-
});
|
|
231
|
-
})(TableRestoreNotFoundFault = exports.TableRestoreNotFoundFault || (exports.TableRestoreNotFoundFault = {}));
|
|
232
220
|
var TableRestoreStatus;
|
|
233
221
|
(function (TableRestoreStatus) {
|
|
234
222
|
TableRestoreStatus.filterSensitiveLog = (obj) => ({
|
|
@@ -289,12 +277,6 @@ var DisableSnapshotCopyResult;
|
|
|
289
277
|
...obj,
|
|
290
278
|
});
|
|
291
279
|
})(DisableSnapshotCopyResult = exports.DisableSnapshotCopyResult || (exports.DisableSnapshotCopyResult = {}));
|
|
292
|
-
var SnapshotCopyAlreadyDisabledFault;
|
|
293
|
-
(function (SnapshotCopyAlreadyDisabledFault) {
|
|
294
|
-
SnapshotCopyAlreadyDisabledFault.filterSensitiveLog = (obj) => ({
|
|
295
|
-
...obj,
|
|
296
|
-
});
|
|
297
|
-
})(SnapshotCopyAlreadyDisabledFault = exports.SnapshotCopyAlreadyDisabledFault || (exports.SnapshotCopyAlreadyDisabledFault = {}));
|
|
298
280
|
var DisassociateDataShareConsumerMessage;
|
|
299
281
|
(function (DisassociateDataShareConsumerMessage) {
|
|
300
282
|
DisassociateDataShareConsumerMessage.filterSensitiveLog = (obj) => ({
|
|
@@ -307,24 +289,6 @@ var EnableLoggingMessage;
|
|
|
307
289
|
...obj,
|
|
308
290
|
});
|
|
309
291
|
})(EnableLoggingMessage = exports.EnableLoggingMessage || (exports.EnableLoggingMessage = {}));
|
|
310
|
-
var InsufficientS3BucketPolicyFault;
|
|
311
|
-
(function (InsufficientS3BucketPolicyFault) {
|
|
312
|
-
InsufficientS3BucketPolicyFault.filterSensitiveLog = (obj) => ({
|
|
313
|
-
...obj,
|
|
314
|
-
});
|
|
315
|
-
})(InsufficientS3BucketPolicyFault = exports.InsufficientS3BucketPolicyFault || (exports.InsufficientS3BucketPolicyFault = {}));
|
|
316
|
-
var InvalidS3BucketNameFault;
|
|
317
|
-
(function (InvalidS3BucketNameFault) {
|
|
318
|
-
InvalidS3BucketNameFault.filterSensitiveLog = (obj) => ({
|
|
319
|
-
...obj,
|
|
320
|
-
});
|
|
321
|
-
})(InvalidS3BucketNameFault = exports.InvalidS3BucketNameFault || (exports.InvalidS3BucketNameFault = {}));
|
|
322
|
-
var InvalidS3KeyPrefixFault;
|
|
323
|
-
(function (InvalidS3KeyPrefixFault) {
|
|
324
|
-
InvalidS3KeyPrefixFault.filterSensitiveLog = (obj) => ({
|
|
325
|
-
...obj,
|
|
326
|
-
});
|
|
327
|
-
})(InvalidS3KeyPrefixFault = exports.InvalidS3KeyPrefixFault || (exports.InvalidS3KeyPrefixFault = {}));
|
|
328
292
|
var EnableSnapshotCopyMessage;
|
|
329
293
|
(function (EnableSnapshotCopyMessage) {
|
|
330
294
|
EnableSnapshotCopyMessage.filterSensitiveLog = (obj) => ({
|
|
@@ -337,30 +301,6 @@ var EnableSnapshotCopyResult;
|
|
|
337
301
|
...obj,
|
|
338
302
|
});
|
|
339
303
|
})(EnableSnapshotCopyResult = exports.EnableSnapshotCopyResult || (exports.EnableSnapshotCopyResult = {}));
|
|
340
|
-
var IncompatibleOrderableOptions;
|
|
341
|
-
(function (IncompatibleOrderableOptions) {
|
|
342
|
-
IncompatibleOrderableOptions.filterSensitiveLog = (obj) => ({
|
|
343
|
-
...obj,
|
|
344
|
-
});
|
|
345
|
-
})(IncompatibleOrderableOptions = exports.IncompatibleOrderableOptions || (exports.IncompatibleOrderableOptions = {}));
|
|
346
|
-
var SnapshotCopyAlreadyEnabledFault;
|
|
347
|
-
(function (SnapshotCopyAlreadyEnabledFault) {
|
|
348
|
-
SnapshotCopyAlreadyEnabledFault.filterSensitiveLog = (obj) => ({
|
|
349
|
-
...obj,
|
|
350
|
-
});
|
|
351
|
-
})(SnapshotCopyAlreadyEnabledFault = exports.SnapshotCopyAlreadyEnabledFault || (exports.SnapshotCopyAlreadyEnabledFault = {}));
|
|
352
|
-
var UnknownSnapshotCopyRegionFault;
|
|
353
|
-
(function (UnknownSnapshotCopyRegionFault) {
|
|
354
|
-
UnknownSnapshotCopyRegionFault.filterSensitiveLog = (obj) => ({
|
|
355
|
-
...obj,
|
|
356
|
-
});
|
|
357
|
-
})(UnknownSnapshotCopyRegionFault = exports.UnknownSnapshotCopyRegionFault || (exports.UnknownSnapshotCopyRegionFault = {}));
|
|
358
|
-
var EndpointAuthorizationNotFoundFault;
|
|
359
|
-
(function (EndpointAuthorizationNotFoundFault) {
|
|
360
|
-
EndpointAuthorizationNotFoundFault.filterSensitiveLog = (obj) => ({
|
|
361
|
-
...obj,
|
|
362
|
-
});
|
|
363
|
-
})(EndpointAuthorizationNotFoundFault = exports.EndpointAuthorizationNotFoundFault || (exports.EndpointAuthorizationNotFoundFault = {}));
|
|
364
304
|
var GetClusterCredentialsMessage;
|
|
365
305
|
(function (GetClusterCredentialsMessage) {
|
|
366
306
|
GetClusterCredentialsMessage.filterSensitiveLog = (obj) => ({
|
|
@@ -402,24 +342,6 @@ var GetReservedNodeExchangeOfferingsOutputMessage;
|
|
|
402
342
|
...obj,
|
|
403
343
|
});
|
|
404
344
|
})(GetReservedNodeExchangeOfferingsOutputMessage = exports.GetReservedNodeExchangeOfferingsOutputMessage || (exports.GetReservedNodeExchangeOfferingsOutputMessage = {}));
|
|
405
|
-
var InProgressTableRestoreQuotaExceededFault;
|
|
406
|
-
(function (InProgressTableRestoreQuotaExceededFault) {
|
|
407
|
-
InProgressTableRestoreQuotaExceededFault.filterSensitiveLog = (obj) => ({
|
|
408
|
-
...obj,
|
|
409
|
-
});
|
|
410
|
-
})(InProgressTableRestoreQuotaExceededFault = exports.InProgressTableRestoreQuotaExceededFault || (exports.InProgressTableRestoreQuotaExceededFault = {}));
|
|
411
|
-
var InvalidRestoreFault;
|
|
412
|
-
(function (InvalidRestoreFault) {
|
|
413
|
-
InvalidRestoreFault.filterSensitiveLog = (obj) => ({
|
|
414
|
-
...obj,
|
|
415
|
-
});
|
|
416
|
-
})(InvalidRestoreFault = exports.InvalidRestoreFault || (exports.InvalidRestoreFault = {}));
|
|
417
|
-
var InvalidTableRestoreArgumentFault;
|
|
418
|
-
(function (InvalidTableRestoreArgumentFault) {
|
|
419
|
-
InvalidTableRestoreArgumentFault.filterSensitiveLog = (obj) => ({
|
|
420
|
-
...obj,
|
|
421
|
-
});
|
|
422
|
-
})(InvalidTableRestoreArgumentFault = exports.InvalidTableRestoreArgumentFault || (exports.InvalidTableRestoreArgumentFault = {}));
|
|
423
345
|
var ModifyAquaInputMessage;
|
|
424
346
|
(function (ModifyAquaInputMessage) {
|
|
425
347
|
ModifyAquaInputMessage.filterSensitiveLog = (obj) => ({
|
|
@@ -456,18 +378,6 @@ var ModifyClusterResult;
|
|
|
456
378
|
...obj,
|
|
457
379
|
});
|
|
458
380
|
})(ModifyClusterResult = exports.ModifyClusterResult || (exports.ModifyClusterResult = {}));
|
|
459
|
-
var TableLimitExceededFault;
|
|
460
|
-
(function (TableLimitExceededFault) {
|
|
461
|
-
TableLimitExceededFault.filterSensitiveLog = (obj) => ({
|
|
462
|
-
...obj,
|
|
463
|
-
});
|
|
464
|
-
})(TableLimitExceededFault = exports.TableLimitExceededFault || (exports.TableLimitExceededFault = {}));
|
|
465
|
-
var UnsupportedOptionFault;
|
|
466
|
-
(function (UnsupportedOptionFault) {
|
|
467
|
-
UnsupportedOptionFault.filterSensitiveLog = (obj) => ({
|
|
468
|
-
...obj,
|
|
469
|
-
});
|
|
470
|
-
})(UnsupportedOptionFault = exports.UnsupportedOptionFault || (exports.UnsupportedOptionFault = {}));
|
|
471
381
|
var ModifyClusterDbRevisionMessage;
|
|
472
382
|
(function (ModifyClusterDbRevisionMessage) {
|
|
473
383
|
ModifyClusterDbRevisionMessage.filterSensitiveLog = (obj) => ({
|
|
@@ -540,12 +450,6 @@ var ModifyClusterSubnetGroupResult;
|
|
|
540
450
|
...obj,
|
|
541
451
|
});
|
|
542
452
|
})(ModifyClusterSubnetGroupResult = exports.ModifyClusterSubnetGroupResult || (exports.ModifyClusterSubnetGroupResult = {}));
|
|
543
|
-
var SubnetAlreadyInUse;
|
|
544
|
-
(function (SubnetAlreadyInUse) {
|
|
545
|
-
SubnetAlreadyInUse.filterSensitiveLog = (obj) => ({
|
|
546
|
-
...obj,
|
|
547
|
-
});
|
|
548
|
-
})(SubnetAlreadyInUse = exports.SubnetAlreadyInUse || (exports.SubnetAlreadyInUse = {}));
|
|
549
453
|
var ModifyEndpointAccessMessage;
|
|
550
454
|
(function (ModifyEndpointAccessMessage) {
|
|
551
455
|
ModifyEndpointAccessMessage.filterSensitiveLog = (obj) => ({
|
|
@@ -582,24 +486,12 @@ var ModifySnapshotCopyRetentionPeriodResult;
|
|
|
582
486
|
...obj,
|
|
583
487
|
});
|
|
584
488
|
})(ModifySnapshotCopyRetentionPeriodResult = exports.ModifySnapshotCopyRetentionPeriodResult || (exports.ModifySnapshotCopyRetentionPeriodResult = {}));
|
|
585
|
-
var SnapshotCopyDisabledFault;
|
|
586
|
-
(function (SnapshotCopyDisabledFault) {
|
|
587
|
-
SnapshotCopyDisabledFault.filterSensitiveLog = (obj) => ({
|
|
588
|
-
...obj,
|
|
589
|
-
});
|
|
590
|
-
})(SnapshotCopyDisabledFault = exports.SnapshotCopyDisabledFault || (exports.SnapshotCopyDisabledFault = {}));
|
|
591
489
|
var ModifySnapshotScheduleMessage;
|
|
592
490
|
(function (ModifySnapshotScheduleMessage) {
|
|
593
491
|
ModifySnapshotScheduleMessage.filterSensitiveLog = (obj) => ({
|
|
594
492
|
...obj,
|
|
595
493
|
});
|
|
596
494
|
})(ModifySnapshotScheduleMessage = exports.ModifySnapshotScheduleMessage || (exports.ModifySnapshotScheduleMessage = {}));
|
|
597
|
-
var SnapshotScheduleUpdateInProgressFault;
|
|
598
|
-
(function (SnapshotScheduleUpdateInProgressFault) {
|
|
599
|
-
SnapshotScheduleUpdateInProgressFault.filterSensitiveLog = (obj) => ({
|
|
600
|
-
...obj,
|
|
601
|
-
});
|
|
602
|
-
})(SnapshotScheduleUpdateInProgressFault = exports.SnapshotScheduleUpdateInProgressFault || (exports.SnapshotScheduleUpdateInProgressFault = {}));
|
|
603
495
|
var ModifyUsageLimitMessage;
|
|
604
496
|
(function (ModifyUsageLimitMessage) {
|
|
605
497
|
ModifyUsageLimitMessage.filterSensitiveLog = (obj) => ({
|
|
@@ -624,12 +516,6 @@ var PurchaseReservedNodeOfferingResult;
|
|
|
624
516
|
...obj,
|
|
625
517
|
});
|
|
626
518
|
})(PurchaseReservedNodeOfferingResult = exports.PurchaseReservedNodeOfferingResult || (exports.PurchaseReservedNodeOfferingResult = {}));
|
|
627
|
-
var ReservedNodeQuotaExceededFault;
|
|
628
|
-
(function (ReservedNodeQuotaExceededFault) {
|
|
629
|
-
ReservedNodeQuotaExceededFault.filterSensitiveLog = (obj) => ({
|
|
630
|
-
...obj,
|
|
631
|
-
});
|
|
632
|
-
})(ReservedNodeQuotaExceededFault = exports.ReservedNodeQuotaExceededFault || (exports.ReservedNodeQuotaExceededFault = {}));
|
|
633
519
|
var RebootClusterMessage;
|
|
634
520
|
(function (RebootClusterMessage) {
|
|
635
521
|
RebootClusterMessage.filterSensitiveLog = (obj) => ({
|
|
@@ -15029,6 +15029,7 @@ const deserializeAws_queryDataShare = (output, context) => {
|
|
|
15029
15029
|
ProducerArn: undefined,
|
|
15030
15030
|
AllowPubliclyAccessibleConsumers: undefined,
|
|
15031
15031
|
DataShareAssociations: undefined,
|
|
15032
|
+
ManagedBy: undefined,
|
|
15032
15033
|
};
|
|
15033
15034
|
if (output["DataShareArn"] !== undefined) {
|
|
15034
15035
|
contents.DataShareArn = smithy_client_1.expectString(output["DataShareArn"]);
|
|
@@ -15045,6 +15046,9 @@ const deserializeAws_queryDataShare = (output, context) => {
|
|
|
15045
15046
|
if (output["DataShareAssociations"] !== undefined && output["DataShareAssociations"]["member"] !== undefined) {
|
|
15046
15047
|
contents.DataShareAssociations = deserializeAws_queryDataShareAssociationList(smithy_client_1.getArrayIfSingleItem(output["DataShareAssociations"]["member"]), context);
|
|
15047
15048
|
}
|
|
15049
|
+
if (output["ManagedBy"] !== undefined) {
|
|
15050
|
+
contents.ManagedBy = smithy_client_1.expectString(output["ManagedBy"]);
|
|
15051
|
+
}
|
|
15048
15052
|
return contents;
|
|
15049
15053
|
};
|
|
15050
15054
|
const deserializeAws_queryDataShareAssociation = (output, context) => {
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"ca-central-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "redshift.ca-central-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "redshift-fips.ca-central-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-1": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "redshift.us-east-1.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "redshift-fips.us-east-1.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-east-2": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "redshift.us-east-2.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "redshift-fips.us-east-2.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -57,10 +45,6 @@ var regionHash = {
|
|
|
57
45
|
},
|
|
58
46
|
"us-west-1": {
|
|
59
47
|
variants: [
|
|
60
|
-
{
|
|
61
|
-
hostname: "redshift.us-west-1.amazonaws.com",
|
|
62
|
-
tags: [],
|
|
63
|
-
},
|
|
64
48
|
{
|
|
65
49
|
hostname: "redshift-fips.us-west-1.amazonaws.com",
|
|
66
50
|
tags: ["fips"],
|
|
@@ -69,10 +53,6 @@ var regionHash = {
|
|
|
69
53
|
},
|
|
70
54
|
"us-west-2": {
|
|
71
55
|
variants: [
|
|
72
|
-
{
|
|
73
|
-
hostname: "redshift.us-west-2.amazonaws.com",
|
|
74
|
-
tags: [],
|
|
75
|
-
},
|
|
76
56
|
{
|
|
77
57
|
hostname: "redshift-fips.us-west-2.amazonaws.com",
|
|
78
58
|
tags: ["fips"],
|
|
@@ -91,6 +71,7 @@ var partitionHash = {
|
|
|
91
71
|
"ap-south-1",
|
|
92
72
|
"ap-southeast-1",
|
|
93
73
|
"ap-southeast-2",
|
|
74
|
+
"ap-southeast-3",
|
|
94
75
|
"ca-central-1",
|
|
95
76
|
"eu-central-1",
|
|
96
77
|
"eu-north-1",
|