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