@aws-sdk/client-pca-connector-scep 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.
Files changed (36) hide show
  1. package/dist-cjs/index.js +492 -655
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/PcaConnectorScepClient.js +2 -0
  4. package/dist-es/commands/CreateChallengeCommand.js +3 -10
  5. package/dist-es/commands/CreateConnectorCommand.js +3 -9
  6. package/dist-es/commands/DeleteChallengeCommand.js +3 -9
  7. package/dist-es/commands/DeleteConnectorCommand.js +3 -9
  8. package/dist-es/commands/GetChallengeMetadataCommand.js +3 -9
  9. package/dist-es/commands/GetChallengePasswordCommand.js +3 -10
  10. package/dist-es/commands/GetConnectorCommand.js +3 -9
  11. package/dist-es/commands/ListChallengeMetadataCommand.js +3 -9
  12. package/dist-es/commands/ListConnectorsCommand.js +3 -9
  13. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  14. package/dist-es/commands/TagResourceCommand.js +3 -9
  15. package/dist-es/commands/UntagResourceCommand.js +3 -9
  16. package/dist-es/models/models_0.js +0 -21
  17. package/dist-es/runtimeConfig.shared.js +2 -0
  18. package/dist-es/schemas/schemas_0.js +449 -0
  19. package/dist-types/PcaConnectorScepClient.d.ts +10 -1
  20. package/dist-types/models/models_0.d.ts +4 -13
  21. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  22. package/dist-types/runtimeConfig.d.ts +1 -0
  23. package/dist-types/runtimeConfig.native.d.ts +1 -0
  24. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  25. package/dist-types/schemas/schemas_0.d.ts +56 -0
  26. package/dist-types/ts3.4/PcaConnectorScepClient.d.ts +4 -0
  27. package/dist-types/ts3.4/models/models_0.d.ts +0 -8
  28. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  29. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  30. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  31. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  32. package/dist-types/ts3.4/schemas/schemas_0.d.ts +62 -0
  33. package/package.json +33 -34
  34. package/dist-es/protocols/Aws_restJson1.js +0 -530
  35. package/dist-types/protocols/Aws_restJson1.d.ts +0 -110
  36. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -149
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,9 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
- var uuid = require('@smithy/uuid');
20
18
 
