@aws-sdk/client-pipes 3.928.0 → 3.930.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 +1279 -908
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/PipesClient.js +2 -0
- package/dist-es/commands/CreatePipeCommand.js +3 -10
- package/dist-es/commands/DeletePipeCommand.js +3 -9
- package/dist-es/commands/DescribePipeCommand.js +3 -10
- package/dist-es/commands/ListPipesCommand.js +3 -10
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -10
- package/dist-es/commands/StartPipeCommand.js +3 -9
- package/dist-es/commands/StopPipeCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdatePipeCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -264
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1251 -0
- package/dist-types/PipesClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +12 -139
- 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 +177 -0
- package/dist-types/ts3.4/PipesClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -104
- 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 +184 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_restJson1.js +0 -531
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -92
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -125
|
@@ -1,531 +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, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { ConflictException, InternalException, NotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
-
import { PipesServiceException as __BaseException } from "../models/PipesServiceException";
|
|
6
|
-
export const se_CreatePipeCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/v1/pipes/{Name}");
|
|
12
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
Description: [],
|
|
16
|
-
DesiredState: [],
|
|
17
|
-
Enrichment: [],
|
|
18
|
-
EnrichmentParameters: (_) => _json(_),
|
|
19
|
-
KmsKeyIdentifier: [],
|
|
20
|
-
LogConfiguration: (_) => _json(_),
|
|
21
|
-
RoleArn: [],
|
|
22
|
-
Source: [],
|
|
23
|
-
SourceParameters: (_) => se_PipeSourceParameters(_, context),
|
|
24
|
-
Tags: (_) => _json(_),
|
|
25
|
-
Target: [],
|
|
26
|
-
TargetParameters: (_) => _json(_),
|
|
27
|
-
}));
|
|
28
|
-
b.m("POST").h(headers).b(body);
|
|
29
|
-
return b.build();
|
|
30
|
-
};
|
|
31
|
-
export const se_DeletePipeCommand = async (input, context) => {
|
|
32
|
-
const b = rb(input, context);
|
|
33
|
-
const headers = {};
|
|
34
|
-
b.bp("/v1/pipes/{Name}");
|
|
35
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
36
|
-
let body;
|
|
37
|
-
b.m("DELETE").h(headers).b(body);
|
|
38
|
-
return b.build();
|
|
39
|
-
};
|
|
40
|
-
export const se_DescribePipeCommand = async (input, context) => {
|
|
41
|
-
const b = rb(input, context);
|
|
42
|
-
const headers = {};
|
|
43
|
-
b.bp("/v1/pipes/{Name}");
|
|
44
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
45
|
-
let body;
|
|
46
|
-
b.m("GET").h(headers).b(body);
|
|
47
|
-
return b.build();
|
|
48
|
-
};
|
|
49
|
-
export const se_ListPipesCommand = async (input, context) => {
|
|
50
|
-
const b = rb(input, context);
|
|
51
|
-
const headers = {};
|
|
52
|
-
b.bp("/v1/pipes");
|
|
53
|
-
const query = map({
|
|
54
|
-
[_NP]: [, input[_NP]],
|
|
55
|
-
[_DS]: [, input[_DS]],
|
|
56
|
-
[_CS]: [, input[_CS]],
|
|
57
|
-
[_SP]: [, input[_SP]],
|
|
58
|
-
[_TP]: [, input[_TP]],
|
|
59
|
-
[_NT]: [, input[_NT]],
|
|
60
|
-
[_L]: [() => input.Limit !== void 0, () => input[_L].toString()],
|
|
61
|
-
});
|
|
62
|
-
let body;
|
|
63
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
64
|
-
return b.build();
|
|
65
|
-
};
|
|
66
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
67
|
-
const b = rb(input, context);
|
|
68
|
-
const headers = {};
|
|
69
|
-
b.bp("/tags/{resourceArn}");
|
|
70
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
71
|
-
let body;
|
|
72
|
-
b.m("GET").h(headers).b(body);
|
|
73
|
-
return b.build();
|
|
74
|
-
};
|
|
75
|
-
export const se_StartPipeCommand = async (input, context) => {
|
|
76
|
-
const b = rb(input, context);
|
|
77
|
-
const headers = {};
|
|
78
|
-
b.bp("/v1/pipes/{Name}/start");
|
|
79
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
80
|
-
let body;
|
|
81
|
-
b.m("POST").h(headers).b(body);
|
|
82
|
-
return b.build();
|
|
83
|
-
};
|
|
84
|
-
export const se_StopPipeCommand = async (input, context) => {
|
|
85
|
-
const b = rb(input, context);
|
|
86
|
-
const headers = {};
|
|
87
|
-
b.bp("/v1/pipes/{Name}/stop");
|
|
88
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
89
|
-
let body;
|
|
90
|
-
b.m("POST").h(headers).b(body);
|
|
91
|
-
return b.build();
|
|
92
|
-
};
|
|
93
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
94
|
-
const b = rb(input, context);
|
|
95
|
-
const headers = {
|
|
96
|
-
"content-type": "application/json",
|
|
97
|
-
};
|
|
98
|
-
b.bp("/tags/{resourceArn}");
|
|
99
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
100
|
-
let body;
|
|
101
|
-
body = JSON.stringify(take(input, {
|
|
102
|
-
tags: (_) => _json(_),
|
|
103
|
-
}));
|
|
104
|
-
b.m("POST").h(headers).b(body);
|
|
105
|
-
return b.build();
|
|
106
|
-
};
|
|
107
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
108
|
-
const b = rb(input, context);
|
|
109
|
-
const headers = {};
|
|
110
|
-
b.bp("/tags/{resourceArn}");
|
|
111
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
112
|
-
const query = map({
|
|
113
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
114
|
-
});
|
|
115
|
-
let body;
|
|
116
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
117
|
-
return b.build();
|
|
118
|
-
};
|
|
119
|
-
export const se_UpdatePipeCommand = async (input, context) => {
|
|
120
|
-
const b = rb(input, context);
|
|
121
|
-
const headers = {
|
|
122
|
-
"content-type": "application/json",
|
|
123
|
-
};
|
|
124
|
-
b.bp("/v1/pipes/{Name}");
|
|
125
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
126
|
-
let body;
|
|
127
|
-
body = JSON.stringify(take(input, {
|
|
128
|
-
Description: [],
|
|
129
|
-
DesiredState: [],
|
|
130
|
-
Enrichment: [],
|
|
131
|
-
EnrichmentParameters: (_) => _json(_),
|
|
132
|
-
KmsKeyIdentifier: [],
|
|
133
|
-
LogConfiguration: (_) => _json(_),
|
|
134
|
-
RoleArn: [],
|
|
135
|
-
SourceParameters: (_) => _json(_),
|
|
136
|
-
Target: [],
|
|
137
|
-
TargetParameters: (_) => _json(_),
|
|
138
|
-
}));
|
|
139
|
-
b.m("PUT").h(headers).b(body);
|
|
140
|
-
return b.build();
|
|
141
|
-
};
|
|
142
|
-
export const de_CreatePipeCommand = async (output, context) => {
|
|
143
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
144
|
-
return de_CommandError(output, context);
|
|
145
|
-
}
|
|
146
|
-
const contents = map({
|
|
147
|
-
$metadata: deserializeMetadata(output),
|
|
148
|
-
});
|
|
149
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
150
|
-
const doc = take(data, {
|
|
151
|
-
Arn: __expectString,
|
|
152
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
153
|
-
CurrentState: __expectString,
|
|
154
|
-
DesiredState: __expectString,
|
|
155
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
156
|
-
Name: __expectString,
|
|
157
|
-
});
|
|
158
|
-
Object.assign(contents, doc);
|
|
159
|
-
return contents;
|
|
160
|
-
};
|
|
161
|
-
export const de_DeletePipeCommand = async (output, context) => {
|
|
162
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
163
|
-
return de_CommandError(output, context);
|
|
164
|
-
}
|
|
165
|
-
const contents = map({
|
|
166
|
-
$metadata: deserializeMetadata(output),
|
|
167
|
-
});
|
|
168
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
169
|
-
const doc = take(data, {
|
|
170
|
-
Arn: __expectString,
|
|
171
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
172
|
-
CurrentState: __expectString,
|
|
173
|
-
DesiredState: __expectString,
|
|
174
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
175
|
-
Name: __expectString,
|
|
176
|
-
});
|
|
177
|
-
Object.assign(contents, doc);
|
|
178
|
-
return contents;
|
|
179
|
-
};
|
|
180
|
-
export const de_DescribePipeCommand = async (output, context) => {
|
|
181
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
182
|
-
return de_CommandError(output, context);
|
|
183
|
-
}
|
|
184
|
-
const contents = map({
|
|
185
|
-
$metadata: deserializeMetadata(output),
|
|
186
|
-
});
|
|
187
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
188
|
-
const doc = take(data, {
|
|
189
|
-
Arn: __expectString,
|
|
190
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
191
|
-
CurrentState: __expectString,
|
|
192
|
-
Description: __expectString,
|
|
193
|
-
DesiredState: __expectString,
|
|
194
|
-
Enrichment: __expectString,
|
|
195
|
-
EnrichmentParameters: _json,
|
|
196
|
-
KmsKeyIdentifier: __expectString,
|
|
197
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
198
|
-
LogConfiguration: _json,
|
|
199
|
-
Name: __expectString,
|
|
200
|
-
RoleArn: __expectString,
|
|
201
|
-
Source: __expectString,
|
|
202
|
-
SourceParameters: (_) => de_PipeSourceParameters(_, context),
|
|
203
|
-
StateReason: __expectString,
|
|
204
|
-
Tags: _json,
|
|
205
|
-
Target: __expectString,
|
|
206
|
-
TargetParameters: _json,
|
|
207
|
-
});
|
|
208
|
-
Object.assign(contents, doc);
|
|
209
|
-
return contents;
|
|
210
|
-
};
|
|
211
|
-
export const de_ListPipesCommand = async (output, context) => {
|
|
212
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
213
|
-
return de_CommandError(output, context);
|
|
214
|
-
}
|
|
215
|
-
const contents = map({
|
|
216
|
-
$metadata: deserializeMetadata(output),
|
|
217
|
-
});
|
|
218
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
219
|
-
const doc = take(data, {
|
|
220
|
-
NextToken: __expectString,
|
|
221
|
-
Pipes: (_) => de_PipeList(_, context),
|
|
222
|
-
});
|
|
223
|
-
Object.assign(contents, doc);
|
|
224
|
-
return contents;
|
|
225
|
-
};
|
|
226
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
227
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
228
|
-
return de_CommandError(output, context);
|
|
229
|
-
}
|
|
230
|
-
const contents = map({
|
|
231
|
-
$metadata: deserializeMetadata(output),
|
|
232
|
-
});
|
|
233
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
234
|
-
const doc = take(data, {
|
|
235
|
-
tags: _json,
|
|
236
|
-
});
|
|
237
|
-
Object.assign(contents, doc);
|
|
238
|
-
return contents;
|
|
239
|
-
};
|
|
240
|
-
export const de_StartPipeCommand = async (output, context) => {
|
|
241
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
242
|
-
return de_CommandError(output, context);
|
|
243
|
-
}
|
|
244
|
-
const contents = map({
|
|
245
|
-
$metadata: deserializeMetadata(output),
|
|
246
|
-
});
|
|
247
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
248
|
-
const doc = take(data, {
|
|
249
|
-
Arn: __expectString,
|
|
250
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
251
|
-
CurrentState: __expectString,
|
|
252
|
-
DesiredState: __expectString,
|
|
253
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
254
|
-
Name: __expectString,
|
|
255
|
-
});
|
|
256
|
-
Object.assign(contents, doc);
|
|
257
|
-
return contents;
|
|
258
|
-
};
|
|
259
|
-
export const de_StopPipeCommand = async (output, context) => {
|
|
260
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
261
|
-
return de_CommandError(output, context);
|
|
262
|
-
}
|
|
263
|
-
const contents = map({
|
|
264
|
-
$metadata: deserializeMetadata(output),
|
|
265
|
-
});
|
|
266
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
267
|
-
const doc = take(data, {
|
|
268
|
-
Arn: __expectString,
|
|
269
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
270
|
-
CurrentState: __expectString,
|
|
271
|
-
DesiredState: __expectString,
|
|
272
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
273
|
-
Name: __expectString,
|
|
274
|
-
});
|
|
275
|
-
Object.assign(contents, doc);
|
|
276
|
-
return contents;
|
|
277
|
-
};
|
|
278
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
279
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
280
|
-
return de_CommandError(output, context);
|
|
281
|
-
}
|
|
282
|
-
const contents = map({
|
|
283
|
-
$metadata: deserializeMetadata(output),
|
|
284
|
-
});
|
|
285
|
-
await collectBody(output.body, context);
|
|
286
|
-
return contents;
|
|
287
|
-
};
|
|
288
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
289
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
290
|
-
return de_CommandError(output, context);
|
|
291
|
-
}
|
|
292
|
-
const contents = map({
|
|
293
|
-
$metadata: deserializeMetadata(output),
|
|
294
|
-
});
|
|
295
|
-
await collectBody(output.body, context);
|
|
296
|
-
return contents;
|
|
297
|
-
};
|
|
298
|
-
export const de_UpdatePipeCommand = async (output, context) => {
|
|
299
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
300
|
-
return de_CommandError(output, context);
|
|
301
|
-
}
|
|
302
|
-
const contents = map({
|
|
303
|
-
$metadata: deserializeMetadata(output),
|
|
304
|
-
});
|
|
305
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
306
|
-
const doc = take(data, {
|
|
307
|
-
Arn: __expectString,
|
|
308
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
309
|
-
CurrentState: __expectString,
|
|
310
|
-
DesiredState: __expectString,
|
|
311
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
312
|
-
Name: __expectString,
|
|
313
|
-
});
|
|
314
|
-
Object.assign(contents, doc);
|
|
315
|
-
return contents;
|
|
316
|
-
};
|
|
317
|
-
const de_CommandError = async (output, context) => {
|
|
318
|
-
const parsedOutput = {
|
|
319
|
-
...output,
|
|
320
|
-
body: await parseErrorBody(output.body, context),
|
|
321
|
-
};
|
|
322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
323
|
-
switch (errorCode) {
|
|
324
|
-
case "ConflictException":
|
|
325
|
-
case "com.amazonaws.pipes#ConflictException":
|
|
326
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
327
|
-
case "InternalException":
|
|
328
|
-
case "com.amazonaws.pipes#InternalException":
|
|
329
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
330
|
-
case "NotFoundException":
|
|
331
|
-
case "com.amazonaws.pipes#NotFoundException":
|
|
332
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
333
|
-
case "ServiceQuotaExceededException":
|
|
334
|
-
case "com.amazonaws.pipes#ServiceQuotaExceededException":
|
|
335
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
336
|
-
case "ThrottlingException":
|
|
337
|
-
case "com.amazonaws.pipes#ThrottlingException":
|
|
338
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
339
|
-
case "ValidationException":
|
|
340
|
-
case "com.amazonaws.pipes#ValidationException":
|
|
341
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
342
|
-
default:
|
|
343
|
-
const parsedBody = parsedOutput.body;
|
|
344
|
-
return throwDefaultError({
|
|
345
|
-
output,
|
|
346
|
-
parsedBody,
|
|
347
|
-
errorCode,
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
352
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
353
|
-
const contents = map({});
|
|
354
|
-
const data = parsedOutput.body;
|
|
355
|
-
const doc = take(data, {
|
|
356
|
-
message: __expectString,
|
|
357
|
-
resourceId: __expectString,
|
|
358
|
-
resourceType: __expectString,
|
|
359
|
-
});
|
|
360
|
-
Object.assign(contents, doc);
|
|
361
|
-
const exception = new ConflictException({
|
|
362
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
363
|
-
...contents,
|
|
364
|
-
});
|
|
365
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
366
|
-
};
|
|
367
|
-
const de_InternalExceptionRes = async (parsedOutput, context) => {
|
|
368
|
-
const contents = map({
|
|
369
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
370
|
-
});
|
|
371
|
-
const data = parsedOutput.body;
|
|
372
|
-
const doc = take(data, {
|
|
373
|
-
message: __expectString,
|
|
374
|
-
});
|
|
375
|
-
Object.assign(contents, doc);
|
|
376
|
-
const exception = new InternalException({
|
|
377
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
378
|
-
...contents,
|
|
379
|
-
});
|
|
380
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
381
|
-
};
|
|
382
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
383
|
-
const contents = map({});
|
|
384
|
-
const data = parsedOutput.body;
|
|
385
|
-
const doc = take(data, {
|
|
386
|
-
message: __expectString,
|
|
387
|
-
});
|
|
388
|
-
Object.assign(contents, doc);
|
|
389
|
-
const exception = new NotFoundException({
|
|
390
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
391
|
-
...contents,
|
|
392
|
-
});
|
|
393
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
394
|
-
};
|
|
395
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
396
|
-
const contents = map({});
|
|
397
|
-
const data = parsedOutput.body;
|
|
398
|
-
const doc = take(data, {
|
|
399
|
-
message: __expectString,
|
|
400
|
-
quotaCode: __expectString,
|
|
401
|
-
resourceId: __expectString,
|
|
402
|
-
resourceType: __expectString,
|
|
403
|
-
serviceCode: __expectString,
|
|
404
|
-
});
|
|
405
|
-
Object.assign(contents, doc);
|
|
406
|
-
const exception = new ServiceQuotaExceededException({
|
|
407
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
408
|
-
...contents,
|
|
409
|
-
});
|
|
410
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
411
|
-
};
|
|
412
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
413
|
-
const contents = map({
|
|
414
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
415
|
-
});
|
|
416
|
-
const data = parsedOutput.body;
|
|
417
|
-
const doc = take(data, {
|
|
418
|
-
message: __expectString,
|
|
419
|
-
quotaCode: __expectString,
|
|
420
|
-
serviceCode: __expectString,
|
|
421
|
-
});
|
|
422
|
-
Object.assign(contents, doc);
|
|
423
|
-
const exception = new ThrottlingException({
|
|
424
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
425
|
-
...contents,
|
|
426
|
-
});
|
|
427
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
428
|
-
};
|
|
429
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
430
|
-
const contents = map({});
|
|
431
|
-
const data = parsedOutput.body;
|
|
432
|
-
const doc = take(data, {
|
|
433
|
-
fieldList: _json,
|
|
434
|
-
message: __expectString,
|
|
435
|
-
});
|
|
436
|
-
Object.assign(contents, doc);
|
|
437
|
-
const exception = new ValidationException({
|
|
438
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
439
|
-
...contents,
|
|
440
|
-
});
|
|
441
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
442
|
-
};
|
|
443
|
-
const se_PipeSourceKinesisStreamParameters = (input, context) => {
|
|
444
|
-
return take(input, {
|
|
445
|
-
BatchSize: [],
|
|
446
|
-
DeadLetterConfig: _json,
|
|
447
|
-
MaximumBatchingWindowInSeconds: [],
|
|
448
|
-
MaximumRecordAgeInSeconds: [],
|
|
449
|
-
MaximumRetryAttempts: [],
|
|
450
|
-
OnPartialBatchItemFailure: [],
|
|
451
|
-
ParallelizationFactor: [],
|
|
452
|
-
StartingPosition: [],
|
|
453
|
-
StartingPositionTimestamp: (_) => _.getTime() / 1_000,
|
|
454
|
-
});
|
|
455
|
-
};
|
|
456
|
-
const se_PipeSourceParameters = (input, context) => {
|
|
457
|
-
return take(input, {
|
|
458
|
-
ActiveMQBrokerParameters: _json,
|
|
459
|
-
DynamoDBStreamParameters: _json,
|
|
460
|
-
FilterCriteria: _json,
|
|
461
|
-
KinesisStreamParameters: (_) => se_PipeSourceKinesisStreamParameters(_, context),
|
|
462
|
-
ManagedStreamingKafkaParameters: _json,
|
|
463
|
-
RabbitMQBrokerParameters: _json,
|
|
464
|
-
SelfManagedKafkaParameters: _json,
|
|
465
|
-
SqsQueueParameters: _json,
|
|
466
|
-
});
|
|
467
|
-
};
|
|
468
|
-
const de_Pipe = (output, context) => {
|
|
469
|
-
return take(output, {
|
|
470
|
-
Arn: __expectString,
|
|
471
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
472
|
-
CurrentState: __expectString,
|
|
473
|
-
DesiredState: __expectString,
|
|
474
|
-
Enrichment: __expectString,
|
|
475
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
476
|
-
Name: __expectString,
|
|
477
|
-
Source: __expectString,
|
|
478
|
-
StateReason: __expectString,
|
|
479
|
-
Target: __expectString,
|
|
480
|
-
});
|
|
481
|
-
};
|
|
482
|
-
const de_PipeList = (output, context) => {
|
|
483
|
-
const retVal = (output || [])
|
|
484
|
-
.filter((e) => e != null)
|
|
485
|
-
.map((entry) => {
|
|
486
|
-
return de_Pipe(entry, context);
|
|
487
|
-
});
|
|
488
|
-
return retVal;
|
|
489
|
-
};
|
|
490
|
-
const de_PipeSourceKinesisStreamParameters = (output, context) => {
|
|
491
|
-
return take(output, {
|
|
492
|
-
BatchSize: __expectInt32,
|
|
493
|
-
DeadLetterConfig: _json,
|
|
494
|
-
MaximumBatchingWindowInSeconds: __expectInt32,
|
|
495
|
-
MaximumRecordAgeInSeconds: __expectInt32,
|
|
496
|
-
MaximumRetryAttempts: __expectInt32,
|
|
497
|
-
OnPartialBatchItemFailure: __expectString,
|
|
498
|
-
ParallelizationFactor: __expectInt32,
|
|
499
|
-
StartingPosition: __expectString,
|
|
500
|
-
StartingPositionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
501
|
-
});
|
|
502
|
-
};
|
|
503
|
-
const de_PipeSourceParameters = (output, context) => {
|
|
504
|
-
return take(output, {
|
|
505
|
-
ActiveMQBrokerParameters: _json,
|
|
506
|
-
DynamoDBStreamParameters: _json,
|
|
507
|
-
FilterCriteria: _json,
|
|
508
|
-
KinesisStreamParameters: (_) => de_PipeSourceKinesisStreamParameters(_, context),
|
|
509
|
-
ManagedStreamingKafkaParameters: _json,
|
|
510
|
-
RabbitMQBrokerParameters: _json,
|
|
511
|
-
SelfManagedKafkaParameters: _json,
|
|
512
|
-
SqsQueueParameters: _json,
|
|
513
|
-
});
|
|
514
|
-
};
|
|
515
|
-
const deserializeMetadata = (output) => ({
|
|
516
|
-
httpStatusCode: output.statusCode,
|
|
517
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
518
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
519
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
520
|
-
});
|
|
521
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
522
|
-
const _CS = "CurrentState";
|
|
523
|
-
const _DS = "DesiredState";
|
|
524
|
-
const _L = "Limit";
|
|
525
|
-
const _NP = "NamePrefix";
|
|
526
|
-
const _NT = "NextToken";
|
|
527
|
-
const _SP = "SourcePrefix";
|
|
528
|
-
const _TP = "TargetPrefix";
|
|
529
|
-
const _rAS = "retryAfterSeconds";
|
|
530
|
-
const _ra = "retry-after";
|
|
531
|
-
const _tK = "tagKeys";
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { CreatePipeCommandInput, CreatePipeCommandOutput } from "../commands/CreatePipeCommand";
|
|
4
|
-
import { DeletePipeCommandInput, DeletePipeCommandOutput } from "../commands/DeletePipeCommand";
|
|
5
|
-
import { DescribePipeCommandInput, DescribePipeCommandOutput } from "../commands/DescribePipeCommand";
|
|
6
|
-
import { ListPipesCommandInput, ListPipesCommandOutput } from "../commands/ListPipesCommand";
|
|
7
|
-
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
8
|
-
import { StartPipeCommandInput, StartPipeCommandOutput } from "../commands/StartPipeCommand";
|
|
9
|
-
import { StopPipeCommandInput, StopPipeCommandOutput } from "../commands/StopPipeCommand";
|
|
10
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
11
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
12
|
-
import { UpdatePipeCommandInput, UpdatePipeCommandOutput } from "../commands/UpdatePipeCommand";
|
|
13
|
-
/**
|
|
14
|
-
* serializeAws_restJson1CreatePipeCommand
|
|
15
|
-
*/
|
|
16
|
-
export declare const se_CreatePipeCommand: (input: CreatePipeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
17
|
-
/**
|
|
18
|
-
* serializeAws_restJson1DeletePipeCommand
|
|
19
|
-
*/
|
|
20
|
-
export declare const se_DeletePipeCommand: (input: DeletePipeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
21
|
-
/**
|
|
22
|
-
* serializeAws_restJson1DescribePipeCommand
|
|
23
|
-
*/
|
|
24
|
-
export declare const se_DescribePipeCommand: (input: DescribePipeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
25
|
-
/**
|
|
26
|
-
* serializeAws_restJson1ListPipesCommand
|
|
27
|
-
*/
|
|
28
|
-
export declare const se_ListPipesCommand: (input: ListPipesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
29
|
-
/**
|
|
30
|
-
* serializeAws_restJson1ListTagsForResourceCommand
|
|
31
|
-
*/
|
|
32
|
-
export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
33
|
-
/**
|
|
34
|
-
* serializeAws_restJson1StartPipeCommand
|
|
35
|
-
*/
|
|
36
|
-
export declare const se_StartPipeCommand: (input: StartPipeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
37
|
-
/**
|
|
38
|
-
* serializeAws_restJson1StopPipeCommand
|
|
39
|
-
*/
|
|
40
|
-
export declare const se_StopPipeCommand: (input: StopPipeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
41
|
-
/**
|
|
42
|
-
* serializeAws_restJson1TagResourceCommand
|
|
43
|
-
*/
|
|
44
|
-
export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
45
|
-
/**
|
|
46
|
-
* serializeAws_restJson1UntagResourceCommand
|
|
47
|
-
*/
|
|
48
|
-
export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
49
|
-
/**
|
|
50
|
-
* serializeAws_restJson1UpdatePipeCommand
|
|
51
|
-
*/
|
|
52
|
-
export declare const se_UpdatePipeCommand: (input: UpdatePipeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
53
|
-
/**
|
|
54
|
-
* deserializeAws_restJson1CreatePipeCommand
|
|
55
|
-
*/
|
|
56
|
-
export declare const de_CreatePipeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreatePipeCommandOutput>;
|
|
57
|
-
/**
|
|
58
|
-
* deserializeAws_restJson1DeletePipeCommand
|
|
59
|
-
*/
|
|
60
|
-
export declare const de_DeletePipeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePipeCommandOutput>;
|
|
61
|
-
/**
|
|
62
|
-
* deserializeAws_restJson1DescribePipeCommand
|
|
63
|
-
*/
|
|
64
|
-
export declare const de_DescribePipeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribePipeCommandOutput>;
|
|
65
|
-
/**
|
|
66
|
-
* deserializeAws_restJson1ListPipesCommand
|
|
67
|
-
*/
|
|
68
|
-
export declare const de_ListPipesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListPipesCommandOutput>;
|
|
69
|
-
/**
|
|
70
|
-
* deserializeAws_restJson1ListTagsForResourceCommand
|
|
71
|
-
*/
|
|
72
|
-
export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
73
|
-
/**
|
|
74
|
-
* deserializeAws_restJson1StartPipeCommand
|
|
75
|
-
*/
|
|
76
|
-
export declare const de_StartPipeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartPipeCommandOutput>;
|
|
77
|
-
/**
|
|
78
|
-
* deserializeAws_restJson1StopPipeCommand
|
|
79
|
-
*/
|
|
80
|
-
export declare const de_StopPipeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopPipeCommandOutput>;
|
|
81
|
-
/**
|
|
82
|
-
* deserializeAws_restJson1TagResourceCommand
|
|
83
|
-
*/
|
|
84
|
-
export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
85
|
-
/**
|
|
86
|
-
* deserializeAws_restJson1UntagResourceCommand
|
|
87
|
-
*/
|
|
88
|
-
export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
89
|
-
/**
|
|
90
|
-
* deserializeAws_restJson1UpdatePipeCommand
|
|
91
|
-
*/
|
|
92
|
-
export declare const de_UpdatePipeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdatePipeCommandOutput>;
|