@aws-sdk/client-appflow 3.928.0 → 3.929.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/index.js +2103 -1536
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/AppflowClient.js +2 -0
- package/dist-es/commands/CancelFlowExecutionsCommand.js +3 -9
- package/dist-es/commands/CreateConnectorProfileCommand.js +3 -10
- package/dist-es/commands/CreateFlowCommand.js +3 -9
- package/dist-es/commands/DeleteConnectorProfileCommand.js +3 -9
- package/dist-es/commands/DeleteFlowCommand.js +3 -9
- package/dist-es/commands/DescribeConnectorCommand.js +3 -9
- package/dist-es/commands/DescribeConnectorEntityCommand.js +3 -9
- package/dist-es/commands/DescribeConnectorProfilesCommand.js +3 -9
- package/dist-es/commands/DescribeConnectorsCommand.js +3 -9
- package/dist-es/commands/DescribeFlowCommand.js +3 -9
- package/dist-es/commands/DescribeFlowExecutionRecordsCommand.js +3 -9
- package/dist-es/commands/ListConnectorEntitiesCommand.js +3 -9
- package/dist-es/commands/ListConnectorsCommand.js +3 -9
- package/dist-es/commands/ListFlowsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/RegisterConnectorCommand.js +3 -9
- package/dist-es/commands/ResetConnectorMetadataCacheCommand.js +3 -9
- package/dist-es/commands/StartFlowCommand.js +3 -9
- package/dist-es/commands/StopFlowCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UnregisterConnectorCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateConnectorProfileCommand.js +3 -10
- package/dist-es/commands/UpdateConnectorRegistrationCommand.js +3 -9
- package/dist-es/commands/UpdateFlowCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -148
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +2052 -0
- package/dist-types/AppflowClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -108
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +295 -0
- package/dist-types/ts3.4/AppflowClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -81
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +302 -0
- package/package.json +2 -3
- package/dist-es/protocols/Aws_restJson1.js +0 -1159
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -227
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -305
|
@@ -1,1159 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { AppflowServiceException as __BaseException } from "../models/AppflowServiceException";
|
|
6
|
-
import { AccessDeniedException, ConflictException, ConnectorAuthenticationException, ConnectorServerException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnsupportedOperationException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_CancelFlowExecutionsCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/cancel-flow-executions");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
executionIds: (_) => _json(_),
|
|
16
|
-
flowName: [],
|
|
17
|
-
}));
|
|
18
|
-
b.m("POST").h(headers).b(body);
|
|
19
|
-
return b.build();
|
|
20
|
-
};
|
|
21
|
-
export const se_CreateConnectorProfileCommand = async (input, context) => {
|
|
22
|
-
const b = rb(input, context);
|
|
23
|
-
const headers = {
|
|
24
|
-
"content-type": "application/json",
|
|
25
|
-
};
|
|
26
|
-
b.bp("/create-connector-profile");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(take(input, {
|
|
29
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
30
|
-
connectionMode: [],
|
|
31
|
-
connectorLabel: [],
|
|
32
|
-
connectorProfileConfig: (_) => _json(_),
|
|
33
|
-
connectorProfileName: [],
|
|
34
|
-
connectorType: [],
|
|
35
|
-
kmsArn: [],
|
|
36
|
-
}));
|
|
37
|
-
b.m("POST").h(headers).b(body);
|
|
38
|
-
return b.build();
|
|
39
|
-
};
|
|
40
|
-
export const se_CreateFlowCommand = async (input, context) => {
|
|
41
|
-
const b = rb(input, context);
|
|
42
|
-
const headers = {
|
|
43
|
-
"content-type": "application/json",
|
|
44
|
-
};
|
|
45
|
-
b.bp("/create-flow");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify(take(input, {
|
|
48
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
49
|
-
description: [],
|
|
50
|
-
destinationFlowConfigList: (_) => _json(_),
|
|
51
|
-
flowName: [],
|
|
52
|
-
kmsArn: [],
|
|
53
|
-
metadataCatalogConfig: (_) => _json(_),
|
|
54
|
-
sourceFlowConfig: (_) => _json(_),
|
|
55
|
-
tags: (_) => _json(_),
|
|
56
|
-
tasks: (_) => _json(_),
|
|
57
|
-
triggerConfig: (_) => se_TriggerConfig(_, context),
|
|
58
|
-
}));
|
|
59
|
-
b.m("POST").h(headers).b(body);
|
|
60
|
-
return b.build();
|
|
61
|
-
};
|
|
62
|
-
export const se_DeleteConnectorProfileCommand = async (input, context) => {
|
|
63
|
-
const b = rb(input, context);
|
|
64
|
-
const headers = {
|
|
65
|
-
"content-type": "application/json",
|
|
66
|
-
};
|
|
67
|
-
b.bp("/delete-connector-profile");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(take(input, {
|
|
70
|
-
connectorProfileName: [],
|
|
71
|
-
forceDelete: [],
|
|
72
|
-
}));
|
|
73
|
-
b.m("POST").h(headers).b(body);
|
|
74
|
-
return b.build();
|
|
75
|
-
};
|
|
76
|
-
export const se_DeleteFlowCommand = async (input, context) => {
|
|
77
|
-
const b = rb(input, context);
|
|
78
|
-
const headers = {
|
|
79
|
-
"content-type": "application/json",
|
|
80
|
-
};
|
|
81
|
-
b.bp("/delete-flow");
|
|
82
|
-
let body;
|
|
83
|
-
body = JSON.stringify(take(input, {
|
|
84
|
-
flowName: [],
|
|
85
|
-
forceDelete: [],
|
|
86
|
-
}));
|
|
87
|
-
b.m("POST").h(headers).b(body);
|
|
88
|
-
return b.build();
|
|
89
|
-
};
|
|
90
|
-
export const se_DescribeConnectorCommand = async (input, context) => {
|
|
91
|
-
const b = rb(input, context);
|
|
92
|
-
const headers = {
|
|
93
|
-
"content-type": "application/json",
|
|
94
|
-
};
|
|
95
|
-
b.bp("/describe-connector");
|
|
96
|
-
let body;
|
|
97
|
-
body = JSON.stringify(take(input, {
|
|
98
|
-
connectorLabel: [],
|
|
99
|
-
connectorType: [],
|
|
100
|
-
}));
|
|
101
|
-
b.m("POST").h(headers).b(body);
|
|
102
|
-
return b.build();
|
|
103
|
-
};
|
|
104
|
-
export const se_DescribeConnectorEntityCommand = async (input, context) => {
|
|
105
|
-
const b = rb(input, context);
|
|
106
|
-
const headers = {
|
|
107
|
-
"content-type": "application/json",
|
|
108
|
-
};
|
|
109
|
-
b.bp("/describe-connector-entity");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(take(input, {
|
|
112
|
-
apiVersion: [],
|
|
113
|
-
connectorEntityName: [],
|
|
114
|
-
connectorProfileName: [],
|
|
115
|
-
connectorType: [],
|
|
116
|
-
}));
|
|
117
|
-
b.m("POST").h(headers).b(body);
|
|
118
|
-
return b.build();
|
|
119
|
-
};
|
|
120
|
-
export const se_DescribeConnectorProfilesCommand = async (input, context) => {
|
|
121
|
-
const b = rb(input, context);
|
|
122
|
-
const headers = {
|
|
123
|
-
"content-type": "application/json",
|
|
124
|
-
};
|
|
125
|
-
b.bp("/describe-connector-profiles");
|
|
126
|
-
let body;
|
|
127
|
-
body = JSON.stringify(take(input, {
|
|
128
|
-
connectorLabel: [],
|
|
129
|
-
connectorProfileNames: (_) => _json(_),
|
|
130
|
-
connectorType: [],
|
|
131
|
-
maxResults: [],
|
|
132
|
-
nextToken: [],
|
|
133
|
-
}));
|
|
134
|
-
b.m("POST").h(headers).b(body);
|
|
135
|
-
return b.build();
|
|
136
|
-
};
|
|
137
|
-
export const se_DescribeConnectorsCommand = async (input, context) => {
|
|
138
|
-
const b = rb(input, context);
|
|
139
|
-
const headers = {
|
|
140
|
-
"content-type": "application/json",
|
|
141
|
-
};
|
|
142
|
-
b.bp("/describe-connectors");
|
|
143
|
-
let body;
|
|
144
|
-
body = JSON.stringify(take(input, {
|
|
145
|
-
connectorTypes: (_) => _json(_),
|
|
146
|
-
maxResults: [],
|
|
147
|
-
nextToken: [],
|
|
148
|
-
}));
|
|
149
|
-
b.m("POST").h(headers).b(body);
|
|
150
|
-
return b.build();
|
|
151
|
-
};
|
|
152
|
-
export const se_DescribeFlowCommand = async (input, context) => {
|
|
153
|
-
const b = rb(input, context);
|
|
154
|
-
const headers = {
|
|
155
|
-
"content-type": "application/json",
|
|
156
|
-
};
|
|
157
|
-
b.bp("/describe-flow");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(take(input, {
|
|
160
|
-
flowName: [],
|
|
161
|
-
}));
|
|
162
|
-
b.m("POST").h(headers).b(body);
|
|
163
|
-
return b.build();
|
|
164
|
-
};
|
|
165
|
-
export const se_DescribeFlowExecutionRecordsCommand = async (input, context) => {
|
|
166
|
-
const b = rb(input, context);
|
|
167
|
-
const headers = {
|
|
168
|
-
"content-type": "application/json",
|
|
169
|
-
};
|
|
170
|
-
b.bp("/describe-flow-execution-records");
|
|
171
|
-
let body;
|
|
172
|
-
body = JSON.stringify(take(input, {
|
|
173
|
-
flowName: [],
|
|
174
|
-
maxResults: [],
|
|
175
|
-
nextToken: [],
|
|
176
|
-
}));
|
|
177
|
-
b.m("POST").h(headers).b(body);
|
|
178
|
-
return b.build();
|
|
179
|
-
};
|
|
180
|
-
export const se_ListConnectorEntitiesCommand = async (input, context) => {
|
|
181
|
-
const b = rb(input, context);
|
|
182
|
-
const headers = {
|
|
183
|
-
"content-type": "application/json",
|
|
184
|
-
};
|
|
185
|
-
b.bp("/list-connector-entities");
|
|
186
|
-
let body;
|
|
187
|
-
body = JSON.stringify(take(input, {
|
|
188
|
-
apiVersion: [],
|
|
189
|
-
connectorProfileName: [],
|
|
190
|
-
connectorType: [],
|
|
191
|
-
entitiesPath: [],
|
|
192
|
-
maxResults: [],
|
|
193
|
-
nextToken: [],
|
|
194
|
-
}));
|
|
195
|
-
b.m("POST").h(headers).b(body);
|
|
196
|
-
return b.build();
|
|
197
|
-
};
|
|
198
|
-
export const se_ListConnectorsCommand = async (input, context) => {
|
|
199
|
-
const b = rb(input, context);
|
|
200
|
-
const headers = {
|
|
201
|
-
"content-type": "application/json",
|
|
202
|
-
};
|
|
203
|
-
b.bp("/list-connectors");
|
|
204
|
-
let body;
|
|
205
|
-
body = JSON.stringify(take(input, {
|
|
206
|
-
maxResults: [],
|
|
207
|
-
nextToken: [],
|
|
208
|
-
}));
|
|
209
|
-
b.m("POST").h(headers).b(body);
|
|
210
|
-
return b.build();
|
|
211
|
-
};
|
|
212
|
-
export const se_ListFlowsCommand = async (input, context) => {
|
|
213
|
-
const b = rb(input, context);
|
|
214
|
-
const headers = {
|
|
215
|
-
"content-type": "application/json",
|
|
216
|
-
};
|
|
217
|
-
b.bp("/list-flows");
|
|
218
|
-
let body;
|
|
219
|
-
body = JSON.stringify(take(input, {
|
|
220
|
-
maxResults: [],
|
|
221
|
-
nextToken: [],
|
|
222
|
-
}));
|
|
223
|
-
b.m("POST").h(headers).b(body);
|
|
224
|
-
return b.build();
|
|
225
|
-
};
|
|
226
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
227
|
-
const b = rb(input, context);
|
|
228
|
-
const headers = {};
|
|
229
|
-
b.bp("/tags/{resourceArn}");
|
|
230
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
231
|
-
let body;
|
|
232
|
-
b.m("GET").h(headers).b(body);
|
|
233
|
-
return b.build();
|
|
234
|
-
};
|
|
235
|
-
export const se_RegisterConnectorCommand = async (input, context) => {
|
|
236
|
-
const b = rb(input, context);
|
|
237
|
-
const headers = {
|
|
238
|
-
"content-type": "application/json",
|
|
239
|
-
};
|
|
240
|
-
b.bp("/register-connector");
|
|
241
|
-
let body;
|
|
242
|
-
body = JSON.stringify(take(input, {
|
|
243
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
244
|
-
connectorLabel: [],
|
|
245
|
-
connectorProvisioningConfig: (_) => _json(_),
|
|
246
|
-
connectorProvisioningType: [],
|
|
247
|
-
description: [],
|
|
248
|
-
}));
|
|
249
|
-
b.m("POST").h(headers).b(body);
|
|
250
|
-
return b.build();
|
|
251
|
-
};
|
|
252
|
-
export const se_ResetConnectorMetadataCacheCommand = async (input, context) => {
|
|
253
|
-
const b = rb(input, context);
|
|
254
|
-
const headers = {
|
|
255
|
-
"content-type": "application/json",
|
|
256
|
-
};
|
|
257
|
-
b.bp("/reset-connector-metadata-cache");
|
|
258
|
-
let body;
|
|
259
|
-
body = JSON.stringify(take(input, {
|
|
260
|
-
apiVersion: [],
|
|
261
|
-
connectorEntityName: [],
|
|
262
|
-
connectorProfileName: [],
|
|
263
|
-
connectorType: [],
|
|
264
|
-
entitiesPath: [],
|
|
265
|
-
}));
|
|
266
|
-
b.m("POST").h(headers).b(body);
|
|
267
|
-
return b.build();
|
|
268
|
-
};
|
|
269
|
-
export const se_StartFlowCommand = async (input, context) => {
|
|
270
|
-
const b = rb(input, context);
|
|
271
|
-
const headers = {
|
|
272
|
-
"content-type": "application/json",
|
|
273
|
-
};
|
|
274
|
-
b.bp("/start-flow");
|
|
275
|
-
let body;
|
|
276
|
-
body = JSON.stringify(take(input, {
|
|
277
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
278
|
-
flowName: [],
|
|
279
|
-
}));
|
|
280
|
-
b.m("POST").h(headers).b(body);
|
|
281
|
-
return b.build();
|
|
282
|
-
};
|
|
283
|
-
export const se_StopFlowCommand = async (input, context) => {
|
|
284
|
-
const b = rb(input, context);
|
|
285
|
-
const headers = {
|
|
286
|
-
"content-type": "application/json",
|
|
287
|
-
};
|
|
288
|
-
b.bp("/stop-flow");
|
|
289
|
-
let body;
|
|
290
|
-
body = JSON.stringify(take(input, {
|
|
291
|
-
flowName: [],
|
|
292
|
-
}));
|
|
293
|
-
b.m("POST").h(headers).b(body);
|
|
294
|
-
return b.build();
|
|
295
|
-
};
|
|
296
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
297
|
-
const b = rb(input, context);
|
|
298
|
-
const headers = {
|
|
299
|
-
"content-type": "application/json",
|
|
300
|
-
};
|
|
301
|
-
b.bp("/tags/{resourceArn}");
|
|
302
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
303
|
-
let body;
|
|
304
|
-
body = JSON.stringify(take(input, {
|
|
305
|
-
tags: (_) => _json(_),
|
|
306
|
-
}));
|
|
307
|
-
b.m("POST").h(headers).b(body);
|
|
308
|
-
return b.build();
|
|
309
|
-
};
|
|
310
|
-
export const se_UnregisterConnectorCommand = async (input, context) => {
|
|
311
|
-
const b = rb(input, context);
|
|
312
|
-
const headers = {
|
|
313
|
-
"content-type": "application/json",
|
|
314
|
-
};
|
|
315
|
-
b.bp("/unregister-connector");
|
|
316
|
-
let body;
|
|
317
|
-
body = JSON.stringify(take(input, {
|
|
318
|
-
connectorLabel: [],
|
|
319
|
-
forceDelete: [],
|
|
320
|
-
}));
|
|
321
|
-
b.m("POST").h(headers).b(body);
|
|
322
|
-
return b.build();
|
|
323
|
-
};
|
|
324
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
325
|
-
const b = rb(input, context);
|
|
326
|
-
const headers = {};
|
|
327
|
-
b.bp("/tags/{resourceArn}");
|
|
328
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
329
|
-
const query = map({
|
|
330
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
331
|
-
});
|
|
332
|
-
let body;
|
|
333
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
334
|
-
return b.build();
|
|
335
|
-
};
|
|
336
|
-
export const se_UpdateConnectorProfileCommand = async (input, context) => {
|
|
337
|
-
const b = rb(input, context);
|
|
338
|
-
const headers = {
|
|
339
|
-
"content-type": "application/json",
|
|
340
|
-
};
|
|
341
|
-
b.bp("/update-connector-profile");
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify(take(input, {
|
|
344
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
345
|
-
connectionMode: [],
|
|
346
|
-
connectorProfileConfig: (_) => _json(_),
|
|
347
|
-
connectorProfileName: [],
|
|
348
|
-
}));
|
|
349
|
-
b.m("POST").h(headers).b(body);
|
|
350
|
-
return b.build();
|
|
351
|
-
};
|
|
352
|
-
export const se_UpdateConnectorRegistrationCommand = async (input, context) => {
|
|
353
|
-
const b = rb(input, context);
|
|
354
|
-
const headers = {
|
|
355
|
-
"content-type": "application/json",
|
|
356
|
-
};
|
|
357
|
-
b.bp("/update-connector-registration");
|
|
358
|
-
let body;
|
|
359
|
-
body = JSON.stringify(take(input, {
|
|
360
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
361
|
-
connectorLabel: [],
|
|
362
|
-
connectorProvisioningConfig: (_) => _json(_),
|
|
363
|
-
description: [],
|
|
364
|
-
}));
|
|
365
|
-
b.m("POST").h(headers).b(body);
|
|
366
|
-
return b.build();
|
|
367
|
-
};
|
|
368
|
-
export const se_UpdateFlowCommand = async (input, context) => {
|
|
369
|
-
const b = rb(input, context);
|
|
370
|
-
const headers = {
|
|
371
|
-
"content-type": "application/json",
|
|
372
|
-
};
|
|
373
|
-
b.bp("/update-flow");
|
|
374
|
-
let body;
|
|
375
|
-
body = JSON.stringify(take(input, {
|
|
376
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
377
|
-
description: [],
|
|
378
|
-
destinationFlowConfigList: (_) => _json(_),
|
|
379
|
-
flowName: [],
|
|
380
|
-
metadataCatalogConfig: (_) => _json(_),
|
|
381
|
-
sourceFlowConfig: (_) => _json(_),
|
|
382
|
-
tasks: (_) => _json(_),
|
|
383
|
-
triggerConfig: (_) => se_TriggerConfig(_, context),
|
|
384
|
-
}));
|
|
385
|
-
b.m("POST").h(headers).b(body);
|
|
386
|
-
return b.build();
|
|
387
|
-
};
|
|
388
|
-
export const de_CancelFlowExecutionsCommand = async (output, context) => {
|
|
389
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
390
|
-
return de_CommandError(output, context);
|
|
391
|
-
}
|
|
392
|
-
const contents = map({
|
|
393
|
-
$metadata: deserializeMetadata(output),
|
|
394
|
-
});
|
|
395
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
396
|
-
const doc = take(data, {
|
|
397
|
-
invalidExecutions: _json,
|
|
398
|
-
});
|
|
399
|
-
Object.assign(contents, doc);
|
|
400
|
-
return contents;
|
|
401
|
-
};
|
|
402
|
-
export const de_CreateConnectorProfileCommand = async (output, context) => {
|
|
403
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
404
|
-
return de_CommandError(output, context);
|
|
405
|
-
}
|
|
406
|
-
const contents = map({
|
|
407
|
-
$metadata: deserializeMetadata(output),
|
|
408
|
-
});
|
|
409
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
410
|
-
const doc = take(data, {
|
|
411
|
-
connectorProfileArn: __expectString,
|
|
412
|
-
});
|
|
413
|
-
Object.assign(contents, doc);
|
|
414
|
-
return contents;
|
|
415
|
-
};
|
|
416
|
-
export const de_CreateFlowCommand = async (output, context) => {
|
|
417
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
418
|
-
return de_CommandError(output, context);
|
|
419
|
-
}
|
|
420
|
-
const contents = map({
|
|
421
|
-
$metadata: deserializeMetadata(output),
|
|
422
|
-
});
|
|
423
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
424
|
-
const doc = take(data, {
|
|
425
|
-
flowArn: __expectString,
|
|
426
|
-
flowStatus: __expectString,
|
|
427
|
-
});
|
|
428
|
-
Object.assign(contents, doc);
|
|
429
|
-
return contents;
|
|
430
|
-
};
|
|
431
|
-
export const de_DeleteConnectorProfileCommand = async (output, context) => {
|
|
432
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
433
|
-
return de_CommandError(output, context);
|
|
434
|
-
}
|
|
435
|
-
const contents = map({
|
|
436
|
-
$metadata: deserializeMetadata(output),
|
|
437
|
-
});
|
|
438
|
-
await collectBody(output.body, context);
|
|
439
|
-
return contents;
|
|
440
|
-
};
|
|
441
|
-
export const de_DeleteFlowCommand = async (output, context) => {
|
|
442
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
443
|
-
return de_CommandError(output, context);
|
|
444
|
-
}
|
|
445
|
-
const contents = map({
|
|
446
|
-
$metadata: deserializeMetadata(output),
|
|
447
|
-
});
|
|
448
|
-
await collectBody(output.body, context);
|
|
449
|
-
return contents;
|
|
450
|
-
};
|
|
451
|
-
export const de_DescribeConnectorCommand = async (output, context) => {
|
|
452
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
453
|
-
return de_CommandError(output, context);
|
|
454
|
-
}
|
|
455
|
-
const contents = map({
|
|
456
|
-
$metadata: deserializeMetadata(output),
|
|
457
|
-
});
|
|
458
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
459
|
-
const doc = take(data, {
|
|
460
|
-
connectorConfiguration: (_) => de_ConnectorConfiguration(_, context),
|
|
461
|
-
});
|
|
462
|
-
Object.assign(contents, doc);
|
|
463
|
-
return contents;
|
|
464
|
-
};
|
|
465
|
-
export const de_DescribeConnectorEntityCommand = async (output, context) => {
|
|
466
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
467
|
-
return de_CommandError(output, context);
|
|
468
|
-
}
|
|
469
|
-
const contents = map({
|
|
470
|
-
$metadata: deserializeMetadata(output),
|
|
471
|
-
});
|
|
472
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
473
|
-
const doc = take(data, {
|
|
474
|
-
connectorEntityFields: (_) => de_ConnectorEntityFieldList(_, context),
|
|
475
|
-
});
|
|
476
|
-
Object.assign(contents, doc);
|
|
477
|
-
return contents;
|
|
478
|
-
};
|
|
479
|
-
export const de_DescribeConnectorProfilesCommand = async (output, context) => {
|
|
480
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
481
|
-
return de_CommandError(output, context);
|
|
482
|
-
}
|
|
483
|
-
const contents = map({
|
|
484
|
-
$metadata: deserializeMetadata(output),
|
|
485
|
-
});
|
|
486
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
487
|
-
const doc = take(data, {
|
|
488
|
-
connectorProfileDetails: (_) => de_ConnectorProfileDetailList(_, context),
|
|
489
|
-
nextToken: __expectString,
|
|
490
|
-
});
|
|
491
|
-
Object.assign(contents, doc);
|
|
492
|
-
return contents;
|
|
493
|
-
};
|
|
494
|
-
export const de_DescribeConnectorsCommand = async (output, context) => {
|
|
495
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
496
|
-
return de_CommandError(output, context);
|
|
497
|
-
}
|
|
498
|
-
const contents = map({
|
|
499
|
-
$metadata: deserializeMetadata(output),
|
|
500
|
-
});
|
|
501
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
502
|
-
const doc = take(data, {
|
|
503
|
-
connectorConfigurations: (_) => de_ConnectorConfigurationsMap(_, context),
|
|
504
|
-
connectors: (_) => de_ConnectorList(_, context),
|
|
505
|
-
nextToken: __expectString,
|
|
506
|
-
});
|
|
507
|
-
Object.assign(contents, doc);
|
|
508
|
-
return contents;
|
|
509
|
-
};
|
|
510
|
-
export const de_DescribeFlowCommand = async (output, context) => {
|
|
511
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
512
|
-
return de_CommandError(output, context);
|
|
513
|
-
}
|
|
514
|
-
const contents = map({
|
|
515
|
-
$metadata: deserializeMetadata(output),
|
|
516
|
-
});
|
|
517
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
518
|
-
const doc = take(data, {
|
|
519
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
520
|
-
createdBy: __expectString,
|
|
521
|
-
description: __expectString,
|
|
522
|
-
destinationFlowConfigList: _json,
|
|
523
|
-
flowArn: __expectString,
|
|
524
|
-
flowName: __expectString,
|
|
525
|
-
flowStatus: __expectString,
|
|
526
|
-
flowStatusMessage: __expectString,
|
|
527
|
-
kmsArn: __expectString,
|
|
528
|
-
lastRunExecutionDetails: (_) => de_ExecutionDetails(_, context),
|
|
529
|
-
lastRunMetadataCatalogDetails: _json,
|
|
530
|
-
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
531
|
-
lastUpdatedBy: __expectString,
|
|
532
|
-
metadataCatalogConfig: _json,
|
|
533
|
-
schemaVersion: __expectLong,
|
|
534
|
-
sourceFlowConfig: _json,
|
|
535
|
-
tags: _json,
|
|
536
|
-
tasks: _json,
|
|
537
|
-
triggerConfig: (_) => de_TriggerConfig(_, context),
|
|
538
|
-
});
|
|
539
|
-
Object.assign(contents, doc);
|
|
540
|
-
return contents;
|
|
541
|
-
};
|
|
542
|
-
export const de_DescribeFlowExecutionRecordsCommand = async (output, context) => {
|
|
543
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
544
|
-
return de_CommandError(output, context);
|
|
545
|
-
}
|
|
546
|
-
const contents = map({
|
|
547
|
-
$metadata: deserializeMetadata(output),
|
|
548
|
-
});
|
|
549
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
550
|
-
const doc = take(data, {
|
|
551
|
-
flowExecutions: (_) => de_FlowExecutionList(_, context),
|
|
552
|
-
nextToken: __expectString,
|
|
553
|
-
});
|
|
554
|
-
Object.assign(contents, doc);
|
|
555
|
-
return contents;
|
|
556
|
-
};
|
|
557
|
-
export const de_ListConnectorEntitiesCommand = async (output, context) => {
|
|
558
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
|
-
return de_CommandError(output, context);
|
|
560
|
-
}
|
|
561
|
-
const contents = map({
|
|
562
|
-
$metadata: deserializeMetadata(output),
|
|
563
|
-
});
|
|
564
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
565
|
-
const doc = take(data, {
|
|
566
|
-
connectorEntityMap: _json,
|
|
567
|
-
nextToken: __expectString,
|
|
568
|
-
});
|
|
569
|
-
Object.assign(contents, doc);
|
|
570
|
-
return contents;
|
|
571
|
-
};
|
|
572
|
-
export const de_ListConnectorsCommand = async (output, context) => {
|
|
573
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
574
|
-
return de_CommandError(output, context);
|
|
575
|
-
}
|
|
576
|
-
const contents = map({
|
|
577
|
-
$metadata: deserializeMetadata(output),
|
|
578
|
-
});
|
|
579
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
580
|
-
const doc = take(data, {
|
|
581
|
-
connectors: (_) => de_ConnectorList(_, context),
|
|
582
|
-
nextToken: __expectString,
|
|
583
|
-
});
|
|
584
|
-
Object.assign(contents, doc);
|
|
585
|
-
return contents;
|
|
586
|
-
};
|
|
587
|
-
export const de_ListFlowsCommand = async (output, context) => {
|
|
588
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
589
|
-
return de_CommandError(output, context);
|
|
590
|
-
}
|
|
591
|
-
const contents = map({
|
|
592
|
-
$metadata: deserializeMetadata(output),
|
|
593
|
-
});
|
|
594
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
595
|
-
const doc = take(data, {
|
|
596
|
-
flows: (_) => de_FlowList(_, context),
|
|
597
|
-
nextToken: __expectString,
|
|
598
|
-
});
|
|
599
|
-
Object.assign(contents, doc);
|
|
600
|
-
return contents;
|
|
601
|
-
};
|
|
602
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
603
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
604
|
-
return de_CommandError(output, context);
|
|
605
|
-
}
|
|
606
|
-
const contents = map({
|
|
607
|
-
$metadata: deserializeMetadata(output),
|
|
608
|
-
});
|
|
609
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
610
|
-
const doc = take(data, {
|
|
611
|
-
tags: _json,
|
|
612
|
-
});
|
|
613
|
-
Object.assign(contents, doc);
|
|
614
|
-
return contents;
|
|
615
|
-
};
|
|
616
|
-
export const de_RegisterConnectorCommand = async (output, context) => {
|
|
617
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
618
|
-
return de_CommandError(output, context);
|
|
619
|
-
}
|
|
620
|
-
const contents = map({
|
|
621
|
-
$metadata: deserializeMetadata(output),
|
|
622
|
-
});
|
|
623
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
624
|
-
const doc = take(data, {
|
|
625
|
-
connectorArn: __expectString,
|
|
626
|
-
});
|
|
627
|
-
Object.assign(contents, doc);
|
|
628
|
-
return contents;
|
|
629
|
-
};
|
|
630
|
-
export const de_ResetConnectorMetadataCacheCommand = async (output, context) => {
|
|
631
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
632
|
-
return de_CommandError(output, context);
|
|
633
|
-
}
|
|
634
|
-
const contents = map({
|
|
635
|
-
$metadata: deserializeMetadata(output),
|
|
636
|
-
});
|
|
637
|
-
await collectBody(output.body, context);
|
|
638
|
-
return contents;
|
|
639
|
-
};
|
|
640
|
-
export const de_StartFlowCommand = async (output, context) => {
|
|
641
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
642
|
-
return de_CommandError(output, context);
|
|
643
|
-
}
|
|
644
|
-
const contents = map({
|
|
645
|
-
$metadata: deserializeMetadata(output),
|
|
646
|
-
});
|
|
647
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
648
|
-
const doc = take(data, {
|
|
649
|
-
executionId: __expectString,
|
|
650
|
-
flowArn: __expectString,
|
|
651
|
-
flowStatus: __expectString,
|
|
652
|
-
});
|
|
653
|
-
Object.assign(contents, doc);
|
|
654
|
-
return contents;
|
|
655
|
-
};
|
|
656
|
-
export const de_StopFlowCommand = async (output, context) => {
|
|
657
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
658
|
-
return de_CommandError(output, context);
|
|
659
|
-
}
|
|
660
|
-
const contents = map({
|
|
661
|
-
$metadata: deserializeMetadata(output),
|
|
662
|
-
});
|
|
663
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
664
|
-
const doc = take(data, {
|
|
665
|
-
flowArn: __expectString,
|
|
666
|
-
flowStatus: __expectString,
|
|
667
|
-
});
|
|
668
|
-
Object.assign(contents, doc);
|
|
669
|
-
return contents;
|
|
670
|
-
};
|
|
671
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
672
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
673
|
-
return de_CommandError(output, context);
|
|
674
|
-
}
|
|
675
|
-
const contents = map({
|
|
676
|
-
$metadata: deserializeMetadata(output),
|
|
677
|
-
});
|
|
678
|
-
await collectBody(output.body, context);
|
|
679
|
-
return contents;
|
|
680
|
-
};
|
|
681
|
-
export const de_UnregisterConnectorCommand = async (output, context) => {
|
|
682
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
683
|
-
return de_CommandError(output, context);
|
|
684
|
-
}
|
|
685
|
-
const contents = map({
|
|
686
|
-
$metadata: deserializeMetadata(output),
|
|
687
|
-
});
|
|
688
|
-
await collectBody(output.body, context);
|
|
689
|
-
return contents;
|
|
690
|
-
};
|
|
691
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
692
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
693
|
-
return de_CommandError(output, context);
|
|
694
|
-
}
|
|
695
|
-
const contents = map({
|
|
696
|
-
$metadata: deserializeMetadata(output),
|
|
697
|
-
});
|
|
698
|
-
await collectBody(output.body, context);
|
|
699
|
-
return contents;
|
|
700
|
-
};
|
|
701
|
-
export const de_UpdateConnectorProfileCommand = async (output, context) => {
|
|
702
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
703
|
-
return de_CommandError(output, context);
|
|
704
|
-
}
|
|
705
|
-
const contents = map({
|
|
706
|
-
$metadata: deserializeMetadata(output),
|
|
707
|
-
});
|
|
708
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
709
|
-
const doc = take(data, {
|
|
710
|
-
connectorProfileArn: __expectString,
|
|
711
|
-
});
|
|
712
|
-
Object.assign(contents, doc);
|
|
713
|
-
return contents;
|
|
714
|
-
};
|
|
715
|
-
export const de_UpdateConnectorRegistrationCommand = async (output, context) => {
|
|
716
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
717
|
-
return de_CommandError(output, context);
|
|
718
|
-
}
|
|
719
|
-
const contents = map({
|
|
720
|
-
$metadata: deserializeMetadata(output),
|
|
721
|
-
});
|
|
722
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
723
|
-
const doc = take(data, {
|
|
724
|
-
connectorArn: __expectString,
|
|
725
|
-
});
|
|
726
|
-
Object.assign(contents, doc);
|
|
727
|
-
return contents;
|
|
728
|
-
};
|
|
729
|
-
export const de_UpdateFlowCommand = async (output, context) => {
|
|
730
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
731
|
-
return de_CommandError(output, context);
|
|
732
|
-
}
|
|
733
|
-
const contents = map({
|
|
734
|
-
$metadata: deserializeMetadata(output),
|
|
735
|
-
});
|
|
736
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
737
|
-
const doc = take(data, {
|
|
738
|
-
flowStatus: __expectString,
|
|
739
|
-
});
|
|
740
|
-
Object.assign(contents, doc);
|
|
741
|
-
return contents;
|
|
742
|
-
};
|
|
743
|
-
const de_CommandError = async (output, context) => {
|
|
744
|
-
const parsedOutput = {
|
|
745
|
-
...output,
|
|
746
|
-
body: await parseErrorBody(output.body, context),
|
|
747
|
-
};
|
|
748
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
749
|
-
switch (errorCode) {
|
|
750
|
-
case "AccessDeniedException":
|
|
751
|
-
case "com.amazonaws.appflow#AccessDeniedException":
|
|
752
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
753
|
-
case "InternalServerException":
|
|
754
|
-
case "com.amazonaws.appflow#InternalServerException":
|
|
755
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
756
|
-
case "ResourceNotFoundException":
|
|
757
|
-
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
758
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
759
|
-
case "ThrottlingException":
|
|
760
|
-
case "com.amazonaws.appflow#ThrottlingException":
|
|
761
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
762
|
-
case "ValidationException":
|
|
763
|
-
case "com.amazonaws.appflow#ValidationException":
|
|
764
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
765
|
-
case "ConflictException":
|
|
766
|
-
case "com.amazonaws.appflow#ConflictException":
|
|
767
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
768
|
-
case "ConnectorAuthenticationException":
|
|
769
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
770
|
-
throw await de_ConnectorAuthenticationExceptionRes(parsedOutput, context);
|
|
771
|
-
case "ServiceQuotaExceededException":
|
|
772
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
773
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
774
|
-
case "ConnectorServerException":
|
|
775
|
-
case "com.amazonaws.appflow#ConnectorServerException":
|
|
776
|
-
throw await de_ConnectorServerExceptionRes(parsedOutput, context);
|
|
777
|
-
case "UnsupportedOperationException":
|
|
778
|
-
case "com.amazonaws.appflow#UnsupportedOperationException":
|
|
779
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
780
|
-
default:
|
|
781
|
-
const parsedBody = parsedOutput.body;
|
|
782
|
-
return throwDefaultError({
|
|
783
|
-
output,
|
|
784
|
-
parsedBody,
|
|
785
|
-
errorCode,
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
};
|
|
789
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
790
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
791
|
-
const contents = map({});
|
|
792
|
-
const data = parsedOutput.body;
|
|
793
|
-
const doc = take(data, {
|
|
794
|
-
message: __expectString,
|
|
795
|
-
});
|
|
796
|
-
Object.assign(contents, doc);
|
|
797
|
-
const exception = new AccessDeniedException({
|
|
798
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
799
|
-
...contents,
|
|
800
|
-
});
|
|
801
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
802
|
-
};
|
|
803
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
804
|
-
const contents = map({});
|
|
805
|
-
const data = parsedOutput.body;
|
|
806
|
-
const doc = take(data, {
|
|
807
|
-
message: __expectString,
|
|
808
|
-
});
|
|
809
|
-
Object.assign(contents, doc);
|
|
810
|
-
const exception = new ConflictException({
|
|
811
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
812
|
-
...contents,
|
|
813
|
-
});
|
|
814
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
815
|
-
};
|
|
816
|
-
const de_ConnectorAuthenticationExceptionRes = async (parsedOutput, context) => {
|
|
817
|
-
const contents = map({});
|
|
818
|
-
const data = parsedOutput.body;
|
|
819
|
-
const doc = take(data, {
|
|
820
|
-
message: __expectString,
|
|
821
|
-
});
|
|
822
|
-
Object.assign(contents, doc);
|
|
823
|
-
const exception = new ConnectorAuthenticationException({
|
|
824
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
825
|
-
...contents,
|
|
826
|
-
});
|
|
827
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
828
|
-
};
|
|
829
|
-
const de_ConnectorServerExceptionRes = async (parsedOutput, context) => {
|
|
830
|
-
const contents = map({});
|
|
831
|
-
const data = parsedOutput.body;
|
|
832
|
-
const doc = take(data, {
|
|
833
|
-
message: __expectString,
|
|
834
|
-
});
|
|
835
|
-
Object.assign(contents, doc);
|
|
836
|
-
const exception = new ConnectorServerException({
|
|
837
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
838
|
-
...contents,
|
|
839
|
-
});
|
|
840
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
841
|
-
};
|
|
842
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
843
|
-
const contents = map({});
|
|
844
|
-
const data = parsedOutput.body;
|
|
845
|
-
const doc = take(data, {
|
|
846
|
-
message: __expectString,
|
|
847
|
-
});
|
|
848
|
-
Object.assign(contents, doc);
|
|
849
|
-
const exception = new InternalServerException({
|
|
850
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
851
|
-
...contents,
|
|
852
|
-
});
|
|
853
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
854
|
-
};
|
|
855
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
856
|
-
const contents = map({});
|
|
857
|
-
const data = parsedOutput.body;
|
|
858
|
-
const doc = take(data, {
|
|
859
|
-
message: __expectString,
|
|
860
|
-
});
|
|
861
|
-
Object.assign(contents, doc);
|
|
862
|
-
const exception = new ResourceNotFoundException({
|
|
863
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
864
|
-
...contents,
|
|
865
|
-
});
|
|
866
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
867
|
-
};
|
|
868
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
869
|
-
const contents = map({});
|
|
870
|
-
const data = parsedOutput.body;
|
|
871
|
-
const doc = take(data, {
|
|
872
|
-
message: __expectString,
|
|
873
|
-
});
|
|
874
|
-
Object.assign(contents, doc);
|
|
875
|
-
const exception = new ServiceQuotaExceededException({
|
|
876
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
877
|
-
...contents,
|
|
878
|
-
});
|
|
879
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
880
|
-
};
|
|
881
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
882
|
-
const contents = map({});
|
|
883
|
-
const data = parsedOutput.body;
|
|
884
|
-
const doc = take(data, {
|
|
885
|
-
message: __expectString,
|
|
886
|
-
});
|
|
887
|
-
Object.assign(contents, doc);
|
|
888
|
-
const exception = new ThrottlingException({
|
|
889
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
890
|
-
...contents,
|
|
891
|
-
});
|
|
892
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
893
|
-
};
|
|
894
|
-
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
895
|
-
const contents = map({});
|
|
896
|
-
const data = parsedOutput.body;
|
|
897
|
-
const doc = take(data, {
|
|
898
|
-
message: __expectString,
|
|
899
|
-
});
|
|
900
|
-
Object.assign(contents, doc);
|
|
901
|
-
const exception = new UnsupportedOperationException({
|
|
902
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
903
|
-
...contents,
|
|
904
|
-
});
|
|
905
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
906
|
-
};
|
|
907
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
908
|
-
const contents = map({});
|
|
909
|
-
const data = parsedOutput.body;
|
|
910
|
-
const doc = take(data, {
|
|
911
|
-
message: __expectString,
|
|
912
|
-
});
|
|
913
|
-
Object.assign(contents, doc);
|
|
914
|
-
const exception = new ValidationException({
|
|
915
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
916
|
-
...contents,
|
|
917
|
-
});
|
|
918
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
919
|
-
};
|
|
920
|
-
const se_ScheduledTriggerProperties = (input, context) => {
|
|
921
|
-
return take(input, {
|
|
922
|
-
dataPullMode: [],
|
|
923
|
-
firstExecutionFrom: (_) => _.getTime() / 1_000,
|
|
924
|
-
flowErrorDeactivationThreshold: [],
|
|
925
|
-
scheduleEndTime: (_) => _.getTime() / 1_000,
|
|
926
|
-
scheduleExpression: [],
|
|
927
|
-
scheduleOffset: [],
|
|
928
|
-
scheduleStartTime: (_) => _.getTime() / 1_000,
|
|
929
|
-
timezone: [],
|
|
930
|
-
});
|
|
931
|
-
};
|
|
932
|
-
const se_TriggerConfig = (input, context) => {
|
|
933
|
-
return take(input, {
|
|
934
|
-
triggerProperties: (_) => se_TriggerProperties(_, context),
|
|
935
|
-
triggerType: [],
|
|
936
|
-
});
|
|
937
|
-
};
|
|
938
|
-
const se_TriggerProperties = (input, context) => {
|
|
939
|
-
return take(input, {
|
|
940
|
-
Scheduled: (_) => se_ScheduledTriggerProperties(_, context),
|
|
941
|
-
});
|
|
942
|
-
};
|
|
943
|
-
const de_ConnectorConfiguration = (output, context) => {
|
|
944
|
-
return take(output, {
|
|
945
|
-
authenticationConfig: _json,
|
|
946
|
-
canUseAsDestination: __expectBoolean,
|
|
947
|
-
canUseAsSource: __expectBoolean,
|
|
948
|
-
connectorArn: __expectString,
|
|
949
|
-
connectorDescription: __expectString,
|
|
950
|
-
connectorLabel: __expectString,
|
|
951
|
-
connectorMetadata: _json,
|
|
952
|
-
connectorModes: _json,
|
|
953
|
-
connectorName: __expectString,
|
|
954
|
-
connectorOwner: __expectString,
|
|
955
|
-
connectorProvisioningConfig: _json,
|
|
956
|
-
connectorProvisioningType: __expectString,
|
|
957
|
-
connectorRuntimeSettings: _json,
|
|
958
|
-
connectorType: __expectString,
|
|
959
|
-
connectorVersion: __expectString,
|
|
960
|
-
isPrivateLinkEnabled: __expectBoolean,
|
|
961
|
-
isPrivateLinkEndpointUrlRequired: __expectBoolean,
|
|
962
|
-
logoURL: __expectString,
|
|
963
|
-
registeredAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
964
|
-
registeredBy: __expectString,
|
|
965
|
-
supportedApiVersions: _json,
|
|
966
|
-
supportedDataTransferApis: _json,
|
|
967
|
-
supportedDataTransferTypes: _json,
|
|
968
|
-
supportedDestinationConnectors: _json,
|
|
969
|
-
supportedOperators: _json,
|
|
970
|
-
supportedSchedulingFrequencies: _json,
|
|
971
|
-
supportedTriggerTypes: _json,
|
|
972
|
-
supportedWriteOperations: _json,
|
|
973
|
-
});
|
|
974
|
-
};
|
|
975
|
-
const de_ConnectorConfigurationsMap = (output, context) => {
|
|
976
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
977
|
-
if (value === null) {
|
|
978
|
-
return acc;
|
|
979
|
-
}
|
|
980
|
-
acc[key] = de_ConnectorConfiguration(value, context);
|
|
981
|
-
return acc;
|
|
982
|
-
}, {});
|
|
983
|
-
};
|
|
984
|
-
const de_ConnectorDetail = (output, context) => {
|
|
985
|
-
return take(output, {
|
|
986
|
-
applicationType: __expectString,
|
|
987
|
-
connectorDescription: __expectString,
|
|
988
|
-
connectorLabel: __expectString,
|
|
989
|
-
connectorModes: _json,
|
|
990
|
-
connectorName: __expectString,
|
|
991
|
-
connectorOwner: __expectString,
|
|
992
|
-
connectorProvisioningType: __expectString,
|
|
993
|
-
connectorType: __expectString,
|
|
994
|
-
connectorVersion: __expectString,
|
|
995
|
-
registeredAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
996
|
-
registeredBy: __expectString,
|
|
997
|
-
supportedDataTransferTypes: _json,
|
|
998
|
-
});
|
|
999
|
-
};
|
|
1000
|
-
const de_ConnectorEntityField = (output, context) => {
|
|
1001
|
-
return take(output, {
|
|
1002
|
-
customProperties: _json,
|
|
1003
|
-
defaultValue: __expectString,
|
|
1004
|
-
description: __expectString,
|
|
1005
|
-
destinationProperties: _json,
|
|
1006
|
-
identifier: __expectString,
|
|
1007
|
-
isDeprecated: __expectBoolean,
|
|
1008
|
-
isPrimaryKey: __expectBoolean,
|
|
1009
|
-
label: __expectString,
|
|
1010
|
-
parentIdentifier: __expectString,
|
|
1011
|
-
sourceProperties: _json,
|
|
1012
|
-
supportedFieldTypeDetails: (_) => de_SupportedFieldTypeDetails(_, context),
|
|
1013
|
-
});
|
|
1014
|
-
};
|
|
1015
|
-
const de_ConnectorEntityFieldList = (output, context) => {
|
|
1016
|
-
const retVal = (output || [])
|
|
1017
|
-
.filter((e) => e != null)
|
|
1018
|
-
.map((entry) => {
|
|
1019
|
-
return de_ConnectorEntityField(entry, context);
|
|
1020
|
-
});
|
|
1021
|
-
return retVal;
|
|
1022
|
-
};
|
|
1023
|
-
const de_ConnectorList = (output, context) => {
|
|
1024
|
-
const retVal = (output || [])
|
|
1025
|
-
.filter((e) => e != null)
|
|
1026
|
-
.map((entry) => {
|
|
1027
|
-
return de_ConnectorDetail(entry, context);
|
|
1028
|
-
});
|
|
1029
|
-
return retVal;
|
|
1030
|
-
};
|
|
1031
|
-
const de_ConnectorProfile = (output, context) => {
|
|
1032
|
-
return take(output, {
|
|
1033
|
-
connectionMode: __expectString,
|
|
1034
|
-
connectorLabel: __expectString,
|
|
1035
|
-
connectorProfileArn: __expectString,
|
|
1036
|
-
connectorProfileName: __expectString,
|
|
1037
|
-
connectorProfileProperties: _json,
|
|
1038
|
-
connectorType: __expectString,
|
|
1039
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1040
|
-
credentialsArn: __expectString,
|
|
1041
|
-
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1042
|
-
privateConnectionProvisioningState: _json,
|
|
1043
|
-
});
|
|
1044
|
-
};
|
|
1045
|
-
const de_ConnectorProfileDetailList = (output, context) => {
|
|
1046
|
-
const retVal = (output || [])
|
|
1047
|
-
.filter((e) => e != null)
|
|
1048
|
-
.map((entry) => {
|
|
1049
|
-
return de_ConnectorProfile(entry, context);
|
|
1050
|
-
});
|
|
1051
|
-
return retVal;
|
|
1052
|
-
};
|
|
1053
|
-
const de_ExecutionDetails = (output, context) => {
|
|
1054
|
-
return take(output, {
|
|
1055
|
-
mostRecentExecutionMessage: __expectString,
|
|
1056
|
-
mostRecentExecutionStatus: __expectString,
|
|
1057
|
-
mostRecentExecutionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1058
|
-
});
|
|
1059
|
-
};
|
|
1060
|
-
const de_ExecutionRecord = (output, context) => {
|
|
1061
|
-
return take(output, {
|
|
1062
|
-
dataPullEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1063
|
-
dataPullStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1064
|
-
executionId: __expectString,
|
|
1065
|
-
executionResult: _json,
|
|
1066
|
-
executionStatus: __expectString,
|
|
1067
|
-
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1068
|
-
metadataCatalogDetails: _json,
|
|
1069
|
-
startedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1070
|
-
});
|
|
1071
|
-
};
|
|
1072
|
-
const de_FieldTypeDetails = (output, context) => {
|
|
1073
|
-
return take(output, {
|
|
1074
|
-
fieldLengthRange: (_) => de_Range(_, context),
|
|
1075
|
-
fieldType: __expectString,
|
|
1076
|
-
fieldValueRange: (_) => de_Range(_, context),
|
|
1077
|
-
filterOperators: _json,
|
|
1078
|
-
supportedDateFormat: __expectString,
|
|
1079
|
-
supportedValues: _json,
|
|
1080
|
-
valueRegexPattern: __expectString,
|
|
1081
|
-
});
|
|
1082
|
-
};
|
|
1083
|
-
const de_FlowDefinition = (output, context) => {
|
|
1084
|
-
return take(output, {
|
|
1085
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1086
|
-
createdBy: __expectString,
|
|
1087
|
-
description: __expectString,
|
|
1088
|
-
destinationConnectorLabel: __expectString,
|
|
1089
|
-
destinationConnectorType: __expectString,
|
|
1090
|
-
flowArn: __expectString,
|
|
1091
|
-
flowName: __expectString,
|
|
1092
|
-
flowStatus: __expectString,
|
|
1093
|
-
lastRunExecutionDetails: (_) => de_ExecutionDetails(_, context),
|
|
1094
|
-
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1095
|
-
lastUpdatedBy: __expectString,
|
|
1096
|
-
sourceConnectorLabel: __expectString,
|
|
1097
|
-
sourceConnectorType: __expectString,
|
|
1098
|
-
tags: _json,
|
|
1099
|
-
triggerType: __expectString,
|
|
1100
|
-
});
|
|
1101
|
-
};
|
|
1102
|
-
const de_FlowExecutionList = (output, context) => {
|
|
1103
|
-
const retVal = (output || [])
|
|
1104
|
-
.filter((e) => e != null)
|
|
1105
|
-
.map((entry) => {
|
|
1106
|
-
return de_ExecutionRecord(entry, context);
|
|
1107
|
-
});
|
|
1108
|
-
return retVal;
|
|
1109
|
-
};
|
|
1110
|
-
const de_FlowList = (output, context) => {
|
|
1111
|
-
const retVal = (output || [])
|
|
1112
|
-
.filter((e) => e != null)
|
|
1113
|
-
.map((entry) => {
|
|
1114
|
-
return de_FlowDefinition(entry, context);
|
|
1115
|
-
});
|
|
1116
|
-
return retVal;
|
|
1117
|
-
};
|
|
1118
|
-
const de_Range = (output, context) => {
|
|
1119
|
-
return take(output, {
|
|
1120
|
-
maximum: __limitedParseDouble,
|
|
1121
|
-
minimum: __limitedParseDouble,
|
|
1122
|
-
});
|
|
1123
|
-
};
|
|
1124
|
-
const de_ScheduledTriggerProperties = (output, context) => {
|
|
1125
|
-
return take(output, {
|
|
1126
|
-
dataPullMode: __expectString,
|
|
1127
|
-
firstExecutionFrom: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1128
|
-
flowErrorDeactivationThreshold: __expectInt32,
|
|
1129
|
-
scheduleEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1130
|
-
scheduleExpression: __expectString,
|
|
1131
|
-
scheduleOffset: __expectLong,
|
|
1132
|
-
scheduleStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1133
|
-
timezone: __expectString,
|
|
1134
|
-
});
|
|
1135
|
-
};
|
|
1136
|
-
const de_SupportedFieldTypeDetails = (output, context) => {
|
|
1137
|
-
return take(output, {
|
|
1138
|
-
v1: (_) => de_FieldTypeDetails(_, context),
|
|
1139
|
-
});
|
|
1140
|
-
};
|
|
1141
|
-
const de_TriggerConfig = (output, context) => {
|
|
1142
|
-
return take(output, {
|
|
1143
|
-
triggerProperties: (_) => de_TriggerProperties(_, context),
|
|
1144
|
-
triggerType: __expectString,
|
|
1145
|
-
});
|
|
1146
|
-
};
|
|
1147
|
-
const de_TriggerProperties = (output, context) => {
|
|
1148
|
-
return take(output, {
|
|
1149
|
-
Scheduled: (_) => de_ScheduledTriggerProperties(_, context),
|
|
1150
|
-
});
|
|
1151
|
-
};
|
|
1152
|
-
const deserializeMetadata = (output) => ({
|
|
1153
|
-
httpStatusCode: output.statusCode,
|
|
1154
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1155
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1156
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1157
|
-
});
|
|
1158
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1159
|
-
const _tK = "tagKeys";
|