21
19
  const resolveClientEndpointParameters = (options) => {
22
20
  return Object.assign(options, {
@@ -92,6 +90,7 @@ class PcaConnectorScepClient extends smithyClient.Client {
92
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
95
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -111,14 +110,14 @@ class PcaConnectorScepClient extends smithyClient.Client {
111
110
  }
112
111
  }
113
112
 
114
- class PcaConnectorScepServiceException extends smithyClient.ServiceException {
113
+ let PcaConnectorScepServiceException$1 = class PcaConnectorScepServiceException extends smithyClient.ServiceException {
115
114
  constructor(options) {
116
115
  super(options);
117
116
  Object.setPrototypeOf(this, PcaConnectorScepServiceException.prototype);
118
117
  }
119
- }
118
+ };
120
119
 
121
- class AccessDeniedException extends PcaConnectorScepServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends PcaConnectorScepServiceException$1 {
122
121
  name = "AccessDeniedException";
123
122
  $fault = "client";
124
123
  Message;
@@ -131,8 +130,8 @@ class AccessDeniedException extends PcaConnectorScepServiceException {
131
130
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
132
131
  this.Message = opts.Message;
133
132
  }
134
- }
135
- class BadRequestException extends PcaConnectorScepServiceException {
133
+ };
134
+ let BadRequestException$1 = class BadRequestException extends PcaConnectorScepServiceException$1 {
136
135
  name = "BadRequestException";
137
136
  $fault = "client";
138
137
  Message;
@@ -145,8 +144,8 @@ class BadRequestException extends PcaConnectorScepServiceException {
145
144
  Object.setPrototypeOf(this, BadRequestException.prototype);
146
145
  this.Message = opts.Message;
147
146
  }
148
- }
149
- class ConflictException extends PcaConnectorScepServiceException {
147
+ };
148
+ let ConflictException$1 = class ConflictException extends PcaConnectorScepServiceException$1 {
150
149
  name = "ConflictException";
151
150
  $fault = "client";
152
151
  Message;
@@ -163,8 +162,8 @@ class ConflictException extends PcaConnectorScepServiceException {
163
162
  this.ResourceId = opts.ResourceId;
164
163
  this.ResourceType = opts.ResourceType;
165
164
  }
166
- }
167
- class InternalServerException extends PcaConnectorScepServiceException {
165
+ };
166
+ let InternalServerException$1 = class InternalServerException extends PcaConnectorScepServiceException$1 {
168
167
  name = "InternalServerException";
169
168
  $fault = "server";
170
169
  $retryable = {};
@@ -178,8 +177,8 @@ class InternalServerException extends PcaConnectorScepServiceException {
178
177
  Object.setPrototypeOf(this, InternalServerException.prototype);
179
178
  this.Message = opts.Message;
180
179
  }
181
- }
182
- class ResourceNotFoundException extends PcaConnectorScepServiceException {
180
+ };
181
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends PcaConnectorScepServiceException$1 {
183
182
  name = "ResourceNotFoundException";
184
183
  $fault = "client";
185
184
  Message;
@@ -196,8 +195,8 @@ class ResourceNotFoundException extends PcaConnectorScepServiceException {
196
195
  this.ResourceId = opts.ResourceId;
197
196
  this.ResourceType = opts.ResourceType;
198
197
  }
199
- }
200
- class ServiceQuotaExceededException extends PcaConnectorScepServiceException {
198
+ };
199
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends PcaConnectorScepServiceException$1 {
201
200
  name = "ServiceQuotaExceededException";
202
201
  $fault = "client";
203
202
  Message;
@@ -216,8 +215,8 @@ class ServiceQuotaExceededException extends PcaConnectorScepServiceException {
216
215
  this.ServiceCode = opts.ServiceCode;
217
216
  this.QuotaCode = opts.QuotaCode;
218
217
  }
219
- }
220
- class ThrottlingException extends PcaConnectorScepServiceException {
218
+ };
219
+ let ThrottlingException$1 = class ThrottlingException extends PcaConnectorScepServiceException$1 {
221
220
  name = "ThrottlingException";
222
221
  $fault = "client";
223
222
  $retryable = {
@@ -233,7 +232,7 @@ class ThrottlingException extends PcaConnectorScepServiceException {
233
232
  Object.setPrototypeOf(this, ThrottlingException.prototype);
234
233
  this.Message = opts.Message;
235
234
  }
236
- }
235
+ };
237
236
  const ValidationExceptionReason = {
238
237
  CA_CERT_VALIDITY_TOO_SHORT: "CA_CERT_VALIDITY_TOO_SHORT",
239
238
  INVALID_CA_USAGE_MODE: "INVALID_CA_USAGE_MODE",
@@ -243,7 +242,7 @@ const ValidationExceptionReason = {
243
242
  OTHER: "OTHER",
244
243
  UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
245
244
  };
246
- class ValidationException extends PcaConnectorScepServiceException {
245
+ let ValidationException$1 = class ValidationException extends PcaConnectorScepServiceException$1 {
247
246
  name = "ValidationException";
248
247
  $fault = "client";
249
248
  Message;
@@ -258,15 +257,7 @@ class ValidationException extends PcaConnectorScepServiceException {
258
257
  this.Message = opts.Message;
259
258
  this.Reason = opts.Reason;
260
259
  }
261
- }
262
- exports.MobileDeviceManagement = void 0;
263
- (function (MobileDeviceManagement) {
264
- MobileDeviceManagement.visit = (value, visitor) => {
265
- if (value.Intune !== undefined)
266
- return visitor.Intune(value.Intune);
267
- return visitor._(value.$unknown[0], value.$unknown[1]);
268
- };
269
- })(exports.MobileDeviceManagement || (exports.MobileDeviceManagement = {}));
260
+ };
270
261
  const ConnectorStatus = {
271
262
  ACTIVE: "ACTIVE",
272
263
  CREATING: "CREATING",
@@ -283,557 +274,461 @@ const ConnectorType = {
283
274
  GENERAL_PURPOSE: "GENERAL_PURPOSE",
284
275
  INTUNE: "INTUNE",
285
276
  };
286
- const ChallengeFilterSensitiveLog = (obj) => ({
287
- ...obj,
288
- ...(obj.Password && { Password: smithyClient.SENSITIVE_STRING }),
289
- });
290
- const CreateChallengeResponseFilterSensitiveLog = (obj) => ({
291
- ...obj,
292
- ...(obj.Challenge && { Challenge: ChallengeFilterSensitiveLog(obj.Challenge) }),
293
- });
294
- const GetChallengePasswordResponseFilterSensitiveLog = (obj) => ({
295
- ...obj,
296
- ...(obj.Password && { Password: smithyClient.SENSITIVE_STRING }),
297
- });
298
277
 
299
- const se_CreateChallengeCommand = async (input, context) => {
300
- const b = core.requestBuilder(input, context);
301
- const headers = {
302
- "content-type": "application/json",
303
- };
304
- b.bp("/challenges");
305
- let body;
306
- body = JSON.stringify(smithyClient.take(input, {
307
- ClientToken: [true, (_) => _ ?? uuid.v4()],
308
- ConnectorArn: [],
309
- Tags: (_) => smithyClient._json(_),
310
- }));
311
- b.m("POST").h(headers).b(body);
312
- return b.build();
313
- };
314
- const se_CreateConnectorCommand = async (input, context) => {
315
- const b = core.requestBuilder(input, context);
316
- const headers = {
317
- "content-type": "application/json",
318
- };
319
- b.bp("/connectors");
320
- let body;
321
- body = JSON.stringify(smithyClient.take(input, {
322
- CertificateAuthorityArn: [],
323
- ClientToken: [true, (_) => _ ?? uuid.v4()],
324
- MobileDeviceManagement: (_) => smithyClient._json(_),
325
- Tags: (_) => smithyClient._json(_),
326
- }));
327
- b.m("POST").h(headers).b(body);
328
- return b.build();
329
- };
330
- const se_DeleteChallengeCommand = async (input, context) => {
331
- const b = core.requestBuilder(input, context);
332
- const headers = {};
333
- b.bp("/challenges/{ChallengeArn}");
334
- b.p("ChallengeArn", () => input.ChallengeArn, "{ChallengeArn}", false);
335
- let body;
336
- b.m("DELETE").h(headers).b(body);
337
- return b.build();
338
- };
339
- const se_DeleteConnectorCommand = async (input, context) => {
340
- const b = core.requestBuilder(input, context);
341
- const headers = {};
342
- b.bp("/connectors/{ConnectorArn}");
343
- b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
344
- let body;
345
- b.m("DELETE").h(headers).b(body);
346
- return b.build();
347
- };
348
- const se_GetChallengeMetadataCommand = async (input, context) => {
349
- const b = core.requestBuilder(input, context);
350
- const headers = {};
351
- b.bp("/challengeMetadata/{ChallengeArn}");
352
- b.p("ChallengeArn", () => input.ChallengeArn, "{ChallengeArn}", false);
353
- let body;
354
- b.m("GET").h(headers).b(body);
355
- return b.build();
356
- };
357
- const se_GetChallengePasswordCommand = async (input, context) => {
358
- const b = core.requestBuilder(input, context);
359
- const headers = {};
360
- b.bp("/challengePasswords/{ChallengeArn}");
361
- b.p("ChallengeArn", () => input.ChallengeArn, "{ChallengeArn}", false);
362
- let body;
363
- b.m("GET").h(headers).b(body);
364
- return b.build();
365
- };
366
- const se_GetConnectorCommand = async (input, context) => {
367
- const b = core.requestBuilder(input, context);
368
- const headers = {};
369
- b.bp("/connectors/{ConnectorArn}");
370
- b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
371
- let body;
372
- b.m("GET").h(headers).b(body);
373
- return b.build();
374
- };
375
- const se_ListChallengeMetadataCommand = async (input, context) => {
376
- const b = core.requestBuilder(input, context);
377
- const headers = {};
378
- b.bp("/challengeMetadata");
379
- const query = smithyClient.map({
380
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
381
- [_NT]: [, input[_NT]],
382
- [_CA]: [, smithyClient.expectNonNull(input[_CA], `ConnectorArn`)],
383
- });
384
- let body;
385
- b.m("GET").h(headers).q(query).b(body);
386
- return b.build();
387
- };
388
- const se_ListConnectorsCommand = async (input, context) => {
389
- const b = core.requestBuilder(input, context);
390
- const headers = {};
391
- b.bp("/connectors");
392
- const query = smithyClient.map({
393
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
394
- [_NT]: [, input[_NT]],
395
- });
396
- let body;
397
- b.m("GET").h(headers).q(query).b(body);
398
- return b.build();
399
- };
400
- const se_ListTagsForResourceCommand = async (input, context) => {
401
- const b = core.requestBuilder(input, context);
402
- const headers = {};
403
- b.bp("/tags/{ResourceArn}");
404
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
405
- let body;
406
- b.m("GET").h(headers).b(body);
407
- return b.build();
408
- };
409
- const se_TagResourceCommand = async (input, context) => {
410
- const b = core.requestBuilder(input, context);
411
- const headers = {
412
- "content-type": "application/json",
413
- };
414
- b.bp("/tags/{ResourceArn}");
415
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
416
- let body;
417
- body = JSON.stringify(smithyClient.take(input, {
418
- Tags: (_) => smithyClient._json(_),
419
- }));
420
- b.m("POST").h(headers).b(body);
421
- return b.build();
422
- };
423
- const se_UntagResourceCommand = async (input, context) => {
424
- const b = core.requestBuilder(input, context);
425
- const headers = {};
426
- b.bp("/tags/{ResourceArn}");
427
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
428
- const query = smithyClient.map({
429
- [_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
430
- });
431
- let body;
432
- b.m("DELETE").h(headers).q(query).b(body);
433
- return b.build();
434
- };
435
- const de_CreateChallengeCommand = async (output, context) => {
436
- if (output.statusCode !== 202 && output.statusCode >= 300) {
437
- return de_CommandError(output, context);
438
- }
439
- const contents = smithyClient.map({
440
- $metadata: deserializeMetadata(output),
441
- });
442
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
443
- const doc = smithyClient.take(data, {
444
- Challenge: (_) => de_Challenge(_),
445
- });
446
- Object.assign(contents, doc);
447
- return contents;
448
- };
449
- const de_CreateConnectorCommand = async (output, context) => {
450
- if (output.statusCode !== 202 && output.statusCode >= 300) {
451
- return de_CommandError(output, context);
452
- }
453
- const contents = smithyClient.map({
454
- $metadata: deserializeMetadata(output),
455
- });
456
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
457
- const doc = smithyClient.take(data, {
458
- ConnectorArn: smithyClient.expectString,
459
- });
460
- Object.assign(contents, doc);
461
- return contents;
462
- };
463
- const de_DeleteChallengeCommand = async (output, context) => {
464
- if (output.statusCode !== 202 && output.statusCode >= 300) {
465
- return de_CommandError(output, context);
466
- }
467
- const contents = smithyClient.map({
468
- $metadata: deserializeMetadata(output),
469
- });
470
- await smithyClient.collectBody(output.body, context);
471
- return contents;
472
- };
473
- const de_DeleteConnectorCommand = async (output, context) => {
474
- if (output.statusCode !== 202 && output.statusCode >= 300) {
475
- return de_CommandError(output, context);
476
- }
477
- const contents = smithyClient.map({
478
- $metadata: deserializeMetadata(output),
479
- });
480
- await smithyClient.collectBody(output.body, context);
481
- return contents;
482
- };
483
- const de_GetChallengeMetadataCommand = async (output, context) => {
484
- if (output.statusCode !== 200 && output.statusCode >= 300) {
485
- return de_CommandError(output, context);
486
- }
487
- const contents = smithyClient.map({
488
- $metadata: deserializeMetadata(output),
489
- });
490
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
491
- const doc = smithyClient.take(data, {
492
- ChallengeMetadata: (_) => de_ChallengeMetadata(_),
493
- });
494
- Object.assign(contents, doc);
495
- return contents;
496
- };
497
- const de_GetChallengePasswordCommand = async (output, context) => {
498
- if (output.statusCode !== 200 && output.statusCode >= 300) {
499
- return de_CommandError(output, context);
500
- }
501
- const contents = smithyClient.map({
502
- $metadata: deserializeMetadata(output),
503
- });
504
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
505
- const doc = smithyClient.take(data, {
506
- Password: smithyClient.expectString,
507
- });
508
- Object.assign(contents, doc);
509
- return contents;
510
- };
511
- const de_GetConnectorCommand = async (output, context) => {
512
- if (output.statusCode !== 200 && output.statusCode >= 300) {
513
- return de_CommandError(output, context);
514
- }
515
- const contents = smithyClient.map({
516
- $metadata: deserializeMetadata(output),
517
- });
518
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
519
- const doc = smithyClient.take(data, {
520
- Connector: (_) => de_Connector(_),
521
- });
522
- Object.assign(contents, doc);
523
- return contents;
524
- };
525
- const de_ListChallengeMetadataCommand = async (output, context) => {
526
- if (output.statusCode !== 200 && output.statusCode >= 300) {
527
- return de_CommandError(output, context);
528
- }
529
- const contents = smithyClient.map({
530
- $metadata: deserializeMetadata(output),
531
- });
532
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
533
- const doc = smithyClient.take(data, {
534
- Challenges: (_) => de_ChallengeMetadataList(_),
535
- NextToken: smithyClient.expectString,
536
- });
537
- Object.assign(contents, doc);
538
- return contents;
539
- };
540
- const de_ListConnectorsCommand = async (output, context) => {
541
- if (output.statusCode !== 200 && output.statusCode >= 300) {
542
- return de_CommandError(output, context);
543
- }
544
- const contents = smithyClient.map({
545
- $metadata: deserializeMetadata(output),
546
- });
547
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
548
- const doc = smithyClient.take(data, {
549
- Connectors: (_) => de_ConnectorList(_),
550
- NextToken: smithyClient.expectString,
551
- });
552
- Object.assign(contents, doc);
553
- return contents;
554
- };
555
- const de_ListTagsForResourceCommand = async (output, context) => {
556
- if (output.statusCode !== 200 && output.statusCode >= 300) {
557
- return de_CommandError(output, context);
558
- }
559
- const contents = smithyClient.map({
560
- $metadata: deserializeMetadata(output),
561
- });
562
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
563
- const doc = smithyClient.take(data, {
564
- Tags: smithyClient._json,
565
- });
566
- Object.assign(contents, doc);
567
- return contents;
568
- };
569
- const de_TagResourceCommand = async (output, context) => {
570
- if (output.statusCode !== 204 && output.statusCode >= 300) {
571
- return de_CommandError(output, context);
572
- }
573
- const contents = smithyClient.map({
574
- $metadata: deserializeMetadata(output),
575
- });
576
- await smithyClient.collectBody(output.body, context);
577
- return contents;
578
- };
579
- const de_UntagResourceCommand = async (output, context) => {
580
- if (output.statusCode !== 204 && output.statusCode >= 300) {
581
- return de_CommandError(output, context);
582
- }
583
- const contents = smithyClient.map({
584
- $metadata: deserializeMetadata(output),
585
- });
586
- await smithyClient.collectBody(output.body, context);
587
- return contents;
588
- };
589
- const de_CommandError = async (output, context) => {
590
- const parsedOutput = {
591
- ...output,
592
- body: await core$1.parseJsonErrorBody(output.body, context),
593
- };
594
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
595
- switch (errorCode) {
596
- case "AccessDeniedException":
597
- case "com.amazonaws.pcaconnectorscep#AccessDeniedException":
598
- throw await de_AccessDeniedExceptionRes(parsedOutput);
599
- case "BadRequestException":
600
- case "com.amazonaws.pcaconnectorscep#BadRequestException":
601
- throw await de_BadRequestExceptionRes(parsedOutput);
602
- case "ConflictException":
603
- case "com.amazonaws.pcaconnectorscep#ConflictException":
604
- throw await de_ConflictExceptionRes(parsedOutput);
605
- case "InternalServerException":
606
- case "com.amazonaws.pcaconnectorscep#InternalServerException":
607
- throw await de_InternalServerExceptionRes(parsedOutput);
608
- case "ResourceNotFoundException":
609
- case "com.amazonaws.pcaconnectorscep#ResourceNotFoundException":
610
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
611
- case "ServiceQuotaExceededException":
612
- case "com.amazonaws.pcaconnectorscep#ServiceQuotaExceededException":
613
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
614
- case "ThrottlingException":
615
- case "com.amazonaws.pcaconnectorscep#ThrottlingException":
616
- throw await de_ThrottlingExceptionRes(parsedOutput);
617
- case "ValidationException":
618
- case "com.amazonaws.pcaconnectorscep#ValidationException":
619
- throw await de_ValidationExceptionRes(parsedOutput);
620
- default:
621
- const parsedBody = parsedOutput.body;
622
- return throwDefaultError({
623
- output,
624
- parsedBody,
625
- errorCode,
626
- });
627
- }
628
- };
629
- const throwDefaultError = smithyClient.withBaseException(PcaConnectorScepServiceException);
630
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
631
- const contents = smithyClient.map({});
632
- const data = parsedOutput.body;
633
- const doc = smithyClient.take(data, {
634
- Message: smithyClient.expectString,
635
- });
636
- Object.assign(contents, doc);
637
- const exception = new AccessDeniedException({
638
- $metadata: deserializeMetadata(parsedOutput),
639
- ...contents,
640
- });
641
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
642
- };
643
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
644
- const contents = smithyClient.map({});
645
- const data = parsedOutput.body;
646
- const doc = smithyClient.take(data, {
647
- Message: smithyClient.expectString,
648
- });
649
- Object.assign(contents, doc);
650
- const exception = new BadRequestException({
651
- $metadata: deserializeMetadata(parsedOutput),
652
- ...contents,
653
- });
654
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
655
- };
656
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
657
- const contents = smithyClient.map({});
658
- const data = parsedOutput.body;
659
- const doc = smithyClient.take(data, {
660
- Message: smithyClient.expectString,
661
- ResourceId: smithyClient.expectString,
662
- ResourceType: smithyClient.expectString,
663
- });
664
- Object.assign(contents, doc);
665
- const exception = new ConflictException({
666
- $metadata: deserializeMetadata(parsedOutput),
667
- ...contents,
668
- });
669
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
670
- };
671
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
672
- const contents = smithyClient.map({});
673
- const data = parsedOutput.body;
674
- const doc = smithyClient.take(data, {
675
- Message: smithyClient.expectString,
676
- });
677
- Object.assign(contents, doc);
678
- const exception = new InternalServerException({
679
- $metadata: deserializeMetadata(parsedOutput),
680
- ...contents,
681
- });
682
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
683
- };
684
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
685
- const contents = smithyClient.map({});
686
- const data = parsedOutput.body;
687
- const doc = smithyClient.take(data, {
688
- Message: smithyClient.expectString,
689
- ResourceId: smithyClient.expectString,
690
- ResourceType: smithyClient.expectString,
691
- });
692
- Object.assign(contents, doc);
693
- const exception = new ResourceNotFoundException({
694
- $metadata: deserializeMetadata(parsedOutput),
695
- ...contents,
696
- });
697
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
698
- };
699
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
700
- const contents = smithyClient.map({});
701
- const data = parsedOutput.body;
702
- const doc = smithyClient.take(data, {
703
- Message: smithyClient.expectString,
704
- QuotaCode: smithyClient.expectString,
705
- ResourceType: smithyClient.expectString,
706
- ServiceCode: smithyClient.expectString,
707
- });
708
- Object.assign(contents, doc);
709
- const exception = new ServiceQuotaExceededException({
710
- $metadata: deserializeMetadata(parsedOutput),
711
- ...contents,
712
- });
713
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
714
- };
715
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
716
- const contents = smithyClient.map({});
717
- const data = parsedOutput.body;
718
- const doc = smithyClient.take(data, {
719
- Message: smithyClient.expectString,
720
- });
721
- Object.assign(contents, doc);
722
- const exception = new ThrottlingException({
723
- $metadata: deserializeMetadata(parsedOutput),
724
- ...contents,
725
- });
726
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
727
- };
728
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
729
- const contents = smithyClient.map({});
730
- const data = parsedOutput.body;
731
- const doc = smithyClient.take(data, {
732
- Message: smithyClient.expectString,
733
- Reason: smithyClient.expectString,
734
- });
735
- Object.assign(contents, doc);
736
- const exception = new ValidationException({
737
- $metadata: deserializeMetadata(parsedOutput),
738
- ...contents,
739
- });
740
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
741
- };
742
- const de_Challenge = (output, context) => {
743
- return smithyClient.take(output, {
744
- Arn: smithyClient.expectString,
745
- ConnectorArn: smithyClient.expectString,
746
- CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
747
- Password: smithyClient.expectString,
748
- UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
749
- });
750
- };
751
- const de_ChallengeMetadata = (output, context) => {
752
- return smithyClient.take(output, {
753
- Arn: smithyClient.expectString,
754
- ConnectorArn: smithyClient.expectString,
755
- CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
756
- UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
757
- });
758
- };
759
- const de_ChallengeMetadataList = (output, context) => {
760
- const retVal = (output || [])
761
- .filter((e) => e != null)
762
- .map((entry) => {
763
- return de_ChallengeMetadataSummary(entry);
764
- });
765
- return retVal;
766
- };
767
- const de_ChallengeMetadataSummary = (output, context) => {
768
- return smithyClient.take(output, {
769
- Arn: smithyClient.expectString,
770
- ConnectorArn: smithyClient.expectString,
771
- CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
772
- UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
773
- });
774
- };
775
- const de_Connector = (output, context) => {
776
- return smithyClient.take(output, {
777
- Arn: smithyClient.expectString,
778
- CertificateAuthorityArn: smithyClient.expectString,
779
- CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
780
- Endpoint: smithyClient.expectString,
781
- MobileDeviceManagement: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
782
- OpenIdConfiguration: smithyClient._json,
783
- Status: smithyClient.expectString,
784
- StatusReason: smithyClient.expectString,
785
- Type: smithyClient.expectString,
786
- UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
787
- });
788
- };
789
- const de_ConnectorList = (output, context) => {
790
- const retVal = (output || [])
791
- .filter((e) => e != null)
792
- .map((entry) => {
793
- return de_ConnectorSummary(entry);
794
- });
795
- return retVal;
796
- };
797
- const de_ConnectorSummary = (output, context) => {
798
- return smithyClient.take(output, {
799
- Arn: smithyClient.expectString,
800
- CertificateAuthorityArn: smithyClient.expectString,
801
- CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
802
- Endpoint: smithyClient.expectString,
803
- MobileDeviceManagement: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
804
- OpenIdConfiguration: smithyClient._json,
805
- Status: smithyClient.expectString,
806
- StatusReason: smithyClient.expectString,
807
- Type: smithyClient.expectString,
808
- UpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
809
- });
810
- };
811
- const deserializeMetadata = (output) => ({
812
- httpStatusCode: output.statusCode,
813
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
814
- extendedRequestId: output.headers["x-amz-id-2"],
815
- cfId: output.headers["x-amz-cf-id"],
816
- });
278
+ const _A = "Arn";
279
+ const _AAI = "AzureApplicationId";
280
+ const _ADE = "AccessDeniedException";
281
+ const _Au = "Audience";
282
+ const _BRE = "BadRequestException";
283
+ const _C = "Challenge";
817
284
  const _CA = "ConnectorArn";
