@aws-sdk/client-kinesis-analytics-v2 3.33.0 → 3.34.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/CHANGELOG.md +11 -0
- package/dist/cjs/package.json +38 -38
- package/dist/es/KinesisAnalyticsV2.js +1 -6
- package/dist/es/KinesisAnalyticsV2.js.map +1 -1
- package/dist/es/KinesisAnalyticsV2Client.js +1 -11
- package/dist/es/KinesisAnalyticsV2Client.js.map +1 -1
- package/dist/es/commands/AddApplicationCloudWatchLoggingOptionCommand.js +2 -27
- package/dist/es/commands/AddApplicationCloudWatchLoggingOptionCommand.js.map +1 -1
- package/dist/es/commands/AddApplicationInputCommand.js +2 -36
- package/dist/es/commands/AddApplicationInputCommand.js.map +1 -1
- package/dist/es/commands/AddApplicationInputProcessingConfigurationCommand.js +2 -29
- package/dist/es/commands/AddApplicationInputProcessingConfigurationCommand.js.map +1 -1
- package/dist/es/commands/AddApplicationOutputCommand.js +2 -39
- package/dist/es/commands/AddApplicationOutputCommand.js.map +1 -1
- package/dist/es/commands/AddApplicationReferenceDataSourceCommand.js +2 -32
- package/dist/es/commands/AddApplicationReferenceDataSourceCommand.js.map +1 -1
- package/dist/es/commands/AddApplicationVpcConfigurationCommand.js +2 -38
- package/dist/es/commands/AddApplicationVpcConfigurationCommand.js.map +1 -1
- package/dist/es/commands/CreateApplicationCommand.js +2 -29
- package/dist/es/commands/CreateApplicationCommand.js.map +1 -1
- package/dist/es/commands/CreateApplicationPresignedUrlCommand.js +2 -40
- package/dist/es/commands/CreateApplicationPresignedUrlCommand.js.map +1 -1
- package/dist/es/commands/CreateApplicationSnapshotCommand.js +2 -27
- package/dist/es/commands/CreateApplicationSnapshotCommand.js.map +1 -1
- package/dist/es/commands/DeleteApplicationCloudWatchLoggingOptionCommand.js +2 -27
- package/dist/es/commands/DeleteApplicationCloudWatchLoggingOptionCommand.js.map +1 -1
- package/dist/es/commands/DeleteApplicationCommand.js +2 -27
- package/dist/es/commands/DeleteApplicationCommand.js.map +1 -1
- package/dist/es/commands/DeleteApplicationInputProcessingConfigurationCommand.js +2 -27
- package/dist/es/commands/DeleteApplicationInputProcessingConfigurationCommand.js.map +1 -1
- package/dist/es/commands/DeleteApplicationOutputCommand.js +2 -29
- package/dist/es/commands/DeleteApplicationOutputCommand.js.map +1 -1
- package/dist/es/commands/DeleteApplicationReferenceDataSourceCommand.js +2 -29
- package/dist/es/commands/DeleteApplicationReferenceDataSourceCommand.js.map +1 -1
- package/dist/es/commands/DeleteApplicationSnapshotCommand.js +2 -27
- package/dist/es/commands/DeleteApplicationSnapshotCommand.js.map +1 -1
- package/dist/es/commands/DeleteApplicationVpcConfigurationCommand.js +2 -27
- package/dist/es/commands/DeleteApplicationVpcConfigurationCommand.js.map +1 -1
- package/dist/es/commands/DescribeApplicationCommand.js +2 -29
- package/dist/es/commands/DescribeApplicationCommand.js.map +1 -1
- package/dist/es/commands/DescribeApplicationSnapshotCommand.js +2 -27
- package/dist/es/commands/DescribeApplicationSnapshotCommand.js.map +1 -1
- package/dist/es/commands/DescribeApplicationVersionCommand.js +2 -30
- package/dist/es/commands/DescribeApplicationVersionCommand.js.map +1 -1
- package/dist/es/commands/DiscoverInputSchemaCommand.js +2 -33
- package/dist/es/commands/DiscoverInputSchemaCommand.js.map +1 -1
- package/dist/es/commands/ListApplicationSnapshotsCommand.js +2 -27
- package/dist/es/commands/ListApplicationSnapshotsCommand.js.map +1 -1
- package/dist/es/commands/ListApplicationVersionsCommand.js +2 -33
- package/dist/es/commands/ListApplicationVersionsCommand.js.map +1 -1
- package/dist/es/commands/ListApplicationsCommand.js +2 -31
- package/dist/es/commands/ListApplicationsCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -28
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/RollbackApplicationCommand.js +2 -33
- package/dist/es/commands/RollbackApplicationCommand.js.map +1 -1
- package/dist/es/commands/StartApplicationCommand.js +2 -28
- package/dist/es/commands/StartApplicationCommand.js.map +1 -1
- package/dist/es/commands/StopApplicationCommand.js +2 -33
- package/dist/es/commands/StopApplicationCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -29
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -28
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UpdateApplicationCommand.js +2 -35
- package/dist/es/commands/UpdateApplicationCommand.js.map +1 -1
- package/dist/es/commands/UpdateApplicationMaintenanceConfigurationCommand.js +2 -42
- package/dist/es/commands/UpdateApplicationMaintenanceConfigurationCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -582
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +38 -38
- package/dist/es/protocols/Aws_json1_1.js +828 -833
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/package.json +38 -38
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +4 -5
- package/tsconfig.types.json +8 -0
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1AddApplicationCloudWatchLoggingOptionCommand = fu
|
|
|
9
9
|
"x-amz-target": "KinesisAnalytics_20180523.AddApplicationCloudWatchLoggingOption",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1AddApplicationCloudWatchLoggingOptionRequest(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1AddApplicationInputCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1AddApplicationInputCommand = function (input, con
|
|
|
20
20
|
"x-amz-target": "KinesisAnalytics_20180523.AddApplicationInput",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1AddApplicationInputRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1AddApplicationInputProcessingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1AddApplicationInputProcessingConfigurationCommand
|
|
|
31
31
|
"x-amz-target": "KinesisAnalytics_20180523.AddApplicationInputProcessingConfiguration",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1AddApplicationInputProcessingConfigurationRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1AddApplicationOutputCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1AddApplicationOutputCommand = function (input, co
|
|
|
42
42
|
"x-amz-target": "KinesisAnalytics_20180523.AddApplicationOutput",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1AddApplicationOutputRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1AddApplicationReferenceDataSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1AddApplicationReferenceDataSourceCommand = functi
|
|
|
53
53
|
"x-amz-target": "KinesisAnalytics_20180523.AddApplicationReferenceDataSource",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1AddApplicationReferenceDataSourceRequest(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1AddApplicationVpcConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1AddApplicationVpcConfigurationCommand = function
|
|
|
64
64
|
"x-amz-target": "KinesisAnalytics_20180523.AddApplicationVpcConfiguration",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1AddApplicationVpcConfigurationRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1CreateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1CreateApplicationCommand = function (input, conte
|
|
|
75
75
|
"x-amz-target": "KinesisAnalytics_20180523.CreateApplication",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1CreateApplicationRequest(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1CreateApplicationPresignedUrlCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1CreateApplicationPresignedUrlCommand = function (
|
|
|
86
86
|
"x-amz-target": "KinesisAnalytics_20180523.CreateApplicationPresignedUrl",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1CreateApplicationPresignedUrlRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1CreateApplicationSnapshotCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1CreateApplicationSnapshotCommand = function (inpu
|
|
|
97
97
|
"x-amz-target": "KinesisAnalytics_20180523.CreateApplicationSnapshot",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1CreateApplicationSnapshotRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1DeleteApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1DeleteApplicationCommand = function (input, conte
|
|
|
108
108
|
"x-amz-target": "KinesisAnalytics_20180523.DeleteApplication",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1DeleteApplicationRequest(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionCommand =
|
|
|
119
119
|
"x-amz-target": "KinesisAnalytics_20180523.DeleteApplicationCloudWatchLoggingOption",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionRequest(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1DeleteApplicationInputProcessingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1DeleteApplicationInputProcessingConfigurationComm
|
|
|
130
130
|
"x-amz-target": "KinesisAnalytics_20180523.DeleteApplicationInputProcessingConfiguration",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_1DeleteApplicationInputProcessingConfigurationRequest(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1DeleteApplicationOutputCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1DeleteApplicationOutputCommand = function (input,
|
|
|
141
141
|
"x-amz-target": "KinesisAnalytics_20180523.DeleteApplicationOutput",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_1DeleteApplicationOutputRequest(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_1DeleteApplicationReferenceDataSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_1DeleteApplicationReferenceDataSourceCommand = fun
|
|
|
152
152
|
"x-amz-target": "KinesisAnalytics_20180523.DeleteApplicationReferenceDataSource",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_1DeleteApplicationReferenceDataSourceRequest(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_1DeleteApplicationSnapshotCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_1DeleteApplicationSnapshotCommand = function (inpu
|
|
|
163
163
|
"x-amz-target": "KinesisAnalytics_20180523.DeleteApplicationSnapshot",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_1DeleteApplicationSnapshotRequest(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_1DeleteApplicationVpcConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_1DeleteApplicationVpcConfigurationCommand = functi
|
|
|
174
174
|
"x-amz-target": "KinesisAnalytics_20180523.DeleteApplicationVpcConfiguration",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_1DeleteApplicationVpcConfigurationRequest(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_1DescribeApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_1DescribeApplicationCommand = function (input, con
|
|
|
185
185
|
"x-amz-target": "KinesisAnalytics_20180523.DescribeApplication",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_1DescribeApplicationRequest(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var serializeAws_json1_1DescribeApplicationSnapshotCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +196,7 @@ export var serializeAws_json1_1DescribeApplicationSnapshotCommand = function (in
|
|
|
196
196
|
"x-amz-target": "KinesisAnalytics_20180523.DescribeApplicationSnapshot",
|
|
197
197
|
};
|
|
198
198
|
body = JSON.stringify(serializeAws_json1_1DescribeApplicationSnapshotRequest(input, context));
|
|
199
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
export var serializeAws_json1_1DescribeApplicationVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +207,7 @@ export var serializeAws_json1_1DescribeApplicationVersionCommand = function (inp
|
|
|
207
207
|
"x-amz-target": "KinesisAnalytics_20180523.DescribeApplicationVersion",
|
|
208
208
|
};
|
|
209
209
|
body = JSON.stringify(serializeAws_json1_1DescribeApplicationVersionRequest(input, context));
|
|
210
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
211
|
});
|
|
212
212
|
}); };
|
|
213
213
|
export var serializeAws_json1_1DiscoverInputSchemaCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -218,7 +218,7 @@ export var serializeAws_json1_1DiscoverInputSchemaCommand = function (input, con
|
|
|
218
218
|
"x-amz-target": "KinesisAnalytics_20180523.DiscoverInputSchema",
|
|
219
219
|
};
|
|
220
220
|
body = JSON.stringify(serializeAws_json1_1DiscoverInputSchemaRequest(input, context));
|
|
221
|
-
return [2
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
222
|
});
|
|
223
223
|
}); };
|
|
224
224
|
export var serializeAws_json1_1ListApplicationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -229,7 +229,7 @@ export var serializeAws_json1_1ListApplicationsCommand = function (input, contex
|
|
|
229
229
|
"x-amz-target": "KinesisAnalytics_20180523.ListApplications",
|
|
230
230
|
};
|
|
231
231
|
body = JSON.stringify(serializeAws_json1_1ListApplicationsRequest(input, context));
|
|
232
|
-
return [2
|
|
232
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
233
|
});
|
|
234
234
|
}); };
|
|
235
235
|
export var serializeAws_json1_1ListApplicationSnapshotsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -240,7 +240,7 @@ export var serializeAws_json1_1ListApplicationSnapshotsCommand = function (input
|
|
|
240
240
|
"x-amz-target": "KinesisAnalytics_20180523.ListApplicationSnapshots",
|
|
241
241
|
};
|
|
242
242
|
body = JSON.stringify(serializeAws_json1_1ListApplicationSnapshotsRequest(input, context));
|
|
243
|
-
return [2
|
|
243
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
244
244
|
});
|
|
245
245
|
}); };
|
|
246
246
|
export var serializeAws_json1_1ListApplicationVersionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -251,7 +251,7 @@ export var serializeAws_json1_1ListApplicationVersionsCommand = function (input,
|
|
|
251
251
|
"x-amz-target": "KinesisAnalytics_20180523.ListApplicationVersions",
|
|
252
252
|
};
|
|
253
253
|
body = JSON.stringify(serializeAws_json1_1ListApplicationVersionsRequest(input, context));
|
|
254
|
-
return [2
|
|
254
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
255
255
|
});
|
|
256
256
|
}); };
|
|
257
257
|
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -262,7 +262,7 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
|
|
|
262
262
|
"x-amz-target": "KinesisAnalytics_20180523.ListTagsForResource",
|
|
263
263
|
};
|
|
264
264
|
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
265
|
-
return [2
|
|
265
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
266
266
|
});
|
|
267
267
|
}); };
|
|
268
268
|
export var serializeAws_json1_1RollbackApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -273,7 +273,7 @@ export var serializeAws_json1_1RollbackApplicationCommand = function (input, con
|
|
|
273
273
|
"x-amz-target": "KinesisAnalytics_20180523.RollbackApplication",
|
|
274
274
|
};
|
|
275
275
|
body = JSON.stringify(serializeAws_json1_1RollbackApplicationRequest(input, context));
|
|
276
|
-
return [2
|
|
276
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
277
277
|
});
|
|
278
278
|
}); };
|
|
279
279
|
export var serializeAws_json1_1StartApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -284,7 +284,7 @@ export var serializeAws_json1_1StartApplicationCommand = function (input, contex
|
|
|
284
284
|
"x-amz-target": "KinesisAnalytics_20180523.StartApplication",
|
|
285
285
|
};
|
|
286
286
|
body = JSON.stringify(serializeAws_json1_1StartApplicationRequest(input, context));
|
|
287
|
-
return [2
|
|
287
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
288
288
|
});
|
|
289
289
|
}); };
|
|
290
290
|
export var serializeAws_json1_1StopApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -295,7 +295,7 @@ export var serializeAws_json1_1StopApplicationCommand = function (input, context
|
|
|
295
295
|
"x-amz-target": "KinesisAnalytics_20180523.StopApplication",
|
|
296
296
|
};
|
|
297
297
|
body = JSON.stringify(serializeAws_json1_1StopApplicationRequest(input, context));
|
|
298
|
-
return [2
|
|
298
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
299
299
|
});
|
|
300
300
|
}); };
|
|
301
301
|
export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -306,7 +306,7 @@ export var serializeAws_json1_1TagResourceCommand = function (input, context) {
|
|
|
306
306
|
"x-amz-target": "KinesisAnalytics_20180523.TagResource",
|
|
307
307
|
};
|
|
308
308
|
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
309
|
-
return [2
|
|
309
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
310
310
|
});
|
|
311
311
|
}); };
|
|
312
312
|
export var serializeAws_json1_1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -317,7 +317,7 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
|
|
|
317
317
|
"x-amz-target": "KinesisAnalytics_20180523.UntagResource",
|
|
318
318
|
};
|
|
319
319
|
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
320
|
-
return [2
|
|
320
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
321
321
|
});
|
|
322
322
|
}); };
|
|
323
323
|
export var serializeAws_json1_1UpdateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -328,7 +328,7 @@ export var serializeAws_json1_1UpdateApplicationCommand = function (input, conte
|
|
|
328
328
|
"x-amz-target": "KinesisAnalytics_20180523.UpdateApplication",
|
|
329
329
|
};
|
|
330
330
|
body = JSON.stringify(serializeAws_json1_1UpdateApplicationRequest(input, context));
|
|
331
|
-
return [2
|
|
331
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
332
332
|
});
|
|
333
333
|
}); };
|
|
334
334
|
export var serializeAws_json1_1UpdateApplicationMaintenanceConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -339,7 +339,7 @@ export var serializeAws_json1_1UpdateApplicationMaintenanceConfigurationCommand
|
|
|
339
339
|
"x-amz-target": "KinesisAnalytics_20180523.UpdateApplicationMaintenanceConfiguration",
|
|
340
340
|
};
|
|
341
341
|
body = JSON.stringify(serializeAws_json1_1UpdateApplicationMaintenanceConfigurationRequest(input, context));
|
|
342
|
-
return [2
|
|
342
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
343
343
|
});
|
|
344
344
|
}); };
|
|
345
345
|
export var deserializeAws_json1_1AddApplicationCloudWatchLoggingOptionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -348,15 +348,15 @@ export var deserializeAws_json1_1AddApplicationCloudWatchLoggingOptionCommand =
|
|
|
348
348
|
switch (_a.label) {
|
|
349
349
|
case 0:
|
|
350
350
|
if (output.statusCode >= 300) {
|
|
351
|
-
return [2
|
|
351
|
+
return [2, deserializeAws_json1_1AddApplicationCloudWatchLoggingOptionCommandError(output, context)];
|
|
352
352
|
}
|
|
353
|
-
return [4
|
|
353
|
+
return [4, parseBody(output.body, context)];
|
|
354
354
|
case 1:
|
|
355
355
|
data = _a.sent();
|
|
356
356
|
contents = {};
|
|
357
357
|
contents = deserializeAws_json1_1AddApplicationCloudWatchLoggingOptionResponse(data, context);
|
|
358
358
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
359
|
-
return [2
|
|
359
|
+
return [2, Promise.resolve(response)];
|
|
360
360
|
}
|
|
361
361
|
});
|
|
362
362
|
}); };
|
|
@@ -368,63 +368,63 @@ var deserializeAws_json1_1AddApplicationCloudWatchLoggingOptionCommandError = fu
|
|
|
368
368
|
case 0:
|
|
369
369
|
_a = [__assign({}, output)];
|
|
370
370
|
_j = {};
|
|
371
|
-
return [4
|
|
371
|
+
return [4, parseBody(output.body, context)];
|
|
372
372
|
case 1:
|
|
373
373
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
374
374
|
errorCode = "UnknownError";
|
|
375
375
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
376
376
|
_b = errorCode;
|
|
377
377
|
switch (_b) {
|
|
378
|
-
case "ConcurrentModificationException": return [3
|
|
379
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
380
|
-
case "InvalidApplicationConfigurationException": return [3
|
|
381
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3
|
|
382
|
-
case "InvalidArgumentException": return [3
|
|
383
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
384
|
-
case "InvalidRequestException": return [3
|
|
385
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
386
|
-
case "ResourceInUseException": return [3
|
|
387
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
388
|
-
case "ResourceNotFoundException": return [3
|
|
389
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
378
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
379
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
380
|
+
case "InvalidApplicationConfigurationException": return [3, 4];
|
|
381
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3, 4];
|
|
382
|
+
case "InvalidArgumentException": return [3, 6];
|
|
383
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 6];
|
|
384
|
+
case "InvalidRequestException": return [3, 8];
|
|
385
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 8];
|
|
386
|
+
case "ResourceInUseException": return [3, 10];
|
|
387
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 10];
|
|
388
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
389
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 12];
|
|
390
390
|
}
|
|
391
|
-
return [3
|
|
391
|
+
return [3, 14];
|
|
392
392
|
case 2:
|
|
393
393
|
_c = [{}];
|
|
394
|
-
return [4
|
|
394
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
395
395
|
case 3:
|
|
396
396
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
397
|
-
return [3
|
|
397
|
+
return [3, 15];
|
|
398
398
|
case 4:
|
|
399
399
|
_d = [{}];
|
|
400
|
-
return [4
|
|
400
|
+
return [4, deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse(parsedOutput, context)];
|
|
401
401
|
case 5:
|
|
402
402
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
403
|
-
return [3
|
|
403
|
+
return [3, 15];
|
|
404
404
|
case 6:
|
|
405
405
|
_e = [{}];
|
|
406
|
-
return [4
|
|
406
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
407
407
|
case 7:
|
|
408
408
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
409
|
-
return [3
|
|
409
|
+
return [3, 15];
|
|
410
410
|
case 8:
|
|
411
411
|
_f = [{}];
|
|
412
|
-
return [4
|
|
412
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
413
413
|
case 9:
|
|
414
414
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
415
|
-
return [3
|
|
415
|
+
return [3, 15];
|
|
416
416
|
case 10:
|
|
417
417
|
_g = [{}];
|
|
418
|
-
return [4
|
|
418
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
419
419
|
case 11:
|
|
420
420
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
421
|
-
return [3
|
|
421
|
+
return [3, 15];
|
|
422
422
|
case 12:
|
|
423
423
|
_h = [{}];
|
|
424
|
-
return [4
|
|
424
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
425
425
|
case 13:
|
|
426
426
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
427
|
-
return [3
|
|
427
|
+
return [3, 15];
|
|
428
428
|
case 14:
|
|
429
429
|
parsedBody = parsedOutput.body;
|
|
430
430
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -434,7 +434,7 @@ var deserializeAws_json1_1AddApplicationCloudWatchLoggingOptionCommandError = fu
|
|
|
434
434
|
message = response.message || response.Message || errorCode;
|
|
435
435
|
response.message = message;
|
|
436
436
|
delete response.Message;
|
|
437
|
-
return [2
|
|
437
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
438
438
|
}
|
|
439
439
|
});
|
|
440
440
|
}); };
|
|
@@ -444,15 +444,15 @@ export var deserializeAws_json1_1AddApplicationInputCommand = function (output,
|
|
|
444
444
|
switch (_a.label) {
|
|
445
445
|
case 0:
|
|
446
446
|
if (output.statusCode >= 300) {
|
|
447
|
-
return [2
|
|
447
|
+
return [2, deserializeAws_json1_1AddApplicationInputCommandError(output, context)];
|
|
448
448
|
}
|
|
449
|
-
return [4
|
|
449
|
+
return [4, parseBody(output.body, context)];
|
|
450
450
|
case 1:
|
|
451
451
|
data = _a.sent();
|
|
452
452
|
contents = {};
|
|
453
453
|
contents = deserializeAws_json1_1AddApplicationInputResponse(data, context);
|
|
454
454
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
455
|
-
return [2
|
|
455
|
+
return [2, Promise.resolve(response)];
|
|
456
456
|
}
|
|
457
457
|
});
|
|
458
458
|
}); };
|
|
@@ -464,63 +464,63 @@ var deserializeAws_json1_1AddApplicationInputCommandError = function (output, co
|
|
|
464
464
|
case 0:
|
|
465
465
|
_a = [__assign({}, output)];
|
|
466
466
|
_j = {};
|
|
467
|
-
return [4
|
|
467
|
+
return [4, parseBody(output.body, context)];
|
|
468
468
|
case 1:
|
|
469
469
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
470
470
|
errorCode = "UnknownError";
|
|
471
471
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
472
472
|
_b = errorCode;
|
|
473
473
|
switch (_b) {
|
|
474
|
-
case "CodeValidationException": return [3
|
|
475
|
-
case "com.amazonaws.kinesisanalyticsv2#CodeValidationException": return [3
|
|
476
|
-
case "ConcurrentModificationException": return [3
|
|
477
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
478
|
-
case "InvalidArgumentException": return [3
|
|
479
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
480
|
-
case "InvalidRequestException": return [3
|
|
481
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
482
|
-
case "ResourceInUseException": return [3
|
|
483
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
484
|
-
case "ResourceNotFoundException": return [3
|
|
485
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
474
|
+
case "CodeValidationException": return [3, 2];
|
|
475
|
+
case "com.amazonaws.kinesisanalyticsv2#CodeValidationException": return [3, 2];
|
|
476
|
+
case "ConcurrentModificationException": return [3, 4];
|
|
477
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 4];
|
|
478
|
+
case "InvalidArgumentException": return [3, 6];
|
|
479
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 6];
|
|
480
|
+
case "InvalidRequestException": return [3, 8];
|
|
481
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 8];
|
|
482
|
+
case "ResourceInUseException": return [3, 10];
|
|
483
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 10];
|
|
484
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
485
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 12];
|
|
486
486
|
}
|
|
487
|
-
return [3
|
|
487
|
+
return [3, 14];
|
|
488
488
|
case 2:
|
|
489
489
|
_c = [{}];
|
|
490
|
-
return [4
|
|
490
|
+
return [4, deserializeAws_json1_1CodeValidationExceptionResponse(parsedOutput, context)];
|
|
491
491
|
case 3:
|
|
492
492
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
493
|
-
return [3
|
|
493
|
+
return [3, 15];
|
|
494
494
|
case 4:
|
|
495
495
|
_d = [{}];
|
|
496
|
-
return [4
|
|
496
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
497
497
|
case 5:
|
|
498
498
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
499
|
-
return [3
|
|
499
|
+
return [3, 15];
|
|
500
500
|
case 6:
|
|
501
501
|
_e = [{}];
|
|
502
|
-
return [4
|
|
502
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
503
503
|
case 7:
|
|
504
504
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
505
|
-
return [3
|
|
505
|
+
return [3, 15];
|
|
506
506
|
case 8:
|
|
507
507
|
_f = [{}];
|
|
508
|
-
return [4
|
|
508
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
509
509
|
case 9:
|
|
510
510
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
511
|
-
return [3
|
|
511
|
+
return [3, 15];
|
|
512
512
|
case 10:
|
|
513
513
|
_g = [{}];
|
|
514
|
-
return [4
|
|
514
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
515
515
|
case 11:
|
|
516
516
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
517
|
-
return [3
|
|
517
|
+
return [3, 15];
|
|
518
518
|
case 12:
|
|
519
519
|
_h = [{}];
|
|
520
|
-
return [4
|
|
520
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
521
521
|
case 13:
|
|
522
522
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
523
|
-
return [3
|
|
523
|
+
return [3, 15];
|
|
524
524
|
case 14:
|
|
525
525
|
parsedBody = parsedOutput.body;
|
|
526
526
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -530,7 +530,7 @@ var deserializeAws_json1_1AddApplicationInputCommandError = function (output, co
|
|
|
530
530
|
message = response.message || response.Message || errorCode;
|
|
531
531
|
response.message = message;
|
|
532
532
|
delete response.Message;
|
|
533
|
-
return [2
|
|
533
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
534
534
|
}
|
|
535
535
|
});
|
|
536
536
|
}); };
|
|
@@ -540,15 +540,15 @@ export var deserializeAws_json1_1AddApplicationInputProcessingConfigurationComma
|
|
|
540
540
|
switch (_a.label) {
|
|
541
541
|
case 0:
|
|
542
542
|
if (output.statusCode >= 300) {
|
|
543
|
-
return [2
|
|
543
|
+
return [2, deserializeAws_json1_1AddApplicationInputProcessingConfigurationCommandError(output, context)];
|
|
544
544
|
}
|
|
545
|
-
return [4
|
|
545
|
+
return [4, parseBody(output.body, context)];
|
|
546
546
|
case 1:
|
|
547
547
|
data = _a.sent();
|
|
548
548
|
contents = {};
|
|
549
549
|
contents = deserializeAws_json1_1AddApplicationInputProcessingConfigurationResponse(data, context);
|
|
550
550
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
551
|
-
return [2
|
|
551
|
+
return [2, Promise.resolve(response)];
|
|
552
552
|
}
|
|
553
553
|
});
|
|
554
554
|
}); };
|
|
@@ -560,55 +560,55 @@ var deserializeAws_json1_1AddApplicationInputProcessingConfigurationCommandError
|
|
|
560
560
|
case 0:
|
|
561
561
|
_a = [__assign({}, output)];
|
|
562
562
|
_h = {};
|
|
563
|
-
return [4
|
|
563
|
+
return [4, parseBody(output.body, context)];
|
|
564
564
|
case 1:
|
|
565
565
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
566
566
|
errorCode = "UnknownError";
|
|
567
567
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
568
568
|
_b = errorCode;
|
|
569
569
|
switch (_b) {
|
|
570
|
-
case "ConcurrentModificationException": return [3
|
|
571
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
572
|
-
case "InvalidArgumentException": return [3
|
|
573
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
574
|
-
case "InvalidRequestException": return [3
|
|
575
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
576
|
-
case "ResourceInUseException": return [3
|
|
577
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
578
|
-
case "ResourceNotFoundException": return [3
|
|
579
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
570
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
571
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
572
|
+
case "InvalidArgumentException": return [3, 4];
|
|
573
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 4];
|
|
574
|
+
case "InvalidRequestException": return [3, 6];
|
|
575
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 6];
|
|
576
|
+
case "ResourceInUseException": return [3, 8];
|
|
577
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 8];
|
|
578
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
579
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 10];
|
|
580
580
|
}
|
|
581
|
-
return [3
|
|
581
|
+
return [3, 12];
|
|
582
582
|
case 2:
|
|
583
583
|
_c = [{}];
|
|
584
|
-
return [4
|
|
584
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
585
585
|
case 3:
|
|
586
586
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
587
|
-
return [3
|
|
587
|
+
return [3, 13];
|
|
588
588
|
case 4:
|
|
589
589
|
_d = [{}];
|
|
590
|
-
return [4
|
|
590
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
591
591
|
case 5:
|
|
592
592
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
593
|
-
return [3
|
|
593
|
+
return [3, 13];
|
|
594
594
|
case 6:
|
|
595
595
|
_e = [{}];
|
|
596
|
-
return [4
|
|
596
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
597
597
|
case 7:
|
|
598
598
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
599
|
-
return [3
|
|
599
|
+
return [3, 13];
|
|
600
600
|
case 8:
|
|
601
601
|
_f = [{}];
|
|
602
|
-
return [4
|
|
602
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
603
603
|
case 9:
|
|
604
604
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
605
|
-
return [3
|
|
605
|
+
return [3, 13];
|
|
606
606
|
case 10:
|
|
607
607
|
_g = [{}];
|
|
608
|
-
return [4
|
|
608
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
609
609
|
case 11:
|
|
610
610
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
611
|
-
return [3
|
|
611
|
+
return [3, 13];
|
|
612
612
|
case 12:
|
|
613
613
|
parsedBody = parsedOutput.body;
|
|
614
614
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -618,7 +618,7 @@ var deserializeAws_json1_1AddApplicationInputProcessingConfigurationCommandError
|
|
|
618
618
|
message = response.message || response.Message || errorCode;
|
|
619
619
|
response.message = message;
|
|
620
620
|
delete response.Message;
|
|
621
|
-
return [2
|
|
621
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
622
622
|
}
|
|
623
623
|
});
|
|
624
624
|
}); };
|
|
@@ -628,15 +628,15 @@ export var deserializeAws_json1_1AddApplicationOutputCommand = function (output,
|
|
|
628
628
|
switch (_a.label) {
|
|
629
629
|
case 0:
|
|
630
630
|
if (output.statusCode >= 300) {
|
|
631
|
-
return [2
|
|
631
|
+
return [2, deserializeAws_json1_1AddApplicationOutputCommandError(output, context)];
|
|
632
632
|
}
|
|
633
|
-
return [4
|
|
633
|
+
return [4, parseBody(output.body, context)];
|
|
634
634
|
case 1:
|
|
635
635
|
data = _a.sent();
|
|
636
636
|
contents = {};
|
|
637
637
|
contents = deserializeAws_json1_1AddApplicationOutputResponse(data, context);
|
|
638
638
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
639
|
-
return [2
|
|
639
|
+
return [2, Promise.resolve(response)];
|
|
640
640
|
}
|
|
641
641
|
});
|
|
642
642
|
}); };
|
|
@@ -648,55 +648,55 @@ var deserializeAws_json1_1AddApplicationOutputCommandError = function (output, c
|
|
|
648
648
|
case 0:
|
|
649
649
|
_a = [__assign({}, output)];
|
|
650
650
|
_h = {};
|
|
651
|
-
return [4
|
|
651
|
+
return [4, parseBody(output.body, context)];
|
|
652
652
|
case 1:
|
|
653
653
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
654
654
|
errorCode = "UnknownError";
|
|
655
655
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
656
656
|
_b = errorCode;
|
|
657
657
|
switch (_b) {
|
|
658
|
-
case "ConcurrentModificationException": return [3
|
|
659
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
660
|
-
case "InvalidArgumentException": return [3
|
|
661
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
662
|
-
case "InvalidRequestException": return [3
|
|
663
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
664
|
-
case "ResourceInUseException": return [3
|
|
665
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
666
|
-
case "ResourceNotFoundException": return [3
|
|
667
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
658
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
659
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
660
|
+
case "InvalidArgumentException": return [3, 4];
|
|
661
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 4];
|
|
662
|
+
case "InvalidRequestException": return [3, 6];
|
|
663
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 6];
|
|
664
|
+
case "ResourceInUseException": return [3, 8];
|
|
665
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 8];
|
|
666
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
667
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 10];
|
|
668
668
|
}
|
|
669
|
-
return [3
|
|
669
|
+
return [3, 12];
|
|
670
670
|
case 2:
|
|
671
671
|
_c = [{}];
|
|
672
|
-
return [4
|
|
672
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
673
673
|
case 3:
|
|
674
674
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
675
|
-
return [3
|
|
675
|
+
return [3, 13];
|
|
676
676
|
case 4:
|
|
677
677
|
_d = [{}];
|
|
678
|
-
return [4
|
|
678
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
679
679
|
case 5:
|
|
680
680
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
681
|
-
return [3
|
|
681
|
+
return [3, 13];
|
|
682
682
|
case 6:
|
|
683
683
|
_e = [{}];
|
|
684
|
-
return [4
|
|
684
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
685
685
|
case 7:
|
|
686
686
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
687
|
-
return [3
|
|
687
|
+
return [3, 13];
|
|
688
688
|
case 8:
|
|
689
689
|
_f = [{}];
|
|
690
|
-
return [4
|
|
690
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
691
691
|
case 9:
|
|
692
692
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
693
|
-
return [3
|
|
693
|
+
return [3, 13];
|
|
694
694
|
case 10:
|
|
695
695
|
_g = [{}];
|
|
696
|
-
return [4
|
|
696
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
697
697
|
case 11:
|
|
698
698
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
699
|
-
return [3
|
|
699
|
+
return [3, 13];
|
|
700
700
|
case 12:
|
|
701
701
|
parsedBody = parsedOutput.body;
|
|
702
702
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -706,7 +706,7 @@ var deserializeAws_json1_1AddApplicationOutputCommandError = function (output, c
|
|
|
706
706
|
message = response.message || response.Message || errorCode;
|
|
707
707
|
response.message = message;
|
|
708
708
|
delete response.Message;
|
|
709
|
-
return [2
|
|
709
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
710
710
|
}
|
|
711
711
|
});
|
|
712
712
|
}); };
|
|
@@ -716,15 +716,15 @@ export var deserializeAws_json1_1AddApplicationReferenceDataSourceCommand = func
|
|
|
716
716
|
switch (_a.label) {
|
|
717
717
|
case 0:
|
|
718
718
|
if (output.statusCode >= 300) {
|
|
719
|
-
return [2
|
|
719
|
+
return [2, deserializeAws_json1_1AddApplicationReferenceDataSourceCommandError(output, context)];
|
|
720
720
|
}
|
|
721
|
-
return [4
|
|
721
|
+
return [4, parseBody(output.body, context)];
|
|
722
722
|
case 1:
|
|
723
723
|
data = _a.sent();
|
|
724
724
|
contents = {};
|
|
725
725
|
contents = deserializeAws_json1_1AddApplicationReferenceDataSourceResponse(data, context);
|
|
726
726
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
727
|
-
return [2
|
|
727
|
+
return [2, Promise.resolve(response)];
|
|
728
728
|
}
|
|
729
729
|
});
|
|
730
730
|
}); };
|
|
@@ -736,55 +736,55 @@ var deserializeAws_json1_1AddApplicationReferenceDataSourceCommandError = functi
|
|
|
736
736
|
case 0:
|
|
737
737
|
_a = [__assign({}, output)];
|
|
738
738
|
_h = {};
|
|
739
|
-
return [4
|
|
739
|
+
return [4, parseBody(output.body, context)];
|
|
740
740
|
case 1:
|
|
741
741
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
742
742
|
errorCode = "UnknownError";
|
|
743
743
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
744
|
_b = errorCode;
|
|
745
745
|
switch (_b) {
|
|
746
|
-
case "ConcurrentModificationException": return [3
|
|
747
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
748
|
-
case "InvalidArgumentException": return [3
|
|
749
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
750
|
-
case "InvalidRequestException": return [3
|
|
751
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
752
|
-
case "ResourceInUseException": return [3
|
|
753
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
754
|
-
case "ResourceNotFoundException": return [3
|
|
755
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
746
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
747
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
748
|
+
case "InvalidArgumentException": return [3, 4];
|
|
749
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 4];
|
|
750
|
+
case "InvalidRequestException": return [3, 6];
|
|
751
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 6];
|
|
752
|
+
case "ResourceInUseException": return [3, 8];
|
|
753
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 8];
|
|
754
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
755
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 10];
|
|
756
756
|
}
|
|
757
|
-
return [3
|
|
757
|
+
return [3, 12];
|
|
758
758
|
case 2:
|
|
759
759
|
_c = [{}];
|
|
760
|
-
return [4
|
|
760
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
761
761
|
case 3:
|
|
762
762
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
763
|
-
return [3
|
|
763
|
+
return [3, 13];
|
|
764
764
|
case 4:
|
|
765
765
|
_d = [{}];
|
|
766
|
-
return [4
|
|
766
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
767
767
|
case 5:
|
|
768
768
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
769
|
-
return [3
|
|
769
|
+
return [3, 13];
|
|
770
770
|
case 6:
|
|
771
771
|
_e = [{}];
|
|
772
|
-
return [4
|
|
772
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
773
773
|
case 7:
|
|
774
774
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
775
|
-
return [3
|
|
775
|
+
return [3, 13];
|
|
776
776
|
case 8:
|
|
777
777
|
_f = [{}];
|
|
778
|
-
return [4
|
|
778
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
779
779
|
case 9:
|
|
780
780
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
781
|
-
return [3
|
|
781
|
+
return [3, 13];
|
|
782
782
|
case 10:
|
|
783
783
|
_g = [{}];
|
|
784
|
-
return [4
|
|
784
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
785
785
|
case 11:
|
|
786
786
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
787
|
-
return [3
|
|
787
|
+
return [3, 13];
|
|
788
788
|
case 12:
|
|
789
789
|
parsedBody = parsedOutput.body;
|
|
790
790
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -794,7 +794,7 @@ var deserializeAws_json1_1AddApplicationReferenceDataSourceCommandError = functi
|
|
|
794
794
|
message = response.message || response.Message || errorCode;
|
|
795
795
|
response.message = message;
|
|
796
796
|
delete response.Message;
|
|
797
|
-
return [2
|
|
797
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
798
798
|
}
|
|
799
799
|
});
|
|
800
800
|
}); };
|
|
@@ -804,15 +804,15 @@ export var deserializeAws_json1_1AddApplicationVpcConfigurationCommand = functio
|
|
|
804
804
|
switch (_a.label) {
|
|
805
805
|
case 0:
|
|
806
806
|
if (output.statusCode >= 300) {
|
|
807
|
-
return [2
|
|
807
|
+
return [2, deserializeAws_json1_1AddApplicationVpcConfigurationCommandError(output, context)];
|
|
808
808
|
}
|
|
809
|
-
return [4
|
|
809
|
+
return [4, parseBody(output.body, context)];
|
|
810
810
|
case 1:
|
|
811
811
|
data = _a.sent();
|
|
812
812
|
contents = {};
|
|
813
813
|
contents = deserializeAws_json1_1AddApplicationVpcConfigurationResponse(data, context);
|
|
814
814
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
815
|
-
return [2
|
|
815
|
+
return [2, Promise.resolve(response)];
|
|
816
816
|
}
|
|
817
817
|
});
|
|
818
818
|
}); };
|
|
@@ -824,55 +824,55 @@ var deserializeAws_json1_1AddApplicationVpcConfigurationCommandError = function
|
|
|
824
824
|
case 0:
|
|
825
825
|
_a = [__assign({}, output)];
|
|
826
826
|
_h = {};
|
|
827
|
-
return [4
|
|
827
|
+
return [4, parseBody(output.body, context)];
|
|
828
828
|
case 1:
|
|
829
829
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
830
830
|
errorCode = "UnknownError";
|
|
831
831
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
832
832
|
_b = errorCode;
|
|
833
833
|
switch (_b) {
|
|
834
|
-
case "ConcurrentModificationException": return [3
|
|
835
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
836
|
-
case "InvalidApplicationConfigurationException": return [3
|
|
837
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3
|
|
838
|
-
case "InvalidArgumentException": return [3
|
|
839
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
840
|
-
case "ResourceInUseException": return [3
|
|
841
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
842
|
-
case "ResourceNotFoundException": return [3
|
|
843
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
834
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
835
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
836
|
+
case "InvalidApplicationConfigurationException": return [3, 4];
|
|
837
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3, 4];
|
|
838
|
+
case "InvalidArgumentException": return [3, 6];
|
|
839
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 6];
|
|
840
|
+
case "ResourceInUseException": return [3, 8];
|
|
841
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 8];
|
|
842
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
843
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 10];
|
|
844
844
|
}
|
|
845
|
-
return [3
|
|
845
|
+
return [3, 12];
|
|
846
846
|
case 2:
|
|
847
847
|
_c = [{}];
|
|
848
|
-
return [4
|
|
848
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
849
849
|
case 3:
|
|
850
850
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
851
|
-
return [3
|
|
851
|
+
return [3, 13];
|
|
852
852
|
case 4:
|
|
853
853
|
_d = [{}];
|
|
854
|
-
return [4
|
|
854
|
+
return [4, deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse(parsedOutput, context)];
|
|
855
855
|
case 5:
|
|
856
856
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
857
|
-
return [3
|
|
857
|
+
return [3, 13];
|
|
858
858
|
case 6:
|
|
859
859
|
_e = [{}];
|
|
860
|
-
return [4
|
|
860
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
861
861
|
case 7:
|
|
862
862
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
863
|
-
return [3
|
|
863
|
+
return [3, 13];
|
|
864
864
|
case 8:
|
|
865
865
|
_f = [{}];
|
|
866
|
-
return [4
|
|
866
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
867
867
|
case 9:
|
|
868
868
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
869
|
-
return [3
|
|
869
|
+
return [3, 13];
|
|
870
870
|
case 10:
|
|
871
871
|
_g = [{}];
|
|
872
|
-
return [4
|
|
872
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
873
873
|
case 11:
|
|
874
874
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
875
|
-
return [3
|
|
875
|
+
return [3, 13];
|
|
876
876
|
case 12:
|
|
877
877
|
parsedBody = parsedOutput.body;
|
|
878
878
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -882,7 +882,7 @@ var deserializeAws_json1_1AddApplicationVpcConfigurationCommandError = function
|
|
|
882
882
|
message = response.message || response.Message || errorCode;
|
|
883
883
|
response.message = message;
|
|
884
884
|
delete response.Message;
|
|
885
|
-
return [2
|
|
885
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
886
886
|
}
|
|
887
887
|
});
|
|
888
888
|
}); };
|
|
@@ -892,15 +892,15 @@ export var deserializeAws_json1_1CreateApplicationCommand = function (output, co
|
|
|
892
892
|
switch (_a.label) {
|
|
893
893
|
case 0:
|
|
894
894
|
if (output.statusCode >= 300) {
|
|
895
|
-
return [2
|
|
895
|
+
return [2, deserializeAws_json1_1CreateApplicationCommandError(output, context)];
|
|
896
896
|
}
|
|
897
|
-
return [4
|
|
897
|
+
return [4, parseBody(output.body, context)];
|
|
898
898
|
case 1:
|
|
899
899
|
data = _a.sent();
|
|
900
900
|
contents = {};
|
|
901
901
|
contents = deserializeAws_json1_1CreateApplicationResponse(data, context);
|
|
902
902
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
903
|
-
return [2
|
|
903
|
+
return [2, Promise.resolve(response)];
|
|
904
904
|
}
|
|
905
905
|
});
|
|
906
906
|
}); };
|
|
@@ -912,71 +912,71 @@ var deserializeAws_json1_1CreateApplicationCommandError = function (output, cont
|
|
|
912
912
|
case 0:
|
|
913
913
|
_a = [__assign({}, output)];
|
|
914
914
|
_k = {};
|
|
915
|
-
return [4
|
|
915
|
+
return [4, parseBody(output.body, context)];
|
|
916
916
|
case 1:
|
|
917
917
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
918
918
|
errorCode = "UnknownError";
|
|
919
919
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
920
|
_b = errorCode;
|
|
921
921
|
switch (_b) {
|
|
922
|
-
case "CodeValidationException": return [3
|
|
923
|
-
case "com.amazonaws.kinesisanalyticsv2#CodeValidationException": return [3
|
|
924
|
-
case "ConcurrentModificationException": return [3
|
|
925
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
926
|
-
case "InvalidArgumentException": return [3
|
|
927
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
928
|
-
case "InvalidRequestException": return [3
|
|
929
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
930
|
-
case "LimitExceededException": return [3
|
|
931
|
-
case "com.amazonaws.kinesisanalyticsv2#LimitExceededException": return [3
|
|
932
|
-
case "ResourceInUseException": return [3
|
|
933
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
934
|
-
case "TooManyTagsException": return [3
|
|
935
|
-
case "com.amazonaws.kinesisanalyticsv2#TooManyTagsException": return [3
|
|
922
|
+
case "CodeValidationException": return [3, 2];
|
|
923
|
+
case "com.amazonaws.kinesisanalyticsv2#CodeValidationException": return [3, 2];
|
|
924
|
+
case "ConcurrentModificationException": return [3, 4];
|
|
925
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 4];
|
|
926
|
+
case "InvalidArgumentException": return [3, 6];
|
|
927
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 6];
|
|
928
|
+
case "InvalidRequestException": return [3, 8];
|
|
929
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 8];
|
|
930
|
+
case "LimitExceededException": return [3, 10];
|
|
931
|
+
case "com.amazonaws.kinesisanalyticsv2#LimitExceededException": return [3, 10];
|
|
932
|
+
case "ResourceInUseException": return [3, 12];
|
|
933
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 12];
|
|
934
|
+
case "TooManyTagsException": return [3, 14];
|
|
935
|
+
case "com.amazonaws.kinesisanalyticsv2#TooManyTagsException": return [3, 14];
|
|
936
936
|
}
|
|
937
|
-
return [3
|
|
937
|
+
return [3, 16];
|
|
938
938
|
case 2:
|
|
939
939
|
_c = [{}];
|
|
940
|
-
return [4
|
|
940
|
+
return [4, deserializeAws_json1_1CodeValidationExceptionResponse(parsedOutput, context)];
|
|
941
941
|
case 3:
|
|
942
942
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
943
|
-
return [3
|
|
943
|
+
return [3, 17];
|
|
944
944
|
case 4:
|
|
945
945
|
_d = [{}];
|
|
946
|
-
return [4
|
|
946
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
947
947
|
case 5:
|
|
948
948
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
949
|
-
return [3
|
|
949
|
+
return [3, 17];
|
|
950
950
|
case 6:
|
|
951
951
|
_e = [{}];
|
|
952
|
-
return [4
|
|
952
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
953
953
|
case 7:
|
|
954
954
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
955
|
-
return [3
|
|
955
|
+
return [3, 17];
|
|
956
956
|
case 8:
|
|
957
957
|
_f = [{}];
|
|
958
|
-
return [4
|
|
958
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
959
959
|
case 9:
|
|
960
960
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
961
|
-
return [3
|
|
961
|
+
return [3, 17];
|
|
962
962
|
case 10:
|
|
963
963
|
_g = [{}];
|
|
964
|
-
return [4
|
|
964
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
965
965
|
case 11:
|
|
966
966
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
967
|
-
return [3
|
|
967
|
+
return [3, 17];
|
|
968
968
|
case 12:
|
|
969
969
|
_h = [{}];
|
|
970
|
-
return [4
|
|
970
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
971
971
|
case 13:
|
|
972
972
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
973
|
-
return [3
|
|
973
|
+
return [3, 17];
|
|
974
974
|
case 14:
|
|
975
975
|
_j = [{}];
|
|
976
|
-
return [4
|
|
976
|
+
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
977
977
|
case 15:
|
|
978
978
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
979
|
-
return [3
|
|
979
|
+
return [3, 17];
|
|
980
980
|
case 16:
|
|
981
981
|
parsedBody = parsedOutput.body;
|
|
982
982
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -986,7 +986,7 @@ var deserializeAws_json1_1CreateApplicationCommandError = function (output, cont
|
|
|
986
986
|
message = response.message || response.Message || errorCode;
|
|
987
987
|
response.message = message;
|
|
988
988
|
delete response.Message;
|
|
989
|
-
return [2
|
|
989
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
990
990
|
}
|
|
991
991
|
});
|
|
992
992
|
}); };
|
|
@@ -996,15 +996,15 @@ export var deserializeAws_json1_1CreateApplicationPresignedUrlCommand = function
|
|
|
996
996
|
switch (_a.label) {
|
|
997
997
|
case 0:
|
|
998
998
|
if (output.statusCode >= 300) {
|
|
999
|
-
return [2
|
|
999
|
+
return [2, deserializeAws_json1_1CreateApplicationPresignedUrlCommandError(output, context)];
|
|
1000
1000
|
}
|
|
1001
|
-
return [4
|
|
1001
|
+
return [4, parseBody(output.body, context)];
|
|
1002
1002
|
case 1:
|
|
1003
1003
|
data = _a.sent();
|
|
1004
1004
|
contents = {};
|
|
1005
1005
|
contents = deserializeAws_json1_1CreateApplicationPresignedUrlResponse(data, context);
|
|
1006
1006
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1007
|
-
return [2
|
|
1007
|
+
return [2, Promise.resolve(response)];
|
|
1008
1008
|
}
|
|
1009
1009
|
});
|
|
1010
1010
|
}); };
|
|
@@ -1016,39 +1016,39 @@ var deserializeAws_json1_1CreateApplicationPresignedUrlCommandError = function (
|
|
|
1016
1016
|
case 0:
|
|
1017
1017
|
_a = [__assign({}, output)];
|
|
1018
1018
|
_f = {};
|
|
1019
|
-
return [4
|
|
1019
|
+
return [4, parseBody(output.body, context)];
|
|
1020
1020
|
case 1:
|
|
1021
1021
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1022
1022
|
errorCode = "UnknownError";
|
|
1023
1023
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
1024
|
_b = errorCode;
|
|
1025
1025
|
switch (_b) {
|
|
1026
|
-
case "InvalidArgumentException": return [3
|
|
1027
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
1028
|
-
case "ResourceInUseException": return [3
|
|
1029
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
1030
|
-
case "ResourceNotFoundException": return [3
|
|
1031
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
1026
|
+
case "InvalidArgumentException": return [3, 2];
|
|
1027
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 2];
|
|
1028
|
+
case "ResourceInUseException": return [3, 4];
|
|
1029
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 4];
|
|
1030
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1031
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 6];
|
|
1032
1032
|
}
|
|
1033
|
-
return [3
|
|
1033
|
+
return [3, 8];
|
|
1034
1034
|
case 2:
|
|
1035
1035
|
_c = [{}];
|
|
1036
|
-
return [4
|
|
1036
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1037
1037
|
case 3:
|
|
1038
1038
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1039
|
-
return [3
|
|
1039
|
+
return [3, 9];
|
|
1040
1040
|
case 4:
|
|
1041
1041
|
_d = [{}];
|
|
1042
|
-
return [4
|
|
1042
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1043
1043
|
case 5:
|
|
1044
1044
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1045
|
-
return [3
|
|
1045
|
+
return [3, 9];
|
|
1046
1046
|
case 6:
|
|
1047
1047
|
_e = [{}];
|
|
1048
|
-
return [4
|
|
1048
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1049
1049
|
case 7:
|
|
1050
1050
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1051
|
-
return [3
|
|
1051
|
+
return [3, 9];
|
|
1052
1052
|
case 8:
|
|
1053
1053
|
parsedBody = parsedOutput.body;
|
|
1054
1054
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1058,7 +1058,7 @@ var deserializeAws_json1_1CreateApplicationPresignedUrlCommandError = function (
|
|
|
1058
1058
|
message = response.message || response.Message || errorCode;
|
|
1059
1059
|
response.message = message;
|
|
1060
1060
|
delete response.Message;
|
|
1061
|
-
return [2
|
|
1061
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1062
1062
|
}
|
|
1063
1063
|
});
|
|
1064
1064
|
}); };
|
|
@@ -1068,15 +1068,15 @@ export var deserializeAws_json1_1CreateApplicationSnapshotCommand = function (ou
|
|
|
1068
1068
|
switch (_a.label) {
|
|
1069
1069
|
case 0:
|
|
1070
1070
|
if (output.statusCode >= 300) {
|
|
1071
|
-
return [2
|
|
1071
|
+
return [2, deserializeAws_json1_1CreateApplicationSnapshotCommandError(output, context)];
|
|
1072
1072
|
}
|
|
1073
|
-
return [4
|
|
1073
|
+
return [4, parseBody(output.body, context)];
|
|
1074
1074
|
case 1:
|
|
1075
1075
|
data = _a.sent();
|
|
1076
1076
|
contents = {};
|
|
1077
1077
|
contents = deserializeAws_json1_1CreateApplicationSnapshotResponse(data, context);
|
|
1078
1078
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1079
|
-
return [2
|
|
1079
|
+
return [2, Promise.resolve(response)];
|
|
1080
1080
|
}
|
|
1081
1081
|
});
|
|
1082
1082
|
}); };
|
|
@@ -1088,71 +1088,71 @@ var deserializeAws_json1_1CreateApplicationSnapshotCommandError = function (outp
|
|
|
1088
1088
|
case 0:
|
|
1089
1089
|
_a = [__assign({}, output)];
|
|
1090
1090
|
_k = {};
|
|
1091
|
-
return [4
|
|
1091
|
+
return [4, parseBody(output.body, context)];
|
|
1092
1092
|
case 1:
|
|
1093
1093
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1094
1094
|
errorCode = "UnknownError";
|
|
1095
1095
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1096
1096
|
_b = errorCode;
|
|
1097
1097
|
switch (_b) {
|
|
1098
|
-
case "InvalidApplicationConfigurationException": return [3
|
|
1099
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3
|
|
1100
|
-
case "InvalidArgumentException": return [3
|
|
1101
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
1102
|
-
case "InvalidRequestException": return [3
|
|
1103
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
1104
|
-
case "LimitExceededException": return [3
|
|
1105
|
-
case "com.amazonaws.kinesisanalyticsv2#LimitExceededException": return [3
|
|
1106
|
-
case "ResourceInUseException": return [3
|
|
1107
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
1108
|
-
case "ResourceNotFoundException": return [3
|
|
1109
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
1110
|
-
case "UnsupportedOperationException": return [3
|
|
1111
|
-
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3
|
|
1098
|
+
case "InvalidApplicationConfigurationException": return [3, 2];
|
|
1099
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3, 2];
|
|
1100
|
+
case "InvalidArgumentException": return [3, 4];
|
|
1101
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 4];
|
|
1102
|
+
case "InvalidRequestException": return [3, 6];
|
|
1103
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 6];
|
|
1104
|
+
case "LimitExceededException": return [3, 8];
|
|
1105
|
+
case "com.amazonaws.kinesisanalyticsv2#LimitExceededException": return [3, 8];
|
|
1106
|
+
case "ResourceInUseException": return [3, 10];
|
|
1107
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 10];
|
|
1108
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1109
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 12];
|
|
1110
|
+
case "UnsupportedOperationException": return [3, 14];
|
|
1111
|
+
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3, 14];
|
|
1112
1112
|
}
|
|
1113
|
-
return [3
|
|
1113
|
+
return [3, 16];
|
|
1114
1114
|
case 2:
|
|
1115
1115
|
_c = [{}];
|
|
1116
|
-
return [4
|
|
1116
|
+
return [4, deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse(parsedOutput, context)];
|
|
1117
1117
|
case 3:
|
|
1118
1118
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1119
|
-
return [3
|
|
1119
|
+
return [3, 17];
|
|
1120
1120
|
case 4:
|
|
1121
1121
|
_d = [{}];
|
|
1122
|
-
return [4
|
|
1122
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1123
1123
|
case 5:
|
|
1124
1124
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1125
|
-
return [3
|
|
1125
|
+
return [3, 17];
|
|
1126
1126
|
case 6:
|
|
1127
1127
|
_e = [{}];
|
|
1128
|
-
return [4
|
|
1128
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1129
1129
|
case 7:
|
|
1130
1130
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1131
|
-
return [3
|
|
1131
|
+
return [3, 17];
|
|
1132
1132
|
case 8:
|
|
1133
1133
|
_f = [{}];
|
|
1134
|
-
return [4
|
|
1134
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1135
1135
|
case 9:
|
|
1136
1136
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1137
|
-
return [3
|
|
1137
|
+
return [3, 17];
|
|
1138
1138
|
case 10:
|
|
1139
1139
|
_g = [{}];
|
|
1140
|
-
return [4
|
|
1140
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1141
1141
|
case 11:
|
|
1142
1142
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1143
|
-
return [3
|
|
1143
|
+
return [3, 17];
|
|
1144
1144
|
case 12:
|
|
1145
1145
|
_h = [{}];
|
|
1146
|
-
return [4
|
|
1146
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1147
1147
|
case 13:
|
|
1148
1148
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1149
|
-
return [3
|
|
1149
|
+
return [3, 17];
|
|
1150
1150
|
case 14:
|
|
1151
1151
|
_j = [{}];
|
|
1152
|
-
return [4
|
|
1152
|
+
return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
1153
1153
|
case 15:
|
|
1154
1154
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1155
|
-
return [3
|
|
1155
|
+
return [3, 17];
|
|
1156
1156
|
case 16:
|
|
1157
1157
|
parsedBody = parsedOutput.body;
|
|
1158
1158
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1162,7 +1162,7 @@ var deserializeAws_json1_1CreateApplicationSnapshotCommandError = function (outp
|
|
|
1162
1162
|
message = response.message || response.Message || errorCode;
|
|
1163
1163
|
response.message = message;
|
|
1164
1164
|
delete response.Message;
|
|
1165
|
-
return [2
|
|
1165
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1166
1166
|
}
|
|
1167
1167
|
});
|
|
1168
1168
|
}); };
|
|
@@ -1172,15 +1172,15 @@ export var deserializeAws_json1_1DeleteApplicationCommand = function (output, co
|
|
|
1172
1172
|
switch (_a.label) {
|
|
1173
1173
|
case 0:
|
|
1174
1174
|
if (output.statusCode >= 300) {
|
|
1175
|
-
return [2
|
|
1175
|
+
return [2, deserializeAws_json1_1DeleteApplicationCommandError(output, context)];
|
|
1176
1176
|
}
|
|
1177
|
-
return [4
|
|
1177
|
+
return [4, parseBody(output.body, context)];
|
|
1178
1178
|
case 1:
|
|
1179
1179
|
data = _a.sent();
|
|
1180
1180
|
contents = {};
|
|
1181
1181
|
contents = deserializeAws_json1_1DeleteApplicationResponse(data, context);
|
|
1182
1182
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1183
|
-
return [2
|
|
1183
|
+
return [2, Promise.resolve(response)];
|
|
1184
1184
|
}
|
|
1185
1185
|
});
|
|
1186
1186
|
}); };
|
|
@@ -1192,63 +1192,63 @@ var deserializeAws_json1_1DeleteApplicationCommandError = function (output, cont
|
|
|
1192
1192
|
case 0:
|
|
1193
1193
|
_a = [__assign({}, output)];
|
|
1194
1194
|
_j = {};
|
|
1195
|
-
return [4
|
|
1195
|
+
return [4, parseBody(output.body, context)];
|
|
1196
1196
|
case 1:
|
|
1197
1197
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1198
1198
|
errorCode = "UnknownError";
|
|
1199
1199
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
1200
|
_b = errorCode;
|
|
1201
1201
|
switch (_b) {
|
|
1202
|
-
case "ConcurrentModificationException": return [3
|
|
1203
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
1204
|
-
case "InvalidApplicationConfigurationException": return [3
|
|
1205
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3
|
|
1206
|
-
case "InvalidArgumentException": return [3
|
|
1207
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
1208
|
-
case "InvalidRequestException": return [3
|
|
1209
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
1210
|
-
case "ResourceInUseException": return [3
|
|
1211
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
1212
|
-
case "ResourceNotFoundException": return [3
|
|
1213
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
1202
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
1203
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
1204
|
+
case "InvalidApplicationConfigurationException": return [3, 4];
|
|
1205
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3, 4];
|
|
1206
|
+
case "InvalidArgumentException": return [3, 6];
|
|
1207
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 6];
|
|
1208
|
+
case "InvalidRequestException": return [3, 8];
|
|
1209
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 8];
|
|
1210
|
+
case "ResourceInUseException": return [3, 10];
|
|
1211
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 10];
|
|
1212
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1213
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 12];
|
|
1214
1214
|
}
|
|
1215
|
-
return [3
|
|
1215
|
+
return [3, 14];
|
|
1216
1216
|
case 2:
|
|
1217
1217
|
_c = [{}];
|
|
1218
|
-
return [4
|
|
1218
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1219
1219
|
case 3:
|
|
1220
1220
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1221
|
-
return [3
|
|
1221
|
+
return [3, 15];
|
|
1222
1222
|
case 4:
|
|
1223
1223
|
_d = [{}];
|
|
1224
|
-
return [4
|
|
1224
|
+
return [4, deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse(parsedOutput, context)];
|
|
1225
1225
|
case 5:
|
|
1226
1226
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1227
|
-
return [3
|
|
1227
|
+
return [3, 15];
|
|
1228
1228
|
case 6:
|
|
1229
1229
|
_e = [{}];
|
|
1230
|
-
return [4
|
|
1230
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1231
1231
|
case 7:
|
|
1232
1232
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1233
|
-
return [3
|
|
1233
|
+
return [3, 15];
|
|
1234
1234
|
case 8:
|
|
1235
1235
|
_f = [{}];
|
|
1236
|
-
return [4
|
|
1236
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1237
1237
|
case 9:
|
|
1238
1238
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1239
|
-
return [3
|
|
1239
|
+
return [3, 15];
|
|
1240
1240
|
case 10:
|
|
1241
1241
|
_g = [{}];
|
|
1242
|
-
return [4
|
|
1242
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1243
1243
|
case 11:
|
|
1244
1244
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1245
|
-
return [3
|
|
1245
|
+
return [3, 15];
|
|
1246
1246
|
case 12:
|
|
1247
1247
|
_h = [{}];
|
|
1248
|
-
return [4
|
|
1248
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1249
1249
|
case 13:
|
|
1250
1250
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1251
|
-
return [3
|
|
1251
|
+
return [3, 15];
|
|
1252
1252
|
case 14:
|
|
1253
1253
|
parsedBody = parsedOutput.body;
|
|
1254
1254
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1258,7 +1258,7 @@ var deserializeAws_json1_1DeleteApplicationCommandError = function (output, cont
|
|
|
1258
1258
|
message = response.message || response.Message || errorCode;
|
|
1259
1259
|
response.message = message;
|
|
1260
1260
|
delete response.Message;
|
|
1261
|
-
return [2
|
|
1261
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1262
1262
|
}
|
|
1263
1263
|
});
|
|
1264
1264
|
}); };
|
|
@@ -1268,15 +1268,15 @@ export var deserializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionCommand
|
|
|
1268
1268
|
switch (_a.label) {
|
|
1269
1269
|
case 0:
|
|
1270
1270
|
if (output.statusCode >= 300) {
|
|
1271
|
-
return [2
|
|
1271
|
+
return [2, deserializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionCommandError(output, context)];
|
|
1272
1272
|
}
|
|
1273
|
-
return [4
|
|
1273
|
+
return [4, parseBody(output.body, context)];
|
|
1274
1274
|
case 1:
|
|
1275
1275
|
data = _a.sent();
|
|
1276
1276
|
contents = {};
|
|
1277
1277
|
contents = deserializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionResponse(data, context);
|
|
1278
1278
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1279
|
-
return [2
|
|
1279
|
+
return [2, Promise.resolve(response)];
|
|
1280
1280
|
}
|
|
1281
1281
|
});
|
|
1282
1282
|
}); };
|
|
@@ -1288,63 +1288,63 @@ var deserializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionCommandError =
|
|
|
1288
1288
|
case 0:
|
|
1289
1289
|
_a = [__assign({}, output)];
|
|
1290
1290
|
_j = {};
|
|
1291
|
-
return [4
|
|
1291
|
+
return [4, parseBody(output.body, context)];
|
|
1292
1292
|
case 1:
|
|
1293
1293
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1294
1294
|
errorCode = "UnknownError";
|
|
1295
1295
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1296
1296
|
_b = errorCode;
|
|
1297
1297
|
switch (_b) {
|
|
1298
|
-
case "ConcurrentModificationException": return [3
|
|
1299
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
1300
|
-
case "InvalidApplicationConfigurationException": return [3
|
|
1301
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3
|
|
1302
|
-
case "InvalidArgumentException": return [3
|
|
1303
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
1304
|
-
case "InvalidRequestException": return [3
|
|
1305
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
1306
|
-
case "ResourceInUseException": return [3
|
|
1307
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
1308
|
-
case "ResourceNotFoundException": return [3
|
|
1309
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
1298
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
1299
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
1300
|
+
case "InvalidApplicationConfigurationException": return [3, 4];
|
|
1301
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3, 4];
|
|
1302
|
+
case "InvalidArgumentException": return [3, 6];
|
|
1303
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 6];
|
|
1304
|
+
case "InvalidRequestException": return [3, 8];
|
|
1305
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 8];
|
|
1306
|
+
case "ResourceInUseException": return [3, 10];
|
|
1307
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 10];
|
|
1308
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1309
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 12];
|
|
1310
1310
|
}
|
|
1311
|
-
return [3
|
|
1311
|
+
return [3, 14];
|
|
1312
1312
|
case 2:
|
|
1313
1313
|
_c = [{}];
|
|
1314
|
-
return [4
|
|
1314
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1315
1315
|
case 3:
|
|
1316
1316
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1317
|
-
return [3
|
|
1317
|
+
return [3, 15];
|
|
1318
1318
|
case 4:
|
|
1319
1319
|
_d = [{}];
|
|
1320
|
-
return [4
|
|
1320
|
+
return [4, deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse(parsedOutput, context)];
|
|
1321
1321
|
case 5:
|
|
1322
1322
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1323
|
-
return [3
|
|
1323
|
+
return [3, 15];
|
|
1324
1324
|
case 6:
|
|
1325
1325
|
_e = [{}];
|
|
1326
|
-
return [4
|
|
1326
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1327
1327
|
case 7:
|
|
1328
1328
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1329
|
-
return [3
|
|
1329
|
+
return [3, 15];
|
|
1330
1330
|
case 8:
|
|
1331
1331
|
_f = [{}];
|
|
1332
|
-
return [4
|
|
1332
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1333
1333
|
case 9:
|
|
1334
1334
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1335
|
-
return [3
|
|
1335
|
+
return [3, 15];
|
|
1336
1336
|
case 10:
|
|
1337
1337
|
_g = [{}];
|
|
1338
|
-
return [4
|
|
1338
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1339
1339
|
case 11:
|
|
1340
1340
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1341
|
-
return [3
|
|
1341
|
+
return [3, 15];
|
|
1342
1342
|
case 12:
|
|
1343
1343
|
_h = [{}];
|
|
1344
|
-
return [4
|
|
1344
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1345
1345
|
case 13:
|
|
1346
1346
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1347
|
-
return [3
|
|
1347
|
+
return [3, 15];
|
|
1348
1348
|
case 14:
|
|
1349
1349
|
parsedBody = parsedOutput.body;
|
|
1350
1350
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1354,7 +1354,7 @@ var deserializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionCommandError =
|
|
|
1354
1354
|
message = response.message || response.Message || errorCode;
|
|
1355
1355
|
response.message = message;
|
|
1356
1356
|
delete response.Message;
|
|
1357
|
-
return [2
|
|
1357
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1358
1358
|
}
|
|
1359
1359
|
});
|
|
1360
1360
|
}); };
|
|
@@ -1364,15 +1364,15 @@ export var deserializeAws_json1_1DeleteApplicationInputProcessingConfigurationCo
|
|
|
1364
1364
|
switch (_a.label) {
|
|
1365
1365
|
case 0:
|
|
1366
1366
|
if (output.statusCode >= 300) {
|
|
1367
|
-
return [2
|
|
1367
|
+
return [2, deserializeAws_json1_1DeleteApplicationInputProcessingConfigurationCommandError(output, context)];
|
|
1368
1368
|
}
|
|
1369
|
-
return [4
|
|
1369
|
+
return [4, parseBody(output.body, context)];
|
|
1370
1370
|
case 1:
|
|
1371
1371
|
data = _a.sent();
|
|
1372
1372
|
contents = {};
|
|
1373
1373
|
contents = deserializeAws_json1_1DeleteApplicationInputProcessingConfigurationResponse(data, context);
|
|
1374
1374
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1375
|
-
return [2
|
|
1375
|
+
return [2, Promise.resolve(response)];
|
|
1376
1376
|
}
|
|
1377
1377
|
});
|
|
1378
1378
|
}); };
|
|
@@ -1384,55 +1384,55 @@ var deserializeAws_json1_1DeleteApplicationInputProcessingConfigurationCommandEr
|
|
|
1384
1384
|
case 0:
|
|
1385
1385
|
_a = [__assign({}, output)];
|
|
1386
1386
|
_h = {};
|
|
1387
|
-
return [4
|
|
1387
|
+
return [4, parseBody(output.body, context)];
|
|
1388
1388
|
case 1:
|
|
1389
1389
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1390
1390
|
errorCode = "UnknownError";
|
|
1391
1391
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
1392
|
_b = errorCode;
|
|
1393
1393
|
switch (_b) {
|
|
1394
|
-
case "ConcurrentModificationException": return [3
|
|
1395
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
1396
|
-
case "InvalidArgumentException": return [3
|
|
1397
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
1398
|
-
case "InvalidRequestException": return [3
|
|
1399
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
1400
|
-
case "ResourceInUseException": return [3
|
|
1401
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
1402
|
-
case "ResourceNotFoundException": return [3
|
|
1403
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
1394
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
1395
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
1396
|
+
case "InvalidArgumentException": return [3, 4];
|
|
1397
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 4];
|
|
1398
|
+
case "InvalidRequestException": return [3, 6];
|
|
1399
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 6];
|
|
1400
|
+
case "ResourceInUseException": return [3, 8];
|
|
1401
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 8];
|
|
1402
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1403
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 10];
|
|
1404
1404
|
}
|
|
1405
|
-
return [3
|
|
1405
|
+
return [3, 12];
|
|
1406
1406
|
case 2:
|
|
1407
1407
|
_c = [{}];
|
|
1408
|
-
return [4
|
|
1408
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1409
1409
|
case 3:
|
|
1410
1410
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1411
|
-
return [3
|
|
1411
|
+
return [3, 13];
|
|
1412
1412
|
case 4:
|
|
1413
1413
|
_d = [{}];
|
|
1414
|
-
return [4
|
|
1414
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1415
1415
|
case 5:
|
|
1416
1416
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1417
|
-
return [3
|
|
1417
|
+
return [3, 13];
|
|
1418
1418
|
case 6:
|
|
1419
1419
|
_e = [{}];
|
|
1420
|
-
return [4
|
|
1420
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1421
1421
|
case 7:
|
|
1422
1422
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1423
|
-
return [3
|
|
1423
|
+
return [3, 13];
|
|
1424
1424
|
case 8:
|
|
1425
1425
|
_f = [{}];
|
|
1426
|
-
return [4
|
|
1426
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1427
1427
|
case 9:
|
|
1428
1428
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1429
|
-
return [3
|
|
1429
|
+
return [3, 13];
|
|
1430
1430
|
case 10:
|
|
1431
1431
|
_g = [{}];
|
|
1432
|
-
return [4
|
|
1432
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1433
1433
|
case 11:
|
|
1434
1434
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1435
|
-
return [3
|
|
1435
|
+
return [3, 13];
|
|
1436
1436
|
case 12:
|
|
1437
1437
|
parsedBody = parsedOutput.body;
|
|
1438
1438
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1442,7 +1442,7 @@ var deserializeAws_json1_1DeleteApplicationInputProcessingConfigurationCommandEr
|
|
|
1442
1442
|
message = response.message || response.Message || errorCode;
|
|
1443
1443
|
response.message = message;
|
|
1444
1444
|
delete response.Message;
|
|
1445
|
-
return [2
|
|
1445
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1446
1446
|
}
|
|
1447
1447
|
});
|
|
1448
1448
|
}); };
|
|
@@ -1452,15 +1452,15 @@ export var deserializeAws_json1_1DeleteApplicationOutputCommand = function (outp
|
|
|
1452
1452
|
switch (_a.label) {
|
|
1453
1453
|
case 0:
|
|
1454
1454
|
if (output.statusCode >= 300) {
|
|
1455
|
-
return [2
|
|
1455
|
+
return [2, deserializeAws_json1_1DeleteApplicationOutputCommandError(output, context)];
|
|
1456
1456
|
}
|
|
1457
|
-
return [4
|
|
1457
|
+
return [4, parseBody(output.body, context)];
|
|
1458
1458
|
case 1:
|
|
1459
1459
|
data = _a.sent();
|
|
1460
1460
|
contents = {};
|
|
1461
1461
|
contents = deserializeAws_json1_1DeleteApplicationOutputResponse(data, context);
|
|
1462
1462
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1463
|
-
return [2
|
|
1463
|
+
return [2, Promise.resolve(response)];
|
|
1464
1464
|
}
|
|
1465
1465
|
});
|
|
1466
1466
|
}); };
|
|
@@ -1472,55 +1472,55 @@ var deserializeAws_json1_1DeleteApplicationOutputCommandError = function (output
|
|
|
1472
1472
|
case 0:
|
|
1473
1473
|
_a = [__assign({}, output)];
|
|
1474
1474
|
_h = {};
|
|
1475
|
-
return [4
|
|
1475
|
+
return [4, parseBody(output.body, context)];
|
|
1476
1476
|
case 1:
|
|
1477
1477
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1478
1478
|
errorCode = "UnknownError";
|
|
1479
1479
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1480
1480
|
_b = errorCode;
|
|
1481
1481
|
switch (_b) {
|
|
1482
|
-
case "ConcurrentModificationException": return [3
|
|
1483
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
1484
|
-
case "InvalidArgumentException": return [3
|
|
1485
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
1486
|
-
case "InvalidRequestException": return [3
|
|
1487
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
1488
|
-
case "ResourceInUseException": return [3
|
|
1489
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
1490
|
-
case "ResourceNotFoundException": return [3
|
|
1491
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
1482
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
1483
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
1484
|
+
case "InvalidArgumentException": return [3, 4];
|
|
1485
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 4];
|
|
1486
|
+
case "InvalidRequestException": return [3, 6];
|
|
1487
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 6];
|
|
1488
|
+
case "ResourceInUseException": return [3, 8];
|
|
1489
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 8];
|
|
1490
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1491
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 10];
|
|
1492
1492
|
}
|
|
1493
|
-
return [3
|
|
1493
|
+
return [3, 12];
|
|
1494
1494
|
case 2:
|
|
1495
1495
|
_c = [{}];
|
|
1496
|
-
return [4
|
|
1496
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1497
1497
|
case 3:
|
|
1498
1498
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1499
|
-
return [3
|
|
1499
|
+
return [3, 13];
|
|
1500
1500
|
case 4:
|
|
1501
1501
|
_d = [{}];
|
|
1502
|
-
return [4
|
|
1502
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1503
1503
|
case 5:
|
|
1504
1504
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1505
|
-
return [3
|
|
1505
|
+
return [3, 13];
|
|
1506
1506
|
case 6:
|
|
1507
1507
|
_e = [{}];
|
|
1508
|
-
return [4
|
|
1508
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1509
1509
|
case 7:
|
|
1510
1510
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1511
|
-
return [3
|
|
1511
|
+
return [3, 13];
|
|
1512
1512
|
case 8:
|
|
1513
1513
|
_f = [{}];
|
|
1514
|
-
return [4
|
|
1514
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1515
1515
|
case 9:
|
|
1516
1516
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1517
|
-
return [3
|
|
1517
|
+
return [3, 13];
|
|
1518
1518
|
case 10:
|
|
1519
1519
|
_g = [{}];
|
|
1520
|
-
return [4
|
|
1520
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1521
1521
|
case 11:
|
|
1522
1522
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1523
|
-
return [3
|
|
1523
|
+
return [3, 13];
|
|
1524
1524
|
case 12:
|
|
1525
1525
|
parsedBody = parsedOutput.body;
|
|
1526
1526
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1530,7 +1530,7 @@ var deserializeAws_json1_1DeleteApplicationOutputCommandError = function (output
|
|
|
1530
1530
|
message = response.message || response.Message || errorCode;
|
|
1531
1531
|
response.message = message;
|
|
1532
1532
|
delete response.Message;
|
|
1533
|
-
return [2
|
|
1533
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1534
1534
|
}
|
|
1535
1535
|
});
|
|
1536
1536
|
}); };
|
|
@@ -1540,15 +1540,15 @@ export var deserializeAws_json1_1DeleteApplicationReferenceDataSourceCommand = f
|
|
|
1540
1540
|
switch (_a.label) {
|
|
1541
1541
|
case 0:
|
|
1542
1542
|
if (output.statusCode >= 300) {
|
|
1543
|
-
return [2
|
|
1543
|
+
return [2, deserializeAws_json1_1DeleteApplicationReferenceDataSourceCommandError(output, context)];
|
|
1544
1544
|
}
|
|
1545
|
-
return [4
|
|
1545
|
+
return [4, parseBody(output.body, context)];
|
|
1546
1546
|
case 1:
|
|
1547
1547
|
data = _a.sent();
|
|
1548
1548
|
contents = {};
|
|
1549
1549
|
contents = deserializeAws_json1_1DeleteApplicationReferenceDataSourceResponse(data, context);
|
|
1550
1550
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1551
|
-
return [2
|
|
1551
|
+
return [2, Promise.resolve(response)];
|
|
1552
1552
|
}
|
|
1553
1553
|
});
|
|
1554
1554
|
}); };
|
|
@@ -1560,55 +1560,55 @@ var deserializeAws_json1_1DeleteApplicationReferenceDataSourceCommandError = fun
|
|
|
1560
1560
|
case 0:
|
|
1561
1561
|
_a = [__assign({}, output)];
|
|
1562
1562
|
_h = {};
|
|
1563
|
-
return [4
|
|
1563
|
+
return [4, parseBody(output.body, context)];
|
|
1564
1564
|
case 1:
|
|
1565
1565
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1566
1566
|
errorCode = "UnknownError";
|
|
1567
1567
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1568
1568
|
_b = errorCode;
|
|
1569
1569
|
switch (_b) {
|
|
1570
|
-
case "ConcurrentModificationException": return [3
|
|
1571
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
1572
|
-
case "InvalidArgumentException": return [3
|
|
1573
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
1574
|
-
case "InvalidRequestException": return [3
|
|
1575
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
1576
|
-
case "ResourceInUseException": return [3
|
|
1577
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
1578
|
-
case "ResourceNotFoundException": return [3
|
|
1579
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
1570
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
1571
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
1572
|
+
case "InvalidArgumentException": return [3, 4];
|
|
1573
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 4];
|
|
1574
|
+
case "InvalidRequestException": return [3, 6];
|
|
1575
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 6];
|
|
1576
|
+
case "ResourceInUseException": return [3, 8];
|
|
1577
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 8];
|
|
1578
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1579
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 10];
|
|
1580
1580
|
}
|
|
1581
|
-
return [3
|
|
1581
|
+
return [3, 12];
|
|
1582
1582
|
case 2:
|
|
1583
1583
|
_c = [{}];
|
|
1584
|
-
return [4
|
|
1584
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1585
1585
|
case 3:
|
|
1586
1586
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1587
|
-
return [3
|
|
1587
|
+
return [3, 13];
|
|
1588
1588
|
case 4:
|
|
1589
1589
|
_d = [{}];
|
|
1590
|
-
return [4
|
|
1590
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1591
1591
|
case 5:
|
|
1592
1592
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1593
|
-
return [3
|
|
1593
|
+
return [3, 13];
|
|
1594
1594
|
case 6:
|
|
1595
1595
|
_e = [{}];
|
|
1596
|
-
return [4
|
|
1596
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1597
1597
|
case 7:
|
|
1598
1598
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1599
|
-
return [3
|
|
1599
|
+
return [3, 13];
|
|
1600
1600
|
case 8:
|
|
1601
1601
|
_f = [{}];
|
|
1602
|
-
return [4
|
|
1602
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1603
1603
|
case 9:
|
|
1604
1604
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1605
|
-
return [3
|
|
1605
|
+
return [3, 13];
|
|
1606
1606
|
case 10:
|
|
1607
1607
|
_g = [{}];
|
|
1608
|
-
return [4
|
|
1608
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1609
1609
|
case 11:
|
|
1610
1610
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1611
|
-
return [3
|
|
1611
|
+
return [3, 13];
|
|
1612
1612
|
case 12:
|
|
1613
1613
|
parsedBody = parsedOutput.body;
|
|
1614
1614
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1618,7 +1618,7 @@ var deserializeAws_json1_1DeleteApplicationReferenceDataSourceCommandError = fun
|
|
|
1618
1618
|
message = response.message || response.Message || errorCode;
|
|
1619
1619
|
response.message = message;
|
|
1620
1620
|
delete response.Message;
|
|
1621
|
-
return [2
|
|
1621
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1622
1622
|
}
|
|
1623
1623
|
});
|
|
1624
1624
|
}); };
|
|
@@ -1628,15 +1628,15 @@ export var deserializeAws_json1_1DeleteApplicationSnapshotCommand = function (ou
|
|
|
1628
1628
|
switch (_a.label) {
|
|
1629
1629
|
case 0:
|
|
1630
1630
|
if (output.statusCode >= 300) {
|
|
1631
|
-
return [2
|
|
1631
|
+
return [2, deserializeAws_json1_1DeleteApplicationSnapshotCommandError(output, context)];
|
|
1632
1632
|
}
|
|
1633
|
-
return [4
|
|
1633
|
+
return [4, parseBody(output.body, context)];
|
|
1634
1634
|
case 1:
|
|
1635
1635
|
data = _a.sent();
|
|
1636
1636
|
contents = {};
|
|
1637
1637
|
contents = deserializeAws_json1_1DeleteApplicationSnapshotResponse(data, context);
|
|
1638
1638
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1639
|
-
return [2
|
|
1639
|
+
return [2, Promise.resolve(response)];
|
|
1640
1640
|
}
|
|
1641
1641
|
});
|
|
1642
1642
|
}); };
|
|
@@ -1648,55 +1648,55 @@ var deserializeAws_json1_1DeleteApplicationSnapshotCommandError = function (outp
|
|
|
1648
1648
|
case 0:
|
|
1649
1649
|
_a = [__assign({}, output)];
|
|
1650
1650
|
_h = {};
|
|
1651
|
-
return [4
|
|
1651
|
+
return [4, parseBody(output.body, context)];
|
|
1652
1652
|
case 1:
|
|
1653
1653
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1654
1654
|
errorCode = "UnknownError";
|
|
1655
1655
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
1656
|
_b = errorCode;
|
|
1657
1657
|
switch (_b) {
|
|
1658
|
-
case "InvalidArgumentException": return [3
|
|
1659
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
1660
|
-
case "InvalidRequestException": return [3
|
|
1661
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
1662
|
-
case "ResourceInUseException": return [3
|
|
1663
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
1664
|
-
case "ResourceNotFoundException": return [3
|
|
1665
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
1666
|
-
case "UnsupportedOperationException": return [3
|
|
1667
|
-
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3
|
|
1658
|
+
case "InvalidArgumentException": return [3, 2];
|
|
1659
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 2];
|
|
1660
|
+
case "InvalidRequestException": return [3, 4];
|
|
1661
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 4];
|
|
1662
|
+
case "ResourceInUseException": return [3, 6];
|
|
1663
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 6];
|
|
1664
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1665
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 8];
|
|
1666
|
+
case "UnsupportedOperationException": return [3, 10];
|
|
1667
|
+
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3, 10];
|
|
1668
1668
|
}
|
|
1669
|
-
return [3
|
|
1669
|
+
return [3, 12];
|
|
1670
1670
|
case 2:
|
|
1671
1671
|
_c = [{}];
|
|
1672
|
-
return [4
|
|
1672
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1673
1673
|
case 3:
|
|
1674
1674
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1675
|
-
return [3
|
|
1675
|
+
return [3, 13];
|
|
1676
1676
|
case 4:
|
|
1677
1677
|
_d = [{}];
|
|
1678
|
-
return [4
|
|
1678
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1679
1679
|
case 5:
|
|
1680
1680
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1681
|
-
return [3
|
|
1681
|
+
return [3, 13];
|
|
1682
1682
|
case 6:
|
|
1683
1683
|
_e = [{}];
|
|
1684
|
-
return [4
|
|
1684
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1685
1685
|
case 7:
|
|
1686
1686
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1687
|
-
return [3
|
|
1687
|
+
return [3, 13];
|
|
1688
1688
|
case 8:
|
|
1689
1689
|
_f = [{}];
|
|
1690
|
-
return [4
|
|
1690
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1691
1691
|
case 9:
|
|
1692
1692
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1693
|
-
return [3
|
|
1693
|
+
return [3, 13];
|
|
1694
1694
|
case 10:
|
|
1695
1695
|
_g = [{}];
|
|
1696
|
-
return [4
|
|
1696
|
+
return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
1697
1697
|
case 11:
|
|
1698
1698
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1699
|
-
return [3
|
|
1699
|
+
return [3, 13];
|
|
1700
1700
|
case 12:
|
|
1701
1701
|
parsedBody = parsedOutput.body;
|
|
1702
1702
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1706,7 +1706,7 @@ var deserializeAws_json1_1DeleteApplicationSnapshotCommandError = function (outp
|
|
|
1706
1706
|
message = response.message || response.Message || errorCode;
|
|
1707
1707
|
response.message = message;
|
|
1708
1708
|
delete response.Message;
|
|
1709
|
-
return [2
|
|
1709
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1710
1710
|
}
|
|
1711
1711
|
});
|
|
1712
1712
|
}); };
|
|
@@ -1716,15 +1716,15 @@ export var deserializeAws_json1_1DeleteApplicationVpcConfigurationCommand = func
|
|
|
1716
1716
|
switch (_a.label) {
|
|
1717
1717
|
case 0:
|
|
1718
1718
|
if (output.statusCode >= 300) {
|
|
1719
|
-
return [2
|
|
1719
|
+
return [2, deserializeAws_json1_1DeleteApplicationVpcConfigurationCommandError(output, context)];
|
|
1720
1720
|
}
|
|
1721
|
-
return [4
|
|
1721
|
+
return [4, parseBody(output.body, context)];
|
|
1722
1722
|
case 1:
|
|
1723
1723
|
data = _a.sent();
|
|
1724
1724
|
contents = {};
|
|
1725
1725
|
contents = deserializeAws_json1_1DeleteApplicationVpcConfigurationResponse(data, context);
|
|
1726
1726
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1727
|
-
return [2
|
|
1727
|
+
return [2, Promise.resolve(response)];
|
|
1728
1728
|
}
|
|
1729
1729
|
});
|
|
1730
1730
|
}); };
|
|
@@ -1736,55 +1736,55 @@ var deserializeAws_json1_1DeleteApplicationVpcConfigurationCommandError = functi
|
|
|
1736
1736
|
case 0:
|
|
1737
1737
|
_a = [__assign({}, output)];
|
|
1738
1738
|
_h = {};
|
|
1739
|
-
return [4
|
|
1739
|
+
return [4, parseBody(output.body, context)];
|
|
1740
1740
|
case 1:
|
|
1741
1741
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1742
1742
|
errorCode = "UnknownError";
|
|
1743
1743
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1744
1744
|
_b = errorCode;
|
|
1745
1745
|
switch (_b) {
|
|
1746
|
-
case "ConcurrentModificationException": return [3
|
|
1747
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
1748
|
-
case "InvalidApplicationConfigurationException": return [3
|
|
1749
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3
|
|
1750
|
-
case "InvalidArgumentException": return [3
|
|
1751
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
1752
|
-
case "ResourceInUseException": return [3
|
|
1753
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
1754
|
-
case "ResourceNotFoundException": return [3
|
|
1755
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
1746
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
1747
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
1748
|
+
case "InvalidApplicationConfigurationException": return [3, 4];
|
|
1749
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3, 4];
|
|
1750
|
+
case "InvalidArgumentException": return [3, 6];
|
|
1751
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 6];
|
|
1752
|
+
case "ResourceInUseException": return [3, 8];
|
|
1753
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 8];
|
|
1754
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1755
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 10];
|
|
1756
1756
|
}
|
|
1757
|
-
return [3
|
|
1757
|
+
return [3, 12];
|
|
1758
1758
|
case 2:
|
|
1759
1759
|
_c = [{}];
|
|
1760
|
-
return [4
|
|
1760
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1761
1761
|
case 3:
|
|
1762
1762
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1763
|
-
return [3
|
|
1763
|
+
return [3, 13];
|
|
1764
1764
|
case 4:
|
|
1765
1765
|
_d = [{}];
|
|
1766
|
-
return [4
|
|
1766
|
+
return [4, deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse(parsedOutput, context)];
|
|
1767
1767
|
case 5:
|
|
1768
1768
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1769
|
-
return [3
|
|
1769
|
+
return [3, 13];
|
|
1770
1770
|
case 6:
|
|
1771
1771
|
_e = [{}];
|
|
1772
|
-
return [4
|
|
1772
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1773
1773
|
case 7:
|
|
1774
1774
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1775
|
-
return [3
|
|
1775
|
+
return [3, 13];
|
|
1776
1776
|
case 8:
|
|
1777
1777
|
_f = [{}];
|
|
1778
|
-
return [4
|
|
1778
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1779
1779
|
case 9:
|
|
1780
1780
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1781
|
-
return [3
|
|
1781
|
+
return [3, 13];
|
|
1782
1782
|
case 10:
|
|
1783
1783
|
_g = [{}];
|
|
1784
|
-
return [4
|
|
1784
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1785
1785
|
case 11:
|
|
1786
1786
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1787
|
-
return [3
|
|
1787
|
+
return [3, 13];
|
|
1788
1788
|
case 12:
|
|
1789
1789
|
parsedBody = parsedOutput.body;
|
|
1790
1790
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1794,7 +1794,7 @@ var deserializeAws_json1_1DeleteApplicationVpcConfigurationCommandError = functi
|
|
|
1794
1794
|
message = response.message || response.Message || errorCode;
|
|
1795
1795
|
response.message = message;
|
|
1796
1796
|
delete response.Message;
|
|
1797
|
-
return [2
|
|
1797
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1798
1798
|
}
|
|
1799
1799
|
});
|
|
1800
1800
|
}); };
|
|
@@ -1804,15 +1804,15 @@ export var deserializeAws_json1_1DescribeApplicationCommand = function (output,
|
|
|
1804
1804
|
switch (_a.label) {
|
|
1805
1805
|
case 0:
|
|
1806
1806
|
if (output.statusCode >= 300) {
|
|
1807
|
-
return [2
|
|
1807
|
+
return [2, deserializeAws_json1_1DescribeApplicationCommandError(output, context)];
|
|
1808
1808
|
}
|
|
1809
|
-
return [4
|
|
1809
|
+
return [4, parseBody(output.body, context)];
|
|
1810
1810
|
case 1:
|
|
1811
1811
|
data = _a.sent();
|
|
1812
1812
|
contents = {};
|
|
1813
1813
|
contents = deserializeAws_json1_1DescribeApplicationResponse(data, context);
|
|
1814
1814
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1815
|
-
return [2
|
|
1815
|
+
return [2, Promise.resolve(response)];
|
|
1816
1816
|
}
|
|
1817
1817
|
});
|
|
1818
1818
|
}); };
|
|
@@ -1824,39 +1824,39 @@ var deserializeAws_json1_1DescribeApplicationCommandError = function (output, co
|
|
|
1824
1824
|
case 0:
|
|
1825
1825
|
_a = [__assign({}, output)];
|
|
1826
1826
|
_f = {};
|
|
1827
|
-
return [4
|
|
1827
|
+
return [4, parseBody(output.body, context)];
|
|
1828
1828
|
case 1:
|
|
1829
1829
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1830
1830
|
errorCode = "UnknownError";
|
|
1831
1831
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1832
1832
|
_b = errorCode;
|
|
1833
1833
|
switch (_b) {
|
|
1834
|
-
case "InvalidArgumentException": return [3
|
|
1835
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
1836
|
-
case "InvalidRequestException": return [3
|
|
1837
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
1838
|
-
case "ResourceNotFoundException": return [3
|
|
1839
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
1834
|
+
case "InvalidArgumentException": return [3, 2];
|
|
1835
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 2];
|
|
1836
|
+
case "InvalidRequestException": return [3, 4];
|
|
1837
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 4];
|
|
1838
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1839
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 6];
|
|
1840
1840
|
}
|
|
1841
|
-
return [3
|
|
1841
|
+
return [3, 8];
|
|
1842
1842
|
case 2:
|
|
1843
1843
|
_c = [{}];
|
|
1844
|
-
return [4
|
|
1844
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1845
1845
|
case 3:
|
|
1846
1846
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1847
|
-
return [3
|
|
1847
|
+
return [3, 9];
|
|
1848
1848
|
case 4:
|
|
1849
1849
|
_d = [{}];
|
|
1850
|
-
return [4
|
|
1850
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1851
1851
|
case 5:
|
|
1852
1852
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1853
|
-
return [3
|
|
1853
|
+
return [3, 9];
|
|
1854
1854
|
case 6:
|
|
1855
1855
|
_e = [{}];
|
|
1856
|
-
return [4
|
|
1856
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1857
1857
|
case 7:
|
|
1858
1858
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1859
|
-
return [3
|
|
1859
|
+
return [3, 9];
|
|
1860
1860
|
case 8:
|
|
1861
1861
|
parsedBody = parsedOutput.body;
|
|
1862
1862
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1866,7 +1866,7 @@ var deserializeAws_json1_1DescribeApplicationCommandError = function (output, co
|
|
|
1866
1866
|
message = response.message || response.Message || errorCode;
|
|
1867
1867
|
response.message = message;
|
|
1868
1868
|
delete response.Message;
|
|
1869
|
-
return [2
|
|
1869
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1870
1870
|
}
|
|
1871
1871
|
});
|
|
1872
1872
|
}); };
|
|
@@ -1876,15 +1876,15 @@ export var deserializeAws_json1_1DescribeApplicationSnapshotCommand = function (
|
|
|
1876
1876
|
switch (_a.label) {
|
|
1877
1877
|
case 0:
|
|
1878
1878
|
if (output.statusCode >= 300) {
|
|
1879
|
-
return [2
|
|
1879
|
+
return [2, deserializeAws_json1_1DescribeApplicationSnapshotCommandError(output, context)];
|
|
1880
1880
|
}
|
|
1881
|
-
return [4
|
|
1881
|
+
return [4, parseBody(output.body, context)];
|
|
1882
1882
|
case 1:
|
|
1883
1883
|
data = _a.sent();
|
|
1884
1884
|
contents = {};
|
|
1885
1885
|
contents = deserializeAws_json1_1DescribeApplicationSnapshotResponse(data, context);
|
|
1886
1886
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1887
|
-
return [2
|
|
1887
|
+
return [2, Promise.resolve(response)];
|
|
1888
1888
|
}
|
|
1889
1889
|
});
|
|
1890
1890
|
}); };
|
|
@@ -1896,39 +1896,39 @@ var deserializeAws_json1_1DescribeApplicationSnapshotCommandError = function (ou
|
|
|
1896
1896
|
case 0:
|
|
1897
1897
|
_a = [__assign({}, output)];
|
|
1898
1898
|
_f = {};
|
|
1899
|
-
return [4
|
|
1899
|
+
return [4, parseBody(output.body, context)];
|
|
1900
1900
|
case 1:
|
|
1901
1901
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1902
1902
|
errorCode = "UnknownError";
|
|
1903
1903
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1904
1904
|
_b = errorCode;
|
|
1905
1905
|
switch (_b) {
|
|
1906
|
-
case "InvalidArgumentException": return [3
|
|
1907
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
1908
|
-
case "ResourceNotFoundException": return [3
|
|
1909
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
1910
|
-
case "UnsupportedOperationException": return [3
|
|
1911
|
-
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3
|
|
1906
|
+
case "InvalidArgumentException": return [3, 2];
|
|
1907
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 2];
|
|
1908
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1909
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 4];
|
|
1910
|
+
case "UnsupportedOperationException": return [3, 6];
|
|
1911
|
+
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3, 6];
|
|
1912
1912
|
}
|
|
1913
|
-
return [3
|
|
1913
|
+
return [3, 8];
|
|
1914
1914
|
case 2:
|
|
1915
1915
|
_c = [{}];
|
|
1916
|
-
return [4
|
|
1916
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1917
1917
|
case 3:
|
|
1918
1918
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1919
|
-
return [3
|
|
1919
|
+
return [3, 9];
|
|
1920
1920
|
case 4:
|
|
1921
1921
|
_d = [{}];
|
|
1922
|
-
return [4
|
|
1922
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1923
1923
|
case 5:
|
|
1924
1924
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1925
|
-
return [3
|
|
1925
|
+
return [3, 9];
|
|
1926
1926
|
case 6:
|
|
1927
1927
|
_e = [{}];
|
|
1928
|
-
return [4
|
|
1928
|
+
return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
1929
1929
|
case 7:
|
|
1930
1930
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1931
|
-
return [3
|
|
1931
|
+
return [3, 9];
|
|
1932
1932
|
case 8:
|
|
1933
1933
|
parsedBody = parsedOutput.body;
|
|
1934
1934
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1938,7 +1938,7 @@ var deserializeAws_json1_1DescribeApplicationSnapshotCommandError = function (ou
|
|
|
1938
1938
|
message = response.message || response.Message || errorCode;
|
|
1939
1939
|
response.message = message;
|
|
1940
1940
|
delete response.Message;
|
|
1941
|
-
return [2
|
|
1941
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1942
1942
|
}
|
|
1943
1943
|
});
|
|
1944
1944
|
}); };
|
|
@@ -1948,15 +1948,15 @@ export var deserializeAws_json1_1DescribeApplicationVersionCommand = function (o
|
|
|
1948
1948
|
switch (_a.label) {
|
|
1949
1949
|
case 0:
|
|
1950
1950
|
if (output.statusCode >= 300) {
|
|
1951
|
-
return [2
|
|
1951
|
+
return [2, deserializeAws_json1_1DescribeApplicationVersionCommandError(output, context)];
|
|
1952
1952
|
}
|
|
1953
|
-
return [4
|
|
1953
|
+
return [4, parseBody(output.body, context)];
|
|
1954
1954
|
case 1:
|
|
1955
1955
|
data = _a.sent();
|
|
1956
1956
|
contents = {};
|
|
1957
1957
|
contents = deserializeAws_json1_1DescribeApplicationVersionResponse(data, context);
|
|
1958
1958
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1959
|
-
return [2
|
|
1959
|
+
return [2, Promise.resolve(response)];
|
|
1960
1960
|
}
|
|
1961
1961
|
});
|
|
1962
1962
|
}); };
|
|
@@ -1968,39 +1968,39 @@ var deserializeAws_json1_1DescribeApplicationVersionCommandError = function (out
|
|
|
1968
1968
|
case 0:
|
|
1969
1969
|
_a = [__assign({}, output)];
|
|
1970
1970
|
_f = {};
|
|
1971
|
-
return [4
|
|
1971
|
+
return [4, parseBody(output.body, context)];
|
|
1972
1972
|
case 1:
|
|
1973
1973
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1974
1974
|
errorCode = "UnknownError";
|
|
1975
1975
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1976
1976
|
_b = errorCode;
|
|
1977
1977
|
switch (_b) {
|
|
1978
|
-
case "InvalidArgumentException": return [3
|
|
1979
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
1980
|
-
case "ResourceNotFoundException": return [3
|
|
1981
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
1982
|
-
case "UnsupportedOperationException": return [3
|
|
1983
|
-
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3
|
|
1978
|
+
case "InvalidArgumentException": return [3, 2];
|
|
1979
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 2];
|
|
1980
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1981
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 4];
|
|
1982
|
+
case "UnsupportedOperationException": return [3, 6];
|
|
1983
|
+
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3, 6];
|
|
1984
1984
|
}
|
|
1985
|
-
return [3
|
|
1985
|
+
return [3, 8];
|
|
1986
1986
|
case 2:
|
|
1987
1987
|
_c = [{}];
|
|
1988
|
-
return [4
|
|
1988
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
1989
1989
|
case 3:
|
|
1990
1990
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1991
|
-
return [3
|
|
1991
|
+
return [3, 9];
|
|
1992
1992
|
case 4:
|
|
1993
1993
|
_d = [{}];
|
|
1994
|
-
return [4
|
|
1994
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1995
1995
|
case 5:
|
|
1996
1996
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1997
|
-
return [3
|
|
1997
|
+
return [3, 9];
|
|
1998
1998
|
case 6:
|
|
1999
1999
|
_e = [{}];
|
|
2000
|
-
return [4
|
|
2000
|
+
return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
2001
2001
|
case 7:
|
|
2002
2002
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2003
|
-
return [3
|
|
2003
|
+
return [3, 9];
|
|
2004
2004
|
case 8:
|
|
2005
2005
|
parsedBody = parsedOutput.body;
|
|
2006
2006
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2010,7 +2010,7 @@ var deserializeAws_json1_1DescribeApplicationVersionCommandError = function (out
|
|
|
2010
2010
|
message = response.message || response.Message || errorCode;
|
|
2011
2011
|
response.message = message;
|
|
2012
2012
|
delete response.Message;
|
|
2013
|
-
return [2
|
|
2013
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2014
2014
|
}
|
|
2015
2015
|
});
|
|
2016
2016
|
}); };
|
|
@@ -2020,15 +2020,15 @@ export var deserializeAws_json1_1DiscoverInputSchemaCommand = function (output,
|
|
|
2020
2020
|
switch (_a.label) {
|
|
2021
2021
|
case 0:
|
|
2022
2022
|
if (output.statusCode >= 300) {
|
|
2023
|
-
return [2
|
|
2023
|
+
return [2, deserializeAws_json1_1DiscoverInputSchemaCommandError(output, context)];
|
|
2024
2024
|
}
|
|
2025
|
-
return [4
|
|
2025
|
+
return [4, parseBody(output.body, context)];
|
|
2026
2026
|
case 1:
|
|
2027
2027
|
data = _a.sent();
|
|
2028
2028
|
contents = {};
|
|
2029
2029
|
contents = deserializeAws_json1_1DiscoverInputSchemaResponse(data, context);
|
|
2030
2030
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2031
|
-
return [2
|
|
2031
|
+
return [2, Promise.resolve(response)];
|
|
2032
2032
|
}
|
|
2033
2033
|
});
|
|
2034
2034
|
}); };
|
|
@@ -2040,55 +2040,55 @@ var deserializeAws_json1_1DiscoverInputSchemaCommandError = function (output, co
|
|
|
2040
2040
|
case 0:
|
|
2041
2041
|
_a = [__assign({}, output)];
|
|
2042
2042
|
_h = {};
|
|
2043
|
-
return [4
|
|
2043
|
+
return [4, parseBody(output.body, context)];
|
|
2044
2044
|
case 1:
|
|
2045
2045
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2046
2046
|
errorCode = "UnknownError";
|
|
2047
2047
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2048
2048
|
_b = errorCode;
|
|
2049
2049
|
switch (_b) {
|
|
2050
|
-
case "InvalidArgumentException": return [3
|
|
2051
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
2052
|
-
case "InvalidRequestException": return [3
|
|
2053
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
2054
|
-
case "ResourceProvisionedThroughputExceededException": return [3
|
|
2055
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceProvisionedThroughputExceededException": return [3
|
|
2056
|
-
case "ServiceUnavailableException": return [3
|
|
2057
|
-
case "com.amazonaws.kinesisanalyticsv2#ServiceUnavailableException": return [3
|
|
2058
|
-
case "UnableToDetectSchemaException": return [3
|
|
2059
|
-
case "com.amazonaws.kinesisanalyticsv2#UnableToDetectSchemaException": return [3
|
|
2050
|
+
case "InvalidArgumentException": return [3, 2];
|
|
2051
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 2];
|
|
2052
|
+
case "InvalidRequestException": return [3, 4];
|
|
2053
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 4];
|
|
2054
|
+
case "ResourceProvisionedThroughputExceededException": return [3, 6];
|
|
2055
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceProvisionedThroughputExceededException": return [3, 6];
|
|
2056
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
2057
|
+
case "com.amazonaws.kinesisanalyticsv2#ServiceUnavailableException": return [3, 8];
|
|
2058
|
+
case "UnableToDetectSchemaException": return [3, 10];
|
|
2059
|
+
case "com.amazonaws.kinesisanalyticsv2#UnableToDetectSchemaException": return [3, 10];
|
|
2060
2060
|
}
|
|
2061
|
-
return [3
|
|
2061
|
+
return [3, 12];
|
|
2062
2062
|
case 2:
|
|
2063
2063
|
_c = [{}];
|
|
2064
|
-
return [4
|
|
2064
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2065
2065
|
case 3:
|
|
2066
2066
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2067
|
-
return [3
|
|
2067
|
+
return [3, 13];
|
|
2068
2068
|
case 4:
|
|
2069
2069
|
_d = [{}];
|
|
2070
|
-
return [4
|
|
2070
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2071
2071
|
case 5:
|
|
2072
2072
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2073
|
-
return [3
|
|
2073
|
+
return [3, 13];
|
|
2074
2074
|
case 6:
|
|
2075
2075
|
_e = [{}];
|
|
2076
|
-
return [4
|
|
2076
|
+
return [4, deserializeAws_json1_1ResourceProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
|
|
2077
2077
|
case 7:
|
|
2078
2078
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2079
|
-
return [3
|
|
2079
|
+
return [3, 13];
|
|
2080
2080
|
case 8:
|
|
2081
2081
|
_f = [{}];
|
|
2082
|
-
return [4
|
|
2082
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2083
2083
|
case 9:
|
|
2084
2084
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2085
|
-
return [3
|
|
2085
|
+
return [3, 13];
|
|
2086
2086
|
case 10:
|
|
2087
2087
|
_g = [{}];
|
|
2088
|
-
return [4
|
|
2088
|
+
return [4, deserializeAws_json1_1UnableToDetectSchemaExceptionResponse(parsedOutput, context)];
|
|
2089
2089
|
case 11:
|
|
2090
2090
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2091
|
-
return [3
|
|
2091
|
+
return [3, 13];
|
|
2092
2092
|
case 12:
|
|
2093
2093
|
parsedBody = parsedOutput.body;
|
|
2094
2094
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2098,7 +2098,7 @@ var deserializeAws_json1_1DiscoverInputSchemaCommandError = function (output, co
|
|
|
2098
2098
|
message = response.message || response.Message || errorCode;
|
|
2099
2099
|
response.message = message;
|
|
2100
2100
|
delete response.Message;
|
|
2101
|
-
return [2
|
|
2101
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2102
2102
|
}
|
|
2103
2103
|
});
|
|
2104
2104
|
}); };
|
|
@@ -2108,15 +2108,15 @@ export var deserializeAws_json1_1ListApplicationsCommand = function (output, con
|
|
|
2108
2108
|
switch (_a.label) {
|
|
2109
2109
|
case 0:
|
|
2110
2110
|
if (output.statusCode >= 300) {
|
|
2111
|
-
return [2
|
|
2111
|
+
return [2, deserializeAws_json1_1ListApplicationsCommandError(output, context)];
|
|
2112
2112
|
}
|
|
2113
|
-
return [4
|
|
2113
|
+
return [4, parseBody(output.body, context)];
|
|
2114
2114
|
case 1:
|
|
2115
2115
|
data = _a.sent();
|
|
2116
2116
|
contents = {};
|
|
2117
2117
|
contents = deserializeAws_json1_1ListApplicationsResponse(data, context);
|
|
2118
2118
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2119
|
-
return [2
|
|
2119
|
+
return [2, Promise.resolve(response)];
|
|
2120
2120
|
}
|
|
2121
2121
|
});
|
|
2122
2122
|
}); };
|
|
@@ -2128,23 +2128,23 @@ var deserializeAws_json1_1ListApplicationsCommandError = function (output, conte
|
|
|
2128
2128
|
case 0:
|
|
2129
2129
|
_a = [__assign({}, output)];
|
|
2130
2130
|
_d = {};
|
|
2131
|
-
return [4
|
|
2131
|
+
return [4, parseBody(output.body, context)];
|
|
2132
2132
|
case 1:
|
|
2133
2133
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
2134
2134
|
errorCode = "UnknownError";
|
|
2135
2135
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2136
2136
|
_b = errorCode;
|
|
2137
2137
|
switch (_b) {
|
|
2138
|
-
case "InvalidRequestException": return [3
|
|
2139
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
2138
|
+
case "InvalidRequestException": return [3, 2];
|
|
2139
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 2];
|
|
2140
2140
|
}
|
|
2141
|
-
return [3
|
|
2141
|
+
return [3, 4];
|
|
2142
2142
|
case 2:
|
|
2143
2143
|
_c = [{}];
|
|
2144
|
-
return [4
|
|
2144
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2145
2145
|
case 3:
|
|
2146
2146
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2147
|
-
return [3
|
|
2147
|
+
return [3, 5];
|
|
2148
2148
|
case 4:
|
|
2149
2149
|
parsedBody = parsedOutput.body;
|
|
2150
2150
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2154,7 +2154,7 @@ var deserializeAws_json1_1ListApplicationsCommandError = function (output, conte
|
|
|
2154
2154
|
message = response.message || response.Message || errorCode;
|
|
2155
2155
|
response.message = message;
|
|
2156
2156
|
delete response.Message;
|
|
2157
|
-
return [2
|
|
2157
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2158
2158
|
}
|
|
2159
2159
|
});
|
|
2160
2160
|
}); };
|
|
@@ -2164,15 +2164,15 @@ export var deserializeAws_json1_1ListApplicationSnapshotsCommand = function (out
|
|
|
2164
2164
|
switch (_a.label) {
|
|
2165
2165
|
case 0:
|
|
2166
2166
|
if (output.statusCode >= 300) {
|
|
2167
|
-
return [2
|
|
2167
|
+
return [2, deserializeAws_json1_1ListApplicationSnapshotsCommandError(output, context)];
|
|
2168
2168
|
}
|
|
2169
|
-
return [4
|
|
2169
|
+
return [4, parseBody(output.body, context)];
|
|
2170
2170
|
case 1:
|
|
2171
2171
|
data = _a.sent();
|
|
2172
2172
|
contents = {};
|
|
2173
2173
|
contents = deserializeAws_json1_1ListApplicationSnapshotsResponse(data, context);
|
|
2174
2174
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2175
|
-
return [2
|
|
2175
|
+
return [2, Promise.resolve(response)];
|
|
2176
2176
|
}
|
|
2177
2177
|
});
|
|
2178
2178
|
}); };
|
|
@@ -2184,31 +2184,31 @@ var deserializeAws_json1_1ListApplicationSnapshotsCommandError = function (outpu
|
|
|
2184
2184
|
case 0:
|
|
2185
2185
|
_a = [__assign({}, output)];
|
|
2186
2186
|
_e = {};
|
|
2187
|
-
return [4
|
|
2187
|
+
return [4, parseBody(output.body, context)];
|
|
2188
2188
|
case 1:
|
|
2189
2189
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2190
2190
|
errorCode = "UnknownError";
|
|
2191
2191
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2192
2192
|
_b = errorCode;
|
|
2193
2193
|
switch (_b) {
|
|
2194
|
-
case "InvalidArgumentException": return [3
|
|
2195
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
2196
|
-
case "UnsupportedOperationException": return [3
|
|
2197
|
-
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3
|
|
2194
|
+
case "InvalidArgumentException": return [3, 2];
|
|
2195
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 2];
|
|
2196
|
+
case "UnsupportedOperationException": return [3, 4];
|
|
2197
|
+
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3, 4];
|
|
2198
2198
|
}
|
|
2199
|
-
return [3
|
|
2199
|
+
return [3, 6];
|
|
2200
2200
|
case 2:
|
|
2201
2201
|
_c = [{}];
|
|
2202
|
-
return [4
|
|
2202
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2203
2203
|
case 3:
|
|
2204
2204
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2205
|
-
return [3
|
|
2205
|
+
return [3, 7];
|
|
2206
2206
|
case 4:
|
|
2207
2207
|
_d = [{}];
|
|
2208
|
-
return [4
|
|
2208
|
+
return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
2209
2209
|
case 5:
|
|
2210
2210
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2211
|
-
return [3
|
|
2211
|
+
return [3, 7];
|
|
2212
2212
|
case 6:
|
|
2213
2213
|
parsedBody = parsedOutput.body;
|
|
2214
2214
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2218,7 +2218,7 @@ var deserializeAws_json1_1ListApplicationSnapshotsCommandError = function (outpu
|
|
|
2218
2218
|
message = response.message || response.Message || errorCode;
|
|
2219
2219
|
response.message = message;
|
|
2220
2220
|
delete response.Message;
|
|
2221
|
-
return [2
|
|
2221
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2222
2222
|
}
|
|
2223
2223
|
});
|
|
2224
2224
|
}); };
|
|
@@ -2228,15 +2228,15 @@ export var deserializeAws_json1_1ListApplicationVersionsCommand = function (outp
|
|
|
2228
2228
|
switch (_a.label) {
|
|
2229
2229
|
case 0:
|
|
2230
2230
|
if (output.statusCode >= 300) {
|
|
2231
|
-
return [2
|
|
2231
|
+
return [2, deserializeAws_json1_1ListApplicationVersionsCommandError(output, context)];
|
|
2232
2232
|
}
|
|
2233
|
-
return [4
|
|
2233
|
+
return [4, parseBody(output.body, context)];
|
|
2234
2234
|
case 1:
|
|
2235
2235
|
data = _a.sent();
|
|
2236
2236
|
contents = {};
|
|
2237
2237
|
contents = deserializeAws_json1_1ListApplicationVersionsResponse(data, context);
|
|
2238
2238
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2239
|
-
return [2
|
|
2239
|
+
return [2, Promise.resolve(response)];
|
|
2240
2240
|
}
|
|
2241
2241
|
});
|
|
2242
2242
|
}); };
|
|
@@ -2248,39 +2248,39 @@ var deserializeAws_json1_1ListApplicationVersionsCommandError = function (output
|
|
|
2248
2248
|
case 0:
|
|
2249
2249
|
_a = [__assign({}, output)];
|
|
2250
2250
|
_f = {};
|
|
2251
|
-
return [4
|
|
2251
|
+
return [4, parseBody(output.body, context)];
|
|
2252
2252
|
case 1:
|
|
2253
2253
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2254
2254
|
errorCode = "UnknownError";
|
|
2255
2255
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2256
2256
|
_b = errorCode;
|
|
2257
2257
|
switch (_b) {
|
|
2258
|
-
case "InvalidArgumentException": return [3
|
|
2259
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
2260
|
-
case "ResourceNotFoundException": return [3
|
|
2261
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
2262
|
-
case "UnsupportedOperationException": return [3
|
|
2263
|
-
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3
|
|
2258
|
+
case "InvalidArgumentException": return [3, 2];
|
|
2259
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 2];
|
|
2260
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2261
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 4];
|
|
2262
|
+
case "UnsupportedOperationException": return [3, 6];
|
|
2263
|
+
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3, 6];
|
|
2264
2264
|
}
|
|
2265
|
-
return [3
|
|
2265
|
+
return [3, 8];
|
|
2266
2266
|
case 2:
|
|
2267
2267
|
_c = [{}];
|
|
2268
|
-
return [4
|
|
2268
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2269
2269
|
case 3:
|
|
2270
2270
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2271
|
-
return [3
|
|
2271
|
+
return [3, 9];
|
|
2272
2272
|
case 4:
|
|
2273
2273
|
_d = [{}];
|
|
2274
|
-
return [4
|
|
2274
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2275
2275
|
case 5:
|
|
2276
2276
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2277
|
-
return [3
|
|
2277
|
+
return [3, 9];
|
|
2278
2278
|
case 6:
|
|
2279
2279
|
_e = [{}];
|
|
2280
|
-
return [4
|
|
2280
|
+
return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
2281
2281
|
case 7:
|
|
2282
2282
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2283
|
-
return [3
|
|
2283
|
+
return [3, 9];
|
|
2284
2284
|
case 8:
|
|
2285
2285
|
parsedBody = parsedOutput.body;
|
|
2286
2286
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2290,7 +2290,7 @@ var deserializeAws_json1_1ListApplicationVersionsCommandError = function (output
|
|
|
2290
2290
|
message = response.message || response.Message || errorCode;
|
|
2291
2291
|
response.message = message;
|
|
2292
2292
|
delete response.Message;
|
|
2293
|
-
return [2
|
|
2293
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2294
2294
|
}
|
|
2295
2295
|
});
|
|
2296
2296
|
}); };
|
|
@@ -2300,15 +2300,15 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
2300
2300
|
switch (_a.label) {
|
|
2301
2301
|
case 0:
|
|
2302
2302
|
if (output.statusCode >= 300) {
|
|
2303
|
-
return [2
|
|
2303
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
2304
2304
|
}
|
|
2305
|
-
return [4
|
|
2305
|
+
return [4, parseBody(output.body, context)];
|
|
2306
2306
|
case 1:
|
|
2307
2307
|
data = _a.sent();
|
|
2308
2308
|
contents = {};
|
|
2309
2309
|
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
2310
2310
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2311
|
-
return [2
|
|
2311
|
+
return [2, Promise.resolve(response)];
|
|
2312
2312
|
}
|
|
2313
2313
|
});
|
|
2314
2314
|
}); };
|
|
@@ -2320,39 +2320,39 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2320
2320
|
case 0:
|
|
2321
2321
|
_a = [__assign({}, output)];
|
|
2322
2322
|
_f = {};
|
|
2323
|
-
return [4
|
|
2323
|
+
return [4, parseBody(output.body, context)];
|
|
2324
2324
|
case 1:
|
|
2325
2325
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2326
2326
|
errorCode = "UnknownError";
|
|
2327
2327
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2328
2328
|
_b = errorCode;
|
|
2329
2329
|
switch (_b) {
|
|
2330
|
-
case "ConcurrentModificationException": return [3
|
|
2331
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
2332
|
-
case "InvalidArgumentException": return [3
|
|
2333
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
2334
|
-
case "ResourceNotFoundException": return [3
|
|
2335
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
2330
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
2331
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
2332
|
+
case "InvalidArgumentException": return [3, 4];
|
|
2333
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 4];
|
|
2334
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2335
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 6];
|
|
2336
2336
|
}
|
|
2337
|
-
return [3
|
|
2337
|
+
return [3, 8];
|
|
2338
2338
|
case 2:
|
|
2339
2339
|
_c = [{}];
|
|
2340
|
-
return [4
|
|
2340
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2341
2341
|
case 3:
|
|
2342
2342
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2343
|
-
return [3
|
|
2343
|
+
return [3, 9];
|
|
2344
2344
|
case 4:
|
|
2345
2345
|
_d = [{}];
|
|
2346
|
-
return [4
|
|
2346
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2347
2347
|
case 5:
|
|
2348
2348
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2349
|
-
return [3
|
|
2349
|
+
return [3, 9];
|
|
2350
2350
|
case 6:
|
|
2351
2351
|
_e = [{}];
|
|
2352
|
-
return [4
|
|
2352
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2353
2353
|
case 7:
|
|
2354
2354
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2355
|
-
return [3
|
|
2355
|
+
return [3, 9];
|
|
2356
2356
|
case 8:
|
|
2357
2357
|
parsedBody = parsedOutput.body;
|
|
2358
2358
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2362,7 +2362,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2362
2362
|
message = response.message || response.Message || errorCode;
|
|
2363
2363
|
response.message = message;
|
|
2364
2364
|
delete response.Message;
|
|
2365
|
-
return [2
|
|
2365
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2366
2366
|
}
|
|
2367
2367
|
});
|
|
2368
2368
|
}); };
|
|
@@ -2372,15 +2372,15 @@ export var deserializeAws_json1_1RollbackApplicationCommand = function (output,
|
|
|
2372
2372
|
switch (_a.label) {
|
|
2373
2373
|
case 0:
|
|
2374
2374
|
if (output.statusCode >= 300) {
|
|
2375
|
-
return [2
|
|
2375
|
+
return [2, deserializeAws_json1_1RollbackApplicationCommandError(output, context)];
|
|
2376
2376
|
}
|
|
2377
|
-
return [4
|
|
2377
|
+
return [4, parseBody(output.body, context)];
|
|
2378
2378
|
case 1:
|
|
2379
2379
|
data = _a.sent();
|
|
2380
2380
|
contents = {};
|
|
2381
2381
|
contents = deserializeAws_json1_1RollbackApplicationResponse(data, context);
|
|
2382
2382
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2383
|
-
return [2
|
|
2383
|
+
return [2, Promise.resolve(response)];
|
|
2384
2384
|
}
|
|
2385
2385
|
});
|
|
2386
2386
|
}); };
|
|
@@ -2392,63 +2392,63 @@ var deserializeAws_json1_1RollbackApplicationCommandError = function (output, co
|
|
|
2392
2392
|
case 0:
|
|
2393
2393
|
_a = [__assign({}, output)];
|
|
2394
2394
|
_j = {};
|
|
2395
|
-
return [4
|
|
2395
|
+
return [4, parseBody(output.body, context)];
|
|
2396
2396
|
case 1:
|
|
2397
2397
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2398
2398
|
errorCode = "UnknownError";
|
|
2399
2399
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2400
2400
|
_b = errorCode;
|
|
2401
2401
|
switch (_b) {
|
|
2402
|
-
case "ConcurrentModificationException": return [3
|
|
2403
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
2404
|
-
case "InvalidArgumentException": return [3
|
|
2405
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
2406
|
-
case "InvalidRequestException": return [3
|
|
2407
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
2408
|
-
case "ResourceInUseException": return [3
|
|
2409
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
2410
|
-
case "ResourceNotFoundException": return [3
|
|
2411
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
2412
|
-
case "UnsupportedOperationException": return [3
|
|
2413
|
-
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3
|
|
2402
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
2403
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
2404
|
+
case "InvalidArgumentException": return [3, 4];
|
|
2405
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 4];
|
|
2406
|
+
case "InvalidRequestException": return [3, 6];
|
|
2407
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 6];
|
|
2408
|
+
case "ResourceInUseException": return [3, 8];
|
|
2409
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 8];
|
|
2410
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
2411
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 10];
|
|
2412
|
+
case "UnsupportedOperationException": return [3, 12];
|
|
2413
|
+
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3, 12];
|
|
2414
2414
|
}
|
|
2415
|
-
return [3
|
|
2415
|
+
return [3, 14];
|
|
2416
2416
|
case 2:
|
|
2417
2417
|
_c = [{}];
|
|
2418
|
-
return [4
|
|
2418
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2419
2419
|
case 3:
|
|
2420
2420
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2421
|
-
return [3
|
|
2421
|
+
return [3, 15];
|
|
2422
2422
|
case 4:
|
|
2423
2423
|
_d = [{}];
|
|
2424
|
-
return [4
|
|
2424
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2425
2425
|
case 5:
|
|
2426
2426
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2427
|
-
return [3
|
|
2427
|
+
return [3, 15];
|
|
2428
2428
|
case 6:
|
|
2429
2429
|
_e = [{}];
|
|
2430
|
-
return [4
|
|
2430
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2431
2431
|
case 7:
|
|
2432
2432
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2433
|
-
return [3
|
|
2433
|
+
return [3, 15];
|
|
2434
2434
|
case 8:
|
|
2435
2435
|
_f = [{}];
|
|
2436
|
-
return [4
|
|
2436
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2437
2437
|
case 9:
|
|
2438
2438
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2439
|
-
return [3
|
|
2439
|
+
return [3, 15];
|
|
2440
2440
|
case 10:
|
|
2441
2441
|
_g = [{}];
|
|
2442
|
-
return [4
|
|
2442
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2443
2443
|
case 11:
|
|
2444
2444
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2445
|
-
return [3
|
|
2445
|
+
return [3, 15];
|
|
2446
2446
|
case 12:
|
|
2447
2447
|
_h = [{}];
|
|
2448
|
-
return [4
|
|
2448
|
+
return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
2449
2449
|
case 13:
|
|
2450
2450
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2451
|
-
return [3
|
|
2451
|
+
return [3, 15];
|
|
2452
2452
|
case 14:
|
|
2453
2453
|
parsedBody = parsedOutput.body;
|
|
2454
2454
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2458,7 +2458,7 @@ var deserializeAws_json1_1RollbackApplicationCommandError = function (output, co
|
|
|
2458
2458
|
message = response.message || response.Message || errorCode;
|
|
2459
2459
|
response.message = message;
|
|
2460
2460
|
delete response.Message;
|
|
2461
|
-
return [2
|
|
2461
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2462
2462
|
}
|
|
2463
2463
|
});
|
|
2464
2464
|
}); };
|
|
@@ -2468,15 +2468,15 @@ export var deserializeAws_json1_1StartApplicationCommand = function (output, con
|
|
|
2468
2468
|
switch (_a.label) {
|
|
2469
2469
|
case 0:
|
|
2470
2470
|
if (output.statusCode >= 300) {
|
|
2471
|
-
return [2
|
|
2471
|
+
return [2, deserializeAws_json1_1StartApplicationCommandError(output, context)];
|
|
2472
2472
|
}
|
|
2473
|
-
return [4
|
|
2473
|
+
return [4, parseBody(output.body, context)];
|
|
2474
2474
|
case 1:
|
|
2475
2475
|
data = _a.sent();
|
|
2476
2476
|
contents = {};
|
|
2477
2477
|
contents = deserializeAws_json1_1StartApplicationResponse(data, context);
|
|
2478
2478
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2479
|
-
return [2
|
|
2479
|
+
return [2, Promise.resolve(response)];
|
|
2480
2480
|
}
|
|
2481
2481
|
});
|
|
2482
2482
|
}); };
|
|
@@ -2488,55 +2488,55 @@ var deserializeAws_json1_1StartApplicationCommandError = function (output, conte
|
|
|
2488
2488
|
case 0:
|
|
2489
2489
|
_a = [__assign({}, output)];
|
|
2490
2490
|
_h = {};
|
|
2491
|
-
return [4
|
|
2491
|
+
return [4, parseBody(output.body, context)];
|
|
2492
2492
|
case 1:
|
|
2493
2493
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2494
2494
|
errorCode = "UnknownError";
|
|
2495
2495
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2496
2496
|
_b = errorCode;
|
|
2497
2497
|
switch (_b) {
|
|
2498
|
-
case "InvalidApplicationConfigurationException": return [3
|
|
2499
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3
|
|
2500
|
-
case "InvalidArgumentException": return [3
|
|
2501
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
2502
|
-
case "InvalidRequestException": return [3
|
|
2503
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
2504
|
-
case "ResourceInUseException": return [3
|
|
2505
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
2506
|
-
case "ResourceNotFoundException": return [3
|
|
2507
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
2498
|
+
case "InvalidApplicationConfigurationException": return [3, 2];
|
|
2499
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3, 2];
|
|
2500
|
+
case "InvalidArgumentException": return [3, 4];
|
|
2501
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 4];
|
|
2502
|
+
case "InvalidRequestException": return [3, 6];
|
|
2503
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 6];
|
|
2504
|
+
case "ResourceInUseException": return [3, 8];
|
|
2505
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 8];
|
|
2506
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
2507
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 10];
|
|
2508
2508
|
}
|
|
2509
|
-
return [3
|
|
2509
|
+
return [3, 12];
|
|
2510
2510
|
case 2:
|
|
2511
2511
|
_c = [{}];
|
|
2512
|
-
return [4
|
|
2512
|
+
return [4, deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse(parsedOutput, context)];
|
|
2513
2513
|
case 3:
|
|
2514
2514
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2515
|
-
return [3
|
|
2515
|
+
return [3, 13];
|
|
2516
2516
|
case 4:
|
|
2517
2517
|
_d = [{}];
|
|
2518
|
-
return [4
|
|
2518
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2519
2519
|
case 5:
|
|
2520
2520
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2521
|
-
return [3
|
|
2521
|
+
return [3, 13];
|
|
2522
2522
|
case 6:
|
|
2523
2523
|
_e = [{}];
|
|
2524
|
-
return [4
|
|
2524
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2525
2525
|
case 7:
|
|
2526
2526
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2527
|
-
return [3
|
|
2527
|
+
return [3, 13];
|
|
2528
2528
|
case 8:
|
|
2529
2529
|
_f = [{}];
|
|
2530
|
-
return [4
|
|
2530
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2531
2531
|
case 9:
|
|
2532
2532
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2533
|
-
return [3
|
|
2533
|
+
return [3, 13];
|
|
2534
2534
|
case 10:
|
|
2535
2535
|
_g = [{}];
|
|
2536
|
-
return [4
|
|
2536
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2537
2537
|
case 11:
|
|
2538
2538
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2539
|
-
return [3
|
|
2539
|
+
return [3, 13];
|
|
2540
2540
|
case 12:
|
|
2541
2541
|
parsedBody = parsedOutput.body;
|
|
2542
2542
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2546,7 +2546,7 @@ var deserializeAws_json1_1StartApplicationCommandError = function (output, conte
|
|
|
2546
2546
|
message = response.message || response.Message || errorCode;
|
|
2547
2547
|
response.message = message;
|
|
2548
2548
|
delete response.Message;
|
|
2549
|
-
return [2
|
|
2549
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2550
2550
|
}
|
|
2551
2551
|
});
|
|
2552
2552
|
}); };
|
|
@@ -2556,15 +2556,15 @@ export var deserializeAws_json1_1StopApplicationCommand = function (output, cont
|
|
|
2556
2556
|
switch (_a.label) {
|
|
2557
2557
|
case 0:
|
|
2558
2558
|
if (output.statusCode >= 300) {
|
|
2559
|
-
return [2
|
|
2559
|
+
return [2, deserializeAws_json1_1StopApplicationCommandError(output, context)];
|
|
2560
2560
|
}
|
|
2561
|
-
return [4
|
|
2561
|
+
return [4, parseBody(output.body, context)];
|
|
2562
2562
|
case 1:
|
|
2563
2563
|
data = _a.sent();
|
|
2564
2564
|
contents = {};
|
|
2565
2565
|
contents = deserializeAws_json1_1StopApplicationResponse(data, context);
|
|
2566
2566
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2567
|
-
return [2
|
|
2567
|
+
return [2, Promise.resolve(response)];
|
|
2568
2568
|
}
|
|
2569
2569
|
});
|
|
2570
2570
|
}); };
|
|
@@ -2576,63 +2576,63 @@ var deserializeAws_json1_1StopApplicationCommandError = function (output, contex
|
|
|
2576
2576
|
case 0:
|
|
2577
2577
|
_a = [__assign({}, output)];
|
|
2578
2578
|
_j = {};
|
|
2579
|
-
return [4
|
|
2579
|
+
return [4, parseBody(output.body, context)];
|
|
2580
2580
|
case 1:
|
|
2581
2581
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2582
2582
|
errorCode = "UnknownError";
|
|
2583
2583
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2584
2584
|
_b = errorCode;
|
|
2585
2585
|
switch (_b) {
|
|
2586
|
-
case "ConcurrentModificationException": return [3
|
|
2587
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
2588
|
-
case "InvalidApplicationConfigurationException": return [3
|
|
2589
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3
|
|
2590
|
-
case "InvalidArgumentException": return [3
|
|
2591
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
2592
|
-
case "InvalidRequestException": return [3
|
|
2593
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
2594
|
-
case "ResourceInUseException": return [3
|
|
2595
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
2596
|
-
case "ResourceNotFoundException": return [3
|
|
2597
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
2586
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
2587
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
2588
|
+
case "InvalidApplicationConfigurationException": return [3, 4];
|
|
2589
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3, 4];
|
|
2590
|
+
case "InvalidArgumentException": return [3, 6];
|
|
2591
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 6];
|
|
2592
|
+
case "InvalidRequestException": return [3, 8];
|
|
2593
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 8];
|
|
2594
|
+
case "ResourceInUseException": return [3, 10];
|
|
2595
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 10];
|
|
2596
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
2597
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 12];
|
|
2598
2598
|
}
|
|
2599
|
-
return [3
|
|
2599
|
+
return [3, 14];
|
|
2600
2600
|
case 2:
|
|
2601
2601
|
_c = [{}];
|
|
2602
|
-
return [4
|
|
2602
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2603
2603
|
case 3:
|
|
2604
2604
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2605
|
-
return [3
|
|
2605
|
+
return [3, 15];
|
|
2606
2606
|
case 4:
|
|
2607
2607
|
_d = [{}];
|
|
2608
|
-
return [4
|
|
2608
|
+
return [4, deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse(parsedOutput, context)];
|
|
2609
2609
|
case 5:
|
|
2610
2610
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2611
|
-
return [3
|
|
2611
|
+
return [3, 15];
|
|
2612
2612
|
case 6:
|
|
2613
2613
|
_e = [{}];
|
|
2614
|
-
return [4
|
|
2614
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2615
2615
|
case 7:
|
|
2616
2616
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2617
|
-
return [3
|
|
2617
|
+
return [3, 15];
|
|
2618
2618
|
case 8:
|
|
2619
2619
|
_f = [{}];
|
|
2620
|
-
return [4
|
|
2620
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2621
2621
|
case 9:
|
|
2622
2622
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2623
|
-
return [3
|
|
2623
|
+
return [3, 15];
|
|
2624
2624
|
case 10:
|
|
2625
2625
|
_g = [{}];
|
|
2626
|
-
return [4
|
|
2626
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2627
2627
|
case 11:
|
|
2628
2628
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2629
|
-
return [3
|
|
2629
|
+
return [3, 15];
|
|
2630
2630
|
case 12:
|
|
2631
2631
|
_h = [{}];
|
|
2632
|
-
return [4
|
|
2632
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2633
2633
|
case 13:
|
|
2634
2634
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2635
|
-
return [3
|
|
2635
|
+
return [3, 15];
|
|
2636
2636
|
case 14:
|
|
2637
2637
|
parsedBody = parsedOutput.body;
|
|
2638
2638
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2642,7 +2642,7 @@ var deserializeAws_json1_1StopApplicationCommandError = function (output, contex
|
|
|
2642
2642
|
message = response.message || response.Message || errorCode;
|
|
2643
2643
|
response.message = message;
|
|
2644
2644
|
delete response.Message;
|
|
2645
|
-
return [2
|
|
2645
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2646
2646
|
}
|
|
2647
2647
|
});
|
|
2648
2648
|
}); };
|
|
@@ -2652,15 +2652,15 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
2652
2652
|
switch (_a.label) {
|
|
2653
2653
|
case 0:
|
|
2654
2654
|
if (output.statusCode >= 300) {
|
|
2655
|
-
return [2
|
|
2655
|
+
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
2656
2656
|
}
|
|
2657
|
-
return [4
|
|
2657
|
+
return [4, parseBody(output.body, context)];
|
|
2658
2658
|
case 1:
|
|
2659
2659
|
data = _a.sent();
|
|
2660
2660
|
contents = {};
|
|
2661
2661
|
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
2662
2662
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2663
|
-
return [2
|
|
2663
|
+
return [2, Promise.resolve(response)];
|
|
2664
2664
|
}
|
|
2665
2665
|
});
|
|
2666
2666
|
}); };
|
|
@@ -2672,55 +2672,55 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2672
2672
|
case 0:
|
|
2673
2673
|
_a = [__assign({}, output)];
|
|
2674
2674
|
_h = {};
|
|
2675
|
-
return [4
|
|
2675
|
+
return [4, parseBody(output.body, context)];
|
|
2676
2676
|
case 1:
|
|
2677
2677
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2678
2678
|
errorCode = "UnknownError";
|
|
2679
2679
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2680
2680
|
_b = errorCode;
|
|
2681
2681
|
switch (_b) {
|
|
2682
|
-
case "ConcurrentModificationException": return [3
|
|
2683
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
2684
|
-
case "InvalidArgumentException": return [3
|
|
2685
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
2686
|
-
case "ResourceInUseException": return [3
|
|
2687
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
2688
|
-
case "ResourceNotFoundException": return [3
|
|
2689
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
2690
|
-
case "TooManyTagsException": return [3
|
|
2691
|
-
case "com.amazonaws.kinesisanalyticsv2#TooManyTagsException": return [3
|
|
2682
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
2683
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
2684
|
+
case "InvalidArgumentException": return [3, 4];
|
|
2685
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 4];
|
|
2686
|
+
case "ResourceInUseException": return [3, 6];
|
|
2687
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 6];
|
|
2688
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2689
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 8];
|
|
2690
|
+
case "TooManyTagsException": return [3, 10];
|
|
2691
|
+
case "com.amazonaws.kinesisanalyticsv2#TooManyTagsException": return [3, 10];
|
|
2692
2692
|
}
|
|
2693
|
-
return [3
|
|
2693
|
+
return [3, 12];
|
|
2694
2694
|
case 2:
|
|
2695
2695
|
_c = [{}];
|
|
2696
|
-
return [4
|
|
2696
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2697
2697
|
case 3:
|
|
2698
2698
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2699
|
-
return [3
|
|
2699
|
+
return [3, 13];
|
|
2700
2700
|
case 4:
|
|
2701
2701
|
_d = [{}];
|
|
2702
|
-
return [4
|
|
2702
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2703
2703
|
case 5:
|
|
2704
2704
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2705
|
-
return [3
|
|
2705
|
+
return [3, 13];
|
|
2706
2706
|
case 6:
|
|
2707
2707
|
_e = [{}];
|
|
2708
|
-
return [4
|
|
2708
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2709
2709
|
case 7:
|
|
2710
2710
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2711
|
-
return [3
|
|
2711
|
+
return [3, 13];
|
|
2712
2712
|
case 8:
|
|
2713
2713
|
_f = [{}];
|
|
2714
|
-
return [4
|
|
2714
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2715
2715
|
case 9:
|
|
2716
2716
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2717
|
-
return [3
|
|
2717
|
+
return [3, 13];
|
|
2718
2718
|
case 10:
|
|
2719
2719
|
_g = [{}];
|
|
2720
|
-
return [4
|
|
2720
|
+
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
2721
2721
|
case 11:
|
|
2722
2722
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2723
|
-
return [3
|
|
2723
|
+
return [3, 13];
|
|
2724
2724
|
case 12:
|
|
2725
2725
|
parsedBody = parsedOutput.body;
|
|
2726
2726
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2730,7 +2730,7 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2730
2730
|
message = response.message || response.Message || errorCode;
|
|
2731
2731
|
response.message = message;
|
|
2732
2732
|
delete response.Message;
|
|
2733
|
-
return [2
|
|
2733
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2734
2734
|
}
|
|
2735
2735
|
});
|
|
2736
2736
|
}); };
|
|
@@ -2740,15 +2740,15 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
2740
2740
|
switch (_a.label) {
|
|
2741
2741
|
case 0:
|
|
2742
2742
|
if (output.statusCode >= 300) {
|
|
2743
|
-
return [2
|
|
2743
|
+
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
2744
2744
|
}
|
|
2745
|
-
return [4
|
|
2745
|
+
return [4, parseBody(output.body, context)];
|
|
2746
2746
|
case 1:
|
|
2747
2747
|
data = _a.sent();
|
|
2748
2748
|
contents = {};
|
|
2749
2749
|
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
2750
2750
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2751
|
-
return [2
|
|
2751
|
+
return [2, Promise.resolve(response)];
|
|
2752
2752
|
}
|
|
2753
2753
|
});
|
|
2754
2754
|
}); };
|
|
@@ -2760,55 +2760,55 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2760
2760
|
case 0:
|
|
2761
2761
|
_a = [__assign({}, output)];
|
|
2762
2762
|
_h = {};
|
|
2763
|
-
return [4
|
|
2763
|
+
return [4, parseBody(output.body, context)];
|
|
2764
2764
|
case 1:
|
|
2765
2765
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2766
2766
|
errorCode = "UnknownError";
|
|
2767
2767
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2768
2768
|
_b = errorCode;
|
|
2769
2769
|
switch (_b) {
|
|
2770
|
-
case "ConcurrentModificationException": return [3
|
|
2771
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
2772
|
-
case "InvalidArgumentException": return [3
|
|
2773
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
2774
|
-
case "ResourceInUseException": return [3
|
|
2775
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
2776
|
-
case "ResourceNotFoundException": return [3
|
|
2777
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
2778
|
-
case "TooManyTagsException": return [3
|
|
2779
|
-
case "com.amazonaws.kinesisanalyticsv2#TooManyTagsException": return [3
|
|
2770
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
2771
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
2772
|
+
case "InvalidArgumentException": return [3, 4];
|
|
2773
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 4];
|
|
2774
|
+
case "ResourceInUseException": return [3, 6];
|
|
2775
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 6];
|
|
2776
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2777
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 8];
|
|
2778
|
+
case "TooManyTagsException": return [3, 10];
|
|
2779
|
+
case "com.amazonaws.kinesisanalyticsv2#TooManyTagsException": return [3, 10];
|
|
2780
2780
|
}
|
|
2781
|
-
return [3
|
|
2781
|
+
return [3, 12];
|
|
2782
2782
|
case 2:
|
|
2783
2783
|
_c = [{}];
|
|
2784
|
-
return [4
|
|
2784
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2785
2785
|
case 3:
|
|
2786
2786
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2787
|
-
return [3
|
|
2787
|
+
return [3, 13];
|
|
2788
2788
|
case 4:
|
|
2789
2789
|
_d = [{}];
|
|
2790
|
-
return [4
|
|
2790
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2791
2791
|
case 5:
|
|
2792
2792
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2793
|
-
return [3
|
|
2793
|
+
return [3, 13];
|
|
2794
2794
|
case 6:
|
|
2795
2795
|
_e = [{}];
|
|
2796
|
-
return [4
|
|
2796
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2797
2797
|
case 7:
|
|
2798
2798
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2799
|
-
return [3
|
|
2799
|
+
return [3, 13];
|
|
2800
2800
|
case 8:
|
|
2801
2801
|
_f = [{}];
|
|
2802
|
-
return [4
|
|
2802
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2803
2803
|
case 9:
|
|
2804
2804
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2805
|
-
return [3
|
|
2805
|
+
return [3, 13];
|
|
2806
2806
|
case 10:
|
|
2807
2807
|
_g = [{}];
|
|
2808
|
-
return [4
|
|
2808
|
+
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
2809
2809
|
case 11:
|
|
2810
2810
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2811
|
-
return [3
|
|
2811
|
+
return [3, 13];
|
|
2812
2812
|
case 12:
|
|
2813
2813
|
parsedBody = parsedOutput.body;
|
|
2814
2814
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2818,7 +2818,7 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2818
2818
|
message = response.message || response.Message || errorCode;
|
|
2819
2819
|
response.message = message;
|
|
2820
2820
|
delete response.Message;
|
|
2821
|
-
return [2
|
|
2821
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2822
2822
|
}
|
|
2823
2823
|
});
|
|
2824
2824
|
}); };
|
|
@@ -2828,15 +2828,15 @@ export var deserializeAws_json1_1UpdateApplicationCommand = function (output, co
|
|
|
2828
2828
|
switch (_a.label) {
|
|
2829
2829
|
case 0:
|
|
2830
2830
|
if (output.statusCode >= 300) {
|
|
2831
|
-
return [2
|
|
2831
|
+
return [2, deserializeAws_json1_1UpdateApplicationCommandError(output, context)];
|
|
2832
2832
|
}
|
|
2833
|
-
return [4
|
|
2833
|
+
return [4, parseBody(output.body, context)];
|
|
2834
2834
|
case 1:
|
|
2835
2835
|
data = _a.sent();
|
|
2836
2836
|
contents = {};
|
|
2837
2837
|
contents = deserializeAws_json1_1UpdateApplicationResponse(data, context);
|
|
2838
2838
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2839
|
-
return [2
|
|
2839
|
+
return [2, Promise.resolve(response)];
|
|
2840
2840
|
}
|
|
2841
2841
|
});
|
|
2842
2842
|
}); };
|
|
@@ -2848,79 +2848,79 @@ var deserializeAws_json1_1UpdateApplicationCommandError = function (output, cont
|
|
|
2848
2848
|
case 0:
|
|
2849
2849
|
_a = [__assign({}, output)];
|
|
2850
2850
|
_l = {};
|
|
2851
|
-
return [4
|
|
2851
|
+
return [4, parseBody(output.body, context)];
|
|
2852
2852
|
case 1:
|
|
2853
2853
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
2854
2854
|
errorCode = "UnknownError";
|
|
2855
2855
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2856
2856
|
_b = errorCode;
|
|
2857
2857
|
switch (_b) {
|
|
2858
|
-
case "CodeValidationException": return [3
|
|
2859
|
-
case "com.amazonaws.kinesisanalyticsv2#CodeValidationException": return [3
|
|
2860
|
-
case "ConcurrentModificationException": return [3
|
|
2861
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
2862
|
-
case "InvalidApplicationConfigurationException": return [3
|
|
2863
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3
|
|
2864
|
-
case "InvalidArgumentException": return [3
|
|
2865
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
2866
|
-
case "InvalidRequestException": return [3
|
|
2867
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3
|
|
2868
|
-
case "LimitExceededException": return [3
|
|
2869
|
-
case "com.amazonaws.kinesisanalyticsv2#LimitExceededException": return [3
|
|
2870
|
-
case "ResourceInUseException": return [3
|
|
2871
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
2872
|
-
case "ResourceNotFoundException": return [3
|
|
2873
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
2858
|
+
case "CodeValidationException": return [3, 2];
|
|
2859
|
+
case "com.amazonaws.kinesisanalyticsv2#CodeValidationException": return [3, 2];
|
|
2860
|
+
case "ConcurrentModificationException": return [3, 4];
|
|
2861
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 4];
|
|
2862
|
+
case "InvalidApplicationConfigurationException": return [3, 6];
|
|
2863
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidApplicationConfigurationException": return [3, 6];
|
|
2864
|
+
case "InvalidArgumentException": return [3, 8];
|
|
2865
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 8];
|
|
2866
|
+
case "InvalidRequestException": return [3, 10];
|
|
2867
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidRequestException": return [3, 10];
|
|
2868
|
+
case "LimitExceededException": return [3, 12];
|
|
2869
|
+
case "com.amazonaws.kinesisanalyticsv2#LimitExceededException": return [3, 12];
|
|
2870
|
+
case "ResourceInUseException": return [3, 14];
|
|
2871
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 14];
|
|
2872
|
+
case "ResourceNotFoundException": return [3, 16];
|
|
2873
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 16];
|
|
2874
2874
|
}
|
|
2875
|
-
return [3
|
|
2875
|
+
return [3, 18];
|
|
2876
2876
|
case 2:
|
|
2877
2877
|
_c = [{}];
|
|
2878
|
-
return [4
|
|
2878
|
+
return [4, deserializeAws_json1_1CodeValidationExceptionResponse(parsedOutput, context)];
|
|
2879
2879
|
case 3:
|
|
2880
2880
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2881
|
-
return [3
|
|
2881
|
+
return [3, 19];
|
|
2882
2882
|
case 4:
|
|
2883
2883
|
_d = [{}];
|
|
2884
|
-
return [4
|
|
2884
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2885
2885
|
case 5:
|
|
2886
2886
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2887
|
-
return [3
|
|
2887
|
+
return [3, 19];
|
|
2888
2888
|
case 6:
|
|
2889
2889
|
_e = [{}];
|
|
2890
|
-
return [4
|
|
2890
|
+
return [4, deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse(parsedOutput, context)];
|
|
2891
2891
|
case 7:
|
|
2892
2892
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2893
|
-
return [3
|
|
2893
|
+
return [3, 19];
|
|
2894
2894
|
case 8:
|
|
2895
2895
|
_f = [{}];
|
|
2896
|
-
return [4
|
|
2896
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2897
2897
|
case 9:
|
|
2898
2898
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2899
|
-
return [3
|
|
2899
|
+
return [3, 19];
|
|
2900
2900
|
case 10:
|
|
2901
2901
|
_g = [{}];
|
|
2902
|
-
return [4
|
|
2902
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2903
2903
|
case 11:
|
|
2904
2904
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2905
|
-
return [3
|
|
2905
|
+
return [3, 19];
|
|
2906
2906
|
case 12:
|
|
2907
2907
|
_h = [{}];
|
|
2908
|
-
return [4
|
|
2908
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2909
2909
|
case 13:
|
|
2910
2910
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2911
|
-
return [3
|
|
2911
|
+
return [3, 19];
|
|
2912
2912
|
case 14:
|
|
2913
2913
|
_j = [{}];
|
|
2914
|
-
return [4
|
|
2914
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2915
2915
|
case 15:
|
|
2916
2916
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2917
|
-
return [3
|
|
2917
|
+
return [3, 19];
|
|
2918
2918
|
case 16:
|
|
2919
2919
|
_k = [{}];
|
|
2920
|
-
return [4
|
|
2920
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2921
2921
|
case 17:
|
|
2922
2922
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2923
|
-
return [3
|
|
2923
|
+
return [3, 19];
|
|
2924
2924
|
case 18:
|
|
2925
2925
|
parsedBody = parsedOutput.body;
|
|
2926
2926
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2930,7 +2930,7 @@ var deserializeAws_json1_1UpdateApplicationCommandError = function (output, cont
|
|
|
2930
2930
|
message = response.message || response.Message || errorCode;
|
|
2931
2931
|
response.message = message;
|
|
2932
2932
|
delete response.Message;
|
|
2933
|
-
return [2
|
|
2933
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2934
2934
|
}
|
|
2935
2935
|
});
|
|
2936
2936
|
}); };
|
|
@@ -2940,15 +2940,15 @@ export var deserializeAws_json1_1UpdateApplicationMaintenanceConfigurationComman
|
|
|
2940
2940
|
switch (_a.label) {
|
|
2941
2941
|
case 0:
|
|
2942
2942
|
if (output.statusCode >= 300) {
|
|
2943
|
-
return [2
|
|
2943
|
+
return [2, deserializeAws_json1_1UpdateApplicationMaintenanceConfigurationCommandError(output, context)];
|
|
2944
2944
|
}
|
|
2945
|
-
return [4
|
|
2945
|
+
return [4, parseBody(output.body, context)];
|
|
2946
2946
|
case 1:
|
|
2947
2947
|
data = _a.sent();
|
|
2948
2948
|
contents = {};
|
|
2949
2949
|
contents = deserializeAws_json1_1UpdateApplicationMaintenanceConfigurationResponse(data, context);
|
|
2950
2950
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2951
|
-
return [2
|
|
2951
|
+
return [2, Promise.resolve(response)];
|
|
2952
2952
|
}
|
|
2953
2953
|
});
|
|
2954
2954
|
}); };
|
|
@@ -2960,55 +2960,55 @@ var deserializeAws_json1_1UpdateApplicationMaintenanceConfigurationCommandError
|
|
|
2960
2960
|
case 0:
|
|
2961
2961
|
_a = [__assign({}, output)];
|
|
2962
2962
|
_h = {};
|
|
2963
|
-
return [4
|
|
2963
|
+
return [4, parseBody(output.body, context)];
|
|
2964
2964
|
case 1:
|
|
2965
2965
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2966
2966
|
errorCode = "UnknownError";
|
|
2967
2967
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2968
2968
|
_b = errorCode;
|
|
2969
2969
|
switch (_b) {
|
|
2970
|
-
case "ConcurrentModificationException": return [3
|
|
2971
|
-
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3
|
|
2972
|
-
case "InvalidArgumentException": return [3
|
|
2973
|
-
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3
|
|
2974
|
-
case "ResourceInUseException": return [3
|
|
2975
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3
|
|
2976
|
-
case "ResourceNotFoundException": return [3
|
|
2977
|
-
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3
|
|
2978
|
-
case "UnsupportedOperationException": return [3
|
|
2979
|
-
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3
|
|
2970
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
2971
|
+
case "com.amazonaws.kinesisanalyticsv2#ConcurrentModificationException": return [3, 2];
|
|
2972
|
+
case "InvalidArgumentException": return [3, 4];
|
|
2973
|
+
case "com.amazonaws.kinesisanalyticsv2#InvalidArgumentException": return [3, 4];
|
|
2974
|
+
case "ResourceInUseException": return [3, 6];
|
|
2975
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceInUseException": return [3, 6];
|
|
2976
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2977
|
+
case "com.amazonaws.kinesisanalyticsv2#ResourceNotFoundException": return [3, 8];
|
|
2978
|
+
case "UnsupportedOperationException": return [3, 10];
|
|
2979
|
+
case "com.amazonaws.kinesisanalyticsv2#UnsupportedOperationException": return [3, 10];
|
|
2980
2980
|
}
|
|
2981
|
-
return [3
|
|
2981
|
+
return [3, 12];
|
|
2982
2982
|
case 2:
|
|
2983
2983
|
_c = [{}];
|
|
2984
|
-
return [4
|
|
2984
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2985
2985
|
case 3:
|
|
2986
2986
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2987
|
-
return [3
|
|
2987
|
+
return [3, 13];
|
|
2988
2988
|
case 4:
|
|
2989
2989
|
_d = [{}];
|
|
2990
|
-
return [4
|
|
2990
|
+
return [4, deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)];
|
|
2991
2991
|
case 5:
|
|
2992
2992
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2993
|
-
return [3
|
|
2993
|
+
return [3, 13];
|
|
2994
2994
|
case 6:
|
|
2995
2995
|
_e = [{}];
|
|
2996
|
-
return [4
|
|
2996
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2997
2997
|
case 7:
|
|
2998
2998
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2999
|
-
return [3
|
|
2999
|
+
return [3, 13];
|
|
3000
3000
|
case 8:
|
|
3001
3001
|
_f = [{}];
|
|
3002
|
-
return [4
|
|
3002
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3003
3003
|
case 9:
|
|
3004
3004
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3005
|
-
return [3
|
|
3005
|
+
return [3, 13];
|
|
3006
3006
|
case 10:
|
|
3007
3007
|
_g = [{}];
|
|
3008
|
-
return [4
|
|
3008
|
+
return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
3009
3009
|
case 11:
|
|
3010
3010
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3011
|
-
return [3
|
|
3011
|
+
return [3, 13];
|
|
3012
3012
|
case 12:
|
|
3013
3013
|
parsedBody = parsedOutput.body;
|
|
3014
3014
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3018,7 +3018,7 @@ var deserializeAws_json1_1UpdateApplicationMaintenanceConfigurationCommandError
|
|
|
3018
3018
|
message = response.message || response.Message || errorCode;
|
|
3019
3019
|
response.message = message;
|
|
3020
3020
|
delete response.Message;
|
|
3021
|
-
return [2
|
|
3021
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3022
3022
|
}
|
|
3023
3023
|
});
|
|
3024
3024
|
}); };
|
|
@@ -3028,7 +3028,7 @@ var deserializeAws_json1_1CodeValidationExceptionResponse = function (parsedOutp
|
|
|
3028
3028
|
body = parsedOutput.body;
|
|
3029
3029
|
deserialized = deserializeAws_json1_1CodeValidationException(body, context);
|
|
3030
3030
|
contents = __assign({ name: "CodeValidationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3031
|
-
return [2
|
|
3031
|
+
return [2, contents];
|
|
3032
3032
|
});
|
|
3033
3033
|
}); };
|
|
3034
3034
|
var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3037,7 +3037,7 @@ var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (pa
|
|
|
3037
3037
|
body = parsedOutput.body;
|
|
3038
3038
|
deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
3039
3039
|
contents = __assign({ name: "ConcurrentModificationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3040
|
-
return [2
|
|
3040
|
+
return [2, contents];
|
|
3041
3041
|
});
|
|
3042
3042
|
}); };
|
|
3043
3043
|
var deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3046,7 +3046,7 @@ var deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse = fun
|
|
|
3046
3046
|
body = parsedOutput.body;
|
|
3047
3047
|
deserialized = deserializeAws_json1_1InvalidApplicationConfigurationException(body, context);
|
|
3048
3048
|
contents = __assign({ name: "InvalidApplicationConfigurationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3049
|
-
return [2
|
|
3049
|
+
return [2, contents];
|
|
3050
3050
|
});
|
|
3051
3051
|
}); };
|
|
3052
3052
|
var deserializeAws_json1_1InvalidArgumentExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3055,7 +3055,7 @@ var deserializeAws_json1_1InvalidArgumentExceptionResponse = function (parsedOut
|
|
|
3055
3055
|
body = parsedOutput.body;
|
|
3056
3056
|
deserialized = deserializeAws_json1_1InvalidArgumentException(body, context);
|
|
3057
3057
|
contents = __assign({ name: "InvalidArgumentException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3058
|
-
return [2
|
|
3058
|
+
return [2, contents];
|
|
3059
3059
|
});
|
|
3060
3060
|
}); };
|
|
3061
3061
|
var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3064,7 +3064,7 @@ var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutp
|
|
|
3064
3064
|
body = parsedOutput.body;
|
|
3065
3065
|
deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
3066
3066
|
contents = __assign({ name: "InvalidRequestException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3067
|
-
return [2
|
|
3067
|
+
return [2, contents];
|
|
3068
3068
|
});
|
|
3069
3069
|
}); };
|
|
3070
3070
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3073,7 +3073,7 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
3073
3073
|
body = parsedOutput.body;
|
|
3074
3074
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
3075
3075
|
contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3076
|
-
return [2
|
|
3076
|
+
return [2, contents];
|
|
3077
3077
|
});
|
|
3078
3078
|
}); };
|
|
3079
3079
|
var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3082,7 +3082,7 @@ var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutpu
|
|
|
3082
3082
|
body = parsedOutput.body;
|
|
3083
3083
|
deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
3084
3084
|
contents = __assign({ name: "ResourceInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3085
|
-
return [2
|
|
3085
|
+
return [2, contents];
|
|
3086
3086
|
});
|
|
3087
3087
|
}); };
|
|
3088
3088
|
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3091,7 +3091,7 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
3091
3091
|
body = parsedOutput.body;
|
|
3092
3092
|
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
3093
3093
|
contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3094
|
-
return [2
|
|
3094
|
+
return [2, contents];
|
|
3095
3095
|
});
|
|
3096
3096
|
}); };
|
|
3097
3097
|
var deserializeAws_json1_1ResourceProvisionedThroughputExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3100,7 +3100,7 @@ var deserializeAws_json1_1ResourceProvisionedThroughputExceededExceptionResponse
|
|
|
3100
3100
|
body = parsedOutput.body;
|
|
3101
3101
|
deserialized = deserializeAws_json1_1ResourceProvisionedThroughputExceededException(body, context);
|
|
3102
3102
|
contents = __assign({ name: "ResourceProvisionedThroughputExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3103
|
-
return [2
|
|
3103
|
+
return [2, contents];
|
|
3104
3104
|
});
|
|
3105
3105
|
}); };
|
|
3106
3106
|
var deserializeAws_json1_1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3109,7 +3109,7 @@ var deserializeAws_json1_1ServiceUnavailableExceptionResponse = function (parsed
|
|
|
3109
3109
|
body = parsedOutput.body;
|
|
3110
3110
|
deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
3111
3111
|
contents = __assign({ name: "ServiceUnavailableException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3112
|
-
return [2
|
|
3112
|
+
return [2, contents];
|
|
3113
3113
|
});
|
|
3114
3114
|
}); };
|
|
3115
3115
|
var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3118,7 +3118,7 @@ var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput,
|
|
|
3118
3118
|
body = parsedOutput.body;
|
|
3119
3119
|
deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
3120
3120
|
contents = __assign({ name: "TooManyTagsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3121
|
-
return [2
|
|
3121
|
+
return [2, contents];
|
|
3122
3122
|
});
|
|
3123
3123
|
}); };
|
|
3124
3124
|
var deserializeAws_json1_1UnableToDetectSchemaExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3127,7 +3127,7 @@ var deserializeAws_json1_1UnableToDetectSchemaExceptionResponse = function (pars
|
|
|
3127
3127
|
body = parsedOutput.body;
|
|
3128
3128
|
deserialized = deserializeAws_json1_1UnableToDetectSchemaException(body, context);
|
|
3129
3129
|
contents = __assign({ name: "UnableToDetectSchemaException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3130
|
-
return [2
|
|
3130
|
+
return [2, contents];
|
|
3131
3131
|
});
|
|
3132
3132
|
}); };
|
|
3133
3133
|
var deserializeAws_json1_1UnsupportedOperationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3136,7 +3136,7 @@ var deserializeAws_json1_1UnsupportedOperationExceptionResponse = function (pars
|
|
|
3136
3136
|
body = parsedOutput.body;
|
|
3137
3137
|
deserialized = deserializeAws_json1_1UnsupportedOperationException(body, context);
|
|
3138
3138
|
contents = __assign({ name: "UnsupportedOperationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3139
|
-
return [2
|
|
3139
|
+
return [2, contents];
|
|
3140
3140
|
});
|
|
3141
3141
|
}); };
|
|
3142
3142
|
var serializeAws_json1_1AddApplicationCloudWatchLoggingOptionRequest = function (input, context) {
|
|
@@ -5056,7 +5056,6 @@ var deserializeMetadata = function (output) {
|
|
|
5056
5056
|
cfId: output.headers["x-amz-cf-id"],
|
|
5057
5057
|
});
|
|
5058
5058
|
};
|
|
5059
|
-
// Collect low-level response body stream to Uint8Array.
|
|
5060
5059
|
var collectBody = function (streamBody, context) {
|
|
5061
5060
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
5062
5061
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -5064,7 +5063,6 @@ var collectBody = function (streamBody, context) {
|
|
|
5064
5063
|
}
|
|
5065
5064
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
5066
5065
|
};
|
|
5067
|
-
// Encode Uint8Array data into string with utf-8.
|
|
5068
5066
|
var collectBodyString = function (streamBody, context) {
|
|
5069
5067
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
5070
5068
|
};
|
|
@@ -5072,7 +5070,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
5072
5070
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
5073
5071
|
return __generator(this, function (_c) {
|
|
5074
5072
|
switch (_c.label) {
|
|
5075
|
-
case 0: return [4
|
|
5073
|
+
case 0: return [4, context.endpoint()];
|
|
5076
5074
|
case 1:
|
|
5077
5075
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5078
5076
|
contents = {
|
|
@@ -5089,7 +5087,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
5089
5087
|
if (body !== undefined) {
|
|
5090
5088
|
contents.body = body;
|
|
5091
5089
|
}
|
|
5092
|
-
return [2
|
|
5090
|
+
return [2, new __HttpRequest(contents)];
|
|
5093
5091
|
}
|
|
5094
5092
|
});
|
|
5095
5093
|
}); };
|
|
@@ -5101,9 +5099,6 @@ var parseBody = function (streamBody, context) {
|
|
|
5101
5099
|
return {};
|
|
5102
5100
|
});
|
|
5103
5101
|
};
|
|
5104
|
-
/**
|
|
5105
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
5106
|
-
*/
|
|
5107
5102
|
var loadRestJsonErrorCode = function (output, data) {
|
|
5108
5103
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
5109
5104
|
var sanitizeErrorCode = function (rawValue) {
|