@aws-sdk/client-appflow 3.490.0 → 3.495.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/Appflow.js +1 -61
- package/dist-cjs/AppflowClient.js +1 -43
- package/dist-cjs/commands/CancelFlowExecutionsCommand.js +1 -28
- package/dist-cjs/commands/CreateConnectorProfileCommand.js +1 -29
- package/dist-cjs/commands/CreateFlowCommand.js +1 -28
- package/dist-cjs/commands/DeleteConnectorProfileCommand.js +1 -28
- package/dist-cjs/commands/DeleteFlowCommand.js +1 -28
- package/dist-cjs/commands/DescribeConnectorCommand.js +1 -28
- package/dist-cjs/commands/DescribeConnectorEntityCommand.js +1 -28
- package/dist-cjs/commands/DescribeConnectorProfilesCommand.js +1 -28
- package/dist-cjs/commands/DescribeConnectorsCommand.js +1 -28
- package/dist-cjs/commands/DescribeFlowCommand.js +1 -28
- package/dist-cjs/commands/DescribeFlowExecutionRecordsCommand.js +1 -28
- package/dist-cjs/commands/ListConnectorEntitiesCommand.js +1 -28
- package/dist-cjs/commands/ListConnectorsCommand.js +1 -28
- package/dist-cjs/commands/ListFlowsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/RegisterConnectorCommand.js +1 -28
- package/dist-cjs/commands/ResetConnectorMetadataCacheCommand.js +1 -28
- package/dist-cjs/commands/StartFlowCommand.js +1 -28
- package/dist-cjs/commands/StopFlowCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UnregisterConnectorCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateConnectorProfileCommand.js +1 -29
- package/dist-cjs/commands/UpdateConnectorRegistrationCommand.js +1 -28
- package/dist-cjs/commands/UpdateFlowCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -28
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3570 -11
- package/dist-cjs/models/AppflowServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -806
- package/dist-cjs/pagination/DescribeConnectorProfilesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeConnectorsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeFlowExecutionRecordsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListConnectorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListFlowsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -9
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1928
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,1928 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateFlowCommand = exports.de_UpdateConnectorRegistrationCommand = exports.de_UpdateConnectorProfileCommand = exports.de_UntagResourceCommand = exports.de_UnregisterConnectorCommand = exports.de_TagResourceCommand = exports.de_StopFlowCommand = exports.de_StartFlowCommand = exports.de_ResetConnectorMetadataCacheCommand = exports.de_RegisterConnectorCommand = exports.de_ListTagsForResourceCommand = exports.de_ListFlowsCommand = exports.de_ListConnectorsCommand = exports.de_ListConnectorEntitiesCommand = exports.de_DescribeFlowExecutionRecordsCommand = exports.de_DescribeFlowCommand = exports.de_DescribeConnectorsCommand = exports.de_DescribeConnectorProfilesCommand = exports.de_DescribeConnectorEntityCommand = exports.de_DescribeConnectorCommand = exports.de_DeleteFlowCommand = exports.de_DeleteConnectorProfileCommand = exports.de_CreateFlowCommand = exports.de_CreateConnectorProfileCommand = exports.de_CancelFlowExecutionsCommand = exports.se_UpdateFlowCommand = exports.se_UpdateConnectorRegistrationCommand = exports.se_UpdateConnectorProfileCommand = exports.se_UntagResourceCommand = exports.se_UnregisterConnectorCommand = exports.se_TagResourceCommand = exports.se_StopFlowCommand = exports.se_StartFlowCommand = exports.se_ResetConnectorMetadataCacheCommand = exports.se_RegisterConnectorCommand = exports.se_ListTagsForResourceCommand = exports.se_ListFlowsCommand = exports.se_ListConnectorsCommand = exports.se_ListConnectorEntitiesCommand = exports.se_DescribeFlowExecutionRecordsCommand = exports.se_DescribeFlowCommand = exports.se_DescribeConnectorsCommand = exports.se_DescribeConnectorProfilesCommand = exports.se_DescribeConnectorEntityCommand = exports.se_DescribeConnectorCommand = exports.se_DeleteFlowCommand = exports.se_DeleteConnectorProfileCommand = exports.se_CreateFlowCommand = exports.se_CreateConnectorProfileCommand = exports.se_CancelFlowExecutionsCommand = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const uuid_1 = require("uuid");
|
|
7
|
-
const AppflowServiceException_1 = require("../models/AppflowServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_CancelFlowExecutionsCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {
|
|
12
|
-
"content-type": "application/json",
|
|
13
|
-
};
|
|
14
|
-
b.bp("/cancel-flow-executions");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
-
executionIds: (_) => (0, smithy_client_1._json)(_),
|
|
18
|
-
flowName: [],
|
|
19
|
-
}));
|
|
20
|
-
b.m("POST").h(headers).b(body);
|
|
21
|
-
return b.build();
|
|
22
|
-
};
|
|
23
|
-
exports.se_CancelFlowExecutionsCommand = se_CancelFlowExecutionsCommand;
|
|
24
|
-
const se_CreateConnectorProfileCommand = async (input, context) => {
|
|
25
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
26
|
-
const headers = {
|
|
27
|
-
"content-type": "application/json",
|
|
28
|
-
};
|
|
29
|
-
b.bp("/create-connector-profile");
|
|
30
|
-
let body;
|
|
31
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
32
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
33
|
-
connectionMode: [],
|
|
34
|
-
connectorLabel: [],
|
|
35
|
-
connectorProfileConfig: (_) => (0, smithy_client_1._json)(_),
|
|
36
|
-
connectorProfileName: [],
|
|
37
|
-
connectorType: [],
|
|
38
|
-
kmsArn: [],
|
|
39
|
-
}));
|
|
40
|
-
b.m("POST").h(headers).b(body);
|
|
41
|
-
return b.build();
|
|
42
|
-
};
|
|
43
|
-
exports.se_CreateConnectorProfileCommand = se_CreateConnectorProfileCommand;
|
|
44
|
-
const se_CreateFlowCommand = async (input, context) => {
|
|
45
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
46
|
-
const headers = {
|
|
47
|
-
"content-type": "application/json",
|
|
48
|
-
};
|
|
49
|
-
b.bp("/create-flow");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
52
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
53
|
-
description: [],
|
|
54
|
-
destinationFlowConfigList: (_) => (0, smithy_client_1._json)(_),
|
|
55
|
-
flowName: [],
|
|
56
|
-
kmsArn: [],
|
|
57
|
-
metadataCatalogConfig: (_) => (0, smithy_client_1._json)(_),
|
|
58
|
-
sourceFlowConfig: (_) => (0, smithy_client_1._json)(_),
|
|
59
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
60
|
-
tasks: (_) => (0, smithy_client_1._json)(_),
|
|
61
|
-
triggerConfig: (_) => se_TriggerConfig(_, context),
|
|
62
|
-
}));
|
|
63
|
-
b.m("POST").h(headers).b(body);
|
|
64
|
-
return b.build();
|
|
65
|
-
};
|
|
66
|
-
exports.se_CreateFlowCommand = se_CreateFlowCommand;
|
|
67
|
-
const se_DeleteConnectorProfileCommand = async (input, context) => {
|
|
68
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
69
|
-
const headers = {
|
|
70
|
-
"content-type": "application/json",
|
|
71
|
-
};
|
|
72
|
-
b.bp("/delete-connector-profile");
|
|
73
|
-
let body;
|
|
74
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
75
|
-
connectorProfileName: [],
|
|
76
|
-
forceDelete: [],
|
|
77
|
-
}));
|
|
78
|
-
b.m("POST").h(headers).b(body);
|
|
79
|
-
return b.build();
|
|
80
|
-
};
|
|
81
|
-
exports.se_DeleteConnectorProfileCommand = se_DeleteConnectorProfileCommand;
|
|
82
|
-
const se_DeleteFlowCommand = async (input, context) => {
|
|
83
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
84
|
-
const headers = {
|
|
85
|
-
"content-type": "application/json",
|
|
86
|
-
};
|
|
87
|
-
b.bp("/delete-flow");
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
90
|
-
flowName: [],
|
|
91
|
-
forceDelete: [],
|
|
92
|
-
}));
|
|
93
|
-
b.m("POST").h(headers).b(body);
|
|
94
|
-
return b.build();
|
|
95
|
-
};
|
|
96
|
-
exports.se_DeleteFlowCommand = se_DeleteFlowCommand;
|
|
97
|
-
const se_DescribeConnectorCommand = async (input, context) => {
|
|
98
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
99
|
-
const headers = {
|
|
100
|
-
"content-type": "application/json",
|
|
101
|
-
};
|
|
102
|
-
b.bp("/describe-connector");
|
|
103
|
-
let body;
|
|
104
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
105
|
-
connectorLabel: [],
|
|
106
|
-
connectorType: [],
|
|
107
|
-
}));
|
|
108
|
-
b.m("POST").h(headers).b(body);
|
|
109
|
-
return b.build();
|
|
110
|
-
};
|
|
111
|
-
exports.se_DescribeConnectorCommand = se_DescribeConnectorCommand;
|
|
112
|
-
const se_DescribeConnectorEntityCommand = async (input, context) => {
|
|
113
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
114
|
-
const headers = {
|
|
115
|
-
"content-type": "application/json",
|
|
116
|
-
};
|
|
117
|
-
b.bp("/describe-connector-entity");
|
|
118
|
-
let body;
|
|
119
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
120
|
-
apiVersion: [],
|
|
121
|
-
connectorEntityName: [],
|
|
122
|
-
connectorProfileName: [],
|
|
123
|
-
connectorType: [],
|
|
124
|
-
}));
|
|
125
|
-
b.m("POST").h(headers).b(body);
|
|
126
|
-
return b.build();
|
|
127
|
-
};
|
|
128
|
-
exports.se_DescribeConnectorEntityCommand = se_DescribeConnectorEntityCommand;
|
|
129
|
-
const se_DescribeConnectorProfilesCommand = async (input, context) => {
|
|
130
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
131
|
-
const headers = {
|
|
132
|
-
"content-type": "application/json",
|
|
133
|
-
};
|
|
134
|
-
b.bp("/describe-connector-profiles");
|
|
135
|
-
let body;
|
|
136
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
137
|
-
connectorLabel: [],
|
|
138
|
-
connectorProfileNames: (_) => (0, smithy_client_1._json)(_),
|
|
139
|
-
connectorType: [],
|
|
140
|
-
maxResults: [],
|
|
141
|
-
nextToken: [],
|
|
142
|
-
}));
|
|
143
|
-
b.m("POST").h(headers).b(body);
|
|
144
|
-
return b.build();
|
|
145
|
-
};
|
|
146
|
-
exports.se_DescribeConnectorProfilesCommand = se_DescribeConnectorProfilesCommand;
|
|
147
|
-
const se_DescribeConnectorsCommand = async (input, context) => {
|
|
148
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
149
|
-
const headers = {
|
|
150
|
-
"content-type": "application/json",
|
|
151
|
-
};
|
|
152
|
-
b.bp("/describe-connectors");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
155
|
-
connectorTypes: (_) => (0, smithy_client_1._json)(_),
|
|
156
|
-
maxResults: [],
|
|
157
|
-
nextToken: [],
|
|
158
|
-
}));
|
|
159
|
-
b.m("POST").h(headers).b(body);
|
|
160
|
-
return b.build();
|
|
161
|
-
};
|
|
162
|
-
exports.se_DescribeConnectorsCommand = se_DescribeConnectorsCommand;
|
|
163
|
-
const se_DescribeFlowCommand = async (input, context) => {
|
|
164
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
165
|
-
const headers = {
|
|
166
|
-
"content-type": "application/json",
|
|
167
|
-
};
|
|
168
|
-
b.bp("/describe-flow");
|
|
169
|
-
let body;
|
|
170
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
171
|
-
flowName: [],
|
|
172
|
-
}));
|
|
173
|
-
b.m("POST").h(headers).b(body);
|
|
174
|
-
return b.build();
|
|
175
|
-
};
|
|
176
|
-
exports.se_DescribeFlowCommand = se_DescribeFlowCommand;
|
|
177
|
-
const se_DescribeFlowExecutionRecordsCommand = async (input, context) => {
|
|
178
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
179
|
-
const headers = {
|
|
180
|
-
"content-type": "application/json",
|
|
181
|
-
};
|
|
182
|
-
b.bp("/describe-flow-execution-records");
|
|
183
|
-
let body;
|
|
184
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
185
|
-
flowName: [],
|
|
186
|
-
maxResults: [],
|
|
187
|
-
nextToken: [],
|
|
188
|
-
}));
|
|
189
|
-
b.m("POST").h(headers).b(body);
|
|
190
|
-
return b.build();
|
|
191
|
-
};
|
|
192
|
-
exports.se_DescribeFlowExecutionRecordsCommand = se_DescribeFlowExecutionRecordsCommand;
|
|
193
|
-
const se_ListConnectorEntitiesCommand = async (input, context) => {
|
|
194
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
195
|
-
const headers = {
|
|
196
|
-
"content-type": "application/json",
|
|
197
|
-
};
|
|
198
|
-
b.bp("/list-connector-entities");
|
|
199
|
-
let body;
|
|
200
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
201
|
-
apiVersion: [],
|
|
202
|
-
connectorProfileName: [],
|
|
203
|
-
connectorType: [],
|
|
204
|
-
entitiesPath: [],
|
|
205
|
-
maxResults: [],
|
|
206
|
-
nextToken: [],
|
|
207
|
-
}));
|
|
208
|
-
b.m("POST").h(headers).b(body);
|
|
209
|
-
return b.build();
|
|
210
|
-
};
|
|
211
|
-
exports.se_ListConnectorEntitiesCommand = se_ListConnectorEntitiesCommand;
|
|
212
|
-
const se_ListConnectorsCommand = async (input, context) => {
|
|
213
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
214
|
-
const headers = {
|
|
215
|
-
"content-type": "application/json",
|
|
216
|
-
};
|
|
217
|
-
b.bp("/list-connectors");
|
|
218
|
-
let body;
|
|
219
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
220
|
-
maxResults: [],
|
|
221
|
-
nextToken: [],
|
|
222
|
-
}));
|
|
223
|
-
b.m("POST").h(headers).b(body);
|
|
224
|
-
return b.build();
|
|
225
|
-
};
|
|
226
|
-
exports.se_ListConnectorsCommand = se_ListConnectorsCommand;
|
|
227
|
-
const se_ListFlowsCommand = async (input, context) => {
|
|
228
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
229
|
-
const headers = {
|
|
230
|
-
"content-type": "application/json",
|
|
231
|
-
};
|
|
232
|
-
b.bp("/list-flows");
|
|
233
|
-
let body;
|
|
234
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
235
|
-
maxResults: [],
|
|
236
|
-
nextToken: [],
|
|
237
|
-
}));
|
|
238
|
-
b.m("POST").h(headers).b(body);
|
|
239
|
-
return b.build();
|
|
240
|
-
};
|
|
241
|
-
exports.se_ListFlowsCommand = se_ListFlowsCommand;
|
|
242
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
243
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
244
|
-
const headers = {};
|
|
245
|
-
b.bp("/tags/{resourceArn}");
|
|
246
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
247
|
-
let body;
|
|
248
|
-
b.m("GET").h(headers).b(body);
|
|
249
|
-
return b.build();
|
|
250
|
-
};
|
|
251
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
252
|
-
const se_RegisterConnectorCommand = async (input, context) => {
|
|
253
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
254
|
-
const headers = {
|
|
255
|
-
"content-type": "application/json",
|
|
256
|
-
};
|
|
257
|
-
b.bp("/register-connector");
|
|
258
|
-
let body;
|
|
259
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
260
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
261
|
-
connectorLabel: [],
|
|
262
|
-
connectorProvisioningConfig: (_) => (0, smithy_client_1._json)(_),
|
|
263
|
-
connectorProvisioningType: [],
|
|
264
|
-
description: [],
|
|
265
|
-
}));
|
|
266
|
-
b.m("POST").h(headers).b(body);
|
|
267
|
-
return b.build();
|
|
268
|
-
};
|
|
269
|
-
exports.se_RegisterConnectorCommand = se_RegisterConnectorCommand;
|
|
270
|
-
const se_ResetConnectorMetadataCacheCommand = async (input, context) => {
|
|
271
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
272
|
-
const headers = {
|
|
273
|
-
"content-type": "application/json",
|
|
274
|
-
};
|
|
275
|
-
b.bp("/reset-connector-metadata-cache");
|
|
276
|
-
let body;
|
|
277
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
278
|
-
apiVersion: [],
|
|
279
|
-
connectorEntityName: [],
|
|
280
|
-
connectorProfileName: [],
|
|
281
|
-
connectorType: [],
|
|
282
|
-
entitiesPath: [],
|
|
283
|
-
}));
|
|
284
|
-
b.m("POST").h(headers).b(body);
|
|
285
|
-
return b.build();
|
|
286
|
-
};
|
|
287
|
-
exports.se_ResetConnectorMetadataCacheCommand = se_ResetConnectorMetadataCacheCommand;
|
|
288
|
-
const se_StartFlowCommand = async (input, context) => {
|
|
289
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
290
|
-
const headers = {
|
|
291
|
-
"content-type": "application/json",
|
|
292
|
-
};
|
|
293
|
-
b.bp("/start-flow");
|
|
294
|
-
let body;
|
|
295
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
296
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
297
|
-
flowName: [],
|
|
298
|
-
}));
|
|
299
|
-
b.m("POST").h(headers).b(body);
|
|
300
|
-
return b.build();
|
|
301
|
-
};
|
|
302
|
-
exports.se_StartFlowCommand = se_StartFlowCommand;
|
|
303
|
-
const se_StopFlowCommand = async (input, context) => {
|
|
304
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
305
|
-
const headers = {
|
|
306
|
-
"content-type": "application/json",
|
|
307
|
-
};
|
|
308
|
-
b.bp("/stop-flow");
|
|
309
|
-
let body;
|
|
310
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
311
|
-
flowName: [],
|
|
312
|
-
}));
|
|
313
|
-
b.m("POST").h(headers).b(body);
|
|
314
|
-
return b.build();
|
|
315
|
-
};
|
|
316
|
-
exports.se_StopFlowCommand = se_StopFlowCommand;
|
|
317
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
318
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
319
|
-
const headers = {
|
|
320
|
-
"content-type": "application/json",
|
|
321
|
-
};
|
|
322
|
-
b.bp("/tags/{resourceArn}");
|
|
323
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
324
|
-
let body;
|
|
325
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
326
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
327
|
-
}));
|
|
328
|
-
b.m("POST").h(headers).b(body);
|
|
329
|
-
return b.build();
|
|
330
|
-
};
|
|
331
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
332
|
-
const se_UnregisterConnectorCommand = async (input, context) => {
|
|
333
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
334
|
-
const headers = {
|
|
335
|
-
"content-type": "application/json",
|
|
336
|
-
};
|
|
337
|
-
b.bp("/unregister-connector");
|
|
338
|
-
let body;
|
|
339
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
340
|
-
connectorLabel: [],
|
|
341
|
-
forceDelete: [],
|
|
342
|
-
}));
|
|
343
|
-
b.m("POST").h(headers).b(body);
|
|
344
|
-
return b.build();
|
|
345
|
-
};
|
|
346
|
-
exports.se_UnregisterConnectorCommand = se_UnregisterConnectorCommand;
|
|
347
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
348
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
349
|
-
const headers = {};
|
|
350
|
-
b.bp("/tags/{resourceArn}");
|
|
351
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
352
|
-
const query = (0, smithy_client_1.map)({
|
|
353
|
-
[_tK]: [
|
|
354
|
-
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
355
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
356
|
-
],
|
|
357
|
-
});
|
|
358
|
-
let body;
|
|
359
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
360
|
-
return b.build();
|
|
361
|
-
};
|
|
362
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
363
|
-
const se_UpdateConnectorProfileCommand = async (input, context) => {
|
|
364
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
365
|
-
const headers = {
|
|
366
|
-
"content-type": "application/json",
|
|
367
|
-
};
|
|
368
|
-
b.bp("/update-connector-profile");
|
|
369
|
-
let body;
|
|
370
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
371
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
372
|
-
connectionMode: [],
|
|
373
|
-
connectorProfileConfig: (_) => (0, smithy_client_1._json)(_),
|
|
374
|
-
connectorProfileName: [],
|
|
375
|
-
}));
|
|
376
|
-
b.m("POST").h(headers).b(body);
|
|
377
|
-
return b.build();
|
|
378
|
-
};
|
|
379
|
-
exports.se_UpdateConnectorProfileCommand = se_UpdateConnectorProfileCommand;
|
|
380
|
-
const se_UpdateConnectorRegistrationCommand = async (input, context) => {
|
|
381
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
382
|
-
const headers = {
|
|
383
|
-
"content-type": "application/json",
|
|
384
|
-
};
|
|
385
|
-
b.bp("/update-connector-registration");
|
|
386
|
-
let body;
|
|
387
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
388
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
389
|
-
connectorLabel: [],
|
|
390
|
-
connectorProvisioningConfig: (_) => (0, smithy_client_1._json)(_),
|
|
391
|
-
description: [],
|
|
392
|
-
}));
|
|
393
|
-
b.m("POST").h(headers).b(body);
|
|
394
|
-
return b.build();
|
|
395
|
-
};
|
|
396
|
-
exports.se_UpdateConnectorRegistrationCommand = se_UpdateConnectorRegistrationCommand;
|
|
397
|
-
const se_UpdateFlowCommand = async (input, context) => {
|
|
398
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
399
|
-
const headers = {
|
|
400
|
-
"content-type": "application/json",
|
|
401
|
-
};
|
|
402
|
-
b.bp("/update-flow");
|
|
403
|
-
let body;
|
|
404
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
405
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
406
|
-
description: [],
|
|
407
|
-
destinationFlowConfigList: (_) => (0, smithy_client_1._json)(_),
|
|
408
|
-
flowName: [],
|
|
409
|
-
metadataCatalogConfig: (_) => (0, smithy_client_1._json)(_),
|
|
410
|
-
sourceFlowConfig: (_) => (0, smithy_client_1._json)(_),
|
|
411
|
-
tasks: (_) => (0, smithy_client_1._json)(_),
|
|
412
|
-
triggerConfig: (_) => se_TriggerConfig(_, context),
|
|
413
|
-
}));
|
|
414
|
-
b.m("POST").h(headers).b(body);
|
|
415
|
-
return b.build();
|
|
416
|
-
};
|
|
417
|
-
exports.se_UpdateFlowCommand = se_UpdateFlowCommand;
|
|
418
|
-
const de_CancelFlowExecutionsCommand = async (output, context) => {
|
|
419
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
420
|
-
return de_CancelFlowExecutionsCommandError(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
|
-
invalidExecutions: smithy_client_1._json,
|
|
428
|
-
});
|
|
429
|
-
Object.assign(contents, doc);
|
|
430
|
-
return contents;
|
|
431
|
-
};
|
|
432
|
-
exports.de_CancelFlowExecutionsCommand = de_CancelFlowExecutionsCommand;
|
|
433
|
-
const de_CancelFlowExecutionsCommandError = 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.appflow#AccessDeniedException":
|
|
442
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
443
|
-
case "InternalServerException":
|
|
444
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
445
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
446
|
-
case "ResourceNotFoundException":
|
|
447
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
448
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
449
|
-
case "ThrottlingException":
|
|
450
|
-
case "com.amazonaws.appflow#ThrottlingException":
|
|
451
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
452
|
-
case "ValidationException":
|
|
453
|
-
case "com.amazonaws.appflow#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_CreateConnectorProfileCommand = async (output, context) => {
|
|
465
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
466
|
-
return de_CreateConnectorProfileCommandError(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
|
-
connectorProfileArn: smithy_client_1.expectString,
|
|
474
|
-
});
|
|
475
|
-
Object.assign(contents, doc);
|
|
476
|
-
return contents;
|
|
477
|
-
};
|
|
478
|
-
exports.de_CreateConnectorProfileCommand = de_CreateConnectorProfileCommand;
|
|
479
|
-
const de_CreateConnectorProfileCommandError = 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 "ConflictException":
|
|
487
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
488
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
489
|
-
case "ConnectorAuthenticationException":
|
|
490
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
491
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
492
|
-
case "InternalServerException":
|
|
493
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
494
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
495
|
-
case "ServiceQuotaExceededException":
|
|
496
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
497
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
498
|
-
case "ValidationException":
|
|
499
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
500
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
501
|
-
default:
|
|
502
|
-
const parsedBody = parsedOutput.body;
|
|
503
|
-
return throwDefaultError({
|
|
504
|
-
output,
|
|
505
|
-
parsedBody,
|
|
506
|
-
errorCode,
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
const de_CreateFlowCommand = async (output, context) => {
|
|
511
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
512
|
-
return de_CreateFlowCommandError(output, context);
|
|
513
|
-
}
|
|
514
|
-
const contents = (0, smithy_client_1.map)({
|
|
515
|
-
$metadata: deserializeMetadata(output),
|
|
516
|
-
});
|
|
517
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
518
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
519
|
-
flowArn: smithy_client_1.expectString,
|
|
520
|
-
flowStatus: smithy_client_1.expectString,
|
|
521
|
-
});
|
|
522
|
-
Object.assign(contents, doc);
|
|
523
|
-
return contents;
|
|
524
|
-
};
|
|
525
|
-
exports.de_CreateFlowCommand = de_CreateFlowCommand;
|
|
526
|
-
const de_CreateFlowCommandError = async (output, context) => {
|
|
527
|
-
const parsedOutput = {
|
|
528
|
-
...output,
|
|
529
|
-
body: await parseErrorBody(output.body, context),
|
|
530
|
-
};
|
|
531
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
532
|
-
switch (errorCode) {
|
|
533
|
-
case "AccessDeniedException":
|
|
534
|
-
case "com.amazonaws.appflow#AccessDeniedException":
|
|
535
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
536
|
-
case "ConflictException":
|
|
537
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
538
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
539
|
-
case "ConnectorAuthenticationException":
|
|
540
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
541
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
542
|
-
case "ConnectorServerException":
|
|
543
|
-
case "com.amazonaws.appflow#ConnectorServerException":
|
|
544
|
-
throw await de_ConnectorServerExceptionRes(parsedOutput, context);
|
|
545
|
-
case "InternalServerException":
|
|
546
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
547
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
548
|
-
case "ResourceNotFoundException":
|
|
549
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
550
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
551
|
-
case "ServiceQuotaExceededException":
|
|
552
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
553
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
554
|
-
case "ValidationException":
|
|
555
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
556
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
557
|
-
default:
|
|
558
|
-
const parsedBody = parsedOutput.body;
|
|
559
|
-
return throwDefaultError({
|
|
560
|
-
output,
|
|
561
|
-
parsedBody,
|
|
562
|
-
errorCode,
|
|
563
|
-
});
|
|
564
|
-
}
|
|
565
|
-
};
|
|
566
|
-
const de_DeleteConnectorProfileCommand = async (output, context) => {
|
|
567
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
568
|
-
return de_DeleteConnectorProfileCommandError(output, context);
|
|
569
|
-
}
|
|
570
|
-
const contents = (0, smithy_client_1.map)({
|
|
571
|
-
$metadata: deserializeMetadata(output),
|
|
572
|
-
});
|
|
573
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
574
|
-
return contents;
|
|
575
|
-
};
|
|
576
|
-
exports.de_DeleteConnectorProfileCommand = de_DeleteConnectorProfileCommand;
|
|
577
|
-
const de_DeleteConnectorProfileCommandError = async (output, context) => {
|
|
578
|
-
const parsedOutput = {
|
|
579
|
-
...output,
|
|
580
|
-
body: await parseErrorBody(output.body, context),
|
|
581
|
-
};
|
|
582
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
583
|
-
switch (errorCode) {
|
|
584
|
-
case "ConflictException":
|
|
585
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
586
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
587
|
-
case "InternalServerException":
|
|
588
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
589
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
590
|
-
case "ResourceNotFoundException":
|
|
591
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
592
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
593
|
-
default:
|
|
594
|
-
const parsedBody = parsedOutput.body;
|
|
595
|
-
return throwDefaultError({
|
|
596
|
-
output,
|
|
597
|
-
parsedBody,
|
|
598
|
-
errorCode,
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
};
|
|
602
|
-
const de_DeleteFlowCommand = async (output, context) => {
|
|
603
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
604
|
-
return de_DeleteFlowCommandError(output, context);
|
|
605
|
-
}
|
|
606
|
-
const contents = (0, smithy_client_1.map)({
|
|
607
|
-
$metadata: deserializeMetadata(output),
|
|
608
|
-
});
|
|
609
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
610
|
-
return contents;
|
|
611
|
-
};
|
|
612
|
-
exports.de_DeleteFlowCommand = de_DeleteFlowCommand;
|
|
613
|
-
const de_DeleteFlowCommandError = async (output, context) => {
|
|
614
|
-
const parsedOutput = {
|
|
615
|
-
...output,
|
|
616
|
-
body: await parseErrorBody(output.body, context),
|
|
617
|
-
};
|
|
618
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
619
|
-
switch (errorCode) {
|
|
620
|
-
case "ConflictException":
|
|
621
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
622
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
623
|
-
case "InternalServerException":
|
|
624
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
625
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
626
|
-
case "ResourceNotFoundException":
|
|
627
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
628
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
629
|
-
default:
|
|
630
|
-
const parsedBody = parsedOutput.body;
|
|
631
|
-
return throwDefaultError({
|
|
632
|
-
output,
|
|
633
|
-
parsedBody,
|
|
634
|
-
errorCode,
|
|
635
|
-
});
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
|
-
const de_DescribeConnectorCommand = async (output, context) => {
|
|
639
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
640
|
-
return de_DescribeConnectorCommandError(output, context);
|
|
641
|
-
}
|
|
642
|
-
const contents = (0, smithy_client_1.map)({
|
|
643
|
-
$metadata: deserializeMetadata(output),
|
|
644
|
-
});
|
|
645
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
646
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
647
|
-
connectorConfiguration: (_) => de_ConnectorConfiguration(_, context),
|
|
648
|
-
});
|
|
649
|
-
Object.assign(contents, doc);
|
|
650
|
-
return contents;
|
|
651
|
-
};
|
|
652
|
-
exports.de_DescribeConnectorCommand = de_DescribeConnectorCommand;
|
|
653
|
-
const de_DescribeConnectorCommandError = async (output, context) => {
|
|
654
|
-
const parsedOutput = {
|
|
655
|
-
...output,
|
|
656
|
-
body: await parseErrorBody(output.body, context),
|
|
657
|
-
};
|
|
658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
|
-
switch (errorCode) {
|
|
660
|
-
case "InternalServerException":
|
|
661
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
662
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
663
|
-
case "ResourceNotFoundException":
|
|
664
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
665
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
666
|
-
case "ValidationException":
|
|
667
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
668
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
669
|
-
default:
|
|
670
|
-
const parsedBody = parsedOutput.body;
|
|
671
|
-
return throwDefaultError({
|
|
672
|
-
output,
|
|
673
|
-
parsedBody,
|
|
674
|
-
errorCode,
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
};
|
|
678
|
-
const de_DescribeConnectorEntityCommand = async (output, context) => {
|
|
679
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
680
|
-
return de_DescribeConnectorEntityCommandError(output, context);
|
|
681
|
-
}
|
|
682
|
-
const contents = (0, smithy_client_1.map)({
|
|
683
|
-
$metadata: deserializeMetadata(output),
|
|
684
|
-
});
|
|
685
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
686
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
687
|
-
connectorEntityFields: (_) => de_ConnectorEntityFieldList(_, context),
|
|
688
|
-
});
|
|
689
|
-
Object.assign(contents, doc);
|
|
690
|
-
return contents;
|
|
691
|
-
};
|
|
692
|
-
exports.de_DescribeConnectorEntityCommand = de_DescribeConnectorEntityCommand;
|
|
693
|
-
const de_DescribeConnectorEntityCommandError = async (output, context) => {
|
|
694
|
-
const parsedOutput = {
|
|
695
|
-
...output,
|
|
696
|
-
body: await parseErrorBody(output.body, context),
|
|
697
|
-
};
|
|
698
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
699
|
-
switch (errorCode) {
|
|
700
|
-
case "ConnectorAuthenticationException":
|
|
701
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
702
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
703
|
-
case "ConnectorServerException":
|
|
704
|
-
case "com.amazonaws.appflow#ConnectorServerException":
|
|
705
|
-
throw await de_ConnectorServerExceptionRes(parsedOutput, context);
|
|
706
|
-
case "InternalServerException":
|
|
707
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
708
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
709
|
-
case "ResourceNotFoundException":
|
|
710
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
711
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
712
|
-
case "ValidationException":
|
|
713
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
714
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
715
|
-
default:
|
|
716
|
-
const parsedBody = parsedOutput.body;
|
|
717
|
-
return throwDefaultError({
|
|
718
|
-
output,
|
|
719
|
-
parsedBody,
|
|
720
|
-
errorCode,
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
};
|
|
724
|
-
const de_DescribeConnectorProfilesCommand = async (output, context) => {
|
|
725
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
726
|
-
return de_DescribeConnectorProfilesCommandError(output, context);
|
|
727
|
-
}
|
|
728
|
-
const contents = (0, smithy_client_1.map)({
|
|
729
|
-
$metadata: deserializeMetadata(output),
|
|
730
|
-
});
|
|
731
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
732
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
733
|
-
connectorProfileDetails: (_) => de_ConnectorProfileDetailList(_, context),
|
|
734
|
-
nextToken: smithy_client_1.expectString,
|
|
735
|
-
});
|
|
736
|
-
Object.assign(contents, doc);
|
|
737
|
-
return contents;
|
|
738
|
-
};
|
|
739
|
-
exports.de_DescribeConnectorProfilesCommand = de_DescribeConnectorProfilesCommand;
|
|
740
|
-
const de_DescribeConnectorProfilesCommandError = async (output, context) => {
|
|
741
|
-
const parsedOutput = {
|
|
742
|
-
...output,
|
|
743
|
-
body: await parseErrorBody(output.body, context),
|
|
744
|
-
};
|
|
745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
746
|
-
switch (errorCode) {
|
|
747
|
-
case "InternalServerException":
|
|
748
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
749
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
750
|
-
case "ValidationException":
|
|
751
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
752
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
753
|
-
default:
|
|
754
|
-
const parsedBody = parsedOutput.body;
|
|
755
|
-
return throwDefaultError({
|
|
756
|
-
output,
|
|
757
|
-
parsedBody,
|
|
758
|
-
errorCode,
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
};
|
|
762
|
-
const de_DescribeConnectorsCommand = async (output, context) => {
|
|
763
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
764
|
-
return de_DescribeConnectorsCommandError(output, context);
|
|
765
|
-
}
|
|
766
|
-
const contents = (0, smithy_client_1.map)({
|
|
767
|
-
$metadata: deserializeMetadata(output),
|
|
768
|
-
});
|
|
769
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
770
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
771
|
-
connectorConfigurations: (_) => de_ConnectorConfigurationsMap(_, context),
|
|
772
|
-
connectors: (_) => de_ConnectorList(_, context),
|
|
773
|
-
nextToken: smithy_client_1.expectString,
|
|
774
|
-
});
|
|
775
|
-
Object.assign(contents, doc);
|
|
776
|
-
return contents;
|
|
777
|
-
};
|
|
778
|
-
exports.de_DescribeConnectorsCommand = de_DescribeConnectorsCommand;
|
|
779
|
-
const de_DescribeConnectorsCommandError = async (output, context) => {
|
|
780
|
-
const parsedOutput = {
|
|
781
|
-
...output,
|
|
782
|
-
body: await parseErrorBody(output.body, context),
|
|
783
|
-
};
|
|
784
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
|
-
switch (errorCode) {
|
|
786
|
-
case "InternalServerException":
|
|
787
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
788
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
789
|
-
case "ValidationException":
|
|
790
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
791
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
792
|
-
default:
|
|
793
|
-
const parsedBody = parsedOutput.body;
|
|
794
|
-
return throwDefaultError({
|
|
795
|
-
output,
|
|
796
|
-
parsedBody,
|
|
797
|
-
errorCode,
|
|
798
|
-
});
|
|
799
|
-
}
|
|
800
|
-
};
|
|
801
|
-
const de_DescribeFlowCommand = async (output, context) => {
|
|
802
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
803
|
-
return de_DescribeFlowCommandError(output, context);
|
|
804
|
-
}
|
|
805
|
-
const contents = (0, smithy_client_1.map)({
|
|
806
|
-
$metadata: deserializeMetadata(output),
|
|
807
|
-
});
|
|
808
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
809
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
810
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
811
|
-
createdBy: smithy_client_1.expectString,
|
|
812
|
-
description: smithy_client_1.expectString,
|
|
813
|
-
destinationFlowConfigList: smithy_client_1._json,
|
|
814
|
-
flowArn: smithy_client_1.expectString,
|
|
815
|
-
flowName: smithy_client_1.expectString,
|
|
816
|
-
flowStatus: smithy_client_1.expectString,
|
|
817
|
-
flowStatusMessage: smithy_client_1.expectString,
|
|
818
|
-
kmsArn: smithy_client_1.expectString,
|
|
819
|
-
lastRunExecutionDetails: (_) => de_ExecutionDetails(_, context),
|
|
820
|
-
lastRunMetadataCatalogDetails: smithy_client_1._json,
|
|
821
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
822
|
-
lastUpdatedBy: smithy_client_1.expectString,
|
|
823
|
-
metadataCatalogConfig: smithy_client_1._json,
|
|
824
|
-
schemaVersion: smithy_client_1.expectLong,
|
|
825
|
-
sourceFlowConfig: smithy_client_1._json,
|
|
826
|
-
tags: smithy_client_1._json,
|
|
827
|
-
tasks: smithy_client_1._json,
|
|
828
|
-
triggerConfig: (_) => de_TriggerConfig(_, context),
|
|
829
|
-
});
|
|
830
|
-
Object.assign(contents, doc);
|
|
831
|
-
return contents;
|
|
832
|
-
};
|
|
833
|
-
exports.de_DescribeFlowCommand = de_DescribeFlowCommand;
|
|
834
|
-
const de_DescribeFlowCommandError = async (output, context) => {
|
|
835
|
-
const parsedOutput = {
|
|
836
|
-
...output,
|
|
837
|
-
body: await parseErrorBody(output.body, context),
|
|
838
|
-
};
|
|
839
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
840
|
-
switch (errorCode) {
|
|
841
|
-
case "InternalServerException":
|
|
842
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
843
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
844
|
-
case "ResourceNotFoundException":
|
|
845
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
846
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
847
|
-
default:
|
|
848
|
-
const parsedBody = parsedOutput.body;
|
|
849
|
-
return throwDefaultError({
|
|
850
|
-
output,
|
|
851
|
-
parsedBody,
|
|
852
|
-
errorCode,
|
|
853
|
-
});
|
|
854
|
-
}
|
|
855
|
-
};
|
|
856
|
-
const de_DescribeFlowExecutionRecordsCommand = async (output, context) => {
|
|
857
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
858
|
-
return de_DescribeFlowExecutionRecordsCommandError(output, context);
|
|
859
|
-
}
|
|
860
|
-
const contents = (0, smithy_client_1.map)({
|
|
861
|
-
$metadata: deserializeMetadata(output),
|
|
862
|
-
});
|
|
863
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
864
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
865
|
-
flowExecutions: (_) => de_FlowExecutionList(_, context),
|
|
866
|
-
nextToken: smithy_client_1.expectString,
|
|
867
|
-
});
|
|
868
|
-
Object.assign(contents, doc);
|
|
869
|
-
return contents;
|
|
870
|
-
};
|
|
871
|
-
exports.de_DescribeFlowExecutionRecordsCommand = de_DescribeFlowExecutionRecordsCommand;
|
|
872
|
-
const de_DescribeFlowExecutionRecordsCommandError = async (output, context) => {
|
|
873
|
-
const parsedOutput = {
|
|
874
|
-
...output,
|
|
875
|
-
body: await parseErrorBody(output.body, context),
|
|
876
|
-
};
|
|
877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
878
|
-
switch (errorCode) {
|
|
879
|
-
case "InternalServerException":
|
|
880
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
881
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
882
|
-
case "ResourceNotFoundException":
|
|
883
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
884
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
885
|
-
case "ValidationException":
|
|
886
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
887
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
888
|
-
default:
|
|
889
|
-
const parsedBody = parsedOutput.body;
|
|
890
|
-
return throwDefaultError({
|
|
891
|
-
output,
|
|
892
|
-
parsedBody,
|
|
893
|
-
errorCode,
|
|
894
|
-
});
|
|
895
|
-
}
|
|
896
|
-
};
|
|
897
|
-
const de_ListConnectorEntitiesCommand = async (output, context) => {
|
|
898
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
899
|
-
return de_ListConnectorEntitiesCommandError(output, context);
|
|
900
|
-
}
|
|
901
|
-
const contents = (0, smithy_client_1.map)({
|
|
902
|
-
$metadata: deserializeMetadata(output),
|
|
903
|
-
});
|
|
904
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
905
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
906
|
-
connectorEntityMap: smithy_client_1._json,
|
|
907
|
-
nextToken: smithy_client_1.expectString,
|
|
908
|
-
});
|
|
909
|
-
Object.assign(contents, doc);
|
|
910
|
-
return contents;
|
|
911
|
-
};
|
|
912
|
-
exports.de_ListConnectorEntitiesCommand = de_ListConnectorEntitiesCommand;
|
|
913
|
-
const de_ListConnectorEntitiesCommandError = async (output, context) => {
|
|
914
|
-
const parsedOutput = {
|
|
915
|
-
...output,
|
|
916
|
-
body: await parseErrorBody(output.body, context),
|
|
917
|
-
};
|
|
918
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
919
|
-
switch (errorCode) {
|
|
920
|
-
case "ConnectorAuthenticationException":
|
|
921
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
922
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
923
|
-
case "ConnectorServerException":
|
|
924
|
-
case "com.amazonaws.appflow#ConnectorServerException":
|
|
925
|
-
throw await de_ConnectorServerExceptionRes(parsedOutput, context);
|
|
926
|
-
case "InternalServerException":
|
|
927
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
928
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
929
|
-
case "ResourceNotFoundException":
|
|
930
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
931
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
932
|
-
case "ValidationException":
|
|
933
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
934
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
935
|
-
default:
|
|
936
|
-
const parsedBody = parsedOutput.body;
|
|
937
|
-
return throwDefaultError({
|
|
938
|
-
output,
|
|
939
|
-
parsedBody,
|
|
940
|
-
errorCode,
|
|
941
|
-
});
|
|
942
|
-
}
|
|
943
|
-
};
|
|
944
|
-
const de_ListConnectorsCommand = async (output, context) => {
|
|
945
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
946
|
-
return de_ListConnectorsCommandError(output, context);
|
|
947
|
-
}
|
|
948
|
-
const contents = (0, smithy_client_1.map)({
|
|
949
|
-
$metadata: deserializeMetadata(output),
|
|
950
|
-
});
|
|
951
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
952
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
953
|
-
connectors: (_) => de_ConnectorList(_, context),
|
|
954
|
-
nextToken: smithy_client_1.expectString,
|
|
955
|
-
});
|
|
956
|
-
Object.assign(contents, doc);
|
|
957
|
-
return contents;
|
|
958
|
-
};
|
|
959
|
-
exports.de_ListConnectorsCommand = de_ListConnectorsCommand;
|
|
960
|
-
const de_ListConnectorsCommandError = async (output, context) => {
|
|
961
|
-
const parsedOutput = {
|
|
962
|
-
...output,
|
|
963
|
-
body: await parseErrorBody(output.body, context),
|
|
964
|
-
};
|
|
965
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
966
|
-
switch (errorCode) {
|
|
967
|
-
case "InternalServerException":
|
|
968
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
969
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
970
|
-
case "ValidationException":
|
|
971
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
972
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
973
|
-
default:
|
|
974
|
-
const parsedBody = parsedOutput.body;
|
|
975
|
-
return throwDefaultError({
|
|
976
|
-
output,
|
|
977
|
-
parsedBody,
|
|
978
|
-
errorCode,
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
};
|
|
982
|
-
const de_ListFlowsCommand = async (output, context) => {
|
|
983
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
984
|
-
return de_ListFlowsCommandError(output, context);
|
|
985
|
-
}
|
|
986
|
-
const contents = (0, smithy_client_1.map)({
|
|
987
|
-
$metadata: deserializeMetadata(output),
|
|
988
|
-
});
|
|
989
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
990
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
991
|
-
flows: (_) => de_FlowList(_, context),
|
|
992
|
-
nextToken: smithy_client_1.expectString,
|
|
993
|
-
});
|
|
994
|
-
Object.assign(contents, doc);
|
|
995
|
-
return contents;
|
|
996
|
-
};
|
|
997
|
-
exports.de_ListFlowsCommand = de_ListFlowsCommand;
|
|
998
|
-
const de_ListFlowsCommandError = async (output, context) => {
|
|
999
|
-
const parsedOutput = {
|
|
1000
|
-
...output,
|
|
1001
|
-
body: await parseErrorBody(output.body, context),
|
|
1002
|
-
};
|
|
1003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
-
switch (errorCode) {
|
|
1005
|
-
case "InternalServerException":
|
|
1006
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1007
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "ValidationException":
|
|
1009
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
1010
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1011
|
-
default:
|
|
1012
|
-
const parsedBody = parsedOutput.body;
|
|
1013
|
-
return throwDefaultError({
|
|
1014
|
-
output,
|
|
1015
|
-
parsedBody,
|
|
1016
|
-
errorCode,
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
|
-
};
|
|
1020
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1021
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1022
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1023
|
-
}
|
|
1024
|
-
const contents = (0, smithy_client_1.map)({
|
|
1025
|
-
$metadata: deserializeMetadata(output),
|
|
1026
|
-
});
|
|
1027
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1028
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1029
|
-
tags: smithy_client_1._json,
|
|
1030
|
-
});
|
|
1031
|
-
Object.assign(contents, doc);
|
|
1032
|
-
return contents;
|
|
1033
|
-
};
|
|
1034
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1035
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1036
|
-
const parsedOutput = {
|
|
1037
|
-
...output,
|
|
1038
|
-
body: await parseErrorBody(output.body, context),
|
|
1039
|
-
};
|
|
1040
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1041
|
-
switch (errorCode) {
|
|
1042
|
-
case "InternalServerException":
|
|
1043
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1044
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "ResourceNotFoundException":
|
|
1046
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1047
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1048
|
-
case "ValidationException":
|
|
1049
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
1050
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1051
|
-
default:
|
|
1052
|
-
const parsedBody = parsedOutput.body;
|
|
1053
|
-
return throwDefaultError({
|
|
1054
|
-
output,
|
|
1055
|
-
parsedBody,
|
|
1056
|
-
errorCode,
|
|
1057
|
-
});
|
|
1058
|
-
}
|
|
1059
|
-
};
|
|
1060
|
-
const de_RegisterConnectorCommand = async (output, context) => {
|
|
1061
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1062
|
-
return de_RegisterConnectorCommandError(output, context);
|
|
1063
|
-
}
|
|
1064
|
-
const contents = (0, smithy_client_1.map)({
|
|
1065
|
-
$metadata: deserializeMetadata(output),
|
|
1066
|
-
});
|
|
1067
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1068
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1069
|
-
connectorArn: smithy_client_1.expectString,
|
|
1070
|
-
});
|
|
1071
|
-
Object.assign(contents, doc);
|
|
1072
|
-
return contents;
|
|
1073
|
-
};
|
|
1074
|
-
exports.de_RegisterConnectorCommand = de_RegisterConnectorCommand;
|
|
1075
|
-
const de_RegisterConnectorCommandError = async (output, context) => {
|
|
1076
|
-
const parsedOutput = {
|
|
1077
|
-
...output,
|
|
1078
|
-
body: await parseErrorBody(output.body, context),
|
|
1079
|
-
};
|
|
1080
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
|
-
switch (errorCode) {
|
|
1082
|
-
case "AccessDeniedException":
|
|
1083
|
-
case "com.amazonaws.appflow#AccessDeniedException":
|
|
1084
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "ConflictException":
|
|
1086
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1087
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "ConnectorAuthenticationException":
|
|
1089
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
1090
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "ConnectorServerException":
|
|
1092
|
-
case "com.amazonaws.appflow#ConnectorServerException":
|
|
1093
|
-
throw await de_ConnectorServerExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "InternalServerException":
|
|
1095
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1096
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1097
|
-
case "ResourceNotFoundException":
|
|
1098
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1099
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1100
|
-
case "ServiceQuotaExceededException":
|
|
1101
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
1102
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1103
|
-
case "ThrottlingException":
|
|
1104
|
-
case "com.amazonaws.appflow#ThrottlingException":
|
|
1105
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1106
|
-
case "ValidationException":
|
|
1107
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
1108
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1109
|
-
default:
|
|
1110
|
-
const parsedBody = parsedOutput.body;
|
|
1111
|
-
return throwDefaultError({
|
|
1112
|
-
output,
|
|
1113
|
-
parsedBody,
|
|
1114
|
-
errorCode,
|
|
1115
|
-
});
|
|
1116
|
-
}
|
|
1117
|
-
};
|
|
1118
|
-
const de_ResetConnectorMetadataCacheCommand = async (output, context) => {
|
|
1119
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1120
|
-
return de_ResetConnectorMetadataCacheCommandError(output, context);
|
|
1121
|
-
}
|
|
1122
|
-
const contents = (0, smithy_client_1.map)({
|
|
1123
|
-
$metadata: deserializeMetadata(output),
|
|
1124
|
-
});
|
|
1125
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1126
|
-
return contents;
|
|
1127
|
-
};
|
|
1128
|
-
exports.de_ResetConnectorMetadataCacheCommand = de_ResetConnectorMetadataCacheCommand;
|
|
1129
|
-
const de_ResetConnectorMetadataCacheCommandError = async (output, context) => {
|
|
1130
|
-
const parsedOutput = {
|
|
1131
|
-
...output,
|
|
1132
|
-
body: await parseErrorBody(output.body, context),
|
|
1133
|
-
};
|
|
1134
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
|
-
switch (errorCode) {
|
|
1136
|
-
case "ConflictException":
|
|
1137
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1138
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1139
|
-
case "InternalServerException":
|
|
1140
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1141
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "ResourceNotFoundException":
|
|
1143
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1144
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1145
|
-
case "ValidationException":
|
|
1146
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
1147
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1148
|
-
default:
|
|
1149
|
-
const parsedBody = parsedOutput.body;
|
|
1150
|
-
return throwDefaultError({
|
|
1151
|
-
output,
|
|
1152
|
-
parsedBody,
|
|
1153
|
-
errorCode,
|
|
1154
|
-
});
|
|
1155
|
-
}
|
|
1156
|
-
};
|
|
1157
|
-
const de_StartFlowCommand = async (output, context) => {
|
|
1158
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1159
|
-
return de_StartFlowCommandError(output, context);
|
|
1160
|
-
}
|
|
1161
|
-
const contents = (0, smithy_client_1.map)({
|
|
1162
|
-
$metadata: deserializeMetadata(output),
|
|
1163
|
-
});
|
|
1164
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1165
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1166
|
-
executionId: smithy_client_1.expectString,
|
|
1167
|
-
flowArn: smithy_client_1.expectString,
|
|
1168
|
-
flowStatus: smithy_client_1.expectString,
|
|
1169
|
-
});
|
|
1170
|
-
Object.assign(contents, doc);
|
|
1171
|
-
return contents;
|
|
1172
|
-
};
|
|
1173
|
-
exports.de_StartFlowCommand = de_StartFlowCommand;
|
|
1174
|
-
const de_StartFlowCommandError = async (output, context) => {
|
|
1175
|
-
const parsedOutput = {
|
|
1176
|
-
...output,
|
|
1177
|
-
body: await parseErrorBody(output.body, context),
|
|
1178
|
-
};
|
|
1179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1180
|
-
switch (errorCode) {
|
|
1181
|
-
case "ConflictException":
|
|
1182
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1183
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "InternalServerException":
|
|
1185
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1186
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "ResourceNotFoundException":
|
|
1188
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1189
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "ServiceQuotaExceededException":
|
|
1191
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
1192
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1193
|
-
default:
|
|
1194
|
-
const parsedBody = parsedOutput.body;
|
|
1195
|
-
return throwDefaultError({
|
|
1196
|
-
output,
|
|
1197
|
-
parsedBody,
|
|
1198
|
-
errorCode,
|
|
1199
|
-
});
|
|
1200
|
-
}
|
|
1201
|
-
};
|
|
1202
|
-
const de_StopFlowCommand = async (output, context) => {
|
|
1203
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1204
|
-
return de_StopFlowCommandError(output, context);
|
|
1205
|
-
}
|
|
1206
|
-
const contents = (0, smithy_client_1.map)({
|
|
1207
|
-
$metadata: deserializeMetadata(output),
|
|
1208
|
-
});
|
|
1209
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1210
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1211
|
-
flowArn: smithy_client_1.expectString,
|
|
1212
|
-
flowStatus: smithy_client_1.expectString,
|
|
1213
|
-
});
|
|
1214
|
-
Object.assign(contents, doc);
|
|
1215
|
-
return contents;
|
|
1216
|
-
};
|
|
1217
|
-
exports.de_StopFlowCommand = de_StopFlowCommand;
|
|
1218
|
-
const de_StopFlowCommandError = async (output, context) => {
|
|
1219
|
-
const parsedOutput = {
|
|
1220
|
-
...output,
|
|
1221
|
-
body: await parseErrorBody(output.body, context),
|
|
1222
|
-
};
|
|
1223
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1224
|
-
switch (errorCode) {
|
|
1225
|
-
case "ConflictException":
|
|
1226
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1227
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "InternalServerException":
|
|
1229
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1230
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1231
|
-
case "ResourceNotFoundException":
|
|
1232
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1233
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1234
|
-
case "UnsupportedOperationException":
|
|
1235
|
-
case "com.amazonaws.appflow#UnsupportedOperationException":
|
|
1236
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1237
|
-
default:
|
|
1238
|
-
const parsedBody = parsedOutput.body;
|
|
1239
|
-
return throwDefaultError({
|
|
1240
|
-
output,
|
|
1241
|
-
parsedBody,
|
|
1242
|
-
errorCode,
|
|
1243
|
-
});
|
|
1244
|
-
}
|
|
1245
|
-
};
|
|
1246
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1247
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1248
|
-
return de_TagResourceCommandError(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_TagResourceCommand = de_TagResourceCommand;
|
|
1257
|
-
const de_TagResourceCommandError = 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 "InternalServerException":
|
|
1265
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1266
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "ResourceNotFoundException":
|
|
1268
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1269
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "ValidationException":
|
|
1271
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
1272
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1273
|
-
default:
|
|
1274
|
-
const parsedBody = parsedOutput.body;
|
|
1275
|
-
return throwDefaultError({
|
|
1276
|
-
output,
|
|
1277
|
-
parsedBody,
|
|
1278
|
-
errorCode,
|
|
1279
|
-
});
|
|
1280
|
-
}
|
|
1281
|
-
};
|
|
1282
|
-
const de_UnregisterConnectorCommand = async (output, context) => {
|
|
1283
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1284
|
-
return de_UnregisterConnectorCommandError(output, context);
|
|
1285
|
-
}
|
|
1286
|
-
const contents = (0, smithy_client_1.map)({
|
|
1287
|
-
$metadata: deserializeMetadata(output),
|
|
1288
|
-
});
|
|
1289
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1290
|
-
return contents;
|
|
1291
|
-
};
|
|
1292
|
-
exports.de_UnregisterConnectorCommand = de_UnregisterConnectorCommand;
|
|
1293
|
-
const de_UnregisterConnectorCommandError = async (output, context) => {
|
|
1294
|
-
const parsedOutput = {
|
|
1295
|
-
...output,
|
|
1296
|
-
body: await parseErrorBody(output.body, context),
|
|
1297
|
-
};
|
|
1298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1299
|
-
switch (errorCode) {
|
|
1300
|
-
case "ConflictException":
|
|
1301
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1302
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1303
|
-
case "InternalServerException":
|
|
1304
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1305
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1306
|
-
case "ResourceNotFoundException":
|
|
1307
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1308
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1309
|
-
default:
|
|
1310
|
-
const parsedBody = parsedOutput.body;
|
|
1311
|
-
return throwDefaultError({
|
|
1312
|
-
output,
|
|
1313
|
-
parsedBody,
|
|
1314
|
-
errorCode,
|
|
1315
|
-
});
|
|
1316
|
-
}
|
|
1317
|
-
};
|
|
1318
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1319
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1320
|
-
return de_UntagResourceCommandError(output, context);
|
|
1321
|
-
}
|
|
1322
|
-
const contents = (0, smithy_client_1.map)({
|
|
1323
|
-
$metadata: deserializeMetadata(output),
|
|
1324
|
-
});
|
|
1325
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1326
|
-
return contents;
|
|
1327
|
-
};
|
|
1328
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1329
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1330
|
-
const parsedOutput = {
|
|
1331
|
-
...output,
|
|
1332
|
-
body: await parseErrorBody(output.body, context),
|
|
1333
|
-
};
|
|
1334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1335
|
-
switch (errorCode) {
|
|
1336
|
-
case "InternalServerException":
|
|
1337
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1338
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1339
|
-
case "ResourceNotFoundException":
|
|
1340
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1341
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1342
|
-
case "ValidationException":
|
|
1343
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
1344
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1345
|
-
default:
|
|
1346
|
-
const parsedBody = parsedOutput.body;
|
|
1347
|
-
return throwDefaultError({
|
|
1348
|
-
output,
|
|
1349
|
-
parsedBody,
|
|
1350
|
-
errorCode,
|
|
1351
|
-
});
|
|
1352
|
-
}
|
|
1353
|
-
};
|
|
1354
|
-
const de_UpdateConnectorProfileCommand = async (output, context) => {
|
|
1355
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1356
|
-
return de_UpdateConnectorProfileCommandError(output, context);
|
|
1357
|
-
}
|
|
1358
|
-
const contents = (0, smithy_client_1.map)({
|
|
1359
|
-
$metadata: deserializeMetadata(output),
|
|
1360
|
-
});
|
|
1361
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1362
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1363
|
-
connectorProfileArn: smithy_client_1.expectString,
|
|
1364
|
-
});
|
|
1365
|
-
Object.assign(contents, doc);
|
|
1366
|
-
return contents;
|
|
1367
|
-
};
|
|
1368
|
-
exports.de_UpdateConnectorProfileCommand = de_UpdateConnectorProfileCommand;
|
|
1369
|
-
const de_UpdateConnectorProfileCommandError = async (output, context) => {
|
|
1370
|
-
const parsedOutput = {
|
|
1371
|
-
...output,
|
|
1372
|
-
body: await parseErrorBody(output.body, context),
|
|
1373
|
-
};
|
|
1374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
|
-
switch (errorCode) {
|
|
1376
|
-
case "ConflictException":
|
|
1377
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1378
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "ConnectorAuthenticationException":
|
|
1380
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
1381
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "InternalServerException":
|
|
1383
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1384
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "ResourceNotFoundException":
|
|
1386
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1387
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1388
|
-
case "ValidationException":
|
|
1389
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
1390
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1391
|
-
default:
|
|
1392
|
-
const parsedBody = parsedOutput.body;
|
|
1393
|
-
return throwDefaultError({
|
|
1394
|
-
output,
|
|
1395
|
-
parsedBody,
|
|
1396
|
-
errorCode,
|
|
1397
|
-
});
|
|
1398
|
-
}
|
|
1399
|
-
};
|
|
1400
|
-
const de_UpdateConnectorRegistrationCommand = async (output, context) => {
|
|
1401
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1402
|
-
return de_UpdateConnectorRegistrationCommandError(output, context);
|
|
1403
|
-
}
|
|
1404
|
-
const contents = (0, smithy_client_1.map)({
|
|
1405
|
-
$metadata: deserializeMetadata(output),
|
|
1406
|
-
});
|
|
1407
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1408
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1409
|
-
connectorArn: smithy_client_1.expectString,
|
|
1410
|
-
});
|
|
1411
|
-
Object.assign(contents, doc);
|
|
1412
|
-
return contents;
|
|
1413
|
-
};
|
|
1414
|
-
exports.de_UpdateConnectorRegistrationCommand = de_UpdateConnectorRegistrationCommand;
|
|
1415
|
-
const de_UpdateConnectorRegistrationCommandError = async (output, context) => {
|
|
1416
|
-
const parsedOutput = {
|
|
1417
|
-
...output,
|
|
1418
|
-
body: await parseErrorBody(output.body, context),
|
|
1419
|
-
};
|
|
1420
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1421
|
-
switch (errorCode) {
|
|
1422
|
-
case "AccessDeniedException":
|
|
1423
|
-
case "com.amazonaws.appflow#AccessDeniedException":
|
|
1424
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "ConflictException":
|
|
1426
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1427
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "ConnectorAuthenticationException":
|
|
1429
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
1430
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ConnectorServerException":
|
|
1432
|
-
case "com.amazonaws.appflow#ConnectorServerException":
|
|
1433
|
-
throw await de_ConnectorServerExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "InternalServerException":
|
|
1435
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1436
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "ResourceNotFoundException":
|
|
1438
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1439
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "ServiceQuotaExceededException":
|
|
1441
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
1442
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1443
|
-
case "ThrottlingException":
|
|
1444
|
-
case "com.amazonaws.appflow#ThrottlingException":
|
|
1445
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1446
|
-
case "ValidationException":
|
|
1447
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
1448
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1449
|
-
default:
|
|
1450
|
-
const parsedBody = parsedOutput.body;
|
|
1451
|
-
return throwDefaultError({
|
|
1452
|
-
output,
|
|
1453
|
-
parsedBody,
|
|
1454
|
-
errorCode,
|
|
1455
|
-
});
|
|
1456
|
-
}
|
|
1457
|
-
};
|
|
1458
|
-
const de_UpdateFlowCommand = async (output, context) => {
|
|
1459
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1460
|
-
return de_UpdateFlowCommandError(output, context);
|
|
1461
|
-
}
|
|
1462
|
-
const contents = (0, smithy_client_1.map)({
|
|
1463
|
-
$metadata: deserializeMetadata(output),
|
|
1464
|
-
});
|
|
1465
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1466
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1467
|
-
flowStatus: smithy_client_1.expectString,
|
|
1468
|
-
});
|
|
1469
|
-
Object.assign(contents, doc);
|
|
1470
|
-
return contents;
|
|
1471
|
-
};
|
|
1472
|
-
exports.de_UpdateFlowCommand = de_UpdateFlowCommand;
|
|
1473
|
-
const de_UpdateFlowCommandError = async (output, context) => {
|
|
1474
|
-
const parsedOutput = {
|
|
1475
|
-
...output,
|
|
1476
|
-
body: await parseErrorBody(output.body, context),
|
|
1477
|
-
};
|
|
1478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1479
|
-
switch (errorCode) {
|
|
1480
|
-
case "AccessDeniedException":
|
|
1481
|
-
case "com.amazonaws.appflow#AccessDeniedException":
|
|
1482
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1483
|
-
case "ConflictException":
|
|
1484
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
1485
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1486
|
-
case "ConnectorAuthenticationException":
|
|
1487
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
1488
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
1489
|
-
case "ConnectorServerException":
|
|
1490
|
-
case "com.amazonaws.appflow#ConnectorServerException":
|
|
1491
|
-
throw await de_ConnectorServerExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "InternalServerException":
|
|
1493
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
1494
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "ResourceNotFoundException":
|
|
1496
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1497
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "ServiceQuotaExceededException":
|
|
1499
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
1500
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "ValidationException":
|
|
1502
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
1503
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1504
|
-
default:
|
|
1505
|
-
const parsedBody = parsedOutput.body;
|
|
1506
|
-
return throwDefaultError({
|
|
1507
|
-
output,
|
|
1508
|
-
parsedBody,
|
|
1509
|
-
errorCode,
|
|
1510
|
-
});
|
|
1511
|
-
}
|
|
1512
|
-
};
|
|
1513
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(AppflowServiceException_1.AppflowServiceException);
|
|
1514
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1515
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1516
|
-
const data = parsedOutput.body;
|
|
1517
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1518
|
-
message: smithy_client_1.expectString,
|
|
1519
|
-
});
|
|
1520
|
-
Object.assign(contents, doc);
|
|
1521
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1522
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1523
|
-
...contents,
|
|
1524
|
-
});
|
|
1525
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1526
|
-
};
|
|
1527
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1528
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1529
|
-
const data = parsedOutput.body;
|
|
1530
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1531
|
-
message: smithy_client_1.expectString,
|
|
1532
|
-
});
|
|
1533
|
-
Object.assign(contents, doc);
|
|
1534
|
-
const exception = new models_0_1.ConflictException({
|
|
1535
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1536
|
-
...contents,
|
|
1537
|
-
});
|
|
1538
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1539
|
-
};
|
|
1540
|
-
const de_ConnectorAuthenticationExceptionRes = async (parsedOutput, context) => {
|
|
1541
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1542
|
-
const data = parsedOutput.body;
|
|
1543
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1544
|
-
message: smithy_client_1.expectString,
|
|
1545
|
-
});
|
|
1546
|
-
Object.assign(contents, doc);
|
|
1547
|
-
const exception = new models_0_1.ConnectorAuthenticationException({
|
|
1548
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1549
|
-
...contents,
|
|
1550
|
-
});
|
|
1551
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1552
|
-
};
|
|
1553
|
-
const de_ConnectorServerExceptionRes = async (parsedOutput, context) => {
|
|
1554
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1555
|
-
const data = parsedOutput.body;
|
|
1556
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1557
|
-
message: smithy_client_1.expectString,
|
|
1558
|
-
});
|
|
1559
|
-
Object.assign(contents, doc);
|
|
1560
|
-
const exception = new models_0_1.ConnectorServerException({
|
|
1561
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1562
|
-
...contents,
|
|
1563
|
-
});
|
|
1564
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1565
|
-
};
|
|
1566
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1567
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1568
|
-
const data = parsedOutput.body;
|
|
1569
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1570
|
-
message: smithy_client_1.expectString,
|
|
1571
|
-
});
|
|
1572
|
-
Object.assign(contents, doc);
|
|
1573
|
-
const exception = new models_0_1.InternalServerException({
|
|
1574
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1575
|
-
...contents,
|
|
1576
|
-
});
|
|
1577
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1578
|
-
};
|
|
1579
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1580
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1581
|
-
const data = parsedOutput.body;
|
|
1582
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1583
|
-
message: smithy_client_1.expectString,
|
|
1584
|
-
});
|
|
1585
|
-
Object.assign(contents, doc);
|
|
1586
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1587
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1588
|
-
...contents,
|
|
1589
|
-
});
|
|
1590
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1591
|
-
};
|
|
1592
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1593
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1594
|
-
const data = parsedOutput.body;
|
|
1595
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1596
|
-
message: smithy_client_1.expectString,
|
|
1597
|
-
});
|
|
1598
|
-
Object.assign(contents, doc);
|
|
1599
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1600
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1601
|
-
...contents,
|
|
1602
|
-
});
|
|
1603
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1604
|
-
};
|
|
1605
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1606
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1607
|
-
const data = parsedOutput.body;
|
|
1608
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1609
|
-
message: smithy_client_1.expectString,
|
|
1610
|
-
});
|
|
1611
|
-
Object.assign(contents, doc);
|
|
1612
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1613
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1614
|
-
...contents,
|
|
1615
|
-
});
|
|
1616
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1617
|
-
};
|
|
1618
|
-
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
1619
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1620
|
-
const data = parsedOutput.body;
|
|
1621
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1622
|
-
message: smithy_client_1.expectString,
|
|
1623
|
-
});
|
|
1624
|
-
Object.assign(contents, doc);
|
|
1625
|
-
const exception = new models_0_1.UnsupportedOperationException({
|
|
1626
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1627
|
-
...contents,
|
|
1628
|
-
});
|
|
1629
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1630
|
-
};
|
|
1631
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1632
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1633
|
-
const data = parsedOutput.body;
|
|
1634
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1635
|
-
message: smithy_client_1.expectString,
|
|
1636
|
-
});
|
|
1637
|
-
Object.assign(contents, doc);
|
|
1638
|
-
const exception = new models_0_1.ValidationException({
|
|
1639
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1640
|
-
...contents,
|
|
1641
|
-
});
|
|
1642
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1643
|
-
};
|
|
1644
|
-
const se_ScheduledTriggerProperties = (input, context) => {
|
|
1645
|
-
return (0, smithy_client_1.take)(input, {
|
|
1646
|
-
dataPullMode: [],
|
|
1647
|
-
firstExecutionFrom: (_) => Math.round(_.getTime() / 1000),
|
|
1648
|
-
flowErrorDeactivationThreshold: [],
|
|
1649
|
-
scheduleEndTime: (_) => Math.round(_.getTime() / 1000),
|
|
1650
|
-
scheduleExpression: [],
|
|
1651
|
-
scheduleOffset: [],
|
|
1652
|
-
scheduleStartTime: (_) => Math.round(_.getTime() / 1000),
|
|
1653
|
-
timezone: [],
|
|
1654
|
-
});
|
|
1655
|
-
};
|
|
1656
|
-
const se_TriggerConfig = (input, context) => {
|
|
1657
|
-
return (0, smithy_client_1.take)(input, {
|
|
1658
|
-
triggerProperties: (_) => se_TriggerProperties(_, context),
|
|
1659
|
-
triggerType: [],
|
|
1660
|
-
});
|
|
1661
|
-
};
|
|
1662
|
-
const se_TriggerProperties = (input, context) => {
|
|
1663
|
-
return (0, smithy_client_1.take)(input, {
|
|
1664
|
-
Scheduled: (_) => se_ScheduledTriggerProperties(_, context),
|
|
1665
|
-
});
|
|
1666
|
-
};
|
|
1667
|
-
const de_ConnectorConfiguration = (output, context) => {
|
|
1668
|
-
return (0, smithy_client_1.take)(output, {
|
|
1669
|
-
authenticationConfig: smithy_client_1._json,
|
|
1670
|
-
canUseAsDestination: smithy_client_1.expectBoolean,
|
|
1671
|
-
canUseAsSource: smithy_client_1.expectBoolean,
|
|
1672
|
-
connectorArn: smithy_client_1.expectString,
|
|
1673
|
-
connectorDescription: smithy_client_1.expectString,
|
|
1674
|
-
connectorLabel: smithy_client_1.expectString,
|
|
1675
|
-
connectorMetadata: smithy_client_1._json,
|
|
1676
|
-
connectorModes: smithy_client_1._json,
|
|
1677
|
-
connectorName: smithy_client_1.expectString,
|
|
1678
|
-
connectorOwner: smithy_client_1.expectString,
|
|
1679
|
-
connectorProvisioningConfig: smithy_client_1._json,
|
|
1680
|
-
connectorProvisioningType: smithy_client_1.expectString,
|
|
1681
|
-
connectorRuntimeSettings: smithy_client_1._json,
|
|
1682
|
-
connectorType: smithy_client_1.expectString,
|
|
1683
|
-
connectorVersion: smithy_client_1.expectString,
|
|
1684
|
-
isPrivateLinkEnabled: smithy_client_1.expectBoolean,
|
|
1685
|
-
isPrivateLinkEndpointUrlRequired: smithy_client_1.expectBoolean,
|
|
1686
|
-
logoURL: smithy_client_1.expectString,
|
|
1687
|
-
registeredAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1688
|
-
registeredBy: smithy_client_1.expectString,
|
|
1689
|
-
supportedApiVersions: smithy_client_1._json,
|
|
1690
|
-
supportedDataTransferApis: smithy_client_1._json,
|
|
1691
|
-
supportedDataTransferTypes: smithy_client_1._json,
|
|
1692
|
-
supportedDestinationConnectors: smithy_client_1._json,
|
|
1693
|
-
supportedOperators: smithy_client_1._json,
|
|
1694
|
-
supportedSchedulingFrequencies: smithy_client_1._json,
|
|
1695
|
-
supportedTriggerTypes: smithy_client_1._json,
|
|
1696
|
-
supportedWriteOperations: smithy_client_1._json,
|
|
1697
|
-
});
|
|
1698
|
-
};
|
|
1699
|
-
const de_ConnectorConfigurationsMap = (output, context) => {
|
|
1700
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1701
|
-
if (value === null) {
|
|
1702
|
-
return acc;
|
|
1703
|
-
}
|
|
1704
|
-
acc[key] = de_ConnectorConfiguration(value, context);
|
|
1705
|
-
return acc;
|
|
1706
|
-
}, {});
|
|
1707
|
-
};
|
|
1708
|
-
const de_ConnectorDetail = (output, context) => {
|
|
1709
|
-
return (0, smithy_client_1.take)(output, {
|
|
1710
|
-
applicationType: smithy_client_1.expectString,
|
|
1711
|
-
connectorDescription: smithy_client_1.expectString,
|
|
1712
|
-
connectorLabel: smithy_client_1.expectString,
|
|
1713
|
-
connectorModes: smithy_client_1._json,
|
|
1714
|
-
connectorName: smithy_client_1.expectString,
|
|
1715
|
-
connectorOwner: smithy_client_1.expectString,
|
|
1716
|
-
connectorProvisioningType: smithy_client_1.expectString,
|
|
1717
|
-
connectorType: smithy_client_1.expectString,
|
|
1718
|
-
connectorVersion: smithy_client_1.expectString,
|
|
1719
|
-
registeredAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1720
|
-
registeredBy: smithy_client_1.expectString,
|
|
1721
|
-
supportedDataTransferTypes: smithy_client_1._json,
|
|
1722
|
-
});
|
|
1723
|
-
};
|
|
1724
|
-
const de_ConnectorEntityField = (output, context) => {
|
|
1725
|
-
return (0, smithy_client_1.take)(output, {
|
|
1726
|
-
customProperties: smithy_client_1._json,
|
|
1727
|
-
defaultValue: smithy_client_1.expectString,
|
|
1728
|
-
description: smithy_client_1.expectString,
|
|
1729
|
-
destinationProperties: smithy_client_1._json,
|
|
1730
|
-
identifier: smithy_client_1.expectString,
|
|
1731
|
-
isDeprecated: smithy_client_1.expectBoolean,
|
|
1732
|
-
isPrimaryKey: smithy_client_1.expectBoolean,
|
|
1733
|
-
label: smithy_client_1.expectString,
|
|
1734
|
-
parentIdentifier: smithy_client_1.expectString,
|
|
1735
|
-
sourceProperties: smithy_client_1._json,
|
|
1736
|
-
supportedFieldTypeDetails: (_) => de_SupportedFieldTypeDetails(_, context),
|
|
1737
|
-
});
|
|
1738
|
-
};
|
|
1739
|
-
const de_ConnectorEntityFieldList = (output, context) => {
|
|
1740
|
-
const retVal = (output || [])
|
|
1741
|
-
.filter((e) => e != null)
|
|
1742
|
-
.map((entry) => {
|
|
1743
|
-
return de_ConnectorEntityField(entry, context);
|
|
1744
|
-
});
|
|
1745
|
-
return retVal;
|
|
1746
|
-
};
|
|
1747
|
-
const de_ConnectorList = (output, context) => {
|
|
1748
|
-
const retVal = (output || [])
|
|
1749
|
-
.filter((e) => e != null)
|
|
1750
|
-
.map((entry) => {
|
|
1751
|
-
return de_ConnectorDetail(entry, context);
|
|
1752
|
-
});
|
|
1753
|
-
return retVal;
|
|
1754
|
-
};
|
|
1755
|
-
const de_ConnectorProfile = (output, context) => {
|
|
1756
|
-
return (0, smithy_client_1.take)(output, {
|
|
1757
|
-
connectionMode: smithy_client_1.expectString,
|
|
1758
|
-
connectorLabel: smithy_client_1.expectString,
|
|
1759
|
-
connectorProfileArn: smithy_client_1.expectString,
|
|
1760
|
-
connectorProfileName: smithy_client_1.expectString,
|
|
1761
|
-
connectorProfileProperties: smithy_client_1._json,
|
|
1762
|
-
connectorType: smithy_client_1.expectString,
|
|
1763
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1764
|
-
credentialsArn: smithy_client_1.expectString,
|
|
1765
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1766
|
-
privateConnectionProvisioningState: smithy_client_1._json,
|
|
1767
|
-
});
|
|
1768
|
-
};
|
|
1769
|
-
const de_ConnectorProfileDetailList = (output, context) => {
|
|
1770
|
-
const retVal = (output || [])
|
|
1771
|
-
.filter((e) => e != null)
|
|
1772
|
-
.map((entry) => {
|
|
1773
|
-
return de_ConnectorProfile(entry, context);
|
|
1774
|
-
});
|
|
1775
|
-
return retVal;
|
|
1776
|
-
};
|
|
1777
|
-
const de_ExecutionDetails = (output, context) => {
|
|
1778
|
-
return (0, smithy_client_1.take)(output, {
|
|
1779
|
-
mostRecentExecutionMessage: smithy_client_1.expectString,
|
|
1780
|
-
mostRecentExecutionStatus: smithy_client_1.expectString,
|
|
1781
|
-
mostRecentExecutionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1782
|
-
});
|
|
1783
|
-
};
|
|
1784
|
-
const de_ExecutionRecord = (output, context) => {
|
|
1785
|
-
return (0, smithy_client_1.take)(output, {
|
|
1786
|
-
dataPullEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1787
|
-
dataPullStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1788
|
-
executionId: smithy_client_1.expectString,
|
|
1789
|
-
executionResult: smithy_client_1._json,
|
|
1790
|
-
executionStatus: smithy_client_1.expectString,
|
|
1791
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1792
|
-
metadataCatalogDetails: smithy_client_1._json,
|
|
1793
|
-
startedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1794
|
-
});
|
|
1795
|
-
};
|
|
1796
|
-
const de_FieldTypeDetails = (output, context) => {
|
|
1797
|
-
return (0, smithy_client_1.take)(output, {
|
|
1798
|
-
fieldLengthRange: (_) => de_Range(_, context),
|
|
1799
|
-
fieldType: smithy_client_1.expectString,
|
|
1800
|
-
fieldValueRange: (_) => de_Range(_, context),
|
|
1801
|
-
filterOperators: smithy_client_1._json,
|
|
1802
|
-
supportedDateFormat: smithy_client_1.expectString,
|
|
1803
|
-
supportedValues: smithy_client_1._json,
|
|
1804
|
-
valueRegexPattern: smithy_client_1.expectString,
|
|
1805
|
-
});
|
|
1806
|
-
};
|
|
1807
|
-
const de_FlowDefinition = (output, context) => {
|
|
1808
|
-
return (0, smithy_client_1.take)(output, {
|
|
1809
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1810
|
-
createdBy: smithy_client_1.expectString,
|
|
1811
|
-
description: smithy_client_1.expectString,
|
|
1812
|
-
destinationConnectorLabel: smithy_client_1.expectString,
|
|
1813
|
-
destinationConnectorType: smithy_client_1.expectString,
|
|
1814
|
-
flowArn: smithy_client_1.expectString,
|
|
1815
|
-
flowName: smithy_client_1.expectString,
|
|
1816
|
-
flowStatus: smithy_client_1.expectString,
|
|
1817
|
-
lastRunExecutionDetails: (_) => de_ExecutionDetails(_, context),
|
|
1818
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1819
|
-
lastUpdatedBy: smithy_client_1.expectString,
|
|
1820
|
-
sourceConnectorLabel: smithy_client_1.expectString,
|
|
1821
|
-
sourceConnectorType: smithy_client_1.expectString,
|
|
1822
|
-
tags: smithy_client_1._json,
|
|
1823
|
-
triggerType: smithy_client_1.expectString,
|
|
1824
|
-
});
|
|
1825
|
-
};
|
|
1826
|
-
const de_FlowExecutionList = (output, context) => {
|
|
1827
|
-
const retVal = (output || [])
|
|
1828
|
-
.filter((e) => e != null)
|
|
1829
|
-
.map((entry) => {
|
|
1830
|
-
return de_ExecutionRecord(entry, context);
|
|
1831
|
-
});
|
|
1832
|
-
return retVal;
|
|
1833
|
-
};
|
|
1834
|
-
const de_FlowList = (output, context) => {
|
|
1835
|
-
const retVal = (output || [])
|
|
1836
|
-
.filter((e) => e != null)
|
|
1837
|
-
.map((entry) => {
|
|
1838
|
-
return de_FlowDefinition(entry, context);
|
|
1839
|
-
});
|
|
1840
|
-
return retVal;
|
|
1841
|
-
};
|
|
1842
|
-
const de_Range = (output, context) => {
|
|
1843
|
-
return (0, smithy_client_1.take)(output, {
|
|
1844
|
-
maximum: smithy_client_1.limitedParseDouble,
|
|
1845
|
-
minimum: smithy_client_1.limitedParseDouble,
|
|
1846
|
-
});
|
|
1847
|
-
};
|
|
1848
|
-
const de_ScheduledTriggerProperties = (output, context) => {
|
|
1849
|
-
return (0, smithy_client_1.take)(output, {
|
|
1850
|
-
dataPullMode: smithy_client_1.expectString,
|
|
1851
|
-
firstExecutionFrom: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1852
|
-
flowErrorDeactivationThreshold: smithy_client_1.expectInt32,
|
|
1853
|
-
scheduleEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1854
|
-
scheduleExpression: smithy_client_1.expectString,
|
|
1855
|
-
scheduleOffset: smithy_client_1.expectLong,
|
|
1856
|
-
scheduleStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1857
|
-
timezone: smithy_client_1.expectString,
|
|
1858
|
-
});
|
|
1859
|
-
};
|
|
1860
|
-
const de_SupportedFieldTypeDetails = (output, context) => {
|
|
1861
|
-
return (0, smithy_client_1.take)(output, {
|
|
1862
|
-
v1: (_) => de_FieldTypeDetails(_, context),
|
|
1863
|
-
});
|
|
1864
|
-
};
|
|
1865
|
-
const de_TriggerConfig = (output, context) => {
|
|
1866
|
-
return (0, smithy_client_1.take)(output, {
|
|
1867
|
-
triggerProperties: (_) => de_TriggerProperties(_, context),
|
|
1868
|
-
triggerType: smithy_client_1.expectString,
|
|
1869
|
-
});
|
|
1870
|
-
};
|
|
1871
|
-
const de_TriggerProperties = (output, context) => {
|
|
1872
|
-
return (0, smithy_client_1.take)(output, {
|
|
1873
|
-
Scheduled: (_) => de_ScheduledTriggerProperties(_, context),
|
|
1874
|
-
});
|
|
1875
|
-
};
|
|
1876
|
-
const deserializeMetadata = (output) => ({
|
|
1877
|
-
httpStatusCode: output.statusCode,
|
|
1878
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1879
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1880
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1881
|
-
});
|
|
1882
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1883
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1884
|
-
value !== null &&
|
|
1885
|
-
value !== "" &&
|
|
1886
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1887
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1888
|
-
const _tK = "tagKeys";
|
|
1889
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1890
|
-
if (encoded.length) {
|
|
1891
|
-
return JSON.parse(encoded);
|
|
1892
|
-
}
|
|
1893
|
-
return {};
|
|
1894
|
-
});
|
|
1895
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1896
|
-
const value = await parseBody(errorBody, context);
|
|
1897
|
-
value.message = value.message ?? value.Message;
|
|
1898
|
-
return value;
|
|
1899
|
-
};
|
|
1900
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1901
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1902
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1903
|
-
let cleanValue = rawValue;
|
|
1904
|
-
if (typeof cleanValue === "number") {
|
|
1905
|
-
cleanValue = cleanValue.toString();
|
|
1906
|
-
}
|
|
1907
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1908
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1909
|
-
}
|
|
1910
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1911
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1912
|
-
}
|
|
1913
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1914
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1915
|
-
}
|
|
1916
|
-
return cleanValue;
|
|
1917
|
-
};
|
|
1918
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1919
|
-
if (headerKey !== undefined) {
|
|
1920
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1921
|
-
}
|
|
1922
|
-
if (data.code !== undefined) {
|
|
1923
|
-
return sanitizeErrorCode(data.code);
|
|
1924
|
-
}
|
|
1925
|
-
if (data["__type"] !== undefined) {
|
|
1926
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1927
|
-
}
|
|
1928
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|