285
+ const _CAA = "CertificateAuthorityArn";
286
+ const _CAh = "ChallengeArn";
287
+ const _CAr = "CreatedAt";
288
+ const _CC = "CreateChallenge";
289
+ const _CCR = "CreateChallengeRequest";
290
+ const _CCRr = "CreateChallengeResponse";
291
+ const _CCRre = "CreateConnectorRequest";
292
+ const _CCRrea = "CreateConnectorResponse";
293
+ const _CCr = "CreateConnector";
294
+ const _CE = "ConflictException";
295
+ const _CL = "ConnectorList";
296
+ const _CM = "ChallengeMetadata";
297
+ const _CML = "ChallengeMetadataList";
298
+ const _CMS = "ChallengeMetadataSummary";
299
+ const _CS = "ConnectorSummary";
300
+ const _CT = "ClientToken";
301
+ const _Ch = "Challenges";
302
+ const _Co = "Connector";
303
+ const _Con = "Connectors";
304
+ const _D = "Domain";
305
+ const _DC = "DeleteChallenge";
306
+ const _DCR = "DeleteChallengeRequest";
307
+ const _DCRe = "DeleteConnectorRequest";
308
+ const _DCe = "DeleteConnector";
309
+ const _E = "Endpoint";
310
+ const _GC = "GetConnector";
311
+ const _GCM = "GetChallengeMetadata";
312
+ const _GCMR = "GetChallengeMetadataRequest";
313
+ const _GCMRe = "GetChallengeMetadataResponse";
314
+ const _GCP = "GetChallengePassword";
315
+ const _GCPR = "GetChallengePasswordRequest";
316
+ const _GCPRe = "GetChallengePasswordResponse";
317
+ const _GCR = "GetConnectorRequest";
318
+ const _GCRe = "GetConnectorResponse";
319
+ const _I = "Issuer";
320
+ const _IC = "IntuneConfiguration";
321
+ const _ISE = "InternalServerException";
322
+ const _In = "Intune";
323
+ const _LC = "ListConnectors";
324
+ const _LCM = "ListChallengeMetadata";
325
+ const _LCMR = "ListChallengeMetadataRequest";
326
+ const _LCMRi = "ListChallengeMetadataResponse";
327
+ const _LCR = "ListConnectorsRequest";
328
+ const _LCRi = "ListConnectorsResponse";
329
+ const _LTFR = "ListTagsForResource";
330
+ const _LTFRR = "ListTagsForResourceRequest";
331
+ const _LTFRRi = "ListTagsForResourceResponse";
332
+ const _M = "Message";
333
+ const _MDM = "MobileDeviceManagement";
818
334
  const _MR = "MaxResults";
