@aws-sdk/client-kinesis-analytics 3.927.0 → 3.928.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/index.js +981 -776
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/KinesisAnalyticsClient.js +2 -0
- package/dist-es/commands/AddApplicationCloudWatchLoggingOptionCommand.js +3 -9
- package/dist-es/commands/AddApplicationInputCommand.js +3 -9
- package/dist-es/commands/AddApplicationInputProcessingConfigurationCommand.js +3 -9
- package/dist-es/commands/AddApplicationOutputCommand.js +3 -9
- package/dist-es/commands/AddApplicationReferenceDataSourceCommand.js +3 -9
- package/dist-es/commands/CreateApplicationCommand.js +3 -9
- package/dist-es/commands/DeleteApplicationCloudWatchLoggingOptionCommand.js +3 -9
- package/dist-es/commands/DeleteApplicationCommand.js +3 -9
- package/dist-es/commands/DeleteApplicationInputProcessingConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteApplicationOutputCommand.js +3 -9
- package/dist-es/commands/DeleteApplicationReferenceDataSourceCommand.js +3 -9
- package/dist-es/commands/DescribeApplicationCommand.js +3 -9
- package/dist-es/commands/DiscoverInputSchemaCommand.js +3 -9
- package/dist-es/commands/ListApplicationsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/StartApplicationCommand.js +3 -9
- package/dist-es/commands/StopApplicationCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateApplicationCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +910 -0
- package/dist-types/KinesisAnalyticsClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +149 -0
- package/dist-types/ts3.4/KinesisAnalyticsClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +154 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -604
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -182
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -245
|
@@ -1,604 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { KinesisAnalyticsServiceException as __BaseException } from "../models/KinesisAnalyticsServiceException";
|
|
5
|
-
import { CodeValidationException, ConcurrentModificationException, InvalidApplicationConfigurationException, InvalidArgumentException, LimitExceededException, ResourceInUseException, ResourceNotFoundException, ResourceProvisionedThroughputExceededException, ServiceUnavailableException, TooManyTagsException, UnableToDetectSchemaException, UnsupportedOperationException, } from "../models/models_0";
|
|
6
|
-
export const se_AddApplicationCloudWatchLoggingOptionCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("AddApplicationCloudWatchLoggingOption");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_AddApplicationInputCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("AddApplicationInput");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_AddApplicationInputProcessingConfigurationCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("AddApplicationInputProcessingConfiguration");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_AddApplicationOutputCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("AddApplicationOutput");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_AddApplicationReferenceDataSourceCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("AddApplicationReferenceDataSource");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_CreateApplicationCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("CreateApplication");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_DeleteApplicationCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("DeleteApplication");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(se_DeleteApplicationRequest(input, context));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_DeleteApplicationCloudWatchLoggingOptionCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("DeleteApplicationCloudWatchLoggingOption");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_DeleteApplicationInputProcessingConfigurationCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("DeleteApplicationInputProcessingConfiguration");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_DeleteApplicationOutputCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("DeleteApplicationOutput");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_DeleteApplicationReferenceDataSourceCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("DeleteApplicationReferenceDataSource");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_DescribeApplicationCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("DescribeApplication");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_DiscoverInputSchemaCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("DiscoverInputSchema");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_ListApplicationsCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("ListApplications");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_StartApplicationCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("StartApplication");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_StopApplicationCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("StopApplication");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("TagResource");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("UntagResource");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_UpdateApplicationCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("UpdateApplication");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const de_AddApplicationCloudWatchLoggingOptionCommand = async (output, context) => {
|
|
127
|
-
if (output.statusCode >= 300) {
|
|
128
|
-
return de_CommandError(output, context);
|
|
129
|
-
}
|
|
130
|
-
const data = await parseBody(output.body, context);
|
|
131
|
-
let contents = {};
|
|
132
|
-
contents = _json(data);
|
|
133
|
-
const response = {
|
|
134
|
-
$metadata: deserializeMetadata(output),
|
|
135
|
-
...contents,
|
|
136
|
-
};
|
|
137
|
-
return response;
|
|
138
|
-
};
|
|
139
|
-
export const de_AddApplicationInputCommand = async (output, context) => {
|
|
140
|
-
if (output.statusCode >= 300) {
|
|
141
|
-
return de_CommandError(output, context);
|
|
142
|
-
}
|
|
143
|
-
const data = await parseBody(output.body, context);
|
|
144
|
-
let contents = {};
|
|
145
|
-
contents = _json(data);
|
|
146
|
-
const response = {
|
|
147
|
-
$metadata: deserializeMetadata(output),
|
|
148
|
-
...contents,
|
|
149
|
-
};
|
|
150
|
-
return response;
|
|
151
|
-
};
|
|
152
|
-
export const de_AddApplicationInputProcessingConfigurationCommand = async (output, context) => {
|
|
153
|
-
if (output.statusCode >= 300) {
|
|
154
|
-
return de_CommandError(output, context);
|
|
155
|
-
}
|
|
156
|
-
const data = await parseBody(output.body, context);
|
|
157
|
-
let contents = {};
|
|
158
|
-
contents = _json(data);
|
|
159
|
-
const response = {
|
|
160
|
-
$metadata: deserializeMetadata(output),
|
|
161
|
-
...contents,
|
|
162
|
-
};
|
|
163
|
-
return response;
|
|
164
|
-
};
|
|
165
|
-
export const de_AddApplicationOutputCommand = async (output, context) => {
|
|
166
|
-
if (output.statusCode >= 300) {
|
|
167
|
-
return de_CommandError(output, context);
|
|
168
|
-
}
|
|
169
|
-
const data = await parseBody(output.body, context);
|
|
170
|
-
let contents = {};
|
|
171
|
-
contents = _json(data);
|
|
172
|
-
const response = {
|
|
173
|
-
$metadata: deserializeMetadata(output),
|
|
174
|
-
...contents,
|
|
175
|
-
};
|
|
176
|
-
return response;
|
|
177
|
-
};
|
|
178
|
-
export const de_AddApplicationReferenceDataSourceCommand = async (output, context) => {
|
|
179
|
-
if (output.statusCode >= 300) {
|
|
180
|
-
return de_CommandError(output, context);
|
|
181
|
-
}
|
|
182
|
-
const data = await parseBody(output.body, context);
|
|
183
|
-
let contents = {};
|
|
184
|
-
contents = _json(data);
|
|
185
|
-
const response = {
|
|
186
|
-
$metadata: deserializeMetadata(output),
|
|
187
|
-
...contents,
|
|
188
|
-
};
|
|
189
|
-
return response;
|
|
190
|
-
};
|
|
191
|
-
export const de_CreateApplicationCommand = async (output, context) => {
|
|
192
|
-
if (output.statusCode >= 300) {
|
|
193
|
-
return de_CommandError(output, context);
|
|
194
|
-
}
|
|
195
|
-
const data = await parseBody(output.body, context);
|
|
196
|
-
let contents = {};
|
|
197
|
-
contents = _json(data);
|
|
198
|
-
const response = {
|
|
199
|
-
$metadata: deserializeMetadata(output),
|
|
200
|
-
...contents,
|
|
201
|
-
};
|
|
202
|
-
return response;
|
|
203
|
-
};
|
|
204
|
-
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
205
|
-
if (output.statusCode >= 300) {
|
|
206
|
-
return de_CommandError(output, context);
|
|
207
|
-
}
|
|
208
|
-
const data = await parseBody(output.body, context);
|
|
209
|
-
let contents = {};
|
|
210
|
-
contents = _json(data);
|
|
211
|
-
const response = {
|
|
212
|
-
$metadata: deserializeMetadata(output),
|
|
213
|
-
...contents,
|
|
214
|
-
};
|
|
215
|
-
return response;
|
|
216
|
-
};
|
|
217
|
-
export const de_DeleteApplicationCloudWatchLoggingOptionCommand = async (output, context) => {
|
|
218
|
-
if (output.statusCode >= 300) {
|
|
219
|
-
return de_CommandError(output, context);
|
|
220
|
-
}
|
|
221
|
-
const data = await parseBody(output.body, context);
|
|
222
|
-
let contents = {};
|
|
223
|
-
contents = _json(data);
|
|
224
|
-
const response = {
|
|
225
|
-
$metadata: deserializeMetadata(output),
|
|
226
|
-
...contents,
|
|
227
|
-
};
|
|
228
|
-
return response;
|
|
229
|
-
};
|
|
230
|
-
export const de_DeleteApplicationInputProcessingConfigurationCommand = async (output, context) => {
|
|
231
|
-
if (output.statusCode >= 300) {
|
|
232
|
-
return de_CommandError(output, context);
|
|
233
|
-
}
|
|
234
|
-
const data = await parseBody(output.body, context);
|
|
235
|
-
let contents = {};
|
|
236
|
-
contents = _json(data);
|
|
237
|
-
const response = {
|
|
238
|
-
$metadata: deserializeMetadata(output),
|
|
239
|
-
...contents,
|
|
240
|
-
};
|
|
241
|
-
return response;
|
|
242
|
-
};
|
|
243
|
-
export const de_DeleteApplicationOutputCommand = async (output, context) => {
|
|
244
|
-
if (output.statusCode >= 300) {
|
|
245
|
-
return de_CommandError(output, context);
|
|
246
|
-
}
|
|
247
|
-
const data = await parseBody(output.body, context);
|
|
248
|
-
let contents = {};
|
|
249
|
-
contents = _json(data);
|
|
250
|
-
const response = {
|
|
251
|
-
$metadata: deserializeMetadata(output),
|
|
252
|
-
...contents,
|
|
253
|
-
};
|
|
254
|
-
return response;
|
|
255
|
-
};
|
|
256
|
-
export const de_DeleteApplicationReferenceDataSourceCommand = async (output, context) => {
|
|
257
|
-
if (output.statusCode >= 300) {
|
|
258
|
-
return de_CommandError(output, context);
|
|
259
|
-
}
|
|
260
|
-
const data = await parseBody(output.body, context);
|
|
261
|
-
let contents = {};
|
|
262
|
-
contents = _json(data);
|
|
263
|
-
const response = {
|
|
264
|
-
$metadata: deserializeMetadata(output),
|
|
265
|
-
...contents,
|
|
266
|
-
};
|
|
267
|
-
return response;
|
|
268
|
-
};
|
|
269
|
-
export const de_DescribeApplicationCommand = async (output, context) => {
|
|
270
|
-
if (output.statusCode >= 300) {
|
|
271
|
-
return de_CommandError(output, context);
|
|
272
|
-
}
|
|
273
|
-
const data = await parseBody(output.body, context);
|
|
274
|
-
let contents = {};
|
|
275
|
-
contents = de_DescribeApplicationResponse(data, context);
|
|
276
|
-
const response = {
|
|
277
|
-
$metadata: deserializeMetadata(output),
|
|
278
|
-
...contents,
|
|
279
|
-
};
|
|
280
|
-
return response;
|
|
281
|
-
};
|
|
282
|
-
export const de_DiscoverInputSchemaCommand = async (output, context) => {
|
|
283
|
-
if (output.statusCode >= 300) {
|
|
284
|
-
return de_CommandError(output, context);
|
|
285
|
-
}
|
|
286
|
-
const data = await parseBody(output.body, context);
|
|
287
|
-
let contents = {};
|
|
288
|
-
contents = _json(data);
|
|
289
|
-
const response = {
|
|
290
|
-
$metadata: deserializeMetadata(output),
|
|
291
|
-
...contents,
|
|
292
|
-
};
|
|
293
|
-
return response;
|
|
294
|
-
};
|
|
295
|
-
export const de_ListApplicationsCommand = async (output, context) => {
|
|
296
|
-
if (output.statusCode >= 300) {
|
|
297
|
-
return de_CommandError(output, context);
|
|
298
|
-
}
|
|
299
|
-
const data = await parseBody(output.body, context);
|
|
300
|
-
let contents = {};
|
|
301
|
-
contents = _json(data);
|
|
302
|
-
const response = {
|
|
303
|
-
$metadata: deserializeMetadata(output),
|
|
304
|
-
...contents,
|
|
305
|
-
};
|
|
306
|
-
return response;
|
|
307
|
-
};
|
|
308
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
309
|
-
if (output.statusCode >= 300) {
|
|
310
|
-
return de_CommandError(output, context);
|
|
311
|
-
}
|
|
312
|
-
const data = await parseBody(output.body, context);
|
|
313
|
-
let contents = {};
|
|
314
|
-
contents = _json(data);
|
|
315
|
-
const response = {
|
|
316
|
-
$metadata: deserializeMetadata(output),
|
|
317
|
-
...contents,
|
|
318
|
-
};
|
|
319
|
-
return response;
|
|
320
|
-
};
|
|
321
|
-
export const de_StartApplicationCommand = async (output, context) => {
|
|
322
|
-
if (output.statusCode >= 300) {
|
|
323
|
-
return de_CommandError(output, context);
|
|
324
|
-
}
|
|
325
|
-
const data = await parseBody(output.body, context);
|
|
326
|
-
let contents = {};
|
|
327
|
-
contents = _json(data);
|
|
328
|
-
const response = {
|
|
329
|
-
$metadata: deserializeMetadata(output),
|
|
330
|
-
...contents,
|
|
331
|
-
};
|
|
332
|
-
return response;
|
|
333
|
-
};
|
|
334
|
-
export const de_StopApplicationCommand = async (output, context) => {
|
|
335
|
-
if (output.statusCode >= 300) {
|
|
336
|
-
return de_CommandError(output, context);
|
|
337
|
-
}
|
|
338
|
-
const data = await parseBody(output.body, context);
|
|
339
|
-
let contents = {};
|
|
340
|
-
contents = _json(data);
|
|
341
|
-
const response = {
|
|
342
|
-
$metadata: deserializeMetadata(output),
|
|
343
|
-
...contents,
|
|
344
|
-
};
|
|
345
|
-
return response;
|
|
346
|
-
};
|
|
347
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
348
|
-
if (output.statusCode >= 300) {
|
|
349
|
-
return de_CommandError(output, context);
|
|
350
|
-
}
|
|
351
|
-
const data = await parseBody(output.body, context);
|
|
352
|
-
let contents = {};
|
|
353
|
-
contents = _json(data);
|
|
354
|
-
const response = {
|
|
355
|
-
$metadata: deserializeMetadata(output),
|
|
356
|
-
...contents,
|
|
357
|
-
};
|
|
358
|
-
return response;
|
|
359
|
-
};
|
|
360
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
361
|
-
if (output.statusCode >= 300) {
|
|
362
|
-
return de_CommandError(output, context);
|
|
363
|
-
}
|
|
364
|
-
const data = await parseBody(output.body, context);
|
|
365
|
-
let contents = {};
|
|
366
|
-
contents = _json(data);
|
|
367
|
-
const response = {
|
|
368
|
-
$metadata: deserializeMetadata(output),
|
|
369
|
-
...contents,
|
|
370
|
-
};
|
|
371
|
-
return response;
|
|
372
|
-
};
|
|
373
|
-
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
374
|
-
if (output.statusCode >= 300) {
|
|
375
|
-
return de_CommandError(output, context);
|
|
376
|
-
}
|
|
377
|
-
const data = await parseBody(output.body, context);
|
|
378
|
-
let contents = {};
|
|
379
|
-
contents = _json(data);
|
|
380
|
-
const response = {
|
|
381
|
-
$metadata: deserializeMetadata(output),
|
|
382
|
-
...contents,
|
|
383
|
-
};
|
|
384
|
-
return response;
|
|
385
|
-
};
|
|
386
|
-
const de_CommandError = async (output, context) => {
|
|
387
|
-
const parsedOutput = {
|
|
388
|
-
...output,
|
|
389
|
-
body: await parseErrorBody(output.body, context),
|
|
390
|
-
};
|
|
391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
392
|
-
switch (errorCode) {
|
|
393
|
-
case "ConcurrentModificationException":
|
|
394
|
-
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
395
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
396
|
-
case "InvalidArgumentException":
|
|
397
|
-
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
398
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
399
|
-
case "ResourceInUseException":
|
|
400
|
-
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
401
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
402
|
-
case "ResourceNotFoundException":
|
|
403
|
-
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
404
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
405
|
-
case "UnsupportedOperationException":
|
|
406
|
-
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
407
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
408
|
-
case "CodeValidationException":
|
|
409
|
-
case "com.amazonaws.kinesisanalytics#CodeValidationException":
|
|
410
|
-
throw await de_CodeValidationExceptionRes(parsedOutput, context);
|
|
411
|
-
case "LimitExceededException":
|
|
412
|
-
case "com.amazonaws.kinesisanalytics#LimitExceededException":
|
|
413
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
414
|
-
case "TooManyTagsException":
|
|
415
|
-
case "com.amazonaws.kinesisanalytics#TooManyTagsException":
|
|
416
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
417
|
-
case "ResourceProvisionedThroughputExceededException":
|
|
418
|
-
case "com.amazonaws.kinesisanalytics#ResourceProvisionedThroughputExceededException":
|
|
419
|
-
throw await de_ResourceProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
420
|
-
case "ServiceUnavailableException":
|
|
421
|
-
case "com.amazonaws.kinesisanalytics#ServiceUnavailableException":
|
|
422
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
423
|
-
case "UnableToDetectSchemaException":
|
|
424
|
-
case "com.amazonaws.kinesisanalytics#UnableToDetectSchemaException":
|
|
425
|
-
throw await de_UnableToDetectSchemaExceptionRes(parsedOutput, context);
|
|
426
|
-
case "InvalidApplicationConfigurationException":
|
|
427
|
-
case "com.amazonaws.kinesisanalytics#InvalidApplicationConfigurationException":
|
|
428
|
-
throw await de_InvalidApplicationConfigurationExceptionRes(parsedOutput, context);
|
|
429
|
-
default:
|
|
430
|
-
const parsedBody = parsedOutput.body;
|
|
431
|
-
return throwDefaultError({
|
|
432
|
-
output,
|
|
433
|
-
parsedBody,
|
|
434
|
-
errorCode,
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
};
|
|
438
|
-
const de_CodeValidationExceptionRes = async (parsedOutput, context) => {
|
|
439
|
-
const body = parsedOutput.body;
|
|
440
|
-
const deserialized = _json(body);
|
|
441
|
-
const exception = new CodeValidationException({
|
|
442
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
443
|
-
...deserialized,
|
|
444
|
-
});
|
|
445
|
-
return __decorateServiceException(exception, body);
|
|
446
|
-
};
|
|
447
|
-
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
448
|
-
const body = parsedOutput.body;
|
|
449
|
-
const deserialized = _json(body);
|
|
450
|
-
const exception = new ConcurrentModificationException({
|
|
451
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
452
|
-
...deserialized,
|
|
453
|
-
});
|
|
454
|
-
return __decorateServiceException(exception, body);
|
|
455
|
-
};
|
|
456
|
-
const de_InvalidApplicationConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
457
|
-
const body = parsedOutput.body;
|
|
458
|
-
const deserialized = _json(body);
|
|
459
|
-
const exception = new InvalidApplicationConfigurationException({
|
|
460
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
461
|
-
...deserialized,
|
|
462
|
-
});
|
|
463
|
-
return __decorateServiceException(exception, body);
|
|
464
|
-
};
|
|
465
|
-
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
466
|
-
const body = parsedOutput.body;
|
|
467
|
-
const deserialized = _json(body);
|
|
468
|
-
const exception = new InvalidArgumentException({
|
|
469
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
470
|
-
...deserialized,
|
|
471
|
-
});
|
|
472
|
-
return __decorateServiceException(exception, body);
|
|
473
|
-
};
|
|
474
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
475
|
-
const body = parsedOutput.body;
|
|
476
|
-
const deserialized = _json(body);
|
|
477
|
-
const exception = new LimitExceededException({
|
|
478
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
479
|
-
...deserialized,
|
|
480
|
-
});
|
|
481
|
-
return __decorateServiceException(exception, body);
|
|
482
|
-
};
|
|
483
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
484
|
-
const body = parsedOutput.body;
|
|
485
|
-
const deserialized = _json(body);
|
|
486
|
-
const exception = new ResourceInUseException({
|
|
487
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
488
|
-
...deserialized,
|
|
489
|
-
});
|
|
490
|
-
return __decorateServiceException(exception, body);
|
|
491
|
-
};
|
|
492
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
493
|
-
const body = parsedOutput.body;
|
|
494
|
-
const deserialized = _json(body);
|
|
495
|
-
const exception = new ResourceNotFoundException({
|
|
496
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
497
|
-
...deserialized,
|
|
498
|
-
});
|
|
499
|
-
return __decorateServiceException(exception, body);
|
|
500
|
-
};
|
|
501
|
-
const de_ResourceProvisionedThroughputExceededExceptionRes = async (parsedOutput, context) => {
|
|
502
|
-
const body = parsedOutput.body;
|
|
503
|
-
const deserialized = _json(body);
|
|
504
|
-
const exception = new ResourceProvisionedThroughputExceededException({
|
|
505
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
506
|
-
...deserialized,
|
|
507
|
-
});
|
|
508
|
-
return __decorateServiceException(exception, body);
|
|
509
|
-
};
|
|
510
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
511
|
-
const body = parsedOutput.body;
|
|
512
|
-
const deserialized = _json(body);
|
|
513
|
-
const exception = new ServiceUnavailableException({
|
|
514
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
515
|
-
...deserialized,
|
|
516
|
-
});
|
|
517
|
-
return __decorateServiceException(exception, body);
|
|
518
|
-
};
|
|
519
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
520
|
-
const body = parsedOutput.body;
|
|
521
|
-
const deserialized = _json(body);
|
|
522
|
-
const exception = new TooManyTagsException({
|
|
523
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
524
|
-
...deserialized,
|
|
525
|
-
});
|
|
526
|
-
return __decorateServiceException(exception, body);
|
|
527
|
-
};
|
|
528
|
-
const de_UnableToDetectSchemaExceptionRes = async (parsedOutput, context) => {
|
|
529
|
-
const body = parsedOutput.body;
|
|
530
|
-
const deserialized = _json(body);
|
|
531
|
-
const exception = new UnableToDetectSchemaException({
|
|
532
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
533
|
-
...deserialized,
|
|
534
|
-
});
|
|
535
|
-
return __decorateServiceException(exception, body);
|
|
536
|
-
};
|
|
537
|
-
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
538
|
-
const body = parsedOutput.body;
|
|
539
|
-
const deserialized = _json(body);
|
|
540
|
-
const exception = new UnsupportedOperationException({
|
|
541
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
542
|
-
...deserialized,
|
|
543
|
-
});
|
|
544
|
-
return __decorateServiceException(exception, body);
|
|
545
|
-
};
|
|
546
|
-
const se_DeleteApplicationRequest = (input, context) => {
|
|
547
|
-
return take(input, {
|
|
548
|
-
ApplicationName: [],
|
|
549
|
-
CreateTimestamp: (_) => _.getTime() / 1_000,
|
|
550
|
-
});
|
|
551
|
-
};
|
|
552
|
-
const de_ApplicationDetail = (output, context) => {
|
|
553
|
-
return take(output, {
|
|
554
|
-
ApplicationARN: __expectString,
|
|
555
|
-
ApplicationCode: __expectString,
|
|
556
|
-
ApplicationDescription: __expectString,
|
|
557
|
-
ApplicationName: __expectString,
|
|
558
|
-
ApplicationStatus: __expectString,
|
|
559
|
-
ApplicationVersionId: __expectLong,
|
|
560
|
-
CloudWatchLoggingOptionDescriptions: _json,
|
|
561
|
-
CreateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
562
|
-
InputDescriptions: _json,
|
|
563
|
-
LastUpdateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
564
|
-
OutputDescriptions: _json,
|
|
565
|
-
ReferenceDataSourceDescriptions: _json,
|
|
566
|
-
});
|
|
567
|
-
};
|
|
568
|
-
const de_DescribeApplicationResponse = (output, context) => {
|
|
569
|
-
return take(output, {
|
|
570
|
-
ApplicationDetail: (_) => de_ApplicationDetail(_, context),
|
|
571
|
-
});
|
|
572
|
-
};
|
|
573
|
-
const deserializeMetadata = (output) => ({
|
|
574
|
-
httpStatusCode: output.statusCode,
|
|
575
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
576
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
577
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
578
|
-
});
|
|
579
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
580
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
581
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
582
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
583
|
-
const contents = {
|
|
584
|
-
protocol,
|
|
585
|
-
hostname,
|
|
586
|
-
port,
|
|
587
|
-
method: "POST",
|
|
588
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
589
|
-
headers,
|
|
590
|
-
};
|
|
591
|
-
if (resolvedHostname !== undefined) {
|
|
592
|
-
contents.hostname = resolvedHostname;
|
|
593
|
-
}
|
|
594
|
-
if (body !== undefined) {
|
|
595
|
-
contents.body = body;
|
|
596
|
-
}
|
|
597
|
-
return new __HttpRequest(contents);
|
|
598
|
-
};
|
|
599
|
-
function sharedHeaders(operation) {
|
|
600
|
-
return {
|
|
601
|
-
"content-type": "application/x-amz-json-1.1",
|
|
602
|
-
"x-amz-target": `KinesisAnalytics_20150814.${operation}`,
|
|
603
|
-
};
|
|
604
|
-
}
|