@aws-sdk/client-redshift-serverless 3.490.0 → 3.496.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/dist-cjs/RedshiftServerless.js +1 -121
- package/dist-cjs/RedshiftServerlessClient.js +1 -43
- package/dist-cjs/commands/ConvertRecoveryPointToSnapshotCommand.js +1 -28
- package/dist-cjs/commands/CreateCustomDomainAssociationCommand.js +1 -28
- package/dist-cjs/commands/CreateEndpointAccessCommand.js +1 -28
- package/dist-cjs/commands/CreateNamespaceCommand.js +1 -29
- package/dist-cjs/commands/CreateScheduledActionCommand.js +1 -28
- package/dist-cjs/commands/CreateSnapshotCommand.js +1 -28
- package/dist-cjs/commands/CreateSnapshotCopyConfigurationCommand.js +1 -28
- package/dist-cjs/commands/CreateUsageLimitCommand.js +1 -28
- package/dist-cjs/commands/CreateWorkgroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteCustomDomainAssociationCommand.js +1 -28
- package/dist-cjs/commands/DeleteEndpointAccessCommand.js +1 -28
- package/dist-cjs/commands/DeleteNamespaceCommand.js +1 -29
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteScheduledActionCommand.js +1 -28
- package/dist-cjs/commands/DeleteSnapshotCommand.js +1 -28
- package/dist-cjs/commands/DeleteSnapshotCopyConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeleteUsageLimitCommand.js +1 -28
- package/dist-cjs/commands/DeleteWorkgroupCommand.js +1 -28
- package/dist-cjs/commands/GetCredentialsCommand.js +1 -29
- package/dist-cjs/commands/GetCustomDomainAssociationCommand.js +1 -28
- package/dist-cjs/commands/GetEndpointAccessCommand.js +1 -28
- package/dist-cjs/commands/GetNamespaceCommand.js +1 -29
- package/dist-cjs/commands/GetRecoveryPointCommand.js +1 -28
- package/dist-cjs/commands/GetResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/GetScheduledActionCommand.js +1 -28
- package/dist-cjs/commands/GetSnapshotCommand.js +1 -28
- package/dist-cjs/commands/GetTableRestoreStatusCommand.js +1 -28
- package/dist-cjs/commands/GetUsageLimitCommand.js +1 -28
- package/dist-cjs/commands/GetWorkgroupCommand.js +1 -28
- package/dist-cjs/commands/ListCustomDomainAssociationsCommand.js +1 -28
- package/dist-cjs/commands/ListEndpointAccessCommand.js +1 -28
- package/dist-cjs/commands/ListNamespacesCommand.js +1 -29
- package/dist-cjs/commands/ListRecoveryPointsCommand.js +1 -28
- package/dist-cjs/commands/ListScheduledActionsCommand.js +1 -28
- package/dist-cjs/commands/ListSnapshotCopyConfigurationsCommand.js +1 -28
- package/dist-cjs/commands/ListSnapshotsCommand.js +1 -28
- package/dist-cjs/commands/ListTableRestoreStatusCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListUsageLimitsCommand.js +1 -28
- package/dist-cjs/commands/ListWorkgroupsCommand.js +1 -28
- package/dist-cjs/commands/PutResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/RestoreFromRecoveryPointCommand.js +1 -29
- package/dist-cjs/commands/RestoreFromSnapshotCommand.js +1 -29
- package/dist-cjs/commands/RestoreTableFromRecoveryPointCommand.js +1 -28
- package/dist-cjs/commands/RestoreTableFromSnapshotCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateCustomDomainAssociationCommand.js +1 -28
- package/dist-cjs/commands/UpdateEndpointAccessCommand.js +1 -28
- package/dist-cjs/commands/UpdateNamespaceCommand.js +1 -29
- package/dist-cjs/commands/UpdateScheduledActionCommand.js +1 -28
- package/dist-cjs/commands/UpdateSnapshotCommand.js +1 -28
- package/dist-cjs/commands/UpdateSnapshotCopyConfigurationCommand.js +1 -28
- package/dist-cjs/commands/UpdateUsageLimitCommand.js +1 -28
- package/dist-cjs/commands/UpdateWorkgroupCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -58
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +4911 -11
- package/dist-cjs/models/RedshiftServerlessServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -260
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListCustomDomainAssociationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListEndpointAccessPaginator.js +1 -7
- package/dist-cjs/pagination/ListNamespacesPaginator.js +1 -7
- package/dist-cjs/pagination/ListRecoveryPointsPaginator.js +1 -7
- package/dist-cjs/pagination/ListScheduledActionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSnapshotCopyConfigurationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSnapshotsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTableRestoreStatusPaginator.js +1 -7
- package/dist-cjs/pagination/ListUsageLimitsPaginator.js +1 -7
- package/dist-cjs/pagination/ListWorkgroupsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -14
- package/dist-cjs/protocols/Aws_json1_1.js +1 -3375
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,3375 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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");
|
|
7
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const RedshiftServerlessServiceException_1 = require("../models/RedshiftServerlessServiceException");
|
|
11
|
-
const se_ConvertRecoveryPointToSnapshotCommand = async (input, context) => {
|
|
12
|
-
const headers = sharedHeaders("ConvertRecoveryPointToSnapshot");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
15
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
|
-
};
|
|
17
|
-
exports.se_ConvertRecoveryPointToSnapshotCommand = se_ConvertRecoveryPointToSnapshotCommand;
|
|
18
|
-
const se_CreateCustomDomainAssociationCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreateCustomDomainAssociation");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
exports.se_CreateCustomDomainAssociationCommand = se_CreateCustomDomainAssociationCommand;
|
|
25
|
-
const se_CreateEndpointAccessCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("CreateEndpointAccess");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
exports.se_CreateEndpointAccessCommand = se_CreateEndpointAccessCommand;
|
|
32
|
-
const se_CreateNamespaceCommand = async (input, context) => {
|
|
33
|
-
const headers = sharedHeaders("CreateNamespace");
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
|
-
};
|
|
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;
|
|
46
|
-
const se_CreateSnapshotCommand = async (input, context) => {
|
|
47
|
-
const headers = sharedHeaders("CreateSnapshot");
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
50
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
51
|
-
};
|
|
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;
|
|
60
|
-
const se_CreateUsageLimitCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("CreateUsageLimit");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
exports.se_CreateUsageLimitCommand = se_CreateUsageLimitCommand;
|
|
67
|
-
const se_CreateWorkgroupCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("CreateWorkgroup");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
exports.se_CreateWorkgroupCommand = se_CreateWorkgroupCommand;
|
|
74
|
-
const se_DeleteCustomDomainAssociationCommand = async (input, context) => {
|
|
75
|
-
const headers = sharedHeaders("DeleteCustomDomainAssociation");
|
|
76
|
-
let body;
|
|
77
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
78
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
79
|
-
};
|
|
80
|
-
exports.se_DeleteCustomDomainAssociationCommand = se_DeleteCustomDomainAssociationCommand;
|
|
81
|
-
const se_DeleteEndpointAccessCommand = async (input, context) => {
|
|
82
|
-
const headers = sharedHeaders("DeleteEndpointAccess");
|
|
83
|
-
let body;
|
|
84
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
-
};
|
|
87
|
-
exports.se_DeleteEndpointAccessCommand = se_DeleteEndpointAccessCommand;
|
|
88
|
-
const se_DeleteNamespaceCommand = async (input, context) => {
|
|
89
|
-
const headers = sharedHeaders("DeleteNamespace");
|
|
90
|
-
let body;
|
|
91
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
92
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
93
|
-
};
|
|
94
|
-
exports.se_DeleteNamespaceCommand = se_DeleteNamespaceCommand;
|
|
95
|
-
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
96
|
-
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
97
|
-
let body;
|
|
98
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
99
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
|
-
};
|
|
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;
|
|
109
|
-
const se_DeleteSnapshotCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("DeleteSnapshot");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
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;
|
|
123
|
-
const se_DeleteUsageLimitCommand = async (input, context) => {
|
|
124
|
-
const headers = sharedHeaders("DeleteUsageLimit");
|
|
125
|
-
let body;
|
|
126
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
127
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
-
};
|
|
129
|
-
exports.se_DeleteUsageLimitCommand = se_DeleteUsageLimitCommand;
|
|
130
|
-
const se_DeleteWorkgroupCommand = async (input, context) => {
|
|
131
|
-
const headers = sharedHeaders("DeleteWorkgroup");
|
|
132
|
-
let body;
|
|
133
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
134
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
|
-
};
|
|
136
|
-
exports.se_DeleteWorkgroupCommand = se_DeleteWorkgroupCommand;
|
|
137
|
-
const se_GetCredentialsCommand = async (input, context) => {
|
|
138
|
-
const headers = sharedHeaders("GetCredentials");
|
|
139
|
-
let body;
|
|
140
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
141
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
|
-
};
|
|
143
|
-
exports.se_GetCredentialsCommand = se_GetCredentialsCommand;
|
|
144
|
-
const se_GetCustomDomainAssociationCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("GetCustomDomainAssociation");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
exports.se_GetCustomDomainAssociationCommand = se_GetCustomDomainAssociationCommand;
|
|
151
|
-
const se_GetEndpointAccessCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("GetEndpointAccess");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
exports.se_GetEndpointAccessCommand = se_GetEndpointAccessCommand;
|
|
158
|
-
const se_GetNamespaceCommand = async (input, context) => {
|
|
159
|
-
const headers = sharedHeaders("GetNamespace");
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
162
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
163
|
-
};
|
|
164
|
-
exports.se_GetNamespaceCommand = se_GetNamespaceCommand;
|
|
165
|
-
const se_GetRecoveryPointCommand = async (input, context) => {
|
|
166
|
-
const headers = sharedHeaders("GetRecoveryPoint");
|
|
167
|
-
let body;
|
|
168
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
169
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
170
|
-
};
|
|
171
|
-
exports.se_GetRecoveryPointCommand = se_GetRecoveryPointCommand;
|
|
172
|
-
const se_GetResourcePolicyCommand = async (input, context) => {
|
|
173
|
-
const headers = sharedHeaders("GetResourcePolicy");
|
|
174
|
-
let body;
|
|
175
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
|
-
};
|
|
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;
|
|
186
|
-
const se_GetSnapshotCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("GetSnapshot");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
exports.se_GetSnapshotCommand = se_GetSnapshotCommand;
|
|
193
|
-
const se_GetTableRestoreStatusCommand = async (input, context) => {
|
|
194
|
-
const headers = sharedHeaders("GetTableRestoreStatus");
|
|
195
|
-
let body;
|
|
196
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
197
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
-
};
|
|
199
|
-
exports.se_GetTableRestoreStatusCommand = se_GetTableRestoreStatusCommand;
|
|
200
|
-
const se_GetUsageLimitCommand = async (input, context) => {
|
|
201
|
-
const headers = sharedHeaders("GetUsageLimit");
|
|
202
|
-
let body;
|
|
203
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
204
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
|
-
};
|
|
206
|
-
exports.se_GetUsageLimitCommand = se_GetUsageLimitCommand;
|
|
207
|
-
const se_GetWorkgroupCommand = async (input, context) => {
|
|
208
|
-
const headers = sharedHeaders("GetWorkgroup");
|
|
209
|
-
let body;
|
|
210
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
211
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
|
-
};
|
|
213
|
-
exports.se_GetWorkgroupCommand = se_GetWorkgroupCommand;
|
|
214
|
-
const se_ListCustomDomainAssociationsCommand = async (input, context) => {
|
|
215
|
-
const headers = sharedHeaders("ListCustomDomainAssociations");
|
|
216
|
-
let body;
|
|
217
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
218
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
219
|
-
};
|
|
220
|
-
exports.se_ListCustomDomainAssociationsCommand = se_ListCustomDomainAssociationsCommand;
|
|
221
|
-
const se_ListEndpointAccessCommand = async (input, context) => {
|
|
222
|
-
const headers = sharedHeaders("ListEndpointAccess");
|
|
223
|
-
let body;
|
|
224
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
225
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
|
-
};
|
|
227
|
-
exports.se_ListEndpointAccessCommand = se_ListEndpointAccessCommand;
|
|
228
|
-
const se_ListNamespacesCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("ListNamespaces");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
exports.se_ListNamespacesCommand = se_ListNamespacesCommand;
|
|
235
|
-
const se_ListRecoveryPointsCommand = async (input, context) => {
|
|
236
|
-
const headers = sharedHeaders("ListRecoveryPoints");
|
|
237
|
-
let body;
|
|
238
|
-
body = JSON.stringify(se_ListRecoveryPointsRequest(input, context));
|
|
239
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
-
};
|
|
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;
|
|
256
|
-
const se_ListSnapshotsCommand = async (input, context) => {
|
|
257
|
-
const headers = sharedHeaders("ListSnapshots");
|
|
258
|
-
let body;
|
|
259
|
-
body = JSON.stringify(se_ListSnapshotsRequest(input, context));
|
|
260
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
|
-
};
|
|
262
|
-
exports.se_ListSnapshotsCommand = se_ListSnapshotsCommand;
|
|
263
|
-
const se_ListTableRestoreStatusCommand = async (input, context) => {
|
|
264
|
-
const headers = sharedHeaders("ListTableRestoreStatus");
|
|
265
|
-
let body;
|
|
266
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
267
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
-
};
|
|
269
|
-
exports.se_ListTableRestoreStatusCommand = se_ListTableRestoreStatusCommand;
|
|
270
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
271
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
277
|
-
const se_ListUsageLimitsCommand = async (input, context) => {
|
|
278
|
-
const headers = sharedHeaders("ListUsageLimits");
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
281
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
-
};
|
|
283
|
-
exports.se_ListUsageLimitsCommand = se_ListUsageLimitsCommand;
|
|
284
|
-
const se_ListWorkgroupsCommand = async (input, context) => {
|
|
285
|
-
const headers = sharedHeaders("ListWorkgroups");
|
|
286
|
-
let body;
|
|
287
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
288
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
|
-
};
|
|
290
|
-
exports.se_ListWorkgroupsCommand = se_ListWorkgroupsCommand;
|
|
291
|
-
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
292
|
-
const headers = sharedHeaders("PutResourcePolicy");
|
|
293
|
-
let body;
|
|
294
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
295
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
296
|
-
};
|
|
297
|
-
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
298
|
-
const se_RestoreFromRecoveryPointCommand = async (input, context) => {
|
|
299
|
-
const headers = sharedHeaders("RestoreFromRecoveryPoint");
|
|
300
|
-
let body;
|
|
301
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
302
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
303
|
-
};
|
|
304
|
-
exports.se_RestoreFromRecoveryPointCommand = se_RestoreFromRecoveryPointCommand;
|
|
305
|
-
const se_RestoreFromSnapshotCommand = async (input, context) => {
|
|
306
|
-
const headers = sharedHeaders("RestoreFromSnapshot");
|
|
307
|
-
let body;
|
|
308
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
309
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
-
};
|
|
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;
|
|
319
|
-
const se_RestoreTableFromSnapshotCommand = async (input, context) => {
|
|
320
|
-
const headers = sharedHeaders("RestoreTableFromSnapshot");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
323
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
324
|
-
};
|
|
325
|
-
exports.se_RestoreTableFromSnapshotCommand = se_RestoreTableFromSnapshotCommand;
|
|
326
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
327
|
-
const headers = sharedHeaders("TagResource");
|
|
328
|
-
let body;
|
|
329
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
330
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
331
|
-
};
|
|
332
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
333
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
334
|
-
const headers = sharedHeaders("UntagResource");
|
|
335
|
-
let body;
|
|
336
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
337
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
-
};
|
|
339
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
340
|
-
const se_UpdateCustomDomainAssociationCommand = async (input, context) => {
|
|
341
|
-
const headers = sharedHeaders("UpdateCustomDomainAssociation");
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
344
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
345
|
-
};
|
|
346
|
-
exports.se_UpdateCustomDomainAssociationCommand = se_UpdateCustomDomainAssociationCommand;
|
|
347
|
-
const se_UpdateEndpointAccessCommand = async (input, context) => {
|
|
348
|
-
const headers = sharedHeaders("UpdateEndpointAccess");
|
|
349
|
-
let body;
|
|
350
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
351
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
352
|
-
};
|
|
353
|
-
exports.se_UpdateEndpointAccessCommand = se_UpdateEndpointAccessCommand;
|
|
354
|
-
const se_UpdateNamespaceCommand = async (input, context) => {
|
|
355
|
-
const headers = sharedHeaders("UpdateNamespace");
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
358
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
|
-
};
|
|
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;
|
|
368
|
-
const se_UpdateSnapshotCommand = async (input, context) => {
|
|
369
|
-
const headers = sharedHeaders("UpdateSnapshot");
|
|
370
|
-
let body;
|
|
371
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
372
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
|
-
};
|
|
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;
|
|
382
|
-
const se_UpdateUsageLimitCommand = async (input, context) => {
|
|
383
|
-
const headers = sharedHeaders("UpdateUsageLimit");
|
|
384
|
-
let body;
|
|
385
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
386
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
|
-
};
|
|
388
|
-
exports.se_UpdateUsageLimitCommand = se_UpdateUsageLimitCommand;
|
|
389
|
-
const se_UpdateWorkgroupCommand = async (input, context) => {
|
|
390
|
-
const headers = sharedHeaders("UpdateWorkgroup");
|
|
391
|
-
let body;
|
|
392
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
393
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
394
|
-
};
|
|
395
|
-
exports.se_UpdateWorkgroupCommand = se_UpdateWorkgroupCommand;
|
|
396
|
-
const de_ConvertRecoveryPointToSnapshotCommand = async (output, context) => {
|
|
397
|
-
if (output.statusCode >= 300) {
|
|
398
|
-
return de_ConvertRecoveryPointToSnapshotCommandError(output, context);
|
|
399
|
-
}
|
|
400
|
-
const data = await parseBody(output.body, context);
|
|
401
|
-
let contents = {};
|
|
402
|
-
contents = de_ConvertRecoveryPointToSnapshotResponse(data, context);
|
|
403
|
-
const response = {
|
|
404
|
-
$metadata: deserializeMetadata(output),
|
|
405
|
-
...contents,
|
|
406
|
-
};
|
|
407
|
-
return response;
|
|
408
|
-
};
|
|
409
|
-
exports.de_ConvertRecoveryPointToSnapshotCommand = de_ConvertRecoveryPointToSnapshotCommand;
|
|
410
|
-
const de_ConvertRecoveryPointToSnapshotCommandError = async (output, context) => {
|
|
411
|
-
const parsedOutput = {
|
|
412
|
-
...output,
|
|
413
|
-
body: await parseErrorBody(output.body, context),
|
|
414
|
-
};
|
|
415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
416
|
-
switch (errorCode) {
|
|
417
|
-
case "ConflictException":
|
|
418
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
419
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
420
|
-
case "InternalServerException":
|
|
421
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
422
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
423
|
-
case "ResourceNotFoundException":
|
|
424
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
425
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
426
|
-
case "ServiceQuotaExceededException":
|
|
427
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
428
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
429
|
-
case "TooManyTagsException":
|
|
430
|
-
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
431
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
432
|
-
case "ValidationException":
|
|
433
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
434
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
435
|
-
default:
|
|
436
|
-
const parsedBody = parsedOutput.body;
|
|
437
|
-
return throwDefaultError({
|
|
438
|
-
output,
|
|
439
|
-
parsedBody,
|
|
440
|
-
errorCode,
|
|
441
|
-
});
|
|
442
|
-
}
|
|
443
|
-
};
|
|
444
|
-
const de_CreateCustomDomainAssociationCommand = async (output, context) => {
|
|
445
|
-
if (output.statusCode >= 300) {
|
|
446
|
-
return de_CreateCustomDomainAssociationCommandError(output, context);
|
|
447
|
-
}
|
|
448
|
-
const data = await parseBody(output.body, context);
|
|
449
|
-
let contents = {};
|
|
450
|
-
contents = de_CreateCustomDomainAssociationResponse(data, context);
|
|
451
|
-
const response = {
|
|
452
|
-
$metadata: deserializeMetadata(output),
|
|
453
|
-
...contents,
|
|
454
|
-
};
|
|
455
|
-
return response;
|
|
456
|
-
};
|
|
457
|
-
exports.de_CreateCustomDomainAssociationCommand = de_CreateCustomDomainAssociationCommand;
|
|
458
|
-
const de_CreateCustomDomainAssociationCommandError = async (output, context) => {
|
|
459
|
-
const parsedOutput = {
|
|
460
|
-
...output,
|
|
461
|
-
body: await parseErrorBody(output.body, context),
|
|
462
|
-
};
|
|
463
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
464
|
-
switch (errorCode) {
|
|
465
|
-
case "AccessDeniedException":
|
|
466
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
467
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
468
|
-
case "ConflictException":
|
|
469
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
470
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
471
|
-
case "InternalServerException":
|
|
472
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
473
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
474
|
-
case "ResourceNotFoundException":
|
|
475
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
476
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
477
|
-
case "ThrottlingException":
|
|
478
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
479
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
480
|
-
case "ValidationException":
|
|
481
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
482
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
483
|
-
default:
|
|
484
|
-
const parsedBody = parsedOutput.body;
|
|
485
|
-
return throwDefaultError({
|
|
486
|
-
output,
|
|
487
|
-
parsedBody,
|
|
488
|
-
errorCode,
|
|
489
|
-
});
|
|
490
|
-
}
|
|
491
|
-
};
|
|
492
|
-
const de_CreateEndpointAccessCommand = async (output, context) => {
|
|
493
|
-
if (output.statusCode >= 300) {
|
|
494
|
-
return de_CreateEndpointAccessCommandError(output, context);
|
|
495
|
-
}
|
|
496
|
-
const data = await parseBody(output.body, context);
|
|
497
|
-
let contents = {};
|
|
498
|
-
contents = de_CreateEndpointAccessResponse(data, context);
|
|
499
|
-
const response = {
|
|
500
|
-
$metadata: deserializeMetadata(output),
|
|
501
|
-
...contents,
|
|
502
|
-
};
|
|
503
|
-
return response;
|
|
504
|
-
};
|
|
505
|
-
exports.de_CreateEndpointAccessCommand = de_CreateEndpointAccessCommand;
|
|
506
|
-
const de_CreateEndpointAccessCommandError = async (output, context) => {
|
|
507
|
-
const parsedOutput = {
|
|
508
|
-
...output,
|
|
509
|
-
body: await parseErrorBody(output.body, context),
|
|
510
|
-
};
|
|
511
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
512
|
-
switch (errorCode) {
|
|
513
|
-
case "AccessDeniedException":
|
|
514
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
515
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
516
|
-
case "ConflictException":
|
|
517
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
518
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
519
|
-
case "InternalServerException":
|
|
520
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
521
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
522
|
-
case "ResourceNotFoundException":
|
|
523
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
524
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
525
|
-
case "ServiceQuotaExceededException":
|
|
526
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
527
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
528
|
-
case "ValidationException":
|
|
529
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
530
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
531
|
-
default:
|
|
532
|
-
const parsedBody = parsedOutput.body;
|
|
533
|
-
return throwDefaultError({
|
|
534
|
-
output,
|
|
535
|
-
parsedBody,
|
|
536
|
-
errorCode,
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
|
-
const de_CreateNamespaceCommand = async (output, context) => {
|
|
541
|
-
if (output.statusCode >= 300) {
|
|
542
|
-
return de_CreateNamespaceCommandError(output, context);
|
|
543
|
-
}
|
|
544
|
-
const data = await parseBody(output.body, context);
|
|
545
|
-
let contents = {};
|
|
546
|
-
contents = de_CreateNamespaceResponse(data, context);
|
|
547
|
-
const response = {
|
|
548
|
-
$metadata: deserializeMetadata(output),
|
|
549
|
-
...contents,
|
|
550
|
-
};
|
|
551
|
-
return response;
|
|
552
|
-
};
|
|
553
|
-
exports.de_CreateNamespaceCommand = de_CreateNamespaceCommand;
|
|
554
|
-
const de_CreateNamespaceCommandError = async (output, context) => {
|
|
555
|
-
const parsedOutput = {
|
|
556
|
-
...output,
|
|
557
|
-
body: await parseErrorBody(output.body, context),
|
|
558
|
-
};
|
|
559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
560
|
-
switch (errorCode) {
|
|
561
|
-
case "ConflictException":
|
|
562
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
563
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
564
|
-
case "InternalServerException":
|
|
565
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
566
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
567
|
-
case "TooManyTagsException":
|
|
568
|
-
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
569
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
570
|
-
case "ValidationException":
|
|
571
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
572
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
573
|
-
default:
|
|
574
|
-
const parsedBody = parsedOutput.body;
|
|
575
|
-
return throwDefaultError({
|
|
576
|
-
output,
|
|
577
|
-
parsedBody,
|
|
578
|
-
errorCode,
|
|
579
|
-
});
|
|
580
|
-
}
|
|
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
|
-
};
|
|
624
|
-
const de_CreateSnapshotCommand = async (output, context) => {
|
|
625
|
-
if (output.statusCode >= 300) {
|
|
626
|
-
return de_CreateSnapshotCommandError(output, context);
|
|
627
|
-
}
|
|
628
|
-
const data = await parseBody(output.body, context);
|
|
629
|
-
let contents = {};
|
|
630
|
-
contents = de_CreateSnapshotResponse(data, context);
|
|
631
|
-
const response = {
|
|
632
|
-
$metadata: deserializeMetadata(output),
|
|
633
|
-
...contents,
|
|
634
|
-
};
|
|
635
|
-
return response;
|
|
636
|
-
};
|
|
637
|
-
exports.de_CreateSnapshotCommand = de_CreateSnapshotCommand;
|
|
638
|
-
const de_CreateSnapshotCommandError = async (output, context) => {
|
|
639
|
-
const parsedOutput = {
|
|
640
|
-
...output,
|
|
641
|
-
body: await parseErrorBody(output.body, context),
|
|
642
|
-
};
|
|
643
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
644
|
-
switch (errorCode) {
|
|
645
|
-
case "ConflictException":
|
|
646
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
647
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
648
|
-
case "InternalServerException":
|
|
649
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
650
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
651
|
-
case "ResourceNotFoundException":
|
|
652
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
653
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
654
|
-
case "ServiceQuotaExceededException":
|
|
655
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
656
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
657
|
-
case "TooManyTagsException":
|
|
658
|
-
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
659
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
660
|
-
case "ValidationException":
|
|
661
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
662
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
663
|
-
default:
|
|
664
|
-
const parsedBody = parsedOutput.body;
|
|
665
|
-
return throwDefaultError({
|
|
666
|
-
output,
|
|
667
|
-
parsedBody,
|
|
668
|
-
errorCode,
|
|
669
|
-
});
|
|
670
|
-
}
|
|
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
|
-
};
|
|
720
|
-
const de_CreateUsageLimitCommand = async (output, context) => {
|
|
721
|
-
if (output.statusCode >= 300) {
|
|
722
|
-
return de_CreateUsageLimitCommandError(output, context);
|
|
723
|
-
}
|
|
724
|
-
const data = await parseBody(output.body, context);
|
|
725
|
-
let contents = {};
|
|
726
|
-
contents = (0, smithy_client_1._json)(data);
|
|
727
|
-
const response = {
|
|
728
|
-
$metadata: deserializeMetadata(output),
|
|
729
|
-
...contents,
|
|
730
|
-
};
|
|
731
|
-
return response;
|
|
732
|
-
};
|
|
733
|
-
exports.de_CreateUsageLimitCommand = de_CreateUsageLimitCommand;
|
|
734
|
-
const de_CreateUsageLimitCommandError = async (output, context) => {
|
|
735
|
-
const parsedOutput = {
|
|
736
|
-
...output,
|
|
737
|
-
body: await parseErrorBody(output.body, context),
|
|
738
|
-
};
|
|
739
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
740
|
-
switch (errorCode) {
|
|
741
|
-
case "ConflictException":
|
|
742
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
743
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
744
|
-
case "InternalServerException":
|
|
745
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
746
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
747
|
-
case "ResourceNotFoundException":
|
|
748
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
749
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
750
|
-
case "ServiceQuotaExceededException":
|
|
751
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
752
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
753
|
-
case "ValidationException":
|
|
754
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
755
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
756
|
-
default:
|
|
757
|
-
const parsedBody = parsedOutput.body;
|
|
758
|
-
return throwDefaultError({
|
|
759
|
-
output,
|
|
760
|
-
parsedBody,
|
|
761
|
-
errorCode,
|
|
762
|
-
});
|
|
763
|
-
}
|
|
764
|
-
};
|
|
765
|
-
const de_CreateWorkgroupCommand = async (output, context) => {
|
|
766
|
-
if (output.statusCode >= 300) {
|
|
767
|
-
return de_CreateWorkgroupCommandError(output, context);
|
|
768
|
-
}
|
|
769
|
-
const data = await parseBody(output.body, context);
|
|
770
|
-
let contents = {};
|
|
771
|
-
contents = de_CreateWorkgroupResponse(data, context);
|
|
772
|
-
const response = {
|
|
773
|
-
$metadata: deserializeMetadata(output),
|
|
774
|
-
...contents,
|
|
775
|
-
};
|
|
776
|
-
return response;
|
|
777
|
-
};
|
|
778
|
-
exports.de_CreateWorkgroupCommand = de_CreateWorkgroupCommand;
|
|
779
|
-
const de_CreateWorkgroupCommandError = async (output, context) => {
|
|
780
|
-
const parsedOutput = {
|
|
781
|
-
...output,
|
|
782
|
-
body: await parseErrorBody(output.body, context),
|
|
783
|
-
};
|
|
784
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
|
-
switch (errorCode) {
|
|
786
|
-
case "ConflictException":
|
|
787
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
788
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
789
|
-
case "InsufficientCapacityException":
|
|
790
|
-
case "com.amazonaws.redshiftserverless#InsufficientCapacityException":
|
|
791
|
-
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
792
|
-
case "InternalServerException":
|
|
793
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
794
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ResourceNotFoundException":
|
|
796
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
797
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
798
|
-
case "TooManyTagsException":
|
|
799
|
-
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
800
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
801
|
-
case "ValidationException":
|
|
802
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
803
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
804
|
-
default:
|
|
805
|
-
const parsedBody = parsedOutput.body;
|
|
806
|
-
return throwDefaultError({
|
|
807
|
-
output,
|
|
808
|
-
parsedBody,
|
|
809
|
-
errorCode,
|
|
810
|
-
});
|
|
811
|
-
}
|
|
812
|
-
};
|
|
813
|
-
const de_DeleteCustomDomainAssociationCommand = async (output, context) => {
|
|
814
|
-
if (output.statusCode >= 300) {
|
|
815
|
-
return de_DeleteCustomDomainAssociationCommandError(output, context);
|
|
816
|
-
}
|
|
817
|
-
const data = await parseBody(output.body, context);
|
|
818
|
-
let contents = {};
|
|
819
|
-
contents = (0, smithy_client_1._json)(data);
|
|
820
|
-
const response = {
|
|
821
|
-
$metadata: deserializeMetadata(output),
|
|
822
|
-
...contents,
|
|
823
|
-
};
|
|
824
|
-
return response;
|
|
825
|
-
};
|
|
826
|
-
exports.de_DeleteCustomDomainAssociationCommand = de_DeleteCustomDomainAssociationCommand;
|
|
827
|
-
const de_DeleteCustomDomainAssociationCommandError = async (output, context) => {
|
|
828
|
-
const parsedOutput = {
|
|
829
|
-
...output,
|
|
830
|
-
body: await parseErrorBody(output.body, context),
|
|
831
|
-
};
|
|
832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
|
-
switch (errorCode) {
|
|
834
|
-
case "AccessDeniedException":
|
|
835
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
836
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
837
|
-
case "ConflictException":
|
|
838
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
839
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
840
|
-
case "InternalServerException":
|
|
841
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
842
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
843
|
-
case "ResourceNotFoundException":
|
|
844
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
845
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
846
|
-
case "ThrottlingException":
|
|
847
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
848
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
849
|
-
case "ValidationException":
|
|
850
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
851
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
852
|
-
default:
|
|
853
|
-
const parsedBody = parsedOutput.body;
|
|
854
|
-
return throwDefaultError({
|
|
855
|
-
output,
|
|
856
|
-
parsedBody,
|
|
857
|
-
errorCode,
|
|
858
|
-
});
|
|
859
|
-
}
|
|
860
|
-
};
|
|
861
|
-
const de_DeleteEndpointAccessCommand = async (output, context) => {
|
|
862
|
-
if (output.statusCode >= 300) {
|
|
863
|
-
return de_DeleteEndpointAccessCommandError(output, context);
|
|
864
|
-
}
|
|
865
|
-
const data = await parseBody(output.body, context);
|
|
866
|
-
let contents = {};
|
|
867
|
-
contents = de_DeleteEndpointAccessResponse(data, context);
|
|
868
|
-
const response = {
|
|
869
|
-
$metadata: deserializeMetadata(output),
|
|
870
|
-
...contents,
|
|
871
|
-
};
|
|
872
|
-
return response;
|
|
873
|
-
};
|
|
874
|
-
exports.de_DeleteEndpointAccessCommand = de_DeleteEndpointAccessCommand;
|
|
875
|
-
const de_DeleteEndpointAccessCommandError = async (output, context) => {
|
|
876
|
-
const parsedOutput = {
|
|
877
|
-
...output,
|
|
878
|
-
body: await parseErrorBody(output.body, context),
|
|
879
|
-
};
|
|
880
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
881
|
-
switch (errorCode) {
|
|
882
|
-
case "ConflictException":
|
|
883
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
884
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
885
|
-
case "InternalServerException":
|
|
886
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
887
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
888
|
-
case "ResourceNotFoundException":
|
|
889
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
890
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
891
|
-
case "ValidationException":
|
|
892
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
893
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
894
|
-
default:
|
|
895
|
-
const parsedBody = parsedOutput.body;
|
|
896
|
-
return throwDefaultError({
|
|
897
|
-
output,
|
|
898
|
-
parsedBody,
|
|
899
|
-
errorCode,
|
|
900
|
-
});
|
|
901
|
-
}
|
|
902
|
-
};
|
|
903
|
-
const de_DeleteNamespaceCommand = async (output, context) => {
|
|
904
|
-
if (output.statusCode >= 300) {
|
|
905
|
-
return de_DeleteNamespaceCommandError(output, context);
|
|
906
|
-
}
|
|
907
|
-
const data = await parseBody(output.body, context);
|
|
908
|
-
let contents = {};
|
|
909
|
-
contents = de_DeleteNamespaceResponse(data, context);
|
|
910
|
-
const response = {
|
|
911
|
-
$metadata: deserializeMetadata(output),
|
|
912
|
-
...contents,
|
|
913
|
-
};
|
|
914
|
-
return response;
|
|
915
|
-
};
|
|
916
|
-
exports.de_DeleteNamespaceCommand = de_DeleteNamespaceCommand;
|
|
917
|
-
const de_DeleteNamespaceCommandError = async (output, context) => {
|
|
918
|
-
const parsedOutput = {
|
|
919
|
-
...output,
|
|
920
|
-
body: await parseErrorBody(output.body, context),
|
|
921
|
-
};
|
|
922
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
|
-
switch (errorCode) {
|
|
924
|
-
case "ConflictException":
|
|
925
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
926
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
927
|
-
case "InternalServerException":
|
|
928
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
929
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
930
|
-
case "ResourceNotFoundException":
|
|
931
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
932
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ValidationException":
|
|
934
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
935
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
936
|
-
default:
|
|
937
|
-
const parsedBody = parsedOutput.body;
|
|
938
|
-
return throwDefaultError({
|
|
939
|
-
output,
|
|
940
|
-
parsedBody,
|
|
941
|
-
errorCode,
|
|
942
|
-
});
|
|
943
|
-
}
|
|
944
|
-
};
|
|
945
|
-
const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
946
|
-
if (output.statusCode >= 300) {
|
|
947
|
-
return de_DeleteResourcePolicyCommandError(output, context);
|
|
948
|
-
}
|
|
949
|
-
const data = await parseBody(output.body, context);
|
|
950
|
-
let contents = {};
|
|
951
|
-
contents = (0, smithy_client_1._json)(data);
|
|
952
|
-
const response = {
|
|
953
|
-
$metadata: deserializeMetadata(output),
|
|
954
|
-
...contents,
|
|
955
|
-
};
|
|
956
|
-
return response;
|
|
957
|
-
};
|
|
958
|
-
exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
|
|
959
|
-
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
960
|
-
const parsedOutput = {
|
|
961
|
-
...output,
|
|
962
|
-
body: await parseErrorBody(output.body, context),
|
|
963
|
-
};
|
|
964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
|
-
switch (errorCode) {
|
|
966
|
-
case "InternalServerException":
|
|
967
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
968
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
969
|
-
case "ResourceNotFoundException":
|
|
970
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
971
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ValidationException":
|
|
973
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
974
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
975
|
-
default:
|
|
976
|
-
const parsedBody = parsedOutput.body;
|
|
977
|
-
return throwDefaultError({
|
|
978
|
-
output,
|
|
979
|
-
parsedBody,
|
|
980
|
-
errorCode,
|
|
981
|
-
});
|
|
982
|
-
}
|
|
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
|
-
};
|
|
1023
|
-
const de_DeleteSnapshotCommand = async (output, context) => {
|
|
1024
|
-
if (output.statusCode >= 300) {
|
|
1025
|
-
return de_DeleteSnapshotCommandError(output, context);
|
|
1026
|
-
}
|
|
1027
|
-
const data = await parseBody(output.body, context);
|
|
1028
|
-
let contents = {};
|
|
1029
|
-
contents = de_DeleteSnapshotResponse(data, context);
|
|
1030
|
-
const response = {
|
|
1031
|
-
$metadata: deserializeMetadata(output),
|
|
1032
|
-
...contents,
|
|
1033
|
-
};
|
|
1034
|
-
return response;
|
|
1035
|
-
};
|
|
1036
|
-
exports.de_DeleteSnapshotCommand = de_DeleteSnapshotCommand;
|
|
1037
|
-
const de_DeleteSnapshotCommandError = async (output, context) => {
|
|
1038
|
-
const parsedOutput = {
|
|
1039
|
-
...output,
|
|
1040
|
-
body: await parseErrorBody(output.body, context),
|
|
1041
|
-
};
|
|
1042
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1043
|
-
switch (errorCode) {
|
|
1044
|
-
case "ConflictException":
|
|
1045
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1046
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "InternalServerException":
|
|
1048
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1049
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "ResourceNotFoundException":
|
|
1051
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1052
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "ValidationException":
|
|
1054
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1055
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1056
|
-
default:
|
|
1057
|
-
const parsedBody = parsedOutput.body;
|
|
1058
|
-
return throwDefaultError({
|
|
1059
|
-
output,
|
|
1060
|
-
parsedBody,
|
|
1061
|
-
errorCode,
|
|
1062
|
-
});
|
|
1063
|
-
}
|
|
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
|
-
};
|
|
1110
|
-
const de_DeleteUsageLimitCommand = async (output, context) => {
|
|
1111
|
-
if (output.statusCode >= 300) {
|
|
1112
|
-
return de_DeleteUsageLimitCommandError(output, context);
|
|
1113
|
-
}
|
|
1114
|
-
const data = await parseBody(output.body, context);
|
|
1115
|
-
let contents = {};
|
|
1116
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1117
|
-
const response = {
|
|
1118
|
-
$metadata: deserializeMetadata(output),
|
|
1119
|
-
...contents,
|
|
1120
|
-
};
|
|
1121
|
-
return response;
|
|
1122
|
-
};
|
|
1123
|
-
exports.de_DeleteUsageLimitCommand = de_DeleteUsageLimitCommand;
|
|
1124
|
-
const de_DeleteUsageLimitCommandError = async (output, context) => {
|
|
1125
|
-
const parsedOutput = {
|
|
1126
|
-
...output,
|
|
1127
|
-
body: await parseErrorBody(output.body, context),
|
|
1128
|
-
};
|
|
1129
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
|
-
switch (errorCode) {
|
|
1131
|
-
case "ConflictException":
|
|
1132
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1133
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1134
|
-
case "InternalServerException":
|
|
1135
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1136
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1137
|
-
case "ResourceNotFoundException":
|
|
1138
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1139
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1140
|
-
case "ValidationException":
|
|
1141
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1142
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1143
|
-
default:
|
|
1144
|
-
const parsedBody = parsedOutput.body;
|
|
1145
|
-
return throwDefaultError({
|
|
1146
|
-
output,
|
|
1147
|
-
parsedBody,
|
|
1148
|
-
errorCode,
|
|
1149
|
-
});
|
|
1150
|
-
}
|
|
1151
|
-
};
|
|
1152
|
-
const de_DeleteWorkgroupCommand = async (output, context) => {
|
|
1153
|
-
if (output.statusCode >= 300) {
|
|
1154
|
-
return de_DeleteWorkgroupCommandError(output, context);
|
|
1155
|
-
}
|
|
1156
|
-
const data = await parseBody(output.body, context);
|
|
1157
|
-
let contents = {};
|
|
1158
|
-
contents = de_DeleteWorkgroupResponse(data, context);
|
|
1159
|
-
const response = {
|
|
1160
|
-
$metadata: deserializeMetadata(output),
|
|
1161
|
-
...contents,
|
|
1162
|
-
};
|
|
1163
|
-
return response;
|
|
1164
|
-
};
|
|
1165
|
-
exports.de_DeleteWorkgroupCommand = de_DeleteWorkgroupCommand;
|
|
1166
|
-
const de_DeleteWorkgroupCommandError = async (output, context) => {
|
|
1167
|
-
const parsedOutput = {
|
|
1168
|
-
...output,
|
|
1169
|
-
body: await parseErrorBody(output.body, context),
|
|
1170
|
-
};
|
|
1171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
|
-
switch (errorCode) {
|
|
1173
|
-
case "ConflictException":
|
|
1174
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1175
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "InternalServerException":
|
|
1177
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1178
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "ResourceNotFoundException":
|
|
1180
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1181
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ValidationException":
|
|
1183
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1184
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1185
|
-
default:
|
|
1186
|
-
const parsedBody = parsedOutput.body;
|
|
1187
|
-
return throwDefaultError({
|
|
1188
|
-
output,
|
|
1189
|
-
parsedBody,
|
|
1190
|
-
errorCode,
|
|
1191
|
-
});
|
|
1192
|
-
}
|
|
1193
|
-
};
|
|
1194
|
-
const de_GetCredentialsCommand = async (output, context) => {
|
|
1195
|
-
if (output.statusCode >= 300) {
|
|
1196
|
-
return de_GetCredentialsCommandError(output, context);
|
|
1197
|
-
}
|
|
1198
|
-
const data = await parseBody(output.body, context);
|
|
1199
|
-
let contents = {};
|
|
1200
|
-
contents = de_GetCredentialsResponse(data, context);
|
|
1201
|
-
const response = {
|
|
1202
|
-
$metadata: deserializeMetadata(output),
|
|
1203
|
-
...contents,
|
|
1204
|
-
};
|
|
1205
|
-
return response;
|
|
1206
|
-
};
|
|
1207
|
-
exports.de_GetCredentialsCommand = de_GetCredentialsCommand;
|
|
1208
|
-
const de_GetCredentialsCommandError = async (output, context) => {
|
|
1209
|
-
const parsedOutput = {
|
|
1210
|
-
...output,
|
|
1211
|
-
body: await parseErrorBody(output.body, context),
|
|
1212
|
-
};
|
|
1213
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1214
|
-
switch (errorCode) {
|
|
1215
|
-
case "InternalServerException":
|
|
1216
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1217
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "ResourceNotFoundException":
|
|
1219
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1220
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "ValidationException":
|
|
1222
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1223
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1224
|
-
default:
|
|
1225
|
-
const parsedBody = parsedOutput.body;
|
|
1226
|
-
return throwDefaultError({
|
|
1227
|
-
output,
|
|
1228
|
-
parsedBody,
|
|
1229
|
-
errorCode,
|
|
1230
|
-
});
|
|
1231
|
-
}
|
|
1232
|
-
};
|
|
1233
|
-
const de_GetCustomDomainAssociationCommand = async (output, context) => {
|
|
1234
|
-
if (output.statusCode >= 300) {
|
|
1235
|
-
return de_GetCustomDomainAssociationCommandError(output, context);
|
|
1236
|
-
}
|
|
1237
|
-
const data = await parseBody(output.body, context);
|
|
1238
|
-
let contents = {};
|
|
1239
|
-
contents = de_GetCustomDomainAssociationResponse(data, context);
|
|
1240
|
-
const response = {
|
|
1241
|
-
$metadata: deserializeMetadata(output),
|
|
1242
|
-
...contents,
|
|
1243
|
-
};
|
|
1244
|
-
return response;
|
|
1245
|
-
};
|
|
1246
|
-
exports.de_GetCustomDomainAssociationCommand = de_GetCustomDomainAssociationCommand;
|
|
1247
|
-
const de_GetCustomDomainAssociationCommandError = async (output, context) => {
|
|
1248
|
-
const parsedOutput = {
|
|
1249
|
-
...output,
|
|
1250
|
-
body: await parseErrorBody(output.body, context),
|
|
1251
|
-
};
|
|
1252
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1253
|
-
switch (errorCode) {
|
|
1254
|
-
case "AccessDeniedException":
|
|
1255
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1256
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1257
|
-
case "ConflictException":
|
|
1258
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1259
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "InternalServerException":
|
|
1261
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1262
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1263
|
-
case "ResourceNotFoundException":
|
|
1264
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1265
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "ThrottlingException":
|
|
1267
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1268
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "ValidationException":
|
|
1270
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1271
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1272
|
-
default:
|
|
1273
|
-
const parsedBody = parsedOutput.body;
|
|
1274
|
-
return throwDefaultError({
|
|
1275
|
-
output,
|
|
1276
|
-
parsedBody,
|
|
1277
|
-
errorCode,
|
|
1278
|
-
});
|
|
1279
|
-
}
|
|
1280
|
-
};
|
|
1281
|
-
const de_GetEndpointAccessCommand = async (output, context) => {
|
|
1282
|
-
if (output.statusCode >= 300) {
|
|
1283
|
-
return de_GetEndpointAccessCommandError(output, context);
|
|
1284
|
-
}
|
|
1285
|
-
const data = await parseBody(output.body, context);
|
|
1286
|
-
let contents = {};
|
|
1287
|
-
contents = de_GetEndpointAccessResponse(data, context);
|
|
1288
|
-
const response = {
|
|
1289
|
-
$metadata: deserializeMetadata(output),
|
|
1290
|
-
...contents,
|
|
1291
|
-
};
|
|
1292
|
-
return response;
|
|
1293
|
-
};
|
|
1294
|
-
exports.de_GetEndpointAccessCommand = de_GetEndpointAccessCommand;
|
|
1295
|
-
const de_GetEndpointAccessCommandError = async (output, context) => {
|
|
1296
|
-
const parsedOutput = {
|
|
1297
|
-
...output,
|
|
1298
|
-
body: await parseErrorBody(output.body, context),
|
|
1299
|
-
};
|
|
1300
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
|
-
switch (errorCode) {
|
|
1302
|
-
case "ConflictException":
|
|
1303
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1304
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "InternalServerException":
|
|
1306
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1307
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1308
|
-
case "ResourceNotFoundException":
|
|
1309
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1310
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "ValidationException":
|
|
1312
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1313
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1314
|
-
default:
|
|
1315
|
-
const parsedBody = parsedOutput.body;
|
|
1316
|
-
return throwDefaultError({
|
|
1317
|
-
output,
|
|
1318
|
-
parsedBody,
|
|
1319
|
-
errorCode,
|
|
1320
|
-
});
|
|
1321
|
-
}
|
|
1322
|
-
};
|
|
1323
|
-
const de_GetNamespaceCommand = async (output, context) => {
|
|
1324
|
-
if (output.statusCode >= 300) {
|
|
1325
|
-
return de_GetNamespaceCommandError(output, context);
|
|
1326
|
-
}
|
|
1327
|
-
const data = await parseBody(output.body, context);
|
|
1328
|
-
let contents = {};
|
|
1329
|
-
contents = de_GetNamespaceResponse(data, context);
|
|
1330
|
-
const response = {
|
|
1331
|
-
$metadata: deserializeMetadata(output),
|
|
1332
|
-
...contents,
|
|
1333
|
-
};
|
|
1334
|
-
return response;
|
|
1335
|
-
};
|
|
1336
|
-
exports.de_GetNamespaceCommand = de_GetNamespaceCommand;
|
|
1337
|
-
const de_GetNamespaceCommandError = async (output, context) => {
|
|
1338
|
-
const parsedOutput = {
|
|
1339
|
-
...output,
|
|
1340
|
-
body: await parseErrorBody(output.body, context),
|
|
1341
|
-
};
|
|
1342
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1343
|
-
switch (errorCode) {
|
|
1344
|
-
case "InternalServerException":
|
|
1345
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1346
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "ResourceNotFoundException":
|
|
1348
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1349
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1350
|
-
case "ValidationException":
|
|
1351
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1352
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1353
|
-
default:
|
|
1354
|
-
const parsedBody = parsedOutput.body;
|
|
1355
|
-
return throwDefaultError({
|
|
1356
|
-
output,
|
|
1357
|
-
parsedBody,
|
|
1358
|
-
errorCode,
|
|
1359
|
-
});
|
|
1360
|
-
}
|
|
1361
|
-
};
|
|
1362
|
-
const de_GetRecoveryPointCommand = async (output, context) => {
|
|
1363
|
-
if (output.statusCode >= 300) {
|
|
1364
|
-
return de_GetRecoveryPointCommandError(output, context);
|
|
1365
|
-
}
|
|
1366
|
-
const data = await parseBody(output.body, context);
|
|
1367
|
-
let contents = {};
|
|
1368
|
-
contents = de_GetRecoveryPointResponse(data, context);
|
|
1369
|
-
const response = {
|
|
1370
|
-
$metadata: deserializeMetadata(output),
|
|
1371
|
-
...contents,
|
|
1372
|
-
};
|
|
1373
|
-
return response;
|
|
1374
|
-
};
|
|
1375
|
-
exports.de_GetRecoveryPointCommand = de_GetRecoveryPointCommand;
|
|
1376
|
-
const de_GetRecoveryPointCommandError = async (output, context) => {
|
|
1377
|
-
const parsedOutput = {
|
|
1378
|
-
...output,
|
|
1379
|
-
body: await parseErrorBody(output.body, context),
|
|
1380
|
-
};
|
|
1381
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1382
|
-
switch (errorCode) {
|
|
1383
|
-
case "ConflictException":
|
|
1384
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1385
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "InternalServerException":
|
|
1387
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1388
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "ResourceNotFoundException":
|
|
1390
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1391
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "ValidationException":
|
|
1393
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1394
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1395
|
-
default:
|
|
1396
|
-
const parsedBody = parsedOutput.body;
|
|
1397
|
-
return throwDefaultError({
|
|
1398
|
-
output,
|
|
1399
|
-
parsedBody,
|
|
1400
|
-
errorCode,
|
|
1401
|
-
});
|
|
1402
|
-
}
|
|
1403
|
-
};
|
|
1404
|
-
const de_GetResourcePolicyCommand = async (output, context) => {
|
|
1405
|
-
if (output.statusCode >= 300) {
|
|
1406
|
-
return de_GetResourcePolicyCommandError(output, context);
|
|
1407
|
-
}
|
|
1408
|
-
const data = await parseBody(output.body, context);
|
|
1409
|
-
let contents = {};
|
|
1410
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1411
|
-
const response = {
|
|
1412
|
-
$metadata: deserializeMetadata(output),
|
|
1413
|
-
...contents,
|
|
1414
|
-
};
|
|
1415
|
-
return response;
|
|
1416
|
-
};
|
|
1417
|
-
exports.de_GetResourcePolicyCommand = de_GetResourcePolicyCommand;
|
|
1418
|
-
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
1419
|
-
const parsedOutput = {
|
|
1420
|
-
...output,
|
|
1421
|
-
body: await parseErrorBody(output.body, context),
|
|
1422
|
-
};
|
|
1423
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1424
|
-
switch (errorCode) {
|
|
1425
|
-
case "InternalServerException":
|
|
1426
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1427
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "ResourceNotFoundException":
|
|
1429
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1430
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ValidationException":
|
|
1432
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1433
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1434
|
-
default:
|
|
1435
|
-
const parsedBody = parsedOutput.body;
|
|
1436
|
-
return throwDefaultError({
|
|
1437
|
-
output,
|
|
1438
|
-
parsedBody,
|
|
1439
|
-
errorCode,
|
|
1440
|
-
});
|
|
1441
|
-
}
|
|
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
|
-
};
|
|
1482
|
-
const de_GetSnapshotCommand = async (output, context) => {
|
|
1483
|
-
if (output.statusCode >= 300) {
|
|
1484
|
-
return de_GetSnapshotCommandError(output, context);
|
|
1485
|
-
}
|
|
1486
|
-
const data = await parseBody(output.body, context);
|
|
1487
|
-
let contents = {};
|
|
1488
|
-
contents = de_GetSnapshotResponse(data, context);
|
|
1489
|
-
const response = {
|
|
1490
|
-
$metadata: deserializeMetadata(output),
|
|
1491
|
-
...contents,
|
|
1492
|
-
};
|
|
1493
|
-
return response;
|
|
1494
|
-
};
|
|
1495
|
-
exports.de_GetSnapshotCommand = de_GetSnapshotCommand;
|
|
1496
|
-
const de_GetSnapshotCommandError = async (output, context) => {
|
|
1497
|
-
const parsedOutput = {
|
|
1498
|
-
...output,
|
|
1499
|
-
body: await parseErrorBody(output.body, context),
|
|
1500
|
-
};
|
|
1501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
|
-
switch (errorCode) {
|
|
1503
|
-
case "InternalServerException":
|
|
1504
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1505
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "ResourceNotFoundException":
|
|
1507
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1508
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "ValidationException":
|
|
1510
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1511
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1512
|
-
default:
|
|
1513
|
-
const parsedBody = parsedOutput.body;
|
|
1514
|
-
return throwDefaultError({
|
|
1515
|
-
output,
|
|
1516
|
-
parsedBody,
|
|
1517
|
-
errorCode,
|
|
1518
|
-
});
|
|
1519
|
-
}
|
|
1520
|
-
};
|
|
1521
|
-
const de_GetTableRestoreStatusCommand = async (output, context) => {
|
|
1522
|
-
if (output.statusCode >= 300) {
|
|
1523
|
-
return de_GetTableRestoreStatusCommandError(output, context);
|
|
1524
|
-
}
|
|
1525
|
-
const data = await parseBody(output.body, context);
|
|
1526
|
-
let contents = {};
|
|
1527
|
-
contents = de_GetTableRestoreStatusResponse(data, context);
|
|
1528
|
-
const response = {
|
|
1529
|
-
$metadata: deserializeMetadata(output),
|
|
1530
|
-
...contents,
|
|
1531
|
-
};
|
|
1532
|
-
return response;
|
|
1533
|
-
};
|
|
1534
|
-
exports.de_GetTableRestoreStatusCommand = de_GetTableRestoreStatusCommand;
|
|
1535
|
-
const de_GetTableRestoreStatusCommandError = async (output, context) => {
|
|
1536
|
-
const parsedOutput = {
|
|
1537
|
-
...output,
|
|
1538
|
-
body: await parseErrorBody(output.body, context),
|
|
1539
|
-
};
|
|
1540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1541
|
-
switch (errorCode) {
|
|
1542
|
-
case "ResourceNotFoundException":
|
|
1543
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1544
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1545
|
-
case "ValidationException":
|
|
1546
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1547
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1548
|
-
default:
|
|
1549
|
-
const parsedBody = parsedOutput.body;
|
|
1550
|
-
return throwDefaultError({
|
|
1551
|
-
output,
|
|
1552
|
-
parsedBody,
|
|
1553
|
-
errorCode,
|
|
1554
|
-
});
|
|
1555
|
-
}
|
|
1556
|
-
};
|
|
1557
|
-
const de_GetUsageLimitCommand = async (output, context) => {
|
|
1558
|
-
if (output.statusCode >= 300) {
|
|
1559
|
-
return de_GetUsageLimitCommandError(output, context);
|
|
1560
|
-
}
|
|
1561
|
-
const data = await parseBody(output.body, context);
|
|
1562
|
-
let contents = {};
|
|
1563
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1564
|
-
const response = {
|
|
1565
|
-
$metadata: deserializeMetadata(output),
|
|
1566
|
-
...contents,
|
|
1567
|
-
};
|
|
1568
|
-
return response;
|
|
1569
|
-
};
|
|
1570
|
-
exports.de_GetUsageLimitCommand = de_GetUsageLimitCommand;
|
|
1571
|
-
const de_GetUsageLimitCommandError = async (output, context) => {
|
|
1572
|
-
const parsedOutput = {
|
|
1573
|
-
...output,
|
|
1574
|
-
body: await parseErrorBody(output.body, context),
|
|
1575
|
-
};
|
|
1576
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1577
|
-
switch (errorCode) {
|
|
1578
|
-
case "ConflictException":
|
|
1579
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1580
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1581
|
-
case "InternalServerException":
|
|
1582
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1583
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1584
|
-
case "ResourceNotFoundException":
|
|
1585
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1586
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1587
|
-
case "ValidationException":
|
|
1588
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1589
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1590
|
-
default:
|
|
1591
|
-
const parsedBody = parsedOutput.body;
|
|
1592
|
-
return throwDefaultError({
|
|
1593
|
-
output,
|
|
1594
|
-
parsedBody,
|
|
1595
|
-
errorCode,
|
|
1596
|
-
});
|
|
1597
|
-
}
|
|
1598
|
-
};
|
|
1599
|
-
const de_GetWorkgroupCommand = async (output, context) => {
|
|
1600
|
-
if (output.statusCode >= 300) {
|
|
1601
|
-
return de_GetWorkgroupCommandError(output, context);
|
|
1602
|
-
}
|
|
1603
|
-
const data = await parseBody(output.body, context);
|
|
1604
|
-
let contents = {};
|
|
1605
|
-
contents = de_GetWorkgroupResponse(data, context);
|
|
1606
|
-
const response = {
|
|
1607
|
-
$metadata: deserializeMetadata(output),
|
|
1608
|
-
...contents,
|
|
1609
|
-
};
|
|
1610
|
-
return response;
|
|
1611
|
-
};
|
|
1612
|
-
exports.de_GetWorkgroupCommand = de_GetWorkgroupCommand;
|
|
1613
|
-
const de_GetWorkgroupCommandError = async (output, context) => {
|
|
1614
|
-
const parsedOutput = {
|
|
1615
|
-
...output,
|
|
1616
|
-
body: await parseErrorBody(output.body, context),
|
|
1617
|
-
};
|
|
1618
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1619
|
-
switch (errorCode) {
|
|
1620
|
-
case "InternalServerException":
|
|
1621
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1622
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1623
|
-
case "ResourceNotFoundException":
|
|
1624
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1625
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1626
|
-
case "ValidationException":
|
|
1627
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1628
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1629
|
-
default:
|
|
1630
|
-
const parsedBody = parsedOutput.body;
|
|
1631
|
-
return throwDefaultError({
|
|
1632
|
-
output,
|
|
1633
|
-
parsedBody,
|
|
1634
|
-
errorCode,
|
|
1635
|
-
});
|
|
1636
|
-
}
|
|
1637
|
-
};
|
|
1638
|
-
const de_ListCustomDomainAssociationsCommand = async (output, context) => {
|
|
1639
|
-
if (output.statusCode >= 300) {
|
|
1640
|
-
return de_ListCustomDomainAssociationsCommandError(output, context);
|
|
1641
|
-
}
|
|
1642
|
-
const data = await parseBody(output.body, context);
|
|
1643
|
-
let contents = {};
|
|
1644
|
-
contents = de_ListCustomDomainAssociationsResponse(data, context);
|
|
1645
|
-
const response = {
|
|
1646
|
-
$metadata: deserializeMetadata(output),
|
|
1647
|
-
...contents,
|
|
1648
|
-
};
|
|
1649
|
-
return response;
|
|
1650
|
-
};
|
|
1651
|
-
exports.de_ListCustomDomainAssociationsCommand = de_ListCustomDomainAssociationsCommand;
|
|
1652
|
-
const de_ListCustomDomainAssociationsCommandError = async (output, context) => {
|
|
1653
|
-
const parsedOutput = {
|
|
1654
|
-
...output,
|
|
1655
|
-
body: await parseErrorBody(output.body, context),
|
|
1656
|
-
};
|
|
1657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1658
|
-
switch (errorCode) {
|
|
1659
|
-
case "AccessDeniedException":
|
|
1660
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1661
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "InternalServerException":
|
|
1663
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1664
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1665
|
-
case "InvalidPaginationException":
|
|
1666
|
-
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1667
|
-
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "ThrottlingException":
|
|
1669
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1670
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1671
|
-
case "ValidationException":
|
|
1672
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1673
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1674
|
-
default:
|
|
1675
|
-
const parsedBody = parsedOutput.body;
|
|
1676
|
-
return throwDefaultError({
|
|
1677
|
-
output,
|
|
1678
|
-
parsedBody,
|
|
1679
|
-
errorCode,
|
|
1680
|
-
});
|
|
1681
|
-
}
|
|
1682
|
-
};
|
|
1683
|
-
const de_ListEndpointAccessCommand = async (output, context) => {
|
|
1684
|
-
if (output.statusCode >= 300) {
|
|
1685
|
-
return de_ListEndpointAccessCommandError(output, context);
|
|
1686
|
-
}
|
|
1687
|
-
const data = await parseBody(output.body, context);
|
|
1688
|
-
let contents = {};
|
|
1689
|
-
contents = de_ListEndpointAccessResponse(data, context);
|
|
1690
|
-
const response = {
|
|
1691
|
-
$metadata: deserializeMetadata(output),
|
|
1692
|
-
...contents,
|
|
1693
|
-
};
|
|
1694
|
-
return response;
|
|
1695
|
-
};
|
|
1696
|
-
exports.de_ListEndpointAccessCommand = de_ListEndpointAccessCommand;
|
|
1697
|
-
const de_ListEndpointAccessCommandError = async (output, context) => {
|
|
1698
|
-
const parsedOutput = {
|
|
1699
|
-
...output,
|
|
1700
|
-
body: await parseErrorBody(output.body, context),
|
|
1701
|
-
};
|
|
1702
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
|
-
switch (errorCode) {
|
|
1704
|
-
case "ConflictException":
|
|
1705
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1706
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "InternalServerException":
|
|
1708
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1709
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1710
|
-
case "ResourceNotFoundException":
|
|
1711
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1712
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "ValidationException":
|
|
1714
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1715
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1716
|
-
default:
|
|
1717
|
-
const parsedBody = parsedOutput.body;
|
|
1718
|
-
return throwDefaultError({
|
|
1719
|
-
output,
|
|
1720
|
-
parsedBody,
|
|
1721
|
-
errorCode,
|
|
1722
|
-
});
|
|
1723
|
-
}
|
|
1724
|
-
};
|
|
1725
|
-
const de_ListNamespacesCommand = async (output, context) => {
|
|
1726
|
-
if (output.statusCode >= 300) {
|
|
1727
|
-
return de_ListNamespacesCommandError(output, context);
|
|
1728
|
-
}
|
|
1729
|
-
const data = await parseBody(output.body, context);
|
|
1730
|
-
let contents = {};
|
|
1731
|
-
contents = de_ListNamespacesResponse(data, context);
|
|
1732
|
-
const response = {
|
|
1733
|
-
$metadata: deserializeMetadata(output),
|
|
1734
|
-
...contents,
|
|
1735
|
-
};
|
|
1736
|
-
return response;
|
|
1737
|
-
};
|
|
1738
|
-
exports.de_ListNamespacesCommand = de_ListNamespacesCommand;
|
|
1739
|
-
const de_ListNamespacesCommandError = async (output, context) => {
|
|
1740
|
-
const parsedOutput = {
|
|
1741
|
-
...output,
|
|
1742
|
-
body: await parseErrorBody(output.body, context),
|
|
1743
|
-
};
|
|
1744
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1745
|
-
switch (errorCode) {
|
|
1746
|
-
case "InternalServerException":
|
|
1747
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1748
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1749
|
-
case "ValidationException":
|
|
1750
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1751
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1752
|
-
default:
|
|
1753
|
-
const parsedBody = parsedOutput.body;
|
|
1754
|
-
return throwDefaultError({
|
|
1755
|
-
output,
|
|
1756
|
-
parsedBody,
|
|
1757
|
-
errorCode,
|
|
1758
|
-
});
|
|
1759
|
-
}
|
|
1760
|
-
};
|
|
1761
|
-
const de_ListRecoveryPointsCommand = async (output, context) => {
|
|
1762
|
-
if (output.statusCode >= 300) {
|
|
1763
|
-
return de_ListRecoveryPointsCommandError(output, context);
|
|
1764
|
-
}
|
|
1765
|
-
const data = await parseBody(output.body, context);
|
|
1766
|
-
let contents = {};
|
|
1767
|
-
contents = de_ListRecoveryPointsResponse(data, context);
|
|
1768
|
-
const response = {
|
|
1769
|
-
$metadata: deserializeMetadata(output),
|
|
1770
|
-
...contents,
|
|
1771
|
-
};
|
|
1772
|
-
return response;
|
|
1773
|
-
};
|
|
1774
|
-
exports.de_ListRecoveryPointsCommand = de_ListRecoveryPointsCommand;
|
|
1775
|
-
const de_ListRecoveryPointsCommandError = async (output, context) => {
|
|
1776
|
-
const parsedOutput = {
|
|
1777
|
-
...output,
|
|
1778
|
-
body: await parseErrorBody(output.body, context),
|
|
1779
|
-
};
|
|
1780
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
|
-
switch (errorCode) {
|
|
1782
|
-
case "InternalServerException":
|
|
1783
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1784
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "ValidationException":
|
|
1786
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1787
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1788
|
-
default:
|
|
1789
|
-
const parsedBody = parsedOutput.body;
|
|
1790
|
-
return throwDefaultError({
|
|
1791
|
-
output,
|
|
1792
|
-
parsedBody,
|
|
1793
|
-
errorCode,
|
|
1794
|
-
});
|
|
1795
|
-
}
|
|
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
|
-
};
|
|
1884
|
-
const de_ListSnapshotsCommand = async (output, context) => {
|
|
1885
|
-
if (output.statusCode >= 300) {
|
|
1886
|
-
return de_ListSnapshotsCommandError(output, context);
|
|
1887
|
-
}
|
|
1888
|
-
const data = await parseBody(output.body, context);
|
|
1889
|
-
let contents = {};
|
|
1890
|
-
contents = de_ListSnapshotsResponse(data, context);
|
|
1891
|
-
const response = {
|
|
1892
|
-
$metadata: deserializeMetadata(output),
|
|
1893
|
-
...contents,
|
|
1894
|
-
};
|
|
1895
|
-
return response;
|
|
1896
|
-
};
|
|
1897
|
-
exports.de_ListSnapshotsCommand = de_ListSnapshotsCommand;
|
|
1898
|
-
const de_ListSnapshotsCommandError = async (output, context) => {
|
|
1899
|
-
const parsedOutput = {
|
|
1900
|
-
...output,
|
|
1901
|
-
body: await parseErrorBody(output.body, context),
|
|
1902
|
-
};
|
|
1903
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1904
|
-
switch (errorCode) {
|
|
1905
|
-
case "InternalServerException":
|
|
1906
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1907
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1908
|
-
case "ResourceNotFoundException":
|
|
1909
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1910
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1911
|
-
case "ValidationException":
|
|
1912
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1913
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1914
|
-
default:
|
|
1915
|
-
const parsedBody = parsedOutput.body;
|
|
1916
|
-
return throwDefaultError({
|
|
1917
|
-
output,
|
|
1918
|
-
parsedBody,
|
|
1919
|
-
errorCode,
|
|
1920
|
-
});
|
|
1921
|
-
}
|
|
1922
|
-
};
|
|
1923
|
-
const de_ListTableRestoreStatusCommand = async (output, context) => {
|
|
1924
|
-
if (output.statusCode >= 300) {
|
|
1925
|
-
return de_ListTableRestoreStatusCommandError(output, context);
|
|
1926
|
-
}
|
|
1927
|
-
const data = await parseBody(output.body, context);
|
|
1928
|
-
let contents = {};
|
|
1929
|
-
contents = de_ListTableRestoreStatusResponse(data, context);
|
|
1930
|
-
const response = {
|
|
1931
|
-
$metadata: deserializeMetadata(output),
|
|
1932
|
-
...contents,
|
|
1933
|
-
};
|
|
1934
|
-
return response;
|
|
1935
|
-
};
|
|
1936
|
-
exports.de_ListTableRestoreStatusCommand = de_ListTableRestoreStatusCommand;
|
|
1937
|
-
const de_ListTableRestoreStatusCommandError = async (output, context) => {
|
|
1938
|
-
const parsedOutput = {
|
|
1939
|
-
...output,
|
|
1940
|
-
body: await parseErrorBody(output.body, context),
|
|
1941
|
-
};
|
|
1942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1943
|
-
switch (errorCode) {
|
|
1944
|
-
case "InvalidPaginationException":
|
|
1945
|
-
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1946
|
-
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
1947
|
-
case "ResourceNotFoundException":
|
|
1948
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1949
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1950
|
-
case "ValidationException":
|
|
1951
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1952
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1953
|
-
default:
|
|
1954
|
-
const parsedBody = parsedOutput.body;
|
|
1955
|
-
return throwDefaultError({
|
|
1956
|
-
output,
|
|
1957
|
-
parsedBody,
|
|
1958
|
-
errorCode,
|
|
1959
|
-
});
|
|
1960
|
-
}
|
|
1961
|
-
};
|
|
1962
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1963
|
-
if (output.statusCode >= 300) {
|
|
1964
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1965
|
-
}
|
|
1966
|
-
const data = await parseBody(output.body, context);
|
|
1967
|
-
let contents = {};
|
|
1968
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1969
|
-
const response = {
|
|
1970
|
-
$metadata: deserializeMetadata(output),
|
|
1971
|
-
...contents,
|
|
1972
|
-
};
|
|
1973
|
-
return response;
|
|
1974
|
-
};
|
|
1975
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1976
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1977
|
-
const parsedOutput = {
|
|
1978
|
-
...output,
|
|
1979
|
-
body: await parseErrorBody(output.body, context),
|
|
1980
|
-
};
|
|
1981
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
|
-
switch (errorCode) {
|
|
1983
|
-
case "InternalServerException":
|
|
1984
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1985
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1986
|
-
case "ResourceNotFoundException":
|
|
1987
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1988
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1989
|
-
case "ThrottlingException":
|
|
1990
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1991
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "ValidationException":
|
|
1993
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1994
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1995
|
-
default:
|
|
1996
|
-
const parsedBody = parsedOutput.body;
|
|
1997
|
-
return throwDefaultError({
|
|
1998
|
-
output,
|
|
1999
|
-
parsedBody,
|
|
2000
|
-
errorCode,
|
|
2001
|
-
});
|
|
2002
|
-
}
|
|
2003
|
-
};
|
|
2004
|
-
const de_ListUsageLimitsCommand = async (output, context) => {
|
|
2005
|
-
if (output.statusCode >= 300) {
|
|
2006
|
-
return de_ListUsageLimitsCommandError(output, context);
|
|
2007
|
-
}
|
|
2008
|
-
const data = await parseBody(output.body, context);
|
|
2009
|
-
let contents = {};
|
|
2010
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2011
|
-
const response = {
|
|
2012
|
-
$metadata: deserializeMetadata(output),
|
|
2013
|
-
...contents,
|
|
2014
|
-
};
|
|
2015
|
-
return response;
|
|
2016
|
-
};
|
|
2017
|
-
exports.de_ListUsageLimitsCommand = de_ListUsageLimitsCommand;
|
|
2018
|
-
const de_ListUsageLimitsCommandError = async (output, context) => {
|
|
2019
|
-
const parsedOutput = {
|
|
2020
|
-
...output,
|
|
2021
|
-
body: await parseErrorBody(output.body, context),
|
|
2022
|
-
};
|
|
2023
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2024
|
-
switch (errorCode) {
|
|
2025
|
-
case "ConflictException":
|
|
2026
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2027
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "InternalServerException":
|
|
2029
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2030
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2031
|
-
case "InvalidPaginationException":
|
|
2032
|
-
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
2033
|
-
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
2034
|
-
case "ResourceNotFoundException":
|
|
2035
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2036
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2037
|
-
case "ValidationException":
|
|
2038
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2039
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2040
|
-
default:
|
|
2041
|
-
const parsedBody = parsedOutput.body;
|
|
2042
|
-
return throwDefaultError({
|
|
2043
|
-
output,
|
|
2044
|
-
parsedBody,
|
|
2045
|
-
errorCode,
|
|
2046
|
-
});
|
|
2047
|
-
}
|
|
2048
|
-
};
|
|
2049
|
-
const de_ListWorkgroupsCommand = async (output, context) => {
|
|
2050
|
-
if (output.statusCode >= 300) {
|
|
2051
|
-
return de_ListWorkgroupsCommandError(output, context);
|
|
2052
|
-
}
|
|
2053
|
-
const data = await parseBody(output.body, context);
|
|
2054
|
-
let contents = {};
|
|
2055
|
-
contents = de_ListWorkgroupsResponse(data, context);
|
|
2056
|
-
const response = {
|
|
2057
|
-
$metadata: deserializeMetadata(output),
|
|
2058
|
-
...contents,
|
|
2059
|
-
};
|
|
2060
|
-
return response;
|
|
2061
|
-
};
|
|
2062
|
-
exports.de_ListWorkgroupsCommand = de_ListWorkgroupsCommand;
|
|
2063
|
-
const de_ListWorkgroupsCommandError = async (output, context) => {
|
|
2064
|
-
const parsedOutput = {
|
|
2065
|
-
...output,
|
|
2066
|
-
body: await parseErrorBody(output.body, context),
|
|
2067
|
-
};
|
|
2068
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2069
|
-
switch (errorCode) {
|
|
2070
|
-
case "InternalServerException":
|
|
2071
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2072
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2073
|
-
case "ValidationException":
|
|
2074
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2075
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2076
|
-
default:
|
|
2077
|
-
const parsedBody = parsedOutput.body;
|
|
2078
|
-
return throwDefaultError({
|
|
2079
|
-
output,
|
|
2080
|
-
parsedBody,
|
|
2081
|
-
errorCode,
|
|
2082
|
-
});
|
|
2083
|
-
}
|
|
2084
|
-
};
|
|
2085
|
-
const de_PutResourcePolicyCommand = async (output, context) => {
|
|
2086
|
-
if (output.statusCode >= 300) {
|
|
2087
|
-
return de_PutResourcePolicyCommandError(output, context);
|
|
2088
|
-
}
|
|
2089
|
-
const data = await parseBody(output.body, context);
|
|
2090
|
-
let contents = {};
|
|
2091
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2092
|
-
const response = {
|
|
2093
|
-
$metadata: deserializeMetadata(output),
|
|
2094
|
-
...contents,
|
|
2095
|
-
};
|
|
2096
|
-
return response;
|
|
2097
|
-
};
|
|
2098
|
-
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
2099
|
-
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
2100
|
-
const parsedOutput = {
|
|
2101
|
-
...output,
|
|
2102
|
-
body: await parseErrorBody(output.body, context),
|
|
2103
|
-
};
|
|
2104
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2105
|
-
switch (errorCode) {
|
|
2106
|
-
case "ConflictException":
|
|
2107
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2108
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2109
|
-
case "InternalServerException":
|
|
2110
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2111
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "ResourceNotFoundException":
|
|
2113
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2114
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2115
|
-
case "ServiceQuotaExceededException":
|
|
2116
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
2117
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2118
|
-
case "ValidationException":
|
|
2119
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2120
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2121
|
-
default:
|
|
2122
|
-
const parsedBody = parsedOutput.body;
|
|
2123
|
-
return throwDefaultError({
|
|
2124
|
-
output,
|
|
2125
|
-
parsedBody,
|
|
2126
|
-
errorCode,
|
|
2127
|
-
});
|
|
2128
|
-
}
|
|
2129
|
-
};
|
|
2130
|
-
const de_RestoreFromRecoveryPointCommand = async (output, context) => {
|
|
2131
|
-
if (output.statusCode >= 300) {
|
|
2132
|
-
return de_RestoreFromRecoveryPointCommandError(output, context);
|
|
2133
|
-
}
|
|
2134
|
-
const data = await parseBody(output.body, context);
|
|
2135
|
-
let contents = {};
|
|
2136
|
-
contents = de_RestoreFromRecoveryPointResponse(data, context);
|
|
2137
|
-
const response = {
|
|
2138
|
-
$metadata: deserializeMetadata(output),
|
|
2139
|
-
...contents,
|
|
2140
|
-
};
|
|
2141
|
-
return response;
|
|
2142
|
-
};
|
|
2143
|
-
exports.de_RestoreFromRecoveryPointCommand = de_RestoreFromRecoveryPointCommand;
|
|
2144
|
-
const de_RestoreFromRecoveryPointCommandError = async (output, context) => {
|
|
2145
|
-
const parsedOutput = {
|
|
2146
|
-
...output,
|
|
2147
|
-
body: await parseErrorBody(output.body, context),
|
|
2148
|
-
};
|
|
2149
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2150
|
-
switch (errorCode) {
|
|
2151
|
-
case "ConflictException":
|
|
2152
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2153
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2154
|
-
case "InternalServerException":
|
|
2155
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2156
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2157
|
-
case "ResourceNotFoundException":
|
|
2158
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2159
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2160
|
-
case "ValidationException":
|
|
2161
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2162
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2163
|
-
default:
|
|
2164
|
-
const parsedBody = parsedOutput.body;
|
|
2165
|
-
return throwDefaultError({
|
|
2166
|
-
output,
|
|
2167
|
-
parsedBody,
|
|
2168
|
-
errorCode,
|
|
2169
|
-
});
|
|
2170
|
-
}
|
|
2171
|
-
};
|
|
2172
|
-
const de_RestoreFromSnapshotCommand = async (output, context) => {
|
|
2173
|
-
if (output.statusCode >= 300) {
|
|
2174
|
-
return de_RestoreFromSnapshotCommandError(output, context);
|
|
2175
|
-
}
|
|
2176
|
-
const data = await parseBody(output.body, context);
|
|
2177
|
-
let contents = {};
|
|
2178
|
-
contents = de_RestoreFromSnapshotResponse(data, context);
|
|
2179
|
-
const response = {
|
|
2180
|
-
$metadata: deserializeMetadata(output),
|
|
2181
|
-
...contents,
|
|
2182
|
-
};
|
|
2183
|
-
return response;
|
|
2184
|
-
};
|
|
2185
|
-
exports.de_RestoreFromSnapshotCommand = de_RestoreFromSnapshotCommand;
|
|
2186
|
-
const de_RestoreFromSnapshotCommandError = async (output, context) => {
|
|
2187
|
-
const parsedOutput = {
|
|
2188
|
-
...output,
|
|
2189
|
-
body: await parseErrorBody(output.body, context),
|
|
2190
|
-
};
|
|
2191
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2192
|
-
switch (errorCode) {
|
|
2193
|
-
case "ConflictException":
|
|
2194
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2195
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2196
|
-
case "InternalServerException":
|
|
2197
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2198
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2199
|
-
case "ResourceNotFoundException":
|
|
2200
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2201
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2202
|
-
case "ServiceQuotaExceededException":
|
|
2203
|
-
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
2204
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2205
|
-
case "ValidationException":
|
|
2206
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2207
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2208
|
-
default:
|
|
2209
|
-
const parsedBody = parsedOutput.body;
|
|
2210
|
-
return throwDefaultError({
|
|
2211
|
-
output,
|
|
2212
|
-
parsedBody,
|
|
2213
|
-
errorCode,
|
|
2214
|
-
});
|
|
2215
|
-
}
|
|
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
|
-
};
|
|
2259
|
-
const de_RestoreTableFromSnapshotCommand = async (output, context) => {
|
|
2260
|
-
if (output.statusCode >= 300) {
|
|
2261
|
-
return de_RestoreTableFromSnapshotCommandError(output, context);
|
|
2262
|
-
}
|
|
2263
|
-
const data = await parseBody(output.body, context);
|
|
2264
|
-
let contents = {};
|
|
2265
|
-
contents = de_RestoreTableFromSnapshotResponse(data, context);
|
|
2266
|
-
const response = {
|
|
2267
|
-
$metadata: deserializeMetadata(output),
|
|
2268
|
-
...contents,
|
|
2269
|
-
};
|
|
2270
|
-
return response;
|
|
2271
|
-
};
|
|
2272
|
-
exports.de_RestoreTableFromSnapshotCommand = de_RestoreTableFromSnapshotCommand;
|
|
2273
|
-
const de_RestoreTableFromSnapshotCommandError = async (output, context) => {
|
|
2274
|
-
const parsedOutput = {
|
|
2275
|
-
...output,
|
|
2276
|
-
body: await parseErrorBody(output.body, context),
|
|
2277
|
-
};
|
|
2278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2279
|
-
switch (errorCode) {
|
|
2280
|
-
case "ConflictException":
|
|
2281
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2282
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2283
|
-
case "InternalServerException":
|
|
2284
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2285
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2286
|
-
case "ResourceNotFoundException":
|
|
2287
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2288
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2289
|
-
case "ValidationException":
|
|
2290
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2291
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2292
|
-
default:
|
|
2293
|
-
const parsedBody = parsedOutput.body;
|
|
2294
|
-
return throwDefaultError({
|
|
2295
|
-
output,
|
|
2296
|
-
parsedBody,
|
|
2297
|
-
errorCode,
|
|
2298
|
-
});
|
|
2299
|
-
}
|
|
2300
|
-
};
|
|
2301
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
2302
|
-
if (output.statusCode >= 300) {
|
|
2303
|
-
return de_TagResourceCommandError(output, context);
|
|
2304
|
-
}
|
|
2305
|
-
const data = await parseBody(output.body, context);
|
|
2306
|
-
let contents = {};
|
|
2307
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2308
|
-
const response = {
|
|
2309
|
-
$metadata: deserializeMetadata(output),
|
|
2310
|
-
...contents,
|
|
2311
|
-
};
|
|
2312
|
-
return response;
|
|
2313
|
-
};
|
|
2314
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2315
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2316
|
-
const parsedOutput = {
|
|
2317
|
-
...output,
|
|
2318
|
-
body: await parseErrorBody(output.body, context),
|
|
2319
|
-
};
|
|
2320
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2321
|
-
switch (errorCode) {
|
|
2322
|
-
case "InternalServerException":
|
|
2323
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2324
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2325
|
-
case "ResourceNotFoundException":
|
|
2326
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2327
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2328
|
-
case "ThrottlingException":
|
|
2329
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
2330
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2331
|
-
case "TooManyTagsException":
|
|
2332
|
-
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
2333
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2334
|
-
case "ValidationException":
|
|
2335
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2336
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2337
|
-
default:
|
|
2338
|
-
const parsedBody = parsedOutput.body;
|
|
2339
|
-
return throwDefaultError({
|
|
2340
|
-
output,
|
|
2341
|
-
parsedBody,
|
|
2342
|
-
errorCode,
|
|
2343
|
-
});
|
|
2344
|
-
}
|
|
2345
|
-
};
|
|
2346
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
2347
|
-
if (output.statusCode >= 300) {
|
|
2348
|
-
return de_UntagResourceCommandError(output, context);
|
|
2349
|
-
}
|
|
2350
|
-
const data = await parseBody(output.body, context);
|
|
2351
|
-
let contents = {};
|
|
2352
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2353
|
-
const response = {
|
|
2354
|
-
$metadata: deserializeMetadata(output),
|
|
2355
|
-
...contents,
|
|
2356
|
-
};
|
|
2357
|
-
return response;
|
|
2358
|
-
};
|
|
2359
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2360
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2361
|
-
const parsedOutput = {
|
|
2362
|
-
...output,
|
|
2363
|
-
body: await parseErrorBody(output.body, context),
|
|
2364
|
-
};
|
|
2365
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2366
|
-
switch (errorCode) {
|
|
2367
|
-
case "InternalServerException":
|
|
2368
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2369
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2370
|
-
case "ResourceNotFoundException":
|
|
2371
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2372
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2373
|
-
case "ThrottlingException":
|
|
2374
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
2375
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2376
|
-
case "ValidationException":
|
|
2377
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2378
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2379
|
-
default:
|
|
2380
|
-
const parsedBody = parsedOutput.body;
|
|
2381
|
-
return throwDefaultError({
|
|
2382
|
-
output,
|
|
2383
|
-
parsedBody,
|
|
2384
|
-
errorCode,
|
|
2385
|
-
});
|
|
2386
|
-
}
|
|
2387
|
-
};
|
|
2388
|
-
const de_UpdateCustomDomainAssociationCommand = async (output, context) => {
|
|
2389
|
-
if (output.statusCode >= 300) {
|
|
2390
|
-
return de_UpdateCustomDomainAssociationCommandError(output, context);
|
|
2391
|
-
}
|
|
2392
|
-
const data = await parseBody(output.body, context);
|
|
2393
|
-
let contents = {};
|
|
2394
|
-
contents = de_UpdateCustomDomainAssociationResponse(data, context);
|
|
2395
|
-
const response = {
|
|
2396
|
-
$metadata: deserializeMetadata(output),
|
|
2397
|
-
...contents,
|
|
2398
|
-
};
|
|
2399
|
-
return response;
|
|
2400
|
-
};
|
|
2401
|
-
exports.de_UpdateCustomDomainAssociationCommand = de_UpdateCustomDomainAssociationCommand;
|
|
2402
|
-
const de_UpdateCustomDomainAssociationCommandError = async (output, context) => {
|
|
2403
|
-
const parsedOutput = {
|
|
2404
|
-
...output,
|
|
2405
|
-
body: await parseErrorBody(output.body, context),
|
|
2406
|
-
};
|
|
2407
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2408
|
-
switch (errorCode) {
|
|
2409
|
-
case "AccessDeniedException":
|
|
2410
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
2411
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2412
|
-
case "ConflictException":
|
|
2413
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2414
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "InternalServerException":
|
|
2416
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2417
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2418
|
-
case "ResourceNotFoundException":
|
|
2419
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2420
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2421
|
-
case "ThrottlingException":
|
|
2422
|
-
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
2423
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2424
|
-
case "ValidationException":
|
|
2425
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2426
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2427
|
-
default:
|
|
2428
|
-
const parsedBody = parsedOutput.body;
|
|
2429
|
-
return throwDefaultError({
|
|
2430
|
-
output,
|
|
2431
|
-
parsedBody,
|
|
2432
|
-
errorCode,
|
|
2433
|
-
});
|
|
2434
|
-
}
|
|
2435
|
-
};
|
|
2436
|
-
const de_UpdateEndpointAccessCommand = async (output, context) => {
|
|
2437
|
-
if (output.statusCode >= 300) {
|
|
2438
|
-
return de_UpdateEndpointAccessCommandError(output, context);
|
|
2439
|
-
}
|
|
2440
|
-
const data = await parseBody(output.body, context);
|
|
2441
|
-
let contents = {};
|
|
2442
|
-
contents = de_UpdateEndpointAccessResponse(data, context);
|
|
2443
|
-
const response = {
|
|
2444
|
-
$metadata: deserializeMetadata(output),
|
|
2445
|
-
...contents,
|
|
2446
|
-
};
|
|
2447
|
-
return response;
|
|
2448
|
-
};
|
|
2449
|
-
exports.de_UpdateEndpointAccessCommand = de_UpdateEndpointAccessCommand;
|
|
2450
|
-
const de_UpdateEndpointAccessCommandError = async (output, context) => {
|
|
2451
|
-
const parsedOutput = {
|
|
2452
|
-
...output,
|
|
2453
|
-
body: await parseErrorBody(output.body, context),
|
|
2454
|
-
};
|
|
2455
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2456
|
-
switch (errorCode) {
|
|
2457
|
-
case "AccessDeniedException":
|
|
2458
|
-
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
2459
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2460
|
-
case "ConflictException":
|
|
2461
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2462
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2463
|
-
case "InternalServerException":
|
|
2464
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2465
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2466
|
-
case "ResourceNotFoundException":
|
|
2467
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2468
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2469
|
-
case "ValidationException":
|
|
2470
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2471
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2472
|
-
default:
|
|
2473
|
-
const parsedBody = parsedOutput.body;
|
|
2474
|
-
return throwDefaultError({
|
|
2475
|
-
output,
|
|
2476
|
-
parsedBody,
|
|
2477
|
-
errorCode,
|
|
2478
|
-
});
|
|
2479
|
-
}
|
|
2480
|
-
};
|
|
2481
|
-
const de_UpdateNamespaceCommand = async (output, context) => {
|
|
2482
|
-
if (output.statusCode >= 300) {
|
|
2483
|
-
return de_UpdateNamespaceCommandError(output, context);
|
|
2484
|
-
}
|
|
2485
|
-
const data = await parseBody(output.body, context);
|
|
2486
|
-
let contents = {};
|
|
2487
|
-
contents = de_UpdateNamespaceResponse(data, context);
|
|
2488
|
-
const response = {
|
|
2489
|
-
$metadata: deserializeMetadata(output),
|
|
2490
|
-
...contents,
|
|
2491
|
-
};
|
|
2492
|
-
return response;
|
|
2493
|
-
};
|
|
2494
|
-
exports.de_UpdateNamespaceCommand = de_UpdateNamespaceCommand;
|
|
2495
|
-
const de_UpdateNamespaceCommandError = async (output, context) => {
|
|
2496
|
-
const parsedOutput = {
|
|
2497
|
-
...output,
|
|
2498
|
-
body: await parseErrorBody(output.body, context),
|
|
2499
|
-
};
|
|
2500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2501
|
-
switch (errorCode) {
|
|
2502
|
-
case "ConflictException":
|
|
2503
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2504
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2505
|
-
case "InternalServerException":
|
|
2506
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2507
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2508
|
-
case "ResourceNotFoundException":
|
|
2509
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2510
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2511
|
-
case "ValidationException":
|
|
2512
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2513
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2514
|
-
default:
|
|
2515
|
-
const parsedBody = parsedOutput.body;
|
|
2516
|
-
return throwDefaultError({
|
|
2517
|
-
output,
|
|
2518
|
-
parsedBody,
|
|
2519
|
-
errorCode,
|
|
2520
|
-
});
|
|
2521
|
-
}
|
|
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
|
-
};
|
|
2565
|
-
const de_UpdateSnapshotCommand = async (output, context) => {
|
|
2566
|
-
if (output.statusCode >= 300) {
|
|
2567
|
-
return de_UpdateSnapshotCommandError(output, context);
|
|
2568
|
-
}
|
|
2569
|
-
const data = await parseBody(output.body, context);
|
|
2570
|
-
let contents = {};
|
|
2571
|
-
contents = de_UpdateSnapshotResponse(data, context);
|
|
2572
|
-
const response = {
|
|
2573
|
-
$metadata: deserializeMetadata(output),
|
|
2574
|
-
...contents,
|
|
2575
|
-
};
|
|
2576
|
-
return response;
|
|
2577
|
-
};
|
|
2578
|
-
exports.de_UpdateSnapshotCommand = de_UpdateSnapshotCommand;
|
|
2579
|
-
const de_UpdateSnapshotCommandError = async (output, context) => {
|
|
2580
|
-
const parsedOutput = {
|
|
2581
|
-
...output,
|
|
2582
|
-
body: await parseErrorBody(output.body, context),
|
|
2583
|
-
};
|
|
2584
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2585
|
-
switch (errorCode) {
|
|
2586
|
-
case "ConflictException":
|
|
2587
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2588
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2589
|
-
case "InternalServerException":
|
|
2590
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2591
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2592
|
-
case "ResourceNotFoundException":
|
|
2593
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2594
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2595
|
-
case "ValidationException":
|
|
2596
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2597
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2598
|
-
default:
|
|
2599
|
-
const parsedBody = parsedOutput.body;
|
|
2600
|
-
return throwDefaultError({
|
|
2601
|
-
output,
|
|
2602
|
-
parsedBody,
|
|
2603
|
-
errorCode,
|
|
2604
|
-
});
|
|
2605
|
-
}
|
|
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
|
-
};
|
|
2652
|
-
const de_UpdateUsageLimitCommand = async (output, context) => {
|
|
2653
|
-
if (output.statusCode >= 300) {
|
|
2654
|
-
return de_UpdateUsageLimitCommandError(output, context);
|
|
2655
|
-
}
|
|
2656
|
-
const data = await parseBody(output.body, context);
|
|
2657
|
-
let contents = {};
|
|
2658
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2659
|
-
const response = {
|
|
2660
|
-
$metadata: deserializeMetadata(output),
|
|
2661
|
-
...contents,
|
|
2662
|
-
};
|
|
2663
|
-
return response;
|
|
2664
|
-
};
|
|
2665
|
-
exports.de_UpdateUsageLimitCommand = de_UpdateUsageLimitCommand;
|
|
2666
|
-
const de_UpdateUsageLimitCommandError = async (output, context) => {
|
|
2667
|
-
const parsedOutput = {
|
|
2668
|
-
...output,
|
|
2669
|
-
body: await parseErrorBody(output.body, context),
|
|
2670
|
-
};
|
|
2671
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2672
|
-
switch (errorCode) {
|
|
2673
|
-
case "ConflictException":
|
|
2674
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2675
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2676
|
-
case "InternalServerException":
|
|
2677
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2678
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2679
|
-
case "ResourceNotFoundException":
|
|
2680
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2681
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2682
|
-
case "ValidationException":
|
|
2683
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2684
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2685
|
-
default:
|
|
2686
|
-
const parsedBody = parsedOutput.body;
|
|
2687
|
-
return throwDefaultError({
|
|
2688
|
-
output,
|
|
2689
|
-
parsedBody,
|
|
2690
|
-
errorCode,
|
|
2691
|
-
});
|
|
2692
|
-
}
|
|
2693
|
-
};
|
|
2694
|
-
const de_UpdateWorkgroupCommand = async (output, context) => {
|
|
2695
|
-
if (output.statusCode >= 300) {
|
|
2696
|
-
return de_UpdateWorkgroupCommandError(output, context);
|
|
2697
|
-
}
|
|
2698
|
-
const data = await parseBody(output.body, context);
|
|
2699
|
-
let contents = {};
|
|
2700
|
-
contents = de_UpdateWorkgroupResponse(data, context);
|
|
2701
|
-
const response = {
|
|
2702
|
-
$metadata: deserializeMetadata(output),
|
|
2703
|
-
...contents,
|
|
2704
|
-
};
|
|
2705
|
-
return response;
|
|
2706
|
-
};
|
|
2707
|
-
exports.de_UpdateWorkgroupCommand = de_UpdateWorkgroupCommand;
|
|
2708
|
-
const de_UpdateWorkgroupCommandError = async (output, context) => {
|
|
2709
|
-
const parsedOutput = {
|
|
2710
|
-
...output,
|
|
2711
|
-
body: await parseErrorBody(output.body, context),
|
|
2712
|
-
};
|
|
2713
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2714
|
-
switch (errorCode) {
|
|
2715
|
-
case "ConflictException":
|
|
2716
|
-
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2717
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "InsufficientCapacityException":
|
|
2719
|
-
case "com.amazonaws.redshiftserverless#InsufficientCapacityException":
|
|
2720
|
-
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
2721
|
-
case "InternalServerException":
|
|
2722
|
-
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2723
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2724
|
-
case "ResourceNotFoundException":
|
|
2725
|
-
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2726
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2727
|
-
case "ValidationException":
|
|
2728
|
-
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2729
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2730
|
-
default:
|
|
2731
|
-
const parsedBody = parsedOutput.body;
|
|
2732
|
-
return throwDefaultError({
|
|
2733
|
-
output,
|
|
2734
|
-
parsedBody,
|
|
2735
|
-
errorCode,
|
|
2736
|
-
});
|
|
2737
|
-
}
|
|
2738
|
-
};
|
|
2739
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2740
|
-
const body = parsedOutput.body;
|
|
2741
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2742
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
2743
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2744
|
-
...deserialized,
|
|
2745
|
-
});
|
|
2746
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2747
|
-
};
|
|
2748
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2749
|
-
const body = parsedOutput.body;
|
|
2750
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2751
|
-
const exception = new models_0_1.ConflictException({
|
|
2752
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2753
|
-
...deserialized,
|
|
2754
|
-
});
|
|
2755
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2756
|
-
};
|
|
2757
|
-
const de_InsufficientCapacityExceptionRes = async (parsedOutput, context) => {
|
|
2758
|
-
const body = parsedOutput.body;
|
|
2759
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2760
|
-
const exception = new models_0_1.InsufficientCapacityException({
|
|
2761
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2762
|
-
...deserialized,
|
|
2763
|
-
});
|
|
2764
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2765
|
-
};
|
|
2766
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2767
|
-
const body = parsedOutput.body;
|
|
2768
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2769
|
-
const exception = new models_0_1.InternalServerException({
|
|
2770
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2771
|
-
...deserialized,
|
|
2772
|
-
});
|
|
2773
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2774
|
-
};
|
|
2775
|
-
const de_InvalidPaginationExceptionRes = async (parsedOutput, context) => {
|
|
2776
|
-
const body = parsedOutput.body;
|
|
2777
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2778
|
-
const exception = new models_0_1.InvalidPaginationException({
|
|
2779
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2780
|
-
...deserialized,
|
|
2781
|
-
});
|
|
2782
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2783
|
-
};
|
|
2784
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2785
|
-
const body = parsedOutput.body;
|
|
2786
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2787
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
2788
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2789
|
-
...deserialized,
|
|
2790
|
-
});
|
|
2791
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2792
|
-
};
|
|
2793
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2794
|
-
const body = parsedOutput.body;
|
|
2795
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2796
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2797
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2798
|
-
...deserialized,
|
|
2799
|
-
});
|
|
2800
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2801
|
-
};
|
|
2802
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2803
|
-
const body = parsedOutput.body;
|
|
2804
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2805
|
-
const exception = new models_0_1.ThrottlingException({
|
|
2806
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2807
|
-
...deserialized,
|
|
2808
|
-
});
|
|
2809
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2810
|
-
};
|
|
2811
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
2812
|
-
const body = parsedOutput.body;
|
|
2813
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2814
|
-
const exception = new models_0_1.TooManyTagsException({
|
|
2815
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2816
|
-
...deserialized,
|
|
2817
|
-
});
|
|
2818
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2819
|
-
};
|
|
2820
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2821
|
-
const body = parsedOutput.body;
|
|
2822
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2823
|
-
const exception = new models_0_1.ValidationException({
|
|
2824
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2825
|
-
...deserialized,
|
|
2826
|
-
});
|
|
2827
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
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
|
-
};
|
|
2842
|
-
const se_ListRecoveryPointsRequest = (input, context) => {
|
|
2843
|
-
return (0, smithy_client_1.take)(input, {
|
|
2844
|
-
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
2845
|
-
maxResults: [],
|
|
2846
|
-
namespaceArn: [],
|
|
2847
|
-
namespaceName: [],
|
|
2848
|
-
nextToken: [],
|
|
2849
|
-
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
2850
|
-
});
|
|
2851
|
-
};
|
|
2852
|
-
const se_ListSnapshotsRequest = (input, context) => {
|
|
2853
|
-
return (0, smithy_client_1.take)(input, {
|
|
2854
|
-
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
2855
|
-
maxResults: [],
|
|
2856
|
-
namespaceArn: [],
|
|
2857
|
-
namespaceName: [],
|
|
2858
|
-
nextToken: [],
|
|
2859
|
-
ownerAccount: [],
|
|
2860
|
-
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
2861
|
-
});
|
|
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
|
-
};
|
|
2882
|
-
const de_Association = (output, context) => {
|
|
2883
|
-
return (0, smithy_client_1.take)(output, {
|
|
2884
|
-
customDomainCertificateArn: smithy_client_1.expectString,
|
|
2885
|
-
customDomainCertificateExpiryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2886
|
-
customDomainName: smithy_client_1.expectString,
|
|
2887
|
-
workgroupName: smithy_client_1.expectString,
|
|
2888
|
-
});
|
|
2889
|
-
};
|
|
2890
|
-
const de_AssociationList = (output, context) => {
|
|
2891
|
-
const retVal = (output || [])
|
|
2892
|
-
.filter((e) => e != null)
|
|
2893
|
-
.map((entry) => {
|
|
2894
|
-
return de_Association(entry, context);
|
|
2895
|
-
});
|
|
2896
|
-
return retVal;
|
|
2897
|
-
};
|
|
2898
|
-
const de_ConvertRecoveryPointToSnapshotResponse = (output, context) => {
|
|
2899
|
-
return (0, smithy_client_1.take)(output, {
|
|
2900
|
-
snapshot: (_) => de_Snapshot(_, context),
|
|
2901
|
-
});
|
|
2902
|
-
};
|
|
2903
|
-
const de_CreateCustomDomainAssociationResponse = (output, context) => {
|
|
2904
|
-
return (0, smithy_client_1.take)(output, {
|
|
2905
|
-
customDomainCertificateArn: smithy_client_1.expectString,
|
|
2906
|
-
customDomainCertificateExpiryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2907
|
-
customDomainName: smithy_client_1.expectString,
|
|
2908
|
-
workgroupName: smithy_client_1.expectString,
|
|
2909
|
-
});
|
|
2910
|
-
};
|
|
2911
|
-
const de_CreateEndpointAccessResponse = (output, context) => {
|
|
2912
|
-
return (0, smithy_client_1.take)(output, {
|
|
2913
|
-
endpoint: (_) => de_EndpointAccess(_, context),
|
|
2914
|
-
});
|
|
2915
|
-
};
|
|
2916
|
-
const de_CreateNamespaceResponse = (output, context) => {
|
|
2917
|
-
return (0, smithy_client_1.take)(output, {
|
|
2918
|
-
namespace: (_) => de_Namespace(_, context),
|
|
2919
|
-
});
|
|
2920
|
-
};
|
|
2921
|
-
const de_CreateScheduledActionResponse = (output, context) => {
|
|
2922
|
-
return (0, smithy_client_1.take)(output, {
|
|
2923
|
-
scheduledAction: (_) => de_ScheduledActionResponse(_, context),
|
|
2924
|
-
});
|
|
2925
|
-
};
|
|
2926
|
-
const de_CreateSnapshotResponse = (output, context) => {
|
|
2927
|
-
return (0, smithy_client_1.take)(output, {
|
|
2928
|
-
snapshot: (_) => de_Snapshot(_, context),
|
|
2929
|
-
});
|
|
2930
|
-
};
|
|
2931
|
-
const de_CreateWorkgroupResponse = (output, context) => {
|
|
2932
|
-
return (0, smithy_client_1.take)(output, {
|
|
2933
|
-
workgroup: (_) => de_Workgroup(_, context),
|
|
2934
|
-
});
|
|
2935
|
-
};
|
|
2936
|
-
const de_DeleteEndpointAccessResponse = (output, context) => {
|
|
2937
|
-
return (0, smithy_client_1.take)(output, {
|
|
2938
|
-
endpoint: (_) => de_EndpointAccess(_, context),
|
|
2939
|
-
});
|
|
2940
|
-
};
|
|
2941
|
-
const de_DeleteNamespaceResponse = (output, context) => {
|
|
2942
|
-
return (0, smithy_client_1.take)(output, {
|
|
2943
|
-
namespace: (_) => de_Namespace(_, context),
|
|
2944
|
-
});
|
|
2945
|
-
};
|
|
2946
|
-
const de_DeleteScheduledActionResponse = (output, context) => {
|
|
2947
|
-
return (0, smithy_client_1.take)(output, {
|
|
2948
|
-
scheduledAction: (_) => de_ScheduledActionResponse(_, context),
|
|
2949
|
-
});
|
|
2950
|
-
};
|
|
2951
|
-
const de_DeleteSnapshotResponse = (output, context) => {
|
|
2952
|
-
return (0, smithy_client_1.take)(output, {
|
|
2953
|
-
snapshot: (_) => de_Snapshot(_, context),
|
|
2954
|
-
});
|
|
2955
|
-
};
|
|
2956
|
-
const de_DeleteWorkgroupResponse = (output, context) => {
|
|
2957
|
-
return (0, smithy_client_1.take)(output, {
|
|
2958
|
-
workgroup: (_) => de_Workgroup(_, context),
|
|
2959
|
-
});
|
|
2960
|
-
};
|
|
2961
|
-
const de_EndpointAccess = (output, context) => {
|
|
2962
|
-
return (0, smithy_client_1.take)(output, {
|
|
2963
|
-
address: smithy_client_1.expectString,
|
|
2964
|
-
endpointArn: smithy_client_1.expectString,
|
|
2965
|
-
endpointCreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2966
|
-
endpointName: smithy_client_1.expectString,
|
|
2967
|
-
endpointStatus: smithy_client_1.expectString,
|
|
2968
|
-
port: smithy_client_1.expectInt32,
|
|
2969
|
-
subnetIds: smithy_client_1._json,
|
|
2970
|
-
vpcEndpoint: smithy_client_1._json,
|
|
2971
|
-
vpcSecurityGroups: smithy_client_1._json,
|
|
2972
|
-
workgroupName: smithy_client_1.expectString,
|
|
2973
|
-
});
|
|
2974
|
-
};
|
|
2975
|
-
const de_EndpointAccessList = (output, context) => {
|
|
2976
|
-
const retVal = (output || [])
|
|
2977
|
-
.filter((e) => e != null)
|
|
2978
|
-
.map((entry) => {
|
|
2979
|
-
return de_EndpointAccess(entry, context);
|
|
2980
|
-
});
|
|
2981
|
-
return retVal;
|
|
2982
|
-
};
|
|
2983
|
-
const de_GetCredentialsResponse = (output, context) => {
|
|
2984
|
-
return (0, smithy_client_1.take)(output, {
|
|
2985
|
-
dbPassword: smithy_client_1.expectString,
|
|
2986
|
-
dbUser: smithy_client_1.expectString,
|
|
2987
|
-
expiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2988
|
-
nextRefreshTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2989
|
-
});
|
|
2990
|
-
};
|
|
2991
|
-
const de_GetCustomDomainAssociationResponse = (output, context) => {
|
|
2992
|
-
return (0, smithy_client_1.take)(output, {
|
|
2993
|
-
customDomainCertificateArn: smithy_client_1.expectString,
|
|
2994
|
-
customDomainCertificateExpiryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2995
|
-
customDomainName: smithy_client_1.expectString,
|
|
2996
|
-
workgroupName: smithy_client_1.expectString,
|
|
2997
|
-
});
|
|
2998
|
-
};
|
|
2999
|
-
const de_GetEndpointAccessResponse = (output, context) => {
|
|
3000
|
-
return (0, smithy_client_1.take)(output, {
|
|
3001
|
-
endpoint: (_) => de_EndpointAccess(_, context),
|
|
3002
|
-
});
|
|
3003
|
-
};
|
|
3004
|
-
const de_GetNamespaceResponse = (output, context) => {
|
|
3005
|
-
return (0, smithy_client_1.take)(output, {
|
|
3006
|
-
namespace: (_) => de_Namespace(_, context),
|
|
3007
|
-
});
|
|
3008
|
-
};
|
|
3009
|
-
const de_GetRecoveryPointResponse = (output, context) => {
|
|
3010
|
-
return (0, smithy_client_1.take)(output, {
|
|
3011
|
-
recoveryPoint: (_) => de_RecoveryPoint(_, context),
|
|
3012
|
-
});
|
|
3013
|
-
};
|
|
3014
|
-
const de_GetScheduledActionResponse = (output, context) => {
|
|
3015
|
-
return (0, smithy_client_1.take)(output, {
|
|
3016
|
-
scheduledAction: (_) => de_ScheduledActionResponse(_, context),
|
|
3017
|
-
});
|
|
3018
|
-
};
|
|
3019
|
-
const de_GetSnapshotResponse = (output, context) => {
|
|
3020
|
-
return (0, smithy_client_1.take)(output, {
|
|
3021
|
-
snapshot: (_) => de_Snapshot(_, context),
|
|
3022
|
-
});
|
|
3023
|
-
};
|
|
3024
|
-
const de_GetTableRestoreStatusResponse = (output, context) => {
|
|
3025
|
-
return (0, smithy_client_1.take)(output, {
|
|
3026
|
-
tableRestoreStatus: (_) => de_TableRestoreStatus(_, context),
|
|
3027
|
-
});
|
|
3028
|
-
};
|
|
3029
|
-
const de_GetWorkgroupResponse = (output, context) => {
|
|
3030
|
-
return (0, smithy_client_1.take)(output, {
|
|
3031
|
-
workgroup: (_) => de_Workgroup(_, context),
|
|
3032
|
-
});
|
|
3033
|
-
};
|
|
3034
|
-
const de_ListCustomDomainAssociationsResponse = (output, context) => {
|
|
3035
|
-
return (0, smithy_client_1.take)(output, {
|
|
3036
|
-
associations: (_) => de_AssociationList(_, context),
|
|
3037
|
-
nextToken: smithy_client_1.expectString,
|
|
3038
|
-
});
|
|
3039
|
-
};
|
|
3040
|
-
const de_ListEndpointAccessResponse = (output, context) => {
|
|
3041
|
-
return (0, smithy_client_1.take)(output, {
|
|
3042
|
-
endpoints: (_) => de_EndpointAccessList(_, context),
|
|
3043
|
-
nextToken: smithy_client_1.expectString,
|
|
3044
|
-
});
|
|
3045
|
-
};
|
|
3046
|
-
const de_ListNamespacesResponse = (output, context) => {
|
|
3047
|
-
return (0, smithy_client_1.take)(output, {
|
|
3048
|
-
namespaces: (_) => de_NamespaceList(_, context),
|
|
3049
|
-
nextToken: smithy_client_1.expectString,
|
|
3050
|
-
});
|
|
3051
|
-
};
|
|
3052
|
-
const de_ListRecoveryPointsResponse = (output, context) => {
|
|
3053
|
-
return (0, smithy_client_1.take)(output, {
|
|
3054
|
-
nextToken: smithy_client_1.expectString,
|
|
3055
|
-
recoveryPoints: (_) => de_RecoveryPointList(_, context),
|
|
3056
|
-
});
|
|
3057
|
-
};
|
|
3058
|
-
const de_ListSnapshotsResponse = (output, context) => {
|
|
3059
|
-
return (0, smithy_client_1.take)(output, {
|
|
3060
|
-
nextToken: smithy_client_1.expectString,
|
|
3061
|
-
snapshots: (_) => de_SnapshotList(_, context),
|
|
3062
|
-
});
|
|
3063
|
-
};
|
|
3064
|
-
const de_ListTableRestoreStatusResponse = (output, context) => {
|
|
3065
|
-
return (0, smithy_client_1.take)(output, {
|
|
3066
|
-
nextToken: smithy_client_1.expectString,
|
|
3067
|
-
tableRestoreStatuses: (_) => de_TableRestoreStatusList(_, context),
|
|
3068
|
-
});
|
|
3069
|
-
};
|
|
3070
|
-
const de_ListWorkgroupsResponse = (output, context) => {
|
|
3071
|
-
return (0, smithy_client_1.take)(output, {
|
|
3072
|
-
nextToken: smithy_client_1.expectString,
|
|
3073
|
-
workgroups: (_) => de_WorkgroupList(_, context),
|
|
3074
|
-
});
|
|
3075
|
-
};
|
|
3076
|
-
const de_Namespace = (output, context) => {
|
|
3077
|
-
return (0, smithy_client_1.take)(output, {
|
|
3078
|
-
adminPasswordSecretArn: smithy_client_1.expectString,
|
|
3079
|
-
adminPasswordSecretKmsKeyId: smithy_client_1.expectString,
|
|
3080
|
-
adminUsername: smithy_client_1.expectString,
|
|
3081
|
-
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3082
|
-
dbName: smithy_client_1.expectString,
|
|
3083
|
-
defaultIamRoleArn: smithy_client_1.expectString,
|
|
3084
|
-
iamRoles: smithy_client_1._json,
|
|
3085
|
-
kmsKeyId: smithy_client_1.expectString,
|
|
3086
|
-
logExports: smithy_client_1._json,
|
|
3087
|
-
namespaceArn: smithy_client_1.expectString,
|
|
3088
|
-
namespaceId: smithy_client_1.expectString,
|
|
3089
|
-
namespaceName: smithy_client_1.expectString,
|
|
3090
|
-
status: smithy_client_1.expectString,
|
|
3091
|
-
});
|
|
3092
|
-
};
|
|
3093
|
-
const de_NamespaceList = (output, context) => {
|
|
3094
|
-
const retVal = (output || [])
|
|
3095
|
-
.filter((e) => e != null)
|
|
3096
|
-
.map((entry) => {
|
|
3097
|
-
return de_Namespace(entry, context);
|
|
3098
|
-
});
|
|
3099
|
-
return retVal;
|
|
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
|
-
};
|
|
3109
|
-
const de_RecoveryPoint = (output, context) => {
|
|
3110
|
-
return (0, smithy_client_1.take)(output, {
|
|
3111
|
-
namespaceArn: smithy_client_1.expectString,
|
|
3112
|
-
namespaceName: smithy_client_1.expectString,
|
|
3113
|
-
recoveryPointCreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3114
|
-
recoveryPointId: smithy_client_1.expectString,
|
|
3115
|
-
totalSizeInMegaBytes: smithy_client_1.limitedParseDouble,
|
|
3116
|
-
workgroupName: smithy_client_1.expectString,
|
|
3117
|
-
});
|
|
3118
|
-
};
|
|
3119
|
-
const de_RecoveryPointList = (output, context) => {
|
|
3120
|
-
const retVal = (output || [])
|
|
3121
|
-
.filter((e) => e != null)
|
|
3122
|
-
.map((entry) => {
|
|
3123
|
-
return de_RecoveryPoint(entry, context);
|
|
3124
|
-
});
|
|
3125
|
-
return retVal;
|
|
3126
|
-
};
|
|
3127
|
-
const de_RestoreFromRecoveryPointResponse = (output, context) => {
|
|
3128
|
-
return (0, smithy_client_1.take)(output, {
|
|
3129
|
-
namespace: (_) => de_Namespace(_, context),
|
|
3130
|
-
recoveryPointId: smithy_client_1.expectString,
|
|
3131
|
-
});
|
|
3132
|
-
};
|
|
3133
|
-
const de_RestoreFromSnapshotResponse = (output, context) => {
|
|
3134
|
-
return (0, smithy_client_1.take)(output, {
|
|
3135
|
-
namespace: (_) => de_Namespace(_, context),
|
|
3136
|
-
ownerAccount: smithy_client_1.expectString,
|
|
3137
|
-
snapshotName: smithy_client_1.expectString,
|
|
3138
|
-
});
|
|
3139
|
-
};
|
|
3140
|
-
const de_RestoreTableFromRecoveryPointResponse = (output, context) => {
|
|
3141
|
-
return (0, smithy_client_1.take)(output, {
|
|
3142
|
-
tableRestoreStatus: (_) => de_TableRestoreStatus(_, context),
|
|
3143
|
-
});
|
|
3144
|
-
};
|
|
3145
|
-
const de_RestoreTableFromSnapshotResponse = (output, context) => {
|
|
3146
|
-
return (0, smithy_client_1.take)(output, {
|
|
3147
|
-
tableRestoreStatus: (_) => de_TableRestoreStatus(_, context),
|
|
3148
|
-
});
|
|
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
|
-
};
|
|
3176
|
-
const de_Snapshot = (output, context) => {
|
|
3177
|
-
return (0, smithy_client_1.take)(output, {
|
|
3178
|
-
accountsWithProvisionedRestoreAccess: smithy_client_1._json,
|
|
3179
|
-
accountsWithRestoreAccess: smithy_client_1._json,
|
|
3180
|
-
actualIncrementalBackupSizeInMegaBytes: smithy_client_1.limitedParseDouble,
|
|
3181
|
-
adminPasswordSecretArn: smithy_client_1.expectString,
|
|
3182
|
-
adminPasswordSecretKmsKeyId: smithy_client_1.expectString,
|
|
3183
|
-
adminUsername: smithy_client_1.expectString,
|
|
3184
|
-
backupProgressInMegaBytes: smithy_client_1.limitedParseDouble,
|
|
3185
|
-
currentBackupRateInMegaBytesPerSecond: smithy_client_1.limitedParseDouble,
|
|
3186
|
-
elapsedTimeInSeconds: smithy_client_1.expectLong,
|
|
3187
|
-
estimatedSecondsToCompletion: smithy_client_1.expectLong,
|
|
3188
|
-
kmsKeyId: smithy_client_1.expectString,
|
|
3189
|
-
namespaceArn: smithy_client_1.expectString,
|
|
3190
|
-
namespaceName: smithy_client_1.expectString,
|
|
3191
|
-
ownerAccount: smithy_client_1.expectString,
|
|
3192
|
-
snapshotArn: smithy_client_1.expectString,
|
|
3193
|
-
snapshotCreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3194
|
-
snapshotName: smithy_client_1.expectString,
|
|
3195
|
-
snapshotRemainingDays: smithy_client_1.expectInt32,
|
|
3196
|
-
snapshotRetentionPeriod: smithy_client_1.expectInt32,
|
|
3197
|
-
snapshotRetentionStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3198
|
-
status: smithy_client_1.expectString,
|
|
3199
|
-
totalBackupSizeInMegaBytes: smithy_client_1.limitedParseDouble,
|
|
3200
|
-
});
|
|
3201
|
-
};
|
|
3202
|
-
const de_SnapshotList = (output, context) => {
|
|
3203
|
-
const retVal = (output || [])
|
|
3204
|
-
.filter((e) => e != null)
|
|
3205
|
-
.map((entry) => {
|
|
3206
|
-
return de_Snapshot(entry, context);
|
|
3207
|
-
});
|
|
3208
|
-
return retVal;
|
|
3209
|
-
};
|
|
3210
|
-
const de_TableRestoreStatus = (output, context) => {
|
|
3211
|
-
return (0, smithy_client_1.take)(output, {
|
|
3212
|
-
message: smithy_client_1.expectString,
|
|
3213
|
-
namespaceName: smithy_client_1.expectString,
|
|
3214
|
-
newTableName: smithy_client_1.expectString,
|
|
3215
|
-
progressInMegaBytes: smithy_client_1.expectLong,
|
|
3216
|
-
recoveryPointId: smithy_client_1.expectString,
|
|
3217
|
-
requestTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3218
|
-
snapshotName: smithy_client_1.expectString,
|
|
3219
|
-
sourceDatabaseName: smithy_client_1.expectString,
|
|
3220
|
-
sourceSchemaName: smithy_client_1.expectString,
|
|
3221
|
-
sourceTableName: smithy_client_1.expectString,
|
|
3222
|
-
status: smithy_client_1.expectString,
|
|
3223
|
-
tableRestoreRequestId: smithy_client_1.expectString,
|
|
3224
|
-
targetDatabaseName: smithy_client_1.expectString,
|
|
3225
|
-
targetSchemaName: smithy_client_1.expectString,
|
|
3226
|
-
totalDataInMegaBytes: smithy_client_1.expectLong,
|
|
3227
|
-
workgroupName: smithy_client_1.expectString,
|
|
3228
|
-
});
|
|
3229
|
-
};
|
|
3230
|
-
const de_TableRestoreStatusList = (output, context) => {
|
|
3231
|
-
const retVal = (output || [])
|
|
3232
|
-
.filter((e) => e != null)
|
|
3233
|
-
.map((entry) => {
|
|
3234
|
-
return de_TableRestoreStatus(entry, context);
|
|
3235
|
-
});
|
|
3236
|
-
return retVal;
|
|
3237
|
-
};
|
|
3238
|
-
const de_UpdateCustomDomainAssociationResponse = (output, context) => {
|
|
3239
|
-
return (0, smithy_client_1.take)(output, {
|
|
3240
|
-
customDomainCertificateArn: smithy_client_1.expectString,
|
|
3241
|
-
customDomainCertificateExpiryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3242
|
-
customDomainName: smithy_client_1.expectString,
|
|
3243
|
-
workgroupName: smithy_client_1.expectString,
|
|
3244
|
-
});
|
|
3245
|
-
};
|
|
3246
|
-
const de_UpdateEndpointAccessResponse = (output, context) => {
|
|
3247
|
-
return (0, smithy_client_1.take)(output, {
|
|
3248
|
-
endpoint: (_) => de_EndpointAccess(_, context),
|
|
3249
|
-
});
|
|
3250
|
-
};
|
|
3251
|
-
const de_UpdateNamespaceResponse = (output, context) => {
|
|
3252
|
-
return (0, smithy_client_1.take)(output, {
|
|
3253
|
-
namespace: (_) => de_Namespace(_, context),
|
|
3254
|
-
});
|
|
3255
|
-
};
|
|
3256
|
-
const de_UpdateScheduledActionResponse = (output, context) => {
|
|
3257
|
-
return (0, smithy_client_1.take)(output, {
|
|
3258
|
-
scheduledAction: (_) => de_ScheduledActionResponse(_, context),
|
|
3259
|
-
});
|
|
3260
|
-
};
|
|
3261
|
-
const de_UpdateSnapshotResponse = (output, context) => {
|
|
3262
|
-
return (0, smithy_client_1.take)(output, {
|
|
3263
|
-
snapshot: (_) => de_Snapshot(_, context),
|
|
3264
|
-
});
|
|
3265
|
-
};
|
|
3266
|
-
const de_UpdateWorkgroupResponse = (output, context) => {
|
|
3267
|
-
return (0, smithy_client_1.take)(output, {
|
|
3268
|
-
workgroup: (_) => de_Workgroup(_, context),
|
|
3269
|
-
});
|
|
3270
|
-
};
|
|
3271
|
-
const de_Workgroup = (output, context) => {
|
|
3272
|
-
return (0, smithy_client_1.take)(output, {
|
|
3273
|
-
baseCapacity: smithy_client_1.expectInt32,
|
|
3274
|
-
configParameters: smithy_client_1._json,
|
|
3275
|
-
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3276
|
-
crossAccountVpcs: smithy_client_1._json,
|
|
3277
|
-
customDomainCertificateArn: smithy_client_1.expectString,
|
|
3278
|
-
customDomainCertificateExpiryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
3279
|
-
customDomainName: smithy_client_1.expectString,
|
|
3280
|
-
endpoint: smithy_client_1._json,
|
|
3281
|
-
enhancedVpcRouting: smithy_client_1.expectBoolean,
|
|
3282
|
-
maxCapacity: smithy_client_1.expectInt32,
|
|
3283
|
-
namespaceName: smithy_client_1.expectString,
|
|
3284
|
-
patchVersion: smithy_client_1.expectString,
|
|
3285
|
-
port: smithy_client_1.expectInt32,
|
|
3286
|
-
publiclyAccessible: smithy_client_1.expectBoolean,
|
|
3287
|
-
securityGroupIds: smithy_client_1._json,
|
|
3288
|
-
status: smithy_client_1.expectString,
|
|
3289
|
-
subnetIds: smithy_client_1._json,
|
|
3290
|
-
workgroupArn: smithy_client_1.expectString,
|
|
3291
|
-
workgroupId: smithy_client_1.expectString,
|
|
3292
|
-
workgroupName: smithy_client_1.expectString,
|
|
3293
|
-
workgroupVersion: smithy_client_1.expectString,
|
|
3294
|
-
});
|
|
3295
|
-
};
|
|
3296
|
-
const de_WorkgroupList = (output, context) => {
|
|
3297
|
-
const retVal = (output || [])
|
|
3298
|
-
.filter((e) => e != null)
|
|
3299
|
-
.map((entry) => {
|
|
3300
|
-
return de_Workgroup(entry, context);
|
|
3301
|
-
});
|
|
3302
|
-
return retVal;
|
|
3303
|
-
};
|
|
3304
|
-
const deserializeMetadata = (output) => ({
|
|
3305
|
-
httpStatusCode: output.statusCode,
|
|
3306
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3307
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3308
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3309
|
-
});
|
|
3310
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3311
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(RedshiftServerlessServiceException_1.RedshiftServerlessServiceException);
|
|
3312
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3313
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3314
|
-
const contents = {
|
|
3315
|
-
protocol,
|
|
3316
|
-
hostname,
|
|
3317
|
-
port,
|
|
3318
|
-
method: "POST",
|
|
3319
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3320
|
-
headers,
|
|
3321
|
-
};
|
|
3322
|
-
if (resolvedHostname !== undefined) {
|
|
3323
|
-
contents.hostname = resolvedHostname;
|
|
3324
|
-
}
|
|
3325
|
-
if (body !== undefined) {
|
|
3326
|
-
contents.body = body;
|
|
3327
|
-
}
|
|
3328
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
3329
|
-
};
|
|
3330
|
-
function sharedHeaders(operation) {
|
|
3331
|
-
return {
|
|
3332
|
-
"content-type": "application/x-amz-json-1.1",
|
|
3333
|
-
"x-amz-target": `RedshiftServerless.${operation}`,
|
|
3334
|
-
};
|
|
3335
|
-
}
|
|
3336
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3337
|
-
if (encoded.length) {
|
|
3338
|
-
return JSON.parse(encoded);
|
|
3339
|
-
}
|
|
3340
|
-
return {};
|
|
3341
|
-
});
|
|
3342
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
3343
|
-
const value = await parseBody(errorBody, context);
|
|
3344
|
-
value.message = value.message ?? value.Message;
|
|
3345
|
-
return value;
|
|
3346
|
-
};
|
|
3347
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3348
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3349
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3350
|
-
let cleanValue = rawValue;
|
|
3351
|
-
if (typeof cleanValue === "number") {
|
|
3352
|
-
cleanValue = cleanValue.toString();
|
|
3353
|
-
}
|
|
3354
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3355
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3356
|
-
}
|
|
3357
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3358
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3359
|
-
}
|
|
3360
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3361
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3362
|
-
}
|
|
3363
|
-
return cleanValue;
|
|
3364
|
-
};
|
|
3365
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3366
|
-
if (headerKey !== undefined) {
|
|
3367
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3368
|
-
}
|
|
3369
|
-
if (data.code !== undefined) {
|
|
3370
|
-
return sanitizeErrorCode(data.code);
|
|
3371
|
-
}
|
|
3372
|
-
if (data["__type"] !== undefined) {
|
|
3373
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3374
|
-
}
|
|
3375
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|