819
335
  const _NT = "NextToken";
336
+ const _OIC = "OpenIdConfiguration";
337
+ const _P = "Password";
338
+ const _QC = "QuotaCode";
339
+ const _R = "Reason";
340
+ const _RA = "ResourceArn";
341
+ const _RI = "ResourceId";
342
+ const _RNFE = "ResourceNotFoundException";
343
+ const _RT = "ResourceType";
344
+ const _S = "Status";
345
+ const _SC = "ServiceCode";
346
+ const _SQEE = "ServiceQuotaExceededException";
347
+ const _SR = "StatusReason";
348
+ const _SS = "SensitiveString";
349
+ const _Su = "Subject";
350
+ const _T = "Type";
351
+ const _TE = "ThrottlingException";
820
352
  const _TK = "TagKeys";
353
+ const _TR = "TagResource";
354
+ const _TRR = "TagResourceRequest";
355
+ const _Ta = "Tags";
356
+ const _UA = "UpdatedAt";
357
+ const _UR = "UntagResource";
358
+ const _URR = "UntagResourceRequest";
359
+ const _VE = "ValidationException";
360
+ const _c = "client";
361
+ const _e = "error";
362
+ const _h = "http";
363
+ const _hE = "httpError";
364
+ const _hQ = "httpQuery";
365
+ const _s = "server";
366
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.pcaconnectorscep";
821
367
  const _tK = "tagKeys";
