@aws-sdk/client-redshift-serverless 3.462.0 → 3.465.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 +14 -16
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.se_UpdateNamespaceCommand = exports.se_UpdateEndpointAccessCommand = exports.se_UpdateCustomDomainAssociationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RestoreTableFromSnapshotCommand = exports.se_RestoreTableFromRecoveryPointCommand = exports.se_RestoreFromSnapshotCommand = exports.se_RestoreFromRecoveryPointCommand = exports.se_PutResourcePolicyCommand = exports.se_ListWorkgroupsCommand = exports.se_ListUsageLimitsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListTableRestoreStatusCommand = exports.se_ListSnapshotsCommand = exports.se_ListSnapshotCopyConfigurationsCommand = exports.se_ListScheduledActionsCommand = exports.se_ListRecoveryPointsCommand = exports.se_ListNamespacesCommand = exports.se_ListEndpointAccessCommand = exports.se_ListCustomDomainAssociationsCommand = exports.se_GetWorkgroupCommand = exports.se_GetUsageLimitCommand = exports.se_GetTableRestoreStatusCommand = exports.se_GetSnapshotCommand = exports.se_GetScheduledActionCommand = exports.se_GetResourcePolicyCommand = exports.se_GetRecoveryPointCommand = exports.se_GetNamespaceCommand = exports.se_GetEndpointAccessCommand = exports.se_GetCustomDomainAssociationCommand = exports.se_GetCredentialsCommand = exports.se_DeleteWorkgroupCommand = exports.se_DeleteUsageLimitCommand = exports.se_DeleteSnapshotCopyConfigurationCommand = exports.se_DeleteSnapshotCommand = exports.se_DeleteScheduledActionCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteNamespaceCommand = exports.se_DeleteEndpointAccessCommand = exports.se_DeleteCustomDomainAssociationCommand = exports.se_CreateWorkgroupCommand = exports.se_CreateUsageLimitCommand = exports.se_CreateSnapshotCopyConfigurationCommand = exports.se_CreateSnapshotCommand = exports.se_CreateScheduledActionCommand = exports.se_CreateNamespaceCommand = exports.se_CreateEndpointAccessCommand = exports.se_CreateCustomDomainAssociationCommand = exports.se_ConvertRecoveryPointToSnapshotCommand = void 0;
|
|
4
|
+
exports.de_RestoreTableFromSnapshotCommand = exports.de_RestoreTableFromRecoveryPointCommand = exports.de_RestoreFromSnapshotCommand = exports.de_RestoreFromRecoveryPointCommand = exports.de_PutResourcePolicyCommand = exports.de_ListWorkgroupsCommand = exports.de_ListUsageLimitsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListTableRestoreStatusCommand = exports.de_ListSnapshotsCommand = exports.de_ListSnapshotCopyConfigurationsCommand = exports.de_ListScheduledActionsCommand = exports.de_ListRecoveryPointsCommand = exports.de_ListNamespacesCommand = exports.de_ListEndpointAccessCommand = exports.de_ListCustomDomainAssociationsCommand = exports.de_GetWorkgroupCommand = exports.de_GetUsageLimitCommand = exports.de_GetTableRestoreStatusCommand = exports.de_GetSnapshotCommand = exports.de_GetScheduledActionCommand = exports.de_GetResourcePolicyCommand = exports.de_GetRecoveryPointCommand = exports.de_GetNamespaceCommand = exports.de_GetEndpointAccessCommand = exports.de_GetCustomDomainAssociationCommand = exports.de_GetCredentialsCommand = exports.de_DeleteWorkgroupCommand = exports.de_DeleteUsageLimitCommand = exports.de_DeleteSnapshotCopyConfigurationCommand = exports.de_DeleteSnapshotCommand = exports.de_DeleteScheduledActionCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteNamespaceCommand = exports.de_DeleteEndpointAccessCommand = exports.de_DeleteCustomDomainAssociationCommand = exports.de_CreateWorkgroupCommand = exports.de_CreateUsageLimitCommand = exports.de_CreateSnapshotCopyConfigurationCommand = exports.de_CreateSnapshotCommand = exports.de_CreateScheduledActionCommand = exports.de_CreateNamespaceCommand = exports.de_CreateEndpointAccessCommand = exports.de_CreateCustomDomainAssociationCommand = exports.de_ConvertRecoveryPointToSnapshotCommand = exports.se_UpdateWorkgroupCommand = exports.se_UpdateUsageLimitCommand = exports.se_UpdateSnapshotCopyConfigurationCommand = exports.se_UpdateSnapshotCommand = exports.se_UpdateScheduledActionCommand = void 0;
|
|
5
|
+
exports.de_UpdateWorkgroupCommand = exports.de_UpdateUsageLimitCommand = exports.de_UpdateSnapshotCopyConfigurationCommand = exports.de_UpdateSnapshotCommand = exports.de_UpdateScheduledActionCommand = exports.de_UpdateNamespaceCommand = exports.de_UpdateEndpointAccessCommand = exports.de_UpdateCustomDomainAssociationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = void 0;
|
|
6
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
9
|
const models_0_1 = require("../models/models_0");
|
|
@@ -34,6 +36,13 @@ const se_CreateNamespaceCommand = async (input, context) => {
|
|
|
34
36
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
37
|
};
|
|
36
38
|
exports.se_CreateNamespaceCommand = se_CreateNamespaceCommand;
|
|
39
|
+
const se_CreateScheduledActionCommand = async (input, context) => {
|
|
40
|
+
const headers = sharedHeaders("CreateScheduledAction");
|
|
41
|
+
let body;
|
|
42
|
+
body = JSON.stringify(se_CreateScheduledActionRequest(input, context));
|
|
43
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
44
|
+
};
|
|
45
|
+
exports.se_CreateScheduledActionCommand = se_CreateScheduledActionCommand;
|
|
37
46
|
const se_CreateSnapshotCommand = async (input, context) => {
|
|
38
47
|
const headers = sharedHeaders("CreateSnapshot");
|
|
39
48
|
let body;
|
|
@@ -41,6 +50,13 @@ const se_CreateSnapshotCommand = async (input, context) => {
|
|
|
41
50
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
51
|
};
|
|
43
52
|
exports.se_CreateSnapshotCommand = se_CreateSnapshotCommand;
|
|
53
|
+
const se_CreateSnapshotCopyConfigurationCommand = async (input, context) => {
|
|
54
|
+
const headers = sharedHeaders("CreateSnapshotCopyConfiguration");
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
57
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
+
};
|
|
59
|
+
exports.se_CreateSnapshotCopyConfigurationCommand = se_CreateSnapshotCopyConfigurationCommand;
|
|
44
60
|
const se_CreateUsageLimitCommand = async (input, context) => {
|
|
45
61
|
const headers = sharedHeaders("CreateUsageLimit");
|
|
46
62
|
let body;
|
|
@@ -83,6 +99,13 @@ const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
|
83
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
100
|
};
|
|
85
101
|
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
102
|
+
const se_DeleteScheduledActionCommand = async (input, context) => {
|
|
103
|
+
const headers = sharedHeaders("DeleteScheduledAction");
|
|
104
|
+
let body;
|
|
105
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
+
};
|
|
108
|
+
exports.se_DeleteScheduledActionCommand = se_DeleteScheduledActionCommand;
|
|
86
109
|
const se_DeleteSnapshotCommand = async (input, context) => {
|
|
87
110
|
const headers = sharedHeaders("DeleteSnapshot");
|
|
88
111
|
let body;
|
|
@@ -90,6 +113,13 @@ const se_DeleteSnapshotCommand = async (input, context) => {
|
|
|
90
113
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
114
|
};
|
|
92
115
|
exports.se_DeleteSnapshotCommand = se_DeleteSnapshotCommand;
|
|
116
|
+
const se_DeleteSnapshotCopyConfigurationCommand = async (input, context) => {
|
|
117
|
+
const headers = sharedHeaders("DeleteSnapshotCopyConfiguration");
|
|
118
|
+
let body;
|
|
119
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
120
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
+
};
|
|
122
|
+
exports.se_DeleteSnapshotCopyConfigurationCommand = se_DeleteSnapshotCopyConfigurationCommand;
|
|
93
123
|
const se_DeleteUsageLimitCommand = async (input, context) => {
|
|
94
124
|
const headers = sharedHeaders("DeleteUsageLimit");
|
|
95
125
|
let body;
|
|
@@ -146,6 +176,13 @@ const se_GetResourcePolicyCommand = async (input, context) => {
|
|
|
146
176
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
177
|
};
|
|
148
178
|
exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
|
|
179
|
+
const se_GetScheduledActionCommand = async (input, context) => {
|
|
180
|
+
const headers = sharedHeaders("GetScheduledAction");
|
|
181
|
+
let body;
|
|
182
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
183
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
+
};
|
|
185
|
+
exports.se_GetScheduledActionCommand = se_GetScheduledActionCommand;
|
|
149
186
|
const se_GetSnapshotCommand = async (input, context) => {
|
|
150
187
|
const headers = sharedHeaders("GetSnapshot");
|
|
151
188
|
let body;
|
|
@@ -202,6 +239,20 @@ const se_ListRecoveryPointsCommand = async (input, context) => {
|
|
|
202
239
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
240
|
};
|
|
204
241
|
exports.se_ListRecoveryPointsCommand = se_ListRecoveryPointsCommand;
|
|
242
|
+
const se_ListScheduledActionsCommand = async (input, context) => {
|
|
243
|
+
const headers = sharedHeaders("ListScheduledActions");
|
|
244
|
+
let body;
|
|
245
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
+
};
|
|
248
|
+
exports.se_ListScheduledActionsCommand = se_ListScheduledActionsCommand;
|
|
249
|
+
const se_ListSnapshotCopyConfigurationsCommand = async (input, context) => {
|
|
250
|
+
const headers = sharedHeaders("ListSnapshotCopyConfigurations");
|
|
251
|
+
let body;
|
|
252
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
253
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
254
|
+
};
|
|
255
|
+
exports.se_ListSnapshotCopyConfigurationsCommand = se_ListSnapshotCopyConfigurationsCommand;
|
|
205
256
|
const se_ListSnapshotsCommand = async (input, context) => {
|
|
206
257
|
const headers = sharedHeaders("ListSnapshots");
|
|
207
258
|
let body;
|
|
@@ -258,6 +309,13 @@ const se_RestoreFromSnapshotCommand = async (input, context) => {
|
|
|
258
309
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
259
310
|
};
|
|
260
311
|
exports.se_RestoreFromSnapshotCommand = se_RestoreFromSnapshotCommand;
|
|
312
|
+
const se_RestoreTableFromRecoveryPointCommand = async (input, context) => {
|
|
313
|
+
const headers = sharedHeaders("RestoreTableFromRecoveryPoint");
|
|
314
|
+
let body;
|
|
315
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
+
};
|
|
318
|
+
exports.se_RestoreTableFromRecoveryPointCommand = se_RestoreTableFromRecoveryPointCommand;
|
|
261
319
|
const se_RestoreTableFromSnapshotCommand = async (input, context) => {
|
|
262
320
|
const headers = sharedHeaders("RestoreTableFromSnapshot");
|
|
263
321
|
let body;
|
|
@@ -300,6 +358,13 @@ const se_UpdateNamespaceCommand = async (input, context) => {
|
|
|
300
358
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
359
|
};
|
|
302
360
|
exports.se_UpdateNamespaceCommand = se_UpdateNamespaceCommand;
|
|
361
|
+
const se_UpdateScheduledActionCommand = async (input, context) => {
|
|
362
|
+
const headers = sharedHeaders("UpdateScheduledAction");
|
|
363
|
+
let body;
|
|
364
|
+
body = JSON.stringify(se_UpdateScheduledActionRequest(input, context));
|
|
365
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
|
+
};
|
|
367
|
+
exports.se_UpdateScheduledActionCommand = se_UpdateScheduledActionCommand;
|
|
303
368
|
const se_UpdateSnapshotCommand = async (input, context) => {
|
|
304
369
|
const headers = sharedHeaders("UpdateSnapshot");
|
|
305
370
|
let body;
|
|
@@ -307,6 +372,13 @@ const se_UpdateSnapshotCommand = async (input, context) => {
|
|
|
307
372
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
308
373
|
};
|
|
309
374
|
exports.se_UpdateSnapshotCommand = se_UpdateSnapshotCommand;
|
|
375
|
+
const se_UpdateSnapshotCopyConfigurationCommand = async (input, context) => {
|
|
376
|
+
const headers = sharedHeaders("UpdateSnapshotCopyConfiguration");
|
|
377
|
+
let body;
|
|
378
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
379
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
380
|
+
};
|
|
381
|
+
exports.se_UpdateSnapshotCopyConfigurationCommand = se_UpdateSnapshotCopyConfigurationCommand;
|
|
310
382
|
const se_UpdateUsageLimitCommand = async (input, context) => {
|
|
311
383
|
const headers = sharedHeaders("UpdateUsageLimit");
|
|
312
384
|
let body;
|
|
@@ -507,6 +579,48 @@ const de_CreateNamespaceCommandError = async (output, context) => {
|
|
|
507
579
|
});
|
|
508
580
|
}
|
|
509
581
|
};
|
|
582
|
+
const de_CreateScheduledActionCommand = async (output, context) => {
|
|
583
|
+
if (output.statusCode >= 300) {
|
|
584
|
+
return de_CreateScheduledActionCommandError(output, context);
|
|
585
|
+
}
|
|
586
|
+
const data = await parseBody(output.body, context);
|
|
587
|
+
let contents = {};
|
|
588
|
+
contents = de_CreateScheduledActionResponse(data, context);
|
|
589
|
+
const response = {
|
|
590
|
+
$metadata: deserializeMetadata(output),
|
|
591
|
+
...contents,
|
|
592
|
+
};
|
|
593
|
+
return response;
|
|
594
|
+
};
|
|
595
|
+
exports.de_CreateScheduledActionCommand = de_CreateScheduledActionCommand;
|
|
596
|
+
const de_CreateScheduledActionCommandError = async (output, context) => {
|
|
597
|
+
const parsedOutput = {
|
|
598
|
+
...output,
|
|
599
|
+
body: await parseErrorBody(output.body, context),
|
|
600
|
+
};
|
|
601
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
|
+
switch (errorCode) {
|
|
603
|
+
case "ConflictException":
|
|
604
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
605
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
606
|
+
case "InternalServerException":
|
|
607
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
608
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
609
|
+
case "ResourceNotFoundException":
|
|
610
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
611
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
612
|
+
case "ValidationException":
|
|
613
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
614
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
615
|
+
default:
|
|
616
|
+
const parsedBody = parsedOutput.body;
|
|
617
|
+
return throwDefaultError({
|
|
618
|
+
output,
|
|
619
|
+
parsedBody,
|
|
620
|
+
errorCode,
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
};
|
|
510
624
|
const de_CreateSnapshotCommand = async (output, context) => {
|
|
511
625
|
if (output.statusCode >= 300) {
|
|
512
626
|
return de_CreateSnapshotCommandError(output, context);
|
|
@@ -555,6 +669,54 @@ const de_CreateSnapshotCommandError = async (output, context) => {
|
|
|
555
669
|
});
|
|
556
670
|
}
|
|
557
671
|
};
|
|
672
|
+
const de_CreateSnapshotCopyConfigurationCommand = async (output, context) => {
|
|
673
|
+
if (output.statusCode >= 300) {
|
|
674
|
+
return de_CreateSnapshotCopyConfigurationCommandError(output, context);
|
|
675
|
+
}
|
|
676
|
+
const data = await parseBody(output.body, context);
|
|
677
|
+
let contents = {};
|
|
678
|
+
contents = (0, smithy_client_1._json)(data);
|
|
679
|
+
const response = {
|
|
680
|
+
$metadata: deserializeMetadata(output),
|
|
681
|
+
...contents,
|
|
682
|
+
};
|
|
683
|
+
return response;
|
|
684
|
+
};
|
|
685
|
+
exports.de_CreateSnapshotCopyConfigurationCommand = de_CreateSnapshotCopyConfigurationCommand;
|
|
686
|
+
const de_CreateSnapshotCopyConfigurationCommandError = async (output, context) => {
|
|
687
|
+
const parsedOutput = {
|
|
688
|
+
...output,
|
|
689
|
+
body: await parseErrorBody(output.body, context),
|
|
690
|
+
};
|
|
691
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
|
+
switch (errorCode) {
|
|
693
|
+
case "AccessDeniedException":
|
|
694
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
695
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
696
|
+
case "ConflictException":
|
|
697
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
698
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
699
|
+
case "InternalServerException":
|
|
700
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
701
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
702
|
+
case "ResourceNotFoundException":
|
|
703
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
704
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
705
|
+
case "ServiceQuotaExceededException":
|
|
706
|
+
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
707
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
708
|
+
case "ValidationException":
|
|
709
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
710
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
711
|
+
default:
|
|
712
|
+
const parsedBody = parsedOutput.body;
|
|
713
|
+
return throwDefaultError({
|
|
714
|
+
output,
|
|
715
|
+
parsedBody,
|
|
716
|
+
errorCode,
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
};
|
|
558
720
|
const de_CreateUsageLimitCommand = async (output, context) => {
|
|
559
721
|
if (output.statusCode >= 300) {
|
|
560
722
|
return de_CreateUsageLimitCommandError(output, context);
|
|
@@ -819,6 +981,45 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
819
981
|
});
|
|
820
982
|
}
|
|
821
983
|
};
|
|
984
|
+
const de_DeleteScheduledActionCommand = async (output, context) => {
|
|
985
|
+
if (output.statusCode >= 300) {
|
|
986
|
+
return de_DeleteScheduledActionCommandError(output, context);
|
|
987
|
+
}
|
|
988
|
+
const data = await parseBody(output.body, context);
|
|
989
|
+
let contents = {};
|
|
990
|
+
contents = de_DeleteScheduledActionResponse(data, context);
|
|
991
|
+
const response = {
|
|
992
|
+
$metadata: deserializeMetadata(output),
|
|
993
|
+
...contents,
|
|
994
|
+
};
|
|
995
|
+
return response;
|
|
996
|
+
};
|
|
997
|
+
exports.de_DeleteScheduledActionCommand = de_DeleteScheduledActionCommand;
|
|
998
|
+
const de_DeleteScheduledActionCommandError = async (output, context) => {
|
|
999
|
+
const parsedOutput = {
|
|
1000
|
+
...output,
|
|
1001
|
+
body: await parseErrorBody(output.body, context),
|
|
1002
|
+
};
|
|
1003
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
+
switch (errorCode) {
|
|
1005
|
+
case "InternalServerException":
|
|
1006
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1007
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1008
|
+
case "ResourceNotFoundException":
|
|
1009
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1010
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1011
|
+
case "ValidationException":
|
|
1012
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1013
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1014
|
+
default:
|
|
1015
|
+
const parsedBody = parsedOutput.body;
|
|
1016
|
+
return throwDefaultError({
|
|
1017
|
+
output,
|
|
1018
|
+
parsedBody,
|
|
1019
|
+
errorCode,
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
1022
|
+
};
|
|
822
1023
|
const de_DeleteSnapshotCommand = async (output, context) => {
|
|
823
1024
|
if (output.statusCode >= 300) {
|
|
824
1025
|
return de_DeleteSnapshotCommandError(output, context);
|
|
@@ -861,6 +1062,51 @@ const de_DeleteSnapshotCommandError = async (output, context) => {
|
|
|
861
1062
|
});
|
|
862
1063
|
}
|
|
863
1064
|
};
|
|
1065
|
+
const de_DeleteSnapshotCopyConfigurationCommand = async (output, context) => {
|
|
1066
|
+
if (output.statusCode >= 300) {
|
|
1067
|
+
return de_DeleteSnapshotCopyConfigurationCommandError(output, context);
|
|
1068
|
+
}
|
|
1069
|
+
const data = await parseBody(output.body, context);
|
|
1070
|
+
let contents = {};
|
|
1071
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1072
|
+
const response = {
|
|
1073
|
+
$metadata: deserializeMetadata(output),
|
|
1074
|
+
...contents,
|
|
1075
|
+
};
|
|
1076
|
+
return response;
|
|
1077
|
+
};
|
|
1078
|
+
exports.de_DeleteSnapshotCopyConfigurationCommand = de_DeleteSnapshotCopyConfigurationCommand;
|
|
1079
|
+
const de_DeleteSnapshotCopyConfigurationCommandError = async (output, context) => {
|
|
1080
|
+
const parsedOutput = {
|
|
1081
|
+
...output,
|
|
1082
|
+
body: await parseErrorBody(output.body, context),
|
|
1083
|
+
};
|
|
1084
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1085
|
+
switch (errorCode) {
|
|
1086
|
+
case "AccessDeniedException":
|
|
1087
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1088
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1089
|
+
case "ConflictException":
|
|
1090
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1091
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1092
|
+
case "InternalServerException":
|
|
1093
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1094
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1095
|
+
case "ResourceNotFoundException":
|
|
1096
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1097
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1098
|
+
case "ValidationException":
|
|
1099
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1100
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1101
|
+
default:
|
|
1102
|
+
const parsedBody = parsedOutput.body;
|
|
1103
|
+
return throwDefaultError({
|
|
1104
|
+
output,
|
|
1105
|
+
parsedBody,
|
|
1106
|
+
errorCode,
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
};
|
|
864
1110
|
const de_DeleteUsageLimitCommand = async (output, context) => {
|
|
865
1111
|
if (output.statusCode >= 300) {
|
|
866
1112
|
return de_DeleteUsageLimitCommandError(output, context);
|
|
@@ -1194,6 +1440,45 @@ const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
|
1194
1440
|
});
|
|
1195
1441
|
}
|
|
1196
1442
|
};
|
|
1443
|
+
const de_GetScheduledActionCommand = async (output, context) => {
|
|
1444
|
+
if (output.statusCode >= 300) {
|
|
1445
|
+
return de_GetScheduledActionCommandError(output, context);
|
|
1446
|
+
}
|
|
1447
|
+
const data = await parseBody(output.body, context);
|
|
1448
|
+
let contents = {};
|
|
1449
|
+
contents = de_GetScheduledActionResponse(data, context);
|
|
1450
|
+
const response = {
|
|
1451
|
+
$metadata: deserializeMetadata(output),
|
|
1452
|
+
...contents,
|
|
1453
|
+
};
|
|
1454
|
+
return response;
|
|
1455
|
+
};
|
|
1456
|
+
exports.de_GetScheduledActionCommand = de_GetScheduledActionCommand;
|
|
1457
|
+
const de_GetScheduledActionCommandError = async (output, context) => {
|
|
1458
|
+
const parsedOutput = {
|
|
1459
|
+
...output,
|
|
1460
|
+
body: await parseErrorBody(output.body, context),
|
|
1461
|
+
};
|
|
1462
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1463
|
+
switch (errorCode) {
|
|
1464
|
+
case "InternalServerException":
|
|
1465
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1466
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1467
|
+
case "ResourceNotFoundException":
|
|
1468
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1469
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1470
|
+
case "ValidationException":
|
|
1471
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1472
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1473
|
+
default:
|
|
1474
|
+
const parsedBody = parsedOutput.body;
|
|
1475
|
+
return throwDefaultError({
|
|
1476
|
+
output,
|
|
1477
|
+
parsedBody,
|
|
1478
|
+
errorCode,
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
};
|
|
1197
1482
|
const de_GetSnapshotCommand = async (output, context) => {
|
|
1198
1483
|
if (output.statusCode >= 300) {
|
|
1199
1484
|
return de_GetSnapshotCommandError(output, context);
|
|
@@ -1509,6 +1794,93 @@ const de_ListRecoveryPointsCommandError = async (output, context) => {
|
|
|
1509
1794
|
});
|
|
1510
1795
|
}
|
|
1511
1796
|
};
|
|
1797
|
+
const de_ListScheduledActionsCommand = async (output, context) => {
|
|
1798
|
+
if (output.statusCode >= 300) {
|
|
1799
|
+
return de_ListScheduledActionsCommandError(output, context);
|
|
1800
|
+
}
|
|
1801
|
+
const data = await parseBody(output.body, context);
|
|
1802
|
+
let contents = {};
|
|
1803
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1804
|
+
const response = {
|
|
1805
|
+
$metadata: deserializeMetadata(output),
|
|
1806
|
+
...contents,
|
|
1807
|
+
};
|
|
1808
|
+
return response;
|
|
1809
|
+
};
|
|
1810
|
+
exports.de_ListScheduledActionsCommand = de_ListScheduledActionsCommand;
|
|
1811
|
+
const de_ListScheduledActionsCommandError = async (output, context) => {
|
|
1812
|
+
const parsedOutput = {
|
|
1813
|
+
...output,
|
|
1814
|
+
body: await parseErrorBody(output.body, context),
|
|
1815
|
+
};
|
|
1816
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1817
|
+
switch (errorCode) {
|
|
1818
|
+
case "InternalServerException":
|
|
1819
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1820
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1821
|
+
case "InvalidPaginationException":
|
|
1822
|
+
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1823
|
+
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
1824
|
+
case "ResourceNotFoundException":
|
|
1825
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1826
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1827
|
+
case "ValidationException":
|
|
1828
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1829
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1830
|
+
default:
|
|
1831
|
+
const parsedBody = parsedOutput.body;
|
|
1832
|
+
return throwDefaultError({
|
|
1833
|
+
output,
|
|
1834
|
+
parsedBody,
|
|
1835
|
+
errorCode,
|
|
1836
|
+
});
|
|
1837
|
+
}
|
|
1838
|
+
};
|
|
1839
|
+
const de_ListSnapshotCopyConfigurationsCommand = async (output, context) => {
|
|
1840
|
+
if (output.statusCode >= 300) {
|
|
1841
|
+
return de_ListSnapshotCopyConfigurationsCommandError(output, context);
|
|
1842
|
+
}
|
|
1843
|
+
const data = await parseBody(output.body, context);
|
|
1844
|
+
let contents = {};
|
|
1845
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1846
|
+
const response = {
|
|
1847
|
+
$metadata: deserializeMetadata(output),
|
|
1848
|
+
...contents,
|
|
1849
|
+
};
|
|
1850
|
+
return response;
|
|
1851
|
+
};
|
|
1852
|
+
exports.de_ListSnapshotCopyConfigurationsCommand = de_ListSnapshotCopyConfigurationsCommand;
|
|
1853
|
+
const de_ListSnapshotCopyConfigurationsCommandError = async (output, context) => {
|
|
1854
|
+
const parsedOutput = {
|
|
1855
|
+
...output,
|
|
1856
|
+
body: await parseErrorBody(output.body, context),
|
|
1857
|
+
};
|
|
1858
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1859
|
+
switch (errorCode) {
|
|
1860
|
+
case "ConflictException":
|
|
1861
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1862
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1863
|
+
case "InternalServerException":
|
|
1864
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1865
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1866
|
+
case "InvalidPaginationException":
|
|
1867
|
+
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1868
|
+
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
1869
|
+
case "ResourceNotFoundException":
|
|
1870
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1871
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1872
|
+
case "ValidationException":
|
|
1873
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1874
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1875
|
+
default:
|
|
1876
|
+
const parsedBody = parsedOutput.body;
|
|
1877
|
+
return throwDefaultError({
|
|
1878
|
+
output,
|
|
1879
|
+
parsedBody,
|
|
1880
|
+
errorCode,
|
|
1881
|
+
});
|
|
1882
|
+
}
|
|
1883
|
+
};
|
|
1512
1884
|
const de_ListSnapshotsCommand = async (output, context) => {
|
|
1513
1885
|
if (output.statusCode >= 300) {
|
|
1514
1886
|
return de_ListSnapshotsCommandError(output, context);
|
|
@@ -1842,6 +2214,48 @@ const de_RestoreFromSnapshotCommandError = async (output, context) => {
|
|
|
1842
2214
|
});
|
|
1843
2215
|
}
|
|
1844
2216
|
};
|
|
2217
|
+
const de_RestoreTableFromRecoveryPointCommand = async (output, context) => {
|
|
2218
|
+
if (output.statusCode >= 300) {
|
|
2219
|
+
return de_RestoreTableFromRecoveryPointCommandError(output, context);
|
|
2220
|
+
}
|
|
2221
|
+
const data = await parseBody(output.body, context);
|
|
2222
|
+
let contents = {};
|
|
2223
|
+
contents = de_RestoreTableFromRecoveryPointResponse(data, context);
|
|
2224
|
+
const response = {
|
|
2225
|
+
$metadata: deserializeMetadata(output),
|
|
2226
|
+
...contents,
|
|
2227
|
+
};
|
|
2228
|
+
return response;
|
|
2229
|
+
};
|
|
2230
|
+
exports.de_RestoreTableFromRecoveryPointCommand = de_RestoreTableFromRecoveryPointCommand;
|
|
2231
|
+
const de_RestoreTableFromRecoveryPointCommandError = async (output, context) => {
|
|
2232
|
+
const parsedOutput = {
|
|
2233
|
+
...output,
|
|
2234
|
+
body: await parseErrorBody(output.body, context),
|
|
2235
|
+
};
|
|
2236
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2237
|
+
switch (errorCode) {
|
|
2238
|
+
case "ConflictException":
|
|
2239
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2240
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2241
|
+
case "InternalServerException":
|
|
2242
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2243
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2244
|
+
case "ResourceNotFoundException":
|
|
2245
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2246
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2247
|
+
case "ValidationException":
|
|
2248
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2249
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2250
|
+
default:
|
|
2251
|
+
const parsedBody = parsedOutput.body;
|
|
2252
|
+
return throwDefaultError({
|
|
2253
|
+
output,
|
|
2254
|
+
parsedBody,
|
|
2255
|
+
errorCode,
|
|
2256
|
+
});
|
|
2257
|
+
}
|
|
2258
|
+
};
|
|
1845
2259
|
const de_RestoreTableFromSnapshotCommand = async (output, context) => {
|
|
1846
2260
|
if (output.statusCode >= 300) {
|
|
1847
2261
|
return de_RestoreTableFromSnapshotCommandError(output, context);
|
|
@@ -2106,6 +2520,48 @@ const de_UpdateNamespaceCommandError = async (output, context) => {
|
|
|
2106
2520
|
});
|
|
2107
2521
|
}
|
|
2108
2522
|
};
|
|
2523
|
+
const de_UpdateScheduledActionCommand = async (output, context) => {
|
|
2524
|
+
if (output.statusCode >= 300) {
|
|
2525
|
+
return de_UpdateScheduledActionCommandError(output, context);
|
|
2526
|
+
}
|
|
2527
|
+
const data = await parseBody(output.body, context);
|
|
2528
|
+
let contents = {};
|
|
2529
|
+
contents = de_UpdateScheduledActionResponse(data, context);
|
|
2530
|
+
const response = {
|
|
2531
|
+
$metadata: deserializeMetadata(output),
|
|
2532
|
+
...contents,
|
|
2533
|
+
};
|
|
2534
|
+
return response;
|
|
2535
|
+
};
|
|
2536
|
+
exports.de_UpdateScheduledActionCommand = de_UpdateScheduledActionCommand;
|
|
2537
|
+
const de_UpdateScheduledActionCommandError = async (output, context) => {
|
|
2538
|
+
const parsedOutput = {
|
|
2539
|
+
...output,
|
|
2540
|
+
body: await parseErrorBody(output.body, context),
|
|
2541
|
+
};
|
|
2542
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2543
|
+
switch (errorCode) {
|
|
2544
|
+
case "ConflictException":
|
|
2545
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2546
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2547
|
+
case "InternalServerException":
|
|
2548
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2549
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2550
|
+
case "ResourceNotFoundException":
|
|
2551
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2552
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2553
|
+
case "ValidationException":
|
|
2554
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2555
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2556
|
+
default:
|
|
2557
|
+
const parsedBody = parsedOutput.body;
|
|
2558
|
+
return throwDefaultError({
|
|
2559
|
+
output,
|
|
2560
|
+
parsedBody,
|
|
2561
|
+
errorCode,
|
|
2562
|
+
});
|
|
2563
|
+
}
|
|
2564
|
+
};
|
|
2109
2565
|
const de_UpdateSnapshotCommand = async (output, context) => {
|
|
2110
2566
|
if (output.statusCode >= 300) {
|
|
2111
2567
|
return de_UpdateSnapshotCommandError(output, context);
|
|
@@ -2148,6 +2604,51 @@ const de_UpdateSnapshotCommandError = async (output, context) => {
|
|
|
2148
2604
|
});
|
|
2149
2605
|
}
|
|
2150
2606
|
};
|
|
2607
|
+
const de_UpdateSnapshotCopyConfigurationCommand = async (output, context) => {
|
|
2608
|
+
if (output.statusCode >= 300) {
|
|
2609
|
+
return de_UpdateSnapshotCopyConfigurationCommandError(output, context);
|
|
2610
|
+
}
|
|
2611
|
+
const data = await parseBody(output.body, context);
|
|
2612
|
+
let contents = {};
|
|
2613
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2614
|
+
const response = {
|
|
2615
|
+
$metadata: deserializeMetadata(output),
|
|
2616
|
+
...contents,
|
|
2617
|
+
};
|
|
2618
|
+
return response;
|
|
2619
|
+
};
|
|
2620
|
+
exports.de_UpdateSnapshotCopyConfigurationCommand = de_UpdateSnapshotCopyConfigurationCommand;
|
|
2621
|
+
const de_UpdateSnapshotCopyConfigurationCommandError = async (output, context) => {
|
|
2622
|
+
const parsedOutput = {
|
|
2623
|
+
...output,
|
|
2624
|
+
body: await parseErrorBody(output.body, context),
|
|
2625
|
+
};
|
|
2626
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2627
|
+
switch (errorCode) {
|
|
2628
|
+
case "AccessDeniedException":
|
|
2629
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
2630
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2631
|
+
case "ConflictException":
|
|
2632
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2633
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2634
|
+
case "InternalServerException":
|
|
2635
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2636
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2637
|
+
case "ResourceNotFoundException":
|
|
2638
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2639
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2640
|
+
case "ValidationException":
|
|
2641
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2642
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2643
|
+
default:
|
|
2644
|
+
const parsedBody = parsedOutput.body;
|
|
2645
|
+
return throwDefaultError({
|
|
2646
|
+
output,
|
|
2647
|
+
parsedBody,
|
|
2648
|
+
errorCode,
|
|
2649
|
+
});
|
|
2650
|
+
}
|
|
2651
|
+
};
|
|
2151
2652
|
const de_UpdateUsageLimitCommand = async (output, context) => {
|
|
2152
2653
|
if (output.statusCode >= 300) {
|
|
2153
2654
|
return de_UpdateUsageLimitCommandError(output, context);
|
|
@@ -2325,6 +2826,19 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
2325
2826
|
});
|
|
2326
2827
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2327
2828
|
};
|
|
2829
|
+
const se_CreateScheduledActionRequest = (input, context) => {
|
|
2830
|
+
return (0, smithy_client_1.take)(input, {
|
|
2831
|
+
enabled: [],
|
|
2832
|
+
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
2833
|
+
namespaceName: [],
|
|
2834
|
+
roleArn: [],
|
|
2835
|
+
schedule: (_) => se_Schedule(_, context),
|
|
2836
|
+
scheduledActionDescription: [],
|
|
2837
|
+
scheduledActionName: [],
|
|
2838
|
+
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
2839
|
+
targetAction: smithy_client_1._json,
|
|
2840
|
+
});
|
|
2841
|
+
};
|
|
2328
2842
|
const se_ListRecoveryPointsRequest = (input, context) => {
|
|
2329
2843
|
return (0, smithy_client_1.take)(input, {
|
|
2330
2844
|
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
@@ -2346,6 +2860,25 @@ const se_ListSnapshotsRequest = (input, context) => {
|
|
|
2346
2860
|
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
2347
2861
|
});
|
|
2348
2862
|
};
|
|
2863
|
+
const se_Schedule = (input, context) => {
|
|
2864
|
+
return models_0_1.Schedule.visit(input, {
|
|
2865
|
+
at: (value) => ({ at: Math.round(value.getTime() / 1000) }),
|
|
2866
|
+
cron: (value) => ({ cron: value }),
|
|
2867
|
+
_: (name, value) => ({ name: value }),
|
|
2868
|
+
});
|
|
2869
|
+
};
|
|
2870
|
+
const se_UpdateScheduledActionRequest = (input, context) => {
|
|
2871
|
+
return (0, smithy_client_1.take)(input, {
|
|
2872
|
+
enabled: [],
|
|
2873
|
+
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
2874
|
+
roleArn: [],
|
|
2875
|
+
schedule: (_) => se_Schedule(_, context),
|
|
2876
|
+
scheduledActionDescription: [],
|
|
2877
|
+
scheduledActionName: [],
|
|
2878
|
+
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
2879
|
+
targetAction: smithy_client_1._json,
|
|
2880
|
+
});
|
|
2881
|
+
};
|
|
2349
2882
|
const de_Association = (output, context) => {
|
|
2350
2883
|
return (0, smithy_client_1.take)(output, {
|
|
2351
2884
|
customDomainCertificateArn: smithy_client_1.expectString,
|
|
@@ -2385,6 +2918,11 @@ const de_CreateNamespaceResponse = (output, context) => {
|
|
|
2385
2918
|
namespace: (_) => de_Namespace(_, context),
|
|
2386
2919
|
});
|
|
2387
2920
|
};
|
|
2921
|
+
const de_CreateScheduledActionResponse = (output, context) => {
|
|
2922
|
+
return (0, smithy_client_1.take)(output, {
|
|
2923
|
+
scheduledAction: (_) => de_ScheduledActionResponse(_, context),
|
|
2924
|
+
});
|
|
2925
|
+
};
|
|
2388
2926
|
const de_CreateSnapshotResponse = (output, context) => {
|
|
2389
2927
|
return (0, smithy_client_1.take)(output, {
|
|
2390
2928
|
snapshot: (_) => de_Snapshot(_, context),
|
|
@@ -2405,6 +2943,11 @@ const de_DeleteNamespaceResponse = (output, context) => {
|
|
|
2405
2943
|
namespace: (_) => de_Namespace(_, context),
|
|
2406
2944
|
});
|
|
2407
2945
|
};
|
|
2946
|
+
const de_DeleteScheduledActionResponse = (output, context) => {
|
|
2947
|
+
return (0, smithy_client_1.take)(output, {
|
|
2948
|
+
scheduledAction: (_) => de_ScheduledActionResponse(_, context),
|
|
2949
|
+
});
|
|
2950
|
+
};
|
|
2408
2951
|
const de_DeleteSnapshotResponse = (output, context) => {
|
|
2409
2952
|
return (0, smithy_client_1.take)(output, {
|
|
2410
2953
|
snapshot: (_) => de_Snapshot(_, context),
|
|
@@ -2468,6 +3011,11 @@ const de_GetRecoveryPointResponse = (output, context) => {
|
|
|
2468
3011
|
recoveryPoint: (_) => de_RecoveryPoint(_, context),
|
|
2469
3012
|
});
|
|
2470
3013
|
};
|
|
3014
|
+
const de_GetScheduledActionResponse = (output, context) => {
|
|
3015
|
+
return (0, smithy_client_1.take)(output, {
|
|
3016
|
+
scheduledAction: (_) => de_ScheduledActionResponse(_, context),
|
|
3017
|
+
});
|
|
3018
|
+
};
|
|
2471
3019
|
const de_GetSnapshotResponse = (output, context) => {
|
|
2472
3020
|
return (0, smithy_client_1.take)(output, {
|
|
2473
3021
|
snapshot: (_) => de_Snapshot(_, context),
|
|
@@ -2550,6 +3098,14 @@ const de_NamespaceList = (output, context) => {
|
|
|
2550
3098
|
});
|
|
2551
3099
|
return retVal;
|
|
2552
3100
|
};
|
|
3101
|
+
const de_NextInvocationsList = (output, context) => {
|
|
3102
|
+
const retVal = (output || [])
|
|
3103
|
+
.filter((e) => e != null)
|
|
3104
|
+
.map((entry) => {
|
|
3105
|
+
return (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(entry)));
|
|
3106
|
+
});
|
|
3107
|
+
return retVal;
|
|
3108
|
+
};
|
|
2553
3109
|
const de_RecoveryPoint = (output, context) => {
|
|
2554
3110
|
return (0, smithy_client_1.take)(output, {
|
|
2555
3111
|
namespaceArn: smithy_client_1.expectString,
|
|
@@ -2581,11 +3137,42 @@ const de_RestoreFromSnapshotResponse = (output, context) => {
|
|
|
2581
3137
|
snapshotName: smithy_client_1.expectString,
|
|
2582
3138
|
});
|
|
2583
3139
|
};
|
|
3140
|
+
const de_RestoreTableFromRecoveryPointResponse = (output, context) => {
|
|
3141
|
+
return (0, smithy_client_1.take)(output, {
|
|
3142
|
+
tableRestoreStatus: (_) => de_TableRestoreStatus(_, context),
|
|
3143
|
+
});
|
|
3144
|
+
};
|
|
2584
3145
|
const de_RestoreTableFromSnapshotResponse = (output, context) => {
|
|
2585
3146
|
return (0, smithy_client_1.take)(output, {
|
|
2586
3147
|
tableRestoreStatus: (_) => de_TableRestoreStatus(_, context),
|
|
2587
3148
|
});
|
|
2588
3149
|
};
|
|
3150
|
+
const de_Schedule = (output, context) => {
|
|
3151
|
+
if (output.at != null) {
|
|
3152
|
+
return {
|
|
3153
|
+
at: (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.at))),
|
|
3154
|
+
};
|
|
3155
|
+
}
|
|
3156
|
+
if ((0, smithy_client_1.expectString)(output.cron) !== undefined) {
|
|
3157
|
+
return { cron: (0, smithy_client_1.expectString)(output.cron) };
|
|
3158
|
+
}
|
|
3159
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3160
|
+
};
|
|
3161
|
+
const de_ScheduledActionResponse = (output, context) => {
|
|
3162
|
+
return (0, smithy_client_1.take)(output, {
|
|
3163
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3164
|
+
namespaceName: smithy_client_1.expectString,
|
|
3165
|
+
nextInvocations: (_) => de_NextInvocationsList(_, context),
|
|
3166
|
+
roleArn: smithy_client_1.expectString,
|
|
3167
|
+
schedule: (_) => de_Schedule((0, core_1.awsExpectUnion)(_), context),
|
|
3168
|
+
scheduledActionDescription: smithy_client_1.expectString,
|
|
3169
|
+
scheduledActionName: smithy_client_1.expectString,
|
|
3170
|
+
scheduledActionUuid: smithy_client_1.expectString,
|
|
3171
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3172
|
+
state: smithy_client_1.expectString,
|
|
3173
|
+
targetAction: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
3174
|
+
});
|
|
3175
|
+
};
|
|
2589
3176
|
const de_Snapshot = (output, context) => {
|
|
2590
3177
|
return (0, smithy_client_1.take)(output, {
|
|
2591
3178
|
accountsWithProvisionedRestoreAccess: smithy_client_1._json,
|
|
@@ -2626,6 +3213,7 @@ const de_TableRestoreStatus = (output, context) => {
|
|
|
2626
3213
|
namespaceName: smithy_client_1.expectString,
|
|
2627
3214
|
newTableName: smithy_client_1.expectString,
|
|
2628
3215
|
progressInMegaBytes: smithy_client_1.expectLong,
|
|
3216
|
+
recoveryPointId: smithy_client_1.expectString,
|
|
2629
3217
|
requestTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2630
3218
|
snapshotName: smithy_client_1.expectString,
|
|
2631
3219
|
sourceDatabaseName: smithy_client_1.expectString,
|
|
@@ -2665,6 +3253,11 @@ const de_UpdateNamespaceResponse = (output, context) => {
|
|
|
2665
3253
|
namespace: (_) => de_Namespace(_, context),
|
|
2666
3254
|
});
|
|
2667
3255
|
};
|
|
3256
|
+
const de_UpdateScheduledActionResponse = (output, context) => {
|
|
3257
|
+
return (0, smithy_client_1.take)(output, {
|
|
3258
|
+
scheduledAction: (_) => de_ScheduledActionResponse(_, context),
|
|
3259
|
+
});
|
|
3260
|
+
};
|
|
2668
3261
|
const de_UpdateSnapshotResponse = (output, context) => {
|
|
2669
3262
|
return (0, smithy_client_1.take)(output, {
|
|
2670
3263
|
snapshot: (_) => de_Snapshot(_, context),
|
|
@@ -2680,6 +3273,7 @@ const de_Workgroup = (output, context) => {
|
|
|
2680
3273
|
baseCapacity: smithy_client_1.expectInt32,
|
|
2681
3274
|
configParameters: smithy_client_1._json,
|
|
2682
3275
|
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3276
|
+
crossAccountVpcs: smithy_client_1._json,
|
|
2683
3277
|
customDomainCertificateArn: smithy_client_1.expectString,
|
|
2684
3278
|
customDomainCertificateExpiryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2685
3279
|
customDomainName: smithy_client_1.expectString,
|