@aws-sdk/client-appintegrations 3.181.0 → 3.183.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 +8 -0
- package/dist-es/AppIntegrations.js +62 -69
- package/dist-es/AppIntegrationsClient.js +22 -28
- package/dist-es/commands/CreateDataIntegrationCommand.js +21 -28
- package/dist-es/commands/CreateEventIntegrationCommand.js +21 -28
- package/dist-es/commands/DeleteDataIntegrationCommand.js +21 -28
- package/dist-es/commands/DeleteEventIntegrationCommand.js +21 -28
- package/dist-es/commands/GetDataIntegrationCommand.js +21 -28
- package/dist-es/commands/GetEventIntegrationCommand.js +21 -28
- package/dist-es/commands/ListDataIntegrationAssociationsCommand.js +21 -28
- package/dist-es/commands/ListDataIntegrationsCommand.js +21 -28
- package/dist-es/commands/ListEventIntegrationAssociationsCommand.js +21 -28
- package/dist-es/commands/ListEventIntegrationsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateDataIntegrationCommand.js +21 -28
- package/dist-es/commands/UpdateEventIntegrationCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/AppIntegrationsServiceException.js +5 -10
- package/dist-es/models/models_0.js +192 -121
- package/dist-es/protocols/Aws_restJson1.js +1138 -1608
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,1606 +1,1153 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
2
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
4
|
import { AppIntegrationsServiceException as __BaseException } from "../models/AppIntegrationsServiceException";
|
|
6
5
|
import { AccessDeniedException, DuplicateResourceException, InternalServiceError, InvalidRequestException, ResourceNotFoundException, ResourceQuotaExceededException, ThrottlingException, } from "../models/models_0";
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
hostname: hostname,
|
|
25
|
-
port: port,
|
|
26
|
-
method: "POST",
|
|
27
|
-
headers: headers,
|
|
28
|
-
path: resolvedPath,
|
|
29
|
-
body: body,
|
|
30
|
-
})];
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
}); };
|
|
34
|
-
export var serializeAws_restJson1CreateEventIntegrationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
35
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
36
|
-
var _c;
|
|
37
|
-
return __generator(this, function (_d) {
|
|
38
|
-
switch (_d.label) {
|
|
39
|
-
case 0: return [4, context.endpoint()];
|
|
40
|
-
case 1:
|
|
41
|
-
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
42
|
-
headers = {
|
|
43
|
-
"content-type": "application/json",
|
|
44
|
-
};
|
|
45
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/eventIntegrations";
|
|
46
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_c = input.ClientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.EventBridgeBus != null && { EventBridgeBus: input.EventBridgeBus })), (input.EventFilter != null && { EventFilter: serializeAws_restJson1EventFilter(input.EventFilter, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
47
|
-
return [2, new __HttpRequest({
|
|
48
|
-
protocol: protocol,
|
|
49
|
-
hostname: hostname,
|
|
50
|
-
port: port,
|
|
51
|
-
method: "POST",
|
|
52
|
-
headers: headers,
|
|
53
|
-
path: resolvedPath,
|
|
54
|
-
body: body,
|
|
55
|
-
})];
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}); };
|
|
59
|
-
export var serializeAws_restJson1DeleteDataIntegrationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
60
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
61
|
-
return __generator(this, function (_c) {
|
|
62
|
-
switch (_c.label) {
|
|
63
|
-
case 0: return [4, context.endpoint()];
|
|
64
|
-
case 1:
|
|
65
|
-
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
66
|
-
headers = {};
|
|
67
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
68
|
-
"/dataIntegrations/{DataIntegrationIdentifier}";
|
|
69
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "DataIntegrationIdentifier", function () { return input.DataIntegrationIdentifier; }, "{DataIntegrationIdentifier}", false);
|
|
70
|
-
return [2, new __HttpRequest({
|
|
71
|
-
protocol: protocol,
|
|
72
|
-
hostname: hostname,
|
|
73
|
-
port: port,
|
|
74
|
-
method: "DELETE",
|
|
75
|
-
headers: headers,
|
|
76
|
-
path: resolvedPath,
|
|
77
|
-
body: body,
|
|
78
|
-
})];
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
}); };
|
|
82
|
-
export var serializeAws_restJson1DeleteEventIntegrationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
83
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
84
|
-
return __generator(this, function (_c) {
|
|
85
|
-
switch (_c.label) {
|
|
86
|
-
case 0: return [4, context.endpoint()];
|
|
87
|
-
case 1:
|
|
88
|
-
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
89
|
-
headers = {};
|
|
90
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/eventIntegrations/{Name}";
|
|
91
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "Name", function () { return input.Name; }, "{Name}", false);
|
|
92
|
-
return [2, new __HttpRequest({
|
|
93
|
-
protocol: protocol,
|
|
94
|
-
hostname: hostname,
|
|
95
|
-
port: port,
|
|
96
|
-
method: "DELETE",
|
|
97
|
-
headers: headers,
|
|
98
|
-
path: resolvedPath,
|
|
99
|
-
body: body,
|
|
100
|
-
})];
|
|
101
|
-
}
|
|
6
|
+
export const serializeAws_restJson1CreateDataIntegrationCommand = async (input, context) => {
|
|
7
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
|
+
const headers = {
|
|
9
|
+
"content-type": "application/json",
|
|
10
|
+
};
|
|
11
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations";
|
|
12
|
+
let body;
|
|
13
|
+
body = JSON.stringify({
|
|
14
|
+
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
15
|
+
...(input.Description != null && { Description: input.Description }),
|
|
16
|
+
...(input.KmsKey != null && { KmsKey: input.KmsKey }),
|
|
17
|
+
...(input.Name != null && { Name: input.Name }),
|
|
18
|
+
...(input.ScheduleConfig != null && {
|
|
19
|
+
ScheduleConfig: serializeAws_restJson1ScheduleConfiguration(input.ScheduleConfig, context),
|
|
20
|
+
}),
|
|
21
|
+
...(input.SourceURI != null && { SourceURI: input.SourceURI }),
|
|
22
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
102
23
|
});
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
headers = {};
|
|
112
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dataIntegrations/{Identifier}";
|
|
113
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", function () { return input.Identifier; }, "{Identifier}", false);
|
|
114
|
-
return [2, new __HttpRequest({
|
|
115
|
-
protocol: protocol,
|
|
116
|
-
hostname: hostname,
|
|
117
|
-
port: port,
|
|
118
|
-
method: "GET",
|
|
119
|
-
headers: headers,
|
|
120
|
-
path: resolvedPath,
|
|
121
|
-
body: body,
|
|
122
|
-
})];
|
|
123
|
-
}
|
|
24
|
+
return new __HttpRequest({
|
|
25
|
+
protocol,
|
|
26
|
+
hostname,
|
|
27
|
+
port,
|
|
28
|
+
method: "POST",
|
|
29
|
+
headers,
|
|
30
|
+
path: resolvedPath,
|
|
31
|
+
body,
|
|
124
32
|
});
|
|
125
|
-
}
|
|
126
|
-
export
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
method: "GET",
|
|
141
|
-
headers: headers,
|
|
142
|
-
path: resolvedPath,
|
|
143
|
-
body: body,
|
|
144
|
-
})];
|
|
145
|
-
}
|
|
33
|
+
};
|
|
34
|
+
export const serializeAws_restJson1CreateEventIntegrationCommand = async (input, context) => {
|
|
35
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
36
|
+
const headers = {
|
|
37
|
+
"content-type": "application/json",
|
|
38
|
+
};
|
|
39
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations";
|
|
40
|
+
let body;
|
|
41
|
+
body = JSON.stringify({
|
|
42
|
+
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
43
|
+
...(input.Description != null && { Description: input.Description }),
|
|
44
|
+
...(input.EventBridgeBus != null && { EventBridgeBus: input.EventBridgeBus }),
|
|
45
|
+
...(input.EventFilter != null && { EventFilter: serializeAws_restJson1EventFilter(input.EventFilter, context) }),
|
|
46
|
+
...(input.Name != null && { Name: input.Name }),
|
|
47
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
146
48
|
});
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
headers = {};
|
|
156
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
157
|
-
"/dataIntegrations/{DataIntegrationIdentifier}/associations";
|
|
158
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "DataIntegrationIdentifier", function () { return input.DataIntegrationIdentifier; }, "{DataIntegrationIdentifier}", false);
|
|
159
|
-
query = map({
|
|
160
|
-
nextToken: [, input.NextToken],
|
|
161
|
-
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
162
|
-
});
|
|
163
|
-
return [2, new __HttpRequest({
|
|
164
|
-
protocol: protocol,
|
|
165
|
-
hostname: hostname,
|
|
166
|
-
port: port,
|
|
167
|
-
method: "GET",
|
|
168
|
-
headers: headers,
|
|
169
|
-
path: resolvedPath,
|
|
170
|
-
query: query,
|
|
171
|
-
body: body,
|
|
172
|
-
})];
|
|
173
|
-
}
|
|
49
|
+
return new __HttpRequest({
|
|
50
|
+
protocol,
|
|
51
|
+
hostname,
|
|
52
|
+
port,
|
|
53
|
+
method: "POST",
|
|
54
|
+
headers,
|
|
55
|
+
path: resolvedPath,
|
|
56
|
+
body,
|
|
174
57
|
});
|
|
175
|
-
}
|
|
176
|
-
export
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
hostname: hostname,
|
|
192
|
-
port: port,
|
|
193
|
-
method: "GET",
|
|
194
|
-
headers: headers,
|
|
195
|
-
path: resolvedPath,
|
|
196
|
-
query: query,
|
|
197
|
-
body: body,
|
|
198
|
-
})];
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
}); };
|
|
202
|
-
export var serializeAws_restJson1ListEventIntegrationAssociationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
203
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
204
|
-
return __generator(this, function (_c) {
|
|
205
|
-
switch (_c.label) {
|
|
206
|
-
case 0: return [4, context.endpoint()];
|
|
207
|
-
case 1:
|
|
208
|
-
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
209
|
-
headers = {};
|
|
210
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
211
|
-
"/eventIntegrations/{EventIntegrationName}/associations";
|
|
212
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "EventIntegrationName", function () { return input.EventIntegrationName; }, "{EventIntegrationName}", false);
|
|
213
|
-
query = map({
|
|
214
|
-
nextToken: [, input.NextToken],
|
|
215
|
-
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
216
|
-
});
|
|
217
|
-
return [2, new __HttpRequest({
|
|
218
|
-
protocol: protocol,
|
|
219
|
-
hostname: hostname,
|
|
220
|
-
port: port,
|
|
221
|
-
method: "GET",
|
|
222
|
-
headers: headers,
|
|
223
|
-
path: resolvedPath,
|
|
224
|
-
query: query,
|
|
225
|
-
body: body,
|
|
226
|
-
})];
|
|
227
|
-
}
|
|
58
|
+
};
|
|
59
|
+
export const serializeAws_restJson1DeleteDataIntegrationCommand = async (input, context) => {
|
|
60
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
61
|
+
const headers = {};
|
|
62
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
63
|
+
"/dataIntegrations/{DataIntegrationIdentifier}";
|
|
64
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
|
|
65
|
+
let body;
|
|
66
|
+
return new __HttpRequest({
|
|
67
|
+
protocol,
|
|
68
|
+
hostname,
|
|
69
|
+
port,
|
|
70
|
+
method: "DELETE",
|
|
71
|
+
headers,
|
|
72
|
+
path: resolvedPath,
|
|
73
|
+
body,
|
|
228
74
|
});
|
|
229
|
-
}
|
|
230
|
-
export
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
protocol: protocol,
|
|
245
|
-
hostname: hostname,
|
|
246
|
-
port: port,
|
|
247
|
-
method: "GET",
|
|
248
|
-
headers: headers,
|
|
249
|
-
path: resolvedPath,
|
|
250
|
-
query: query,
|
|
251
|
-
body: body,
|
|
252
|
-
})];
|
|
253
|
-
}
|
|
75
|
+
};
|
|
76
|
+
export const serializeAws_restJson1DeleteEventIntegrationCommand = async (input, context) => {
|
|
77
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
78
|
+
const headers = {};
|
|
79
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}";
|
|
80
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
81
|
+
let body;
|
|
82
|
+
return new __HttpRequest({
|
|
83
|
+
protocol,
|
|
84
|
+
hostname,
|
|
85
|
+
port,
|
|
86
|
+
method: "DELETE",
|
|
87
|
+
headers,
|
|
88
|
+
path: resolvedPath,
|
|
89
|
+
body,
|
|
254
90
|
});
|
|
255
|
-
}
|
|
256
|
-
export
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
method: "GET",
|
|
271
|
-
headers: headers,
|
|
272
|
-
path: resolvedPath,
|
|
273
|
-
body: body,
|
|
274
|
-
})];
|
|
275
|
-
}
|
|
91
|
+
};
|
|
92
|
+
export const serializeAws_restJson1GetDataIntegrationCommand = async (input, context) => {
|
|
93
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
94
|
+
const headers = {};
|
|
95
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations/{Identifier}";
|
|
96
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
97
|
+
let body;
|
|
98
|
+
return new __HttpRequest({
|
|
99
|
+
protocol,
|
|
100
|
+
hostname,
|
|
101
|
+
port,
|
|
102
|
+
method: "GET",
|
|
103
|
+
headers,
|
|
104
|
+
path: resolvedPath,
|
|
105
|
+
body,
|
|
276
106
|
});
|
|
277
|
-
}
|
|
278
|
-
export
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
protocol: protocol,
|
|
293
|
-
hostname: hostname,
|
|
294
|
-
port: port,
|
|
295
|
-
method: "POST",
|
|
296
|
-
headers: headers,
|
|
297
|
-
path: resolvedPath,
|
|
298
|
-
body: body,
|
|
299
|
-
})];
|
|
300
|
-
}
|
|
107
|
+
};
|
|
108
|
+
export const serializeAws_restJson1GetEventIntegrationCommand = async (input, context) => {
|
|
109
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
110
|
+
const headers = {};
|
|
111
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}";
|
|
112
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
113
|
+
let body;
|
|
114
|
+
return new __HttpRequest({
|
|
115
|
+
protocol,
|
|
116
|
+
hostname,
|
|
117
|
+
port,
|
|
118
|
+
method: "GET",
|
|
119
|
+
headers,
|
|
120
|
+
path: resolvedPath,
|
|
121
|
+
body,
|
|
301
122
|
});
|
|
302
|
-
}
|
|
303
|
-
export
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
313
|
-
query = map({
|
|
314
|
-
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
315
|
-
});
|
|
316
|
-
return [2, new __HttpRequest({
|
|
317
|
-
protocol: protocol,
|
|
318
|
-
hostname: hostname,
|
|
319
|
-
port: port,
|
|
320
|
-
method: "DELETE",
|
|
321
|
-
headers: headers,
|
|
322
|
-
path: resolvedPath,
|
|
323
|
-
query: query,
|
|
324
|
-
body: body,
|
|
325
|
-
})];
|
|
326
|
-
}
|
|
123
|
+
};
|
|
124
|
+
export const serializeAws_restJson1ListDataIntegrationAssociationsCommand = async (input, context) => {
|
|
125
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
126
|
+
const headers = {};
|
|
127
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
128
|
+
"/dataIntegrations/{DataIntegrationIdentifier}/associations";
|
|
129
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
|
|
130
|
+
const query = map({
|
|
131
|
+
nextToken: [, input.NextToken],
|
|
132
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
327
133
|
});
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
};
|
|
339
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dataIntegrations/{Identifier}";
|
|
340
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", function () { return input.Identifier; }, "{Identifier}", false);
|
|
341
|
-
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })));
|
|
342
|
-
return [2, new __HttpRequest({
|
|
343
|
-
protocol: protocol,
|
|
344
|
-
hostname: hostname,
|
|
345
|
-
port: port,
|
|
346
|
-
method: "PATCH",
|
|
347
|
-
headers: headers,
|
|
348
|
-
path: resolvedPath,
|
|
349
|
-
body: body,
|
|
350
|
-
})];
|
|
351
|
-
}
|
|
134
|
+
let body;
|
|
135
|
+
return new __HttpRequest({
|
|
136
|
+
protocol,
|
|
137
|
+
hostname,
|
|
138
|
+
port,
|
|
139
|
+
method: "GET",
|
|
140
|
+
headers,
|
|
141
|
+
path: resolvedPath,
|
|
142
|
+
query,
|
|
143
|
+
body,
|
|
352
144
|
});
|
|
353
|
-
}
|
|
354
|
-
export
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
headers = {
|
|
362
|
-
"content-type": "application/json",
|
|
363
|
-
};
|
|
364
|
-
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/eventIntegrations/{Name}";
|
|
365
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "Name", function () { return input.Name; }, "{Name}", false);
|
|
366
|
-
body = JSON.stringify(__assign({}, (input.Description != null && { Description: input.Description })));
|
|
367
|
-
return [2, new __HttpRequest({
|
|
368
|
-
protocol: protocol,
|
|
369
|
-
hostname: hostname,
|
|
370
|
-
port: port,
|
|
371
|
-
method: "PATCH",
|
|
372
|
-
headers: headers,
|
|
373
|
-
path: resolvedPath,
|
|
374
|
-
body: body,
|
|
375
|
-
})];
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
}); };
|
|
379
|
-
export var deserializeAws_restJson1CreateDataIntegrationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
380
|
-
var contents, data, _a, _b;
|
|
381
|
-
return __generator(this, function (_c) {
|
|
382
|
-
switch (_c.label) {
|
|
383
|
-
case 0:
|
|
384
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
385
|
-
return [2, deserializeAws_restJson1CreateDataIntegrationCommandError(output, context)];
|
|
386
|
-
}
|
|
387
|
-
contents = map({
|
|
388
|
-
$metadata: deserializeMetadata(output),
|
|
389
|
-
});
|
|
390
|
-
_a = __expectNonNull;
|
|
391
|
-
_b = __expectObject;
|
|
392
|
-
return [4, parseBody(output.body, context)];
|
|
393
|
-
case 1:
|
|
394
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
395
|
-
if (data.Arn != null) {
|
|
396
|
-
contents.Arn = __expectString(data.Arn);
|
|
397
|
-
}
|
|
398
|
-
if (data.ClientToken != null) {
|
|
399
|
-
contents.ClientToken = __expectString(data.ClientToken);
|
|
400
|
-
}
|
|
401
|
-
if (data.Description != null) {
|
|
402
|
-
contents.Description = __expectString(data.Description);
|
|
403
|
-
}
|
|
404
|
-
if (data.Id != null) {
|
|
405
|
-
contents.Id = __expectString(data.Id);
|
|
406
|
-
}
|
|
407
|
-
if (data.KmsKey != null) {
|
|
408
|
-
contents.KmsKey = __expectString(data.KmsKey);
|
|
409
|
-
}
|
|
410
|
-
if (data.Name != null) {
|
|
411
|
-
contents.Name = __expectString(data.Name);
|
|
412
|
-
}
|
|
413
|
-
if (data.ScheduleConfiguration != null) {
|
|
414
|
-
contents.ScheduleConfiguration = deserializeAws_restJson1ScheduleConfiguration(data.ScheduleConfiguration, context);
|
|
415
|
-
}
|
|
416
|
-
if (data.SourceURI != null) {
|
|
417
|
-
contents.SourceURI = __expectString(data.SourceURI);
|
|
418
|
-
}
|
|
419
|
-
if (data.Tags != null) {
|
|
420
|
-
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
421
|
-
}
|
|
422
|
-
return [2, contents];
|
|
423
|
-
}
|
|
145
|
+
};
|
|
146
|
+
export const serializeAws_restJson1ListDataIntegrationsCommand = async (input, context) => {
|
|
147
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
148
|
+
const headers = {};
|
|
149
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations";
|
|
150
|
+
const query = map({
|
|
151
|
+
nextToken: [, input.NextToken],
|
|
152
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
424
153
|
});
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
case 1:
|
|
436
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
437
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
438
|
-
_b = errorCode;
|
|
439
|
-
switch (_b) {
|
|
440
|
-
case "AccessDeniedException": return [3, 2];
|
|
441
|
-
case "com.amazonaws.appintegrations#AccessDeniedException": return [3, 2];
|
|
442
|
-
case "DuplicateResourceException": return [3, 4];
|
|
443
|
-
case "com.amazonaws.appintegrations#DuplicateResourceException": return [3, 4];
|
|
444
|
-
case "InternalServiceError": return [3, 6];
|
|
445
|
-
case "com.amazonaws.appintegrations#InternalServiceError": return [3, 6];
|
|
446
|
-
case "InvalidRequestException": return [3, 8];
|
|
447
|
-
case "com.amazonaws.appintegrations#InvalidRequestException": return [3, 8];
|
|
448
|
-
case "ResourceQuotaExceededException": return [3, 10];
|
|
449
|
-
case "com.amazonaws.appintegrations#ResourceQuotaExceededException": return [3, 10];
|
|
450
|
-
case "ThrottlingException": return [3, 12];
|
|
451
|
-
case "com.amazonaws.appintegrations#ThrottlingException": return [3, 12];
|
|
452
|
-
}
|
|
453
|
-
return [3, 14];
|
|
454
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
455
|
-
case 3: throw _d.sent();
|
|
456
|
-
case 4: return [4, deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context)];
|
|
457
|
-
case 5: throw _d.sent();
|
|
458
|
-
case 6: return [4, deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context)];
|
|
459
|
-
case 7: throw _d.sent();
|
|
460
|
-
case 8: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
461
|
-
case 9: throw _d.sent();
|
|
462
|
-
case 10: return [4, deserializeAws_restJson1ResourceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
463
|
-
case 11: throw _d.sent();
|
|
464
|
-
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
465
|
-
case 13: throw _d.sent();
|
|
466
|
-
case 14:
|
|
467
|
-
parsedBody = parsedOutput.body;
|
|
468
|
-
throwDefaultError({
|
|
469
|
-
output: output,
|
|
470
|
-
parsedBody: parsedBody,
|
|
471
|
-
exceptionCtor: __BaseException,
|
|
472
|
-
errorCode: errorCode,
|
|
473
|
-
});
|
|
474
|
-
_d.label = 15;
|
|
475
|
-
case 15: return [2];
|
|
476
|
-
}
|
|
154
|
+
let body;
|
|
155
|
+
return new __HttpRequest({
|
|
156
|
+
protocol,
|
|
157
|
+
hostname,
|
|
158
|
+
port,
|
|
159
|
+
method: "GET",
|
|
160
|
+
headers,
|
|
161
|
+
path: resolvedPath,
|
|
162
|
+
query,
|
|
163
|
+
body,
|
|
477
164
|
});
|
|
478
|
-
}
|
|
479
|
-
export
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
$metadata: deserializeMetadata(output),
|
|
489
|
-
});
|
|
490
|
-
_a = __expectNonNull;
|
|
491
|
-
_b = __expectObject;
|
|
492
|
-
return [4, parseBody(output.body, context)];
|
|
493
|
-
case 1:
|
|
494
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
495
|
-
if (data.EventIntegrationArn != null) {
|
|
496
|
-
contents.EventIntegrationArn = __expectString(data.EventIntegrationArn);
|
|
497
|
-
}
|
|
498
|
-
return [2, contents];
|
|
499
|
-
}
|
|
165
|
+
};
|
|
166
|
+
export const serializeAws_restJson1ListEventIntegrationAssociationsCommand = async (input, context) => {
|
|
167
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
168
|
+
const headers = {};
|
|
169
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
170
|
+
"/eventIntegrations/{EventIntegrationName}/associations";
|
|
171
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EventIntegrationName", () => input.EventIntegrationName, "{EventIntegrationName}", false);
|
|
172
|
+
const query = map({
|
|
173
|
+
nextToken: [, input.NextToken],
|
|
174
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
500
175
|
});
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
case 1:
|
|
512
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
513
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
514
|
-
_b = errorCode;
|
|
515
|
-
switch (_b) {
|
|
516
|
-
case "AccessDeniedException": return [3, 2];
|
|
517
|
-
case "com.amazonaws.appintegrations#AccessDeniedException": return [3, 2];
|
|
518
|
-
case "DuplicateResourceException": return [3, 4];
|
|
519
|
-
case "com.amazonaws.appintegrations#DuplicateResourceException": return [3, 4];
|
|
520
|
-
case "InternalServiceError": return [3, 6];
|
|
521
|
-
case "com.amazonaws.appintegrations#InternalServiceError": return [3, 6];
|
|
522
|
-
case "InvalidRequestException": return [3, 8];
|
|
523
|
-
case "com.amazonaws.appintegrations#InvalidRequestException": return [3, 8];
|
|
524
|
-
case "ResourceQuotaExceededException": return [3, 10];
|
|
525
|
-
case "com.amazonaws.appintegrations#ResourceQuotaExceededException": return [3, 10];
|
|
526
|
-
case "ThrottlingException": return [3, 12];
|
|
527
|
-
case "com.amazonaws.appintegrations#ThrottlingException": return [3, 12];
|
|
528
|
-
}
|
|
529
|
-
return [3, 14];
|
|
530
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
531
|
-
case 3: throw _d.sent();
|
|
532
|
-
case 4: return [4, deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context)];
|
|
533
|
-
case 5: throw _d.sent();
|
|
534
|
-
case 6: return [4, deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context)];
|
|
535
|
-
case 7: throw _d.sent();
|
|
536
|
-
case 8: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
537
|
-
case 9: throw _d.sent();
|
|
538
|
-
case 10: return [4, deserializeAws_restJson1ResourceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
539
|
-
case 11: throw _d.sent();
|
|
540
|
-
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
541
|
-
case 13: throw _d.sent();
|
|
542
|
-
case 14:
|
|
543
|
-
parsedBody = parsedOutput.body;
|
|
544
|
-
throwDefaultError({
|
|
545
|
-
output: output,
|
|
546
|
-
parsedBody: parsedBody,
|
|
547
|
-
exceptionCtor: __BaseException,
|
|
548
|
-
errorCode: errorCode,
|
|
549
|
-
});
|
|
550
|
-
_d.label = 15;
|
|
551
|
-
case 15: return [2];
|
|
552
|
-
}
|
|
176
|
+
let body;
|
|
177
|
+
return new __HttpRequest({
|
|
178
|
+
protocol,
|
|
179
|
+
hostname,
|
|
180
|
+
port,
|
|
181
|
+
method: "GET",
|
|
182
|
+
headers,
|
|
183
|
+
path: resolvedPath,
|
|
184
|
+
query,
|
|
185
|
+
body,
|
|
553
186
|
});
|
|
554
|
-
}
|
|
555
|
-
export
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
}
|
|
563
|
-
contents = map({
|
|
564
|
-
$metadata: deserializeMetadata(output),
|
|
565
|
-
});
|
|
566
|
-
return [4, collectBody(output.body, context)];
|
|
567
|
-
case 1:
|
|
568
|
-
_a.sent();
|
|
569
|
-
return [2, contents];
|
|
570
|
-
}
|
|
187
|
+
};
|
|
188
|
+
export const serializeAws_restJson1ListEventIntegrationsCommand = async (input, context) => {
|
|
189
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
190
|
+
const headers = {};
|
|
191
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations";
|
|
192
|
+
const query = map({
|
|
193
|
+
nextToken: [, input.NextToken],
|
|
194
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
571
195
|
});
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
case 1:
|
|
583
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
584
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
585
|
-
_b = errorCode;
|
|
586
|
-
switch (_b) {
|
|
587
|
-
case "AccessDeniedException": return [3, 2];
|
|
588
|
-
case "com.amazonaws.appintegrations#AccessDeniedException": return [3, 2];
|
|
589
|
-
case "InternalServiceError": return [3, 4];
|
|
590
|
-
case "com.amazonaws.appintegrations#InternalServiceError": return [3, 4];
|
|
591
|
-
case "InvalidRequestException": return [3, 6];
|
|
592
|
-
case "com.amazonaws.appintegrations#InvalidRequestException": return [3, 6];
|
|
593
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
594
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException": return [3, 8];
|
|
595
|
-
case "ThrottlingException": return [3, 10];
|
|
596
|
-
case "com.amazonaws.appintegrations#ThrottlingException": return [3, 10];
|
|
597
|
-
}
|
|
598
|
-
return [3, 12];
|
|
599
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
600
|
-
case 3: throw _d.sent();
|
|
601
|
-
case 4: return [4, deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context)];
|
|
602
|
-
case 5: throw _d.sent();
|
|
603
|
-
case 6: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
604
|
-
case 7: throw _d.sent();
|
|
605
|
-
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
606
|
-
case 9: throw _d.sent();
|
|
607
|
-
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
608
|
-
case 11: throw _d.sent();
|
|
609
|
-
case 12:
|
|
610
|
-
parsedBody = parsedOutput.body;
|
|
611
|
-
throwDefaultError({
|
|
612
|
-
output: output,
|
|
613
|
-
parsedBody: parsedBody,
|
|
614
|
-
exceptionCtor: __BaseException,
|
|
615
|
-
errorCode: errorCode,
|
|
616
|
-
});
|
|
617
|
-
_d.label = 13;
|
|
618
|
-
case 13: return [2];
|
|
619
|
-
}
|
|
196
|
+
let body;
|
|
197
|
+
return new __HttpRequest({
|
|
198
|
+
protocol,
|
|
199
|
+
hostname,
|
|
200
|
+
port,
|
|
201
|
+
method: "GET",
|
|
202
|
+
headers,
|
|
203
|
+
path: resolvedPath,
|
|
204
|
+
query,
|
|
205
|
+
body,
|
|
620
206
|
});
|
|
621
|
-
}
|
|
622
|
-
export
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
return [2, contents];
|
|
637
|
-
}
|
|
207
|
+
};
|
|
208
|
+
export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
209
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
210
|
+
const headers = {};
|
|
211
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
212
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
213
|
+
let body;
|
|
214
|
+
return new __HttpRequest({
|
|
215
|
+
protocol,
|
|
216
|
+
hostname,
|
|
217
|
+
port,
|
|
218
|
+
method: "GET",
|
|
219
|
+
headers,
|
|
220
|
+
path: resolvedPath,
|
|
221
|
+
body,
|
|
638
222
|
});
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
651
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
652
|
-
_b = errorCode;
|
|
653
|
-
switch (_b) {
|
|
654
|
-
case "AccessDeniedException": return [3, 2];
|
|
655
|
-
case "com.amazonaws.appintegrations#AccessDeniedException": return [3, 2];
|
|
656
|
-
case "InternalServiceError": return [3, 4];
|
|
657
|
-
case "com.amazonaws.appintegrations#InternalServiceError": return [3, 4];
|
|
658
|
-
case "InvalidRequestException": return [3, 6];
|
|
659
|
-
case "com.amazonaws.appintegrations#InvalidRequestException": return [3, 6];
|
|
660
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
661
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException": return [3, 8];
|
|
662
|
-
case "ThrottlingException": return [3, 10];
|
|
663
|
-
case "com.amazonaws.appintegrations#ThrottlingException": return [3, 10];
|
|
664
|
-
}
|
|
665
|
-
return [3, 12];
|
|
666
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
667
|
-
case 3: throw _d.sent();
|
|
668
|
-
case 4: return [4, deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context)];
|
|
669
|
-
case 5: throw _d.sent();
|
|
670
|
-
case 6: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
671
|
-
case 7: throw _d.sent();
|
|
672
|
-
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
673
|
-
case 9: throw _d.sent();
|
|
674
|
-
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
675
|
-
case 11: throw _d.sent();
|
|
676
|
-
case 12:
|
|
677
|
-
parsedBody = parsedOutput.body;
|
|
678
|
-
throwDefaultError({
|
|
679
|
-
output: output,
|
|
680
|
-
parsedBody: parsedBody,
|
|
681
|
-
exceptionCtor: __BaseException,
|
|
682
|
-
errorCode: errorCode,
|
|
683
|
-
});
|
|
684
|
-
_d.label = 13;
|
|
685
|
-
case 13: return [2];
|
|
686
|
-
}
|
|
223
|
+
};
|
|
224
|
+
export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
225
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
226
|
+
const headers = {
|
|
227
|
+
"content-type": "application/json",
|
|
228
|
+
};
|
|
229
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
230
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
231
|
+
let body;
|
|
232
|
+
body = JSON.stringify({
|
|
233
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
687
234
|
});
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
}
|
|
697
|
-
contents = map({
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
});
|
|
700
|
-
_a = __expectNonNull;
|
|
701
|
-
_b = __expectObject;
|
|
702
|
-
return [4, parseBody(output.body, context)];
|
|
703
|
-
case 1:
|
|
704
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
705
|
-
if (data.Arn != null) {
|
|
706
|
-
contents.Arn = __expectString(data.Arn);
|
|
707
|
-
}
|
|
708
|
-
if (data.Description != null) {
|
|
709
|
-
contents.Description = __expectString(data.Description);
|
|
710
|
-
}
|
|
711
|
-
if (data.Id != null) {
|
|
712
|
-
contents.Id = __expectString(data.Id);
|
|
713
|
-
}
|
|
714
|
-
if (data.KmsKey != null) {
|
|
715
|
-
contents.KmsKey = __expectString(data.KmsKey);
|
|
716
|
-
}
|
|
717
|
-
if (data.Name != null) {
|
|
718
|
-
contents.Name = __expectString(data.Name);
|
|
719
|
-
}
|
|
720
|
-
if (data.ScheduleConfiguration != null) {
|
|
721
|
-
contents.ScheduleConfiguration = deserializeAws_restJson1ScheduleConfiguration(data.ScheduleConfiguration, context);
|
|
722
|
-
}
|
|
723
|
-
if (data.SourceURI != null) {
|
|
724
|
-
contents.SourceURI = __expectString(data.SourceURI);
|
|
725
|
-
}
|
|
726
|
-
if (data.Tags != null) {
|
|
727
|
-
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
728
|
-
}
|
|
729
|
-
return [2, contents];
|
|
730
|
-
}
|
|
235
|
+
return new __HttpRequest({
|
|
236
|
+
protocol,
|
|
237
|
+
hostname,
|
|
238
|
+
port,
|
|
239
|
+
method: "POST",
|
|
240
|
+
headers,
|
|
241
|
+
path: resolvedPath,
|
|
242
|
+
body,
|
|
731
243
|
});
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
_c = {};
|
|
741
|
-
return [4, parseErrorBody(output.body, context)];
|
|
742
|
-
case 1:
|
|
743
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
744
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
|
-
_b = errorCode;
|
|
746
|
-
switch (_b) {
|
|
747
|
-
case "AccessDeniedException": return [3, 2];
|
|
748
|
-
case "com.amazonaws.appintegrations#AccessDeniedException": return [3, 2];
|
|
749
|
-
case "InternalServiceError": return [3, 4];
|
|
750
|
-
case "com.amazonaws.appintegrations#InternalServiceError": return [3, 4];
|
|
751
|
-
case "InvalidRequestException": return [3, 6];
|
|
752
|
-
case "com.amazonaws.appintegrations#InvalidRequestException": return [3, 6];
|
|
753
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
754
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException": return [3, 8];
|
|
755
|
-
case "ThrottlingException": return [3, 10];
|
|
756
|
-
case "com.amazonaws.appintegrations#ThrottlingException": return [3, 10];
|
|
757
|
-
}
|
|
758
|
-
return [3, 12];
|
|
759
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
760
|
-
case 3: throw _d.sent();
|
|
761
|
-
case 4: return [4, deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context)];
|
|
762
|
-
case 5: throw _d.sent();
|
|
763
|
-
case 6: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
764
|
-
case 7: throw _d.sent();
|
|
765
|
-
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
766
|
-
case 9: throw _d.sent();
|
|
767
|
-
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
768
|
-
case 11: throw _d.sent();
|
|
769
|
-
case 12:
|
|
770
|
-
parsedBody = parsedOutput.body;
|
|
771
|
-
throwDefaultError({
|
|
772
|
-
output: output,
|
|
773
|
-
parsedBody: parsedBody,
|
|
774
|
-
exceptionCtor: __BaseException,
|
|
775
|
-
errorCode: errorCode,
|
|
776
|
-
});
|
|
777
|
-
_d.label = 13;
|
|
778
|
-
case 13: return [2];
|
|
779
|
-
}
|
|
244
|
+
};
|
|
245
|
+
export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
246
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
247
|
+
const headers = {};
|
|
248
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
249
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
250
|
+
const query = map({
|
|
251
|
+
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
|
|
780
252
|
});
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
$metadata: deserializeMetadata(output),
|
|
792
|
-
});
|
|
793
|
-
_a = __expectNonNull;
|
|
794
|
-
_b = __expectObject;
|
|
795
|
-
return [4, parseBody(output.body, context)];
|
|
796
|
-
case 1:
|
|
797
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
798
|
-
if (data.Description != null) {
|
|
799
|
-
contents.Description = __expectString(data.Description);
|
|
800
|
-
}
|
|
801
|
-
if (data.EventBridgeBus != null) {
|
|
802
|
-
contents.EventBridgeBus = __expectString(data.EventBridgeBus);
|
|
803
|
-
}
|
|
804
|
-
if (data.EventFilter != null) {
|
|
805
|
-
contents.EventFilter = deserializeAws_restJson1EventFilter(data.EventFilter, context);
|
|
806
|
-
}
|
|
807
|
-
if (data.EventIntegrationArn != null) {
|
|
808
|
-
contents.EventIntegrationArn = __expectString(data.EventIntegrationArn);
|
|
809
|
-
}
|
|
810
|
-
if (data.Name != null) {
|
|
811
|
-
contents.Name = __expectString(data.Name);
|
|
812
|
-
}
|
|
813
|
-
if (data.Tags != null) {
|
|
814
|
-
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
815
|
-
}
|
|
816
|
-
return [2, contents];
|
|
817
|
-
}
|
|
253
|
+
let body;
|
|
254
|
+
return new __HttpRequest({
|
|
255
|
+
protocol,
|
|
256
|
+
hostname,
|
|
257
|
+
port,
|
|
258
|
+
method: "DELETE",
|
|
259
|
+
headers,
|
|
260
|
+
path: resolvedPath,
|
|
261
|
+
query,
|
|
262
|
+
body,
|
|
818
263
|
});
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
832
|
-
_b = errorCode;
|
|
833
|
-
switch (_b) {
|
|
834
|
-
case "AccessDeniedException": return [3, 2];
|
|
835
|
-
case "com.amazonaws.appintegrations#AccessDeniedException": return [3, 2];
|
|
836
|
-
case "InternalServiceError": return [3, 4];
|
|
837
|
-
case "com.amazonaws.appintegrations#InternalServiceError": return [3, 4];
|
|
838
|
-
case "InvalidRequestException": return [3, 6];
|
|
839
|
-
case "com.amazonaws.appintegrations#InvalidRequestException": return [3, 6];
|
|
840
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
841
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException": return [3, 8];
|
|
842
|
-
case "ThrottlingException": return [3, 10];
|
|
843
|
-
case "com.amazonaws.appintegrations#ThrottlingException": return [3, 10];
|
|
844
|
-
}
|
|
845
|
-
return [3, 12];
|
|
846
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
847
|
-
case 3: throw _d.sent();
|
|
848
|
-
case 4: return [4, deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context)];
|
|
849
|
-
case 5: throw _d.sent();
|
|
850
|
-
case 6: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
851
|
-
case 7: throw _d.sent();
|
|
852
|
-
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
853
|
-
case 9: throw _d.sent();
|
|
854
|
-
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
855
|
-
case 11: throw _d.sent();
|
|
856
|
-
case 12:
|
|
857
|
-
parsedBody = parsedOutput.body;
|
|
858
|
-
throwDefaultError({
|
|
859
|
-
output: output,
|
|
860
|
-
parsedBody: parsedBody,
|
|
861
|
-
exceptionCtor: __BaseException,
|
|
862
|
-
errorCode: errorCode,
|
|
863
|
-
});
|
|
864
|
-
_d.label = 13;
|
|
865
|
-
case 13: return [2];
|
|
866
|
-
}
|
|
264
|
+
};
|
|
265
|
+
export const serializeAws_restJson1UpdateDataIntegrationCommand = async (input, context) => {
|
|
266
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
267
|
+
const headers = {
|
|
268
|
+
"content-type": "application/json",
|
|
269
|
+
};
|
|
270
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations/{Identifier}";
|
|
271
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
272
|
+
let body;
|
|
273
|
+
body = JSON.stringify({
|
|
274
|
+
...(input.Description != null && { Description: input.Description }),
|
|
275
|
+
...(input.Name != null && { Name: input.Name }),
|
|
867
276
|
});
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
}
|
|
877
|
-
contents = map({
|
|
878
|
-
$metadata: deserializeMetadata(output),
|
|
879
|
-
});
|
|
880
|
-
_a = __expectNonNull;
|
|
881
|
-
_b = __expectObject;
|
|
882
|
-
return [4, parseBody(output.body, context)];
|
|
883
|
-
case 1:
|
|
884
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
885
|
-
if (data.DataIntegrationAssociations != null) {
|
|
886
|
-
contents.DataIntegrationAssociations = deserializeAws_restJson1DataIntegrationAssociationsList(data.DataIntegrationAssociations, context);
|
|
887
|
-
}
|
|
888
|
-
if (data.NextToken != null) {
|
|
889
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
890
|
-
}
|
|
891
|
-
return [2, contents];
|
|
892
|
-
}
|
|
277
|
+
return new __HttpRequest({
|
|
278
|
+
protocol,
|
|
279
|
+
hostname,
|
|
280
|
+
port,
|
|
281
|
+
method: "PATCH",
|
|
282
|
+
headers,
|
|
283
|
+
path: resolvedPath,
|
|
284
|
+
body,
|
|
893
285
|
});
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
906
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
907
|
-
_b = errorCode;
|
|
908
|
-
switch (_b) {
|
|
909
|
-
case "AccessDeniedException": return [3, 2];
|
|
910
|
-
case "com.amazonaws.appintegrations#AccessDeniedException": return [3, 2];
|
|
911
|
-
case "InternalServiceError": return [3, 4];
|
|
912
|
-
case "com.amazonaws.appintegrations#InternalServiceError": return [3, 4];
|
|
913
|
-
case "InvalidRequestException": return [3, 6];
|
|
914
|
-
case "com.amazonaws.appintegrations#InvalidRequestException": return [3, 6];
|
|
915
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
916
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException": return [3, 8];
|
|
917
|
-
case "ThrottlingException": return [3, 10];
|
|
918
|
-
case "com.amazonaws.appintegrations#ThrottlingException": return [3, 10];
|
|
919
|
-
}
|
|
920
|
-
return [3, 12];
|
|
921
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
922
|
-
case 3: throw _d.sent();
|
|
923
|
-
case 4: return [4, deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context)];
|
|
924
|
-
case 5: throw _d.sent();
|
|
925
|
-
case 6: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
926
|
-
case 7: throw _d.sent();
|
|
927
|
-
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
928
|
-
case 9: throw _d.sent();
|
|
929
|
-
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
930
|
-
case 11: throw _d.sent();
|
|
931
|
-
case 12:
|
|
932
|
-
parsedBody = parsedOutput.body;
|
|
933
|
-
throwDefaultError({
|
|
934
|
-
output: output,
|
|
935
|
-
parsedBody: parsedBody,
|
|
936
|
-
exceptionCtor: __BaseException,
|
|
937
|
-
errorCode: errorCode,
|
|
938
|
-
});
|
|
939
|
-
_d.label = 13;
|
|
940
|
-
case 13: return [2];
|
|
941
|
-
}
|
|
286
|
+
};
|
|
287
|
+
export const serializeAws_restJson1UpdateEventIntegrationCommand = async (input, context) => {
|
|
288
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
289
|
+
const headers = {
|
|
290
|
+
"content-type": "application/json",
|
|
291
|
+
};
|
|
292
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}";
|
|
293
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
294
|
+
let body;
|
|
295
|
+
body = JSON.stringify({
|
|
296
|
+
...(input.Description != null && { Description: input.Description }),
|
|
942
297
|
});
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
}
|
|
952
|
-
contents = map({
|
|
953
|
-
$metadata: deserializeMetadata(output),
|
|
954
|
-
});
|
|
955
|
-
_a = __expectNonNull;
|
|
956
|
-
_b = __expectObject;
|
|
957
|
-
return [4, parseBody(output.body, context)];
|
|
958
|
-
case 1:
|
|
959
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
960
|
-
if (data.DataIntegrations != null) {
|
|
961
|
-
contents.DataIntegrations = deserializeAws_restJson1DataIntegrationsList(data.DataIntegrations, context);
|
|
962
|
-
}
|
|
963
|
-
if (data.NextToken != null) {
|
|
964
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
965
|
-
}
|
|
966
|
-
return [2, contents];
|
|
967
|
-
}
|
|
298
|
+
return new __HttpRequest({
|
|
299
|
+
protocol,
|
|
300
|
+
hostname,
|
|
301
|
+
port,
|
|
302
|
+
method: "PATCH",
|
|
303
|
+
headers,
|
|
304
|
+
path: resolvedPath,
|
|
305
|
+
body,
|
|
968
306
|
});
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
_a = [__assign({}, output)];
|
|
977
|
-
_c = {};
|
|
978
|
-
return [4, parseErrorBody(output.body, context)];
|
|
979
|
-
case 1:
|
|
980
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
981
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
982
|
-
_b = errorCode;
|
|
983
|
-
switch (_b) {
|
|
984
|
-
case "AccessDeniedException": return [3, 2];
|
|
985
|
-
case "com.amazonaws.appintegrations#AccessDeniedException": return [3, 2];
|
|
986
|
-
case "InternalServiceError": return [3, 4];
|
|
987
|
-
case "com.amazonaws.appintegrations#InternalServiceError": return [3, 4];
|
|
988
|
-
case "InvalidRequestException": return [3, 6];
|
|
989
|
-
case "com.amazonaws.appintegrations#InvalidRequestException": return [3, 6];
|
|
990
|
-
case "ThrottlingException": return [3, 8];
|
|
991
|
-
case "com.amazonaws.appintegrations#ThrottlingException": return [3, 8];
|
|
992
|
-
}
|
|
993
|
-
return [3, 10];
|
|
994
|
-
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
995
|
-
case 3: throw _d.sent();
|
|
996
|
-
case 4: return [4, deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context)];
|
|
997
|
-
case 5: throw _d.sent();
|
|
998
|
-
case 6: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
999
|
-
case 7: throw _d.sent();
|
|
1000
|
-
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1001
|
-
case 9: throw _d.sent();
|
|
1002
|
-
case 10:
|
|
1003
|
-
parsedBody = parsedOutput.body;
|
|
1004
|
-
throwDefaultError({
|
|
1005
|
-
output: output,
|
|
1006
|
-
parsedBody: parsedBody,
|
|
1007
|
-
exceptionCtor: __BaseException,
|
|
1008
|
-
errorCode: errorCode,
|
|
1009
|
-
});
|
|
1010
|
-
_d.label = 11;
|
|
1011
|
-
case 11: return [2];
|
|
1012
|
-
}
|
|
307
|
+
};
|
|
308
|
+
export const deserializeAws_restJson1CreateDataIntegrationCommand = async (output, context) => {
|
|
309
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
310
|
+
return deserializeAws_restJson1CreateDataIntegrationCommandError(output, context);
|
|
311
|
+
}
|
|
312
|
+
const contents = map({
|
|
313
|
+
$metadata: deserializeMetadata(output),
|
|
1013
314
|
});
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
315
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
316
|
+
if (data.Arn != null) {
|
|
317
|
+
contents.Arn = __expectString(data.Arn);
|
|
318
|
+
}
|
|
319
|
+
if (data.ClientToken != null) {
|
|
320
|
+
contents.ClientToken = __expectString(data.ClientToken);
|
|
321
|
+
}
|
|
322
|
+
if (data.Description != null) {
|
|
323
|
+
contents.Description = __expectString(data.Description);
|
|
324
|
+
}
|
|
325
|
+
if (data.Id != null) {
|
|
326
|
+
contents.Id = __expectString(data.Id);
|
|
327
|
+
}
|
|
328
|
+
if (data.KmsKey != null) {
|
|
329
|
+
contents.KmsKey = __expectString(data.KmsKey);
|
|
330
|
+
}
|
|
331
|
+
if (data.Name != null) {
|
|
332
|
+
contents.Name = __expectString(data.Name);
|
|
333
|
+
}
|
|
334
|
+
if (data.ScheduleConfiguration != null) {
|
|
335
|
+
contents.ScheduleConfiguration = deserializeAws_restJson1ScheduleConfiguration(data.ScheduleConfiguration, context);
|
|
336
|
+
}
|
|
337
|
+
if (data.SourceURI != null) {
|
|
338
|
+
contents.SourceURI = __expectString(data.SourceURI);
|
|
339
|
+
}
|
|
340
|
+
if (data.Tags != null) {
|
|
341
|
+
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
342
|
+
}
|
|
343
|
+
return contents;
|
|
344
|
+
};
|
|
345
|
+
const deserializeAws_restJson1CreateDataIntegrationCommandError = async (output, context) => {
|
|
346
|
+
const parsedOutput = {
|
|
347
|
+
...output,
|
|
348
|
+
body: await parseErrorBody(output.body, context),
|
|
349
|
+
};
|
|
350
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
351
|
+
switch (errorCode) {
|
|
352
|
+
case "AccessDeniedException":
|
|
353
|
+
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
354
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
355
|
+
case "DuplicateResourceException":
|
|
356
|
+
case "com.amazonaws.appintegrations#DuplicateResourceException":
|
|
357
|
+
throw await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context);
|
|
358
|
+
case "InternalServiceError":
|
|
359
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
360
|
+
throw await deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context);
|
|
361
|
+
case "InvalidRequestException":
|
|
362
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
363
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
364
|
+
case "ResourceQuotaExceededException":
|
|
365
|
+
case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
|
|
366
|
+
throw await deserializeAws_restJson1ResourceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
367
|
+
case "ThrottlingException":
|
|
368
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
369
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
370
|
+
default:
|
|
371
|
+
const parsedBody = parsedOutput.body;
|
|
372
|
+
throwDefaultError({
|
|
373
|
+
output,
|
|
374
|
+
parsedBody,
|
|
375
|
+
exceptionCtor: __BaseException,
|
|
376
|
+
errorCode,
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
export const deserializeAws_restJson1CreateEventIntegrationCommand = async (output, context) => {
|
|
381
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
382
|
+
return deserializeAws_restJson1CreateEventIntegrationCommandError(output, context);
|
|
383
|
+
}
|
|
384
|
+
const contents = map({
|
|
385
|
+
$metadata: deserializeMetadata(output),
|
|
1039
386
|
});
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
return
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
}
|
|
387
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
388
|
+
if (data.EventIntegrationArn != null) {
|
|
389
|
+
contents.EventIntegrationArn = __expectString(data.EventIntegrationArn);
|
|
390
|
+
}
|
|
391
|
+
return contents;
|
|
392
|
+
};
|
|
393
|
+
const deserializeAws_restJson1CreateEventIntegrationCommandError = async (output, context) => {
|
|
394
|
+
const parsedOutput = {
|
|
395
|
+
...output,
|
|
396
|
+
body: await parseErrorBody(output.body, context),
|
|
397
|
+
};
|
|
398
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
399
|
+
switch (errorCode) {
|
|
400
|
+
case "AccessDeniedException":
|
|
401
|
+
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
402
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
403
|
+
case "DuplicateResourceException":
|
|
404
|
+
case "com.amazonaws.appintegrations#DuplicateResourceException":
|
|
405
|
+
throw await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context);
|
|
406
|
+
case "InternalServiceError":
|
|
407
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
408
|
+
throw await deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context);
|
|
409
|
+
case "InvalidRequestException":
|
|
410
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
411
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
412
|
+
case "ResourceQuotaExceededException":
|
|
413
|
+
case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
|
|
414
|
+
throw await deserializeAws_restJson1ResourceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
415
|
+
case "ThrottlingException":
|
|
416
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
417
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
418
|
+
default:
|
|
419
|
+
const parsedBody = parsedOutput.body;
|
|
420
|
+
throwDefaultError({
|
|
421
|
+
output,
|
|
422
|
+
parsedBody,
|
|
423
|
+
exceptionCtor: __BaseException,
|
|
424
|
+
errorCode,
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
export const deserializeAws_restJson1DeleteDataIntegrationCommand = async (output, context) => {
|
|
429
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
430
|
+
return deserializeAws_restJson1DeleteDataIntegrationCommandError(output, context);
|
|
431
|
+
}
|
|
432
|
+
const contents = map({
|
|
433
|
+
$metadata: deserializeMetadata(output),
|
|
1088
434
|
});
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
435
|
+
await collectBody(output.body, context);
|
|
436
|
+
return contents;
|
|
437
|
+
};
|
|
438
|
+
const deserializeAws_restJson1DeleteDataIntegrationCommandError = async (output, context) => {
|
|
439
|
+
const parsedOutput = {
|
|
440
|
+
...output,
|
|
441
|
+
body: await parseErrorBody(output.body, context),
|
|
442
|
+
};
|
|
443
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
444
|
+
switch (errorCode) {
|
|
445
|
+
case "AccessDeniedException":
|
|
446
|
+
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
447
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
448
|
+
case "InternalServiceError":
|
|
449
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
450
|
+
throw await deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context);
|
|
451
|
+
case "InvalidRequestException":
|
|
452
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
453
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
454
|
+
case "ResourceNotFoundException":
|
|
455
|
+
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
456
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
457
|
+
case "ThrottlingException":
|
|
458
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
459
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
460
|
+
default:
|
|
461
|
+
const parsedBody = parsedOutput.body;
|
|
462
|
+
throwDefaultError({
|
|
463
|
+
output,
|
|
464
|
+
parsedBody,
|
|
465
|
+
exceptionCtor: __BaseException,
|
|
466
|
+
errorCode,
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
export const deserializeAws_restJson1DeleteEventIntegrationCommand = async (output, context) => {
|
|
471
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
472
|
+
return deserializeAws_restJson1DeleteEventIntegrationCommandError(output, context);
|
|
473
|
+
}
|
|
474
|
+
const contents = map({
|
|
475
|
+
$metadata: deserializeMetadata(output),
|
|
1114
476
|
});
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
_d.label = 11;
|
|
1157
|
-
case 11: return [2];
|
|
1158
|
-
}
|
|
477
|
+
await collectBody(output.body, context);
|
|
478
|
+
return contents;
|
|
479
|
+
};
|
|
480
|
+
const deserializeAws_restJson1DeleteEventIntegrationCommandError = async (output, context) => {
|
|
481
|
+
const parsedOutput = {
|
|
482
|
+
...output,
|
|
483
|
+
body: await parseErrorBody(output.body, context),
|
|
484
|
+
};
|
|
485
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
486
|
+
switch (errorCode) {
|
|
487
|
+
case "AccessDeniedException":
|
|
488
|
+
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
489
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
490
|
+
case "InternalServiceError":
|
|
491
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
492
|
+
throw await deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context);
|
|
493
|
+
case "InvalidRequestException":
|
|
494
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
495
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
496
|
+
case "ResourceNotFoundException":
|
|
497
|
+
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
498
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
499
|
+
case "ThrottlingException":
|
|
500
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
501
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
502
|
+
default:
|
|
503
|
+
const parsedBody = parsedOutput.body;
|
|
504
|
+
throwDefaultError({
|
|
505
|
+
output,
|
|
506
|
+
parsedBody,
|
|
507
|
+
exceptionCtor: __BaseException,
|
|
508
|
+
errorCode,
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
export const deserializeAws_restJson1GetDataIntegrationCommand = async (output, context) => {
|
|
513
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
514
|
+
return deserializeAws_restJson1GetDataIntegrationCommandError(output, context);
|
|
515
|
+
}
|
|
516
|
+
const contents = map({
|
|
517
|
+
$metadata: deserializeMetadata(output),
|
|
1159
518
|
});
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
519
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
520
|
+
if (data.Arn != null) {
|
|
521
|
+
contents.Arn = __expectString(data.Arn);
|
|
522
|
+
}
|
|
523
|
+
if (data.Description != null) {
|
|
524
|
+
contents.Description = __expectString(data.Description);
|
|
525
|
+
}
|
|
526
|
+
if (data.Id != null) {
|
|
527
|
+
contents.Id = __expectString(data.Id);
|
|
528
|
+
}
|
|
529
|
+
if (data.KmsKey != null) {
|
|
530
|
+
contents.KmsKey = __expectString(data.KmsKey);
|
|
531
|
+
}
|
|
532
|
+
if (data.Name != null) {
|
|
533
|
+
contents.Name = __expectString(data.Name);
|
|
534
|
+
}
|
|
535
|
+
if (data.ScheduleConfiguration != null) {
|
|
536
|
+
contents.ScheduleConfiguration = deserializeAws_restJson1ScheduleConfiguration(data.ScheduleConfiguration, context);
|
|
537
|
+
}
|
|
538
|
+
if (data.SourceURI != null) {
|
|
539
|
+
contents.SourceURI = __expectString(data.SourceURI);
|
|
540
|
+
}
|
|
541
|
+
if (data.Tags != null) {
|
|
542
|
+
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
543
|
+
}
|
|
544
|
+
return contents;
|
|
545
|
+
};
|
|
546
|
+
const deserializeAws_restJson1GetDataIntegrationCommandError = async (output, context) => {
|
|
547
|
+
const parsedOutput = {
|
|
548
|
+
...output,
|
|
549
|
+
body: await parseErrorBody(output.body, context),
|
|
550
|
+
};
|
|
551
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
552
|
+
switch (errorCode) {
|
|
553
|
+
case "AccessDeniedException":
|
|
554
|
+
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
555
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
556
|
+
case "InternalServiceError":
|
|
557
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
558
|
+
throw await deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context);
|
|
559
|
+
case "InvalidRequestException":
|
|
560
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
561
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
562
|
+
case "ResourceNotFoundException":
|
|
563
|
+
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
564
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
565
|
+
case "ThrottlingException":
|
|
566
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
567
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
568
|
+
default:
|
|
569
|
+
const parsedBody = parsedOutput.body;
|
|
570
|
+
throwDefaultError({
|
|
571
|
+
output,
|
|
572
|
+
parsedBody,
|
|
573
|
+
exceptionCtor: __BaseException,
|
|
574
|
+
errorCode,
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
};
|
|
578
|
+
export const deserializeAws_restJson1GetEventIntegrationCommand = async (output, context) => {
|
|
579
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
580
|
+
return deserializeAws_restJson1GetEventIntegrationCommandError(output, context);
|
|
581
|
+
}
|
|
582
|
+
const contents = map({
|
|
583
|
+
$metadata: deserializeMetadata(output),
|
|
1182
584
|
});
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
585
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
586
|
+
if (data.Description != null) {
|
|
587
|
+
contents.Description = __expectString(data.Description);
|
|
588
|
+
}
|
|
589
|
+
if (data.EventBridgeBus != null) {
|
|
590
|
+
contents.EventBridgeBus = __expectString(data.EventBridgeBus);
|
|
591
|
+
}
|
|
592
|
+
if (data.EventFilter != null) {
|
|
593
|
+
contents.EventFilter = deserializeAws_restJson1EventFilter(data.EventFilter, context);
|
|
594
|
+
}
|
|
595
|
+
if (data.EventIntegrationArn != null) {
|
|
596
|
+
contents.EventIntegrationArn = __expectString(data.EventIntegrationArn);
|
|
597
|
+
}
|
|
598
|
+
if (data.Name != null) {
|
|
599
|
+
contents.Name = __expectString(data.Name);
|
|
600
|
+
}
|
|
601
|
+
if (data.Tags != null) {
|
|
602
|
+
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
603
|
+
}
|
|
604
|
+
return contents;
|
|
605
|
+
};
|
|
606
|
+
const deserializeAws_restJson1GetEventIntegrationCommandError = async (output, context) => {
|
|
607
|
+
const parsedOutput = {
|
|
608
|
+
...output,
|
|
609
|
+
body: await parseErrorBody(output.body, context),
|
|
610
|
+
};
|
|
611
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
|
+
switch (errorCode) {
|
|
613
|
+
case "AccessDeniedException":
|
|
614
|
+
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
615
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
616
|
+
case "InternalServiceError":
|
|
617
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
618
|
+
throw await deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context);
|
|
619
|
+
case "InvalidRequestException":
|
|
620
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
621
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
622
|
+
case "ResourceNotFoundException":
|
|
623
|
+
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
624
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
625
|
+
case "ThrottlingException":
|
|
626
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
627
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
628
|
+
default:
|
|
629
|
+
const parsedBody = parsedOutput.body;
|
|
630
|
+
throwDefaultError({
|
|
631
|
+
output,
|
|
632
|
+
parsedBody,
|
|
633
|
+
exceptionCtor: __BaseException,
|
|
634
|
+
errorCode,
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
};
|
|
638
|
+
export const deserializeAws_restJson1ListDataIntegrationAssociationsCommand = async (output, context) => {
|
|
639
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
640
|
+
return deserializeAws_restJson1ListDataIntegrationAssociationsCommandError(output, context);
|
|
641
|
+
}
|
|
642
|
+
const contents = map({
|
|
643
|
+
$metadata: deserializeMetadata(output),
|
|
1227
644
|
});
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
645
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
646
|
+
if (data.DataIntegrationAssociations != null) {
|
|
647
|
+
contents.DataIntegrationAssociations = deserializeAws_restJson1DataIntegrationAssociationsList(data.DataIntegrationAssociations, context);
|
|
648
|
+
}
|
|
649
|
+
if (data.NextToken != null) {
|
|
650
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
651
|
+
}
|
|
652
|
+
return contents;
|
|
653
|
+
};
|
|
654
|
+
const deserializeAws_restJson1ListDataIntegrationAssociationsCommandError = async (output, context) => {
|
|
655
|
+
const parsedOutput = {
|
|
656
|
+
...output,
|
|
657
|
+
body: await parseErrorBody(output.body, context),
|
|
658
|
+
};
|
|
659
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
660
|
+
switch (errorCode) {
|
|
661
|
+
case "AccessDeniedException":
|
|
662
|
+
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
663
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
664
|
+
case "InternalServiceError":
|
|
665
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
666
|
+
throw await deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context);
|
|
667
|
+
case "InvalidRequestException":
|
|
668
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
669
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
670
|
+
case "ResourceNotFoundException":
|
|
671
|
+
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
672
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
673
|
+
case "ThrottlingException":
|
|
674
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
675
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
676
|
+
default:
|
|
677
|
+
const parsedBody = parsedOutput.body;
|
|
678
|
+
throwDefaultError({
|
|
679
|
+
output,
|
|
680
|
+
parsedBody,
|
|
681
|
+
exceptionCtor: __BaseException,
|
|
682
|
+
errorCode,
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
export const deserializeAws_restJson1ListDataIntegrationsCommand = async (output, context) => {
|
|
687
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
688
|
+
return deserializeAws_restJson1ListDataIntegrationsCommandError(output, context);
|
|
689
|
+
}
|
|
690
|
+
const contents = map({
|
|
691
|
+
$metadata: deserializeMetadata(output),
|
|
1245
692
|
});
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
693
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
694
|
+
if (data.DataIntegrations != null) {
|
|
695
|
+
contents.DataIntegrations = deserializeAws_restJson1DataIntegrationsList(data.DataIntegrations, context);
|
|
696
|
+
}
|
|
697
|
+
if (data.NextToken != null) {
|
|
698
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
699
|
+
}
|
|
700
|
+
return contents;
|
|
701
|
+
};
|
|
702
|
+
const deserializeAws_restJson1ListDataIntegrationsCommandError = async (output, context) => {
|
|
703
|
+
const parsedOutput = {
|
|
704
|
+
...output,
|
|
705
|
+
body: await parseErrorBody(output.body, context),
|
|
706
|
+
};
|
|
707
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
708
|
+
switch (errorCode) {
|
|
709
|
+
case "AccessDeniedException":
|
|
710
|
+
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
711
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
712
|
+
case "InternalServiceError":
|
|
713
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
714
|
+
throw await deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context);
|
|
715
|
+
case "InvalidRequestException":
|
|
716
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
717
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
718
|
+
case "ThrottlingException":
|
|
719
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
720
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
721
|
+
default:
|
|
722
|
+
const parsedBody = parsedOutput.body;
|
|
723
|
+
throwDefaultError({
|
|
724
|
+
output,
|
|
725
|
+
parsedBody,
|
|
726
|
+
exceptionCtor: __BaseException,
|
|
727
|
+
errorCode,
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
export const deserializeAws_restJson1ListEventIntegrationAssociationsCommand = async (output, context) => {
|
|
732
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
733
|
+
return deserializeAws_restJson1ListEventIntegrationAssociationsCommandError(output, context);
|
|
734
|
+
}
|
|
735
|
+
const contents = map({
|
|
736
|
+
$metadata: deserializeMetadata(output),
|
|
1290
737
|
});
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
738
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
739
|
+
if (data.EventIntegrationAssociations != null) {
|
|
740
|
+
contents.EventIntegrationAssociations = deserializeAws_restJson1EventIntegrationAssociationsList(data.EventIntegrationAssociations, context);
|
|
741
|
+
}
|
|
742
|
+
if (data.NextToken != null) {
|
|
743
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
744
|
+
}
|
|
745
|
+
return contents;
|
|
746
|
+
};
|
|
747
|
+
const deserializeAws_restJson1ListEventIntegrationAssociationsCommandError = async (output, context) => {
|
|
748
|
+
const parsedOutput = {
|
|
749
|
+
...output,
|
|
750
|
+
body: await parseErrorBody(output.body, context),
|
|
751
|
+
};
|
|
752
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
753
|
+
switch (errorCode) {
|
|
754
|
+
case "AccessDeniedException":
|
|
755
|
+
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
756
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
757
|
+
case "InternalServiceError":
|
|
758
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
759
|
+
throw await deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context);
|
|
760
|
+
case "InvalidRequestException":
|
|
761
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
762
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
763
|
+
case "ResourceNotFoundException":
|
|
764
|
+
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
765
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
766
|
+
case "ThrottlingException":
|
|
767
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
768
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
769
|
+
default:
|
|
770
|
+
const parsedBody = parsedOutput.body;
|
|
771
|
+
throwDefaultError({
|
|
772
|
+
output,
|
|
773
|
+
parsedBody,
|
|
774
|
+
exceptionCtor: __BaseException,
|
|
775
|
+
errorCode,
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
};
|
|
779
|
+
export const deserializeAws_restJson1ListEventIntegrationsCommand = async (output, context) => {
|
|
780
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
781
|
+
return deserializeAws_restJson1ListEventIntegrationsCommandError(output, context);
|
|
782
|
+
}
|
|
783
|
+
const contents = map({
|
|
784
|
+
$metadata: deserializeMetadata(output),
|
|
1308
785
|
});
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
786
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
787
|
+
if (data.EventIntegrations != null) {
|
|
788
|
+
contents.EventIntegrations = deserializeAws_restJson1EventIntegrationsList(data.EventIntegrations, context);
|
|
789
|
+
}
|
|
790
|
+
if (data.NextToken != null) {
|
|
791
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
792
|
+
}
|
|
793
|
+
return contents;
|
|
794
|
+
};
|
|
795
|
+
const deserializeAws_restJson1ListEventIntegrationsCommandError = async (output, context) => {
|
|
796
|
+
const parsedOutput = {
|
|
797
|
+
...output,
|
|
798
|
+
body: await parseErrorBody(output.body, context),
|
|
799
|
+
};
|
|
800
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
801
|
+
switch (errorCode) {
|
|
802
|
+
case "AccessDeniedException":
|
|
803
|
+
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
804
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
805
|
+
case "InternalServiceError":
|
|
806
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
807
|
+
throw await deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context);
|
|
808
|
+
case "InvalidRequestException":
|
|
809
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
810
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
811
|
+
case "ThrottlingException":
|
|
812
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
813
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
814
|
+
default:
|
|
815
|
+
const parsedBody = parsedOutput.body;
|
|
816
|
+
throwDefaultError({
|
|
817
|
+
output,
|
|
818
|
+
parsedBody,
|
|
819
|
+
exceptionCtor: __BaseException,
|
|
820
|
+
errorCode,
|
|
821
|
+
});
|
|
822
|
+
}
|
|
823
|
+
};
|
|
824
|
+
export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
825
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
826
|
+
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
827
|
+
}
|
|
828
|
+
const contents = map({
|
|
829
|
+
$metadata: deserializeMetadata(output),
|
|
1353
830
|
});
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
831
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
832
|
+
if (data.tags != null) {
|
|
833
|
+
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
834
|
+
}
|
|
835
|
+
return contents;
|
|
836
|
+
};
|
|
837
|
+
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
838
|
+
const parsedOutput = {
|
|
839
|
+
...output,
|
|
840
|
+
body: await parseErrorBody(output.body, context),
|
|
841
|
+
};
|
|
842
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
843
|
+
switch (errorCode) {
|
|
844
|
+
case "InternalServiceError":
|
|
845
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
846
|
+
throw await deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context);
|
|
847
|
+
case "InvalidRequestException":
|
|
848
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
849
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
850
|
+
case "ResourceNotFoundException":
|
|
851
|
+
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
852
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
853
|
+
case "ThrottlingException":
|
|
854
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
855
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
856
|
+
default:
|
|
857
|
+
const parsedBody = parsedOutput.body;
|
|
858
|
+
throwDefaultError({
|
|
859
|
+
output,
|
|
860
|
+
parsedBody,
|
|
861
|
+
exceptionCtor: __BaseException,
|
|
862
|
+
errorCode,
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
};
|
|
866
|
+
export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
867
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
868
|
+
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
869
|
+
}
|
|
870
|
+
const contents = map({
|
|
871
|
+
$metadata: deserializeMetadata(output),
|
|
1371
872
|
});
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
parsedBody = parsedOutput.body;
|
|
1411
|
-
throwDefaultError({
|
|
1412
|
-
output: output,
|
|
1413
|
-
parsedBody: parsedBody,
|
|
1414
|
-
exceptionCtor: __BaseException,
|
|
1415
|
-
errorCode: errorCode,
|
|
1416
|
-
});
|
|
1417
|
-
_d.label = 13;
|
|
1418
|
-
case 13: return [2];
|
|
1419
|
-
}
|
|
873
|
+
await collectBody(output.body, context);
|
|
874
|
+
return contents;
|
|
875
|
+
};
|
|
876
|
+
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
877
|
+
const parsedOutput = {
|
|
878
|
+
...output,
|
|
879
|
+
body: await parseErrorBody(output.body, context),
|
|
880
|
+
};
|
|
881
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
882
|
+
switch (errorCode) {
|
|
883
|
+
case "InternalServiceError":
|
|
884
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
885
|
+
throw await deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context);
|
|
886
|
+
case "InvalidRequestException":
|
|
887
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
888
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
889
|
+
case "ResourceNotFoundException":
|
|
890
|
+
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
891
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
892
|
+
case "ThrottlingException":
|
|
893
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
894
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
895
|
+
default:
|
|
896
|
+
const parsedBody = parsedOutput.body;
|
|
897
|
+
throwDefaultError({
|
|
898
|
+
output,
|
|
899
|
+
parsedBody,
|
|
900
|
+
exceptionCtor: __BaseException,
|
|
901
|
+
errorCode,
|
|
902
|
+
});
|
|
903
|
+
}
|
|
904
|
+
};
|
|
905
|
+
export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
906
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
907
|
+
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
908
|
+
}
|
|
909
|
+
const contents = map({
|
|
910
|
+
$metadata: deserializeMetadata(output),
|
|
1420
911
|
});
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
912
|
+
await collectBody(output.body, context);
|
|
913
|
+
return contents;
|
|
914
|
+
};
|
|
915
|
+
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
916
|
+
const parsedOutput = {
|
|
917
|
+
...output,
|
|
918
|
+
body: await parseErrorBody(output.body, context),
|
|
919
|
+
};
|
|
920
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
|
+
switch (errorCode) {
|
|
922
|
+
case "InternalServiceError":
|
|
923
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
924
|
+
throw await deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context);
|
|
925
|
+
case "InvalidRequestException":
|
|
926
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
927
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
928
|
+
case "ResourceNotFoundException":
|
|
929
|
+
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
930
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
931
|
+
case "ThrottlingException":
|
|
932
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
933
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
934
|
+
default:
|
|
935
|
+
const parsedBody = parsedOutput.body;
|
|
936
|
+
throwDefaultError({
|
|
937
|
+
output,
|
|
938
|
+
parsedBody,
|
|
939
|
+
exceptionCtor: __BaseException,
|
|
940
|
+
errorCode,
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
};
|
|
944
|
+
export const deserializeAws_restJson1UpdateDataIntegrationCommand = async (output, context) => {
|
|
945
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
946
|
+
return deserializeAws_restJson1UpdateDataIntegrationCommandError(output, context);
|
|
947
|
+
}
|
|
948
|
+
const contents = map({
|
|
949
|
+
$metadata: deserializeMetadata(output),
|
|
1438
950
|
});
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
parsedBody: parsedBody,
|
|
1481
|
-
exceptionCtor: __BaseException,
|
|
1482
|
-
errorCode: errorCode,
|
|
1483
|
-
});
|
|
1484
|
-
_d.label = 13;
|
|
1485
|
-
case 13: return [2];
|
|
1486
|
-
}
|
|
951
|
+
await collectBody(output.body, context);
|
|
952
|
+
return contents;
|
|
953
|
+
};
|
|
954
|
+
const deserializeAws_restJson1UpdateDataIntegrationCommandError = async (output, context) => {
|
|
955
|
+
const parsedOutput = {
|
|
956
|
+
...output,
|
|
957
|
+
body: await parseErrorBody(output.body, context),
|
|
958
|
+
};
|
|
959
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
|
+
switch (errorCode) {
|
|
961
|
+
case "AccessDeniedException":
|
|
962
|
+
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
963
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
964
|
+
case "InternalServiceError":
|
|
965
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
966
|
+
throw await deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context);
|
|
967
|
+
case "InvalidRequestException":
|
|
968
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
969
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
970
|
+
case "ResourceNotFoundException":
|
|
971
|
+
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
972
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
973
|
+
case "ThrottlingException":
|
|
974
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
975
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
976
|
+
default:
|
|
977
|
+
const parsedBody = parsedOutput.body;
|
|
978
|
+
throwDefaultError({
|
|
979
|
+
output,
|
|
980
|
+
parsedBody,
|
|
981
|
+
exceptionCtor: __BaseException,
|
|
982
|
+
errorCode,
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
};
|
|
986
|
+
export const deserializeAws_restJson1UpdateEventIntegrationCommand = async (output, context) => {
|
|
987
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
988
|
+
return deserializeAws_restJson1UpdateEventIntegrationCommandError(output, context);
|
|
989
|
+
}
|
|
990
|
+
const contents = map({
|
|
991
|
+
$metadata: deserializeMetadata(output),
|
|
1487
992
|
});
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
993
|
+
await collectBody(output.body, context);
|
|
994
|
+
return contents;
|
|
995
|
+
};
|
|
996
|
+
const deserializeAws_restJson1UpdateEventIntegrationCommandError = async (output, context) => {
|
|
997
|
+
const parsedOutput = {
|
|
998
|
+
...output,
|
|
999
|
+
body: await parseErrorBody(output.body, context),
|
|
1000
|
+
};
|
|
1001
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1002
|
+
switch (errorCode) {
|
|
1003
|
+
case "AccessDeniedException":
|
|
1004
|
+
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1005
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1006
|
+
case "InternalServiceError":
|
|
1007
|
+
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1008
|
+
throw await deserializeAws_restJson1InternalServiceErrorResponse(parsedOutput, context);
|
|
1009
|
+
case "InvalidRequestException":
|
|
1010
|
+
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1011
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1012
|
+
case "ResourceNotFoundException":
|
|
1013
|
+
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1014
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1015
|
+
case "ThrottlingException":
|
|
1016
|
+
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1017
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1018
|
+
default:
|
|
1019
|
+
const parsedBody = parsedOutput.body;
|
|
1020
|
+
throwDefaultError({
|
|
1021
|
+
output,
|
|
1022
|
+
parsedBody,
|
|
1023
|
+
exceptionCtor: __BaseException,
|
|
1024
|
+
errorCode,
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
};
|
|
1028
|
+
const map = __map;
|
|
1029
|
+
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1030
|
+
const contents = map({});
|
|
1031
|
+
const data = parsedOutput.body;
|
|
1032
|
+
if (data.Message != null) {
|
|
1033
|
+
contents.Message = __expectString(data.Message);
|
|
1034
|
+
}
|
|
1035
|
+
const exception = new AccessDeniedException({
|
|
1036
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1037
|
+
...contents,
|
|
1500
1038
|
});
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1039
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1040
|
+
};
|
|
1041
|
+
const deserializeAws_restJson1DuplicateResourceExceptionResponse = async (parsedOutput, context) => {
|
|
1042
|
+
const contents = map({});
|
|
1043
|
+
const data = parsedOutput.body;
|
|
1044
|
+
if (data.Message != null) {
|
|
1045
|
+
contents.Message = __expectString(data.Message);
|
|
1046
|
+
}
|
|
1047
|
+
const exception = new DuplicateResourceException({
|
|
1048
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1049
|
+
...contents,
|
|
1512
1050
|
});
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1051
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1052
|
+
};
|
|
1053
|
+
const deserializeAws_restJson1InternalServiceErrorResponse = async (parsedOutput, context) => {
|
|
1054
|
+
const contents = map({});
|
|
1055
|
+
const data = parsedOutput.body;
|
|
1056
|
+
if (data.Message != null) {
|
|
1057
|
+
contents.Message = __expectString(data.Message);
|
|
1058
|
+
}
|
|
1059
|
+
const exception = new InternalServiceError({
|
|
1060
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1061
|
+
...contents,
|
|
1524
1062
|
});
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1063
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1064
|
+
};
|
|
1065
|
+
const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1066
|
+
const contents = map({});
|
|
1067
|
+
const data = parsedOutput.body;
|
|
1068
|
+
if (data.Message != null) {
|
|
1069
|
+
contents.Message = __expectString(data.Message);
|
|
1070
|
+
}
|
|
1071
|
+
const exception = new InvalidRequestException({
|
|
1072
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1073
|
+
...contents,
|
|
1536
1074
|
});
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1075
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1076
|
+
};
|
|
1077
|
+
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1078
|
+
const contents = map({});
|
|
1079
|
+
const data = parsedOutput.body;
|
|
1080
|
+
if (data.Message != null) {
|
|
1081
|
+
contents.Message = __expectString(data.Message);
|
|
1082
|
+
}
|
|
1083
|
+
const exception = new ResourceNotFoundException({
|
|
1084
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1085
|
+
...contents,
|
|
1548
1086
|
});
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1087
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1088
|
+
};
|
|
1089
|
+
const deserializeAws_restJson1ResourceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1090
|
+
const contents = map({});
|
|
1091
|
+
const data = parsedOutput.body;
|
|
1092
|
+
if (data.Message != null) {
|
|
1093
|
+
contents.Message = __expectString(data.Message);
|
|
1094
|
+
}
|
|
1095
|
+
const exception = new ResourceQuotaExceededException({
|
|
1096
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1097
|
+
...contents,
|
|
1560
1098
|
});
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1099
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1100
|
+
};
|
|
1101
|
+
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
1102
|
+
const contents = map({});
|
|
1103
|
+
const data = parsedOutput.body;
|
|
1104
|
+
if (data.Message != null) {
|
|
1105
|
+
contents.Message = __expectString(data.Message);
|
|
1106
|
+
}
|
|
1107
|
+
const exception = new ThrottlingException({
|
|
1108
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1109
|
+
...contents,
|
|
1572
1110
|
});
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1111
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1112
|
+
};
|
|
1113
|
+
const serializeAws_restJson1EventFilter = (input, context) => {
|
|
1114
|
+
return {
|
|
1115
|
+
...(input.Source != null && { Source: input.Source }),
|
|
1116
|
+
};
|
|
1576
1117
|
};
|
|
1577
|
-
|
|
1578
|
-
return
|
|
1118
|
+
const serializeAws_restJson1ScheduleConfiguration = (input, context) => {
|
|
1119
|
+
return {
|
|
1120
|
+
...(input.FirstExecutionFrom != null && { FirstExecutionFrom: input.FirstExecutionFrom }),
|
|
1121
|
+
...(input.Object != null && { Object: input.Object }),
|
|
1122
|
+
...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
|
|
1123
|
+
};
|
|
1579
1124
|
};
|
|
1580
|
-
|
|
1581
|
-
return Object.entries(input).reduce(
|
|
1582
|
-
var _b;
|
|
1583
|
-
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1125
|
+
const serializeAws_restJson1TagMap = (input, context) => {
|
|
1126
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1584
1127
|
if (value === null) {
|
|
1585
1128
|
return acc;
|
|
1586
1129
|
}
|
|
1587
|
-
return
|
|
1130
|
+
return {
|
|
1131
|
+
...acc,
|
|
1132
|
+
[key]: value,
|
|
1133
|
+
};
|
|
1588
1134
|
}, {});
|
|
1589
1135
|
};
|
|
1590
|
-
|
|
1591
|
-
return Object.entries(output).reduce(
|
|
1592
|
-
var _b;
|
|
1593
|
-
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1136
|
+
const deserializeAws_restJson1ClientAssociationMetadata = (output, context) => {
|
|
1137
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1594
1138
|
if (value === null) {
|
|
1595
1139
|
return acc;
|
|
1596
1140
|
}
|
|
1597
|
-
return
|
|
1141
|
+
return {
|
|
1142
|
+
...acc,
|
|
1143
|
+
[key]: __expectString(value),
|
|
1144
|
+
};
|
|
1598
1145
|
}, {});
|
|
1599
1146
|
};
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
.filter(
|
|
1603
|
-
.map(
|
|
1147
|
+
const deserializeAws_restJson1DataIntegrationAssociationsList = (output, context) => {
|
|
1148
|
+
const retVal = (output || [])
|
|
1149
|
+
.filter((e) => e != null)
|
|
1150
|
+
.map((entry) => {
|
|
1604
1151
|
if (entry === null) {
|
|
1605
1152
|
return null;
|
|
1606
1153
|
}
|
|
@@ -1608,17 +1155,17 @@ var deserializeAws_restJson1DataIntegrationAssociationsList = function (output,
|
|
|
1608
1155
|
});
|
|
1609
1156
|
return retVal;
|
|
1610
1157
|
};
|
|
1611
|
-
|
|
1158
|
+
const deserializeAws_restJson1DataIntegrationAssociationSummary = (output, context) => {
|
|
1612
1159
|
return {
|
|
1613
1160
|
ClientId: __expectString(output.ClientId),
|
|
1614
1161
|
DataIntegrationArn: __expectString(output.DataIntegrationArn),
|
|
1615
1162
|
DataIntegrationAssociationArn: __expectString(output.DataIntegrationAssociationArn),
|
|
1616
1163
|
};
|
|
1617
1164
|
};
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
.filter(
|
|
1621
|
-
.map(
|
|
1165
|
+
const deserializeAws_restJson1DataIntegrationsList = (output, context) => {
|
|
1166
|
+
const retVal = (output || [])
|
|
1167
|
+
.filter((e) => e != null)
|
|
1168
|
+
.map((entry) => {
|
|
1622
1169
|
if (entry === null) {
|
|
1623
1170
|
return null;
|
|
1624
1171
|
}
|
|
@@ -1626,19 +1173,19 @@ var deserializeAws_restJson1DataIntegrationsList = function (output, context) {
|
|
|
1626
1173
|
});
|
|
1627
1174
|
return retVal;
|
|
1628
1175
|
};
|
|
1629
|
-
|
|
1176
|
+
const deserializeAws_restJson1DataIntegrationSummary = (output, context) => {
|
|
1630
1177
|
return {
|
|
1631
1178
|
Arn: __expectString(output.Arn),
|
|
1632
1179
|
Name: __expectString(output.Name),
|
|
1633
1180
|
SourceURI: __expectString(output.SourceURI),
|
|
1634
1181
|
};
|
|
1635
1182
|
};
|
|
1636
|
-
|
|
1183
|
+
const deserializeAws_restJson1EventFilter = (output, context) => {
|
|
1637
1184
|
return {
|
|
1638
1185
|
Source: __expectString(output.Source),
|
|
1639
1186
|
};
|
|
1640
1187
|
};
|
|
1641
|
-
|
|
1188
|
+
const deserializeAws_restJson1EventIntegration = (output, context) => {
|
|
1642
1189
|
return {
|
|
1643
1190
|
Description: __expectString(output.Description),
|
|
1644
1191
|
EventBridgeBus: __expectString(output.EventBridgeBus),
|
|
@@ -1648,7 +1195,7 @@ var deserializeAws_restJson1EventIntegration = function (output, context) {
|
|
|
1648
1195
|
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
1649
1196
|
};
|
|
1650
1197
|
};
|
|
1651
|
-
|
|
1198
|
+
const deserializeAws_restJson1EventIntegrationAssociation = (output, context) => {
|
|
1652
1199
|
return {
|
|
1653
1200
|
ClientAssociationMetadata: output.ClientAssociationMetadata != null
|
|
1654
1201
|
? deserializeAws_restJson1ClientAssociationMetadata(output.ClientAssociationMetadata, context)
|
|
@@ -1660,10 +1207,10 @@ var deserializeAws_restJson1EventIntegrationAssociation = function (output, cont
|
|
|
1660
1207
|
EventIntegrationName: __expectString(output.EventIntegrationName),
|
|
1661
1208
|
};
|
|
1662
1209
|
};
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
.filter(
|
|
1666
|
-
.map(
|
|
1210
|
+
const deserializeAws_restJson1EventIntegrationAssociationsList = (output, context) => {
|
|
1211
|
+
const retVal = (output || [])
|
|
1212
|
+
.filter((e) => e != null)
|
|
1213
|
+
.map((entry) => {
|
|
1667
1214
|
if (entry === null) {
|
|
1668
1215
|
return null;
|
|
1669
1216
|
}
|
|
@@ -1671,10 +1218,10 @@ var deserializeAws_restJson1EventIntegrationAssociationsList = function (output,
|
|
|
1671
1218
|
});
|
|
1672
1219
|
return retVal;
|
|
1673
1220
|
};
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
.filter(
|
|
1677
|
-
.map(
|
|
1221
|
+
const deserializeAws_restJson1EventIntegrationsList = (output, context) => {
|
|
1222
|
+
const retVal = (output || [])
|
|
1223
|
+
.filter((e) => e != null)
|
|
1224
|
+
.map((entry) => {
|
|
1678
1225
|
if (entry === null) {
|
|
1679
1226
|
return null;
|
|
1680
1227
|
}
|
|
@@ -1682,74 +1229,57 @@ var deserializeAws_restJson1EventIntegrationsList = function (output, context) {
|
|
|
1682
1229
|
});
|
|
1683
1230
|
return retVal;
|
|
1684
1231
|
};
|
|
1685
|
-
|
|
1232
|
+
const deserializeAws_restJson1ScheduleConfiguration = (output, context) => {
|
|
1686
1233
|
return {
|
|
1687
1234
|
FirstExecutionFrom: __expectString(output.FirstExecutionFrom),
|
|
1688
1235
|
Object: __expectString(output.Object),
|
|
1689
1236
|
ScheduleExpression: __expectString(output.ScheduleExpression),
|
|
1690
1237
|
};
|
|
1691
1238
|
};
|
|
1692
|
-
|
|
1693
|
-
return Object.entries(output).reduce(
|
|
1694
|
-
var _b;
|
|
1695
|
-
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1239
|
+
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
1240
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1696
1241
|
if (value === null) {
|
|
1697
1242
|
return acc;
|
|
1698
1243
|
}
|
|
1699
|
-
return
|
|
1244
|
+
return {
|
|
1245
|
+
...acc,
|
|
1246
|
+
[key]: __expectString(value),
|
|
1247
|
+
};
|
|
1700
1248
|
}, {});
|
|
1701
1249
|
};
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
});
|
|
1710
|
-
};
|
|
1711
|
-
var collectBody = function (streamBody, context) {
|
|
1712
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1250
|
+
const deserializeMetadata = (output) => ({
|
|
1251
|
+
httpStatusCode: output.statusCode,
|
|
1252
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
1253
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1254
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1255
|
+
});
|
|
1256
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
1713
1257
|
if (streamBody instanceof Uint8Array) {
|
|
1714
1258
|
return Promise.resolve(streamBody);
|
|
1715
1259
|
}
|
|
1716
1260
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1717
1261
|
};
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
}
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
});
|
|
1262
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1263
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1264
|
+
value !== null &&
|
|
1265
|
+
value !== "" &&
|
|
1266
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1267
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1268
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1269
|
+
if (encoded.length) {
|
|
1270
|
+
return JSON.parse(encoded);
|
|
1271
|
+
}
|
|
1272
|
+
return {};
|
|
1273
|
+
});
|
|
1274
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1275
|
+
const value = await parseBody(errorBody, context);
|
|
1276
|
+
value.message = value.message ?? value.Message;
|
|
1277
|
+
return value;
|
|
1735
1278
|
};
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
switch (_b.label) {
|
|
1741
|
-
case 0: return [4, parseBody(errorBody, context)];
|
|
1742
|
-
case 1:
|
|
1743
|
-
value = _b.sent();
|
|
1744
|
-
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1745
|
-
return [2, value];
|
|
1746
|
-
}
|
|
1747
|
-
});
|
|
1748
|
-
}); };
|
|
1749
|
-
var loadRestJsonErrorCode = function (output, data) {
|
|
1750
|
-
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1751
|
-
var sanitizeErrorCode = function (rawValue) {
|
|
1752
|
-
var cleanValue = rawValue;
|
|
1279
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
1280
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1281
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
1282
|
+
let cleanValue = rawValue;
|
|
1753
1283
|
if (typeof cleanValue === "number") {
|
|
1754
1284
|
cleanValue = cleanValue.toString();
|
|
1755
1285
|
}
|
|
@@ -1764,7 +1294,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1764
1294
|
}
|
|
1765
1295
|
return cleanValue;
|
|
1766
1296
|
};
|
|
1767
|
-
|
|
1297
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1768
1298
|
if (headerKey !== undefined) {
|
|
1769
1299
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1770
1300
|
}
|