368
+ const n0 = "com.amazonaws.pcaconnectorscep";
369
+ var SensitiveString = [0, n0, _SS, 8, 0];
370
+ var AccessDeniedException = [
371
+ -3,
372
+ n0,
373
+ _ADE,
374
+ {
375
+ [_e]: _c,
376
+ [_hE]: 403,
377
+ },
378
+ [_M],
379
+ [0],
380
+ ];
381
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
382
+ var BadRequestException = [
383
+ -3,
384
+ n0,
385
+ _BRE,
386
+ {
387
+ [_e]: _c,
388
+ [_hE]: 400,
389
+ },
390
+ [_M],
391
+ [0],
392
+ ];
393
+ schema.TypeRegistry.for(n0).registerError(BadRequestException, BadRequestException$1);
394
+ var Challenge = [
395
+ 3,
396
+ n0,
397
+ _C,
398
+ 0,
399
+ [_A, _CA, _CAr, _UA, _P],
400
+ [0, 0, 4, 4, [() => SensitiveString, 0]],
401
+ ];
402
+ var ChallengeMetadata = [3, n0, _CM, 0, [_A, _CA, _CAr, _UA], [0, 0, 4, 4]];
403
+ var ChallengeMetadataSummary = [3, n0, _CMS, 0, [_A, _CA, _CAr, _UA], [0, 0, 4, 4]];
404
+ var ConflictException = [
405
+ -3,
406
+ n0,
407
+ _CE,
408
+ {
409
+ [_e]: _c,
410
+ [_hE]: 409,
411
+ },
412
+ [_M, _RI, _RT],
413
+ [0, 0, 0],
414
+ ];
415
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
416
+ var Connector = [
417
+ 3,
418
+ n0,
419
+ _Co,
420
+ 0,
421
+ [_A, _CAA, _T, _MDM, _OIC, _S, _SR, _E, _CAr, _UA],
422
+ [0, 0, 0, () => MobileDeviceManagement, () => OpenIdConfiguration, 0, 0, 0, 4, 4],
423
+ ];
424
+ var ConnectorSummary = [
425
+ 3,
426
+ n0,
427
+ _CS,
428
+ 0,
429
+ [_A, _CAA, _T, _MDM, _OIC, _S, _SR, _E, _CAr, _UA],
430
+ [0, 0, 0, () => MobileDeviceManagement, () => OpenIdConfiguration, 0, 0, 0, 4, 4],
431
+ ];
432
+ var CreateChallengeRequest = [3, n0, _CCR, 0, [_CA, _CT, _Ta], [0, [0, 4], 128 | 0]];
433
+ var CreateChallengeResponse = [3, n0, _CCRr, 0, [_C], [[() => Challenge, 0]]];
434
+ var CreateConnectorRequest = [
435
+ 3,
436
+ n0,
437
+ _CCRre,
438
+ 0,
439
+ [_CAA, _MDM, _CT, _Ta],
440
+ [0, () => MobileDeviceManagement, [0, 4], 128 | 0],
441
+ ];
442
+ var CreateConnectorResponse = [3, n0, _CCRrea, 0, [_CA], [0]];
443
+ var DeleteChallengeRequest = [3, n0, _DCR, 0, [_CAh], [[0, 1]]];
444
+ var DeleteConnectorRequest = [3, n0, _DCRe, 0, [_CA], [[0, 1]]];
445
+ var GetChallengeMetadataRequest = [3, n0, _GCMR, 0, [_CAh], [[0, 1]]];
446
+ var GetChallengeMetadataResponse = [3, n0, _GCMRe, 0, [_CM], [() => ChallengeMetadata]];
447
+ var GetChallengePasswordRequest = [3, n0, _GCPR, 0, [_CAh], [[0, 1]]];
448
+ var GetChallengePasswordResponse = [3, n0, _GCPRe, 0, [_P], [[() => SensitiveString, 0]]];
449
+ var GetConnectorRequest = [3, n0, _GCR, 0, [_CA], [[0, 1]]];
450
+ var GetConnectorResponse = [3, n0, _GCRe, 0, [_Co], [() => Connector]];
451
+ var InternalServerException = [
452
+ -3,
453
+ n0,
454
+ _ISE,
455
+ {
456
+ [_e]: _s,
457
+ [_hE]: 500,
458
+ },
459
+ [_M],
460
+ [0],
461
+ ];
462
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
463
+ var IntuneConfiguration = [3, n0, _IC, 0, [_AAI, _D], [0, 0]];
464
+ var ListChallengeMetadataRequest = [
465
+ 3,
466
+ n0,
467
+ _LCMR,
468
+ 0,
469
+ [_MR, _NT, _CA],
470
+ [
471
+ [
472
+ 1,
473
+ {
474
+ [_hQ]: _MR,
475
+ },
476
+ ],
477
+ [
478
+ 0,
479
+ {
480
+ [_hQ]: _NT,
481
+ },
482
+ ],
483
+ [
484
+ 0,
485
+ {
486
+ [_hQ]: _CA,
487
+ },
488
+ ],
489
+ ],
490
+ ];
491
+ var ListChallengeMetadataResponse = [
492
+ 3,
493
+ n0,
494
+ _LCMRi,
495
+ 0,
496
+ [_Ch, _NT],
497
+ [() => ChallengeMetadataList, 0],
498
+ ];
499
+ var ListConnectorsRequest = [
500
+ 3,
501
+ n0,
502
+ _LCR,
503
+ 0,
504
+ [_MR, _NT],
505
+ [
506
+ [
507
+ 1,
508
+ {
509
+ [_hQ]: _MR,
510
+ },
511
+ ],
512
+ [
513
+ 0,
514
+ {
515
+ [_hQ]: _NT,
516
+ },
517
+ ],
518
+ ],
519
+ ];
520
+ var ListConnectorsResponse = [3, n0, _LCRi, 0, [_Con, _NT], [() => ConnectorList, 0]];
521
+ var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_RA], [[0, 1]]];
522
+ var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_Ta], [128 | 0]];
523
+ var OpenIdConfiguration = [3, n0, _OIC, 0, [_I, _Su, _Au], [0, 0, 0]];
524
+ var ResourceNotFoundException = [
525
+ -3,
526
+ n0,
527
+ _RNFE,
528
+ {
529
+ [_e]: _c,
530
+ [_hE]: 404,
531
+ },
532
+ [_M, _RI, _RT],
533
+ [0, 0, 0],
534
+ ];
535
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
536
+ var ServiceQuotaExceededException = [
537
+ -3,
538
+ n0,
539
+ _SQEE,
540
+ {
541
+ [_e]: _c,
542
+ [_hE]: 402,
543
+ },
544
+ [_M, _RT, _SC, _QC],
545
+ [0, 0, 0, 0],
546
+ ];
547
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
548
+ var TagResourceRequest = [3, n0, _TRR, 0, [_RA, _Ta], [[0, 1], 128 | 0]];
549
+ var ThrottlingException = [
550
+ -3,
551
+ n0,
552
+ _TE,
553
+ {
554
+ [_e]: _c,
555
+ [_hE]: 429,
556
+ },
557
+ [_M],
558
+ [0],
559
+ ];
560
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
561
+ var UntagResourceRequest = [
562
+ 3,
563
+ n0,
564
+ _URR,
565
+ 0,
566
+ [_RA, _TK],
567
+ [
568
+ [0, 1],
569
+ [
570
+ 64 | 0,
571
+ {
572
+ [_hQ]: _tK,
573
+ },
574
+ ],
575
+ ],
576
+ ];
577
+ var ValidationException = [
578
+ -3,
579
+ n0,
580
+ _VE,
581
+ {
582
+ [_e]: _c,
583
+ [_hE]: 400,
584
+ },
585
+ [_M, _R],
586
+ [0, 0],
587
+ ];
588
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
589
+ var __Unit = "unit";
590
+ var PcaConnectorScepServiceException = [
591
+ -3,
592
+ _sm,
593
+ "PcaConnectorScepServiceException",
594
+ 0,
595
+ [],
596
+ [],
597
+ ];
598
+ schema.TypeRegistry.for(_sm).registerError(PcaConnectorScepServiceException, PcaConnectorScepServiceException$1);
599
+ var ChallengeMetadataList = [1, n0, _CML, 0, () => ChallengeMetadataSummary];
600
+ var ConnectorList = [1, n0, _CL, 0, () => ConnectorSummary];
601
+ var MobileDeviceManagement = [3, n0, _MDM, 0, [_In], [() => IntuneConfiguration]];
602
+ var CreateChallenge = [
603
+ 9,
604
+ n0,
605
+ _CC,
606
+ {
607
+ [_h]: ["POST", "/challenges", 202],
608
+ },
609
+ () => CreateChallengeRequest,
610
+ () => CreateChallengeResponse,
611
+ ];
612
+ var CreateConnector = [
613
+ 9,
614
+ n0,
615
+ _CCr,
616
+ {
617
+ [_h]: ["POST", "/connectors", 202],
618
+ },
619
+ () => CreateConnectorRequest,
620
+ () => CreateConnectorResponse,
621
+ ];
622
+ var DeleteChallenge = [
623
+ 9,
624
+ n0,
625
+ _DC,
626
+ {
627
+ [_h]: ["DELETE", "/challenges/{ChallengeArn}", 202],
628
+ },
629
+ () => DeleteChallengeRequest,
630
+ () => __Unit,
631
+ ];
632
+ var DeleteConnector = [
633
+ 9,
634
+ n0,
635
+ _DCe,
636
+ {
637
+ [_h]: ["DELETE", "/connectors/{ConnectorArn}", 202],
638
+ },
639
+ () => DeleteConnectorRequest,
640
+ () => __Unit,
641
+ ];
642
+ var GetChallengeMetadata = [
643
+ 9,
644
+ n0,
645
+ _GCM,
646
+ {
647
+ [_h]: ["GET", "/challengeMetadata/{ChallengeArn}", 200],
648
+ },
649
+ () => GetChallengeMetadataRequest,
650
+ () => GetChallengeMetadataResponse,
651
+ ];
652
+ var GetChallengePassword = [
653
+ 9,
654
+ n0,
655
+ _GCP,
656
+ {
657
+ [_h]: ["GET", "/challengePasswords/{ChallengeArn}", 200],
658
+ },
659
+ () => GetChallengePasswordRequest,
660
+ () => GetChallengePasswordResponse,
661
+ ];
662
+ var GetConnector = [
663
+ 9,
664
+ n0,
665
+ _GC,
666
+ {
667
+ [_h]: ["GET", "/connectors/{ConnectorArn}", 200],
668
+ },
669
+ () => GetConnectorRequest,
670
+ () => GetConnectorResponse,
671
+ ];
672
+ var ListChallengeMetadata = [
673
+ 9,
674
+ n0,
675
+ _LCM,
676
+ {
677
+ [_h]: ["GET", "/challengeMetadata", 200],
678
+ },
679
+ () => ListChallengeMetadataRequest,
680
+ () => ListChallengeMetadataResponse,
681
+ ];
682
+ var ListConnectors = [
683
+ 9,
684
+ n0,
685
+ _LC,
686
+ {
687
+ [_h]: ["GET", "/connectors", 200],
688
+ },
689
+ () => ListConnectorsRequest,
690
+ () => ListConnectorsResponse,
691
+ ];
692
+ var ListTagsForResource = [
693
+ 9,
694
+ n0,
695
+ _LTFR,
696
+ {
697
+ [_h]: ["GET", "/tags/{ResourceArn}", 200],
698
+ },
699
+ () => ListTagsForResourceRequest,
700
+ () => ListTagsForResourceResponse,
701
+ ];
702
+ var TagResource = [
703
+ 9,
704
+ n0,
705
+ _TR,
706
+ {
707
+ [_h]: ["POST", "/tags/{ResourceArn}", 204],
708
+ },
709
+ () => TagResourceRequest,
710
+ () => __Unit,
711
+ ];
712
+ var UntagResource = [
713
+ 9,
714
+ n0,
715
+ _UR,
716
+ {
717
+ [_h]: ["DELETE", "/tags/{ResourceArn}", 204],
718
+ },
719
+ () => UntagResourceRequest,
720
+ () => __Unit,
721
+ ];
822
722
 
