@aws-sdk/client-redshift 3.186.0 → 3.188.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 +8 -0
- package/dist-cjs/protocols/Aws_query.js +8 -4
- package/dist-es/Redshift.js +478 -485
- package/dist-es/RedshiftClient.js +22 -28
- package/dist-es/commands/AcceptReservedNodeExchangeCommand.js +21 -28
- package/dist-es/commands/AddPartnerCommand.js +21 -28
- package/dist-es/commands/AssociateDataShareConsumerCommand.js +21 -28
- package/dist-es/commands/AuthorizeClusterSecurityGroupIngressCommand.js +21 -28
- package/dist-es/commands/AuthorizeDataShareCommand.js +21 -28
- package/dist-es/commands/AuthorizeEndpointAccessCommand.js +21 -28
- package/dist-es/commands/AuthorizeSnapshotAccessCommand.js +21 -28
- package/dist-es/commands/BatchDeleteClusterSnapshotsCommand.js +21 -28
- package/dist-es/commands/BatchModifyClusterSnapshotsCommand.js +21 -28
- package/dist-es/commands/CancelResizeCommand.js +21 -28
- package/dist-es/commands/CopyClusterSnapshotCommand.js +21 -28
- package/dist-es/commands/CreateAuthenticationProfileCommand.js +21 -28
- package/dist-es/commands/CreateClusterCommand.js +21 -28
- package/dist-es/commands/CreateClusterParameterGroupCommand.js +21 -28
- package/dist-es/commands/CreateClusterSecurityGroupCommand.js +21 -28
- package/dist-es/commands/CreateClusterSnapshotCommand.js +21 -28
- package/dist-es/commands/CreateClusterSubnetGroupCommand.js +21 -28
- package/dist-es/commands/CreateEndpointAccessCommand.js +21 -28
- package/dist-es/commands/CreateEventSubscriptionCommand.js +21 -28
- package/dist-es/commands/CreateHsmClientCertificateCommand.js +21 -28
- package/dist-es/commands/CreateHsmConfigurationCommand.js +21 -28
- package/dist-es/commands/CreateScheduledActionCommand.js +21 -28
- package/dist-es/commands/CreateSnapshotCopyGrantCommand.js +21 -28
- package/dist-es/commands/CreateSnapshotScheduleCommand.js +21 -28
- package/dist-es/commands/CreateTagsCommand.js +22 -29
- package/dist-es/commands/CreateUsageLimitCommand.js +21 -28
- package/dist-es/commands/DeauthorizeDataShareCommand.js +21 -28
- package/dist-es/commands/DeleteAuthenticationProfileCommand.js +21 -28
- package/dist-es/commands/DeleteClusterCommand.js +21 -28
- package/dist-es/commands/DeleteClusterParameterGroupCommand.js +22 -29
- package/dist-es/commands/DeleteClusterSecurityGroupCommand.js +22 -29
- package/dist-es/commands/DeleteClusterSnapshotCommand.js +21 -28
- package/dist-es/commands/DeleteClusterSubnetGroupCommand.js +22 -29
- package/dist-es/commands/DeleteEndpointAccessCommand.js +21 -28
- package/dist-es/commands/DeleteEventSubscriptionCommand.js +22 -29
- package/dist-es/commands/DeleteHsmClientCertificateCommand.js +22 -29
- package/dist-es/commands/DeleteHsmConfigurationCommand.js +22 -29
- package/dist-es/commands/DeletePartnerCommand.js +21 -28
- package/dist-es/commands/DeleteScheduledActionCommand.js +22 -29
- package/dist-es/commands/DeleteSnapshotCopyGrantCommand.js +22 -29
- package/dist-es/commands/DeleteSnapshotScheduleCommand.js +22 -29
- package/dist-es/commands/DeleteTagsCommand.js +22 -29
- package/dist-es/commands/DeleteUsageLimitCommand.js +22 -29
- package/dist-es/commands/DescribeAccountAttributesCommand.js +21 -28
- package/dist-es/commands/DescribeAuthenticationProfilesCommand.js +21 -28
- package/dist-es/commands/DescribeClusterDbRevisionsCommand.js +21 -28
- package/dist-es/commands/DescribeClusterParameterGroupsCommand.js +21 -28
- package/dist-es/commands/DescribeClusterParametersCommand.js +21 -28
- package/dist-es/commands/DescribeClusterSecurityGroupsCommand.js +21 -28
- package/dist-es/commands/DescribeClusterSnapshotsCommand.js +21 -28
- package/dist-es/commands/DescribeClusterSubnetGroupsCommand.js +21 -28
- package/dist-es/commands/DescribeClusterTracksCommand.js +21 -28
- package/dist-es/commands/DescribeClusterVersionsCommand.js +21 -28
- package/dist-es/commands/DescribeClustersCommand.js +21 -28
- package/dist-es/commands/DescribeDataSharesCommand.js +21 -28
- package/dist-es/commands/DescribeDataSharesForConsumerCommand.js +21 -28
- package/dist-es/commands/DescribeDataSharesForProducerCommand.js +21 -28
- package/dist-es/commands/DescribeDefaultClusterParametersCommand.js +21 -28
- package/dist-es/commands/DescribeEndpointAccessCommand.js +21 -28
- package/dist-es/commands/DescribeEndpointAuthorizationCommand.js +21 -28
- package/dist-es/commands/DescribeEventCategoriesCommand.js +21 -28
- package/dist-es/commands/DescribeEventSubscriptionsCommand.js +21 -28
- package/dist-es/commands/DescribeEventsCommand.js +21 -28
- package/dist-es/commands/DescribeHsmClientCertificatesCommand.js +21 -28
- package/dist-es/commands/DescribeHsmConfigurationsCommand.js +21 -28
- package/dist-es/commands/DescribeLoggingStatusCommand.js +21 -28
- package/dist-es/commands/DescribeNodeConfigurationOptionsCommand.js +21 -28
- package/dist-es/commands/DescribeOrderableClusterOptionsCommand.js +21 -28
- package/dist-es/commands/DescribePartnersCommand.js +21 -28
- package/dist-es/commands/DescribeReservedNodeExchangeStatusCommand.js +21 -28
- package/dist-es/commands/DescribeReservedNodeOfferingsCommand.js +21 -28
- package/dist-es/commands/DescribeReservedNodesCommand.js +21 -28
- package/dist-es/commands/DescribeResizeCommand.js +21 -28
- package/dist-es/commands/DescribeScheduledActionsCommand.js +21 -28
- package/dist-es/commands/DescribeSnapshotCopyGrantsCommand.js +21 -28
- package/dist-es/commands/DescribeSnapshotSchedulesCommand.js +21 -28
- package/dist-es/commands/DescribeStorageCommand.js +22 -29
- package/dist-es/commands/DescribeTableRestoreStatusCommand.js +21 -28
- package/dist-es/commands/DescribeTagsCommand.js +21 -28
- package/dist-es/commands/DescribeUsageLimitsCommand.js +21 -28
- package/dist-es/commands/DisableLoggingCommand.js +21 -28
- package/dist-es/commands/DisableSnapshotCopyCommand.js +21 -28
- package/dist-es/commands/DisassociateDataShareConsumerCommand.js +21 -28
- package/dist-es/commands/EnableLoggingCommand.js +21 -28
- package/dist-es/commands/EnableSnapshotCopyCommand.js +21 -28
- package/dist-es/commands/GetClusterCredentialsCommand.js +21 -28
- package/dist-es/commands/GetClusterCredentialsWithIAMCommand.js +21 -28
- package/dist-es/commands/GetReservedNodeExchangeConfigurationOptionsCommand.js +21 -28
- package/dist-es/commands/GetReservedNodeExchangeOfferingsCommand.js +21 -28
- package/dist-es/commands/ModifyAquaConfigurationCommand.js +21 -28
- package/dist-es/commands/ModifyAuthenticationProfileCommand.js +21 -28
- package/dist-es/commands/ModifyClusterCommand.js +21 -28
- package/dist-es/commands/ModifyClusterDbRevisionCommand.js +21 -28
- package/dist-es/commands/ModifyClusterIamRolesCommand.js +21 -28
- package/dist-es/commands/ModifyClusterMaintenanceCommand.js +21 -28
- package/dist-es/commands/ModifyClusterParameterGroupCommand.js +21 -28
- package/dist-es/commands/ModifyClusterSnapshotCommand.js +21 -28
- package/dist-es/commands/ModifyClusterSnapshotScheduleCommand.js +22 -29
- package/dist-es/commands/ModifyClusterSubnetGroupCommand.js +21 -28
- package/dist-es/commands/ModifyEndpointAccessCommand.js +21 -28
- package/dist-es/commands/ModifyEventSubscriptionCommand.js +21 -28
- package/dist-es/commands/ModifyScheduledActionCommand.js +21 -28
- package/dist-es/commands/ModifySnapshotCopyRetentionPeriodCommand.js +21 -28
- package/dist-es/commands/ModifySnapshotScheduleCommand.js +21 -28
- package/dist-es/commands/ModifyUsageLimitCommand.js +21 -28
- package/dist-es/commands/PauseClusterCommand.js +21 -28
- package/dist-es/commands/PurchaseReservedNodeOfferingCommand.js +21 -28
- package/dist-es/commands/RebootClusterCommand.js +21 -28
- package/dist-es/commands/RejectDataShareCommand.js +21 -28
- package/dist-es/commands/ResetClusterParameterGroupCommand.js +21 -28
- package/dist-es/commands/ResizeClusterCommand.js +21 -28
- package/dist-es/commands/RestoreFromClusterSnapshotCommand.js +21 -28
- package/dist-es/commands/RestoreTableFromClusterSnapshotCommand.js +21 -28
- package/dist-es/commands/ResumeClusterCommand.js +21 -28
- package/dist-es/commands/RevokeClusterSecurityGroupIngressCommand.js +21 -28
- package/dist-es/commands/RevokeEndpointAccessCommand.js +21 -28
- package/dist-es/commands/RevokeSnapshotAccessCommand.js +21 -28
- package/dist-es/commands/RotateEncryptionKeyCommand.js +21 -28
- package/dist-es/commands/UpdatePartnerStatusCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/RedshiftServiceException.js +5 -10
- package/dist-es/models/models_0.js +1808 -1459
- package/dist-es/models/models_1.js +503 -308
- package/dist-es/pagination/DescribeClusterDbRevisionsPaginator.js +25 -68
- package/dist-es/pagination/DescribeClusterParameterGroupsPaginator.js +25 -68
- package/dist-es/pagination/DescribeClusterParametersPaginator.js +25 -68
- package/dist-es/pagination/DescribeClusterSecurityGroupsPaginator.js +25 -68
- package/dist-es/pagination/DescribeClusterSnapshotsPaginator.js +25 -68
- package/dist-es/pagination/DescribeClusterSubnetGroupsPaginator.js +25 -68
- package/dist-es/pagination/DescribeClusterTracksPaginator.js +25 -68
- package/dist-es/pagination/DescribeClusterVersionsPaginator.js +25 -68
- package/dist-es/pagination/DescribeClustersPaginator.js +25 -68
- package/dist-es/pagination/DescribeDataSharesForConsumerPaginator.js +25 -68
- package/dist-es/pagination/DescribeDataSharesForProducerPaginator.js +25 -68
- package/dist-es/pagination/DescribeDataSharesPaginator.js +25 -68
- package/dist-es/pagination/DescribeDefaultClusterParametersPaginator.js +25 -68
- package/dist-es/pagination/DescribeEndpointAccessPaginator.js +25 -68
- package/dist-es/pagination/DescribeEndpointAuthorizationPaginator.js +25 -68
- package/dist-es/pagination/DescribeEventSubscriptionsPaginator.js +25 -68
- package/dist-es/pagination/DescribeEventsPaginator.js +25 -68
- package/dist-es/pagination/DescribeHsmClientCertificatesPaginator.js +25 -68
- package/dist-es/pagination/DescribeHsmConfigurationsPaginator.js +25 -68
- package/dist-es/pagination/DescribeNodeConfigurationOptionsPaginator.js +25 -68
- package/dist-es/pagination/DescribeOrderableClusterOptionsPaginator.js +25 -68
- package/dist-es/pagination/DescribeReservedNodeExchangeStatusPaginator.js +25 -68
- package/dist-es/pagination/DescribeReservedNodeOfferingsPaginator.js +25 -68
- package/dist-es/pagination/DescribeReservedNodesPaginator.js +25 -68
- package/dist-es/pagination/DescribeScheduledActionsPaginator.js +25 -68
- package/dist-es/pagination/DescribeSnapshotCopyGrantsPaginator.js +25 -68
- package/dist-es/pagination/DescribeSnapshotSchedulesPaginator.js +25 -68
- package/dist-es/pagination/DescribeTableRestoreStatusPaginator.js +25 -68
- package/dist-es/pagination/DescribeTagsPaginator.js +25 -68
- package/dist-es/pagination/DescribeUsageLimitsPaginator.js +25 -68
- package/dist-es/pagination/GetReservedNodeExchangeConfigurationOptionsPaginator.js +25 -68
- package/dist-es/pagination/GetReservedNodeExchangeOfferingsPaginator.js +25 -68
- package/dist-es/protocols/Aws_query.js +8827 -11428
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForClusterAvailable.js +52 -93
- package/dist-es/waiters/waitForClusterDeleted.js +49 -90
- package/dist-es/waiters/waitForClusterRestored.js +50 -91
- package/dist-es/waiters/waitForSnapshotAvailable.js +64 -115
- package/package.json +35 -36
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { DescribeScheduledActionsCommand, } from "../commands/DescribeScheduledActionsCommand";
|
|
3
2
|
import { Redshift } from "../Redshift";
|
|
4
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
-
args[_i - 2] = arguments[_i];
|
|
9
|
-
}
|
|
10
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
-
return __generator(this, function (_a) {
|
|
12
|
-
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new DescribeScheduledActionsCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeScheduledActionsCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 2] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
-
return __generator(this, function (_a) {
|
|
26
|
-
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.describeScheduledActions.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeScheduledActions(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateDescribeScheduledActions(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateDescribeScheduledActions(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.Marker = token;
|
|
16
|
+
input["MaxRecords"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Redshift) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof RedshiftClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.Marker;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
40
|
-
return __generator(this, function (_a) {
|
|
41
|
-
switch (_a.label) {
|
|
42
|
-
case 0:
|
|
43
|
-
token = config.startingToken || undefined;
|
|
44
|
-
hasNext = true;
|
|
45
|
-
_a.label = 1;
|
|
46
|
-
case 1:
|
|
47
|
-
if (!hasNext) return [3, 9];
|
|
48
|
-
input.Marker = token;
|
|
49
|
-
input["MaxRecords"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof Redshift)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof RedshiftClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.Marker;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { DescribeSnapshotCopyGrantsCommand, } from "../commands/DescribeSnapshotCopyGrantsCommand";
|
|
3
2
|
import { Redshift } from "../Redshift";
|
|
4
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
-
args[_i - 2] = arguments[_i];
|
|
9
|
-
}
|
|
10
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
-
return __generator(this, function (_a) {
|
|
12
|
-
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new DescribeSnapshotCopyGrantsCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeSnapshotCopyGrantsCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 2] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
-
return __generator(this, function (_a) {
|
|
26
|
-
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.describeSnapshotCopyGrants.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeSnapshotCopyGrants(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateDescribeSnapshotCopyGrants(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateDescribeSnapshotCopyGrants(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.Marker = token;
|
|
16
|
+
input["MaxRecords"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Redshift) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof RedshiftClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.Marker;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
40
|
-
return __generator(this, function (_a) {
|
|
41
|
-
switch (_a.label) {
|
|
42
|
-
case 0:
|
|
43
|
-
token = config.startingToken || undefined;
|
|
44
|
-
hasNext = true;
|
|
45
|
-
_a.label = 1;
|
|
46
|
-
case 1:
|
|
47
|
-
if (!hasNext) return [3, 9];
|
|
48
|
-
input.Marker = token;
|
|
49
|
-
input["MaxRecords"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof Redshift)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof RedshiftClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.Marker;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { DescribeSnapshotSchedulesCommand, } from "../commands/DescribeSnapshotSchedulesCommand";
|
|
3
2
|
import { Redshift } from "../Redshift";
|
|
4
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
-
args[_i - 2] = arguments[_i];
|
|
9
|
-
}
|
|
10
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
-
return __generator(this, function (_a) {
|
|
12
|
-
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new DescribeSnapshotSchedulesCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeSnapshotSchedulesCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 2] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
-
return __generator(this, function (_a) {
|
|
26
|
-
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.describeSnapshotSchedules.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeSnapshotSchedules(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateDescribeSnapshotSchedules(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateDescribeSnapshotSchedules(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.Marker = token;
|
|
16
|
+
input["MaxRecords"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Redshift) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof RedshiftClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.Marker;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
40
|
-
return __generator(this, function (_a) {
|
|
41
|
-
switch (_a.label) {
|
|
42
|
-
case 0:
|
|
43
|
-
token = config.startingToken || undefined;
|
|
44
|
-
hasNext = true;
|
|
45
|
-
_a.label = 1;
|
|
46
|
-
case 1:
|
|
47
|
-
if (!hasNext) return [3, 9];
|
|
48
|
-
input.Marker = token;
|
|
49
|
-
input["MaxRecords"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof Redshift)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof RedshiftClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.Marker;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { DescribeTableRestoreStatusCommand, } from "../commands/DescribeTableRestoreStatusCommand";
|
|
3
2
|
import { Redshift } from "../Redshift";
|
|
4
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
-
args[_i - 2] = arguments[_i];
|
|
9
|
-
}
|
|
10
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
-
return __generator(this, function (_a) {
|
|
12
|
-
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new DescribeTableRestoreStatusCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeTableRestoreStatusCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 2] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
-
return __generator(this, function (_a) {
|
|
26
|
-
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.describeTableRestoreStatus.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeTableRestoreStatus(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateDescribeTableRestoreStatus(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateDescribeTableRestoreStatus(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.Marker = token;
|
|
16
|
+
input["MaxRecords"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Redshift) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof RedshiftClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.Marker;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
40
|
-
return __generator(this, function (_a) {
|
|
41
|
-
switch (_a.label) {
|
|
42
|
-
case 0:
|
|
43
|
-
token = config.startingToken || undefined;
|
|
44
|
-
hasNext = true;
|
|
45
|
-
_a.label = 1;
|
|
46
|
-
case 1:
|
|
47
|
-
if (!hasNext) return [3, 9];
|
|
48
|
-
input.Marker = token;
|
|
49
|
-
input["MaxRecords"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof Redshift)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof RedshiftClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.Marker;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { DescribeTagsCommand, } from "../commands/DescribeTagsCommand";
|
|
3
2
|
import { Redshift } from "../Redshift";
|
|
4
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
-
args[_i - 2] = arguments[_i];
|
|
9
|
-
}
|
|
10
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
-
return __generator(this, function (_a) {
|
|
12
|
-
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new DescribeTagsCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeTagsCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 2] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
-
return __generator(this, function (_a) {
|
|
26
|
-
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.describeTags.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeTags(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateDescribeTags(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateDescribeTags(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.Marker = token;
|
|
16
|
+
input["MaxRecords"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Redshift) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof RedshiftClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.Marker;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
40
|
-
return __generator(this, function (_a) {
|
|
41
|
-
switch (_a.label) {
|
|
42
|
-
case 0:
|
|
43
|
-
token = config.startingToken || undefined;
|
|
44
|
-
hasNext = true;
|
|
45
|
-
_a.label = 1;
|
|
46
|
-
case 1:
|
|
47
|
-
if (!hasNext) return [3, 9];
|
|
48
|
-
input.Marker = token;
|
|
49
|
-
input["MaxRecords"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof Redshift)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof RedshiftClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.Marker;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { DescribeUsageLimitsCommand, } from "../commands/DescribeUsageLimitsCommand";
|
|
3
2
|
import { Redshift } from "../Redshift";
|
|
4
3
|
import { RedshiftClient } from "../RedshiftClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
-
args[_i - 2] = arguments[_i];
|
|
9
|
-
}
|
|
10
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
-
return __generator(this, function (_a) {
|
|
12
|
-
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new DescribeUsageLimitsCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeUsageLimitsCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 2] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
-
return __generator(this, function (_a) {
|
|
26
|
-
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.describeUsageLimits.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeUsageLimits(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateDescribeUsageLimits(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateDescribeUsageLimits(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.Marker = token;
|
|
16
|
+
input["MaxRecords"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Redshift) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof RedshiftClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.Marker;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
40
|
-
return __generator(this, function (_a) {
|
|
41
|
-
switch (_a.label) {
|
|
42
|
-
case 0:
|
|
43
|
-
token = config.startingToken || undefined;
|
|
44
|
-
hasNext = true;
|
|
45
|
-
_a.label = 1;
|
|
46
|
-
case 1:
|
|
47
|
-
if (!hasNext) return [3, 9];
|
|
48
|
-
input.Marker = token;
|
|
49
|
-
input["MaxRecords"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof Redshift)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof RedshiftClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected Redshift | RedshiftClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.Marker;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|