@aws-sdk/client-redshift-serverless 3.787.0 → 3.796.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 +40 -0
- package/dist-cjs/index.js +271 -0
- package/dist-es/RedshiftServerless.js +10 -0
- package/dist-es/commands/CreateReservationCommand.js +22 -0
- package/dist-es/commands/GetReservationCommand.js +22 -0
- package/dist-es/commands/GetReservationOfferingCommand.js +22 -0
- package/dist-es/commands/ListReservationOfferingsCommand.js +22 -0
- package/dist-es/commands/ListReservationsCommand.js +22 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/pagination/ListReservationOfferingsPaginator.js +4 -0
- package/dist-es/pagination/ListReservationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +167 -0
- package/dist-types/RedshiftServerless.d.ts +37 -0
- package/dist-types/RedshiftServerlessClient.d.ts +7 -2
- package/dist-types/commands/ConvertRecoveryPointToSnapshotCommand.d.ts +1 -1
- package/dist-types/commands/CreateReservationCommand.d.ts +111 -0
- package/dist-types/commands/CreateSnapshotCommand.d.ts +1 -1
- package/dist-types/commands/GetReservationCommand.d.ts +100 -0
- package/dist-types/commands/GetReservationOfferingCommand.d.ts +91 -0
- package/dist-types/commands/ListReservationOfferingsCommand.d.ts +92 -0
- package/dist-types/commands/ListReservationsCommand.d.ts +100 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +250 -2
- package/dist-types/pagination/ListReservationOfferingsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListReservationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +45 -0
- package/dist-types/ts3.4/RedshiftServerless.d.ts +87 -0
- package/dist-types/ts3.4/RedshiftServerlessClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateReservationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetReservationCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetReservationOfferingCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListReservationOfferingsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListReservationsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +58 -0
- package/dist-types/ts3.4/pagination/ListReservationOfferingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListReservationsPaginator.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 +60 -0
- package/package.json +8 -6
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListReservationOfferingsCommand, se_ListReservationOfferingsCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListReservationOfferingsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("RedshiftServerless", "ListReservationOfferings", {})
|
|
17
|
+
.n("RedshiftServerlessClient", "ListReservationOfferingsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListReservationOfferingsCommand)
|
|
20
|
+
.de(de_ListReservationOfferingsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListReservationsCommand, se_ListReservationsCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListReservationsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("RedshiftServerless", "ListReservations", {})
|
|
17
|
+
.n("RedshiftServerlessClient", "ListReservationsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListReservationsCommand)
|
|
20
|
+
.de(de_ListReservationsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from "./ConvertRecoveryPointToSnapshotCommand";
|
|
|
2
2
|
export * from "./CreateCustomDomainAssociationCommand";
|
|
3
3
|
export * from "./CreateEndpointAccessCommand";
|
|
4
4
|
export * from "./CreateNamespaceCommand";
|
|
5
|
+
export * from "./CreateReservationCommand";
|
|
5
6
|
export * from "./CreateScheduledActionCommand";
|
|
6
7
|
export * from "./CreateSnapshotCommand";
|
|
7
8
|
export * from "./CreateSnapshotCopyConfigurationCommand";
|
|
@@ -21,6 +22,8 @@ export * from "./GetCustomDomainAssociationCommand";
|
|
|
21
22
|
export * from "./GetEndpointAccessCommand";
|
|
22
23
|
export * from "./GetNamespaceCommand";
|
|
23
24
|
export * from "./GetRecoveryPointCommand";
|
|
25
|
+
export * from "./GetReservationCommand";
|
|
26
|
+
export * from "./GetReservationOfferingCommand";
|
|
24
27
|
export * from "./GetResourcePolicyCommand";
|
|
25
28
|
export * from "./GetScheduledActionCommand";
|
|
26
29
|
export * from "./GetSnapshotCommand";
|
|
@@ -33,6 +36,8 @@ export * from "./ListEndpointAccessCommand";
|
|
|
33
36
|
export * from "./ListManagedWorkgroupsCommand";
|
|
34
37
|
export * from "./ListNamespacesCommand";
|
|
35
38
|
export * from "./ListRecoveryPointsCommand";
|
|
39
|
+
export * from "./ListReservationOfferingsCommand";
|
|
40
|
+
export * from "./ListReservationsCommand";
|
|
36
41
|
export * from "./ListScheduledActionsCommand";
|
|
37
42
|
export * from "./ListSnapshotCopyConfigurationsCommand";
|
|
38
43
|
export * from "./ListSnapshotsCommand";
|
|
@@ -124,6 +124,10 @@ export const NamespaceStatus = {
|
|
|
124
124
|
DELETING: "DELETING",
|
|
125
125
|
MODIFYING: "MODIFYING",
|
|
126
126
|
};
|
|
127
|
+
export const OfferingType = {
|
|
128
|
+
ALL_UPFRONT: "ALL_UPFRONT",
|
|
129
|
+
NO_UPFRONT: "NO_UPFRONT",
|
|
130
|
+
};
|
|
127
131
|
export var Schedule;
|
|
128
132
|
(function (Schedule) {
|
|
129
133
|
Schedule.visit = (value, visitor) => {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListReservationOfferingsCommand, } from "../commands/ListReservationOfferingsCommand";
|
|
3
|
+
import { RedshiftServerlessClient } from "../RedshiftServerlessClient";
|
|
4
|
+
export const paginateListReservationOfferings = createPaginator(RedshiftServerlessClient, ListReservationOfferingsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListReservationsCommand, } from "../commands/ListReservationsCommand";
|
|
3
|
+
import { RedshiftServerlessClient } from "../RedshiftServerlessClient";
|
|
4
|
+
export const paginateListReservations = createPaginator(RedshiftServerlessClient, ListReservationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -4,6 +4,8 @@ export * from "./ListEndpointAccessPaginator";
|
|
|
4
4
|
export * from "./ListManagedWorkgroupsPaginator";
|
|
5
5
|
export * from "./ListNamespacesPaginator";
|
|
6
6
|
export * from "./ListRecoveryPointsPaginator";
|
|
7
|
+
export * from "./ListReservationOfferingsPaginator";
|
|
8
|
+
export * from "./ListReservationsPaginator";
|
|
7
9
|
export * from "./ListScheduledActionsPaginator";
|
|
8
10
|
export * from "./ListSnapshotCopyConfigurationsPaginator";
|
|
9
11
|
export * from "./ListSnapshotsPaginator";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
+
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
5
|
import { AccessDeniedException, ConflictException, InsufficientCapacityException, InternalServerException, InvalidPaginationException, Ipv6CidrBlockNotFoundException, ResourceNotFoundException, Schedule, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
5
6
|
import { RedshiftServerlessServiceException as __BaseException } from "../models/RedshiftServerlessServiceException";
|
|
6
7
|
export const se_ConvertRecoveryPointToSnapshotCommand = async (input, context) => {
|
|
@@ -27,6 +28,12 @@ export const se_CreateNamespaceCommand = async (input, context) => {
|
|
|
27
28
|
body = JSON.stringify(_json(input));
|
|
28
29
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
30
|
};
|
|
31
|
+
export const se_CreateReservationCommand = async (input, context) => {
|
|
32
|
+
const headers = sharedHeaders("CreateReservation");
|
|
33
|
+
let body;
|
|
34
|
+
body = JSON.stringify(se_CreateReservationRequest(input, context));
|
|
35
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
+
};
|
|
30
37
|
export const se_CreateScheduledActionCommand = async (input, context) => {
|
|
31
38
|
const headers = sharedHeaders("CreateScheduledAction");
|
|
32
39
|
let body;
|
|
@@ -141,6 +148,18 @@ export const se_GetRecoveryPointCommand = async (input, context) => {
|
|
|
141
148
|
body = JSON.stringify(_json(input));
|
|
142
149
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
150
|
};
|
|
151
|
+
export const se_GetReservationCommand = async (input, context) => {
|
|
152
|
+
const headers = sharedHeaders("GetReservation");
|
|
153
|
+
let body;
|
|
154
|
+
body = JSON.stringify(_json(input));
|
|
155
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
+
};
|
|
157
|
+
export const se_GetReservationOfferingCommand = async (input, context) => {
|
|
158
|
+
const headers = sharedHeaders("GetReservationOffering");
|
|
159
|
+
let body;
|
|
160
|
+
body = JSON.stringify(_json(input));
|
|
161
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
+
};
|
|
144
163
|
export const se_GetResourcePolicyCommand = async (input, context) => {
|
|
145
164
|
const headers = sharedHeaders("GetResourcePolicy");
|
|
146
165
|
let body;
|
|
@@ -213,6 +232,18 @@ export const se_ListRecoveryPointsCommand = async (input, context) => {
|
|
|
213
232
|
body = JSON.stringify(se_ListRecoveryPointsRequest(input, context));
|
|
214
233
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
234
|
};
|
|
235
|
+
export const se_ListReservationOfferingsCommand = async (input, context) => {
|
|
236
|
+
const headers = sharedHeaders("ListReservationOfferings");
|
|
237
|
+
let body;
|
|
238
|
+
body = JSON.stringify(_json(input));
|
|
239
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
+
};
|
|
241
|
+
export const se_ListReservationsCommand = async (input, context) => {
|
|
242
|
+
const headers = sharedHeaders("ListReservations");
|
|
243
|
+
let body;
|
|
244
|
+
body = JSON.stringify(_json(input));
|
|
245
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
|
+
};
|
|
216
247
|
export const se_ListScheduledActionsCommand = async (input, context) => {
|
|
217
248
|
const headers = sharedHeaders("ListScheduledActions");
|
|
218
249
|
let body;
|
|
@@ -403,6 +434,19 @@ export const de_CreateNamespaceCommand = async (output, context) => {
|
|
|
403
434
|
};
|
|
404
435
|
return response;
|
|
405
436
|
};
|
|
437
|
+
export const de_CreateReservationCommand = async (output, context) => {
|
|
438
|
+
if (output.statusCode >= 300) {
|
|
439
|
+
return de_CommandError(output, context);
|
|
440
|
+
}
|
|
441
|
+
const data = await parseBody(output.body, context);
|
|
442
|
+
let contents = {};
|
|
443
|
+
contents = de_CreateReservationResponse(data, context);
|
|
444
|
+
const response = {
|
|
445
|
+
$metadata: deserializeMetadata(output),
|
|
446
|
+
...contents,
|
|
447
|
+
};
|
|
448
|
+
return response;
|
|
449
|
+
};
|
|
406
450
|
export const de_CreateScheduledActionCommand = async (output, context) => {
|
|
407
451
|
if (output.statusCode >= 300) {
|
|
408
452
|
return de_CommandError(output, context);
|
|
@@ -650,6 +694,32 @@ export const de_GetRecoveryPointCommand = async (output, context) => {
|
|
|
650
694
|
};
|
|
651
695
|
return response;
|
|
652
696
|
};
|
|
697
|
+
export const de_GetReservationCommand = async (output, context) => {
|
|
698
|
+
if (output.statusCode >= 300) {
|
|
699
|
+
return de_CommandError(output, context);
|
|
700
|
+
}
|
|
701
|
+
const data = await parseBody(output.body, context);
|
|
702
|
+
let contents = {};
|
|
703
|
+
contents = de_GetReservationResponse(data, context);
|
|
704
|
+
const response = {
|
|
705
|
+
$metadata: deserializeMetadata(output),
|
|
706
|
+
...contents,
|
|
707
|
+
};
|
|
708
|
+
return response;
|
|
709
|
+
};
|
|
710
|
+
export const de_GetReservationOfferingCommand = async (output, context) => {
|
|
711
|
+
if (output.statusCode >= 300) {
|
|
712
|
+
return de_CommandError(output, context);
|
|
713
|
+
}
|
|
714
|
+
const data = await parseBody(output.body, context);
|
|
715
|
+
let contents = {};
|
|
716
|
+
contents = de_GetReservationOfferingResponse(data, context);
|
|
717
|
+
const response = {
|
|
718
|
+
$metadata: deserializeMetadata(output),
|
|
719
|
+
...contents,
|
|
720
|
+
};
|
|
721
|
+
return response;
|
|
722
|
+
};
|
|
653
723
|
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
654
724
|
if (output.statusCode >= 300) {
|
|
655
725
|
return de_CommandError(output, context);
|
|
@@ -806,6 +876,32 @@ export const de_ListRecoveryPointsCommand = async (output, context) => {
|
|
|
806
876
|
};
|
|
807
877
|
return response;
|
|
808
878
|
};
|
|
879
|
+
export const de_ListReservationOfferingsCommand = async (output, context) => {
|
|
880
|
+
if (output.statusCode >= 300) {
|
|
881
|
+
return de_CommandError(output, context);
|
|
882
|
+
}
|
|
883
|
+
const data = await parseBody(output.body, context);
|
|
884
|
+
let contents = {};
|
|
885
|
+
contents = de_ListReservationOfferingsResponse(data, context);
|
|
886
|
+
const response = {
|
|
887
|
+
$metadata: deserializeMetadata(output),
|
|
888
|
+
...contents,
|
|
889
|
+
};
|
|
890
|
+
return response;
|
|
891
|
+
};
|
|
892
|
+
export const de_ListReservationsCommand = async (output, context) => {
|
|
893
|
+
if (output.statusCode >= 300) {
|
|
894
|
+
return de_CommandError(output, context);
|
|
895
|
+
}
|
|
896
|
+
const data = await parseBody(output.body, context);
|
|
897
|
+
let contents = {};
|
|
898
|
+
contents = de_ListReservationsResponse(data, context);
|
|
899
|
+
const response = {
|
|
900
|
+
$metadata: deserializeMetadata(output),
|
|
901
|
+
...contents,
|
|
902
|
+
};
|
|
903
|
+
return response;
|
|
904
|
+
};
|
|
809
905
|
export const de_ListScheduledActionsCommand = async (output, context) => {
|
|
810
906
|
if (output.statusCode >= 300) {
|
|
811
907
|
return de_CommandError(output, context);
|
|
@@ -1253,6 +1349,13 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1253
1349
|
});
|
|
1254
1350
|
return __decorateServiceException(exception, body);
|
|
1255
1351
|
};
|
|
1352
|
+
const se_CreateReservationRequest = (input, context) => {
|
|
1353
|
+
return take(input, {
|
|
1354
|
+
capacity: [],
|
|
1355
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1356
|
+
offeringId: [],
|
|
1357
|
+
});
|
|
1358
|
+
};
|
|
1256
1359
|
const se_CreateScheduledActionRequest = (input, context) => {
|
|
1257
1360
|
return take(input, {
|
|
1258
1361
|
enabled: [],
|
|
@@ -1345,6 +1448,11 @@ const de_CreateNamespaceResponse = (output, context) => {
|
|
|
1345
1448
|
namespace: (_) => de_Namespace(_, context),
|
|
1346
1449
|
});
|
|
1347
1450
|
};
|
|
1451
|
+
const de_CreateReservationResponse = (output, context) => {
|
|
1452
|
+
return take(output, {
|
|
1453
|
+
reservation: (_) => de_Reservation(_, context),
|
|
1454
|
+
});
|
|
1455
|
+
};
|
|
1348
1456
|
const de_CreateScheduledActionResponse = (output, context) => {
|
|
1349
1457
|
return take(output, {
|
|
1350
1458
|
scheduledAction: (_) => de_ScheduledActionResponse(_, context),
|
|
@@ -1438,6 +1546,16 @@ const de_GetRecoveryPointResponse = (output, context) => {
|
|
|
1438
1546
|
recoveryPoint: (_) => de_RecoveryPoint(_, context),
|
|
1439
1547
|
});
|
|
1440
1548
|
};
|
|
1549
|
+
const de_GetReservationOfferingResponse = (output, context) => {
|
|
1550
|
+
return take(output, {
|
|
1551
|
+
reservationOffering: (_) => de_ReservationOffering(_, context),
|
|
1552
|
+
});
|
|
1553
|
+
};
|
|
1554
|
+
const de_GetReservationResponse = (output, context) => {
|
|
1555
|
+
return take(output, {
|
|
1556
|
+
reservation: (_) => de_Reservation(_, context),
|
|
1557
|
+
});
|
|
1558
|
+
};
|
|
1441
1559
|
const de_GetScheduledActionResponse = (output, context) => {
|
|
1442
1560
|
return take(output, {
|
|
1443
1561
|
scheduledAction: (_) => de_ScheduledActionResponse(_, context),
|
|
@@ -1488,6 +1606,18 @@ const de_ListRecoveryPointsResponse = (output, context) => {
|
|
|
1488
1606
|
recoveryPoints: (_) => de_RecoveryPointList(_, context),
|
|
1489
1607
|
});
|
|
1490
1608
|
};
|
|
1609
|
+
const de_ListReservationOfferingsResponse = (output, context) => {
|
|
1610
|
+
return take(output, {
|
|
1611
|
+
nextToken: __expectString,
|
|
1612
|
+
reservationOfferingsList: (_) => de_ReservationOfferingsList(_, context),
|
|
1613
|
+
});
|
|
1614
|
+
};
|
|
1615
|
+
const de_ListReservationsResponse = (output, context) => {
|
|
1616
|
+
return take(output, {
|
|
1617
|
+
nextToken: __expectString,
|
|
1618
|
+
reservationsList: (_) => de_ReservationsList(_, context),
|
|
1619
|
+
});
|
|
1620
|
+
};
|
|
1491
1621
|
const de_ListSnapshotsResponse = (output, context) => {
|
|
1492
1622
|
return take(output, {
|
|
1493
1623
|
nextToken: __expectString,
|
|
@@ -1574,6 +1704,43 @@ const de_RecoveryPointList = (output, context) => {
|
|
|
1574
1704
|
});
|
|
1575
1705
|
return retVal;
|
|
1576
1706
|
};
|
|
1707
|
+
const de_Reservation = (output, context) => {
|
|
1708
|
+
return take(output, {
|
|
1709
|
+
capacity: __expectInt32,
|
|
1710
|
+
endDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1711
|
+
offering: (_) => de_ReservationOffering(_, context),
|
|
1712
|
+
reservationArn: __expectString,
|
|
1713
|
+
reservationId: __expectString,
|
|
1714
|
+
startDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1715
|
+
status: __expectString,
|
|
1716
|
+
});
|
|
1717
|
+
};
|
|
1718
|
+
const de_ReservationOffering = (output, context) => {
|
|
1719
|
+
return take(output, {
|
|
1720
|
+
currencyCode: __expectString,
|
|
1721
|
+
duration: __expectInt32,
|
|
1722
|
+
hourlyCharge: __limitedParseDouble,
|
|
1723
|
+
offeringId: __expectString,
|
|
1724
|
+
offeringType: __expectString,
|
|
1725
|
+
upfrontCharge: __limitedParseDouble,
|
|
1726
|
+
});
|
|
1727
|
+
};
|
|
1728
|
+
const de_ReservationOfferingsList = (output, context) => {
|
|
1729
|
+
const retVal = (output || [])
|
|
1730
|
+
.filter((e) => e != null)
|
|
1731
|
+
.map((entry) => {
|
|
1732
|
+
return de_ReservationOffering(entry, context);
|
|
1733
|
+
});
|
|
1734
|
+
return retVal;
|
|
1735
|
+
};
|
|
1736
|
+
const de_ReservationsList = (output, context) => {
|
|
1737
|
+
const retVal = (output || [])
|
|
1738
|
+
.filter((e) => e != null)
|
|
1739
|
+
.map((entry) => {
|
|
1740
|
+
return de_Reservation(entry, context);
|
|
1741
|
+
});
|
|
1742
|
+
return retVal;
|
|
1743
|
+
};
|
|
1577
1744
|
const de_RestoreFromRecoveryPointResponse = (output, context) => {
|
|
1578
1745
|
return take(output, {
|
|
1579
1746
|
namespace: (_) => de_Namespace(_, context),
|
|
@@ -3,6 +3,7 @@ import { ConvertRecoveryPointToSnapshotCommandInput, ConvertRecoveryPointToSnaps
|
|
|
3
3
|
import { CreateCustomDomainAssociationCommandInput, CreateCustomDomainAssociationCommandOutput } from "./commands/CreateCustomDomainAssociationCommand";
|
|
4
4
|
import { CreateEndpointAccessCommandInput, CreateEndpointAccessCommandOutput } from "./commands/CreateEndpointAccessCommand";
|
|
5
5
|
import { CreateNamespaceCommandInput, CreateNamespaceCommandOutput } from "./commands/CreateNamespaceCommand";
|
|
6
|
+
import { CreateReservationCommandInput, CreateReservationCommandOutput } from "./commands/CreateReservationCommand";
|
|
6
7
|
import { CreateScheduledActionCommandInput, CreateScheduledActionCommandOutput } from "./commands/CreateScheduledActionCommand";
|
|
7
8
|
import { CreateSnapshotCommandInput, CreateSnapshotCommandOutput } from "./commands/CreateSnapshotCommand";
|
|
8
9
|
import { CreateSnapshotCopyConfigurationCommandInput, CreateSnapshotCopyConfigurationCommandOutput } from "./commands/CreateSnapshotCopyConfigurationCommand";
|
|
@@ -22,6 +23,8 @@ import { GetCustomDomainAssociationCommandInput, GetCustomDomainAssociationComma
|
|
|
22
23
|
import { GetEndpointAccessCommandInput, GetEndpointAccessCommandOutput } from "./commands/GetEndpointAccessCommand";
|
|
23
24
|
import { GetNamespaceCommandInput, GetNamespaceCommandOutput } from "./commands/GetNamespaceCommand";
|
|
24
25
|
import { GetRecoveryPointCommandInput, GetRecoveryPointCommandOutput } from "./commands/GetRecoveryPointCommand";
|
|
26
|
+
import { GetReservationCommandInput, GetReservationCommandOutput } from "./commands/GetReservationCommand";
|
|
27
|
+
import { GetReservationOfferingCommandInput, GetReservationOfferingCommandOutput } from "./commands/GetReservationOfferingCommand";
|
|
25
28
|
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
26
29
|
import { GetScheduledActionCommandInput, GetScheduledActionCommandOutput } from "./commands/GetScheduledActionCommand";
|
|
27
30
|
import { GetSnapshotCommandInput, GetSnapshotCommandOutput } from "./commands/GetSnapshotCommand";
|
|
@@ -34,6 +37,8 @@ import { ListEndpointAccessCommandInput, ListEndpointAccessCommandOutput } from
|
|
|
34
37
|
import { ListManagedWorkgroupsCommandInput, ListManagedWorkgroupsCommandOutput } from "./commands/ListManagedWorkgroupsCommand";
|
|
35
38
|
import { ListNamespacesCommandInput, ListNamespacesCommandOutput } from "./commands/ListNamespacesCommand";
|
|
36
39
|
import { ListRecoveryPointsCommandInput, ListRecoveryPointsCommandOutput } from "./commands/ListRecoveryPointsCommand";
|
|
40
|
+
import { ListReservationOfferingsCommandInput, ListReservationOfferingsCommandOutput } from "./commands/ListReservationOfferingsCommand";
|
|
41
|
+
import { ListReservationsCommandInput, ListReservationsCommandOutput } from "./commands/ListReservationsCommand";
|
|
37
42
|
import { ListScheduledActionsCommandInput, ListScheduledActionsCommandOutput } from "./commands/ListScheduledActionsCommand";
|
|
38
43
|
import { ListSnapshotCopyConfigurationsCommandInput, ListSnapshotCopyConfigurationsCommandOutput } from "./commands/ListSnapshotCopyConfigurationsCommand";
|
|
39
44
|
import { ListSnapshotsCommandInput, ListSnapshotsCommandOutput } from "./commands/ListSnapshotsCommand";
|
|
@@ -83,6 +88,12 @@ export interface RedshiftServerless {
|
|
|
83
88
|
createNamespace(args: CreateNamespaceCommandInput, options?: __HttpHandlerOptions): Promise<CreateNamespaceCommandOutput>;
|
|
84
89
|
createNamespace(args: CreateNamespaceCommandInput, cb: (err: any, data?: CreateNamespaceCommandOutput) => void): void;
|
|
85
90
|
createNamespace(args: CreateNamespaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateNamespaceCommandOutput) => void): void;
|
|
91
|
+
/**
|
|
92
|
+
* @see {@link CreateReservationCommand}
|
|
93
|
+
*/
|
|
94
|
+
createReservation(args: CreateReservationCommandInput, options?: __HttpHandlerOptions): Promise<CreateReservationCommandOutput>;
|
|
95
|
+
createReservation(args: CreateReservationCommandInput, cb: (err: any, data?: CreateReservationCommandOutput) => void): void;
|
|
96
|
+
createReservation(args: CreateReservationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateReservationCommandOutput) => void): void;
|
|
86
97
|
/**
|
|
87
98
|
* @see {@link CreateScheduledActionCommand}
|
|
88
99
|
*/
|
|
@@ -198,6 +209,18 @@ export interface RedshiftServerless {
|
|
|
198
209
|
getRecoveryPoint(args: GetRecoveryPointCommandInput, options?: __HttpHandlerOptions): Promise<GetRecoveryPointCommandOutput>;
|
|
199
210
|
getRecoveryPoint(args: GetRecoveryPointCommandInput, cb: (err: any, data?: GetRecoveryPointCommandOutput) => void): void;
|
|
200
211
|
getRecoveryPoint(args: GetRecoveryPointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRecoveryPointCommandOutput) => void): void;
|
|
212
|
+
/**
|
|
213
|
+
* @see {@link GetReservationCommand}
|
|
214
|
+
*/
|
|
215
|
+
getReservation(args: GetReservationCommandInput, options?: __HttpHandlerOptions): Promise<GetReservationCommandOutput>;
|
|
216
|
+
getReservation(args: GetReservationCommandInput, cb: (err: any, data?: GetReservationCommandOutput) => void): void;
|
|
217
|
+
getReservation(args: GetReservationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetReservationCommandOutput) => void): void;
|
|
218
|
+
/**
|
|
219
|
+
* @see {@link GetReservationOfferingCommand}
|
|
220
|
+
*/
|
|
221
|
+
getReservationOffering(args: GetReservationOfferingCommandInput, options?: __HttpHandlerOptions): Promise<GetReservationOfferingCommandOutput>;
|
|
222
|
+
getReservationOffering(args: GetReservationOfferingCommandInput, cb: (err: any, data?: GetReservationOfferingCommandOutput) => void): void;
|
|
223
|
+
getReservationOffering(args: GetReservationOfferingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetReservationOfferingCommandOutput) => void): void;
|
|
201
224
|
/**
|
|
202
225
|
* @see {@link GetResourcePolicyCommand}
|
|
203
226
|
*/
|
|
@@ -276,6 +299,20 @@ export interface RedshiftServerless {
|
|
|
276
299
|
listRecoveryPoints(args: ListRecoveryPointsCommandInput, options?: __HttpHandlerOptions): Promise<ListRecoveryPointsCommandOutput>;
|
|
277
300
|
listRecoveryPoints(args: ListRecoveryPointsCommandInput, cb: (err: any, data?: ListRecoveryPointsCommandOutput) => void): void;
|
|
278
301
|
listRecoveryPoints(args: ListRecoveryPointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecoveryPointsCommandOutput) => void): void;
|
|
302
|
+
/**
|
|
303
|
+
* @see {@link ListReservationOfferingsCommand}
|
|
304
|
+
*/
|
|
305
|
+
listReservationOfferings(): Promise<ListReservationOfferingsCommandOutput>;
|
|
306
|
+
listReservationOfferings(args: ListReservationOfferingsCommandInput, options?: __HttpHandlerOptions): Promise<ListReservationOfferingsCommandOutput>;
|
|
307
|
+
listReservationOfferings(args: ListReservationOfferingsCommandInput, cb: (err: any, data?: ListReservationOfferingsCommandOutput) => void): void;
|
|
308
|
+
listReservationOfferings(args: ListReservationOfferingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListReservationOfferingsCommandOutput) => void): void;
|
|
309
|
+
/**
|
|
310
|
+
* @see {@link ListReservationsCommand}
|
|
311
|
+
*/
|
|
312
|
+
listReservations(): Promise<ListReservationsCommandOutput>;
|
|
313
|
+
listReservations(args: ListReservationsCommandInput, options?: __HttpHandlerOptions): Promise<ListReservationsCommandOutput>;
|
|
314
|
+
listReservations(args: ListReservationsCommandInput, cb: (err: any, data?: ListReservationsCommandOutput) => void): void;
|
|
315
|
+
listReservations(args: ListReservationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListReservationsCommandOutput) => void): void;
|
|
279
316
|
/**
|
|
280
317
|
* @see {@link ListScheduledActionsCommand}
|
|
281
318
|
*/
|
|
@@ -11,6 +11,7 @@ import { ConvertRecoveryPointToSnapshotCommandInput, ConvertRecoveryPointToSnaps
|
|
|
11
11
|
import { CreateCustomDomainAssociationCommandInput, CreateCustomDomainAssociationCommandOutput } from "./commands/CreateCustomDomainAssociationCommand";
|
|
12
12
|
import { CreateEndpointAccessCommandInput, CreateEndpointAccessCommandOutput } from "./commands/CreateEndpointAccessCommand";
|
|
13
13
|
import { CreateNamespaceCommandInput, CreateNamespaceCommandOutput } from "./commands/CreateNamespaceCommand";
|
|
14
|
+
import { CreateReservationCommandInput, CreateReservationCommandOutput } from "./commands/CreateReservationCommand";
|
|
14
15
|
import { CreateScheduledActionCommandInput, CreateScheduledActionCommandOutput } from "./commands/CreateScheduledActionCommand";
|
|
15
16
|
import { CreateSnapshotCommandInput, CreateSnapshotCommandOutput } from "./commands/CreateSnapshotCommand";
|
|
16
17
|
import { CreateSnapshotCopyConfigurationCommandInput, CreateSnapshotCopyConfigurationCommandOutput } from "./commands/CreateSnapshotCopyConfigurationCommand";
|
|
@@ -30,6 +31,8 @@ import { GetCustomDomainAssociationCommandInput, GetCustomDomainAssociationComma
|
|
|
30
31
|
import { GetEndpointAccessCommandInput, GetEndpointAccessCommandOutput } from "./commands/GetEndpointAccessCommand";
|
|
31
32
|
import { GetNamespaceCommandInput, GetNamespaceCommandOutput } from "./commands/GetNamespaceCommand";
|
|
32
33
|
import { GetRecoveryPointCommandInput, GetRecoveryPointCommandOutput } from "./commands/GetRecoveryPointCommand";
|
|
34
|
+
import { GetReservationCommandInput, GetReservationCommandOutput } from "./commands/GetReservationCommand";
|
|
35
|
+
import { GetReservationOfferingCommandInput, GetReservationOfferingCommandOutput } from "./commands/GetReservationOfferingCommand";
|
|
33
36
|
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
34
37
|
import { GetScheduledActionCommandInput, GetScheduledActionCommandOutput } from "./commands/GetScheduledActionCommand";
|
|
35
38
|
import { GetSnapshotCommandInput, GetSnapshotCommandOutput } from "./commands/GetSnapshotCommand";
|
|
@@ -42,6 +45,8 @@ import { ListEndpointAccessCommandInput, ListEndpointAccessCommandOutput } from
|
|
|
42
45
|
import { ListManagedWorkgroupsCommandInput, ListManagedWorkgroupsCommandOutput } from "./commands/ListManagedWorkgroupsCommand";
|
|
43
46
|
import { ListNamespacesCommandInput, ListNamespacesCommandOutput } from "./commands/ListNamespacesCommand";
|
|
44
47
|
import { ListRecoveryPointsCommandInput, ListRecoveryPointsCommandOutput } from "./commands/ListRecoveryPointsCommand";
|
|
48
|
+
import { ListReservationOfferingsCommandInput, ListReservationOfferingsCommandOutput } from "./commands/ListReservationOfferingsCommand";
|
|
49
|
+
import { ListReservationsCommandInput, ListReservationsCommandOutput } from "./commands/ListReservationsCommand";
|
|
45
50
|
import { ListScheduledActionsCommandInput, ListScheduledActionsCommandOutput } from "./commands/ListScheduledActionsCommand";
|
|
46
51
|
import { ListSnapshotCopyConfigurationsCommandInput, ListSnapshotCopyConfigurationsCommandOutput } from "./commands/ListSnapshotCopyConfigurationsCommand";
|
|
47
52
|
import { ListSnapshotsCommandInput, ListSnapshotsCommandOutput } from "./commands/ListSnapshotsCommand";
|
|
@@ -71,11 +76,11 @@ export { __Client };
|
|
|
71
76
|
/**
|
|
72
77
|
* @public
|
|
73
78
|
*/
|
|
74
|
-
export type ServiceInputTypes = ConvertRecoveryPointToSnapshotCommandInput | CreateCustomDomainAssociationCommandInput | CreateEndpointAccessCommandInput | CreateNamespaceCommandInput | CreateScheduledActionCommandInput | CreateSnapshotCommandInput | CreateSnapshotCopyConfigurationCommandInput | CreateUsageLimitCommandInput | CreateWorkgroupCommandInput | DeleteCustomDomainAssociationCommandInput | DeleteEndpointAccessCommandInput | DeleteNamespaceCommandInput | DeleteResourcePolicyCommandInput | DeleteScheduledActionCommandInput | DeleteSnapshotCommandInput | DeleteSnapshotCopyConfigurationCommandInput | DeleteUsageLimitCommandInput | DeleteWorkgroupCommandInput | GetCredentialsCommandInput | GetCustomDomainAssociationCommandInput | GetEndpointAccessCommandInput | GetNamespaceCommandInput | GetRecoveryPointCommandInput | GetResourcePolicyCommandInput | GetScheduledActionCommandInput | GetSnapshotCommandInput | GetTableRestoreStatusCommandInput | GetTrackCommandInput | GetUsageLimitCommandInput | GetWorkgroupCommandInput | ListCustomDomainAssociationsCommandInput | ListEndpointAccessCommandInput | ListManagedWorkgroupsCommandInput | ListNamespacesCommandInput | ListRecoveryPointsCommandInput | ListScheduledActionsCommandInput | ListSnapshotCopyConfigurationsCommandInput | ListSnapshotsCommandInput | ListTableRestoreStatusCommandInput | ListTagsForResourceCommandInput | ListTracksCommandInput | ListUsageLimitsCommandInput | ListWorkgroupsCommandInput | PutResourcePolicyCommandInput | RestoreFromRecoveryPointCommandInput | RestoreFromSnapshotCommandInput | RestoreTableFromRecoveryPointCommandInput | RestoreTableFromSnapshotCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCustomDomainAssociationCommandInput | UpdateEndpointAccessCommandInput | UpdateNamespaceCommandInput | UpdateScheduledActionCommandInput | UpdateSnapshotCommandInput | UpdateSnapshotCopyConfigurationCommandInput | UpdateUsageLimitCommandInput | UpdateWorkgroupCommandInput;
|
|
79
|
+
export type ServiceInputTypes = ConvertRecoveryPointToSnapshotCommandInput | CreateCustomDomainAssociationCommandInput | CreateEndpointAccessCommandInput | CreateNamespaceCommandInput | CreateReservationCommandInput | CreateScheduledActionCommandInput | CreateSnapshotCommandInput | CreateSnapshotCopyConfigurationCommandInput | CreateUsageLimitCommandInput | CreateWorkgroupCommandInput | DeleteCustomDomainAssociationCommandInput | DeleteEndpointAccessCommandInput | DeleteNamespaceCommandInput | DeleteResourcePolicyCommandInput | DeleteScheduledActionCommandInput | DeleteSnapshotCommandInput | DeleteSnapshotCopyConfigurationCommandInput | DeleteUsageLimitCommandInput | DeleteWorkgroupCommandInput | GetCredentialsCommandInput | GetCustomDomainAssociationCommandInput | GetEndpointAccessCommandInput | GetNamespaceCommandInput | GetRecoveryPointCommandInput | GetReservationCommandInput | GetReservationOfferingCommandInput | GetResourcePolicyCommandInput | GetScheduledActionCommandInput | GetSnapshotCommandInput | GetTableRestoreStatusCommandInput | GetTrackCommandInput | GetUsageLimitCommandInput | GetWorkgroupCommandInput | ListCustomDomainAssociationsCommandInput | ListEndpointAccessCommandInput | ListManagedWorkgroupsCommandInput | ListNamespacesCommandInput | ListRecoveryPointsCommandInput | ListReservationOfferingsCommandInput | ListReservationsCommandInput | ListScheduledActionsCommandInput | ListSnapshotCopyConfigurationsCommandInput | ListSnapshotsCommandInput | ListTableRestoreStatusCommandInput | ListTagsForResourceCommandInput | ListTracksCommandInput | ListUsageLimitsCommandInput | ListWorkgroupsCommandInput | PutResourcePolicyCommandInput | RestoreFromRecoveryPointCommandInput | RestoreFromSnapshotCommandInput | RestoreTableFromRecoveryPointCommandInput | RestoreTableFromSnapshotCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCustomDomainAssociationCommandInput | UpdateEndpointAccessCommandInput | UpdateNamespaceCommandInput | UpdateScheduledActionCommandInput | UpdateSnapshotCommandInput | UpdateSnapshotCopyConfigurationCommandInput | UpdateUsageLimitCommandInput | UpdateWorkgroupCommandInput;
|
|
75
80
|
/**
|
|
76
81
|
* @public
|
|
77
82
|
*/
|
|
78
|
-
export type ServiceOutputTypes = ConvertRecoveryPointToSnapshotCommandOutput | CreateCustomDomainAssociationCommandOutput | CreateEndpointAccessCommandOutput | CreateNamespaceCommandOutput | CreateScheduledActionCommandOutput | CreateSnapshotCommandOutput | CreateSnapshotCopyConfigurationCommandOutput | CreateUsageLimitCommandOutput | CreateWorkgroupCommandOutput | DeleteCustomDomainAssociationCommandOutput | DeleteEndpointAccessCommandOutput | DeleteNamespaceCommandOutput | DeleteResourcePolicyCommandOutput | DeleteScheduledActionCommandOutput | DeleteSnapshotCommandOutput | DeleteSnapshotCopyConfigurationCommandOutput | DeleteUsageLimitCommandOutput | DeleteWorkgroupCommandOutput | GetCredentialsCommandOutput | GetCustomDomainAssociationCommandOutput | GetEndpointAccessCommandOutput | GetNamespaceCommandOutput | GetRecoveryPointCommandOutput | GetResourcePolicyCommandOutput | GetScheduledActionCommandOutput | GetSnapshotCommandOutput | GetTableRestoreStatusCommandOutput | GetTrackCommandOutput | GetUsageLimitCommandOutput | GetWorkgroupCommandOutput | ListCustomDomainAssociationsCommandOutput | ListEndpointAccessCommandOutput | ListManagedWorkgroupsCommandOutput | ListNamespacesCommandOutput | ListRecoveryPointsCommandOutput | ListScheduledActionsCommandOutput | ListSnapshotCopyConfigurationsCommandOutput | ListSnapshotsCommandOutput | ListTableRestoreStatusCommandOutput | ListTagsForResourceCommandOutput | ListTracksCommandOutput | ListUsageLimitsCommandOutput | ListWorkgroupsCommandOutput | PutResourcePolicyCommandOutput | RestoreFromRecoveryPointCommandOutput | RestoreFromSnapshotCommandOutput | RestoreTableFromRecoveryPointCommandOutput | RestoreTableFromSnapshotCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCustomDomainAssociationCommandOutput | UpdateEndpointAccessCommandOutput | UpdateNamespaceCommandOutput | UpdateScheduledActionCommandOutput | UpdateSnapshotCommandOutput | UpdateSnapshotCopyConfigurationCommandOutput | UpdateUsageLimitCommandOutput | UpdateWorkgroupCommandOutput;
|
|
83
|
+
export type ServiceOutputTypes = ConvertRecoveryPointToSnapshotCommandOutput | CreateCustomDomainAssociationCommandOutput | CreateEndpointAccessCommandOutput | CreateNamespaceCommandOutput | CreateReservationCommandOutput | CreateScheduledActionCommandOutput | CreateSnapshotCommandOutput | CreateSnapshotCopyConfigurationCommandOutput | CreateUsageLimitCommandOutput | CreateWorkgroupCommandOutput | DeleteCustomDomainAssociationCommandOutput | DeleteEndpointAccessCommandOutput | DeleteNamespaceCommandOutput | DeleteResourcePolicyCommandOutput | DeleteScheduledActionCommandOutput | DeleteSnapshotCommandOutput | DeleteSnapshotCopyConfigurationCommandOutput | DeleteUsageLimitCommandOutput | DeleteWorkgroupCommandOutput | GetCredentialsCommandOutput | GetCustomDomainAssociationCommandOutput | GetEndpointAccessCommandOutput | GetNamespaceCommandOutput | GetRecoveryPointCommandOutput | GetReservationCommandOutput | GetReservationOfferingCommandOutput | GetResourcePolicyCommandOutput | GetScheduledActionCommandOutput | GetSnapshotCommandOutput | GetTableRestoreStatusCommandOutput | GetTrackCommandOutput | GetUsageLimitCommandOutput | GetWorkgroupCommandOutput | ListCustomDomainAssociationsCommandOutput | ListEndpointAccessCommandOutput | ListManagedWorkgroupsCommandOutput | ListNamespacesCommandOutput | ListRecoveryPointsCommandOutput | ListReservationOfferingsCommandOutput | ListReservationsCommandOutput | ListScheduledActionsCommandOutput | ListSnapshotCopyConfigurationsCommandOutput | ListSnapshotsCommandOutput | ListTableRestoreStatusCommandOutput | ListTagsForResourceCommandOutput | ListTracksCommandOutput | ListUsageLimitsCommandOutput | ListWorkgroupsCommandOutput | PutResourcePolicyCommandOutput | RestoreFromRecoveryPointCommandOutput | RestoreFromSnapshotCommandOutput | RestoreTableFromRecoveryPointCommandOutput | RestoreTableFromSnapshotCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCustomDomainAssociationCommandOutput | UpdateEndpointAccessCommandOutput | UpdateNamespaceCommandOutput | UpdateScheduledActionCommandOutput | UpdateSnapshotCommandOutput | UpdateSnapshotCopyConfigurationCommandOutput | UpdateUsageLimitCommandOutput | UpdateWorkgroupCommandOutput;
|
|
79
84
|
/**
|
|
80
85
|
* @public
|
|
81
86
|
*/
|
|
@@ -28,7 +28,7 @@ declare const ConvertRecoveryPointToSnapshotCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>Converts a recovery point to a snapshot. For more information about recovery points and snapshots,
|
|
31
|
-
* see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-snapshots-recovery.html">Working with snapshots and recovery points</a>.</p>
|
|
31
|
+
* see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-snapshots-recovery-points.html">Working with snapshots and recovery points</a>.</p>
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
34
|
* ```javascript
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { CreateReservationRequest, CreateReservationResponse } from "../models/models_0";
|
|
4
|
+
import { RedshiftServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftServerlessClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateReservationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateReservationCommandInput extends CreateReservationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateReservationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateReservationCommandOutput extends CreateReservationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateReservationCommand_base: {
|
|
25
|
+
new (input: CreateReservationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateReservationCommandInput, CreateReservationCommandOutput, RedshiftServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateReservationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateReservationCommandInput, CreateReservationCommandOutput, RedshiftServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates an Amazon Redshift Serverless reservation, which gives you the option to commit to a specified number of Redshift Processing Units (RPUs)
|
|
31
|
+
* for a year at a discount from Serverless on-demand (OD) rates.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { RedshiftServerlessClient, CreateReservationCommand } from "@aws-sdk/client-redshift-serverless"; // ES Modules import
|
|
36
|
+
* // const { RedshiftServerlessClient, CreateReservationCommand } = require("@aws-sdk/client-redshift-serverless"); // CommonJS import
|
|
37
|
+
* const client = new RedshiftServerlessClient(config);
|
|
38
|
+
* const input = { // CreateReservationRequest
|
|
39
|
+
* capacity: Number("int"), // required
|
|
40
|
+
* offeringId: "STRING_VALUE", // required
|
|
41
|
+
* clientToken: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new CreateReservationCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // CreateReservationResponse
|
|
46
|
+
* // reservation: { // Reservation
|
|
47
|
+
* // reservationId: "STRING_VALUE",
|
|
48
|
+
* // reservationArn: "STRING_VALUE",
|
|
49
|
+
* // startDate: new Date("TIMESTAMP"),
|
|
50
|
+
* // endDate: new Date("TIMESTAMP"),
|
|
51
|
+
* // capacity: Number("int"),
|
|
52
|
+
* // offering: { // ReservationOffering
|
|
53
|
+
* // offeringId: "STRING_VALUE",
|
|
54
|
+
* // duration: Number("int"),
|
|
55
|
+
* // upfrontCharge: Number("double"),
|
|
56
|
+
* // hourlyCharge: Number("double"),
|
|
57
|
+
* // currencyCode: "STRING_VALUE",
|
|
58
|
+
* // offeringType: "STRING_VALUE",
|
|
59
|
+
* // },
|
|
60
|
+
* // status: "STRING_VALUE",
|
|
61
|
+
* // },
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param CreateReservationCommandInput - {@link CreateReservationCommandInput}
|
|
67
|
+
* @returns {@link CreateReservationCommandOutput}
|
|
68
|
+
* @see {@link CreateReservationCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link CreateReservationCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link RedshiftServerlessClientResolvedConfig | config} for RedshiftServerlessClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ConflictException} (client fault)
|
|
73
|
+
* <p>The submitted action has conflicts.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerException} (server fault)
|
|
76
|
+
* <p>The request processing has failed because of an unknown error, exception or failure.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
79
|
+
* <p>The resource could not be found.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
82
|
+
* <p>The service limit was exceeded.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
85
|
+
* <p>The request was denied due to request throttling.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link TooManyTagsException} (client fault)
|
|
88
|
+
* <p>The request exceeded the number of tags allowed for a resource.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ValidationException} (client fault)
|
|
91
|
+
* <p>The input failed to satisfy the constraints specified by an AWS service.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link RedshiftServerlessServiceException}
|
|
94
|
+
* <p>Base exception class for all service exceptions from RedshiftServerless service.</p>
|
|
95
|
+
*
|
|
96
|
+
*
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
export declare class CreateReservationCommand extends CreateReservationCommand_base {
|
|
100
|
+
/** @internal type navigation helper, not in runtime. */
|
|
101
|
+
protected static __types: {
|
|
102
|
+
api: {
|
|
103
|
+
input: CreateReservationRequest;
|
|
104
|
+
output: CreateReservationResponse;
|
|
105
|
+
};
|
|
106
|
+
sdk: {
|
|
107
|
+
input: CreateReservationCommandInput;
|
|
108
|
+
output: CreateReservationCommandOutput;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}
|
|
@@ -29,7 +29,7 @@ declare const CreateSnapshotCommand_base: {
|
|
|
29
29
|
/**
|
|
30
30
|
* <p>Creates a snapshot of all databases in a namespace.
|
|
31
31
|
* For more information about snapshots, see
|
|
32
|
-
* <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-snapshots-recovery.html">
|
|
32
|
+
* <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-snapshots-recovery-points.html">
|
|
33
33
|
* Working with snapshots and recovery points</a>.</p>
|
|
34
34
|
* @example
|
|
35
35
|
* Use a bare-bones client and the command you need to make an API call.
|