823
723
  class CreateChallengeCommand extends smithyClient.Command
824
724
  .classBuilder()
825
725
  .ep(commonParams)
826
726
  .m(function (Command, cs, config, o) {
827
- return [
828
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
829
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
830
- ];
727
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
831
728
  })
832
729
  .s("PcaConnectorScep", "CreateChallenge", {})
833
730
  .n("PcaConnectorScepClient", "CreateChallengeCommand")
834
- .f(void 0, CreateChallengeResponseFilterSensitiveLog)
835
- .ser(se_CreateChallengeCommand)
836
- .de(de_CreateChallengeCommand)
731
+ .sc(CreateChallenge)
837
732
  .build() {
838
733
  }
839
734
 
@@ -841,16 +736,11 @@ class CreateConnectorCommand extends smithyClient.Command
841
736
  .classBuilder()
842
737
  .ep(commonParams)
843
738
  .m(function (Command, cs, config, o) {
844
- return [
845
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
846
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
847
- ];
739
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
848
740
  })
849
741
  .s("PcaConnectorScep", "CreateConnector", {})
850
742
  .n("PcaConnectorScepClient", "CreateConnectorCommand")
851
- .f(void 0, void 0)
852
- .ser(se_CreateConnectorCommand)
853
- .de(de_CreateConnectorCommand)
743
+ .sc(CreateConnector)
854
744
  .build() {
855
745
  }
