@aws-sdk/client-redshift-serverless 3.461.0 → 3.463.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/README.md +80 -0
- package/dist-cjs/RedshiftServerless.js +20 -0
- package/dist-cjs/commands/CreateScheduledActionCommand.js +51 -0
- package/dist-cjs/commands/CreateSnapshotCopyConfigurationCommand.js +51 -0
- package/dist-cjs/commands/DeleteScheduledActionCommand.js +51 -0
- package/dist-cjs/commands/DeleteSnapshotCopyConfigurationCommand.js +51 -0
- package/dist-cjs/commands/GetScheduledActionCommand.js +51 -0
- package/dist-cjs/commands/ListScheduledActionsCommand.js +51 -0
- package/dist-cjs/commands/ListSnapshotCopyConfigurationsCommand.js +51 -0
- package/dist-cjs/commands/RestoreTableFromRecoveryPointCommand.js +51 -0
- package/dist-cjs/commands/UpdateScheduledActionCommand.js +51 -0
- package/dist-cjs/commands/UpdateSnapshotCopyConfigurationCommand.js +51 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/models/models_0.js +23 -1
- package/dist-cjs/pagination/ListScheduledActionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListSnapshotCopyConfigurationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +596 -2
- package/dist-es/RedshiftServerless.js +20 -0
- package/dist-es/commands/CreateScheduledActionCommand.js +47 -0
- package/dist-es/commands/CreateSnapshotCopyConfigurationCommand.js +47 -0
- package/dist-es/commands/DeleteScheduledActionCommand.js +47 -0
- package/dist-es/commands/DeleteSnapshotCopyConfigurationCommand.js +47 -0
- package/dist-es/commands/GetScheduledActionCommand.js +47 -0
- package/dist-es/commands/ListScheduledActionsCommand.js +47 -0
- package/dist-es/commands/ListSnapshotCopyConfigurationsCommand.js +47 -0
- package/dist-es/commands/RestoreTableFromRecoveryPointCommand.js +47 -0
- package/dist-es/commands/UpdateScheduledActionCommand.js +47 -0
- package/dist-es/commands/UpdateSnapshotCopyConfigurationCommand.js +47 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/models_0.js +22 -0
- package/dist-es/pagination/ListScheduledActionsPaginator.js +25 -0
- package/dist-es/pagination/ListSnapshotCopyConfigurationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +574 -1
- package/dist-types/RedshiftServerless.d.ts +70 -0
- package/dist-types/RedshiftServerlessClient.d.ts +12 -2
- package/dist-types/commands/CreateEndpointAccessCommand.d.ts +1 -0
- package/dist-types/commands/CreateScheduledActionCommand.d.ts +138 -0
- package/dist-types/commands/CreateSnapshotCopyConfigurationCommand.d.ts +101 -0
- package/dist-types/commands/CreateWorkgroupCommand.d.ts +3 -0
- package/dist-types/commands/DeleteScheduledActionCommand.d.ts +111 -0
- package/dist-types/commands/DeleteSnapshotCopyConfigurationCommand.d.ts +95 -0
- package/dist-types/commands/DeleteWorkgroupCommand.d.ts +3 -0
- package/dist-types/commands/GetScheduledActionCommand.d.ts +111 -0
- package/dist-types/commands/GetTableRestoreStatusCommand.d.ts +1 -0
- package/dist-types/commands/GetWorkgroupCommand.d.ts +3 -0
- package/dist-types/commands/ListEndpointAccessCommand.d.ts +1 -0
- package/dist-types/commands/ListScheduledActionsCommand.d.ts +90 -0
- package/dist-types/commands/ListSnapshotCopyConfigurationsCommand.d.ts +100 -0
- package/dist-types/commands/ListTableRestoreStatusCommand.d.ts +1 -0
- package/dist-types/commands/ListWorkgroupsCommand.d.ts +4 -0
- package/dist-types/commands/RestoreTableFromRecoveryPointCommand.d.ts +111 -0
- package/dist-types/commands/RestoreTableFromSnapshotCommand.d.ts +1 -0
- package/dist-types/commands/UpdateScheduledActionCommand.d.ts +136 -0
- package/dist-types/commands/UpdateSnapshotCopyConfigurationCommand.d.ts +96 -0
- package/dist-types/commands/UpdateWorkgroupCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +648 -8
- package/dist-types/pagination/ListScheduledActionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSnapshotCopyConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +90 -0
- package/dist-types/ts3.4/RedshiftServerless.d.ts +170 -0
- package/dist-types/ts3.4/RedshiftServerlessClient.d.ts +60 -0
- package/dist-types/ts3.4/commands/CreateScheduledActionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateSnapshotCopyConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteScheduledActionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteSnapshotCopyConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetScheduledActionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListScheduledActionsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListSnapshotCopyConfigurationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/RestoreTableFromRecoveryPointCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateScheduledActionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateSnapshotCopyConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +176 -0
- package/dist-types/ts3.4/pagination/ListScheduledActionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSnapshotCopyConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +120 -0
- package/package.json +2 -2
|
@@ -120,6 +120,28 @@ export const NamespaceStatus = {
|
|
|
120
120
|
DELETING: "DELETING",
|
|
121
121
|
MODIFYING: "MODIFYING",
|
|
122
122
|
};
|
|
123
|
+
export var Schedule;
|
|
124
|
+
(function (Schedule) {
|
|
125
|
+
Schedule.visit = (value, visitor) => {
|
|
126
|
+
if (value.at !== undefined)
|
|
127
|
+
return visitor.at(value.at);
|
|
128
|
+
if (value.cron !== undefined)
|
|
129
|
+
return visitor.cron(value.cron);
|
|
130
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
131
|
+
};
|
|
132
|
+
})(Schedule || (Schedule = {}));
|
|
133
|
+
export var TargetAction;
|
|
134
|
+
(function (TargetAction) {
|
|
135
|
+
TargetAction.visit = (value, visitor) => {
|
|
136
|
+
if (value.createSnapshot !== undefined)
|
|
137
|
+
return visitor.createSnapshot(value.createSnapshot);
|
|
138
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
139
|
+
};
|
|
140
|
+
})(TargetAction || (TargetAction = {}));
|
|
141
|
+
export const State = {
|
|
142
|
+
ACTIVE: "ACTIVE",
|
|
143
|
+
DISABLED: "DISABLED",
|
|
144
|
+
};
|
|
123
145
|
export const UsageLimitBreachAction = {
|
|
124
146
|
DEACTIVATE: "deactivate",
|
|
125
147
|
EMIT_METRIC: "emit-metric",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListScheduledActionsCommand, } from "../commands/ListScheduledActionsCommand";
|
|
2
|
+
import { RedshiftServerlessClient } from "../RedshiftServerlessClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListScheduledActionsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListScheduledActions(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof RedshiftServerlessClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected RedshiftServerless | RedshiftServerlessClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListSnapshotCopyConfigurationsCommand, } from "../commands/ListSnapshotCopyConfigurationsCommand";
|
|
2
|
+
import { RedshiftServerlessClient } from "../RedshiftServerlessClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListSnapshotCopyConfigurationsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListSnapshotCopyConfigurations(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof RedshiftServerlessClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected RedshiftServerless | RedshiftServerlessClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -3,6 +3,8 @@ export * from "./ListCustomDomainAssociationsPaginator";
|
|
|
3
3
|
export * from "./ListEndpointAccessPaginator";
|
|
4
4
|
export * from "./ListNamespacesPaginator";
|
|
5
5
|
export * from "./ListRecoveryPointsPaginator";
|
|
6
|
+
export * from "./ListScheduledActionsPaginator";
|
|
7
|
+
export * from "./ListSnapshotCopyConfigurationsPaginator";
|
|
6
8
|
export * from "./ListSnapshotsPaginator";
|
|
7
9
|
export * from "./ListTableRestoreStatusPaginator";
|
|
8
10
|
export * from "./ListUsageLimitsPaginator";
|