@aws-sdk/client-kinesis-analytics 3.490.0 → 3.495.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/KinesisAnalytics.js +1 -51
- package/dist-cjs/KinesisAnalyticsClient.js +1 -43
- package/dist-cjs/commands/AddApplicationCloudWatchLoggingOptionCommand.js +1 -28
- package/dist-cjs/commands/AddApplicationInputCommand.js +1 -28
- package/dist-cjs/commands/AddApplicationInputProcessingConfigurationCommand.js +1 -28
- package/dist-cjs/commands/AddApplicationOutputCommand.js +1 -28
- package/dist-cjs/commands/AddApplicationReferenceDataSourceCommand.js +1 -28
- package/dist-cjs/commands/CreateApplicationCommand.js +1 -28
- package/dist-cjs/commands/DeleteApplicationCloudWatchLoggingOptionCommand.js +1 -28
- package/dist-cjs/commands/DeleteApplicationCommand.js +1 -28
- package/dist-cjs/commands/DeleteApplicationInputProcessingConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeleteApplicationOutputCommand.js +1 -28
- package/dist-cjs/commands/DeleteApplicationReferenceDataSourceCommand.js +1 -28
- package/dist-cjs/commands/DescribeApplicationCommand.js +1 -28
- package/dist-cjs/commands/DiscoverInputSchemaCommand.js +1 -28
- package/dist-cjs/commands/ListApplicationsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/StartApplicationCommand.js +1 -28
- package/dist-cjs/commands/StopApplicationCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateApplicationCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -23
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1984 -10
- package/dist-cjs/models/KinesisAnalyticsServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -179
- package/dist-cjs/protocols/Aws_json1_1.js +1 -1218
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +39 -39
|
@@ -1,1218 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopApplicationCommand = exports.de_StartApplicationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListApplicationsCommand = exports.de_DiscoverInputSchemaCommand = exports.de_DescribeApplicationCommand = exports.de_DeleteApplicationReferenceDataSourceCommand = exports.de_DeleteApplicationOutputCommand = exports.de_DeleteApplicationInputProcessingConfigurationCommand = exports.de_DeleteApplicationCloudWatchLoggingOptionCommand = exports.de_DeleteApplicationCommand = exports.de_CreateApplicationCommand = exports.de_AddApplicationReferenceDataSourceCommand = exports.de_AddApplicationOutputCommand = exports.de_AddApplicationInputProcessingConfigurationCommand = exports.de_AddApplicationInputCommand = exports.de_AddApplicationCloudWatchLoggingOptionCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopApplicationCommand = exports.se_StartApplicationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListApplicationsCommand = exports.se_DiscoverInputSchemaCommand = exports.se_DescribeApplicationCommand = exports.se_DeleteApplicationReferenceDataSourceCommand = exports.se_DeleteApplicationOutputCommand = exports.se_DeleteApplicationInputProcessingConfigurationCommand = exports.se_DeleteApplicationCloudWatchLoggingOptionCommand = exports.se_DeleteApplicationCommand = exports.se_CreateApplicationCommand = exports.se_AddApplicationReferenceDataSourceCommand = exports.se_AddApplicationOutputCommand = exports.se_AddApplicationInputProcessingConfigurationCommand = exports.se_AddApplicationInputCommand = exports.se_AddApplicationCloudWatchLoggingOptionCommand = void 0;
|
|
4
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const KinesisAnalyticsServiceException_1 = require("../models/KinesisAnalyticsServiceException");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const se_AddApplicationCloudWatchLoggingOptionCommand = async (input, context) => {
|
|
9
|
-
const headers = sharedHeaders("AddApplicationCloudWatchLoggingOption");
|
|
10
|
-
let body;
|
|
11
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
12
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
-
};
|
|
14
|
-
exports.se_AddApplicationCloudWatchLoggingOptionCommand = se_AddApplicationCloudWatchLoggingOptionCommand;
|
|
15
|
-
const se_AddApplicationInputCommand = async (input, context) => {
|
|
16
|
-
const headers = sharedHeaders("AddApplicationInput");
|
|
17
|
-
let body;
|
|
18
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
19
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
|
-
};
|
|
21
|
-
exports.se_AddApplicationInputCommand = se_AddApplicationInputCommand;
|
|
22
|
-
const se_AddApplicationInputProcessingConfigurationCommand = async (input, context) => {
|
|
23
|
-
const headers = sharedHeaders("AddApplicationInputProcessingConfiguration");
|
|
24
|
-
let body;
|
|
25
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
|
-
};
|
|
28
|
-
exports.se_AddApplicationInputProcessingConfigurationCommand = se_AddApplicationInputProcessingConfigurationCommand;
|
|
29
|
-
const se_AddApplicationOutputCommand = async (input, context) => {
|
|
30
|
-
const headers = sharedHeaders("AddApplicationOutput");
|
|
31
|
-
let body;
|
|
32
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
33
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
|
-
};
|
|
35
|
-
exports.se_AddApplicationOutputCommand = se_AddApplicationOutputCommand;
|
|
36
|
-
const se_AddApplicationReferenceDataSourceCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("AddApplicationReferenceDataSource");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
exports.se_AddApplicationReferenceDataSourceCommand = se_AddApplicationReferenceDataSourceCommand;
|
|
43
|
-
const se_CreateApplicationCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("CreateApplication");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
50
|
-
const se_DeleteApplicationCommand = async (input, context) => {
|
|
51
|
-
const headers = sharedHeaders("DeleteApplication");
|
|
52
|
-
let body;
|
|
53
|
-
body = JSON.stringify(se_DeleteApplicationRequest(input, context));
|
|
54
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
|
-
};
|
|
56
|
-
exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
|
|
57
|
-
const se_DeleteApplicationCloudWatchLoggingOptionCommand = async (input, context) => {
|
|
58
|
-
const headers = sharedHeaders("DeleteApplicationCloudWatchLoggingOption");
|
|
59
|
-
let body;
|
|
60
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
61
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
62
|
-
};
|
|
63
|
-
exports.se_DeleteApplicationCloudWatchLoggingOptionCommand = se_DeleteApplicationCloudWatchLoggingOptionCommand;
|
|
64
|
-
const se_DeleteApplicationInputProcessingConfigurationCommand = async (input, context) => {
|
|
65
|
-
const headers = sharedHeaders("DeleteApplicationInputProcessingConfiguration");
|
|
66
|
-
let body;
|
|
67
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
68
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
|
-
};
|
|
70
|
-
exports.se_DeleteApplicationInputProcessingConfigurationCommand = se_DeleteApplicationInputProcessingConfigurationCommand;
|
|
71
|
-
const se_DeleteApplicationOutputCommand = async (input, context) => {
|
|
72
|
-
const headers = sharedHeaders("DeleteApplicationOutput");
|
|
73
|
-
let body;
|
|
74
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
-
};
|
|
77
|
-
exports.se_DeleteApplicationOutputCommand = se_DeleteApplicationOutputCommand;
|
|
78
|
-
const se_DeleteApplicationReferenceDataSourceCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("DeleteApplicationReferenceDataSource");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
exports.se_DeleteApplicationReferenceDataSourceCommand = se_DeleteApplicationReferenceDataSourceCommand;
|
|
85
|
-
const se_DescribeApplicationCommand = async (input, context) => {
|
|
86
|
-
const headers = sharedHeaders("DescribeApplication");
|
|
87
|
-
let body;
|
|
88
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
89
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
-
};
|
|
91
|
-
exports.se_DescribeApplicationCommand = se_DescribeApplicationCommand;
|
|
92
|
-
const se_DiscoverInputSchemaCommand = async (input, context) => {
|
|
93
|
-
const headers = sharedHeaders("DiscoverInputSchema");
|
|
94
|
-
let body;
|
|
95
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
|
-
};
|
|
98
|
-
exports.se_DiscoverInputSchemaCommand = se_DiscoverInputSchemaCommand;
|
|
99
|
-
const se_ListApplicationsCommand = async (input, context) => {
|
|
100
|
-
const headers = sharedHeaders("ListApplications");
|
|
101
|
-
let body;
|
|
102
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
103
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
|
-
};
|
|
105
|
-
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
106
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
107
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
108
|
-
let body;
|
|
109
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
110
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
|
-
};
|
|
112
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
113
|
-
const se_StartApplicationCommand = async (input, context) => {
|
|
114
|
-
const headers = sharedHeaders("StartApplication");
|
|
115
|
-
let body;
|
|
116
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
117
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
|
-
};
|
|
119
|
-
exports.se_StartApplicationCommand = se_StartApplicationCommand;
|
|
120
|
-
const se_StopApplicationCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("StopApplication");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
exports.se_StopApplicationCommand = se_StopApplicationCommand;
|
|
127
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
128
|
-
const headers = sharedHeaders("TagResource");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
131
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
|
-
};
|
|
133
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
134
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
135
|
-
const headers = sharedHeaders("UntagResource");
|
|
136
|
-
let body;
|
|
137
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
138
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
|
-
};
|
|
140
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
141
|
-
const se_UpdateApplicationCommand = async (input, context) => {
|
|
142
|
-
const headers = sharedHeaders("UpdateApplication");
|
|
143
|
-
let body;
|
|
144
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
145
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
|
-
};
|
|
147
|
-
exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
|
|
148
|
-
const de_AddApplicationCloudWatchLoggingOptionCommand = async (output, context) => {
|
|
149
|
-
if (output.statusCode >= 300) {
|
|
150
|
-
return de_AddApplicationCloudWatchLoggingOptionCommandError(output, context);
|
|
151
|
-
}
|
|
152
|
-
const data = await parseBody(output.body, context);
|
|
153
|
-
let contents = {};
|
|
154
|
-
contents = (0, smithy_client_1._json)(data);
|
|
155
|
-
const response = {
|
|
156
|
-
$metadata: deserializeMetadata(output),
|
|
157
|
-
...contents,
|
|
158
|
-
};
|
|
159
|
-
return response;
|
|
160
|
-
};
|
|
161
|
-
exports.de_AddApplicationCloudWatchLoggingOptionCommand = de_AddApplicationCloudWatchLoggingOptionCommand;
|
|
162
|
-
const de_AddApplicationCloudWatchLoggingOptionCommandError = async (output, context) => {
|
|
163
|
-
const parsedOutput = {
|
|
164
|
-
...output,
|
|
165
|
-
body: await parseErrorBody(output.body, context),
|
|
166
|
-
};
|
|
167
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
168
|
-
switch (errorCode) {
|
|
169
|
-
case "ConcurrentModificationException":
|
|
170
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
171
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
172
|
-
case "InvalidArgumentException":
|
|
173
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
174
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
175
|
-
case "ResourceInUseException":
|
|
176
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
177
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
178
|
-
case "ResourceNotFoundException":
|
|
179
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
180
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
181
|
-
case "UnsupportedOperationException":
|
|
182
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
183
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
184
|
-
default:
|
|
185
|
-
const parsedBody = parsedOutput.body;
|
|
186
|
-
return throwDefaultError({
|
|
187
|
-
output,
|
|
188
|
-
parsedBody,
|
|
189
|
-
errorCode,
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
|
-
const de_AddApplicationInputCommand = async (output, context) => {
|
|
194
|
-
if (output.statusCode >= 300) {
|
|
195
|
-
return de_AddApplicationInputCommandError(output, context);
|
|
196
|
-
}
|
|
197
|
-
const data = await parseBody(output.body, context);
|
|
198
|
-
let contents = {};
|
|
199
|
-
contents = (0, smithy_client_1._json)(data);
|
|
200
|
-
const response = {
|
|
201
|
-
$metadata: deserializeMetadata(output),
|
|
202
|
-
...contents,
|
|
203
|
-
};
|
|
204
|
-
return response;
|
|
205
|
-
};
|
|
206
|
-
exports.de_AddApplicationInputCommand = de_AddApplicationInputCommand;
|
|
207
|
-
const de_AddApplicationInputCommandError = async (output, context) => {
|
|
208
|
-
const parsedOutput = {
|
|
209
|
-
...output,
|
|
210
|
-
body: await parseErrorBody(output.body, context),
|
|
211
|
-
};
|
|
212
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
213
|
-
switch (errorCode) {
|
|
214
|
-
case "CodeValidationException":
|
|
215
|
-
case "com.amazonaws.kinesisanalytics#CodeValidationException":
|
|
216
|
-
throw await de_CodeValidationExceptionRes(parsedOutput, context);
|
|
217
|
-
case "ConcurrentModificationException":
|
|
218
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
219
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
220
|
-
case "InvalidArgumentException":
|
|
221
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
222
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
223
|
-
case "ResourceInUseException":
|
|
224
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
225
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
226
|
-
case "ResourceNotFoundException":
|
|
227
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
228
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
229
|
-
case "UnsupportedOperationException":
|
|
230
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
231
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
232
|
-
default:
|
|
233
|
-
const parsedBody = parsedOutput.body;
|
|
234
|
-
return throwDefaultError({
|
|
235
|
-
output,
|
|
236
|
-
parsedBody,
|
|
237
|
-
errorCode,
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
const de_AddApplicationInputProcessingConfigurationCommand = async (output, context) => {
|
|
242
|
-
if (output.statusCode >= 300) {
|
|
243
|
-
return de_AddApplicationInputProcessingConfigurationCommandError(output, context);
|
|
244
|
-
}
|
|
245
|
-
const data = await parseBody(output.body, context);
|
|
246
|
-
let contents = {};
|
|
247
|
-
contents = (0, smithy_client_1._json)(data);
|
|
248
|
-
const response = {
|
|
249
|
-
$metadata: deserializeMetadata(output),
|
|
250
|
-
...contents,
|
|
251
|
-
};
|
|
252
|
-
return response;
|
|
253
|
-
};
|
|
254
|
-
exports.de_AddApplicationInputProcessingConfigurationCommand = de_AddApplicationInputProcessingConfigurationCommand;
|
|
255
|
-
const de_AddApplicationInputProcessingConfigurationCommandError = async (output, context) => {
|
|
256
|
-
const parsedOutput = {
|
|
257
|
-
...output,
|
|
258
|
-
body: await parseErrorBody(output.body, context),
|
|
259
|
-
};
|
|
260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
261
|
-
switch (errorCode) {
|
|
262
|
-
case "ConcurrentModificationException":
|
|
263
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
264
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
265
|
-
case "InvalidArgumentException":
|
|
266
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
267
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
268
|
-
case "ResourceInUseException":
|
|
269
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
270
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
271
|
-
case "ResourceNotFoundException":
|
|
272
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
273
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
274
|
-
case "UnsupportedOperationException":
|
|
275
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
276
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
277
|
-
default:
|
|
278
|
-
const parsedBody = parsedOutput.body;
|
|
279
|
-
return throwDefaultError({
|
|
280
|
-
output,
|
|
281
|
-
parsedBody,
|
|
282
|
-
errorCode,
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
};
|
|
286
|
-
const de_AddApplicationOutputCommand = async (output, context) => {
|
|
287
|
-
if (output.statusCode >= 300) {
|
|
288
|
-
return de_AddApplicationOutputCommandError(output, context);
|
|
289
|
-
}
|
|
290
|
-
const data = await parseBody(output.body, context);
|
|
291
|
-
let contents = {};
|
|
292
|
-
contents = (0, smithy_client_1._json)(data);
|
|
293
|
-
const response = {
|
|
294
|
-
$metadata: deserializeMetadata(output),
|
|
295
|
-
...contents,
|
|
296
|
-
};
|
|
297
|
-
return response;
|
|
298
|
-
};
|
|
299
|
-
exports.de_AddApplicationOutputCommand = de_AddApplicationOutputCommand;
|
|
300
|
-
const de_AddApplicationOutputCommandError = async (output, context) => {
|
|
301
|
-
const parsedOutput = {
|
|
302
|
-
...output,
|
|
303
|
-
body: await parseErrorBody(output.body, context),
|
|
304
|
-
};
|
|
305
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
306
|
-
switch (errorCode) {
|
|
307
|
-
case "ConcurrentModificationException":
|
|
308
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
309
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
310
|
-
case "InvalidArgumentException":
|
|
311
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
312
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
313
|
-
case "ResourceInUseException":
|
|
314
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
315
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
316
|
-
case "ResourceNotFoundException":
|
|
317
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
318
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
319
|
-
case "UnsupportedOperationException":
|
|
320
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
321
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
322
|
-
default:
|
|
323
|
-
const parsedBody = parsedOutput.body;
|
|
324
|
-
return throwDefaultError({
|
|
325
|
-
output,
|
|
326
|
-
parsedBody,
|
|
327
|
-
errorCode,
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
|
-
const de_AddApplicationReferenceDataSourceCommand = async (output, context) => {
|
|
332
|
-
if (output.statusCode >= 300) {
|
|
333
|
-
return de_AddApplicationReferenceDataSourceCommandError(output, context);
|
|
334
|
-
}
|
|
335
|
-
const data = await parseBody(output.body, context);
|
|
336
|
-
let contents = {};
|
|
337
|
-
contents = (0, smithy_client_1._json)(data);
|
|
338
|
-
const response = {
|
|
339
|
-
$metadata: deserializeMetadata(output),
|
|
340
|
-
...contents,
|
|
341
|
-
};
|
|
342
|
-
return response;
|
|
343
|
-
};
|
|
344
|
-
exports.de_AddApplicationReferenceDataSourceCommand = de_AddApplicationReferenceDataSourceCommand;
|
|
345
|
-
const de_AddApplicationReferenceDataSourceCommandError = async (output, context) => {
|
|
346
|
-
const parsedOutput = {
|
|
347
|
-
...output,
|
|
348
|
-
body: await parseErrorBody(output.body, context),
|
|
349
|
-
};
|
|
350
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
351
|
-
switch (errorCode) {
|
|
352
|
-
case "ConcurrentModificationException":
|
|
353
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
354
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
355
|
-
case "InvalidArgumentException":
|
|
356
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
357
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
358
|
-
case "ResourceInUseException":
|
|
359
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
360
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
361
|
-
case "ResourceNotFoundException":
|
|
362
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
363
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
364
|
-
case "UnsupportedOperationException":
|
|
365
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
366
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
367
|
-
default:
|
|
368
|
-
const parsedBody = parsedOutput.body;
|
|
369
|
-
return throwDefaultError({
|
|
370
|
-
output,
|
|
371
|
-
parsedBody,
|
|
372
|
-
errorCode,
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
const de_CreateApplicationCommand = async (output, context) => {
|
|
377
|
-
if (output.statusCode >= 300) {
|
|
378
|
-
return de_CreateApplicationCommandError(output, context);
|
|
379
|
-
}
|
|
380
|
-
const data = await parseBody(output.body, context);
|
|
381
|
-
let contents = {};
|
|
382
|
-
contents = (0, smithy_client_1._json)(data);
|
|
383
|
-
const response = {
|
|
384
|
-
$metadata: deserializeMetadata(output),
|
|
385
|
-
...contents,
|
|
386
|
-
};
|
|
387
|
-
return response;
|
|
388
|
-
};
|
|
389
|
-
exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
|
|
390
|
-
const de_CreateApplicationCommandError = async (output, context) => {
|
|
391
|
-
const parsedOutput = {
|
|
392
|
-
...output,
|
|
393
|
-
body: await parseErrorBody(output.body, context),
|
|
394
|
-
};
|
|
395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
396
|
-
switch (errorCode) {
|
|
397
|
-
case "CodeValidationException":
|
|
398
|
-
case "com.amazonaws.kinesisanalytics#CodeValidationException":
|
|
399
|
-
throw await de_CodeValidationExceptionRes(parsedOutput, context);
|
|
400
|
-
case "ConcurrentModificationException":
|
|
401
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
402
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
403
|
-
case "InvalidArgumentException":
|
|
404
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
405
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
406
|
-
case "LimitExceededException":
|
|
407
|
-
case "com.amazonaws.kinesisanalytics#LimitExceededException":
|
|
408
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
409
|
-
case "ResourceInUseException":
|
|
410
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
411
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
412
|
-
case "TooManyTagsException":
|
|
413
|
-
case "com.amazonaws.kinesisanalytics#TooManyTagsException":
|
|
414
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
415
|
-
default:
|
|
416
|
-
const parsedBody = parsedOutput.body;
|
|
417
|
-
return throwDefaultError({
|
|
418
|
-
output,
|
|
419
|
-
parsedBody,
|
|
420
|
-
errorCode,
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
};
|
|
424
|
-
const de_DeleteApplicationCommand = async (output, context) => {
|
|
425
|
-
if (output.statusCode >= 300) {
|
|
426
|
-
return de_DeleteApplicationCommandError(output, context);
|
|
427
|
-
}
|
|
428
|
-
const data = await parseBody(output.body, context);
|
|
429
|
-
let contents = {};
|
|
430
|
-
contents = (0, smithy_client_1._json)(data);
|
|
431
|
-
const response = {
|
|
432
|
-
$metadata: deserializeMetadata(output),
|
|
433
|
-
...contents,
|
|
434
|
-
};
|
|
435
|
-
return response;
|
|
436
|
-
};
|
|
437
|
-
exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
|
|
438
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
439
|
-
const parsedOutput = {
|
|
440
|
-
...output,
|
|
441
|
-
body: await parseErrorBody(output.body, context),
|
|
442
|
-
};
|
|
443
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
444
|
-
switch (errorCode) {
|
|
445
|
-
case "ConcurrentModificationException":
|
|
446
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
447
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
448
|
-
case "ResourceInUseException":
|
|
449
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
450
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
451
|
-
case "ResourceNotFoundException":
|
|
452
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
453
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
454
|
-
case "UnsupportedOperationException":
|
|
455
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
456
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
457
|
-
default:
|
|
458
|
-
const parsedBody = parsedOutput.body;
|
|
459
|
-
return throwDefaultError({
|
|
460
|
-
output,
|
|
461
|
-
parsedBody,
|
|
462
|
-
errorCode,
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
};
|
|
466
|
-
const de_DeleteApplicationCloudWatchLoggingOptionCommand = async (output, context) => {
|
|
467
|
-
if (output.statusCode >= 300) {
|
|
468
|
-
return de_DeleteApplicationCloudWatchLoggingOptionCommandError(output, context);
|
|
469
|
-
}
|
|
470
|
-
const data = await parseBody(output.body, context);
|
|
471
|
-
let contents = {};
|
|
472
|
-
contents = (0, smithy_client_1._json)(data);
|
|
473
|
-
const response = {
|
|
474
|
-
$metadata: deserializeMetadata(output),
|
|
475
|
-
...contents,
|
|
476
|
-
};
|
|
477
|
-
return response;
|
|
478
|
-
};
|
|
479
|
-
exports.de_DeleteApplicationCloudWatchLoggingOptionCommand = de_DeleteApplicationCloudWatchLoggingOptionCommand;
|
|
480
|
-
const de_DeleteApplicationCloudWatchLoggingOptionCommandError = async (output, context) => {
|
|
481
|
-
const parsedOutput = {
|
|
482
|
-
...output,
|
|
483
|
-
body: await parseErrorBody(output.body, context),
|
|
484
|
-
};
|
|
485
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
486
|
-
switch (errorCode) {
|
|
487
|
-
case "ConcurrentModificationException":
|
|
488
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
489
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
490
|
-
case "InvalidArgumentException":
|
|
491
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
492
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
493
|
-
case "ResourceInUseException":
|
|
494
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
495
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
496
|
-
case "ResourceNotFoundException":
|
|
497
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
498
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
499
|
-
case "UnsupportedOperationException":
|
|
500
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
501
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
502
|
-
default:
|
|
503
|
-
const parsedBody = parsedOutput.body;
|
|
504
|
-
return throwDefaultError({
|
|
505
|
-
output,
|
|
506
|
-
parsedBody,
|
|
507
|
-
errorCode,
|
|
508
|
-
});
|
|
509
|
-
}
|
|
510
|
-
};
|
|
511
|
-
const de_DeleteApplicationInputProcessingConfigurationCommand = async (output, context) => {
|
|
512
|
-
if (output.statusCode >= 300) {
|
|
513
|
-
return de_DeleteApplicationInputProcessingConfigurationCommandError(output, context);
|
|
514
|
-
}
|
|
515
|
-
const data = await parseBody(output.body, context);
|
|
516
|
-
let contents = {};
|
|
517
|
-
contents = (0, smithy_client_1._json)(data);
|
|
518
|
-
const response = {
|
|
519
|
-
$metadata: deserializeMetadata(output),
|
|
520
|
-
...contents,
|
|
521
|
-
};
|
|
522
|
-
return response;
|
|
523
|
-
};
|
|
524
|
-
exports.de_DeleteApplicationInputProcessingConfigurationCommand = de_DeleteApplicationInputProcessingConfigurationCommand;
|
|
525
|
-
const de_DeleteApplicationInputProcessingConfigurationCommandError = async (output, context) => {
|
|
526
|
-
const parsedOutput = {
|
|
527
|
-
...output,
|
|
528
|
-
body: await parseErrorBody(output.body, context),
|
|
529
|
-
};
|
|
530
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
531
|
-
switch (errorCode) {
|
|
532
|
-
case "ConcurrentModificationException":
|
|
533
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
534
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
535
|
-
case "InvalidArgumentException":
|
|
536
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
537
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
538
|
-
case "ResourceInUseException":
|
|
539
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
540
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
541
|
-
case "ResourceNotFoundException":
|
|
542
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
543
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
544
|
-
case "UnsupportedOperationException":
|
|
545
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
546
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
547
|
-
default:
|
|
548
|
-
const parsedBody = parsedOutput.body;
|
|
549
|
-
return throwDefaultError({
|
|
550
|
-
output,
|
|
551
|
-
parsedBody,
|
|
552
|
-
errorCode,
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
};
|
|
556
|
-
const de_DeleteApplicationOutputCommand = async (output, context) => {
|
|
557
|
-
if (output.statusCode >= 300) {
|
|
558
|
-
return de_DeleteApplicationOutputCommandError(output, context);
|
|
559
|
-
}
|
|
560
|
-
const data = await parseBody(output.body, context);
|
|
561
|
-
let contents = {};
|
|
562
|
-
contents = (0, smithy_client_1._json)(data);
|
|
563
|
-
const response = {
|
|
564
|
-
$metadata: deserializeMetadata(output),
|
|
565
|
-
...contents,
|
|
566
|
-
};
|
|
567
|
-
return response;
|
|
568
|
-
};
|
|
569
|
-
exports.de_DeleteApplicationOutputCommand = de_DeleteApplicationOutputCommand;
|
|
570
|
-
const de_DeleteApplicationOutputCommandError = async (output, context) => {
|
|
571
|
-
const parsedOutput = {
|
|
572
|
-
...output,
|
|
573
|
-
body: await parseErrorBody(output.body, context),
|
|
574
|
-
};
|
|
575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
576
|
-
switch (errorCode) {
|
|
577
|
-
case "ConcurrentModificationException":
|
|
578
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
579
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
580
|
-
case "InvalidArgumentException":
|
|
581
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
582
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
583
|
-
case "ResourceInUseException":
|
|
584
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
585
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
586
|
-
case "ResourceNotFoundException":
|
|
587
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
588
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
589
|
-
case "UnsupportedOperationException":
|
|
590
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
591
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
592
|
-
default:
|
|
593
|
-
const parsedBody = parsedOutput.body;
|
|
594
|
-
return throwDefaultError({
|
|
595
|
-
output,
|
|
596
|
-
parsedBody,
|
|
597
|
-
errorCode,
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
};
|
|
601
|
-
const de_DeleteApplicationReferenceDataSourceCommand = async (output, context) => {
|
|
602
|
-
if (output.statusCode >= 300) {
|
|
603
|
-
return de_DeleteApplicationReferenceDataSourceCommandError(output, context);
|
|
604
|
-
}
|
|
605
|
-
const data = await parseBody(output.body, context);
|
|
606
|
-
let contents = {};
|
|
607
|
-
contents = (0, smithy_client_1._json)(data);
|
|
608
|
-
const response = {
|
|
609
|
-
$metadata: deserializeMetadata(output),
|
|
610
|
-
...contents,
|
|
611
|
-
};
|
|
612
|
-
return response;
|
|
613
|
-
};
|
|
614
|
-
exports.de_DeleteApplicationReferenceDataSourceCommand = de_DeleteApplicationReferenceDataSourceCommand;
|
|
615
|
-
const de_DeleteApplicationReferenceDataSourceCommandError = async (output, context) => {
|
|
616
|
-
const parsedOutput = {
|
|
617
|
-
...output,
|
|
618
|
-
body: await parseErrorBody(output.body, context),
|
|
619
|
-
};
|
|
620
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
621
|
-
switch (errorCode) {
|
|
622
|
-
case "ConcurrentModificationException":
|
|
623
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
624
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
625
|
-
case "InvalidArgumentException":
|
|
626
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
627
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
628
|
-
case "ResourceInUseException":
|
|
629
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
630
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
631
|
-
case "ResourceNotFoundException":
|
|
632
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
633
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
634
|
-
case "UnsupportedOperationException":
|
|
635
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
636
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
637
|
-
default:
|
|
638
|
-
const parsedBody = parsedOutput.body;
|
|
639
|
-
return throwDefaultError({
|
|
640
|
-
output,
|
|
641
|
-
parsedBody,
|
|
642
|
-
errorCode,
|
|
643
|
-
});
|
|
644
|
-
}
|
|
645
|
-
};
|
|
646
|
-
const de_DescribeApplicationCommand = async (output, context) => {
|
|
647
|
-
if (output.statusCode >= 300) {
|
|
648
|
-
return de_DescribeApplicationCommandError(output, context);
|
|
649
|
-
}
|
|
650
|
-
const data = await parseBody(output.body, context);
|
|
651
|
-
let contents = {};
|
|
652
|
-
contents = de_DescribeApplicationResponse(data, context);
|
|
653
|
-
const response = {
|
|
654
|
-
$metadata: deserializeMetadata(output),
|
|
655
|
-
...contents,
|
|
656
|
-
};
|
|
657
|
-
return response;
|
|
658
|
-
};
|
|
659
|
-
exports.de_DescribeApplicationCommand = de_DescribeApplicationCommand;
|
|
660
|
-
const de_DescribeApplicationCommandError = async (output, context) => {
|
|
661
|
-
const parsedOutput = {
|
|
662
|
-
...output,
|
|
663
|
-
body: await parseErrorBody(output.body, context),
|
|
664
|
-
};
|
|
665
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
666
|
-
switch (errorCode) {
|
|
667
|
-
case "ResourceNotFoundException":
|
|
668
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
669
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
670
|
-
case "UnsupportedOperationException":
|
|
671
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
672
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
673
|
-
default:
|
|
674
|
-
const parsedBody = parsedOutput.body;
|
|
675
|
-
return throwDefaultError({
|
|
676
|
-
output,
|
|
677
|
-
parsedBody,
|
|
678
|
-
errorCode,
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
};
|
|
682
|
-
const de_DiscoverInputSchemaCommand = async (output, context) => {
|
|
683
|
-
if (output.statusCode >= 300) {
|
|
684
|
-
return de_DiscoverInputSchemaCommandError(output, context);
|
|
685
|
-
}
|
|
686
|
-
const data = await parseBody(output.body, context);
|
|
687
|
-
let contents = {};
|
|
688
|
-
contents = (0, smithy_client_1._json)(data);
|
|
689
|
-
const response = {
|
|
690
|
-
$metadata: deserializeMetadata(output),
|
|
691
|
-
...contents,
|
|
692
|
-
};
|
|
693
|
-
return response;
|
|
694
|
-
};
|
|
695
|
-
exports.de_DiscoverInputSchemaCommand = de_DiscoverInputSchemaCommand;
|
|
696
|
-
const de_DiscoverInputSchemaCommandError = async (output, context) => {
|
|
697
|
-
const parsedOutput = {
|
|
698
|
-
...output,
|
|
699
|
-
body: await parseErrorBody(output.body, context),
|
|
700
|
-
};
|
|
701
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
|
-
switch (errorCode) {
|
|
703
|
-
case "InvalidArgumentException":
|
|
704
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
705
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
706
|
-
case "ResourceProvisionedThroughputExceededException":
|
|
707
|
-
case "com.amazonaws.kinesisanalytics#ResourceProvisionedThroughputExceededException":
|
|
708
|
-
throw await de_ResourceProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
709
|
-
case "ServiceUnavailableException":
|
|
710
|
-
case "com.amazonaws.kinesisanalytics#ServiceUnavailableException":
|
|
711
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
712
|
-
case "UnableToDetectSchemaException":
|
|
713
|
-
case "com.amazonaws.kinesisanalytics#UnableToDetectSchemaException":
|
|
714
|
-
throw await de_UnableToDetectSchemaExceptionRes(parsedOutput, context);
|
|
715
|
-
default:
|
|
716
|
-
const parsedBody = parsedOutput.body;
|
|
717
|
-
return throwDefaultError({
|
|
718
|
-
output,
|
|
719
|
-
parsedBody,
|
|
720
|
-
errorCode,
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
};
|
|
724
|
-
const de_ListApplicationsCommand = async (output, context) => {
|
|
725
|
-
if (output.statusCode >= 300) {
|
|
726
|
-
return de_ListApplicationsCommandError(output, context);
|
|
727
|
-
}
|
|
728
|
-
const data = await parseBody(output.body, context);
|
|
729
|
-
let contents = {};
|
|
730
|
-
contents = (0, smithy_client_1._json)(data);
|
|
731
|
-
const response = {
|
|
732
|
-
$metadata: deserializeMetadata(output),
|
|
733
|
-
...contents,
|
|
734
|
-
};
|
|
735
|
-
return response;
|
|
736
|
-
};
|
|
737
|
-
exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
|
|
738
|
-
const de_ListApplicationsCommandError = async (output, context) => {
|
|
739
|
-
const parsedOutput = {
|
|
740
|
-
...output,
|
|
741
|
-
body: await parseErrorBody(output.body, context),
|
|
742
|
-
};
|
|
743
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
|
-
const parsedBody = parsedOutput.body;
|
|
745
|
-
return throwDefaultError({
|
|
746
|
-
output,
|
|
747
|
-
parsedBody,
|
|
748
|
-
errorCode,
|
|
749
|
-
});
|
|
750
|
-
};
|
|
751
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
752
|
-
if (output.statusCode >= 300) {
|
|
753
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
754
|
-
}
|
|
755
|
-
const data = await parseBody(output.body, context);
|
|
756
|
-
let contents = {};
|
|
757
|
-
contents = (0, smithy_client_1._json)(data);
|
|
758
|
-
const response = {
|
|
759
|
-
$metadata: deserializeMetadata(output),
|
|
760
|
-
...contents,
|
|
761
|
-
};
|
|
762
|
-
return response;
|
|
763
|
-
};
|
|
764
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
765
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
766
|
-
const parsedOutput = {
|
|
767
|
-
...output,
|
|
768
|
-
body: await parseErrorBody(output.body, context),
|
|
769
|
-
};
|
|
770
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
771
|
-
switch (errorCode) {
|
|
772
|
-
case "ConcurrentModificationException":
|
|
773
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
774
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
775
|
-
case "InvalidArgumentException":
|
|
776
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
777
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
778
|
-
case "ResourceNotFoundException":
|
|
779
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
780
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
781
|
-
default:
|
|
782
|
-
const parsedBody = parsedOutput.body;
|
|
783
|
-
return throwDefaultError({
|
|
784
|
-
output,
|
|
785
|
-
parsedBody,
|
|
786
|
-
errorCode,
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
|
-
const de_StartApplicationCommand = async (output, context) => {
|
|
791
|
-
if (output.statusCode >= 300) {
|
|
792
|
-
return de_StartApplicationCommandError(output, context);
|
|
793
|
-
}
|
|
794
|
-
const data = await parseBody(output.body, context);
|
|
795
|
-
let contents = {};
|
|
796
|
-
contents = (0, smithy_client_1._json)(data);
|
|
797
|
-
const response = {
|
|
798
|
-
$metadata: deserializeMetadata(output),
|
|
799
|
-
...contents,
|
|
800
|
-
};
|
|
801
|
-
return response;
|
|
802
|
-
};
|
|
803
|
-
exports.de_StartApplicationCommand = de_StartApplicationCommand;
|
|
804
|
-
const de_StartApplicationCommandError = async (output, context) => {
|
|
805
|
-
const parsedOutput = {
|
|
806
|
-
...output,
|
|
807
|
-
body: await parseErrorBody(output.body, context),
|
|
808
|
-
};
|
|
809
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
|
-
switch (errorCode) {
|
|
811
|
-
case "InvalidApplicationConfigurationException":
|
|
812
|
-
case "com.amazonaws.kinesisanalytics#InvalidApplicationConfigurationException":
|
|
813
|
-
throw await de_InvalidApplicationConfigurationExceptionRes(parsedOutput, context);
|
|
814
|
-
case "InvalidArgumentException":
|
|
815
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
816
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
817
|
-
case "ResourceInUseException":
|
|
818
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
819
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ResourceNotFoundException":
|
|
821
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
822
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
823
|
-
case "UnsupportedOperationException":
|
|
824
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
825
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
826
|
-
default:
|
|
827
|
-
const parsedBody = parsedOutput.body;
|
|
828
|
-
return throwDefaultError({
|
|
829
|
-
output,
|
|
830
|
-
parsedBody,
|
|
831
|
-
errorCode,
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
};
|
|
835
|
-
const de_StopApplicationCommand = async (output, context) => {
|
|
836
|
-
if (output.statusCode >= 300) {
|
|
837
|
-
return de_StopApplicationCommandError(output, context);
|
|
838
|
-
}
|
|
839
|
-
const data = await parseBody(output.body, context);
|
|
840
|
-
let contents = {};
|
|
841
|
-
contents = (0, smithy_client_1._json)(data);
|
|
842
|
-
const response = {
|
|
843
|
-
$metadata: deserializeMetadata(output),
|
|
844
|
-
...contents,
|
|
845
|
-
};
|
|
846
|
-
return response;
|
|
847
|
-
};
|
|
848
|
-
exports.de_StopApplicationCommand = de_StopApplicationCommand;
|
|
849
|
-
const de_StopApplicationCommandError = async (output, context) => {
|
|
850
|
-
const parsedOutput = {
|
|
851
|
-
...output,
|
|
852
|
-
body: await parseErrorBody(output.body, context),
|
|
853
|
-
};
|
|
854
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
|
-
switch (errorCode) {
|
|
856
|
-
case "ResourceInUseException":
|
|
857
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
858
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
859
|
-
case "ResourceNotFoundException":
|
|
860
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
861
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
862
|
-
case "UnsupportedOperationException":
|
|
863
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
864
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
865
|
-
default:
|
|
866
|
-
const parsedBody = parsedOutput.body;
|
|
867
|
-
return throwDefaultError({
|
|
868
|
-
output,
|
|
869
|
-
parsedBody,
|
|
870
|
-
errorCode,
|
|
871
|
-
});
|
|
872
|
-
}
|
|
873
|
-
};
|
|
874
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
875
|
-
if (output.statusCode >= 300) {
|
|
876
|
-
return de_TagResourceCommandError(output, context);
|
|
877
|
-
}
|
|
878
|
-
const data = await parseBody(output.body, context);
|
|
879
|
-
let contents = {};
|
|
880
|
-
contents = (0, smithy_client_1._json)(data);
|
|
881
|
-
const response = {
|
|
882
|
-
$metadata: deserializeMetadata(output),
|
|
883
|
-
...contents,
|
|
884
|
-
};
|
|
885
|
-
return response;
|
|
886
|
-
};
|
|
887
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
888
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
889
|
-
const parsedOutput = {
|
|
890
|
-
...output,
|
|
891
|
-
body: await parseErrorBody(output.body, context),
|
|
892
|
-
};
|
|
893
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
894
|
-
switch (errorCode) {
|
|
895
|
-
case "ConcurrentModificationException":
|
|
896
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
897
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
898
|
-
case "InvalidArgumentException":
|
|
899
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
900
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
901
|
-
case "ResourceInUseException":
|
|
902
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
903
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
904
|
-
case "ResourceNotFoundException":
|
|
905
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
906
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
907
|
-
case "TooManyTagsException":
|
|
908
|
-
case "com.amazonaws.kinesisanalytics#TooManyTagsException":
|
|
909
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
910
|
-
default:
|
|
911
|
-
const parsedBody = parsedOutput.body;
|
|
912
|
-
return throwDefaultError({
|
|
913
|
-
output,
|
|
914
|
-
parsedBody,
|
|
915
|
-
errorCode,
|
|
916
|
-
});
|
|
917
|
-
}
|
|
918
|
-
};
|
|
919
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
920
|
-
if (output.statusCode >= 300) {
|
|
921
|
-
return de_UntagResourceCommandError(output, context);
|
|
922
|
-
}
|
|
923
|
-
const data = await parseBody(output.body, context);
|
|
924
|
-
let contents = {};
|
|
925
|
-
contents = (0, smithy_client_1._json)(data);
|
|
926
|
-
const response = {
|
|
927
|
-
$metadata: deserializeMetadata(output),
|
|
928
|
-
...contents,
|
|
929
|
-
};
|
|
930
|
-
return response;
|
|
931
|
-
};
|
|
932
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
933
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
934
|
-
const parsedOutput = {
|
|
935
|
-
...output,
|
|
936
|
-
body: await parseErrorBody(output.body, context),
|
|
937
|
-
};
|
|
938
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
|
-
switch (errorCode) {
|
|
940
|
-
case "ConcurrentModificationException":
|
|
941
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
942
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
943
|
-
case "InvalidArgumentException":
|
|
944
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
945
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
946
|
-
case "ResourceInUseException":
|
|
947
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
948
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
949
|
-
case "ResourceNotFoundException":
|
|
950
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
951
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
952
|
-
case "TooManyTagsException":
|
|
953
|
-
case "com.amazonaws.kinesisanalytics#TooManyTagsException":
|
|
954
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
955
|
-
default:
|
|
956
|
-
const parsedBody = parsedOutput.body;
|
|
957
|
-
return throwDefaultError({
|
|
958
|
-
output,
|
|
959
|
-
parsedBody,
|
|
960
|
-
errorCode,
|
|
961
|
-
});
|
|
962
|
-
}
|
|
963
|
-
};
|
|
964
|
-
const de_UpdateApplicationCommand = async (output, context) => {
|
|
965
|
-
if (output.statusCode >= 300) {
|
|
966
|
-
return de_UpdateApplicationCommandError(output, context);
|
|
967
|
-
}
|
|
968
|
-
const data = await parseBody(output.body, context);
|
|
969
|
-
let contents = {};
|
|
970
|
-
contents = (0, smithy_client_1._json)(data);
|
|
971
|
-
const response = {
|
|
972
|
-
$metadata: deserializeMetadata(output),
|
|
973
|
-
...contents,
|
|
974
|
-
};
|
|
975
|
-
return response;
|
|
976
|
-
};
|
|
977
|
-
exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
|
|
978
|
-
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
979
|
-
const parsedOutput = {
|
|
980
|
-
...output,
|
|
981
|
-
body: await parseErrorBody(output.body, context),
|
|
982
|
-
};
|
|
983
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
984
|
-
switch (errorCode) {
|
|
985
|
-
case "CodeValidationException":
|
|
986
|
-
case "com.amazonaws.kinesisanalytics#CodeValidationException":
|
|
987
|
-
throw await de_CodeValidationExceptionRes(parsedOutput, context);
|
|
988
|
-
case "ConcurrentModificationException":
|
|
989
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
990
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
991
|
-
case "InvalidArgumentException":
|
|
992
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
993
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
994
|
-
case "ResourceInUseException":
|
|
995
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
996
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
997
|
-
case "ResourceNotFoundException":
|
|
998
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
999
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "UnsupportedOperationException":
|
|
1001
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
1002
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1003
|
-
default:
|
|
1004
|
-
const parsedBody = parsedOutput.body;
|
|
1005
|
-
return throwDefaultError({
|
|
1006
|
-
output,
|
|
1007
|
-
parsedBody,
|
|
1008
|
-
errorCode,
|
|
1009
|
-
});
|
|
1010
|
-
}
|
|
1011
|
-
};
|
|
1012
|
-
const de_CodeValidationExceptionRes = async (parsedOutput, context) => {
|
|
1013
|
-
const body = parsedOutput.body;
|
|
1014
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1015
|
-
const exception = new models_0_1.CodeValidationException({
|
|
1016
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1017
|
-
...deserialized,
|
|
1018
|
-
});
|
|
1019
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1020
|
-
};
|
|
1021
|
-
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
1022
|
-
const body = parsedOutput.body;
|
|
1023
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1024
|
-
const exception = new models_0_1.ConcurrentModificationException({
|
|
1025
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1026
|
-
...deserialized,
|
|
1027
|
-
});
|
|
1028
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1029
|
-
};
|
|
1030
|
-
const de_InvalidApplicationConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1031
|
-
const body = parsedOutput.body;
|
|
1032
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1033
|
-
const exception = new models_0_1.InvalidApplicationConfigurationException({
|
|
1034
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1035
|
-
...deserialized,
|
|
1036
|
-
});
|
|
1037
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1038
|
-
};
|
|
1039
|
-
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
1040
|
-
const body = parsedOutput.body;
|
|
1041
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1042
|
-
const exception = new models_0_1.InvalidArgumentException({
|
|
1043
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1044
|
-
...deserialized,
|
|
1045
|
-
});
|
|
1046
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1047
|
-
};
|
|
1048
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1049
|
-
const body = parsedOutput.body;
|
|
1050
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1051
|
-
const exception = new models_0_1.LimitExceededException({
|
|
1052
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1053
|
-
...deserialized,
|
|
1054
|
-
});
|
|
1055
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1056
|
-
};
|
|
1057
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
1058
|
-
const body = parsedOutput.body;
|
|
1059
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1060
|
-
const exception = new models_0_1.ResourceInUseException({
|
|
1061
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1062
|
-
...deserialized,
|
|
1063
|
-
});
|
|
1064
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1065
|
-
};
|
|
1066
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1067
|
-
const body = parsedOutput.body;
|
|
1068
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1069
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1070
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1071
|
-
...deserialized,
|
|
1072
|
-
});
|
|
1073
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1074
|
-
};
|
|
1075
|
-
const de_ResourceProvisionedThroughputExceededExceptionRes = async (parsedOutput, context) => {
|
|
1076
|
-
const body = parsedOutput.body;
|
|
1077
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1078
|
-
const exception = new models_0_1.ResourceProvisionedThroughputExceededException({
|
|
1079
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1080
|
-
...deserialized,
|
|
1081
|
-
});
|
|
1082
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1083
|
-
};
|
|
1084
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1085
|
-
const body = parsedOutput.body;
|
|
1086
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1087
|
-
const exception = new models_0_1.ServiceUnavailableException({
|
|
1088
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1089
|
-
...deserialized,
|
|
1090
|
-
});
|
|
1091
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1092
|
-
};
|
|
1093
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1094
|
-
const body = parsedOutput.body;
|
|
1095
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1096
|
-
const exception = new models_0_1.TooManyTagsException({
|
|
1097
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1098
|
-
...deserialized,
|
|
1099
|
-
});
|
|
1100
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1101
|
-
};
|
|
1102
|
-
const de_UnableToDetectSchemaExceptionRes = async (parsedOutput, context) => {
|
|
1103
|
-
const body = parsedOutput.body;
|
|
1104
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1105
|
-
const exception = new models_0_1.UnableToDetectSchemaException({
|
|
1106
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1107
|
-
...deserialized,
|
|
1108
|
-
});
|
|
1109
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1110
|
-
};
|
|
1111
|
-
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
1112
|
-
const body = parsedOutput.body;
|
|
1113
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1114
|
-
const exception = new models_0_1.UnsupportedOperationException({
|
|
1115
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1116
|
-
...deserialized,
|
|
1117
|
-
});
|
|
1118
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1119
|
-
};
|
|
1120
|
-
const se_DeleteApplicationRequest = (input, context) => {
|
|
1121
|
-
return (0, smithy_client_1.take)(input, {
|
|
1122
|
-
ApplicationName: [],
|
|
1123
|
-
CreateTimestamp: (_) => Math.round(_.getTime() / 1000),
|
|
1124
|
-
});
|
|
1125
|
-
};
|
|
1126
|
-
const de_ApplicationDetail = (output, context) => {
|
|
1127
|
-
return (0, smithy_client_1.take)(output, {
|
|
1128
|
-
ApplicationARN: smithy_client_1.expectString,
|
|
1129
|
-
ApplicationCode: smithy_client_1.expectString,
|
|
1130
|
-
ApplicationDescription: smithy_client_1.expectString,
|
|
1131
|
-
ApplicationName: smithy_client_1.expectString,
|
|
1132
|
-
ApplicationStatus: smithy_client_1.expectString,
|
|
1133
|
-
ApplicationVersionId: smithy_client_1.expectLong,
|
|
1134
|
-
CloudWatchLoggingOptionDescriptions: smithy_client_1._json,
|
|
1135
|
-
CreateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1136
|
-
InputDescriptions: smithy_client_1._json,
|
|
1137
|
-
LastUpdateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1138
|
-
OutputDescriptions: smithy_client_1._json,
|
|
1139
|
-
ReferenceDataSourceDescriptions: smithy_client_1._json,
|
|
1140
|
-
});
|
|
1141
|
-
};
|
|
1142
|
-
const de_DescribeApplicationResponse = (output, context) => {
|
|
1143
|
-
return (0, smithy_client_1.take)(output, {
|
|
1144
|
-
ApplicationDetail: (_) => de_ApplicationDetail(_, context),
|
|
1145
|
-
});
|
|
1146
|
-
};
|
|
1147
|
-
const deserializeMetadata = (output) => ({
|
|
1148
|
-
httpStatusCode: output.statusCode,
|
|
1149
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1150
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1151
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1152
|
-
});
|
|
1153
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1154
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException);
|
|
1155
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1156
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1157
|
-
const contents = {
|
|
1158
|
-
protocol,
|
|
1159
|
-
hostname,
|
|
1160
|
-
port,
|
|
1161
|
-
method: "POST",
|
|
1162
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1163
|
-
headers,
|
|
1164
|
-
};
|
|
1165
|
-
if (resolvedHostname !== undefined) {
|
|
1166
|
-
contents.hostname = resolvedHostname;
|
|
1167
|
-
}
|
|
1168
|
-
if (body !== undefined) {
|
|
1169
|
-
contents.body = body;
|
|
1170
|
-
}
|
|
1171
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
1172
|
-
};
|
|
1173
|
-
function sharedHeaders(operation) {
|
|
1174
|
-
return {
|
|
1175
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1176
|
-
"x-amz-target": `KinesisAnalytics_20150814.${operation}`,
|
|
1177
|
-
};
|
|
1178
|
-
}
|
|
1179
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1180
|
-
if (encoded.length) {
|
|
1181
|
-
return JSON.parse(encoded);
|
|
1182
|
-
}
|
|
1183
|
-
return {};
|
|
1184
|
-
});
|
|
1185
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1186
|
-
const value = await parseBody(errorBody, context);
|
|
1187
|
-
value.message = value.message ?? value.Message;
|
|
1188
|
-
return value;
|
|
1189
|
-
};
|
|
1190
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1191
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1192
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1193
|
-
let cleanValue = rawValue;
|
|
1194
|
-
if (typeof cleanValue === "number") {
|
|
1195
|
-
cleanValue = cleanValue.toString();
|
|
1196
|
-
}
|
|
1197
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1198
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1199
|
-
}
|
|
1200
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1201
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1202
|
-
}
|
|
1203
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1204
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1205
|
-
}
|
|
1206
|
-
return cleanValue;
|
|
1207
|
-
};
|
|
1208
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1209
|
-
if (headerKey !== undefined) {
|
|
1210
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1211
|
-
}
|
|
1212
|
-
if (data.code !== undefined) {
|
|
1213
|
-
return sanitizeErrorCode(data.code);
|
|
1214
|
-
}
|
|
1215
|
-
if (data["__type"] !== undefined) {
|
|
1216
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1217
|
-
}
|
|
1218
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|