856
746
 
@@ -858,16 +748,11 @@ class DeleteChallengeCommand extends smithyClient.Command
858
748
  .classBuilder()
859
749
  .ep(commonParams)
860
750
  .m(function (Command, cs, config, o) {
861
- return [
862
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
863
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
864
- ];
751
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
865
752
  })
866
753
  .s("PcaConnectorScep", "DeleteChallenge", {})
867
754
  .n("PcaConnectorScepClient", "DeleteChallengeCommand")
868
- .f(void 0, void 0)
869
- .ser(se_DeleteChallengeCommand)
870
- .de(de_DeleteChallengeCommand)
755
+ .sc(DeleteChallenge)
871
756
  .build() {
872
757
  }
873
758
 
@@ -875,16 +760,11 @@ class DeleteConnectorCommand extends smithyClient.Command
875
760
  .classBuilder()
876
761
  .ep(commonParams)
877
762
  .m(function (Command, cs, config, o) {
878
- return [
879
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
880
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
881
- ];
763
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
882
764
  })
883
765
  .s("PcaConnectorScep", "DeleteConnector", {})
884
766
  .n("PcaConnectorScepClient", "DeleteConnectorCommand")
885
- .f(void 0, void 0)
886
- .ser(se_DeleteConnectorCommand)
887
- .de(de_DeleteConnectorCommand)
767
+ .sc(DeleteConnector)
888
768
  .build() {
889
769
  }
890
770
 
@@ -892,16 +772,11 @@ class GetChallengeMetadataCommand extends smithyClient.Command
892
772
  .classBuilder()
893
773
  .ep(commonParams)
894
774
  .m(function (Command, cs, config, o) {
895
- return [
896
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
897
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
898
- ];
775
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
899
776
  })
900
777
  .s("PcaConnectorScep", "GetChallengeMetadata", {})
901
778
  .n("PcaConnectorScepClient", "GetChallengeMetadataCommand")
902
- .f(void 0, void 0)
903
- .ser(se_GetChallengeMetadataCommand)
904
- .de(de_GetChallengeMetadataCommand)
779
+ .sc(GetChallengeMetadata)
905
780
  .build() {
906
781
  }
907
782
 
@@ -909,16 +784,11 @@ class GetChallengePasswordCommand extends smithyClient.Command
909
784
  .classBuilder()
910
785
  .ep(commonParams)
911
786
  .m(function (Command, cs, config, o) {
912
- return [
913
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
914
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
915
- ];
787
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
916
788
  })
917
789
  .s("PcaConnectorScep", "GetChallengePassword", {})
918
790
  .n("PcaConnectorScepClient", "GetChallengePasswordCommand")
919
- .f(void 0, GetChallengePasswordResponseFilterSensitiveLog)
920
- .ser(se_GetChallengePasswordCommand)
921
- .de(de_GetChallengePasswordCommand)
791
+ .sc(GetChallengePassword)
922
792
  .build() {
923
793
  }
924
794
 
@@ -926,16 +796,11 @@ class GetConnectorCommand extends smithyClient.Command
926
796
  .classBuilder()
927
797
  .ep(commonParams)
