@aws-sdk/client-appintegrations 3.490.0 → 3.496.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/AppIntegrations.js +1 -53
- package/dist-cjs/AppIntegrationsClient.js +1 -43
- package/dist-cjs/commands/CreateApplicationCommand.js +1 -28
- package/dist-cjs/commands/CreateDataIntegrationCommand.js +1 -28
- package/dist-cjs/commands/CreateEventIntegrationCommand.js +1 -28
- package/dist-cjs/commands/DeleteApplicationCommand.js +1 -28
- package/dist-cjs/commands/DeleteDataIntegrationCommand.js +1 -28
- package/dist-cjs/commands/DeleteEventIntegrationCommand.js +1 -28
- package/dist-cjs/commands/GetApplicationCommand.js +1 -28
- package/dist-cjs/commands/GetDataIntegrationCommand.js +1 -28
- package/dist-cjs/commands/GetEventIntegrationCommand.js +1 -28
- package/dist-cjs/commands/ListApplicationAssociationsCommand.js +1 -28
- package/dist-cjs/commands/ListApplicationsCommand.js +1 -28
- package/dist-cjs/commands/ListDataIntegrationAssociationsCommand.js +1 -28
- package/dist-cjs/commands/ListDataIntegrationsCommand.js +1 -28
- package/dist-cjs/commands/ListEventIntegrationAssociationsCommand.js +1 -28
- package/dist-cjs/commands/ListEventIntegrationsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateApplicationCommand.js +1 -28
- package/dist-cjs/commands/UpdateDataIntegrationCommand.js +1 -28
- package/dist-cjs/commands/UpdateEventIntegrationCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -24
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2192 -11
- package/dist-cjs/models/AppIntegrationsServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -116
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListApplicationAssociationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListApplicationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDataIntegrationAssociationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDataIntegrationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListEventIntegrationAssociationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListEventIntegrationsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -10
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1457
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,1457 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateEventIntegrationCommand = exports.de_UpdateDataIntegrationCommand = exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEventIntegrationsCommand = exports.de_ListEventIntegrationAssociationsCommand = exports.de_ListDataIntegrationsCommand = exports.de_ListDataIntegrationAssociationsCommand = exports.de_ListApplicationsCommand = exports.de_ListApplicationAssociationsCommand = exports.de_GetEventIntegrationCommand = exports.de_GetDataIntegrationCommand = exports.de_GetApplicationCommand = exports.de_DeleteEventIntegrationCommand = exports.de_DeleteDataIntegrationCommand = exports.de_DeleteApplicationCommand = exports.de_CreateEventIntegrationCommand = exports.de_CreateDataIntegrationCommand = exports.de_CreateApplicationCommand = exports.se_UpdateEventIntegrationCommand = exports.se_UpdateDataIntegrationCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEventIntegrationsCommand = exports.se_ListEventIntegrationAssociationsCommand = exports.se_ListDataIntegrationsCommand = exports.se_ListDataIntegrationAssociationsCommand = exports.se_ListApplicationsCommand = exports.se_ListApplicationAssociationsCommand = exports.se_GetEventIntegrationCommand = exports.se_GetDataIntegrationCommand = exports.se_GetApplicationCommand = exports.se_DeleteEventIntegrationCommand = exports.se_DeleteDataIntegrationCommand = exports.se_DeleteApplicationCommand = exports.se_CreateEventIntegrationCommand = exports.se_CreateDataIntegrationCommand = exports.se_CreateApplicationCommand = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const uuid_1 = require("uuid");
|
|
7
|
-
const AppIntegrationsServiceException_1 = require("../models/AppIntegrationsServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_CreateApplicationCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {
|
|
12
|
-
"content-type": "application/json",
|
|
13
|
-
};
|
|
14
|
-
b.bp("/applications");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
-
ApplicationSourceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
18
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
19
|
-
Description: [],
|
|
20
|
-
Name: [],
|
|
21
|
-
Namespace: [],
|
|
22
|
-
Permissions: (_) => (0, smithy_client_1._json)(_),
|
|
23
|
-
Publications: (_) => (0, smithy_client_1._json)(_),
|
|
24
|
-
Subscriptions: (_) => (0, smithy_client_1._json)(_),
|
|
25
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
26
|
-
}));
|
|
27
|
-
b.m("POST").h(headers).b(body);
|
|
28
|
-
return b.build();
|
|
29
|
-
};
|
|
30
|
-
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
31
|
-
const se_CreateDataIntegrationCommand = async (input, context) => {
|
|
32
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
33
|
-
const headers = {
|
|
34
|
-
"content-type": "application/json",
|
|
35
|
-
};
|
|
36
|
-
b.bp("/dataIntegrations");
|
|
37
|
-
let body;
|
|
38
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
39
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
40
|
-
Description: [],
|
|
41
|
-
FileConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
42
|
-
KmsKey: [],
|
|
43
|
-
Name: [],
|
|
44
|
-
ObjectConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
45
|
-
ScheduleConfig: (_) => (0, smithy_client_1._json)(_),
|
|
46
|
-
SourceURI: [],
|
|
47
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
48
|
-
}));
|
|
49
|
-
b.m("POST").h(headers).b(body);
|
|
50
|
-
return b.build();
|
|
51
|
-
};
|
|
52
|
-
exports.se_CreateDataIntegrationCommand = se_CreateDataIntegrationCommand;
|
|
53
|
-
const se_CreateEventIntegrationCommand = async (input, context) => {
|
|
54
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
55
|
-
const headers = {
|
|
56
|
-
"content-type": "application/json",
|
|
57
|
-
};
|
|
58
|
-
b.bp("/eventIntegrations");
|
|
59
|
-
let body;
|
|
60
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
61
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
62
|
-
Description: [],
|
|
63
|
-
EventBridgeBus: [],
|
|
64
|
-
EventFilter: (_) => (0, smithy_client_1._json)(_),
|
|
65
|
-
Name: [],
|
|
66
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
67
|
-
}));
|
|
68
|
-
b.m("POST").h(headers).b(body);
|
|
69
|
-
return b.build();
|
|
70
|
-
};
|
|
71
|
-
exports.se_CreateEventIntegrationCommand = se_CreateEventIntegrationCommand;
|
|
72
|
-
const se_DeleteApplicationCommand = async (input, context) => {
|
|
73
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
74
|
-
const headers = {};
|
|
75
|
-
b.bp("/applications/{Arn}");
|
|
76
|
-
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
77
|
-
let body;
|
|
78
|
-
b.m("DELETE").h(headers).b(body);
|
|
79
|
-
return b.build();
|
|
80
|
-
};
|
|
81
|
-
exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
|
|
82
|
-
const se_DeleteDataIntegrationCommand = async (input, context) => {
|
|
83
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
84
|
-
const headers = {};
|
|
85
|
-
b.bp("/dataIntegrations/{DataIntegrationIdentifier}");
|
|
86
|
-
b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
|
|
87
|
-
let body;
|
|
88
|
-
b.m("DELETE").h(headers).b(body);
|
|
89
|
-
return b.build();
|
|
90
|
-
};
|
|
91
|
-
exports.se_DeleteDataIntegrationCommand = se_DeleteDataIntegrationCommand;
|
|
92
|
-
const se_DeleteEventIntegrationCommand = async (input, context) => {
|
|
93
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
94
|
-
const headers = {};
|
|
95
|
-
b.bp("/eventIntegrations/{Name}");
|
|
96
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
97
|
-
let body;
|
|
98
|
-
b.m("DELETE").h(headers).b(body);
|
|
99
|
-
return b.build();
|
|
100
|
-
};
|
|
101
|
-
exports.se_DeleteEventIntegrationCommand = se_DeleteEventIntegrationCommand;
|
|
102
|
-
const se_GetApplicationCommand = async (input, context) => {
|
|
103
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
104
|
-
const headers = {};
|
|
105
|
-
b.bp("/applications/{Arn}");
|
|
106
|
-
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
107
|
-
let body;
|
|
108
|
-
b.m("GET").h(headers).b(body);
|
|
109
|
-
return b.build();
|
|
110
|
-
};
|
|
111
|
-
exports.se_GetApplicationCommand = se_GetApplicationCommand;
|
|
112
|
-
const se_GetDataIntegrationCommand = async (input, context) => {
|
|
113
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
114
|
-
const headers = {};
|
|
115
|
-
b.bp("/dataIntegrations/{Identifier}");
|
|
116
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
117
|
-
let body;
|
|
118
|
-
b.m("GET").h(headers).b(body);
|
|
119
|
-
return b.build();
|
|
120
|
-
};
|
|
121
|
-
exports.se_GetDataIntegrationCommand = se_GetDataIntegrationCommand;
|
|
122
|
-
const se_GetEventIntegrationCommand = async (input, context) => {
|
|
123
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
124
|
-
const headers = {};
|
|
125
|
-
b.bp("/eventIntegrations/{Name}");
|
|
126
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
127
|
-
let body;
|
|
128
|
-
b.m("GET").h(headers).b(body);
|
|
129
|
-
return b.build();
|
|
130
|
-
};
|
|
131
|
-
exports.se_GetEventIntegrationCommand = se_GetEventIntegrationCommand;
|
|
132
|
-
const se_ListApplicationAssociationsCommand = async (input, context) => {
|
|
133
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
134
|
-
const headers = {};
|
|
135
|
-
b.bp("/applications/{ApplicationId}/associations");
|
|
136
|
-
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
137
|
-
const query = (0, smithy_client_1.map)({
|
|
138
|
-
[_nT]: [, input[_NT]],
|
|
139
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
140
|
-
});
|
|
141
|
-
let body;
|
|
142
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
143
|
-
return b.build();
|
|
144
|
-
};
|
|
145
|
-
exports.se_ListApplicationAssociationsCommand = se_ListApplicationAssociationsCommand;
|
|
146
|
-
const se_ListApplicationsCommand = async (input, context) => {
|
|
147
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
148
|
-
const headers = {};
|
|
149
|
-
b.bp("/applications");
|
|
150
|
-
const query = (0, smithy_client_1.map)({
|
|
151
|
-
[_nT]: [, input[_NT]],
|
|
152
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
153
|
-
});
|
|
154
|
-
let body;
|
|
155
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
156
|
-
return b.build();
|
|
157
|
-
};
|
|
158
|
-
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
159
|
-
const se_ListDataIntegrationAssociationsCommand = async (input, context) => {
|
|
160
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
161
|
-
const headers = {};
|
|
162
|
-
b.bp("/dataIntegrations/{DataIntegrationIdentifier}/associations");
|
|
163
|
-
b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
|
|
164
|
-
const query = (0, smithy_client_1.map)({
|
|
165
|
-
[_nT]: [, input[_NT]],
|
|
166
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
167
|
-
});
|
|
168
|
-
let body;
|
|
169
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
170
|
-
return b.build();
|
|
171
|
-
};
|
|
172
|
-
exports.se_ListDataIntegrationAssociationsCommand = se_ListDataIntegrationAssociationsCommand;
|
|
173
|
-
const se_ListDataIntegrationsCommand = async (input, context) => {
|
|
174
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
175
|
-
const headers = {};
|
|
176
|
-
b.bp("/dataIntegrations");
|
|
177
|
-
const query = (0, smithy_client_1.map)({
|
|
178
|
-
[_nT]: [, input[_NT]],
|
|
179
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
180
|
-
});
|
|
181
|
-
let body;
|
|
182
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
183
|
-
return b.build();
|
|
184
|
-
};
|
|
185
|
-
exports.se_ListDataIntegrationsCommand = se_ListDataIntegrationsCommand;
|
|
186
|
-
const se_ListEventIntegrationAssociationsCommand = async (input, context) => {
|
|
187
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
188
|
-
const headers = {};
|
|
189
|
-
b.bp("/eventIntegrations/{EventIntegrationName}/associations");
|
|
190
|
-
b.p("EventIntegrationName", () => input.EventIntegrationName, "{EventIntegrationName}", false);
|
|
191
|
-
const query = (0, smithy_client_1.map)({
|
|
192
|
-
[_nT]: [, input[_NT]],
|
|
193
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
194
|
-
});
|
|
195
|
-
let body;
|
|
196
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
197
|
-
return b.build();
|
|
198
|
-
};
|
|
199
|
-
exports.se_ListEventIntegrationAssociationsCommand = se_ListEventIntegrationAssociationsCommand;
|
|
200
|
-
const se_ListEventIntegrationsCommand = async (input, context) => {
|
|
201
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
202
|
-
const headers = {};
|
|
203
|
-
b.bp("/eventIntegrations");
|
|
204
|
-
const query = (0, smithy_client_1.map)({
|
|
205
|
-
[_nT]: [, input[_NT]],
|
|
206
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
207
|
-
});
|
|
208
|
-
let body;
|
|
209
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
210
|
-
return b.build();
|
|
211
|
-
};
|
|
212
|
-
exports.se_ListEventIntegrationsCommand = se_ListEventIntegrationsCommand;
|
|
213
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
214
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
215
|
-
const headers = {};
|
|
216
|
-
b.bp("/tags/{resourceArn}");
|
|
217
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
218
|
-
let body;
|
|
219
|
-
b.m("GET").h(headers).b(body);
|
|
220
|
-
return b.build();
|
|
221
|
-
};
|
|
222
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
223
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
224
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
225
|
-
const headers = {
|
|
226
|
-
"content-type": "application/json",
|
|
227
|
-
};
|
|
228
|
-
b.bp("/tags/{resourceArn}");
|
|
229
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
232
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
233
|
-
}));
|
|
234
|
-
b.m("POST").h(headers).b(body);
|
|
235
|
-
return b.build();
|
|
236
|
-
};
|
|
237
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
238
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
239
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
240
|
-
const headers = {};
|
|
241
|
-
b.bp("/tags/{resourceArn}");
|
|
242
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
243
|
-
const query = (0, smithy_client_1.map)({
|
|
244
|
-
[_tK]: [
|
|
245
|
-
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
246
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
247
|
-
],
|
|
248
|
-
});
|
|
249
|
-
let body;
|
|
250
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
251
|
-
return b.build();
|
|
252
|
-
};
|
|
253
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
254
|
-
const se_UpdateApplicationCommand = async (input, context) => {
|
|
255
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
256
|
-
const headers = {
|
|
257
|
-
"content-type": "application/json",
|
|
258
|
-
};
|
|
259
|
-
b.bp("/applications/{Arn}");
|
|
260
|
-
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
261
|
-
let body;
|
|
262
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
263
|
-
ApplicationSourceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
264
|
-
Description: [],
|
|
265
|
-
Name: [],
|
|
266
|
-
Permissions: (_) => (0, smithy_client_1._json)(_),
|
|
267
|
-
Publications: (_) => (0, smithy_client_1._json)(_),
|
|
268
|
-
Subscriptions: (_) => (0, smithy_client_1._json)(_),
|
|
269
|
-
}));
|
|
270
|
-
b.m("PATCH").h(headers).b(body);
|
|
271
|
-
return b.build();
|
|
272
|
-
};
|
|
273
|
-
exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
|
|
274
|
-
const se_UpdateDataIntegrationCommand = async (input, context) => {
|
|
275
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
276
|
-
const headers = {
|
|
277
|
-
"content-type": "application/json",
|
|
278
|
-
};
|
|
279
|
-
b.bp("/dataIntegrations/{Identifier}");
|
|
280
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
281
|
-
let body;
|
|
282
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
283
|
-
Description: [],
|
|
284
|
-
Name: [],
|
|
285
|
-
}));
|
|
286
|
-
b.m("PATCH").h(headers).b(body);
|
|
287
|
-
return b.build();
|
|
288
|
-
};
|
|
289
|
-
exports.se_UpdateDataIntegrationCommand = se_UpdateDataIntegrationCommand;
|
|
290
|
-
const se_UpdateEventIntegrationCommand = async (input, context) => {
|
|
291
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
292
|
-
const headers = {
|
|
293
|
-
"content-type": "application/json",
|
|
294
|
-
};
|
|
295
|
-
b.bp("/eventIntegrations/{Name}");
|
|
296
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
297
|
-
let body;
|
|
298
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
299
|
-
Description: [],
|
|
300
|
-
}));
|
|
301
|
-
b.m("PATCH").h(headers).b(body);
|
|
302
|
-
return b.build();
|
|
303
|
-
};
|
|
304
|
-
exports.se_UpdateEventIntegrationCommand = se_UpdateEventIntegrationCommand;
|
|
305
|
-
const de_CreateApplicationCommand = async (output, context) => {
|
|
306
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
307
|
-
return de_CreateApplicationCommandError(output, context);
|
|
308
|
-
}
|
|
309
|
-
const contents = (0, smithy_client_1.map)({
|
|
310
|
-
$metadata: deserializeMetadata(output),
|
|
311
|
-
});
|
|
312
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
313
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
314
|
-
Arn: smithy_client_1.expectString,
|
|
315
|
-
Id: smithy_client_1.expectString,
|
|
316
|
-
});
|
|
317
|
-
Object.assign(contents, doc);
|
|
318
|
-
return contents;
|
|
319
|
-
};
|
|
320
|
-
exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
|
|
321
|
-
const de_CreateApplicationCommandError = async (output, context) => {
|
|
322
|
-
const parsedOutput = {
|
|
323
|
-
...output,
|
|
324
|
-
body: await parseErrorBody(output.body, context),
|
|
325
|
-
};
|
|
326
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
327
|
-
switch (errorCode) {
|
|
328
|
-
case "AccessDeniedException":
|
|
329
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
330
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
331
|
-
case "DuplicateResourceException":
|
|
332
|
-
case "com.amazonaws.appintegrations#DuplicateResourceException":
|
|
333
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
334
|
-
case "InternalServiceError":
|
|
335
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
336
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
337
|
-
case "InvalidRequestException":
|
|
338
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
339
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
340
|
-
case "ResourceQuotaExceededException":
|
|
341
|
-
case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
|
|
342
|
-
throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
|
|
343
|
-
case "ThrottlingException":
|
|
344
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
345
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
346
|
-
case "UnsupportedOperationException":
|
|
347
|
-
case "com.amazonaws.appintegrations#UnsupportedOperationException":
|
|
348
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
349
|
-
default:
|
|
350
|
-
const parsedBody = parsedOutput.body;
|
|
351
|
-
return throwDefaultError({
|
|
352
|
-
output,
|
|
353
|
-
parsedBody,
|
|
354
|
-
errorCode,
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
const de_CreateDataIntegrationCommand = async (output, context) => {
|
|
359
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
360
|
-
return de_CreateDataIntegrationCommandError(output, context);
|
|
361
|
-
}
|
|
362
|
-
const contents = (0, smithy_client_1.map)({
|
|
363
|
-
$metadata: deserializeMetadata(output),
|
|
364
|
-
});
|
|
365
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
366
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
367
|
-
Arn: smithy_client_1.expectString,
|
|
368
|
-
ClientToken: smithy_client_1.expectString,
|
|
369
|
-
Description: smithy_client_1.expectString,
|
|
370
|
-
FileConfiguration: smithy_client_1._json,
|
|
371
|
-
Id: smithy_client_1.expectString,
|
|
372
|
-
KmsKey: smithy_client_1.expectString,
|
|
373
|
-
Name: smithy_client_1.expectString,
|
|
374
|
-
ObjectConfiguration: smithy_client_1._json,
|
|
375
|
-
ScheduleConfiguration: smithy_client_1._json,
|
|
376
|
-
SourceURI: smithy_client_1.expectString,
|
|
377
|
-
Tags: smithy_client_1._json,
|
|
378
|
-
});
|
|
379
|
-
Object.assign(contents, doc);
|
|
380
|
-
return contents;
|
|
381
|
-
};
|
|
382
|
-
exports.de_CreateDataIntegrationCommand = de_CreateDataIntegrationCommand;
|
|
383
|
-
const de_CreateDataIntegrationCommandError = async (output, context) => {
|
|
384
|
-
const parsedOutput = {
|
|
385
|
-
...output,
|
|
386
|
-
body: await parseErrorBody(output.body, context),
|
|
387
|
-
};
|
|
388
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
389
|
-
switch (errorCode) {
|
|
390
|
-
case "AccessDeniedException":
|
|
391
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
392
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
393
|
-
case "DuplicateResourceException":
|
|
394
|
-
case "com.amazonaws.appintegrations#DuplicateResourceException":
|
|
395
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
396
|
-
case "InternalServiceError":
|
|
397
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
398
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
399
|
-
case "InvalidRequestException":
|
|
400
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
401
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
402
|
-
case "ResourceQuotaExceededException":
|
|
403
|
-
case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
|
|
404
|
-
throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
|
|
405
|
-
case "ThrottlingException":
|
|
406
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
407
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
408
|
-
default:
|
|
409
|
-
const parsedBody = parsedOutput.body;
|
|
410
|
-
return throwDefaultError({
|
|
411
|
-
output,
|
|
412
|
-
parsedBody,
|
|
413
|
-
errorCode,
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
};
|
|
417
|
-
const de_CreateEventIntegrationCommand = async (output, context) => {
|
|
418
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
419
|
-
return de_CreateEventIntegrationCommandError(output, context);
|
|
420
|
-
}
|
|
421
|
-
const contents = (0, smithy_client_1.map)({
|
|
422
|
-
$metadata: deserializeMetadata(output),
|
|
423
|
-
});
|
|
424
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
425
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
426
|
-
EventIntegrationArn: smithy_client_1.expectString,
|
|
427
|
-
});
|
|
428
|
-
Object.assign(contents, doc);
|
|
429
|
-
return contents;
|
|
430
|
-
};
|
|
431
|
-
exports.de_CreateEventIntegrationCommand = de_CreateEventIntegrationCommand;
|
|
432
|
-
const de_CreateEventIntegrationCommandError = async (output, context) => {
|
|
433
|
-
const parsedOutput = {
|
|
434
|
-
...output,
|
|
435
|
-
body: await parseErrorBody(output.body, context),
|
|
436
|
-
};
|
|
437
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
438
|
-
switch (errorCode) {
|
|
439
|
-
case "AccessDeniedException":
|
|
440
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
441
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
442
|
-
case "DuplicateResourceException":
|
|
443
|
-
case "com.amazonaws.appintegrations#DuplicateResourceException":
|
|
444
|
-
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
445
|
-
case "InternalServiceError":
|
|
446
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
447
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
448
|
-
case "InvalidRequestException":
|
|
449
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
450
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
451
|
-
case "ResourceQuotaExceededException":
|
|
452
|
-
case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
|
|
453
|
-
throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
|
|
454
|
-
case "ThrottlingException":
|
|
455
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
456
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
457
|
-
default:
|
|
458
|
-
const parsedBody = parsedOutput.body;
|
|
459
|
-
return throwDefaultError({
|
|
460
|
-
output,
|
|
461
|
-
parsedBody,
|
|
462
|
-
errorCode,
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
};
|
|
466
|
-
const de_DeleteApplicationCommand = async (output, context) => {
|
|
467
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
468
|
-
return de_DeleteApplicationCommandError(output, context);
|
|
469
|
-
}
|
|
470
|
-
const contents = (0, smithy_client_1.map)({
|
|
471
|
-
$metadata: deserializeMetadata(output),
|
|
472
|
-
});
|
|
473
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
474
|
-
return contents;
|
|
475
|
-
};
|
|
476
|
-
exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
|
|
477
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
478
|
-
const parsedOutput = {
|
|
479
|
-
...output,
|
|
480
|
-
body: await parseErrorBody(output.body, context),
|
|
481
|
-
};
|
|
482
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
483
|
-
switch (errorCode) {
|
|
484
|
-
case "AccessDeniedException":
|
|
485
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
486
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
487
|
-
case "InternalServiceError":
|
|
488
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
489
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
490
|
-
case "InvalidRequestException":
|
|
491
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
492
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
493
|
-
case "ResourceNotFoundException":
|
|
494
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
495
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
496
|
-
case "ThrottlingException":
|
|
497
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
498
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
499
|
-
default:
|
|
500
|
-
const parsedBody = parsedOutput.body;
|
|
501
|
-
return throwDefaultError({
|
|
502
|
-
output,
|
|
503
|
-
parsedBody,
|
|
504
|
-
errorCode,
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
};
|
|
508
|
-
const de_DeleteDataIntegrationCommand = async (output, context) => {
|
|
509
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
510
|
-
return de_DeleteDataIntegrationCommandError(output, context);
|
|
511
|
-
}
|
|
512
|
-
const contents = (0, smithy_client_1.map)({
|
|
513
|
-
$metadata: deserializeMetadata(output),
|
|
514
|
-
});
|
|
515
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
516
|
-
return contents;
|
|
517
|
-
};
|
|
518
|
-
exports.de_DeleteDataIntegrationCommand = de_DeleteDataIntegrationCommand;
|
|
519
|
-
const de_DeleteDataIntegrationCommandError = async (output, context) => {
|
|
520
|
-
const parsedOutput = {
|
|
521
|
-
...output,
|
|
522
|
-
body: await parseErrorBody(output.body, context),
|
|
523
|
-
};
|
|
524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
525
|
-
switch (errorCode) {
|
|
526
|
-
case "AccessDeniedException":
|
|
527
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
528
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
529
|
-
case "InternalServiceError":
|
|
530
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
531
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
532
|
-
case "InvalidRequestException":
|
|
533
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
534
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
535
|
-
case "ResourceNotFoundException":
|
|
536
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
537
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
538
|
-
case "ThrottlingException":
|
|
539
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
540
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
541
|
-
default:
|
|
542
|
-
const parsedBody = parsedOutput.body;
|
|
543
|
-
return throwDefaultError({
|
|
544
|
-
output,
|
|
545
|
-
parsedBody,
|
|
546
|
-
errorCode,
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
};
|
|
550
|
-
const de_DeleteEventIntegrationCommand = async (output, context) => {
|
|
551
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
552
|
-
return de_DeleteEventIntegrationCommandError(output, context);
|
|
553
|
-
}
|
|
554
|
-
const contents = (0, smithy_client_1.map)({
|
|
555
|
-
$metadata: deserializeMetadata(output),
|
|
556
|
-
});
|
|
557
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
558
|
-
return contents;
|
|
559
|
-
};
|
|
560
|
-
exports.de_DeleteEventIntegrationCommand = de_DeleteEventIntegrationCommand;
|
|
561
|
-
const de_DeleteEventIntegrationCommandError = async (output, context) => {
|
|
562
|
-
const parsedOutput = {
|
|
563
|
-
...output,
|
|
564
|
-
body: await parseErrorBody(output.body, context),
|
|
565
|
-
};
|
|
566
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
567
|
-
switch (errorCode) {
|
|
568
|
-
case "AccessDeniedException":
|
|
569
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
570
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
571
|
-
case "InternalServiceError":
|
|
572
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
573
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
574
|
-
case "InvalidRequestException":
|
|
575
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
576
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
577
|
-
case "ResourceNotFoundException":
|
|
578
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
579
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
580
|
-
case "ThrottlingException":
|
|
581
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
582
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
583
|
-
default:
|
|
584
|
-
const parsedBody = parsedOutput.body;
|
|
585
|
-
return throwDefaultError({
|
|
586
|
-
output,
|
|
587
|
-
parsedBody,
|
|
588
|
-
errorCode,
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
|
-
const de_GetApplicationCommand = async (output, context) => {
|
|
593
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
594
|
-
return de_GetApplicationCommandError(output, context);
|
|
595
|
-
}
|
|
596
|
-
const contents = (0, smithy_client_1.map)({
|
|
597
|
-
$metadata: deserializeMetadata(output),
|
|
598
|
-
});
|
|
599
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
600
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
601
|
-
ApplicationSourceConfig: smithy_client_1._json,
|
|
602
|
-
Arn: smithy_client_1.expectString,
|
|
603
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
604
|
-
Description: smithy_client_1.expectString,
|
|
605
|
-
Id: smithy_client_1.expectString,
|
|
606
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
607
|
-
Name: smithy_client_1.expectString,
|
|
608
|
-
Namespace: smithy_client_1.expectString,
|
|
609
|
-
Permissions: smithy_client_1._json,
|
|
610
|
-
Publications: smithy_client_1._json,
|
|
611
|
-
Subscriptions: smithy_client_1._json,
|
|
612
|
-
Tags: smithy_client_1._json,
|
|
613
|
-
});
|
|
614
|
-
Object.assign(contents, doc);
|
|
615
|
-
return contents;
|
|
616
|
-
};
|
|
617
|
-
exports.de_GetApplicationCommand = de_GetApplicationCommand;
|
|
618
|
-
const de_GetApplicationCommandError = async (output, context) => {
|
|
619
|
-
const parsedOutput = {
|
|
620
|
-
...output,
|
|
621
|
-
body: await parseErrorBody(output.body, context),
|
|
622
|
-
};
|
|
623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
624
|
-
switch (errorCode) {
|
|
625
|
-
case "AccessDeniedException":
|
|
626
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
627
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
628
|
-
case "InternalServiceError":
|
|
629
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
630
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
631
|
-
case "InvalidRequestException":
|
|
632
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
633
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
634
|
-
case "ResourceNotFoundException":
|
|
635
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
636
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
637
|
-
case "ThrottlingException":
|
|
638
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
639
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
640
|
-
default:
|
|
641
|
-
const parsedBody = parsedOutput.body;
|
|
642
|
-
return throwDefaultError({
|
|
643
|
-
output,
|
|
644
|
-
parsedBody,
|
|
645
|
-
errorCode,
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
};
|
|
649
|
-
const de_GetDataIntegrationCommand = async (output, context) => {
|
|
650
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
651
|
-
return de_GetDataIntegrationCommandError(output, context);
|
|
652
|
-
}
|
|
653
|
-
const contents = (0, smithy_client_1.map)({
|
|
654
|
-
$metadata: deserializeMetadata(output),
|
|
655
|
-
});
|
|
656
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
657
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
658
|
-
Arn: smithy_client_1.expectString,
|
|
659
|
-
Description: smithy_client_1.expectString,
|
|
660
|
-
FileConfiguration: smithy_client_1._json,
|
|
661
|
-
Id: smithy_client_1.expectString,
|
|
662
|
-
KmsKey: smithy_client_1.expectString,
|
|
663
|
-
Name: smithy_client_1.expectString,
|
|
664
|
-
ObjectConfiguration: smithy_client_1._json,
|
|
665
|
-
ScheduleConfiguration: smithy_client_1._json,
|
|
666
|
-
SourceURI: smithy_client_1.expectString,
|
|
667
|
-
Tags: smithy_client_1._json,
|
|
668
|
-
});
|
|
669
|
-
Object.assign(contents, doc);
|
|
670
|
-
return contents;
|
|
671
|
-
};
|
|
672
|
-
exports.de_GetDataIntegrationCommand = de_GetDataIntegrationCommand;
|
|
673
|
-
const de_GetDataIntegrationCommandError = async (output, context) => {
|
|
674
|
-
const parsedOutput = {
|
|
675
|
-
...output,
|
|
676
|
-
body: await parseErrorBody(output.body, context),
|
|
677
|
-
};
|
|
678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
679
|
-
switch (errorCode) {
|
|
680
|
-
case "AccessDeniedException":
|
|
681
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
682
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
683
|
-
case "InternalServiceError":
|
|
684
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
685
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
686
|
-
case "InvalidRequestException":
|
|
687
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
688
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
689
|
-
case "ResourceNotFoundException":
|
|
690
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
691
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
692
|
-
case "ThrottlingException":
|
|
693
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
694
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
695
|
-
default:
|
|
696
|
-
const parsedBody = parsedOutput.body;
|
|
697
|
-
return throwDefaultError({
|
|
698
|
-
output,
|
|
699
|
-
parsedBody,
|
|
700
|
-
errorCode,
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
};
|
|
704
|
-
const de_GetEventIntegrationCommand = async (output, context) => {
|
|
705
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
706
|
-
return de_GetEventIntegrationCommandError(output, context);
|
|
707
|
-
}
|
|
708
|
-
const contents = (0, smithy_client_1.map)({
|
|
709
|
-
$metadata: deserializeMetadata(output),
|
|
710
|
-
});
|
|
711
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
712
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
713
|
-
Description: smithy_client_1.expectString,
|
|
714
|
-
EventBridgeBus: smithy_client_1.expectString,
|
|
715
|
-
EventFilter: smithy_client_1._json,
|
|
716
|
-
EventIntegrationArn: smithy_client_1.expectString,
|
|
717
|
-
Name: smithy_client_1.expectString,
|
|
718
|
-
Tags: smithy_client_1._json,
|
|
719
|
-
});
|
|
720
|
-
Object.assign(contents, doc);
|
|
721
|
-
return contents;
|
|
722
|
-
};
|
|
723
|
-
exports.de_GetEventIntegrationCommand = de_GetEventIntegrationCommand;
|
|
724
|
-
const de_GetEventIntegrationCommandError = async (output, context) => {
|
|
725
|
-
const parsedOutput = {
|
|
726
|
-
...output,
|
|
727
|
-
body: await parseErrorBody(output.body, context),
|
|
728
|
-
};
|
|
729
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
|
-
switch (errorCode) {
|
|
731
|
-
case "AccessDeniedException":
|
|
732
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
733
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
734
|
-
case "InternalServiceError":
|
|
735
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
736
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
737
|
-
case "InvalidRequestException":
|
|
738
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
739
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
740
|
-
case "ResourceNotFoundException":
|
|
741
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
742
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
743
|
-
case "ThrottlingException":
|
|
744
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
745
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
746
|
-
default:
|
|
747
|
-
const parsedBody = parsedOutput.body;
|
|
748
|
-
return throwDefaultError({
|
|
749
|
-
output,
|
|
750
|
-
parsedBody,
|
|
751
|
-
errorCode,
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
};
|
|
755
|
-
const de_ListApplicationAssociationsCommand = async (output, context) => {
|
|
756
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
757
|
-
return de_ListApplicationAssociationsCommandError(output, context);
|
|
758
|
-
}
|
|
759
|
-
const contents = (0, smithy_client_1.map)({
|
|
760
|
-
$metadata: deserializeMetadata(output),
|
|
761
|
-
});
|
|
762
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
763
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
764
|
-
ApplicationAssociations: smithy_client_1._json,
|
|
765
|
-
NextToken: smithy_client_1.expectString,
|
|
766
|
-
});
|
|
767
|
-
Object.assign(contents, doc);
|
|
768
|
-
return contents;
|
|
769
|
-
};
|
|
770
|
-
exports.de_ListApplicationAssociationsCommand = de_ListApplicationAssociationsCommand;
|
|
771
|
-
const de_ListApplicationAssociationsCommandError = async (output, context) => {
|
|
772
|
-
const parsedOutput = {
|
|
773
|
-
...output,
|
|
774
|
-
body: await parseErrorBody(output.body, context),
|
|
775
|
-
};
|
|
776
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
777
|
-
switch (errorCode) {
|
|
778
|
-
case "AccessDeniedException":
|
|
779
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
780
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
781
|
-
case "InternalServiceError":
|
|
782
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
783
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
784
|
-
case "InvalidRequestException":
|
|
785
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
786
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
787
|
-
case "ResourceNotFoundException":
|
|
788
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
789
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
790
|
-
case "ThrottlingException":
|
|
791
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
792
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
793
|
-
default:
|
|
794
|
-
const parsedBody = parsedOutput.body;
|
|
795
|
-
return throwDefaultError({
|
|
796
|
-
output,
|
|
797
|
-
parsedBody,
|
|
798
|
-
errorCode,
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
};
|
|
802
|
-
const de_ListApplicationsCommand = async (output, context) => {
|
|
803
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
804
|
-
return de_ListApplicationsCommandError(output, context);
|
|
805
|
-
}
|
|
806
|
-
const contents = (0, smithy_client_1.map)({
|
|
807
|
-
$metadata: deserializeMetadata(output),
|
|
808
|
-
});
|
|
809
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
810
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
811
|
-
Applications: (_) => de_ApplicationsList(_, context),
|
|
812
|
-
NextToken: smithy_client_1.expectString,
|
|
813
|
-
});
|
|
814
|
-
Object.assign(contents, doc);
|
|
815
|
-
return contents;
|
|
816
|
-
};
|
|
817
|
-
exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
|
|
818
|
-
const de_ListApplicationsCommandError = async (output, context) => {
|
|
819
|
-
const parsedOutput = {
|
|
820
|
-
...output,
|
|
821
|
-
body: await parseErrorBody(output.body, context),
|
|
822
|
-
};
|
|
823
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
|
-
switch (errorCode) {
|
|
825
|
-
case "AccessDeniedException":
|
|
826
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
827
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
828
|
-
case "InternalServiceError":
|
|
829
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
830
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
831
|
-
case "InvalidRequestException":
|
|
832
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
833
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
834
|
-
case "ThrottlingException":
|
|
835
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
836
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
837
|
-
default:
|
|
838
|
-
const parsedBody = parsedOutput.body;
|
|
839
|
-
return throwDefaultError({
|
|
840
|
-
output,
|
|
841
|
-
parsedBody,
|
|
842
|
-
errorCode,
|
|
843
|
-
});
|
|
844
|
-
}
|
|
845
|
-
};
|
|
846
|
-
const de_ListDataIntegrationAssociationsCommand = async (output, context) => {
|
|
847
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
848
|
-
return de_ListDataIntegrationAssociationsCommandError(output, context);
|
|
849
|
-
}
|
|
850
|
-
const contents = (0, smithy_client_1.map)({
|
|
851
|
-
$metadata: deserializeMetadata(output),
|
|
852
|
-
});
|
|
853
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
854
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
855
|
-
DataIntegrationAssociations: smithy_client_1._json,
|
|
856
|
-
NextToken: smithy_client_1.expectString,
|
|
857
|
-
});
|
|
858
|
-
Object.assign(contents, doc);
|
|
859
|
-
return contents;
|
|
860
|
-
};
|
|
861
|
-
exports.de_ListDataIntegrationAssociationsCommand = de_ListDataIntegrationAssociationsCommand;
|
|
862
|
-
const de_ListDataIntegrationAssociationsCommandError = async (output, context) => {
|
|
863
|
-
const parsedOutput = {
|
|
864
|
-
...output,
|
|
865
|
-
body: await parseErrorBody(output.body, context),
|
|
866
|
-
};
|
|
867
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
|
-
switch (errorCode) {
|
|
869
|
-
case "AccessDeniedException":
|
|
870
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
871
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
872
|
-
case "InternalServiceError":
|
|
873
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
874
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
875
|
-
case "InvalidRequestException":
|
|
876
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
877
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
878
|
-
case "ResourceNotFoundException":
|
|
879
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
880
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
881
|
-
case "ThrottlingException":
|
|
882
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
883
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
884
|
-
default:
|
|
885
|
-
const parsedBody = parsedOutput.body;
|
|
886
|
-
return throwDefaultError({
|
|
887
|
-
output,
|
|
888
|
-
parsedBody,
|
|
889
|
-
errorCode,
|
|
890
|
-
});
|
|
891
|
-
}
|
|
892
|
-
};
|
|
893
|
-
const de_ListDataIntegrationsCommand = async (output, context) => {
|
|
894
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
895
|
-
return de_ListDataIntegrationsCommandError(output, context);
|
|
896
|
-
}
|
|
897
|
-
const contents = (0, smithy_client_1.map)({
|
|
898
|
-
$metadata: deserializeMetadata(output),
|
|
899
|
-
});
|
|
900
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
901
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
902
|
-
DataIntegrations: smithy_client_1._json,
|
|
903
|
-
NextToken: smithy_client_1.expectString,
|
|
904
|
-
});
|
|
905
|
-
Object.assign(contents, doc);
|
|
906
|
-
return contents;
|
|
907
|
-
};
|
|
908
|
-
exports.de_ListDataIntegrationsCommand = de_ListDataIntegrationsCommand;
|
|
909
|
-
const de_ListDataIntegrationsCommandError = async (output, context) => {
|
|
910
|
-
const parsedOutput = {
|
|
911
|
-
...output,
|
|
912
|
-
body: await parseErrorBody(output.body, context),
|
|
913
|
-
};
|
|
914
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
915
|
-
switch (errorCode) {
|
|
916
|
-
case "AccessDeniedException":
|
|
917
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
918
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
919
|
-
case "InternalServiceError":
|
|
920
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
921
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
922
|
-
case "InvalidRequestException":
|
|
923
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
924
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
925
|
-
case "ThrottlingException":
|
|
926
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
927
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
928
|
-
default:
|
|
929
|
-
const parsedBody = parsedOutput.body;
|
|
930
|
-
return throwDefaultError({
|
|
931
|
-
output,
|
|
932
|
-
parsedBody,
|
|
933
|
-
errorCode,
|
|
934
|
-
});
|
|
935
|
-
}
|
|
936
|
-
};
|
|
937
|
-
const de_ListEventIntegrationAssociationsCommand = async (output, context) => {
|
|
938
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
939
|
-
return de_ListEventIntegrationAssociationsCommandError(output, context);
|
|
940
|
-
}
|
|
941
|
-
const contents = (0, smithy_client_1.map)({
|
|
942
|
-
$metadata: deserializeMetadata(output),
|
|
943
|
-
});
|
|
944
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
945
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
946
|
-
EventIntegrationAssociations: smithy_client_1._json,
|
|
947
|
-
NextToken: smithy_client_1.expectString,
|
|
948
|
-
});
|
|
949
|
-
Object.assign(contents, doc);
|
|
950
|
-
return contents;
|
|
951
|
-
};
|
|
952
|
-
exports.de_ListEventIntegrationAssociationsCommand = de_ListEventIntegrationAssociationsCommand;
|
|
953
|
-
const de_ListEventIntegrationAssociationsCommandError = async (output, context) => {
|
|
954
|
-
const parsedOutput = {
|
|
955
|
-
...output,
|
|
956
|
-
body: await parseErrorBody(output.body, context),
|
|
957
|
-
};
|
|
958
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
|
-
switch (errorCode) {
|
|
960
|
-
case "AccessDeniedException":
|
|
961
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
962
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
963
|
-
case "InternalServiceError":
|
|
964
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
965
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
966
|
-
case "InvalidRequestException":
|
|
967
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
968
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
969
|
-
case "ResourceNotFoundException":
|
|
970
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
971
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ThrottlingException":
|
|
973
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
974
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
975
|
-
default:
|
|
976
|
-
const parsedBody = parsedOutput.body;
|
|
977
|
-
return throwDefaultError({
|
|
978
|
-
output,
|
|
979
|
-
parsedBody,
|
|
980
|
-
errorCode,
|
|
981
|
-
});
|
|
982
|
-
}
|
|
983
|
-
};
|
|
984
|
-
const de_ListEventIntegrationsCommand = async (output, context) => {
|
|
985
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
986
|
-
return de_ListEventIntegrationsCommandError(output, context);
|
|
987
|
-
}
|
|
988
|
-
const contents = (0, smithy_client_1.map)({
|
|
989
|
-
$metadata: deserializeMetadata(output),
|
|
990
|
-
});
|
|
991
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
992
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
993
|
-
EventIntegrations: smithy_client_1._json,
|
|
994
|
-
NextToken: smithy_client_1.expectString,
|
|
995
|
-
});
|
|
996
|
-
Object.assign(contents, doc);
|
|
997
|
-
return contents;
|
|
998
|
-
};
|
|
999
|
-
exports.de_ListEventIntegrationsCommand = de_ListEventIntegrationsCommand;
|
|
1000
|
-
const de_ListEventIntegrationsCommandError = async (output, context) => {
|
|
1001
|
-
const parsedOutput = {
|
|
1002
|
-
...output,
|
|
1003
|
-
body: await parseErrorBody(output.body, context),
|
|
1004
|
-
};
|
|
1005
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
|
-
switch (errorCode) {
|
|
1007
|
-
case "AccessDeniedException":
|
|
1008
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1009
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "InternalServiceError":
|
|
1011
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1012
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1013
|
-
case "InvalidRequestException":
|
|
1014
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1015
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "ThrottlingException":
|
|
1017
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1018
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1019
|
-
default:
|
|
1020
|
-
const parsedBody = parsedOutput.body;
|
|
1021
|
-
return throwDefaultError({
|
|
1022
|
-
output,
|
|
1023
|
-
parsedBody,
|
|
1024
|
-
errorCode,
|
|
1025
|
-
});
|
|
1026
|
-
}
|
|
1027
|
-
};
|
|
1028
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1029
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1030
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1031
|
-
}
|
|
1032
|
-
const contents = (0, smithy_client_1.map)({
|
|
1033
|
-
$metadata: deserializeMetadata(output),
|
|
1034
|
-
});
|
|
1035
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1036
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1037
|
-
tags: smithy_client_1._json,
|
|
1038
|
-
});
|
|
1039
|
-
Object.assign(contents, doc);
|
|
1040
|
-
return contents;
|
|
1041
|
-
};
|
|
1042
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1043
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1044
|
-
const parsedOutput = {
|
|
1045
|
-
...output,
|
|
1046
|
-
body: await parseErrorBody(output.body, context),
|
|
1047
|
-
};
|
|
1048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1049
|
-
switch (errorCode) {
|
|
1050
|
-
case "InternalServiceError":
|
|
1051
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1052
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1053
|
-
case "InvalidRequestException":
|
|
1054
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1055
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "ResourceNotFoundException":
|
|
1057
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1058
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "ThrottlingException":
|
|
1060
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1061
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1062
|
-
default:
|
|
1063
|
-
const parsedBody = parsedOutput.body;
|
|
1064
|
-
return throwDefaultError({
|
|
1065
|
-
output,
|
|
1066
|
-
parsedBody,
|
|
1067
|
-
errorCode,
|
|
1068
|
-
});
|
|
1069
|
-
}
|
|
1070
|
-
};
|
|
1071
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1072
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1073
|
-
return de_TagResourceCommandError(output, context);
|
|
1074
|
-
}
|
|
1075
|
-
const contents = (0, smithy_client_1.map)({
|
|
1076
|
-
$metadata: deserializeMetadata(output),
|
|
1077
|
-
});
|
|
1078
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1079
|
-
return contents;
|
|
1080
|
-
};
|
|
1081
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1082
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1083
|
-
const parsedOutput = {
|
|
1084
|
-
...output,
|
|
1085
|
-
body: await parseErrorBody(output.body, context),
|
|
1086
|
-
};
|
|
1087
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
|
-
switch (errorCode) {
|
|
1089
|
-
case "InternalServiceError":
|
|
1090
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1091
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1092
|
-
case "InvalidRequestException":
|
|
1093
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1094
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "ResourceNotFoundException":
|
|
1096
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1097
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "ThrottlingException":
|
|
1099
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1100
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1101
|
-
default:
|
|
1102
|
-
const parsedBody = parsedOutput.body;
|
|
1103
|
-
return throwDefaultError({
|
|
1104
|
-
output,
|
|
1105
|
-
parsedBody,
|
|
1106
|
-
errorCode,
|
|
1107
|
-
});
|
|
1108
|
-
}
|
|
1109
|
-
};
|
|
1110
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1111
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1112
|
-
return de_UntagResourceCommandError(output, context);
|
|
1113
|
-
}
|
|
1114
|
-
const contents = (0, smithy_client_1.map)({
|
|
1115
|
-
$metadata: deserializeMetadata(output),
|
|
1116
|
-
});
|
|
1117
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1118
|
-
return contents;
|
|
1119
|
-
};
|
|
1120
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1121
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1122
|
-
const parsedOutput = {
|
|
1123
|
-
...output,
|
|
1124
|
-
body: await parseErrorBody(output.body, context),
|
|
1125
|
-
};
|
|
1126
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1127
|
-
switch (errorCode) {
|
|
1128
|
-
case "InternalServiceError":
|
|
1129
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1130
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1131
|
-
case "InvalidRequestException":
|
|
1132
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1133
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1134
|
-
case "ResourceNotFoundException":
|
|
1135
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1136
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1137
|
-
case "ThrottlingException":
|
|
1138
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1139
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1140
|
-
default:
|
|
1141
|
-
const parsedBody = parsedOutput.body;
|
|
1142
|
-
return throwDefaultError({
|
|
1143
|
-
output,
|
|
1144
|
-
parsedBody,
|
|
1145
|
-
errorCode,
|
|
1146
|
-
});
|
|
1147
|
-
}
|
|
1148
|
-
};
|
|
1149
|
-
const de_UpdateApplicationCommand = async (output, context) => {
|
|
1150
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1151
|
-
return de_UpdateApplicationCommandError(output, context);
|
|
1152
|
-
}
|
|
1153
|
-
const contents = (0, smithy_client_1.map)({
|
|
1154
|
-
$metadata: deserializeMetadata(output),
|
|
1155
|
-
});
|
|
1156
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1157
|
-
return contents;
|
|
1158
|
-
};
|
|
1159
|
-
exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
|
|
1160
|
-
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
1161
|
-
const parsedOutput = {
|
|
1162
|
-
...output,
|
|
1163
|
-
body: await parseErrorBody(output.body, context),
|
|
1164
|
-
};
|
|
1165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
|
-
switch (errorCode) {
|
|
1167
|
-
case "AccessDeniedException":
|
|
1168
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1169
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "InternalServiceError":
|
|
1171
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1172
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1173
|
-
case "InvalidRequestException":
|
|
1174
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1175
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "ResourceNotFoundException":
|
|
1177
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1178
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "ThrottlingException":
|
|
1180
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1181
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "UnsupportedOperationException":
|
|
1183
|
-
case "com.amazonaws.appintegrations#UnsupportedOperationException":
|
|
1184
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1185
|
-
default:
|
|
1186
|
-
const parsedBody = parsedOutput.body;
|
|
1187
|
-
return throwDefaultError({
|
|
1188
|
-
output,
|
|
1189
|
-
parsedBody,
|
|
1190
|
-
errorCode,
|
|
1191
|
-
});
|
|
1192
|
-
}
|
|
1193
|
-
};
|
|
1194
|
-
const de_UpdateDataIntegrationCommand = async (output, context) => {
|
|
1195
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1196
|
-
return de_UpdateDataIntegrationCommandError(output, context);
|
|
1197
|
-
}
|
|
1198
|
-
const contents = (0, smithy_client_1.map)({
|
|
1199
|
-
$metadata: deserializeMetadata(output),
|
|
1200
|
-
});
|
|
1201
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1202
|
-
return contents;
|
|
1203
|
-
};
|
|
1204
|
-
exports.de_UpdateDataIntegrationCommand = de_UpdateDataIntegrationCommand;
|
|
1205
|
-
const de_UpdateDataIntegrationCommandError = async (output, context) => {
|
|
1206
|
-
const parsedOutput = {
|
|
1207
|
-
...output,
|
|
1208
|
-
body: await parseErrorBody(output.body, context),
|
|
1209
|
-
};
|
|
1210
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1211
|
-
switch (errorCode) {
|
|
1212
|
-
case "AccessDeniedException":
|
|
1213
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1214
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "InternalServiceError":
|
|
1216
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1217
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1218
|
-
case "InvalidRequestException":
|
|
1219
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1220
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "ResourceNotFoundException":
|
|
1222
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1223
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "ThrottlingException":
|
|
1225
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1226
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1227
|
-
default:
|
|
1228
|
-
const parsedBody = parsedOutput.body;
|
|
1229
|
-
return throwDefaultError({
|
|
1230
|
-
output,
|
|
1231
|
-
parsedBody,
|
|
1232
|
-
errorCode,
|
|
1233
|
-
});
|
|
1234
|
-
}
|
|
1235
|
-
};
|
|
1236
|
-
const de_UpdateEventIntegrationCommand = async (output, context) => {
|
|
1237
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1238
|
-
return de_UpdateEventIntegrationCommandError(output, context);
|
|
1239
|
-
}
|
|
1240
|
-
const contents = (0, smithy_client_1.map)({
|
|
1241
|
-
$metadata: deserializeMetadata(output),
|
|
1242
|
-
});
|
|
1243
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1244
|
-
return contents;
|
|
1245
|
-
};
|
|
1246
|
-
exports.de_UpdateEventIntegrationCommand = de_UpdateEventIntegrationCommand;
|
|
1247
|
-
const de_UpdateEventIntegrationCommandError = async (output, context) => {
|
|
1248
|
-
const parsedOutput = {
|
|
1249
|
-
...output,
|
|
1250
|
-
body: await parseErrorBody(output.body, context),
|
|
1251
|
-
};
|
|
1252
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1253
|
-
switch (errorCode) {
|
|
1254
|
-
case "AccessDeniedException":
|
|
1255
|
-
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1256
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1257
|
-
case "InternalServiceError":
|
|
1258
|
-
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1259
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1260
|
-
case "InvalidRequestException":
|
|
1261
|
-
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1262
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1263
|
-
case "ResourceNotFoundException":
|
|
1264
|
-
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1265
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "ThrottlingException":
|
|
1267
|
-
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1268
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1269
|
-
default:
|
|
1270
|
-
const parsedBody = parsedOutput.body;
|
|
1271
|
-
return throwDefaultError({
|
|
1272
|
-
output,
|
|
1273
|
-
parsedBody,
|
|
1274
|
-
errorCode,
|
|
1275
|
-
});
|
|
1276
|
-
}
|
|
1277
|
-
};
|
|
1278
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(AppIntegrationsServiceException_1.AppIntegrationsServiceException);
|
|
1279
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1280
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1281
|
-
const data = parsedOutput.body;
|
|
1282
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1283
|
-
Message: smithy_client_1.expectString,
|
|
1284
|
-
});
|
|
1285
|
-
Object.assign(contents, doc);
|
|
1286
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1287
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1288
|
-
...contents,
|
|
1289
|
-
});
|
|
1290
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1291
|
-
};
|
|
1292
|
-
const de_DuplicateResourceExceptionRes = async (parsedOutput, context) => {
|
|
1293
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1294
|
-
const data = parsedOutput.body;
|
|
1295
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1296
|
-
Message: smithy_client_1.expectString,
|
|
1297
|
-
});
|
|
1298
|
-
Object.assign(contents, doc);
|
|
1299
|
-
const exception = new models_0_1.DuplicateResourceException({
|
|
1300
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1301
|
-
...contents,
|
|
1302
|
-
});
|
|
1303
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1304
|
-
};
|
|
1305
|
-
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
1306
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1307
|
-
const data = parsedOutput.body;
|
|
1308
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1309
|
-
Message: smithy_client_1.expectString,
|
|
1310
|
-
});
|
|
1311
|
-
Object.assign(contents, doc);
|
|
1312
|
-
const exception = new models_0_1.InternalServiceError({
|
|
1313
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1314
|
-
...contents,
|
|
1315
|
-
});
|
|
1316
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1317
|
-
};
|
|
1318
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1319
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1320
|
-
const data = parsedOutput.body;
|
|
1321
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1322
|
-
Message: smithy_client_1.expectString,
|
|
1323
|
-
});
|
|
1324
|
-
Object.assign(contents, doc);
|
|
1325
|
-
const exception = new models_0_1.InvalidRequestException({
|
|
1326
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1327
|
-
...contents,
|
|
1328
|
-
});
|
|
1329
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1330
|
-
};
|
|
1331
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1332
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1333
|
-
const data = parsedOutput.body;
|
|
1334
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1335
|
-
Message: smithy_client_1.expectString,
|
|
1336
|
-
});
|
|
1337
|
-
Object.assign(contents, doc);
|
|
1338
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1339
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1340
|
-
...contents,
|
|
1341
|
-
});
|
|
1342
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1343
|
-
};
|
|
1344
|
-
const de_ResourceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1345
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1346
|
-
const data = parsedOutput.body;
|
|
1347
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1348
|
-
Message: smithy_client_1.expectString,
|
|
1349
|
-
});
|
|
1350
|
-
Object.assign(contents, doc);
|
|
1351
|
-
const exception = new models_0_1.ResourceQuotaExceededException({
|
|
1352
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1353
|
-
...contents,
|
|
1354
|
-
});
|
|
1355
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1356
|
-
};
|
|
1357
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1358
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1359
|
-
const data = parsedOutput.body;
|
|
1360
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1361
|
-
Message: smithy_client_1.expectString,
|
|
1362
|
-
});
|
|
1363
|
-
Object.assign(contents, doc);
|
|
1364
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1365
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1366
|
-
...contents,
|
|
1367
|
-
});
|
|
1368
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1369
|
-
};
|
|
1370
|
-
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
1371
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1372
|
-
const data = parsedOutput.body;
|
|
1373
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1374
|
-
Message: smithy_client_1.expectString,
|
|
1375
|
-
});
|
|
1376
|
-
Object.assign(contents, doc);
|
|
1377
|
-
const exception = new models_0_1.UnsupportedOperationException({
|
|
1378
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1379
|
-
...contents,
|
|
1380
|
-
});
|
|
1381
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1382
|
-
};
|
|
1383
|
-
const de_ApplicationsList = (output, context) => {
|
|
1384
|
-
const retVal = (output || [])
|
|
1385
|
-
.filter((e) => e != null)
|
|
1386
|
-
.map((entry) => {
|
|
1387
|
-
return de_ApplicationSummary(entry, context);
|
|
1388
|
-
});
|
|
1389
|
-
return retVal;
|
|
1390
|
-
};
|
|
1391
|
-
const de_ApplicationSummary = (output, context) => {
|
|
1392
|
-
return (0, smithy_client_1.take)(output, {
|
|
1393
|
-
Arn: smithy_client_1.expectString,
|
|
1394
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1395
|
-
Id: smithy_client_1.expectString,
|
|
1396
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1397
|
-
Name: smithy_client_1.expectString,
|
|
1398
|
-
Namespace: smithy_client_1.expectString,
|
|
1399
|
-
});
|
|
1400
|
-
};
|
|
1401
|
-
const deserializeMetadata = (output) => ({
|
|
1402
|
-
httpStatusCode: output.statusCode,
|
|
1403
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1404
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1405
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1406
|
-
});
|
|
1407
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1408
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1409
|
-
value !== null &&
|
|
1410
|
-
value !== "" &&
|
|
1411
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1412
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1413
|
-
const _MR = "MaxResults";
|
|
1414
|
-
const _NT = "NextToken";
|
|
1415
|
-
const _mR = "maxResults";
|
|
1416
|
-
const _nT = "nextToken";
|
|
1417
|
-
const _tK = "tagKeys";
|
|
1418
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1419
|
-
if (encoded.length) {
|
|
1420
|
-
return JSON.parse(encoded);
|
|
1421
|
-
}
|
|
1422
|
-
return {};
|
|
1423
|
-
});
|
|
1424
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1425
|
-
const value = await parseBody(errorBody, context);
|
|
1426
|
-
value.message = value.message ?? value.Message;
|
|
1427
|
-
return value;
|
|
1428
|
-
};
|
|
1429
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1430
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1431
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1432
|
-
let cleanValue = rawValue;
|
|
1433
|
-
if (typeof cleanValue === "number") {
|
|
1434
|
-
cleanValue = cleanValue.toString();
|
|
1435
|
-
}
|
|
1436
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1437
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1438
|
-
}
|
|
1439
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1440
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1441
|
-
}
|
|
1442
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1443
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1444
|
-
}
|
|
1445
|
-
return cleanValue;
|
|
1446
|
-
};
|
|
1447
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1448
|
-
if (headerKey !== undefined) {
|
|
1449
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1450
|
-
}
|
|
1451
|
-
if (data.code !== undefined) {
|
|
1452
|
-
return sanitizeErrorCode(data.code);
|
|
1453
|
-
}
|
|
1454
|
-
if (data["__type"] !== undefined) {
|
|
1455
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1456
|
-
}
|
|
1457
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|