@aws-sdk/client-pca-connector-scep 3.893.0 → 3.894.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.
Files changed (29) hide show
  1. package/dist-cjs/index.js +1261 -10
  2. package/package.json +6 -6
  3. package/dist-cjs/PcaConnectorScep.js +0 -35
  4. package/dist-cjs/PcaConnectorScepClient.js +0 -52
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/CreateChallengeCommand.js +0 -27
  7. package/dist-cjs/commands/CreateConnectorCommand.js +0 -26
  8. package/dist-cjs/commands/DeleteChallengeCommand.js +0 -26
  9. package/dist-cjs/commands/DeleteConnectorCommand.js +0 -26
  10. package/dist-cjs/commands/GetChallengeMetadataCommand.js +0 -26
  11. package/dist-cjs/commands/GetChallengePasswordCommand.js +0 -27
  12. package/dist-cjs/commands/GetConnectorCommand.js +0 -26
  13. package/dist-cjs/commands/ListChallengeMetadataCommand.js +0 -26
  14. package/dist-cjs/commands/ListConnectorsCommand.js +0 -26
  15. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
  16. package/dist-cjs/commands/TagResourceCommand.js +0 -26
  17. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  18. package/dist-cjs/commands/index.js +0 -15
  19. package/dist-cjs/endpoint/EndpointParameters.js +0 -17
  20. package/dist-cjs/extensionConfiguration.js +0 -2
  21. package/dist-cjs/models/PcaConnectorScepServiceException.js +0 -12
  22. package/dist-cjs/models/index.js +0 -4
  23. package/dist-cjs/models/models_0.js +0 -193
  24. package/dist-cjs/pagination/Interfaces.js +0 -2
  25. package/dist-cjs/pagination/ListChallengeMetadataPaginator.js +0 -7
  26. package/dist-cjs/pagination/ListConnectorsPaginator.js +0 -7
  27. package/dist-cjs/pagination/index.js +0 -6
  28. package/dist-cjs/protocols/Aws_restJson1.js +0 -557
  29. package/dist-cjs/runtimeExtensions.js +0 -13
