@aws-sdk/client-pca-connector-scep 3.893.0 → 3.895.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 +7 -7
  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
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,1262 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PcaConnectorScepServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./PcaConnectorScepClient"), exports);
6
- tslib_1.__exportStar(require("./PcaConnectorScep"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var PcaConnectorScepServiceException_1 = require("./models/PcaConnectorScepServiceException");
11
- Object.defineProperty(exports, "PcaConnectorScepServiceException", { enumerable: true, get: function () { return PcaConnectorScepServiceException_1.PcaConnectorScepServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ BadRequestException: () => BadRequestException,
26
+ ChallengeFilterSensitiveLog: () => ChallengeFilterSensitiveLog,
27
+ ConflictException: () => ConflictException,
28
+ ConnectorStatus: () => ConnectorStatus,
29
+ ConnectorStatusReason: () => ConnectorStatusReason,
30
+ ConnectorType: () => ConnectorType,
31
+ CreateChallengeCommand: () => CreateChallengeCommand,
32
+ CreateChallengeResponseFilterSensitiveLog: () => CreateChallengeResponseFilterSensitiveLog,
33
+ CreateConnectorCommand: () => CreateConnectorCommand,
34
+ DeleteChallengeCommand: () => DeleteChallengeCommand,
35
+ DeleteConnectorCommand: () => DeleteConnectorCommand,
36
+ GetChallengeMetadataCommand: () => GetChallengeMetadataCommand,
37
+ GetChallengePasswordCommand: () => GetChallengePasswordCommand,
38
+ GetChallengePasswordResponseFilterSensitiveLog: () => GetChallengePasswordResponseFilterSensitiveLog,
39
+ GetConnectorCommand: () => GetConnectorCommand,
40
+ InternalServerException: () => InternalServerException,
41
+ ListChallengeMetadataCommand: () => ListChallengeMetadataCommand,
42
+ ListConnectorsCommand: () => ListConnectorsCommand,
43
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
44
+ MobileDeviceManagement: () => MobileDeviceManagement,
45
+ PcaConnectorScep: () => PcaConnectorScep,
46
+ PcaConnectorScepClient: () => PcaConnectorScepClient,
47
+ PcaConnectorScepServiceException: () => PcaConnectorScepServiceException,
48
+ ResourceNotFoundException: () => ResourceNotFoundException,
49
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
50
+ TagResourceCommand: () => TagResourceCommand,
51
+ ThrottlingException: () => ThrottlingException,
52
+ UntagResourceCommand: () => UntagResourceCommand,
53
+ ValidationException: () => ValidationException,
54
+ ValidationExceptionReason: () => ValidationExceptionReason,
55
+ __Client: () => import_smithy_client.Client,
56
+ paginateListChallengeMetadata: () => paginateListChallengeMetadata,
57
+ paginateListConnectors: () => paginateListConnectors
58
+ });
59
+ module.exports = __toCommonJS(index_exports);
60
+
61
+ // src/PcaConnectorScepClient.ts
62
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
63
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
64
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
65
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
66
+ var import_config_resolver = require("@smithy/config-resolver");
67
+ var import_core = require("@smithy/core");
68
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
69
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
70
+ var import_middleware_retry = require("@smithy/middleware-retry");
71
+
72
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
73
+
74
+ // src/endpoint/EndpointParameters.ts
75
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
76
+ return Object.assign(options, {
77
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
78
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
79
+ defaultSigningName: "pca-connector-scep"
80
+ });
81
+ }, "resolveClientEndpointParameters");
82
+ var commonParams = {
83
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
84
+ Endpoint: { type: "builtInParams", name: "endpoint" },
85
+ Region: { type: "builtInParams", name: "region" },
86
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
87
+ };
88
+
89
+ // src/PcaConnectorScepClient.ts
90
+ var import_runtimeConfig = require("././runtimeConfig");
91
+
92
+ // src/runtimeExtensions.ts
93
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
94
+ var import_protocol_http = require("@smithy/protocol-http");
95
+ var import_smithy_client = require("@smithy/smithy-client");
96
+
97
+ // src/auth/httpAuthExtensionConfiguration.ts
98
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
99
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
100
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
101
+ let _credentials = runtimeConfig.credentials;
102
+ return {
103
+ setHttpAuthScheme(httpAuthScheme) {
104
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
105
+ if (index === -1) {
106
+ _httpAuthSchemes.push(httpAuthScheme);
107
+ } else {
108
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
109
+ }
110
+ },
111
+ httpAuthSchemes() {
112
+ return _httpAuthSchemes;
113
+ },
114
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
115
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
116
+ },
117
+ httpAuthSchemeProvider() {
118
+ return _httpAuthSchemeProvider;
119
+ },
120
+ setCredentials(credentials) {
121
+ _credentials = credentials;
122
+ },
123
+ credentials() {
124
+ return _credentials;
125
+ }
126
+ };
127
+ }, "getHttpAuthExtensionConfiguration");
128
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
129
+ return {
130
+ httpAuthSchemes: config.httpAuthSchemes(),
131
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
132
+ credentials: config.credentials()
133
+ };
134
+ }, "resolveHttpAuthRuntimeConfig");
135
+
136
+ // src/runtimeExtensions.ts
137
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
138
+ const extensionConfiguration = Object.assign(
139
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
140
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
141
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
142
+ getHttpAuthExtensionConfiguration(runtimeConfig)
143
+ );
144
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
145
+ return Object.assign(
146
+ runtimeConfig,
147
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
148
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
149
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
150
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
151
+ );
152
+ }, "resolveRuntimeExtensions");
153
+
154
+ // src/PcaConnectorScepClient.ts
155
+ var PcaConnectorScepClient = class extends import_smithy_client.Client {
156
+ static {
157
+ __name(this, "PcaConnectorScepClient");
158
+ }
159
+ /**
160
+ * The resolved configuration of PcaConnectorScepClient class. This is resolved and normalized from the {@link PcaConnectorScepClientConfig | constructor configuration interface}.
161
+ */
162
+ config;
163
+ constructor(...[configuration]) {
164
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
165
+ super(_config_0);
166
+ this.initConfig = _config_0;
167
+ const _config_1 = resolveClientEndpointParameters(_config_0);
168
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
169
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
170
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
171
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
172
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
173
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
174
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
175
+ this.config = _config_8;
176
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
177
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
178
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
179
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
180
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
181
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
182
+ this.middlewareStack.use(
183
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
184
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultPcaConnectorScepHttpAuthSchemeParametersProvider,
185
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
186
+ "aws.auth#sigv4": config.credentials
187
+ }), "identityProviderConfigProvider")
188
+ })
189
+ );
190
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
191
+ }
192
+ /**
193
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
194
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
195
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
196
+ */
197
+ destroy() {
198
+ super.destroy();
199
+ }
200
+ };
201
+
202
+ // src/PcaConnectorScep.ts
203
+
204
+
205
+ // src/commands/CreateChallengeCommand.ts
206
+
207
+ var import_middleware_serde = require("@smithy/middleware-serde");
208
+
209
+
210
+ // src/models/models_0.ts
211
+
212
+
213
+ // src/models/PcaConnectorScepServiceException.ts
214
+
215
+ var PcaConnectorScepServiceException = class _PcaConnectorScepServiceException extends import_smithy_client.ServiceException {
216
+ static {
217
+ __name(this, "PcaConnectorScepServiceException");
218
+ }
219
+ /**
220
+ * @internal
221
+ */
222
+ constructor(options) {
223
+ super(options);
224
+ Object.setPrototypeOf(this, _PcaConnectorScepServiceException.prototype);
225
+ }
226
+ };
227
+
228
+ // src/models/models_0.ts
229
+ var AccessDeniedException = class _AccessDeniedException extends PcaConnectorScepServiceException {
230
+ static {
231
+ __name(this, "AccessDeniedException");
232
+ }
233
+ name = "AccessDeniedException";
234
+ $fault = "client";
235
+ Message;
236
+ /**
237
+ * @internal
238
+ */
239
+ constructor(opts) {
240
+ super({
241
+ name: "AccessDeniedException",
242
+ $fault: "client",
243
+ ...opts
244
+ });
245
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
246
+ this.Message = opts.Message;
247
+ }
248
+ };
249
+ var BadRequestException = class _BadRequestException extends PcaConnectorScepServiceException {
250
+ static {
251
+ __name(this, "BadRequestException");
252
+ }
253
+ name = "BadRequestException";
254
+ $fault = "client";
255
+ Message;
256
+ /**
257
+ * @internal
258
+ */
259
+ constructor(opts) {
260
+ super({
261
+ name: "BadRequestException",
262
+ $fault: "client",
263
+ ...opts
264
+ });
265
+ Object.setPrototypeOf(this, _BadRequestException.prototype);
266
+ this.Message = opts.Message;
267
+ }
268
+ };
269
+ var ConflictException = class _ConflictException extends PcaConnectorScepServiceException {
270
+ static {
271
+ __name(this, "ConflictException");
272
+ }
273
+ name = "ConflictException";
274
+ $fault = "client";
275
+ Message;
276
+ /**
277
+ * <p>The identifier of the Amazon Web Services resource.</p>
278
+ * @public
279
+ */
280
+ ResourceId;
281
+ /**
282
+ * <p>The resource type, which can be either <code>Connector</code> or <code>Challenge</code>.</p>
283
+ * @public
284
+ */
285
+ ResourceType;
286
+ /**
287
+ * @internal
288
+ */
289
+ constructor(opts) {
290
+ super({
291
+ name: "ConflictException",
292
+ $fault: "client",
293
+ ...opts
294
+ });
295
+ Object.setPrototypeOf(this, _ConflictException.prototype);
296
+ this.Message = opts.Message;
297
+ this.ResourceId = opts.ResourceId;
298
+ this.ResourceType = opts.ResourceType;
299
+ }
300
+ };
301
+ var InternalServerException = class _InternalServerException extends PcaConnectorScepServiceException {
302
+ static {
303
+ __name(this, "InternalServerException");
304
+ }
305
+ name = "InternalServerException";
306
+ $fault = "server";
307
+ $retryable = {};
308
+ Message;
309
+ /**
310
+ * @internal
311
+ */
312
+ constructor(opts) {
313
+ super({
314
+ name: "InternalServerException",
315
+ $fault: "server",
316
+ ...opts
317
+ });
318
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
319
+ this.Message = opts.Message;
320
+ }
321
+ };
322
+ var ResourceNotFoundException = class _ResourceNotFoundException extends PcaConnectorScepServiceException {
323
+ static {
324
+ __name(this, "ResourceNotFoundException");
325
+ }
326
+ name = "ResourceNotFoundException";
327
+ $fault = "client";
328
+ Message;
329
+ /**
330
+ * <p>The identifier of the Amazon Web Services resource.</p>
331
+ * @public
332
+ */
333
+ ResourceId;
334
+ /**
335
+ * <p>The resource type, which can be either <code>Connector</code> or <code>Challenge</code>.</p>
336
+ * @public
337
+ */
338
+ ResourceType;
339
+ /**
340
+ * @internal
341
+ */
342
+ constructor(opts) {
343
+ super({
344
+ name: "ResourceNotFoundException",
345
+ $fault: "client",
346
+ ...opts
347
+ });
348
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
349
+ this.Message = opts.Message;
350
+ this.ResourceId = opts.ResourceId;
351
+ this.ResourceType = opts.ResourceType;
352
+ }
353
+ };
354
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends PcaConnectorScepServiceException {
355
+ static {
356
+ __name(this, "ServiceQuotaExceededException");
357
+ }
358
+ name = "ServiceQuotaExceededException";
359
+ $fault = "client";
360
+ Message;
361
+ /**
362
+ * <p>The resource type, which can be either <code>Connector</code> or <code>Challenge</code>.</p>
363
+ * @public
364
+ */
365
+ ResourceType;
366
+ /**
367
+ * <p>Identifies the originating service.</p>
368
+ * @public
369
+ */
370
+ ServiceCode;
371
+ /**
372
+ * <p>The quota identifier.</p>
373
+ * @public
374
+ */
375
+ QuotaCode;
376
+ /**
377
+ * @internal
378
+ */
379
+ constructor(opts) {
380
+ super({
381
+ name: "ServiceQuotaExceededException",
382
+ $fault: "client",
383
+ ...opts
384
+ });
385
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
386
+ this.Message = opts.Message;
387
+ this.ResourceType = opts.ResourceType;
388
+ this.ServiceCode = opts.ServiceCode;
389
+ this.QuotaCode = opts.QuotaCode;
390
+ }
391
+ };
392
+ var ThrottlingException = class _ThrottlingException extends PcaConnectorScepServiceException {
393
+ static {
394
+ __name(this, "ThrottlingException");
395
+ }
396
+ name = "ThrottlingException";
397
+ $fault = "client";
398
+ $retryable = {
399
+ throttling: true
400
+ };
401
+ Message;
402
+ /**
403
+ * @internal
404
+ */
405
+ constructor(opts) {
406
+ super({
407
+ name: "ThrottlingException",
408
+ $fault: "client",
409
+ ...opts
410
+ });
411
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
412
+ this.Message = opts.Message;
413
+ }
414
+ };
415
+ var ValidationExceptionReason = {
416
+ CA_CERT_VALIDITY_TOO_SHORT: "CA_CERT_VALIDITY_TOO_SHORT",
417
+ INVALID_CA_USAGE_MODE: "INVALID_CA_USAGE_MODE",
418
+ INVALID_CONNECTOR_TYPE: "INVALID_CONNECTOR_TYPE",
419
+ INVALID_STATE: "INVALID_STATE",
420
+ NO_CLIENT_TOKEN: "NO_CLIENT_TOKEN",
421
+ OTHER: "OTHER",
422
+ UNKNOWN_OPERATION: "UNKNOWN_OPERATION"
423
+ };
424
+ var ValidationException = class _ValidationException extends PcaConnectorScepServiceException {
425
+ static {
426
+ __name(this, "ValidationException");
427
+ }
428
+ name = "ValidationException";
429
+ $fault = "client";
430
+ Message;
431
+ /**
432
+ * <p>The reason for the validation error, if available. The service doesn't return a reason for every validation exception.</p>
433
+ * @public
434
+ */
435
+ Reason;
436
+ /**
437
+ * @internal
438
+ */
439
+ constructor(opts) {
440
+ super({
441
+ name: "ValidationException",
442
+ $fault: "client",
443
+ ...opts
444
+ });
445
+ Object.setPrototypeOf(this, _ValidationException.prototype);
446
+ this.Message = opts.Message;
447
+ this.Reason = opts.Reason;
448
+ }
449
+ };
450
+ var MobileDeviceManagement;
451
+ ((MobileDeviceManagement3) => {
452
+ MobileDeviceManagement3.visit = /* @__PURE__ */ __name((value, visitor) => {
453
+ if (value.Intune !== void 0) return visitor.Intune(value.Intune);
454
+ return visitor._(value.$unknown[0], value.$unknown[1]);
455
+ }, "visit");
456
+ })(MobileDeviceManagement || (MobileDeviceManagement = {}));
457
+ var ConnectorStatus = {
458
+ ACTIVE: "ACTIVE",
459
+ CREATING: "CREATING",
460
+ DELETING: "DELETING",
461
+ FAILED: "FAILED"
462
+ };
463
+ var ConnectorStatusReason = {
464
+ INTERNAL_FAILURE: "INTERNAL_FAILURE",
465
+ PRIVATECA_ACCESS_DENIED: "PRIVATECA_ACCESS_DENIED",
466
+ PRIVATECA_INVALID_STATE: "PRIVATECA_INVALID_STATE",
467
+ PRIVATECA_RESOURCE_NOT_FOUND: "PRIVATECA_RESOURCE_NOT_FOUND"
468
+ };
469
+ var ConnectorType = {
470
+ GENERAL_PURPOSE: "GENERAL_PURPOSE",
471
+ INTUNE: "INTUNE"
472
+ };
473
+ var ChallengeFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
474
+ ...obj,
475
+ ...obj.Password && { Password: import_smithy_client.SENSITIVE_STRING }
476
+ }), "ChallengeFilterSensitiveLog");
477
+ var CreateChallengeResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
478
+ ...obj,
479
+ ...obj.Challenge && { Challenge: ChallengeFilterSensitiveLog(obj.Challenge) }
480
+ }), "CreateChallengeResponseFilterSensitiveLog");
481
+ var GetChallengePasswordResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
482
+ ...obj,
483
+ ...obj.Password && { Password: import_smithy_client.SENSITIVE_STRING }
484
+ }), "GetChallengePasswordResponseFilterSensitiveLog");
485
+
486
+ // src/protocols/Aws_restJson1.ts
487
+ var import_core2 = require("@aws-sdk/core");
488
+
489
+
490
+ var import_uuid = require("uuid");
491
+ var se_CreateChallengeCommand = /* @__PURE__ */ __name(async (input, context) => {
492
+ const b = (0, import_core.requestBuilder)(input, context);
493
+ const headers = {
494
+ "content-type": "application/json"
495
+ };
496
+ b.bp("/challenges");
497
+ let body;
498
+ body = JSON.stringify(
499
+ (0, import_smithy_client.take)(input, {
500
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
501
+ ConnectorArn: [],
502
+ Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
503
+ })
504
+ );
505
+ b.m("POST").h(headers).b(body);
506
+ return b.build();
507
+ }, "se_CreateChallengeCommand");
508
+ var se_CreateConnectorCommand = /* @__PURE__ */ __name(async (input, context) => {
509
+ const b = (0, import_core.requestBuilder)(input, context);
510
+ const headers = {
511
+ "content-type": "application/json"
512
+ };
513
+ b.bp("/connectors");
514
+ let body;
515
+ body = JSON.stringify(
516
+ (0, import_smithy_client.take)(input, {
517
+ CertificateAuthorityArn: [],
518
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
519
+ MobileDeviceManagement: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "MobileDeviceManagement"),
520
+ Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
521
+ })
522
+ );
523
+ b.m("POST").h(headers).b(body);
524
+ return b.build();
525
+ }, "se_CreateConnectorCommand");
526
+ var se_DeleteChallengeCommand = /* @__PURE__ */ __name(async (input, context) => {
527
+ const b = (0, import_core.requestBuilder)(input, context);
528
+ const headers = {};
529
+ b.bp("/challenges/{ChallengeArn}");
530
+ b.p("ChallengeArn", () => input.ChallengeArn, "{ChallengeArn}", false);
531
+ let body;
532
+ b.m("DELETE").h(headers).b(body);
533
+ return b.build();
534
+ }, "se_DeleteChallengeCommand");
535
+ var se_DeleteConnectorCommand = /* @__PURE__ */ __name(async (input, context) => {
536
+ const b = (0, import_core.requestBuilder)(input, context);
537
+ const headers = {};
538
+ b.bp("/connectors/{ConnectorArn}");
539
+ b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
540
+ let body;
541
+ b.m("DELETE").h(headers).b(body);
542
+ return b.build();
543
+ }, "se_DeleteConnectorCommand");
544
+ var se_GetChallengeMetadataCommand = /* @__PURE__ */ __name(async (input, context) => {
545
+ const b = (0, import_core.requestBuilder)(input, context);
546
+ const headers = {};
547
+ b.bp("/challengeMetadata/{ChallengeArn}");
548
+ b.p("ChallengeArn", () => input.ChallengeArn, "{ChallengeArn}", false);
549
+ let body;
550
+ b.m("GET").h(headers).b(body);
551
+ return b.build();
552
+ }, "se_GetChallengeMetadataCommand");
553
+ var se_GetChallengePasswordCommand = /* @__PURE__ */ __name(async (input, context) => {
554
+ const b = (0, import_core.requestBuilder)(input, context);
555
+ const headers = {};
556
+ b.bp("/challengePasswords/{ChallengeArn}");
557
+ b.p("ChallengeArn", () => input.ChallengeArn, "{ChallengeArn}", false);
558
+ let body;
559
+ b.m("GET").h(headers).b(body);
560
+ return b.build();
561
+ }, "se_GetChallengePasswordCommand");
562
+ var se_GetConnectorCommand = /* @__PURE__ */ __name(async (input, context) => {
563
+ const b = (0, import_core.requestBuilder)(input, context);
564
+ const headers = {};
565
+ b.bp("/connectors/{ConnectorArn}");
566
+ b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
567
+ let body;
568
+ b.m("GET").h(headers).b(body);
569
+ return b.build();
570
+ }, "se_GetConnectorCommand");
571
+ var se_ListChallengeMetadataCommand = /* @__PURE__ */ __name(async (input, context) => {
572
+ const b = (0, import_core.requestBuilder)(input, context);
573
+ const headers = {};
574
+ b.bp("/challengeMetadata");
575
+ const query = (0, import_smithy_client.map)({
576
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
577
+ [_NT]: [, input[_NT]],
578
+ [_CA]: [, (0, import_smithy_client.expectNonNull)(input[_CA], `ConnectorArn`)]
579
+ });
580
+ let body;
581
+ b.m("GET").h(headers).q(query).b(body);
582
+ return b.build();
583
+ }, "se_ListChallengeMetadataCommand");
584
+ var se_ListConnectorsCommand = /* @__PURE__ */ __name(async (input, context) => {
585
+ const b = (0, import_core.requestBuilder)(input, context);
586
+ const headers = {};
587
+ b.bp("/connectors");
588
+ const query = (0, import_smithy_client.map)({
589
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
590
+ [_NT]: [, input[_NT]]
591
+ });
592
+ let body;
593
+ b.m("GET").h(headers).q(query).b(body);
594
+ return b.build();
595
+ }, "se_ListConnectorsCommand");
596
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
597
+ const b = (0, import_core.requestBuilder)(input, context);
598
+ const headers = {};
599
+ b.bp("/tags/{ResourceArn}");
600
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
601
+ let body;
602
+ b.m("GET").h(headers).b(body);
603
+ return b.build();
604
+ }, "se_ListTagsForResourceCommand");
605
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
606
+ const b = (0, import_core.requestBuilder)(input, context);
607
+ const headers = {
608
+ "content-type": "application/json"
609
+ };
610
+ b.bp("/tags/{ResourceArn}");
611
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
612
+ let body;
613
+ body = JSON.stringify(
614
+ (0, import_smithy_client.take)(input, {
615
+ Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
616
+ })
617
+ );
618
+ b.m("POST").h(headers).b(body);
619
+ return b.build();
620
+ }, "se_TagResourceCommand");
621
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
622
+ const b = (0, import_core.requestBuilder)(input, context);
623
+ const headers = {};
624
+ b.bp("/tags/{ResourceArn}");
625
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
626
+ const query = (0, import_smithy_client.map)({
627
+ [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
628
+ });
629
+ let body;
630
+ b.m("DELETE").h(headers).q(query).b(body);
631
+ return b.build();
632
+ }, "se_UntagResourceCommand");
633
+ var de_CreateChallengeCommand = /* @__PURE__ */ __name(async (output, context) => {
634
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
635
+ return de_CommandError(output, context);
636
+ }
637
+ const contents = (0, import_smithy_client.map)({
638
+ $metadata: deserializeMetadata(output)
639
+ });
640
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
641
+ const doc = (0, import_smithy_client.take)(data, {
642
+ Challenge: /* @__PURE__ */ __name((_) => de_Challenge(_, context), "Challenge")
643
+ });
644
+ Object.assign(contents, doc);
645
+ return contents;
646
+ }, "de_CreateChallengeCommand");
647
+ var de_CreateConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
648
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
649
+ return de_CommandError(output, context);
650
+ }
651
+ const contents = (0, import_smithy_client.map)({
652
+ $metadata: deserializeMetadata(output)
653
+ });
654
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
655
+ const doc = (0, import_smithy_client.take)(data, {
656
+ ConnectorArn: import_smithy_client.expectString
657
+ });
658
+ Object.assign(contents, doc);
659
+ return contents;
660
+ }, "de_CreateConnectorCommand");
661
+ var de_DeleteChallengeCommand = /* @__PURE__ */ __name(async (output, context) => {
662
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
663
+ return de_CommandError(output, context);
664
+ }
665
+ const contents = (0, import_smithy_client.map)({
666
+ $metadata: deserializeMetadata(output)
667
+ });
668
+ await (0, import_smithy_client.collectBody)(output.body, context);
669
+ return contents;
670
+ }, "de_DeleteChallengeCommand");
671
+ var de_DeleteConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
672
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
673
+ return de_CommandError(output, context);
674
+ }
675
+ const contents = (0, import_smithy_client.map)({
676
+ $metadata: deserializeMetadata(output)
677
+ });
678
+ await (0, import_smithy_client.collectBody)(output.body, context);
679
+ return contents;
680
+ }, "de_DeleteConnectorCommand");
681
+ var de_GetChallengeMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
682
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
683
+ return de_CommandError(output, context);
684
+ }
685
+ const contents = (0, import_smithy_client.map)({
686
+ $metadata: deserializeMetadata(output)
687
+ });
688
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
689
+ const doc = (0, import_smithy_client.take)(data, {
690
+ ChallengeMetadata: /* @__PURE__ */ __name((_) => de_ChallengeMetadata(_, context), "ChallengeMetadata")
691
+ });
692
+ Object.assign(contents, doc);
693
+ return contents;
694
+ }, "de_GetChallengeMetadataCommand");
695
+ var de_GetChallengePasswordCommand = /* @__PURE__ */ __name(async (output, context) => {
696
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
697
+ return de_CommandError(output, context);
698
+ }
699
+ const contents = (0, import_smithy_client.map)({
700
+ $metadata: deserializeMetadata(output)
701
+ });
702
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
703
+ const doc = (0, import_smithy_client.take)(data, {
704
+ Password: import_smithy_client.expectString
705
+ });
706
+ Object.assign(contents, doc);
707
+ return contents;
708
+ }, "de_GetChallengePasswordCommand");
709
+ var de_GetConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
710
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
711
+ return de_CommandError(output, context);
712
+ }
713
+ const contents = (0, import_smithy_client.map)({
714
+ $metadata: deserializeMetadata(output)
715
+ });
716
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
717
+ const doc = (0, import_smithy_client.take)(data, {
718
+ Connector: /* @__PURE__ */ __name((_) => de_Connector(_, context), "Connector")
719
+ });
720
+ Object.assign(contents, doc);
721
+ return contents;
722
+ }, "de_GetConnectorCommand");
723
+ var de_ListChallengeMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
724
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
725
+ return de_CommandError(output, context);
726
+ }
727
+ const contents = (0, import_smithy_client.map)({
728
+ $metadata: deserializeMetadata(output)
729
+ });
730
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
731
+ const doc = (0, import_smithy_client.take)(data, {
732
+ Challenges: /* @__PURE__ */ __name((_) => de_ChallengeMetadataList(_, context), "Challenges"),
733
+ NextToken: import_smithy_client.expectString
734
+ });
735
+ Object.assign(contents, doc);
736
+ return contents;
737
+ }, "de_ListChallengeMetadataCommand");
738
+ var de_ListConnectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
739
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
740
+ return de_CommandError(output, context);
741
+ }
742
+ const contents = (0, import_smithy_client.map)({
743
+ $metadata: deserializeMetadata(output)
744
+ });
745
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
746
+ const doc = (0, import_smithy_client.take)(data, {
747
+ Connectors: /* @__PURE__ */ __name((_) => de_ConnectorList(_, context), "Connectors"),
748
+ NextToken: import_smithy_client.expectString
749
+ });
750
+ Object.assign(contents, doc);
751
+ return contents;
752
+ }, "de_ListConnectorsCommand");
753
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
754
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
755
+ return de_CommandError(output, context);
756
+ }
757
+ const contents = (0, import_smithy_client.map)({
758
+ $metadata: deserializeMetadata(output)
759
+ });
760
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
761
+ const doc = (0, import_smithy_client.take)(data, {
762
+ Tags: import_smithy_client._json
763
+ });
764
+ Object.assign(contents, doc);
765
+ return contents;
766
+ }, "de_ListTagsForResourceCommand");
767
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
768
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
769
+ return de_CommandError(output, context);
770
+ }
771
+ const contents = (0, import_smithy_client.map)({
772
+ $metadata: deserializeMetadata(output)
773
+ });
774
+ await (0, import_smithy_client.collectBody)(output.body, context);
775
+ return contents;
776
+ }, "de_TagResourceCommand");
777
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
778
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
779
+ return de_CommandError(output, context);
780
+ }
781
+ const contents = (0, import_smithy_client.map)({
782
+ $metadata: deserializeMetadata(output)
783
+ });
784
+ await (0, import_smithy_client.collectBody)(output.body, context);
785
+ return contents;
786
+ }, "de_UntagResourceCommand");
787
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
788
+ const parsedOutput = {
789
+ ...output,
790
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
791
+ };
792
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
793
+ switch (errorCode) {
794
+ case "AccessDeniedException":
795
+ case "com.amazonaws.pcaconnectorscep#AccessDeniedException":
796
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
797
+ case "BadRequestException":
798
+ case "com.amazonaws.pcaconnectorscep#BadRequestException":
799
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
800
+ case "ConflictException":
801
+ case "com.amazonaws.pcaconnectorscep#ConflictException":
802
+ throw await de_ConflictExceptionRes(parsedOutput, context);
803
+ case "InternalServerException":
804
+ case "com.amazonaws.pcaconnectorscep#InternalServerException":
805
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
806
+ case "ResourceNotFoundException":
807
+ case "com.amazonaws.pcaconnectorscep#ResourceNotFoundException":
808
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
809
+ case "ServiceQuotaExceededException":
810
+ case "com.amazonaws.pcaconnectorscep#ServiceQuotaExceededException":
811
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
812
+ case "ThrottlingException":
813
+ case "com.amazonaws.pcaconnectorscep#ThrottlingException":
814
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
815
+ case "ValidationException":
816
+ case "com.amazonaws.pcaconnectorscep#ValidationException":
817
+ throw await de_ValidationExceptionRes(parsedOutput, context);
818
+ default:
819
+ const parsedBody = parsedOutput.body;
820
+ return throwDefaultError({
821
+ output,
822
+ parsedBody,
823
+ errorCode
824
+ });
825
+ }
826
+ }, "de_CommandError");
827
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(PcaConnectorScepServiceException);
828
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
829
+ const contents = (0, import_smithy_client.map)({});
830
+ const data = parsedOutput.body;
831
+ const doc = (0, import_smithy_client.take)(data, {
832
+ Message: import_smithy_client.expectString
833
+ });
834
+ Object.assign(contents, doc);
835
+ const exception = new AccessDeniedException({
836
+ $metadata: deserializeMetadata(parsedOutput),
837
+ ...contents
838
+ });
839
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
840
+ }, "de_AccessDeniedExceptionRes");
841
+ var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
842
+ const contents = (0, import_smithy_client.map)({});
843
+ const data = parsedOutput.body;
844
+ const doc = (0, import_smithy_client.take)(data, {
845
+ Message: import_smithy_client.expectString
846
+ });
847
+ Object.assign(contents, doc);
848
+ const exception = new BadRequestException({
849
+ $metadata: deserializeMetadata(parsedOutput),
850
+ ...contents
851
+ });
852
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
853
+ }, "de_BadRequestExceptionRes");
854
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
855
+ const contents = (0, import_smithy_client.map)({});
856
+ const data = parsedOutput.body;
857
+ const doc = (0, import_smithy_client.take)(data, {
858
+ Message: import_smithy_client.expectString,
859
+ ResourceId: import_smithy_client.expectString,
860
+ ResourceType: import_smithy_client.expectString
861
+ });
862
+ Object.assign(contents, doc);
863
+ const exception = new ConflictException({
864
+ $metadata: deserializeMetadata(parsedOutput),
865
+ ...contents
866
+ });
867
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
868
+ }, "de_ConflictExceptionRes");
869
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
870
+ const contents = (0, import_smithy_client.map)({});
871
+ const data = parsedOutput.body;
872
+ const doc = (0, import_smithy_client.take)(data, {
873
+ Message: import_smithy_client.expectString
874
+ });
875
+ Object.assign(contents, doc);
876
+ const exception = new InternalServerException({
877
+ $metadata: deserializeMetadata(parsedOutput),
878
+ ...contents
879
+ });
880
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
881
+ }, "de_InternalServerExceptionRes");
882
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
883
+ const contents = (0, import_smithy_client.map)({});
884
+ const data = parsedOutput.body;
885
+ const doc = (0, import_smithy_client.take)(data, {
886
+ Message: import_smithy_client.expectString,
887
+ ResourceId: import_smithy_client.expectString,
888
+ ResourceType: import_smithy_client.expectString
889
+ });
890
+ Object.assign(contents, doc);
891
+ const exception = new ResourceNotFoundException({
892
+ $metadata: deserializeMetadata(parsedOutput),
893
+ ...contents
894
+ });
895
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
896
+ }, "de_ResourceNotFoundExceptionRes");
897
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
898
+ const contents = (0, import_smithy_client.map)({});
899
+ const data = parsedOutput.body;
900
+ const doc = (0, import_smithy_client.take)(data, {
901
+ Message: import_smithy_client.expectString,
902
+ QuotaCode: import_smithy_client.expectString,
903
+ ResourceType: import_smithy_client.expectString,
904
+ ServiceCode: import_smithy_client.expectString
905
+ });
906
+ Object.assign(contents, doc);
907
+ const exception = new ServiceQuotaExceededException({
908
+ $metadata: deserializeMetadata(parsedOutput),
909
+ ...contents
910
+ });
911
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
912
+ }, "de_ServiceQuotaExceededExceptionRes");
913
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
914
+ const contents = (0, import_smithy_client.map)({});
915
+ const data = parsedOutput.body;
916
+ const doc = (0, import_smithy_client.take)(data, {
917
+ Message: import_smithy_client.expectString
918
+ });
919
+ Object.assign(contents, doc);
920
+ const exception = new ThrottlingException({
921
+ $metadata: deserializeMetadata(parsedOutput),
922
+ ...contents
923
+ });
924
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
925
+ }, "de_ThrottlingExceptionRes");
926
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
927
+ const contents = (0, import_smithy_client.map)({});
928
+ const data = parsedOutput.body;
929
+ const doc = (0, import_smithy_client.take)(data, {
930
+ Message: import_smithy_client.expectString,
931
+ Reason: import_smithy_client.expectString
932
+ });
933
+ Object.assign(contents, doc);
934
+ const exception = new ValidationException({
935
+ $metadata: deserializeMetadata(parsedOutput),
936
+ ...contents
937
+ });
938
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
939
+ }, "de_ValidationExceptionRes");
940
+ var de_Challenge = /* @__PURE__ */ __name((output, context) => {
941
+ return (0, import_smithy_client.take)(output, {
942
+ Arn: import_smithy_client.expectString,
943
+ ConnectorArn: import_smithy_client.expectString,
944
+ CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
945
+ Password: import_smithy_client.expectString,
946
+ UpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UpdatedAt")
947
+ });
948
+ }, "de_Challenge");
949
+ var de_ChallengeMetadata = /* @__PURE__ */ __name((output, context) => {
950
+ return (0, import_smithy_client.take)(output, {
951
+ Arn: import_smithy_client.expectString,
952
+ ConnectorArn: import_smithy_client.expectString,
953
+ CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
954
+ UpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UpdatedAt")
955
+ });
956
+ }, "de_ChallengeMetadata");
957
+ var de_ChallengeMetadataList = /* @__PURE__ */ __name((output, context) => {
958
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
959
+ return de_ChallengeMetadataSummary(entry, context);
960
+ });
961
+ return retVal;
962
+ }, "de_ChallengeMetadataList");
963
+ var de_ChallengeMetadataSummary = /* @__PURE__ */ __name((output, context) => {
964
+ return (0, import_smithy_client.take)(output, {
965
+ Arn: import_smithy_client.expectString,
966
+ ConnectorArn: import_smithy_client.expectString,
967
+ CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
968
+ UpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UpdatedAt")
969
+ });
970
+ }, "de_ChallengeMetadataSummary");
971
+ var de_Connector = /* @__PURE__ */ __name((output, context) => {
972
+ return (0, import_smithy_client.take)(output, {
973
+ Arn: import_smithy_client.expectString,
974
+ CertificateAuthorityArn: import_smithy_client.expectString,
975
+ CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
976
+ Endpoint: import_smithy_client.expectString,
977
+ MobileDeviceManagement: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "MobileDeviceManagement"),
978
+ OpenIdConfiguration: import_smithy_client._json,
979
+ Status: import_smithy_client.expectString,
980
+ StatusReason: import_smithy_client.expectString,
981
+ Type: import_smithy_client.expectString,
982
+ UpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UpdatedAt")
983
+ });
984
+ }, "de_Connector");
985
+ var de_ConnectorList = /* @__PURE__ */ __name((output, context) => {
986
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
987
+ return de_ConnectorSummary(entry, context);
988
+ });
989
+ return retVal;
990
+ }, "de_ConnectorList");
991
+ var de_ConnectorSummary = /* @__PURE__ */ __name((output, context) => {
992
+ return (0, import_smithy_client.take)(output, {
993
+ Arn: import_smithy_client.expectString,
994
+ CertificateAuthorityArn: import_smithy_client.expectString,
995
+ CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
996
+ Endpoint: import_smithy_client.expectString,
997
+ MobileDeviceManagement: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "MobileDeviceManagement"),
998
+ OpenIdConfiguration: import_smithy_client._json,
999
+ Status: import_smithy_client.expectString,
1000
+ StatusReason: import_smithy_client.expectString,
1001
+ Type: import_smithy_client.expectString,
1002
+ UpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UpdatedAt")
1003
+ });
1004
+ }, "de_ConnectorSummary");
1005
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1006
+ httpStatusCode: output.statusCode,
1007
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1008
+ extendedRequestId: output.headers["x-amz-id-2"],
1009
+ cfId: output.headers["x-amz-cf-id"]
1010
+ }), "deserializeMetadata");
1011
+ var _CA = "ConnectorArn";
1012
+ var _MR = "MaxResults";
1013
+ var _NT = "NextToken";
1014
+ var _TK = "TagKeys";
1015
+ var _tK = "tagKeys";
1016
+
1017
+ // src/commands/CreateChallengeCommand.ts
1018
+ var CreateChallengeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1019
+ return [
1020
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1021
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1022
+ ];
1023
+ }).s("PcaConnectorScep", "CreateChallenge", {}).n("PcaConnectorScepClient", "CreateChallengeCommand").f(void 0, CreateChallengeResponseFilterSensitiveLog).ser(se_CreateChallengeCommand).de(de_CreateChallengeCommand).build() {
1024
+ static {
1025
+ __name(this, "CreateChallengeCommand");
1026
+ }
1027
+ };
1028
+
1029
+ // src/commands/CreateConnectorCommand.ts
1030
+
1031
+
1032
+
1033
+ var CreateConnectorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1034
+ return [
1035
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1036
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1037
+ ];
1038
+ }).s("PcaConnectorScep", "CreateConnector", {}).n("PcaConnectorScepClient", "CreateConnectorCommand").f(void 0, void 0).ser(se_CreateConnectorCommand).de(de_CreateConnectorCommand).build() {
1039
+ static {
1040
+ __name(this, "CreateConnectorCommand");
1041
+ }
1042
+ };
1043
+
1044
+ // src/commands/DeleteChallengeCommand.ts
1045
+
1046
+
1047
+
1048
+ var DeleteChallengeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1049
+ return [
1050
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1051
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1052
+ ];
1053
+ }).s("PcaConnectorScep", "DeleteChallenge", {}).n("PcaConnectorScepClient", "DeleteChallengeCommand").f(void 0, void 0).ser(se_DeleteChallengeCommand).de(de_DeleteChallengeCommand).build() {
1054
+ static {
1055
+ __name(this, "DeleteChallengeCommand");
1056
+ }
1057
+ };
1058
+
1059
+ // src/commands/DeleteConnectorCommand.ts
1060
+
1061
+
1062
+
1063
+ var DeleteConnectorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1064
+ return [
1065
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1066
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1067
+ ];
1068
+ }).s("PcaConnectorScep", "DeleteConnector", {}).n("PcaConnectorScepClient", "DeleteConnectorCommand").f(void 0, void 0).ser(se_DeleteConnectorCommand).de(de_DeleteConnectorCommand).build() {
1069
+ static {
1070
+ __name(this, "DeleteConnectorCommand");
1071
+ }
1072
+ };
1073
+
1074
+ // src/commands/GetChallengeMetadataCommand.ts
1075
+
1076
+
1077
+
1078
+ var GetChallengeMetadataCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1079
+ return [
1080
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1081
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1082
+ ];
1083
+ }).s("PcaConnectorScep", "GetChallengeMetadata", {}).n("PcaConnectorScepClient", "GetChallengeMetadataCommand").f(void 0, void 0).ser(se_GetChallengeMetadataCommand).de(de_GetChallengeMetadataCommand).build() {
1084
+ static {
1085
+ __name(this, "GetChallengeMetadataCommand");
1086
+ }
1087
+ };
1088
+
1089
+ // src/commands/GetChallengePasswordCommand.ts
1090
+
1091
+
1092
+
1093
+ var GetChallengePasswordCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1094
+ return [
1095
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1096
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1097
+ ];
1098
+ }).s("PcaConnectorScep", "GetChallengePassword", {}).n("PcaConnectorScepClient", "GetChallengePasswordCommand").f(void 0, GetChallengePasswordResponseFilterSensitiveLog).ser(se_GetChallengePasswordCommand).de(de_GetChallengePasswordCommand).build() {
1099
+ static {
1100
+ __name(this, "GetChallengePasswordCommand");
1101
+ }
1102
+ };
1103
+
1104
+ // src/commands/GetConnectorCommand.ts
1105
+
1106
+
1107
+
1108
+ var GetConnectorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1109
+ return [
1110
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1111
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1112
+ ];
1113
+ }).s("PcaConnectorScep", "GetConnector", {}).n("PcaConnectorScepClient", "GetConnectorCommand").f(void 0, void 0).ser(se_GetConnectorCommand).de(de_GetConnectorCommand).build() {
1114
+ static {
1115
+ __name(this, "GetConnectorCommand");
1116
+ }
1117
+ };
1118
+
1119
+ // src/commands/ListChallengeMetadataCommand.ts
1120
+
1121
+
1122
+
1123
+ var ListChallengeMetadataCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1124
+ return [
1125
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1126
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1127
+ ];
1128
+ }).s("PcaConnectorScep", "ListChallengeMetadata", {}).n("PcaConnectorScepClient", "ListChallengeMetadataCommand").f(void 0, void 0).ser(se_ListChallengeMetadataCommand).de(de_ListChallengeMetadataCommand).build() {
1129
+ static {
1130
+ __name(this, "ListChallengeMetadataCommand");
1131
+ }
1132
+ };
1133
+
1134
+ // src/commands/ListConnectorsCommand.ts
1135
+
1136
+
1137
+
1138
+ var ListConnectorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1139
+ return [
1140
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1141
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1142
+ ];
1143
+ }).s("PcaConnectorScep", "ListConnectors", {}).n("PcaConnectorScepClient", "ListConnectorsCommand").f(void 0, void 0).ser(se_ListConnectorsCommand).de(de_ListConnectorsCommand).build() {
1144
+ static {
1145
+ __name(this, "ListConnectorsCommand");
1146
+ }
1147
+ };
1148
+
1149
+ // src/commands/ListTagsForResourceCommand.ts
1150
+
1151
+
1152
+
1153
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1154
+ return [
1155
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1156
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1157
+ ];
1158
+ }).s("PcaConnectorScep", "ListTagsForResource", {}).n("PcaConnectorScepClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1159
+ static {
1160
+ __name(this, "ListTagsForResourceCommand");
1161
+ }
1162
+ };
1163
+
1164
+ // src/commands/TagResourceCommand.ts
1165
+
1166
+
1167
+
1168
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1169
+ return [
1170
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1171
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1172
+ ];
1173
+ }).s("PcaConnectorScep", "TagResource", {}).n("PcaConnectorScepClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1174
+ static {
1175
+ __name(this, "TagResourceCommand");
1176
+ }
1177
+ };
1178
+
1179
+ // src/commands/UntagResourceCommand.ts
1180
+
1181
+
1182
+
1183
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1184
+ return [
1185
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1186
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1187
+ ];
1188
+ }).s("PcaConnectorScep", "UntagResource", {}).n("PcaConnectorScepClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1189
+ static {
1190
+ __name(this, "UntagResourceCommand");
1191
+ }
1192
+ };
1193
+
1194
+ // src/PcaConnectorScep.ts
1195
+ var commands = {
1196
+ CreateChallengeCommand,
1197
+ CreateConnectorCommand,
1198
+ DeleteChallengeCommand,
1199
+ DeleteConnectorCommand,
1200
+ GetChallengeMetadataCommand,
1201
+ GetChallengePasswordCommand,
1202
+ GetConnectorCommand,
1203
+ ListChallengeMetadataCommand,
1204
+ ListConnectorsCommand,
1205
+ ListTagsForResourceCommand,
1206
+ TagResourceCommand,
1207
+ UntagResourceCommand
1208
+ };
1209
+ var PcaConnectorScep = class extends PcaConnectorScepClient {
1210
+ static {
1211
+ __name(this, "PcaConnectorScep");
1212
+ }
1213
+ };
1214
+ (0, import_smithy_client.createAggregatedClient)(commands, PcaConnectorScep);
1215
+
1216
+ // src/pagination/ListChallengeMetadataPaginator.ts
1217
+
1218
+ var paginateListChallengeMetadata = (0, import_core.createPaginator)(PcaConnectorScepClient, ListChallengeMetadataCommand, "NextToken", "NextToken", "MaxResults");
1219
+
1220
+ // src/pagination/ListConnectorsPaginator.ts
1221
+
1222
+ var paginateListConnectors = (0, import_core.createPaginator)(PcaConnectorScepClient, ListConnectorsCommand, "NextToken", "NextToken", "MaxResults");
1223
+ // Annotate the CommonJS export names for ESM import in node:
1224
+
1225
+ 0 && (module.exports = {
1226
+ PcaConnectorScepServiceException,
1227
+ __Client,
1228
+ PcaConnectorScepClient,
1229
+ PcaConnectorScep,
1230
+ $Command,
1231
+ CreateChallengeCommand,
1232
+ CreateConnectorCommand,
1233
+ DeleteChallengeCommand,
1234
+ DeleteConnectorCommand,
1235
+ GetChallengeMetadataCommand,
1236
+ GetChallengePasswordCommand,
1237
+ GetConnectorCommand,
1238
+ ListChallengeMetadataCommand,
1239
+ ListConnectorsCommand,
1240
+ ListTagsForResourceCommand,
1241
+ TagResourceCommand,
1242
+ UntagResourceCommand,
1243
+ paginateListChallengeMetadata,
1244
+ paginateListConnectors,
1245
+ AccessDeniedException,
1246
+ BadRequestException,
1247
+ ConflictException,
1248
+ InternalServerException,
1249
+ ResourceNotFoundException,
1250
+ ServiceQuotaExceededException,
1251
+ ThrottlingException,
1252
+ ValidationExceptionReason,
1253
+ ValidationException,
1254
+ MobileDeviceManagement,
1255
+ ConnectorStatus,
1256
+ ConnectorStatusReason,
1257
+ ConnectorType,
1258
+ ChallengeFilterSensitiveLog,
1259
+ CreateChallengeResponseFilterSensitiveLog,
1260
+ GetChallengePasswordResponseFilterSensitiveLog
1261
+ });
1262
+