@aws-sdk/client-redshift 3.489.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Redshift.js +1 -275
- package/dist-cjs/RedshiftClient.js +1 -43
- package/dist-cjs/commands/AcceptReservedNodeExchangeCommand.js +1 -28
- package/dist-cjs/commands/AddPartnerCommand.js +1 -28
- package/dist-cjs/commands/AssociateDataShareConsumerCommand.js +1 -28
- package/dist-cjs/commands/AuthorizeClusterSecurityGroupIngressCommand.js +1 -28
- package/dist-cjs/commands/AuthorizeDataShareCommand.js +1 -28
- package/dist-cjs/commands/AuthorizeEndpointAccessCommand.js +1 -28
- package/dist-cjs/commands/AuthorizeSnapshotAccessCommand.js +1 -28
- package/dist-cjs/commands/BatchDeleteClusterSnapshotsCommand.js +1 -28
- package/dist-cjs/commands/BatchModifyClusterSnapshotsCommand.js +1 -28
- package/dist-cjs/commands/CancelResizeCommand.js +1 -28
- package/dist-cjs/commands/CopyClusterSnapshotCommand.js +1 -28
- package/dist-cjs/commands/CreateAuthenticationProfileCommand.js +1 -28
- package/dist-cjs/commands/CreateClusterCommand.js +1 -29
- package/dist-cjs/commands/CreateClusterParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateClusterSecurityGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateClusterSnapshotCommand.js +1 -28
- package/dist-cjs/commands/CreateClusterSubnetGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateCustomDomainAssociationCommand.js +1 -28
- package/dist-cjs/commands/CreateEndpointAccessCommand.js +1 -28
- package/dist-cjs/commands/CreateEventSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/CreateHsmClientCertificateCommand.js +1 -28
- package/dist-cjs/commands/CreateHsmConfigurationCommand.js +1 -28
- package/dist-cjs/commands/CreateRedshiftIdcApplicationCommand.js +1 -28
- package/dist-cjs/commands/CreateScheduledActionCommand.js +1 -28
- package/dist-cjs/commands/CreateSnapshotCopyGrantCommand.js +1 -28
- package/dist-cjs/commands/CreateSnapshotScheduleCommand.js +1 -28
- package/dist-cjs/commands/CreateTagsCommand.js +1 -28
- package/dist-cjs/commands/CreateUsageLimitCommand.js +1 -28
- package/dist-cjs/commands/DeauthorizeDataShareCommand.js +1 -28
- package/dist-cjs/commands/DeleteAuthenticationProfileCommand.js +1 -28
- package/dist-cjs/commands/DeleteClusterCommand.js +1 -29
- package/dist-cjs/commands/DeleteClusterParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteClusterSecurityGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteClusterSnapshotCommand.js +1 -28
- package/dist-cjs/commands/DeleteClusterSubnetGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteCustomDomainAssociationCommand.js +1 -28
- package/dist-cjs/commands/DeleteEndpointAccessCommand.js +1 -28
- package/dist-cjs/commands/DeleteEventSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/DeleteHsmClientCertificateCommand.js +1 -28
- package/dist-cjs/commands/DeleteHsmConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeletePartnerCommand.js +1 -28
- package/dist-cjs/commands/DeleteRedshiftIdcApplicationCommand.js +1 -28
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteScheduledActionCommand.js +1 -28
- package/dist-cjs/commands/DeleteSnapshotCopyGrantCommand.js +1 -28
- package/dist-cjs/commands/DeleteSnapshotScheduleCommand.js +1 -28
- package/dist-cjs/commands/DeleteTagsCommand.js +1 -28
- package/dist-cjs/commands/DeleteUsageLimitCommand.js +1 -28
- package/dist-cjs/commands/DescribeAccountAttributesCommand.js +1 -28
- package/dist-cjs/commands/DescribeAuthenticationProfilesCommand.js +1 -28
- package/dist-cjs/commands/DescribeClusterDbRevisionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeClusterParameterGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeClusterParametersCommand.js +1 -28
- package/dist-cjs/commands/DescribeClusterSecurityGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeClusterSnapshotsCommand.js +1 -28
- package/dist-cjs/commands/DescribeClusterSubnetGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeClusterTracksCommand.js +1 -28
- package/dist-cjs/commands/DescribeClusterVersionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeClustersCommand.js +1 -29
- package/dist-cjs/commands/DescribeCustomDomainAssociationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDataSharesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDataSharesForConsumerCommand.js +1 -28
- package/dist-cjs/commands/DescribeDataSharesForProducerCommand.js +1 -28
- package/dist-cjs/commands/DescribeDefaultClusterParametersCommand.js +1 -28
- package/dist-cjs/commands/DescribeEndpointAccessCommand.js +1 -28
- package/dist-cjs/commands/DescribeEndpointAuthorizationCommand.js +1 -28
- package/dist-cjs/commands/DescribeEventCategoriesCommand.js +1 -28
- package/dist-cjs/commands/DescribeEventSubscriptionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeEventsCommand.js +1 -28
- package/dist-cjs/commands/DescribeHsmClientCertificatesCommand.js +1 -28
- package/dist-cjs/commands/DescribeHsmConfigurationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeInboundIntegrationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeLoggingStatusCommand.js +1 -28
- package/dist-cjs/commands/DescribeNodeConfigurationOptionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeOrderableClusterOptionsCommand.js +1 -28
- package/dist-cjs/commands/DescribePartnersCommand.js +1 -28
- package/dist-cjs/commands/DescribeRedshiftIdcApplicationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeReservedNodeExchangeStatusCommand.js +1 -28
- package/dist-cjs/commands/DescribeReservedNodeOfferingsCommand.js +1 -28
- package/dist-cjs/commands/DescribeReservedNodesCommand.js +1 -28
- package/dist-cjs/commands/DescribeResizeCommand.js +1 -28
- package/dist-cjs/commands/DescribeScheduledActionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeSnapshotCopyGrantsCommand.js +1 -28
- package/dist-cjs/commands/DescribeSnapshotSchedulesCommand.js +1 -28
- package/dist-cjs/commands/DescribeStorageCommand.js +1 -28
- package/dist-cjs/commands/DescribeTableRestoreStatusCommand.js +1 -28
- package/dist-cjs/commands/DescribeTagsCommand.js +1 -28
- package/dist-cjs/commands/DescribeUsageLimitsCommand.js +1 -28
- package/dist-cjs/commands/DisableLoggingCommand.js +1 -28
- package/dist-cjs/commands/DisableSnapshotCopyCommand.js +1 -29
- package/dist-cjs/commands/DisassociateDataShareConsumerCommand.js +1 -28
- package/dist-cjs/commands/EnableLoggingCommand.js +1 -28
- package/dist-cjs/commands/EnableSnapshotCopyCommand.js +1 -29
- package/dist-cjs/commands/FailoverPrimaryComputeCommand.js +1 -29
- package/dist-cjs/commands/GetClusterCredentialsCommand.js +1 -29
- package/dist-cjs/commands/GetClusterCredentialsWithIAMCommand.js +1 -29
- package/dist-cjs/commands/GetReservedNodeExchangeConfigurationOptionsCommand.js +1 -28
- package/dist-cjs/commands/GetReservedNodeExchangeOfferingsCommand.js +1 -28
- package/dist-cjs/commands/GetResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/ModifyAquaConfigurationCommand.js +1 -28
- package/dist-cjs/commands/ModifyAuthenticationProfileCommand.js +1 -28
- package/dist-cjs/commands/ModifyClusterCommand.js +1 -29
- package/dist-cjs/commands/ModifyClusterDbRevisionCommand.js +1 -29
- package/dist-cjs/commands/ModifyClusterIamRolesCommand.js +1 -29
- package/dist-cjs/commands/ModifyClusterMaintenanceCommand.js +1 -29
- package/dist-cjs/commands/ModifyClusterParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/ModifyClusterSnapshotCommand.js +1 -28
- package/dist-cjs/commands/ModifyClusterSnapshotScheduleCommand.js +1 -28
- package/dist-cjs/commands/ModifyClusterSubnetGroupCommand.js +1 -28
- package/dist-cjs/commands/ModifyCustomDomainAssociationCommand.js +1 -28
- package/dist-cjs/commands/ModifyEndpointAccessCommand.js +1 -28
- package/dist-cjs/commands/ModifyEventSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/ModifyRedshiftIdcApplicationCommand.js +1 -28
- package/dist-cjs/commands/ModifyScheduledActionCommand.js +1 -28
- package/dist-cjs/commands/ModifySnapshotCopyRetentionPeriodCommand.js +1 -29
- package/dist-cjs/commands/ModifySnapshotScheduleCommand.js +1 -28
- package/dist-cjs/commands/ModifyUsageLimitCommand.js +1 -28
- package/dist-cjs/commands/PauseClusterCommand.js +1 -29
- package/dist-cjs/commands/PurchaseReservedNodeOfferingCommand.js +1 -28
- package/dist-cjs/commands/PutResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/RebootClusterCommand.js +1 -29
- package/dist-cjs/commands/RejectDataShareCommand.js +1 -28
- package/dist-cjs/commands/ResetClusterParameterGroupCommand.js +1 -28
- package/dist-cjs/commands/ResizeClusterCommand.js +1 -29
- package/dist-cjs/commands/RestoreFromClusterSnapshotCommand.js +1 -29
- package/dist-cjs/commands/RestoreTableFromClusterSnapshotCommand.js +1 -28
- package/dist-cjs/commands/ResumeClusterCommand.js +1 -29
- package/dist-cjs/commands/RevokeClusterSecurityGroupIngressCommand.js +1 -28
- package/dist-cjs/commands/RevokeEndpointAccessCommand.js +1 -28
- package/dist-cjs/commands/RevokeSnapshotAccessCommand.js +1 -28
- package/dist-cjs/commands/RotateEncryptionKeyCommand.js +1 -29
- package/dist-cjs/commands/UpdatePartnerStatusCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -135
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +22129 -12
- package/dist-cjs/models/RedshiftServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -5
- package/dist-cjs/models/models_0.js +1 -1655
- package/dist-cjs/models/models_1.js +1 -419
- package/dist-cjs/pagination/DescribeClusterDbRevisionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeClusterParameterGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeClusterParametersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeClusterSecurityGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeClusterSnapshotsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeClusterSubnetGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeClusterTracksPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeClusterVersionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeClustersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeCustomDomainAssociationsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDataSharesForConsumerPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDataSharesForProducerPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDataSharesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDefaultClusterParametersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeEndpointAccessPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeEndpointAuthorizationPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeEventSubscriptionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeEventsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeHsmClientCertificatesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeHsmConfigurationsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeInboundIntegrationsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeNodeConfigurationOptionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeOrderableClusterOptionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeRedshiftIdcApplicationsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeReservedNodeExchangeStatusPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeReservedNodeOfferingsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeReservedNodesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeScheduledActionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeSnapshotCopyGrantsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeSnapshotSchedulesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeTableRestoreStatusPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeTagsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeUsageLimitsPaginator.js +1 -7
- package/dist-cjs/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.js +1 -7
- package/dist-cjs/pagination/GetReservedNodeExchangeOfferingsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/index.js +1 -39
- package/dist-cjs/protocols/Aws_query.js +1 -16390
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-cjs/waiters/index.js +1 -7
- package/dist-cjs/waiters/waitForClusterAvailable.js +1 -62
- package/dist-cjs/waiters/waitForClusterDeleted.js +1 -60
- package/dist-cjs/waiters/waitForClusterRestored.js +1 -59
- package/dist-cjs/waiters/waitForSnapshotAvailable.js +1 -74
- package/package.json +41 -41
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const asPartial = (t) => t;
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = {
|
|
10
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
};
|
|
14
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
-
return {
|
|
16
|
-
...runtimeConfig,
|
|
17
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./waitForClusterAvailable"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./waitForClusterDeleted"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./waitForClusterRestored"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./waitForSnapshotAvailable"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,62 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilClusterAvailable = exports.waitForClusterAvailable = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeClustersCommand_1 = require("../commands/DescribeClustersCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeClustersCommand_1.DescribeClustersCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
const flat_1 = [].concat(...result.Clusters);
|
|
14
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
-
return element_2.ClusterStatus;
|
|
16
|
-
});
|
|
17
|
-
return projection_3;
|
|
18
|
-
};
|
|
19
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
20
|
-
for (const element_4 of returnComparator()) {
|
|
21
|
-
allStringEq_5 = allStringEq_5 && element_4 == "available";
|
|
22
|
-
}
|
|
23
|
-
if (allStringEq_5) {
|
|
24
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
catch (e) { }
|
|
28
|
-
try {
|
|
29
|
-
const returnComparator = () => {
|
|
30
|
-
const flat_1 = [].concat(...result.Clusters);
|
|
31
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
32
|
-
return element_2.ClusterStatus;
|
|
33
|
-
});
|
|
34
|
-
return projection_3;
|
|
35
|
-
};
|
|
36
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
37
|
-
if (anyStringEq_4 == "deleting") {
|
|
38
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
catch (e) { }
|
|
43
|
-
}
|
|
44
|
-
catch (exception) {
|
|
45
|
-
reason = exception;
|
|
46
|
-
if (exception.name && exception.name == "ClusterNotFound") {
|
|
47
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
51
|
-
};
|
|
52
|
-
const waitForClusterAvailable = async (params, input) => {
|
|
53
|
-
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
54
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
55
|
-
};
|
|
56
|
-
exports.waitForClusterAvailable = waitForClusterAvailable;
|
|
57
|
-
const waitUntilClusterAvailable = async (params, input) => {
|
|
58
|
-
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
59
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
60
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
61
|
-
};
|
|
62
|
-
exports.waitUntilClusterAvailable = waitUntilClusterAvailable;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,60 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilClusterDeleted = exports.waitForClusterDeleted = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeClustersCommand_1 = require("../commands/DescribeClustersCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeClustersCommand_1.DescribeClustersCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
const flat_1 = [].concat(...result.Clusters);
|
|
14
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
-
return element_2.ClusterStatus;
|
|
16
|
-
});
|
|
17
|
-
return projection_3;
|
|
18
|
-
};
|
|
19
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
20
|
-
if (anyStringEq_4 == "creating") {
|
|
21
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
catch (e) { }
|
|
26
|
-
try {
|
|
27
|
-
const returnComparator = () => {
|
|
28
|
-
const flat_1 = [].concat(...result.Clusters);
|
|
29
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
30
|
-
return element_2.ClusterStatus;
|
|
31
|
-
});
|
|
32
|
-
return projection_3;
|
|
33
|
-
};
|
|
34
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
35
|
-
if (anyStringEq_4 == "modifying") {
|
|
36
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
catch (e) { }
|
|
41
|
-
}
|
|
42
|
-
catch (exception) {
|
|
43
|
-
reason = exception;
|
|
44
|
-
if (exception.name && exception.name == "ClusterNotFound") {
|
|
45
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
49
|
-
};
|
|
50
|
-
const waitForClusterDeleted = async (params, input) => {
|
|
51
|
-
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
52
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
53
|
-
};
|
|
54
|
-
exports.waitForClusterDeleted = waitForClusterDeleted;
|
|
55
|
-
const waitUntilClusterDeleted = async (params, input) => {
|
|
56
|
-
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
57
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
58
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
59
|
-
};
|
|
60
|
-
exports.waitUntilClusterDeleted = waitUntilClusterDeleted;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,59 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilClusterRestored = exports.waitForClusterRestored = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeClustersCommand_1 = require("../commands/DescribeClustersCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeClustersCommand_1.DescribeClustersCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
const flat_1 = [].concat(...result.Clusters);
|
|
14
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
-
return element_2.RestoreStatus.Status;
|
|
16
|
-
});
|
|
17
|
-
return projection_3;
|
|
18
|
-
};
|
|
19
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
20
|
-
for (const element_4 of returnComparator()) {
|
|
21
|
-
allStringEq_5 = allStringEq_5 && element_4 == "completed";
|
|
22
|
-
}
|
|
23
|
-
if (allStringEq_5) {
|
|
24
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
catch (e) { }
|
|
28
|
-
try {
|
|
29
|
-
const returnComparator = () => {
|
|
30
|
-
const flat_1 = [].concat(...result.Clusters);
|
|
31
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
32
|
-
return element_2.ClusterStatus;
|
|
33
|
-
});
|
|
34
|
-
return projection_3;
|
|
35
|
-
};
|
|
36
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
37
|
-
if (anyStringEq_4 == "deleting") {
|
|
38
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
catch (e) { }
|
|
43
|
-
}
|
|
44
|
-
catch (exception) {
|
|
45
|
-
reason = exception;
|
|
46
|
-
}
|
|
47
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
48
|
-
};
|
|
49
|
-
const waitForClusterRestored = async (params, input) => {
|
|
50
|
-
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
51
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
52
|
-
};
|
|
53
|
-
exports.waitForClusterRestored = waitForClusterRestored;
|
|
54
|
-
const waitUntilClusterRestored = async (params, input) => {
|
|
55
|
-
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
56
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
57
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
58
|
-
};
|
|
59
|
-
exports.waitUntilClusterRestored = waitUntilClusterRestored;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,74 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilSnapshotAvailable = exports.waitForSnapshotAvailable = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const DescribeClusterSnapshotsCommand_1 = require("../commands/DescribeClusterSnapshotsCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new DescribeClusterSnapshotsCommand_1.DescribeClusterSnapshotsCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
const flat_1 = [].concat(...result.Snapshots);
|
|
14
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
-
return element_2.Status;
|
|
16
|
-
});
|
|
17
|
-
return projection_3;
|
|
18
|
-
};
|
|
19
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
20
|
-
for (const element_4 of returnComparator()) {
|
|
21
|
-
allStringEq_5 = allStringEq_5 && element_4 == "available";
|
|
22
|
-
}
|
|
23
|
-
if (allStringEq_5) {
|
|
24
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
catch (e) { }
|
|
28
|
-
try {
|
|
29
|
-
const returnComparator = () => {
|
|
30
|
-
const flat_1 = [].concat(...result.Snapshots);
|
|
31
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
32
|
-
return element_2.Status;
|
|
33
|
-
});
|
|
34
|
-
return projection_3;
|
|
35
|
-
};
|
|
36
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
37
|
-
if (anyStringEq_4 == "failed") {
|
|
38
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
catch (e) { }
|
|
43
|
-
try {
|
|
44
|
-
const returnComparator = () => {
|
|
45
|
-
const flat_1 = [].concat(...result.Snapshots);
|
|
46
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
47
|
-
return element_2.Status;
|
|
48
|
-
});
|
|
49
|
-
return projection_3;
|
|
50
|
-
};
|
|
51
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
52
|
-
if (anyStringEq_4 == "deleted") {
|
|
53
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
catch (e) { }
|
|
58
|
-
}
|
|
59
|
-
catch (exception) {
|
|
60
|
-
reason = exception;
|
|
61
|
-
}
|
|
62
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
63
|
-
};
|
|
64
|
-
const waitForSnapshotAvailable = async (params, input) => {
|
|
65
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
66
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
67
|
-
};
|
|
68
|
-
exports.waitForSnapshotAvailable = waitForSnapshotAvailable;
|
|
69
|
-
const waitUntilSnapshotAvailable = async (params, input) => {
|
|
70
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
71
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
72
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
73
|
-
};
|
|
74
|
-
exports.waitUntilSnapshotAvailable = waitUntilSnapshotAvailable;
|
|
1
|
+
module.exports = require("../index.js");
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-redshift",
|
|
3
3
|
"description": "AWS SDK for JavaScript Redshift Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.495.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
-
"build:cjs": "
|
|
7
|
+
"build:cjs": "node ../../scripts/compilation/inline client-redshift",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -20,49 +20,49 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0
|
|
37
|
-
"@smithy/core": "^1.
|
|
38
|
-
"@smithy/fetch-http-handler": "^2.
|
|
39
|
-
"@smithy/hash-node": "^2.0
|
|
40
|
-
"@smithy/invalid-dependency": "^2.0
|
|
41
|
-
"@smithy/middleware-content-length": "^2.0
|
|
42
|
-
"@smithy/middleware-endpoint": "^2.
|
|
43
|
-
"@smithy/middleware-retry": "^2.0
|
|
44
|
-
"@smithy/middleware-serde": "^2.0
|
|
45
|
-
"@smithy/middleware-stack": "^2.0
|
|
46
|
-
"@smithy/node-config-provider": "^2.
|
|
47
|
-
"@smithy/node-http-handler": "^2.
|
|
48
|
-
"@smithy/protocol-http": "^3.0
|
|
49
|
-
"@smithy/smithy-client": "^2.
|
|
50
|
-
"@smithy/types": "^2.
|
|
51
|
-
"@smithy/url-parser": "^2.0
|
|
52
|
-
"@smithy/util-base64": "^2.0
|
|
53
|
-
"@smithy/util-body-length-browser": "^2.0
|
|
54
|
-
"@smithy/util-body-length-node": "^2.
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^2.0
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.0
|
|
57
|
-
"@smithy/util-endpoints": "^1.0
|
|
58
|
-
"@smithy/util-retry": "^2.0
|
|
59
|
-
"@smithy/util-utf8": "^2.0
|
|
60
|
-
"@smithy/util-waiter": "^2.0
|
|
23
|
+
"@aws-sdk/client-sts": "3.495.0",
|
|
24
|
+
"@aws-sdk/core": "3.495.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.495.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.495.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.495.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.495.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.495.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.495.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.495.0",
|
|
32
|
+
"@aws-sdk/types": "3.495.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.495.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.495.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.495.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.1.0",
|
|
37
|
+
"@smithy/core": "^1.3.0",
|
|
38
|
+
"@smithy/fetch-http-handler": "^2.4.0",
|
|
39
|
+
"@smithy/hash-node": "^2.1.0",
|
|
40
|
+
"@smithy/invalid-dependency": "^2.1.0",
|
|
41
|
+
"@smithy/middleware-content-length": "^2.1.0",
|
|
42
|
+
"@smithy/middleware-endpoint": "^2.4.0",
|
|
43
|
+
"@smithy/middleware-retry": "^2.1.0",
|
|
44
|
+
"@smithy/middleware-serde": "^2.1.0",
|
|
45
|
+
"@smithy/middleware-stack": "^2.1.0",
|
|
46
|
+
"@smithy/node-config-provider": "^2.2.0",
|
|
47
|
+
"@smithy/node-http-handler": "^2.3.0",
|
|
48
|
+
"@smithy/protocol-http": "^3.1.0",
|
|
49
|
+
"@smithy/smithy-client": "^2.3.0",
|
|
50
|
+
"@smithy/types": "^2.9.0",
|
|
51
|
+
"@smithy/url-parser": "^2.1.0",
|
|
52
|
+
"@smithy/util-base64": "^2.1.0",
|
|
53
|
+
"@smithy/util-body-length-browser": "^2.1.0",
|
|
54
|
+
"@smithy/util-body-length-node": "^2.2.0",
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^2.1.0",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.1.0",
|
|
57
|
+
"@smithy/util-endpoints": "^1.1.0",
|
|
58
|
+
"@smithy/util-retry": "^2.1.0",
|
|
59
|
+
"@smithy/util-utf8": "^2.1.0",
|
|
60
|
+
"@smithy/util-waiter": "^2.1.0",
|
|
61
61
|
"fast-xml-parser": "4.2.5",
|
|
62
62
|
"tslib": "^2.5.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@smithy/service-client-documentation-generator": "^2.
|
|
65
|
+
"@smithy/service-client-documentation-generator": "^2.1.0",
|
|
66
66
|
"@tsconfig/node14": "1.0.3",
|
|
67
67
|
"@types/node": "^14.14.31",
|
|
68
68
|
"concurrently": "7.0.0",
|