@@ -1,557 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListConnectorsCommand = exports.de_ListChallengeMetadataCommand = exports.de_GetConnectorCommand = exports.de_GetChallengePasswordCommand = exports.de_GetChallengeMetadataCommand = exports.de_DeleteConnectorCommand = exports.de_DeleteChallengeCommand = exports.de_CreateConnectorCommand = exports.de_CreateChallengeCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListConnectorsCommand = exports.se_ListChallengeMetadataCommand = exports.se_GetConnectorCommand = exports.se_GetChallengePasswordCommand = exports.se_GetChallengeMetadataCommand = exports.se_DeleteConnectorCommand = exports.se_DeleteChallengeCommand = exports.se_CreateConnectorCommand = exports.se_CreateChallengeCommand = void 0;
4
- const core_1 = require("@aws-sdk/core");
5
- const core_2 = require("@smithy/core");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const uuid_1 = require("uuid");
8
- const models_0_1 = require("../models/models_0");
9
- const PcaConnectorScepServiceException_1 = require("../models/PcaConnectorScepServiceException");
10
- const se_CreateChallengeCommand = async (input, context) => {
11
- const b = (0, core_2.requestBuilder)(input, context);
12
- const headers = {
13
- "content-type": "application/json",
14
- };
15
- b.bp("/challenges");
16
- let body;
17
- body = JSON.stringify((0, smithy_client_1.take)(input, {
18
- ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
19
- ConnectorArn: [],
20
- Tags: (_) => (0, smithy_client_1._json)(_),
21
- }));
22
- b.m("POST").h(headers).b(body);
23
- return b.build();
24
- };
25
- exports.se_CreateChallengeCommand = se_CreateChallengeCommand;
26
- const se_CreateConnectorCommand = async (input, context) => {
27
- const b = (0, core_2.requestBuilder)(input, context);
28
- const headers = {
29
- "content-type": "application/json",
30
- };
31
- b.bp("/connectors");
32
- let body;
33
- body = JSON.stringify((0, smithy_client_1.take)(input, {
34
- CertificateAuthorityArn: [],
35
- ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
36
- MobileDeviceManagement: (_) => (0, smithy_client_1._json)(_),
37
- Tags: (_) => (0, smithy_client_1._json)(_),
38
- }));
39
- b.m("POST").h(headers).b(body);
40
- return b.build();
41
- };
42
- exports.se_CreateConnectorCommand = se_CreateConnectorCommand;
43
- const se_DeleteChallengeCommand = async (input, context) => {
44
- const b = (0, core_2.requestBuilder)(input, context);
45
- const headers = {};
46
- b.bp("/challenges/{ChallengeArn}");
47
- b.p("ChallengeArn", () => input.ChallengeArn, "{ChallengeArn}", false);
48
- let body;
49
- b.m("DELETE").h(headers).b(body);
50
- return b.build();
51
- };
52
- exports.se_DeleteChallengeCommand = se_DeleteChallengeCommand;
53
- const se_DeleteConnectorCommand = async (input, context) => {
54
- const b = (0, core_2.requestBuilder)(input, context);
55
- const headers = {};
56
- b.bp("/connectors/{ConnectorArn}");
57
- b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
58
- let body;
59
- b.m("DELETE").h(headers).b(body);
60
- return b.build();
61
- };
62
- exports.se_DeleteConnectorCommand = se_DeleteConnectorCommand;
63
- const se_GetChallengeMetadataCommand = async (input, context) => {
64
- const b = (0, core_2.requestBuilder)(input, context);
65
- const headers = {};
66
- b.bp("/challengeMetadata/{ChallengeArn}");
67
- b.p("ChallengeArn", () => input.ChallengeArn, "{ChallengeArn}", false);
68
- let body;
69
- b.m("GET").h(headers).b(body);
70
- return b.build();
71
- };
72
- exports.se_GetChallengeMetadataCommand = se_GetChallengeMetadataCommand;
73
- const se_GetChallengePasswordCommand = async (input, context) => {
74
- const b = (0, core_2.requestBuilder)(input, context);
75
- const headers = {};
76
- b.bp("/challengePasswords/{ChallengeArn}");
77
- b.p("ChallengeArn", () => input.ChallengeArn, "{ChallengeArn}", false);
78
- let body;
79
- b.m("GET").h(headers).b(body);
80
- return b.build();
81
- };
82
- exports.se_GetChallengePasswordCommand = se_GetChallengePasswordCommand;
83
- const se_GetConnectorCommand = async (input, context) => {
84
- const b = (0, core_2.requestBuilder)(input, context);
85
- const headers = {};
86
- b.bp("/connectors/{ConnectorArn}");
87
- b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
88
- let body;
89
- b.m("GET").h(headers).b(body);
90
- return b.build();
91
- };
92
- exports.se_GetConnectorCommand = se_GetConnectorCommand;
93
- const se_ListChallengeMetadataCommand = async (input, context) => {
94
- const b = (0, core_2.requestBuilder)(input, context);
95
- const headers = {};
96
- b.bp("/challengeMetadata");
97
- const query = (0, smithy_client_1.map)({
98
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
99
- [_NT]: [, input[_NT]],
100
- [_CA]: [, (0, smithy_client_1.expectNonNull)(input[_CA], `ConnectorArn`)],
101
- });
102
- let body;
103
- b.m("GET").h(headers).q(query).b(body);
104
- return b.build();
105
- };
106
- exports.se_ListChallengeMetadataCommand = se_ListChallengeMetadataCommand;
107
- const se_ListConnectorsCommand = async (input, context) => {
108
- const b = (0, core_2.requestBuilder)(input, context);
109
- const headers = {};
110
- b.bp("/connectors");
111
- const query = (0, smithy_client_1.map)({
112
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
113
- [_NT]: [, input[_NT]],
114
- });
115
- let body;
116
- b.m("GET").h(headers).q(query).b(body);
117
- return b.build();
118
- };
119
- exports.se_ListConnectorsCommand = se_ListConnectorsCommand;
120
- const se_ListTagsForResourceCommand = async (input, context) => {
121
- const b = (0, core_2.requestBuilder)(input, context);
122
- const headers = {};
123
- b.bp("/tags/{ResourceArn}");
124
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
125
- let body;
126
- b.m("GET").h(headers).b(body);
127
- return b.build();
128
- };
129
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
130
- const se_TagResourceCommand = async (input, context) => {
131
- const b = (0, core_2.requestBuilder)(input, context);
132
- const headers = {
133
- "content-type": "application/json",
134
- };
135
- b.bp("/tags/{ResourceArn}");
136
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
137
- let body;
138
- body = JSON.stringify((0, smithy_client_1.take)(input, {
139
- Tags: (_) => (0, smithy_client_1._json)(_),
140
- }));
141
- b.m("POST").h(headers).b(body);
142
- return b.build();
143
- };
144
- exports.se_TagResourceCommand = se_TagResourceCommand;
145
- const se_UntagResourceCommand = async (input, context) => {
146
- const b = (0, core_2.requestBuilder)(input, context);
147
- const headers = {};
148
- b.bp("/tags/{ResourceArn}");
149
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
150
- const query = (0, smithy_client_1.map)({
151
- [_tK]: [(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
152
- });
153
- let body;
154
- b.m("DELETE").h(headers).q(query).b(body);
155
- return b.build();
156
- };
157
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
158
- const de_CreateChallengeCommand = async (output, context) => {
159
- if (output.statusCode !== 202 && output.statusCode >= 300) {
160
- return de_CommandError(output, context);
161
- }
162
- const contents = (0, smithy_client_1.map)({
163
- $metadata: deserializeMetadata(output),
164
- });
165
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
166
- const doc = (0, smithy_client_1.take)(data, {
167
- Challenge: (_) => de_Challenge(_, context),
168
- });
169
- Object.assign(contents, doc);
170
- return contents;
171
- };
172
- exports.de_CreateChallengeCommand = de_CreateChallengeCommand;
173
- const de_CreateConnectorCommand = async (output, context) => {
174
- if (output.statusCode !== 202 && output.statusCode >= 300) {
175
- return de_CommandError(output, context);
176
- }
177
- const contents = (0, smithy_client_1.map)({
178
- $metadata: deserializeMetadata(output),
179
- });
180
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
181
- const doc = (0, smithy_client_1.take)(data, {
182
- ConnectorArn: smithy_client_1.expectString,
183
- });
184
- Object.assign(contents, doc);
185
- return contents;
186
- };
187
- exports.de_CreateConnectorCommand = de_CreateConnectorCommand;
188
- const de_DeleteChallengeCommand = async (output, context) => {
189
- if (output.statusCode !== 202 && output.statusCode >= 300) {
190
- return de_CommandError(output, context);
191
- }
192
- const contents = (0, smithy_client_1.map)({
193
- $metadata: deserializeMetadata(output),
194
- });
195
- await (0, smithy_client_1.collectBody)(output.body, context);
196
- return contents;
197
- };
198
- exports.de_DeleteChallengeCommand = de_DeleteChallengeCommand;
199
- const de_DeleteConnectorCommand = async (output, context) => {
200
- if (output.statusCode !== 202 && output.statusCode >= 300) {
201
- return de_CommandError(output, context);
202
- }
203
- const contents = (0, smithy_client_1.map)({
204
- $metadata: deserializeMetadata(output),
205
- });
206
- await (0, smithy_client_1.collectBody)(output.body, context);
207
- return contents;
208
- };
209
- exports.de_DeleteConnectorCommand = de_DeleteConnectorCommand;
210
- const de_GetChallengeMetadataCommand = async (output, context) => {
211
- if (output.statusCode !== 200 && output.statusCode >= 300) {
212
- return de_CommandError(output, context);
213
- }
214
- const contents = (0, smithy_client_1.map)({
215
- $metadata: deserializeMetadata(output),
216
- });
217
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
218
- const doc = (0, smithy_client_1.take)(data, {
219
- ChallengeMetadata: (_) => de_ChallengeMetadata(_, context),
220
- });
221
- Object.assign(contents, doc);
222
- return contents;
223
- };
224
- exports.de_GetChallengeMetadataCommand = de_GetChallengeMetadataCommand;
225
- const de_GetChallengePasswordCommand = async (output, context) => {
226
- if (output.statusCode !== 200 && output.statusCode >= 300) {
227
- return de_CommandError(output, context);
228
- }
229
- const contents = (0, smithy_client_1.map)({
230
- $metadata: deserializeMetadata(output),
231
- });
232
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
233
- const doc = (0, smithy_client_1.take)(data, {
234
- Password: smithy_client_1.expectString,
235
- });
236
- Object.assign(contents, doc);
237
- return contents;
238
- };
239
- exports.de_GetChallengePasswordCommand = de_GetChallengePasswordCommand;
240
- const de_GetConnectorCommand = async (output, context) => {
241
- if (output.statusCode !== 200 && output.statusCode >= 300) {
242
- return de_CommandError(output, context);
243
- }
244
- const contents = (0, smithy_client_1.map)({
245
- $metadata: deserializeMetadata(output),
246
- });
247
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
248
- const doc = (0, smithy_client_1.take)(data, {
249
- Connector: (_) => de_Connector(_, context),
250
- });
251
- Object.assign(contents, doc);
252
- return contents;
253
- };
254
- exports.de_GetConnectorCommand = de_GetConnectorCommand;
255
- const de_ListChallengeMetadataCommand = async (output, context) => {
256
- if (output.statusCode !== 200 && output.statusCode >= 300) {
257
- return de_CommandError(output, context);
258
- }
259
- const contents = (0, smithy_client_1.map)({
260
- $metadata: deserializeMetadata(output),
261
- });
262
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
263
- const doc = (0, smithy_client_1.take)(data, {
264
- Challenges: (_) => de_ChallengeMetadataList(_, context),
265
- NextToken: smithy_client_1.expectString,
266
- });
267
- Object.assign(contents, doc);
268
- return contents;
269
- };
270
- exports.de_ListChallengeMetadataCommand = de_ListChallengeMetadataCommand;
271
- const de_ListConnectorsCommand = async (output, context) => {
272
- if (output.statusCode !== 200 && output.statusCode >= 300) {
273
- return de_CommandError(output, context);
274
- }
275
- const contents = (0, smithy_client_1.map)({
276
- $metadata: deserializeMetadata(output),
277
- });
278
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
279
- const doc = (0, smithy_client_1.take)(data, {
280
- Connectors: (_) => de_ConnectorList(_, context),
281
- NextToken: smithy_client_1.expectString,
282
- });
283
- Object.assign(contents, doc);
284
- return contents;
285
- };
286
- exports.de_ListConnectorsCommand = de_ListConnectorsCommand;
287
- const de_ListTagsForResourceCommand = async (output, context) => {
288
- if (output.statusCode !== 200 && output.statusCode >= 300) {
289
- return de_CommandError(output, context);
290
- }
291
- const contents = (0, smithy_client_1.map)({
292
- $metadata: deserializeMetadata(output),
293
- });
294
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
295
- const doc = (0, smithy_client_1.take)(data, {
296
- Tags: smithy_client_1._json,
297
- });
298
- Object.assign(contents, doc);
299
- return contents;
300
- };
301
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
302
- const de_TagResourceCommand = async (output, context) => {
303
- if (output.statusCode !== 204 && output.statusCode >= 300) {
304
- return de_CommandError(output, context);
305
- }
306
- const contents = (0, smithy_client_1.map)({
307
- $metadata: deserializeMetadata(output),
308
- });
309
- await (0, smithy_client_1.collectBody)(output.body, context);
310
- return contents;
311
- };
312
- exports.de_TagResourceCommand = de_TagResourceCommand;
313
- const de_UntagResourceCommand = async (output, context) => {
314
- if (output.statusCode !== 204 && output.statusCode >= 300) {
315
- return de_CommandError(output, context);
316
- }
317
- const contents = (0, smithy_client_1.map)({
318
- $metadata: deserializeMetadata(output),
319
- });
320
- await (0, smithy_client_1.collectBody)(output.body, context);
321
- return contents;
322
- };
323
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
324
- const de_CommandError = async (output, context) => {
325
- const parsedOutput = {
326
- ...output,
327
- body: await (0, core_1.parseJsonErrorBody)(output.body, context),
328
- };
329
- const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
330
- switch (errorCode) {
331
- case "AccessDeniedException":
332
- case "com.amazonaws.pcaconnectorscep#AccessDeniedException":
333
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
334
- case "BadRequestException":
335
- case "com.amazonaws.pcaconnectorscep#BadRequestException":
336
- throw await de_BadRequestExceptionRes(parsedOutput, context);
337
- case "ConflictException":
338
- case "com.amazonaws.pcaconnectorscep#ConflictException":
339
- throw await de_ConflictExceptionRes(parsedOutput, context);
340
- case "InternalServerException":
341
- case "com.amazonaws.pcaconnectorscep#InternalServerException":
342
- throw await de_InternalServerExceptionRes(parsedOutput, context);
343
- case "ResourceNotFoundException":
344
- case "com.amazonaws.pcaconnectorscep#ResourceNotFoundException":
345
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
346
- case "ServiceQuotaExceededException":
347
- case "com.amazonaws.pcaconnectorscep#ServiceQuotaExceededException":
348
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
349
- case "ThrottlingException":
350
- case "com.amazonaws.pcaconnectorscep#ThrottlingException":
351
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
352
- case "ValidationException":
353
- case "com.amazonaws.pcaconnectorscep#ValidationException":
354
- throw await de_ValidationExceptionRes(parsedOutput, context);
355
- default:
356
- const parsedBody = parsedOutput.body;
357
- return throwDefaultError({
358
- output,
359
- parsedBody,
360
- errorCode,
361
- });
362
- }
363
- };
364
- const throwDefaultError = (0, smithy_client_1.withBaseException)(PcaConnectorScepServiceException_1.PcaConnectorScepServiceException);
365
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
366
- const contents = (0, smithy_client_1.map)({});
367
- const data = parsedOutput.body;
368
- const doc = (0, smithy_client_1.take)(data, {
369
- Message: smithy_client_1.expectString,
370
- });
371
- Object.assign(contents, doc);
372
- const exception = new models_0_1.AccessDeniedException({
373
- $metadata: deserializeMetadata(parsedOutput),
374
- ...contents,
375
- });
376
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
377
- };
378
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
379
- const contents = (0, smithy_client_1.map)({});
380
- const data = parsedOutput.body;
381
- const doc = (0, smithy_client_1.take)(data, {
382
- Message: smithy_client_1.expectString,
383
- });
384
- Object.assign(contents, doc);
385
- const exception = new models_0_1.BadRequestException({
386
- $metadata: deserializeMetadata(parsedOutput),
387
- ...contents,
388
- });
389
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
390
- };
391
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
392
- const contents = (0, smithy_client_1.map)({});
393
- const data = parsedOutput.body;
394
- const doc = (0, smithy_client_1.take)(data, {
395
- Message: smithy_client_1.expectString,
396
- ResourceId: smithy_client_1.expectString,
397
- ResourceType: smithy_client_1.expectString,
398
- });
399
- Object.assign(contents, doc);
400
- const exception = new models_0_1.ConflictException({
401
- $metadata: deserializeMetadata(parsedOutput),
402
- ...contents,
403
- });
404
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
405
- };
406
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
407
- const contents = (0, smithy_client_1.map)({});
408
- const data = parsedOutput.body;
409
- const doc = (0, smithy_client_1.take)(data, {
410
- Message: smithy_client_1.expectString,
411
- });
412
- Object.assign(contents, doc);
413
- const exception = new models_0_1.InternalServerException({
414
- $metadata: deserializeMetadata(parsedOutput),
415
- ...contents,
416
- });
417
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
418
- };
419
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
420
- const contents = (0, smithy_client_1.map)({});
421
- const data = parsedOutput.body;
422
- const doc = (0, smithy_client_1.take)(data, {
423
- Message: smithy_client_1.expectString,
424
- ResourceId: smithy_client_1.expectString,
425
- ResourceType: smithy_client_1.expectString,
426
- });
427
- Object.assign(contents, doc);
428
- const exception = new models_0_1.ResourceNotFoundException({
429
- $metadata: deserializeMetadata(parsedOutput),
430
- ...contents,
431
- });
432
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
433
- };
434
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
435
- const contents = (0, smithy_client_1.map)({});
436
- const data = parsedOutput.body;
437
- const doc = (0, smithy_client_1.take)(data, {
438
- Message: smithy_client_1.expectString,
439
- QuotaCode: smithy_client_1.expectString,
440
- ResourceType: smithy_client_1.expectString,
441
- ServiceCode: smithy_client_1.expectString,
442
- });
443
- Object.assign(contents, doc);
444
- const exception = new models_0_1.ServiceQuotaExceededException({
445
- $metadata: deserializeMetadata(parsedOutput),
446
- ...contents,
447
- });
448
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
449
- };
450
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
451
- const contents = (0, smithy_client_1.map)({});
452
- const data = parsedOutput.body;
453
- const doc = (0, smithy_client_1.take)(data, {
454
- Message: smithy_client_1.expectString,
455
- });
456
- Object.assign(contents, doc);
457
- const exception = new models_0_1.ThrottlingException({
458
- $metadata: deserializeMetadata(parsedOutput),
459
- ...contents,
460
- });
461
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
462
- };
463
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
464
- const contents = (0, smithy_client_1.map)({});
465
- const data = parsedOutput.body;
466
- const doc = (0, smithy_client_1.take)(data, {
467
- Message: smithy_client_1.expectString,
468
- Reason: smithy_client_1.expectString,
469
- });
470
- Object.assign(contents, doc);
471
- const exception = new models_0_1.ValidationException({
472
- $metadata: deserializeMetadata(parsedOutput),
473
- ...contents,
474
- });
475
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
476
- };
477
- const de_Challenge = (output, context) => {
478
- return (0, smithy_client_1.take)(output, {
479
- Arn: smithy_client_1.expectString,
480
- ConnectorArn: smithy_client_1.expectString,
481
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
482
- Password: smithy_client_1.expectString,
483
- UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
484
- });
485
- };
486
- const de_ChallengeMetadata = (output, context) => {
487
- return (0, smithy_client_1.take)(output, {
488
- Arn: smithy_client_1.expectString,
489
- ConnectorArn: smithy_client_1.expectString,
490
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
491
- UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
492
- });
493
- };
494
- const de_ChallengeMetadataList = (output, context) => {
495
- const retVal = (output || [])
496
- .filter((e) => e != null)
497
- .map((entry) => {
498
- return de_ChallengeMetadataSummary(entry, context);
499
- });
500
- return retVal;
501
- };
502
- const de_ChallengeMetadataSummary = (output, context) => {
503
- return (0, smithy_client_1.take)(output, {
504
- Arn: smithy_client_1.expectString,
505
- ConnectorArn: smithy_client_1.expectString,
506
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
507
- UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
508
- });
509
- };
510
- const de_Connector = (output, context) => {
511
- return (0, smithy_client_1.take)(output, {
512
- Arn: smithy_client_1.expectString,
513
- CertificateAuthorityArn: smithy_client_1.expectString,
514
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
515
- Endpoint: smithy_client_1.expectString,
516
- MobileDeviceManagement: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
517
- OpenIdConfiguration: smithy_client_1._json,
518
- Status: smithy_client_1.expectString,
519
- StatusReason: smithy_client_1.expectString,
520
- Type: smithy_client_1.expectString,
521
- UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
522
- });
523
- };
524
- const de_ConnectorList = (output, context) => {
525
- const retVal = (output || [])
526
- .filter((e) => e != null)
527
- .map((entry) => {
528
- return de_ConnectorSummary(entry, context);
529
- });
530
- return retVal;
531
- };
532
- const de_ConnectorSummary = (output, context) => {
533
- return (0, smithy_client_1.take)(output, {
534
- Arn: smithy_client_1.expectString,
535
- CertificateAuthorityArn: smithy_client_1.expectString,
536
- CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
537
- Endpoint: smithy_client_1.expectString,
538
- MobileDeviceManagement: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
539
- OpenIdConfiguration: smithy_client_1._json,
540
- Status: smithy_client_1.expectString,
541
- StatusReason: smithy_client_1.expectString,
542
- Type: smithy_client_1.expectString,
543
- UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
544
- });
545
- };
546
- const deserializeMetadata = (output) => ({
547
- httpStatusCode: output.statusCode,
548
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
549
- extendedRequestId: output.headers["x-amz-id-2"],
550
- cfId: output.headers["x-amz-cf-id"],
551
- });
552
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
553
- const _CA = "ConnectorArn";
554
- const _MR = "MaxResults";
555
- const _NT = "NextToken";
556
- const _TK = "TagKeys";
557
- const _tK = "tagKeys";
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveRuntimeExtensions = void 0;
4
- const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
5
- const protocol_http_1 = require("@smithy/protocol-http");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
8
- const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
9
- const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
10
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
11
- return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
12
- };
13
- exports.resolveRuntimeExtensions = resolveRuntimeExtensions;