@aws-sdk/client-redshift-serverless 3.462.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 +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
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";
|
|
3
|
-
import { AccessDeniedException, ConflictException, InsufficientCapacityException, InternalServerException, InvalidPaginationException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
4
|
+
import { AccessDeniedException, ConflictException, InsufficientCapacityException, InternalServerException, InvalidPaginationException, ResourceNotFoundException, Schedule, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
4
5
|
import { RedshiftServerlessServiceException as __BaseException } from "../models/RedshiftServerlessServiceException";
|
|
5
6
|
export const se_ConvertRecoveryPointToSnapshotCommand = async (input, context) => {
|
|
6
7
|
const headers = sharedHeaders("ConvertRecoveryPointToSnapshot");
|
|
@@ -26,12 +27,24 @@ export const se_CreateNamespaceCommand = async (input, context) => {
|
|
|
26
27
|
body = JSON.stringify(_json(input));
|
|
27
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
29
|
};
|
|
30
|
+
export const se_CreateScheduledActionCommand = async (input, context) => {
|
|
31
|
+
const headers = sharedHeaders("CreateScheduledAction");
|
|
32
|
+
let body;
|
|
33
|
+
body = JSON.stringify(se_CreateScheduledActionRequest(input, context));
|
|
34
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
+
};
|
|
29
36
|
export const se_CreateSnapshotCommand = async (input, context) => {
|
|
30
37
|
const headers = sharedHeaders("CreateSnapshot");
|
|
31
38
|
let body;
|
|
32
39
|
body = JSON.stringify(_json(input));
|
|
33
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
41
|
};
|
|
42
|
+
export const se_CreateSnapshotCopyConfigurationCommand = async (input, context) => {
|
|
43
|
+
const headers = sharedHeaders("CreateSnapshotCopyConfiguration");
|
|
44
|
+
let body;
|
|
45
|
+
body = JSON.stringify(_json(input));
|
|
46
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
+
};
|
|
35
48
|
export const se_CreateUsageLimitCommand = async (input, context) => {
|
|
36
49
|
const headers = sharedHeaders("CreateUsageLimit");
|
|
37
50
|
let body;
|
|
@@ -68,12 +81,24 @@ export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
|
68
81
|
body = JSON.stringify(_json(input));
|
|
69
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
83
|
};
|
|
84
|
+
export const se_DeleteScheduledActionCommand = async (input, context) => {
|
|
85
|
+
const headers = sharedHeaders("DeleteScheduledAction");
|
|
86
|
+
let body;
|
|
87
|
+
body = JSON.stringify(_json(input));
|
|
88
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
+
};
|
|
71
90
|
export const se_DeleteSnapshotCommand = async (input, context) => {
|
|
72
91
|
const headers = sharedHeaders("DeleteSnapshot");
|
|
73
92
|
let body;
|
|
74
93
|
body = JSON.stringify(_json(input));
|
|
75
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
95
|
};
|
|
96
|
+
export const se_DeleteSnapshotCopyConfigurationCommand = async (input, context) => {
|
|
97
|
+
const headers = sharedHeaders("DeleteSnapshotCopyConfiguration");
|
|
98
|
+
let body;
|
|
99
|
+
body = JSON.stringify(_json(input));
|
|
100
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
+
};
|
|
77
102
|
export const se_DeleteUsageLimitCommand = async (input, context) => {
|
|
78
103
|
const headers = sharedHeaders("DeleteUsageLimit");
|
|
79
104
|
let body;
|
|
@@ -122,6 +147,12 @@ export const se_GetResourcePolicyCommand = async (input, context) => {
|
|
|
122
147
|
body = JSON.stringify(_json(input));
|
|
123
148
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
124
149
|
};
|
|
150
|
+
export const se_GetScheduledActionCommand = async (input, context) => {
|
|
151
|
+
const headers = sharedHeaders("GetScheduledAction");
|
|
152
|
+
let body;
|
|
153
|
+
body = JSON.stringify(_json(input));
|
|
154
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
+
};
|
|
125
156
|
export const se_GetSnapshotCommand = async (input, context) => {
|
|
126
157
|
const headers = sharedHeaders("GetSnapshot");
|
|
127
158
|
let body;
|
|
@@ -170,6 +201,18 @@ export const se_ListRecoveryPointsCommand = async (input, context) => {
|
|
|
170
201
|
body = JSON.stringify(se_ListRecoveryPointsRequest(input, context));
|
|
171
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
172
203
|
};
|
|
204
|
+
export const se_ListScheduledActionsCommand = async (input, context) => {
|
|
205
|
+
const headers = sharedHeaders("ListScheduledActions");
|
|
206
|
+
let body;
|
|
207
|
+
body = JSON.stringify(_json(input));
|
|
208
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
|
+
};
|
|
210
|
+
export const se_ListSnapshotCopyConfigurationsCommand = async (input, context) => {
|
|
211
|
+
const headers = sharedHeaders("ListSnapshotCopyConfigurations");
|
|
212
|
+
let body;
|
|
213
|
+
body = JSON.stringify(_json(input));
|
|
214
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
|
+
};
|
|
173
216
|
export const se_ListSnapshotsCommand = async (input, context) => {
|
|
174
217
|
const headers = sharedHeaders("ListSnapshots");
|
|
175
218
|
let body;
|
|
@@ -218,6 +261,12 @@ export const se_RestoreFromSnapshotCommand = async (input, context) => {
|
|
|
218
261
|
body = JSON.stringify(_json(input));
|
|
219
262
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
263
|
};
|
|
264
|
+
export const se_RestoreTableFromRecoveryPointCommand = async (input, context) => {
|
|
265
|
+
const headers = sharedHeaders("RestoreTableFromRecoveryPoint");
|
|
266
|
+
let body;
|
|
267
|
+
body = JSON.stringify(_json(input));
|
|
268
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
|
+
};
|
|
221
270
|
export const se_RestoreTableFromSnapshotCommand = async (input, context) => {
|
|
222
271
|
const headers = sharedHeaders("RestoreTableFromSnapshot");
|
|
223
272
|
let body;
|
|
@@ -254,12 +303,24 @@ export const se_UpdateNamespaceCommand = async (input, context) => {
|
|
|
254
303
|
body = JSON.stringify(_json(input));
|
|
255
304
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
305
|
};
|
|
306
|
+
export const se_UpdateScheduledActionCommand = async (input, context) => {
|
|
307
|
+
const headers = sharedHeaders("UpdateScheduledAction");
|
|
308
|
+
let body;
|
|
309
|
+
body = JSON.stringify(se_UpdateScheduledActionRequest(input, context));
|
|
310
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
311
|
+
};
|
|
257
312
|
export const se_UpdateSnapshotCommand = async (input, context) => {
|
|
258
313
|
const headers = sharedHeaders("UpdateSnapshot");
|
|
259
314
|
let body;
|
|
260
315
|
body = JSON.stringify(_json(input));
|
|
261
316
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
262
317
|
};
|
|
318
|
+
export const se_UpdateSnapshotCopyConfigurationCommand = async (input, context) => {
|
|
319
|
+
const headers = sharedHeaders("UpdateSnapshotCopyConfiguration");
|
|
320
|
+
let body;
|
|
321
|
+
body = JSON.stringify(_json(input));
|
|
322
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
323
|
+
};
|
|
263
324
|
export const se_UpdateUsageLimitCommand = async (input, context) => {
|
|
264
325
|
const headers = sharedHeaders("UpdateUsageLimit");
|
|
265
326
|
let body;
|
|
@@ -454,6 +515,47 @@ const de_CreateNamespaceCommandError = async (output, context) => {
|
|
|
454
515
|
});
|
|
455
516
|
}
|
|
456
517
|
};
|
|
518
|
+
export const de_CreateScheduledActionCommand = async (output, context) => {
|
|
519
|
+
if (output.statusCode >= 300) {
|
|
520
|
+
return de_CreateScheduledActionCommandError(output, context);
|
|
521
|
+
}
|
|
522
|
+
const data = await parseBody(output.body, context);
|
|
523
|
+
let contents = {};
|
|
524
|
+
contents = de_CreateScheduledActionResponse(data, context);
|
|
525
|
+
const response = {
|
|
526
|
+
$metadata: deserializeMetadata(output),
|
|
527
|
+
...contents,
|
|
528
|
+
};
|
|
529
|
+
return response;
|
|
530
|
+
};
|
|
531
|
+
const de_CreateScheduledActionCommandError = async (output, context) => {
|
|
532
|
+
const parsedOutput = {
|
|
533
|
+
...output,
|
|
534
|
+
body: await parseErrorBody(output.body, context),
|
|
535
|
+
};
|
|
536
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
|
+
switch (errorCode) {
|
|
538
|
+
case "ConflictException":
|
|
539
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
540
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
541
|
+
case "InternalServerException":
|
|
542
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
543
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
544
|
+
case "ResourceNotFoundException":
|
|
545
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
546
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
547
|
+
case "ValidationException":
|
|
548
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
549
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
550
|
+
default:
|
|
551
|
+
const parsedBody = parsedOutput.body;
|
|
552
|
+
return throwDefaultError({
|
|
553
|
+
output,
|
|
554
|
+
parsedBody,
|
|
555
|
+
errorCode,
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
};
|
|
457
559
|
export const de_CreateSnapshotCommand = async (output, context) => {
|
|
458
560
|
if (output.statusCode >= 300) {
|
|
459
561
|
return de_CreateSnapshotCommandError(output, context);
|
|
@@ -501,6 +603,53 @@ const de_CreateSnapshotCommandError = async (output, context) => {
|
|
|
501
603
|
});
|
|
502
604
|
}
|
|
503
605
|
};
|
|
606
|
+
export const de_CreateSnapshotCopyConfigurationCommand = async (output, context) => {
|
|
607
|
+
if (output.statusCode >= 300) {
|
|
608
|
+
return de_CreateSnapshotCopyConfigurationCommandError(output, context);
|
|
609
|
+
}
|
|
610
|
+
const data = await parseBody(output.body, context);
|
|
611
|
+
let contents = {};
|
|
612
|
+
contents = _json(data);
|
|
613
|
+
const response = {
|
|
614
|
+
$metadata: deserializeMetadata(output),
|
|
615
|
+
...contents,
|
|
616
|
+
};
|
|
617
|
+
return response;
|
|
618
|
+
};
|
|
619
|
+
const de_CreateSnapshotCopyConfigurationCommandError = async (output, context) => {
|
|
620
|
+
const parsedOutput = {
|
|
621
|
+
...output,
|
|
622
|
+
body: await parseErrorBody(output.body, context),
|
|
623
|
+
};
|
|
624
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
|
+
switch (errorCode) {
|
|
626
|
+
case "AccessDeniedException":
|
|
627
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
628
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
629
|
+
case "ConflictException":
|
|
630
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
631
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
632
|
+
case "InternalServerException":
|
|
633
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
634
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
635
|
+
case "ResourceNotFoundException":
|
|
636
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
637
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
638
|
+
case "ServiceQuotaExceededException":
|
|
639
|
+
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
640
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
641
|
+
case "ValidationException":
|
|
642
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
643
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
644
|
+
default:
|
|
645
|
+
const parsedBody = parsedOutput.body;
|
|
646
|
+
return throwDefaultError({
|
|
647
|
+
output,
|
|
648
|
+
parsedBody,
|
|
649
|
+
errorCode,
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
};
|
|
504
653
|
export const de_CreateUsageLimitCommand = async (output, context) => {
|
|
505
654
|
if (output.statusCode >= 300) {
|
|
506
655
|
return de_CreateUsageLimitCommandError(output, context);
|
|
@@ -759,6 +908,44 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
759
908
|
});
|
|
760
909
|
}
|
|
761
910
|
};
|
|
911
|
+
export const de_DeleteScheduledActionCommand = async (output, context) => {
|
|
912
|
+
if (output.statusCode >= 300) {
|
|
913
|
+
return de_DeleteScheduledActionCommandError(output, context);
|
|
914
|
+
}
|
|
915
|
+
const data = await parseBody(output.body, context);
|
|
916
|
+
let contents = {};
|
|
917
|
+
contents = de_DeleteScheduledActionResponse(data, context);
|
|
918
|
+
const response = {
|
|
919
|
+
$metadata: deserializeMetadata(output),
|
|
920
|
+
...contents,
|
|
921
|
+
};
|
|
922
|
+
return response;
|
|
923
|
+
};
|
|
924
|
+
const de_DeleteScheduledActionCommandError = async (output, context) => {
|
|
925
|
+
const parsedOutput = {
|
|
926
|
+
...output,
|
|
927
|
+
body: await parseErrorBody(output.body, context),
|
|
928
|
+
};
|
|
929
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
|
+
switch (errorCode) {
|
|
931
|
+
case "InternalServerException":
|
|
932
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
933
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
934
|
+
case "ResourceNotFoundException":
|
|
935
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
936
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
937
|
+
case "ValidationException":
|
|
938
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
939
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
940
|
+
default:
|
|
941
|
+
const parsedBody = parsedOutput.body;
|
|
942
|
+
return throwDefaultError({
|
|
943
|
+
output,
|
|
944
|
+
parsedBody,
|
|
945
|
+
errorCode,
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
};
|
|
762
949
|
export const de_DeleteSnapshotCommand = async (output, context) => {
|
|
763
950
|
if (output.statusCode >= 300) {
|
|
764
951
|
return de_DeleteSnapshotCommandError(output, context);
|
|
@@ -800,6 +987,50 @@ const de_DeleteSnapshotCommandError = async (output, context) => {
|
|
|
800
987
|
});
|
|
801
988
|
}
|
|
802
989
|
};
|
|
990
|
+
export const de_DeleteSnapshotCopyConfigurationCommand = async (output, context) => {
|
|
991
|
+
if (output.statusCode >= 300) {
|
|
992
|
+
return de_DeleteSnapshotCopyConfigurationCommandError(output, context);
|
|
993
|
+
}
|
|
994
|
+
const data = await parseBody(output.body, context);
|
|
995
|
+
let contents = {};
|
|
996
|
+
contents = _json(data);
|
|
997
|
+
const response = {
|
|
998
|
+
$metadata: deserializeMetadata(output),
|
|
999
|
+
...contents,
|
|
1000
|
+
};
|
|
1001
|
+
return response;
|
|
1002
|
+
};
|
|
1003
|
+
const de_DeleteSnapshotCopyConfigurationCommandError = async (output, context) => {
|
|
1004
|
+
const parsedOutput = {
|
|
1005
|
+
...output,
|
|
1006
|
+
body: await parseErrorBody(output.body, context),
|
|
1007
|
+
};
|
|
1008
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
+
switch (errorCode) {
|
|
1010
|
+
case "AccessDeniedException":
|
|
1011
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1012
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1013
|
+
case "ConflictException":
|
|
1014
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1015
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1016
|
+
case "InternalServerException":
|
|
1017
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1018
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1019
|
+
case "ResourceNotFoundException":
|
|
1020
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1021
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1022
|
+
case "ValidationException":
|
|
1023
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1024
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1025
|
+
default:
|
|
1026
|
+
const parsedBody = parsedOutput.body;
|
|
1027
|
+
return throwDefaultError({
|
|
1028
|
+
output,
|
|
1029
|
+
parsedBody,
|
|
1030
|
+
errorCode,
|
|
1031
|
+
});
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
803
1034
|
export const de_DeleteUsageLimitCommand = async (output, context) => {
|
|
804
1035
|
if (output.statusCode >= 300) {
|
|
805
1036
|
return de_DeleteUsageLimitCommandError(output, context);
|
|
@@ -1125,6 +1356,44 @@ const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
|
1125
1356
|
});
|
|
1126
1357
|
}
|
|
1127
1358
|
};
|
|
1359
|
+
export const de_GetScheduledActionCommand = async (output, context) => {
|
|
1360
|
+
if (output.statusCode >= 300) {
|
|
1361
|
+
return de_GetScheduledActionCommandError(output, context);
|
|
1362
|
+
}
|
|
1363
|
+
const data = await parseBody(output.body, context);
|
|
1364
|
+
let contents = {};
|
|
1365
|
+
contents = de_GetScheduledActionResponse(data, context);
|
|
1366
|
+
const response = {
|
|
1367
|
+
$metadata: deserializeMetadata(output),
|
|
1368
|
+
...contents,
|
|
1369
|
+
};
|
|
1370
|
+
return response;
|
|
1371
|
+
};
|
|
1372
|
+
const de_GetScheduledActionCommandError = async (output, context) => {
|
|
1373
|
+
const parsedOutput = {
|
|
1374
|
+
...output,
|
|
1375
|
+
body: await parseErrorBody(output.body, context),
|
|
1376
|
+
};
|
|
1377
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
|
+
switch (errorCode) {
|
|
1379
|
+
case "InternalServerException":
|
|
1380
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1381
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1382
|
+
case "ResourceNotFoundException":
|
|
1383
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1384
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1385
|
+
case "ValidationException":
|
|
1386
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1387
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1388
|
+
default:
|
|
1389
|
+
const parsedBody = parsedOutput.body;
|
|
1390
|
+
return throwDefaultError({
|
|
1391
|
+
output,
|
|
1392
|
+
parsedBody,
|
|
1393
|
+
errorCode,
|
|
1394
|
+
});
|
|
1395
|
+
}
|
|
1396
|
+
};
|
|
1128
1397
|
export const de_GetSnapshotCommand = async (output, context) => {
|
|
1129
1398
|
if (output.statusCode >= 300) {
|
|
1130
1399
|
return de_GetSnapshotCommandError(output, context);
|
|
@@ -1432,6 +1701,91 @@ const de_ListRecoveryPointsCommandError = async (output, context) => {
|
|
|
1432
1701
|
});
|
|
1433
1702
|
}
|
|
1434
1703
|
};
|
|
1704
|
+
export const de_ListScheduledActionsCommand = async (output, context) => {
|
|
1705
|
+
if (output.statusCode >= 300) {
|
|
1706
|
+
return de_ListScheduledActionsCommandError(output, context);
|
|
1707
|
+
}
|
|
1708
|
+
const data = await parseBody(output.body, context);
|
|
1709
|
+
let contents = {};
|
|
1710
|
+
contents = _json(data);
|
|
1711
|
+
const response = {
|
|
1712
|
+
$metadata: deserializeMetadata(output),
|
|
1713
|
+
...contents,
|
|
1714
|
+
};
|
|
1715
|
+
return response;
|
|
1716
|
+
};
|
|
1717
|
+
const de_ListScheduledActionsCommandError = async (output, context) => {
|
|
1718
|
+
const parsedOutput = {
|
|
1719
|
+
...output,
|
|
1720
|
+
body: await parseErrorBody(output.body, context),
|
|
1721
|
+
};
|
|
1722
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
|
+
switch (errorCode) {
|
|
1724
|
+
case "InternalServerException":
|
|
1725
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1726
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1727
|
+
case "InvalidPaginationException":
|
|
1728
|
+
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1729
|
+
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
1730
|
+
case "ResourceNotFoundException":
|
|
1731
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1732
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1733
|
+
case "ValidationException":
|
|
1734
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1735
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1736
|
+
default:
|
|
1737
|
+
const parsedBody = parsedOutput.body;
|
|
1738
|
+
return throwDefaultError({
|
|
1739
|
+
output,
|
|
1740
|
+
parsedBody,
|
|
1741
|
+
errorCode,
|
|
1742
|
+
});
|
|
1743
|
+
}
|
|
1744
|
+
};
|
|
1745
|
+
export const de_ListSnapshotCopyConfigurationsCommand = async (output, context) => {
|
|
1746
|
+
if (output.statusCode >= 300) {
|
|
1747
|
+
return de_ListSnapshotCopyConfigurationsCommandError(output, context);
|
|
1748
|
+
}
|
|
1749
|
+
const data = await parseBody(output.body, context);
|
|
1750
|
+
let contents = {};
|
|
1751
|
+
contents = _json(data);
|
|
1752
|
+
const response = {
|
|
1753
|
+
$metadata: deserializeMetadata(output),
|
|
1754
|
+
...contents,
|
|
1755
|
+
};
|
|
1756
|
+
return response;
|
|
1757
|
+
};
|
|
1758
|
+
const de_ListSnapshotCopyConfigurationsCommandError = async (output, context) => {
|
|
1759
|
+
const parsedOutput = {
|
|
1760
|
+
...output,
|
|
1761
|
+
body: await parseErrorBody(output.body, context),
|
|
1762
|
+
};
|
|
1763
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1764
|
+
switch (errorCode) {
|
|
1765
|
+
case "ConflictException":
|
|
1766
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1767
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1768
|
+
case "InternalServerException":
|
|
1769
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1770
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1771
|
+
case "InvalidPaginationException":
|
|
1772
|
+
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1773
|
+
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
1774
|
+
case "ResourceNotFoundException":
|
|
1775
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1776
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1777
|
+
case "ValidationException":
|
|
1778
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1779
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1780
|
+
default:
|
|
1781
|
+
const parsedBody = parsedOutput.body;
|
|
1782
|
+
return throwDefaultError({
|
|
1783
|
+
output,
|
|
1784
|
+
parsedBody,
|
|
1785
|
+
errorCode,
|
|
1786
|
+
});
|
|
1787
|
+
}
|
|
1788
|
+
};
|
|
1435
1789
|
export const de_ListSnapshotsCommand = async (output, context) => {
|
|
1436
1790
|
if (output.statusCode >= 300) {
|
|
1437
1791
|
return de_ListSnapshotsCommandError(output, context);
|
|
@@ -1757,6 +2111,47 @@ const de_RestoreFromSnapshotCommandError = async (output, context) => {
|
|
|
1757
2111
|
});
|
|
1758
2112
|
}
|
|
1759
2113
|
};
|
|
2114
|
+
export const de_RestoreTableFromRecoveryPointCommand = async (output, context) => {
|
|
2115
|
+
if (output.statusCode >= 300) {
|
|
2116
|
+
return de_RestoreTableFromRecoveryPointCommandError(output, context);
|
|
2117
|
+
}
|
|
2118
|
+
const data = await parseBody(output.body, context);
|
|
2119
|
+
let contents = {};
|
|
2120
|
+
contents = de_RestoreTableFromRecoveryPointResponse(data, context);
|
|
2121
|
+
const response = {
|
|
2122
|
+
$metadata: deserializeMetadata(output),
|
|
2123
|
+
...contents,
|
|
2124
|
+
};
|
|
2125
|
+
return response;
|
|
2126
|
+
};
|
|
2127
|
+
const de_RestoreTableFromRecoveryPointCommandError = async (output, context) => {
|
|
2128
|
+
const parsedOutput = {
|
|
2129
|
+
...output,
|
|
2130
|
+
body: await parseErrorBody(output.body, context),
|
|
2131
|
+
};
|
|
2132
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2133
|
+
switch (errorCode) {
|
|
2134
|
+
case "ConflictException":
|
|
2135
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2136
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2137
|
+
case "InternalServerException":
|
|
2138
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2139
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2140
|
+
case "ResourceNotFoundException":
|
|
2141
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2142
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2143
|
+
case "ValidationException":
|
|
2144
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2145
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2146
|
+
default:
|
|
2147
|
+
const parsedBody = parsedOutput.body;
|
|
2148
|
+
return throwDefaultError({
|
|
2149
|
+
output,
|
|
2150
|
+
parsedBody,
|
|
2151
|
+
errorCode,
|
|
2152
|
+
});
|
|
2153
|
+
}
|
|
2154
|
+
};
|
|
1760
2155
|
export const de_RestoreTableFromSnapshotCommand = async (output, context) => {
|
|
1761
2156
|
if (output.statusCode >= 300) {
|
|
1762
2157
|
return de_RestoreTableFromSnapshotCommandError(output, context);
|
|
@@ -2015,6 +2410,47 @@ const de_UpdateNamespaceCommandError = async (output, context) => {
|
|
|
2015
2410
|
});
|
|
2016
2411
|
}
|
|
2017
2412
|
};
|
|
2413
|
+
export const de_UpdateScheduledActionCommand = async (output, context) => {
|
|
2414
|
+
if (output.statusCode >= 300) {
|
|
2415
|
+
return de_UpdateScheduledActionCommandError(output, context);
|
|
2416
|
+
}
|
|
2417
|
+
const data = await parseBody(output.body, context);
|
|
2418
|
+
let contents = {};
|
|
2419
|
+
contents = de_UpdateScheduledActionResponse(data, context);
|
|
2420
|
+
const response = {
|
|
2421
|
+
$metadata: deserializeMetadata(output),
|
|
2422
|
+
...contents,
|
|
2423
|
+
};
|
|
2424
|
+
return response;
|
|
2425
|
+
};
|
|
2426
|
+
const de_UpdateScheduledActionCommandError = async (output, context) => {
|
|
2427
|
+
const parsedOutput = {
|
|
2428
|
+
...output,
|
|
2429
|
+
body: await parseErrorBody(output.body, context),
|
|
2430
|
+
};
|
|
2431
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2432
|
+
switch (errorCode) {
|
|
2433
|
+
case "ConflictException":
|
|
2434
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2435
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2436
|
+
case "InternalServerException":
|
|
2437
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2438
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2439
|
+
case "ResourceNotFoundException":
|
|
2440
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2441
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2442
|
+
case "ValidationException":
|
|
2443
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2444
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2445
|
+
default:
|
|
2446
|
+
const parsedBody = parsedOutput.body;
|
|
2447
|
+
return throwDefaultError({
|
|
2448
|
+
output,
|
|
2449
|
+
parsedBody,
|
|
2450
|
+
errorCode,
|
|
2451
|
+
});
|
|
2452
|
+
}
|
|
2453
|
+
};
|
|
2018
2454
|
export const de_UpdateSnapshotCommand = async (output, context) => {
|
|
2019
2455
|
if (output.statusCode >= 300) {
|
|
2020
2456
|
return de_UpdateSnapshotCommandError(output, context);
|
|
@@ -2056,6 +2492,50 @@ const de_UpdateSnapshotCommandError = async (output, context) => {
|
|
|
2056
2492
|
});
|
|
2057
2493
|
}
|
|
2058
2494
|
};
|
|
2495
|
+
export const de_UpdateSnapshotCopyConfigurationCommand = async (output, context) => {
|
|
2496
|
+
if (output.statusCode >= 300) {
|
|
2497
|
+
return de_UpdateSnapshotCopyConfigurationCommandError(output, context);
|
|
2498
|
+
}
|
|
2499
|
+
const data = await parseBody(output.body, context);
|
|
2500
|
+
let contents = {};
|
|
2501
|
+
contents = _json(data);
|
|
2502
|
+
const response = {
|
|
2503
|
+
$metadata: deserializeMetadata(output),
|
|
2504
|
+
...contents,
|
|
2505
|
+
};
|
|
2506
|
+
return response;
|
|
2507
|
+
};
|
|
2508
|
+
const de_UpdateSnapshotCopyConfigurationCommandError = async (output, context) => {
|
|
2509
|
+
const parsedOutput = {
|
|
2510
|
+
...output,
|
|
2511
|
+
body: await parseErrorBody(output.body, context),
|
|
2512
|
+
};
|
|
2513
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2514
|
+
switch (errorCode) {
|
|
2515
|
+
case "AccessDeniedException":
|
|
2516
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
2517
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2518
|
+
case "ConflictException":
|
|
2519
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2520
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2521
|
+
case "InternalServerException":
|
|
2522
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2523
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2524
|
+
case "ResourceNotFoundException":
|
|
2525
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2526
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2527
|
+
case "ValidationException":
|
|
2528
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2529
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2530
|
+
default:
|
|
2531
|
+
const parsedBody = parsedOutput.body;
|
|
2532
|
+
return throwDefaultError({
|
|
2533
|
+
output,
|
|
2534
|
+
parsedBody,
|
|
2535
|
+
errorCode,
|
|
2536
|
+
});
|
|
2537
|
+
}
|
|
2538
|
+
};
|
|
2059
2539
|
export const de_UpdateUsageLimitCommand = async (output, context) => {
|
|
2060
2540
|
if (output.statusCode >= 300) {
|
|
2061
2541
|
return de_UpdateUsageLimitCommandError(output, context);
|
|
@@ -2231,6 +2711,19 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
2231
2711
|
});
|
|
2232
2712
|
return __decorateServiceException(exception, body);
|
|
2233
2713
|
};
|
|
2714
|
+
const se_CreateScheduledActionRequest = (input, context) => {
|
|
2715
|
+
return take(input, {
|
|
2716
|
+
enabled: [],
|
|
2717
|
+
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
2718
|
+
namespaceName: [],
|
|
2719
|
+
roleArn: [],
|
|
2720
|
+
schedule: (_) => se_Schedule(_, context),
|
|
2721
|
+
scheduledActionDescription: [],
|
|
2722
|
+
scheduledActionName: [],
|
|
2723
|
+
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
2724
|
+
targetAction: _json,
|
|
2725
|
+
});
|
|
2726
|
+
};
|
|
2234
2727
|
const se_ListRecoveryPointsRequest = (input, context) => {
|
|
2235
2728
|
return take(input, {
|
|
2236
2729
|
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
@@ -2252,6 +2745,25 @@ const se_ListSnapshotsRequest = (input, context) => {
|
|
|
2252
2745
|
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
2253
2746
|
});
|
|
2254
2747
|
};
|
|
2748
|
+
const se_Schedule = (input, context) => {
|
|
2749
|
+
return Schedule.visit(input, {
|
|
2750
|
+
at: (value) => ({ at: Math.round(value.getTime() / 1000) }),
|
|
2751
|
+
cron: (value) => ({ cron: value }),
|
|
2752
|
+
_: (name, value) => ({ name: value }),
|
|
2753
|
+
});
|
|
2754
|
+
};
|
|
2755
|
+
const se_UpdateScheduledActionRequest = (input, context) => {
|
|
2756
|
+
return take(input, {
|
|
2757
|
+
enabled: [],
|
|
2758
|
+
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
2759
|
+
roleArn: [],
|
|
2760
|
+
schedule: (_) => se_Schedule(_, context),
|
|
2761
|
+
scheduledActionDescription: [],
|
|
2762
|
+
scheduledActionName: [],
|
|
2763
|
+
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
2764
|
+
targetAction: _json,
|
|
2765
|
+
});
|
|
2766
|
+
};
|
|
2255
2767
|
const de_Association = (output, context) => {
|
|
2256
2768
|
return take(output, {
|
|
2257
2769
|
customDomainCertificateArn: __expectString,
|
|
@@ -2291,6 +2803,11 @@ const de_CreateNamespaceResponse = (output, context) => {
|
|
|
2291
2803
|
namespace: (_) => de_Namespace(_, context),
|
|
2292
2804
|
});
|
|
2293
2805
|
};
|
|
2806
|
+
const de_CreateScheduledActionResponse = (output, context) => {
|
|
2807
|
+
return take(output, {
|
|
2808
|
+
scheduledAction: (_) => de_ScheduledActionResponse(_, context),
|
|
2809
|
+
});
|
|
2810
|
+
};
|
|
2294
2811
|
const de_CreateSnapshotResponse = (output, context) => {
|
|
2295
2812
|
return take(output, {
|
|
2296
2813
|
snapshot: (_) => de_Snapshot(_, context),
|
|
@@ -2311,6 +2828,11 @@ const de_DeleteNamespaceResponse = (output, context) => {
|
|
|
2311
2828
|
namespace: (_) => de_Namespace(_, context),
|
|
2312
2829
|
});
|
|
2313
2830
|
};
|
|
2831
|
+
const de_DeleteScheduledActionResponse = (output, context) => {
|
|
2832
|
+
return take(output, {
|
|
2833
|
+
scheduledAction: (_) => de_ScheduledActionResponse(_, context),
|
|
2834
|
+
});
|
|
2835
|
+
};
|
|
2314
2836
|
const de_DeleteSnapshotResponse = (output, context) => {
|
|
2315
2837
|
return take(output, {
|
|
2316
2838
|
snapshot: (_) => de_Snapshot(_, context),
|
|
@@ -2374,6 +2896,11 @@ const de_GetRecoveryPointResponse = (output, context) => {
|
|
|
2374
2896
|
recoveryPoint: (_) => de_RecoveryPoint(_, context),
|
|
2375
2897
|
});
|
|
2376
2898
|
};
|
|
2899
|
+
const de_GetScheduledActionResponse = (output, context) => {
|
|
2900
|
+
return take(output, {
|
|
2901
|
+
scheduledAction: (_) => de_ScheduledActionResponse(_, context),
|
|
2902
|
+
});
|
|
2903
|
+
};
|
|
2377
2904
|
const de_GetSnapshotResponse = (output, context) => {
|
|
2378
2905
|
return take(output, {
|
|
2379
2906
|
snapshot: (_) => de_Snapshot(_, context),
|
|
@@ -2456,6 +2983,14 @@ const de_NamespaceList = (output, context) => {
|
|
|
2456
2983
|
});
|
|
2457
2984
|
return retVal;
|
|
2458
2985
|
};
|
|
2986
|
+
const de_NextInvocationsList = (output, context) => {
|
|
2987
|
+
const retVal = (output || [])
|
|
2988
|
+
.filter((e) => e != null)
|
|
2989
|
+
.map((entry) => {
|
|
2990
|
+
return __expectNonNull(__parseEpochTimestamp(__expectNumber(entry)));
|
|
2991
|
+
});
|
|
2992
|
+
return retVal;
|
|
2993
|
+
};
|
|
2459
2994
|
const de_RecoveryPoint = (output, context) => {
|
|
2460
2995
|
return take(output, {
|
|
2461
2996
|
namespaceArn: __expectString,
|
|
@@ -2487,11 +3022,42 @@ const de_RestoreFromSnapshotResponse = (output, context) => {
|
|
|
2487
3022
|
snapshotName: __expectString,
|
|
2488
3023
|
});
|
|
2489
3024
|
};
|
|
3025
|
+
const de_RestoreTableFromRecoveryPointResponse = (output, context) => {
|
|
3026
|
+
return take(output, {
|
|
3027
|
+
tableRestoreStatus: (_) => de_TableRestoreStatus(_, context),
|
|
3028
|
+
});
|
|
3029
|
+
};
|
|
2490
3030
|
const de_RestoreTableFromSnapshotResponse = (output, context) => {
|
|
2491
3031
|
return take(output, {
|
|
2492
3032
|
tableRestoreStatus: (_) => de_TableRestoreStatus(_, context),
|
|
2493
3033
|
});
|
|
2494
3034
|
};
|
|
3035
|
+
const de_Schedule = (output, context) => {
|
|
3036
|
+
if (output.at != null) {
|
|
3037
|
+
return {
|
|
3038
|
+
at: __expectNonNull(__parseEpochTimestamp(__expectNumber(output.at))),
|
|
3039
|
+
};
|
|
3040
|
+
}
|
|
3041
|
+
if (__expectString(output.cron) !== undefined) {
|
|
3042
|
+
return { cron: __expectString(output.cron) };
|
|
3043
|
+
}
|
|
3044
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3045
|
+
};
|
|
3046
|
+
const de_ScheduledActionResponse = (output, context) => {
|
|
3047
|
+
return take(output, {
|
|
3048
|
+
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3049
|
+
namespaceName: __expectString,
|
|
3050
|
+
nextInvocations: (_) => de_NextInvocationsList(_, context),
|
|
3051
|
+
roleArn: __expectString,
|
|
3052
|
+
schedule: (_) => de_Schedule(__expectUnion(_), context),
|
|
3053
|
+
scheduledActionDescription: __expectString,
|
|
3054
|
+
scheduledActionName: __expectString,
|
|
3055
|
+
scheduledActionUuid: __expectString,
|
|
3056
|
+
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3057
|
+
state: __expectString,
|
|
3058
|
+
targetAction: (_) => _json(__expectUnion(_)),
|
|
3059
|
+
});
|
|
3060
|
+
};
|
|
2495
3061
|
const de_Snapshot = (output, context) => {
|
|
2496
3062
|
return take(output, {
|
|
2497
3063
|
accountsWithProvisionedRestoreAccess: _json,
|
|
@@ -2532,6 +3098,7 @@ const de_TableRestoreStatus = (output, context) => {
|
|
|
2532
3098
|
namespaceName: __expectString,
|
|
2533
3099
|
newTableName: __expectString,
|
|
2534
3100
|
progressInMegaBytes: __expectLong,
|
|
3101
|
+
recoveryPointId: __expectString,
|
|
2535
3102
|
requestTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2536
3103
|
snapshotName: __expectString,
|
|
2537
3104
|
sourceDatabaseName: __expectString,
|
|
@@ -2571,6 +3138,11 @@ const de_UpdateNamespaceResponse = (output, context) => {
|
|
|
2571
3138
|
namespace: (_) => de_Namespace(_, context),
|
|
2572
3139
|
});
|
|
2573
3140
|
};
|
|
3141
|
+
const de_UpdateScheduledActionResponse = (output, context) => {
|
|
3142
|
+
return take(output, {
|
|
3143
|
+
scheduledAction: (_) => de_ScheduledActionResponse(_, context),
|
|
3144
|
+
});
|
|
3145
|
+
};
|
|
2574
3146
|
const de_UpdateSnapshotResponse = (output, context) => {
|
|
2575
3147
|
return take(output, {
|
|
2576
3148
|
snapshot: (_) => de_Snapshot(_, context),
|
|
@@ -2586,6 +3158,7 @@ const de_Workgroup = (output, context) => {
|
|
|
2586
3158
|
baseCapacity: __expectInt32,
|
|
2587
3159
|
configParameters: _json,
|
|
2588
3160
|
creationDate: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
3161
|
+
crossAccountVpcs: _json,
|
|
2589
3162
|
customDomainCertificateArn: __expectString,
|
|
2590
3163
|
customDomainCertificateExpiryTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2591
3164
|
customDomainName: __expectString,
|