928
798
  .m(function (Command, cs, config, o) {
929
- return [
930
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
931
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
932
- ];
799
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
933
800
  })
934
801
  .s("PcaConnectorScep", "GetConnector", {})
935
802
  .n("PcaConnectorScepClient", "GetConnectorCommand")
936
- .f(void 0, void 0)
937
- .ser(se_GetConnectorCommand)
938
- .de(de_GetConnectorCommand)
803
+ .sc(GetConnector)
939
804
  .build() {
940
805
  }
941
806
 
@@ -943,16 +808,11 @@ class ListChallengeMetadataCommand extends smithyClient.Command
943
808
  .classBuilder()
944
809
  .ep(commonParams)
945
810
  .m(function (Command, cs, config, o) {
946
- return [
947
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
948
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
949
- ];
811
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
950
812
  })
951
813
  .s("PcaConnectorScep", "ListChallengeMetadata", {})
952
814
  .n("PcaConnectorScepClient", "ListChallengeMetadataCommand")
953
- .f(void 0, void 0)
954
- .ser(se_ListChallengeMetadataCommand)
955
- .de(de_ListChallengeMetadataCommand)
815
+ .sc(ListChallengeMetadata)
956
816
  .build() {
957
817
  }
958
818
 
@@ -960,16 +820,11 @@ class ListConnectorsCommand extends smithyClient.Command
960
820
  .classBuilder()
961
821
  .ep(commonParams)
962
822
  .m(function (Command, cs, config, o) {
963
- return [
964
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
965
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
966
- ];
823
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
967
824
  })
968
825
  .s("PcaConnectorScep", "ListConnectors", {})
969
826
  .n("PcaConnectorScepClient", "ListConnectorsCommand")
970
- .f(void 0, void 0)
971
- .ser(se_ListConnectorsCommand)
972
- .de(de_ListConnectorsCommand)
827
+ .sc(ListConnectors)
973
828
  .build() {
974
829
  }
975
830
 
@@ -977,16 +832,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
977
832
  .classBuilder()
978
833
  .ep(commonParams)
979
834
  .m(function (Command, cs, config, o) {
980
- return [
981
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
982
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
983
- ];
835
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
984
836
  })
985
837
  .s("PcaConnectorScep", "ListTagsForResource", {})
986
838
  .n("PcaConnectorScepClient", "ListTagsForResourceCommand")
987
- .f(void 0, void 0)
988
- .ser(se_ListTagsForResourceCommand)
989
- .de(de_ListTagsForResourceCommand)
839
+ .sc(ListTagsForResource)
990
840
  .build() {
991
841
  }
992
842
 
@@ -994,16 +844,11 @@ class TagResourceCommand extends smithyClient.Command
994
844
  .classBuilder()
995
845
  .ep(commonParams)
996
846
  .m(function (Command, cs, config, o) {
997
- return [
998
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
999
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1000
- ];
847
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1001
848
  })
1002
849
  .s("PcaConnectorScep", "TagResource", {})
1003
850
  .n("PcaConnectorScepClient", "TagResourceCommand")
1004
- .f(void 0, void 0)
1005
- .ser(se_TagResourceCommand)
1006
- .de(de_TagResourceCommand)
851
+ .sc(TagResource)
1007
852
  .build() {
1008
853
  }
1009
854
 
@@ -1011,16 +856,11 @@ class UntagResourceCommand extends smithyClient.Command
1011
856
  .classBuilder()
1012
857
  .ep(commonParams)
1013
858
  .m(function (Command, cs, config, o) {
1014
- return [
1015
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1016
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1017
- ];
859
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1018
860
  })
1019
861
  .s("PcaConnectorScep", "UntagResource", {})
1020
862
  .n("PcaConnectorScepClient", "UntagResourceCommand")
1021
- .f(void 0, void 0)
1022
- .ser(se_UntagResourceCommand)
1023
- .de(de_UntagResourceCommand)
863
+ .sc(UntagResource)
1024
864
  .build() {
1025
865
  }
1026
866
 
@@ -1054,35 +894,32 @@ Object.defineProperty(exports, "__Client", {
1054
894
  enumerable: true,
1055
895
  get: function () { return smithyClient.Client; }
1056
896
  });
1057
- exports.AccessDeniedException = AccessDeniedException;
1058
- exports.BadRequestException = BadRequestException;
1059
- exports.ChallengeFilterSensitiveLog = ChallengeFilterSensitiveLog;
1060
- exports.ConflictException = ConflictException;
897
+ exports.AccessDeniedException = AccessDeniedException$1;
898
+ exports.BadRequestException = BadRequestException$1;
899
+ exports.ConflictException = ConflictException$1;
1061
900
  exports.ConnectorStatus = ConnectorStatus;
1062
901
  exports.ConnectorStatusReason = ConnectorStatusReason;
1063
902
  exports.ConnectorType = ConnectorType;
1064
903
  exports.CreateChallengeCommand = CreateChallengeCommand;
1065
- exports.CreateChallengeResponseFilterSensitiveLog = CreateChallengeResponseFilterSensitiveLog;
1066
904
  exports.CreateConnectorCommand = CreateConnectorCommand;
1067
905
  exports.DeleteChallengeCommand = DeleteChallengeCommand;
1068
906
  exports.DeleteConnectorCommand = DeleteConnectorCommand;
1069
907
  exports.GetChallengeMetadataCommand = GetChallengeMetadataCommand;
1070
908
  exports.GetChallengePasswordCommand = GetChallengePasswordCommand;
1071
- exports.GetChallengePasswordResponseFilterSensitiveLog = GetChallengePasswordResponseFilterSensitiveLog;
1072
909
  exports.GetConnectorCommand = GetConnectorCommand;
1073
- exports.InternalServerException = InternalServerException;
910
+ exports.InternalServerException = InternalServerException$1;
1074
911
  exports.ListChallengeMetadataCommand = ListChallengeMetadataCommand;
1075
912
  exports.ListConnectorsCommand = ListConnectorsCommand;
1076
913
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1077
914
  exports.PcaConnectorScep = PcaConnectorScep;
1078
915
  exports.PcaConnectorScepClient = PcaConnectorScepClient;
1079
- exports.PcaConnectorScepServiceException = PcaConnectorScepServiceException;
1080
- exports.ResourceNotFoundException = ResourceNotFoundException;
1081
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
916
+ exports.PcaConnectorScepServiceException = PcaConnectorScepServiceException$1;
917
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
918
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1082
919
  exports.TagResourceCommand = TagResourceCommand;
1083
- exports.ThrottlingException = ThrottlingException;
920
+ exports.ThrottlingException = ThrottlingException$1;
1084
921
  exports.UntagResourceCommand = UntagResourceCommand;
1085
- exports.ValidationException = ValidationException;
922
+ exports.ValidationException = ValidationException$1;
1086
923
  exports.ValidationExceptionReason = ValidationExceptionReason;
1087
924
  exports.paginateListChallengeMetadata = paginateListChallengeMetadata;
1088
925
  exports.paginateListConnectors = paginateListConnectors;