@aws-sdk/client-pca-connector-scep 3.1074.0 → 3.1076.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultPcaConnectorScepHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateChallenge$, CreateConnector$, DeleteChallenge$, DeleteConnector$, GetChallengeMetadata$, GetChallengePassword$, GetConnector$, ListChallengeMetadata$, ListConnectors$, ListTagsForResource$, TagResource$, UntagResource$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { PcaConnectorScepServiceException } = require("./models/PcaConnectorScepServiceException");
18
- exports.PcaConnectorScepServiceException = PcaConnectorScepServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultPcaConnectorScepHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "pca-connector-scep",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultPcaConnectorScepHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,607 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://pca-connector-scep-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://pca-connector-scep-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://pca-connector-scep.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://pca-connector-scep.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class PcaConnectorScepServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, PcaConnectorScepServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class AccessDeniedException extends PcaConnectorScepServiceException {
140
+ name = "AccessDeniedException";
141
+ $fault = "client";
142
+ Message;
143
+ constructor(opts) {
144
+ super({
145
+ name: "AccessDeniedException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
150
+ this.Message = opts.Message;
151
+ }
152
+ }
153
+ class BadRequestException extends PcaConnectorScepServiceException {
154
+ name = "BadRequestException";
155
+ $fault = "client";
156
+ Message;
157
+ constructor(opts) {
158
+ super({
159
+ name: "BadRequestException",
160
+ $fault: "client",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, BadRequestException.prototype);
164
+ this.Message = opts.Message;
165
+ }
166
+ }
167
+ class ConflictException extends PcaConnectorScepServiceException {
168
+ name = "ConflictException";
169
+ $fault = "client";
170
+ Message;
171
+ ResourceId;
172
+ ResourceType;
173
+ constructor(opts) {
174
+ super({
175
+ name: "ConflictException",
176
+ $fault: "client",
177
+ ...opts,
178
+ });
179
+ Object.setPrototypeOf(this, ConflictException.prototype);
180
+ this.Message = opts.Message;
181
+ this.ResourceId = opts.ResourceId;
182
+ this.ResourceType = opts.ResourceType;
183
+ }
184
+ }
185
+ class InternalServerException extends PcaConnectorScepServiceException {
186
+ name = "InternalServerException";
187
+ $fault = "server";
188
+ $retryable = {};
189
+ Message;
190
+ constructor(opts) {
191
+ super({
192
+ name: "InternalServerException",
193
+ $fault: "server",
194
+ ...opts,
195
+ });
196
+ Object.setPrototypeOf(this, InternalServerException.prototype);
197
+ this.Message = opts.Message;
198
+ }
199
+ }
200
+ class ResourceNotFoundException extends PcaConnectorScepServiceException {
201
+ name = "ResourceNotFoundException";
202
+ $fault = "client";
203
+ Message;
204
+ ResourceId;
205
+ ResourceType;
206
+ constructor(opts) {
207
+ super({
208
+ name: "ResourceNotFoundException",
209
+ $fault: "client",
210
+ ...opts,
211
+ });
212
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
213
+ this.Message = opts.Message;
214
+ this.ResourceId = opts.ResourceId;
215
+ this.ResourceType = opts.ResourceType;
216
+ }
217
+ }
218
+ class ServiceQuotaExceededException extends PcaConnectorScepServiceException {
219
+ name = "ServiceQuotaExceededException";
220
+ $fault = "client";
221
+ Message;
222
+ ResourceType;
223
+ ServiceCode;
224
+ QuotaCode;
225
+ constructor(opts) {
226
+ super({
227
+ name: "ServiceQuotaExceededException",
228
+ $fault: "client",
229
+ ...opts,
230
+ });
231
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
232
+ this.Message = opts.Message;
233
+ this.ResourceType = opts.ResourceType;
234
+ this.ServiceCode = opts.ServiceCode;
235
+ this.QuotaCode = opts.QuotaCode;
236
+ }
237
+ }
238
+ class ThrottlingException extends PcaConnectorScepServiceException {
239
+ name = "ThrottlingException";
240
+ $fault = "client";
241
+ $retryable = {
242
+ throttling: true,
243
+ };
244
+ Message;
245
+ constructor(opts) {
246
+ super({
247
+ name: "ThrottlingException",
248
+ $fault: "client",
249
+ ...opts,
250
+ });
251
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
252
+ this.Message = opts.Message;
253
+ }
254
+ }
255
+ class ValidationException extends PcaConnectorScepServiceException {
256
+ name = "ValidationException";
257
+ $fault = "client";
258
+ Message;
259
+ Reason;
260
+ constructor(opts) {
261
+ super({
262
+ name: "ValidationException",
263
+ $fault: "client",
264
+ ...opts,
265
+ });
266
+ Object.setPrototypeOf(this, ValidationException.prototype);
267
+ this.Message = opts.Message;
268
+ this.Reason = opts.Reason;
269
+ }
270
+ }
271
+
272
+ const _A = "Arn";
273
+ const _AAI = "AzureApplicationId";
274
+ const _ADE = "AccessDeniedException";
275
+ const _Au = "Audience";
276
+ const _BRE = "BadRequestException";
277
+ const _C = "Challenge";
278
+ const _CA = "ConnectorArn";
279
+ const _CAA = "CertificateAuthorityArn";
280
+ const _CAh = "ChallengeArn";
281
+ const _CAr = "CreatedAt";
282
+ const _CC = "CreateChallenge";
283
+ const _CCR = "CreateChallengeRequest";
284
+ const _CCRr = "CreateChallengeResponse";
285
+ const _CCRre = "CreateConnectorRequest";
286
+ const _CCRrea = "CreateConnectorResponse";
287
+ const _CCr = "CreateConnector";
288
+ const _CE = "ConflictException";
289
+ const _CL = "ConnectorList";
290
+ const _CM = "ChallengeMetadata";
291
+ const _CML = "ChallengeMetadataList";
292
+ const _CMS = "ChallengeMetadataSummary";
293
+ const _CS = "ConnectorSummary";
294
+ const _CT = "ClientToken";
295
+ const _Ch = "Challenges";
296
+ const _Co = "Connector";
297
+ const _Con = "Connectors";
298
+ const _D = "Domain";
299
+ const _DC = "DeleteChallenge";
300
+ const _DCR = "DeleteChallengeRequest";
301
+ const _DCRe = "DeleteConnectorRequest";
302
+ const _DCe = "DeleteConnector";
303
+ const _E = "Endpoint";
304
+ const _GC = "GetConnector";
305
+ const _GCM = "GetChallengeMetadata";
306
+ const _GCMR = "GetChallengeMetadataRequest";
307
+ const _GCMRe = "GetChallengeMetadataResponse";
308
+ const _GCP = "GetChallengePassword";
309
+ const _GCPR = "GetChallengePasswordRequest";
310
+ const _GCPRe = "GetChallengePasswordResponse";
311
+ const _GCR = "GetConnectorRequest";
312
+ const _GCRe = "GetConnectorResponse";
313
+ const _I = "Issuer";
314
+ const _IC = "IntuneConfiguration";
315
+ const _ISE = "InternalServerException";
316
+ const _In = "Intune";
317
+ const _LC = "ListConnectors";
318
+ const _LCM = "ListChallengeMetadata";
319
+ const _LCMR = "ListChallengeMetadataRequest";
320
+ const _LCMRi = "ListChallengeMetadataResponse";
321
+ const _LCR = "ListConnectorsRequest";
322
+ const _LCRi = "ListConnectorsResponse";
323
+ const _LTFR = "ListTagsForResource";
324
+ const _LTFRR = "ListTagsForResourceRequest";
325
+ const _LTFRRi = "ListTagsForResourceResponse";
326
+ const _M = "Message";
327
+ const _MDM = "MobileDeviceManagement";
328
+ const _MR = "MaxResults";
329
+ const _NT = "NextToken";
330
+ const _OIC = "OpenIdConfiguration";
331
+ const _P = "Password";
332
+ const _QC = "QuotaCode";
333
+ const _R = "Reason";
334
+ const _RA = "ResourceArn";
335
+ const _RI = "ResourceId";
336
+ const _RNFE = "ResourceNotFoundException";
337
+ const _RT = "ResourceType";
338
+ const _S = "Status";
339
+ const _SC = "ServiceCode";
340
+ const _SQEE = "ServiceQuotaExceededException";
341
+ const _SR = "StatusReason";
342
+ const _SS = "SensitiveString";
343
+ const _Su = "Subject";
344
+ const _T = "Type";
345
+ const _TE = "ThrottlingException";
346
+ const _TK = "TagKeys";
347
+ const _TR = "TagResource";
348
+ const _TRR = "TagResourceRequest";
349
+ const _Ta = "Tags";
350
+ const _UA = "UpdatedAt";
351
+ const _UR = "UntagResource";
352
+ const _URR = "UntagResourceRequest";
353
+ const _VE = "ValidationException";
354
+ const _VEI = "VpcEndpointId";
355
+ const _c = "client";
356
+ const _e = "error";
357
+ const _h = "http";
358
+ const _hE = "httpError";
359
+ const _hQ = "httpQuery";
360
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.pcaconnectorscep";
361
+ const _se = "server";
362
+ const _tK = "tagKeys";
363
+ const n0 = "com.amazonaws.pcaconnectorscep";
364
+ const _s_registry = TypeRegistry.for(_s);
365
+ var PcaConnectorScepServiceException$ = [-3, _s, "PcaConnectorScepServiceException", 0, [], []];
366
+ _s_registry.registerError(PcaConnectorScepServiceException$, PcaConnectorScepServiceException);
367
+ const n0_registry = TypeRegistry.for(n0);
368
+ var AccessDeniedException$ = [-3, n0, _ADE,
369
+ { [_e]: _c, [_hE]: 403 },
370
+ [_M],
371
+ [0], 1
372
+ ];
373
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
374
+ var BadRequestException$ = [-3, n0, _BRE,
375
+ { [_e]: _c, [_hE]: 400 },
376
+ [_M],
377
+ [0], 1
378
+ ];
379
+ n0_registry.registerError(BadRequestException$, BadRequestException);
380
+ var ConflictException$ = [-3, n0, _CE,
381
+ { [_e]: _c, [_hE]: 409 },
382
+ [_M, _RI, _RT],
383
+ [0, 0, 0], 3
384
+ ];
385
+ n0_registry.registerError(ConflictException$, ConflictException);
386
+ var InternalServerException$ = [-3, n0, _ISE,
387
+ { [_e]: _se, [_hE]: 500 },
388
+ [_M],
389
+ [0], 1
390
+ ];
391
+ n0_registry.registerError(InternalServerException$, InternalServerException);
392
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
393
+ { [_e]: _c, [_hE]: 404 },
394
+ [_M, _RI, _RT],
395
+ [0, 0, 0], 3
396
+ ];
397
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
398
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
399
+ { [_e]: _c, [_hE]: 402 },
400
+ [_M, _RT, _SC, _QC],
401
+ [0, 0, 0, 0], 4
402
+ ];
403
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
404
+ var ThrottlingException$ = [-3, n0, _TE,
405
+ { [_e]: _c, [_hE]: 429 },
406
+ [_M],
407
+ [0], 1
408
+ ];
409
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
410
+ var ValidationException$ = [-3, n0, _VE,
411
+ { [_e]: _c, [_hE]: 400 },
412
+ [_M, _R],
413
+ [0, 0], 1
414
+ ];
415
+ n0_registry.registerError(ValidationException$, ValidationException);
416
+ const errorTypeRegistries = [
417
+ _s_registry,
418
+ n0_registry,
419
+ ];
420
+ var SensitiveString = [0, n0, _SS, 8, 0];
421
+ var Challenge$ = [3, n0, _C,
422
+ 0,
423
+ [_A, _CA, _CAr, _UA, _P],
424
+ [0, 0, 4, 4, [() => SensitiveString, 0]]
425
+ ];
426
+ var ChallengeMetadata$ = [3, n0, _CM,
427
+ 0,
428
+ [_A, _CA, _CAr, _UA],
429
+ [0, 0, 4, 4]
430
+ ];
431
+ var ChallengeMetadataSummary$ = [3, n0, _CMS,
432
+ 0,
433
+ [_A, _CA, _CAr, _UA],
434
+ [0, 0, 4, 4]
435
+ ];
436
+ var Connector$ = [3, n0, _Co,
437
+ 0,
438
+ [_A, _CAA, _T, _MDM, _OIC, _S, _SR, _E, _CAr, _UA],
439
+ [0, 0, 0, () => MobileDeviceManagement$, () => OpenIdConfiguration$, 0, 0, 0, 4, 4]
440
+ ];
441
+ var ConnectorSummary$ = [3, n0, _CS,
442
+ 0,
443
+ [_A, _CAA, _T, _MDM, _OIC, _S, _SR, _E, _CAr, _UA],
444
+ [0, 0, 0, () => MobileDeviceManagement$, () => OpenIdConfiguration$, 0, 0, 0, 4, 4]
445
+ ];
446
+ var CreateChallengeRequest$ = [3, n0, _CCR,
447
+ 0,
448
+ [_CA, _CT, _Ta],
449
+ [0, [0, 4], 128 | 0], 1
450
+ ];
451
+ var CreateChallengeResponse$ = [3, n0, _CCRr,
452
+ 0,
453
+ [_C],
454
+ [[() => Challenge$, 0]]
455
+ ];
456
+ var CreateConnectorRequest$ = [3, n0, _CCRre,
457
+ 0,
458
+ [_CAA, _MDM, _VEI, _CT, _Ta],
459
+ [0, () => MobileDeviceManagement$, 0, [0, 4], 128 | 0], 1
460
+ ];
461
+ var CreateConnectorResponse$ = [3, n0, _CCRrea,
462
+ 0,
463
+ [_CA],
464
+ [0]
465
+ ];
466
+ var DeleteChallengeRequest$ = [3, n0, _DCR,
467
+ 0,
468
+ [_CAh],
469
+ [[0, 1]], 1
470
+ ];
471
+ var DeleteConnectorRequest$ = [3, n0, _DCRe,
472
+ 0,
473
+ [_CA],
474
+ [[0, 1]], 1
475
+ ];
476
+ var GetChallengeMetadataRequest$ = [3, n0, _GCMR,
477
+ 0,
478
+ [_CAh],
479
+ [[0, 1]], 1
480
+ ];
481
+ var GetChallengeMetadataResponse$ = [3, n0, _GCMRe,
482
+ 0,
483
+ [_CM],
484
+ [() => ChallengeMetadata$]
485
+ ];
486
+ var GetChallengePasswordRequest$ = [3, n0, _GCPR,
487
+ 0,
488
+ [_CAh],
489
+ [[0, 1]], 1
490
+ ];
491
+ var GetChallengePasswordResponse$ = [3, n0, _GCPRe,
492
+ 0,
493
+ [_P],
494
+ [[() => SensitiveString, 0]]
495
+ ];
496
+ var GetConnectorRequest$ = [3, n0, _GCR,
497
+ 0,
498
+ [_CA],
499
+ [[0, 1]], 1
500
+ ];
501
+ var GetConnectorResponse$ = [3, n0, _GCRe,
502
+ 0,
503
+ [_Co],
504
+ [() => Connector$]
505
+ ];
506
+ var IntuneConfiguration$ = [3, n0, _IC,
507
+ 0,
508
+ [_AAI, _D],
509
+ [0, 0], 2
510
+ ];
511
+ var ListChallengeMetadataRequest$ = [3, n0, _LCMR,
512
+ 0,
513
+ [_CA, _MR, _NT],
514
+ [[0, { [_hQ]: _CA }], [1, { [_hQ]: _MR }], [0, { [_hQ]: _NT }]], 1
515
+ ];
516
+ var ListChallengeMetadataResponse$ = [3, n0, _LCMRi,
517
+ 0,
518
+ [_Ch, _NT],
519
+ [() => ChallengeMetadataList, 0]
520
+ ];
521
+ var ListConnectorsRequest$ = [3, n0, _LCR,
522
+ 0,
523
+ [_MR, _NT],
524
+ [[1, { [_hQ]: _MR }], [0, { [_hQ]: _NT }]]
525
+ ];
526
+ var ListConnectorsResponse$ = [3, n0, _LCRi,
527
+ 0,
528
+ [_Con, _NT],
529
+ [() => ConnectorList, 0]
530
+ ];
531
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
532
+ 0,
533
+ [_RA],
534
+ [[0, 1]], 1
535
+ ];
536
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
537
+ 0,
538
+ [_Ta],
539
+ [128 | 0]
540
+ ];
541
+ var OpenIdConfiguration$ = [3, n0, _OIC,
542
+ 0,
543
+ [_I, _Su, _Au],
544
+ [0, 0, 0]
545
+ ];
546
+ var TagResourceRequest$ = [3, n0, _TRR,
547
+ 0,
548
+ [_RA, _Ta],
549
+ [[0, 1], 128 | 0], 2
550
+ ];
551
+ var UntagResourceRequest$ = [3, n0, _URR,
552
+ 0,
553
+ [_RA, _TK],
554
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
555
+ ];
556
+ var __Unit = "unit";
557
+ var ChallengeMetadataList = [1, n0, _CML,
558
+ 0, () => ChallengeMetadataSummary$
559
+ ];
560
+ var ConnectorList = [1, n0, _CL,
561
+ 0, () => ConnectorSummary$
562
+ ];
563
+ var MobileDeviceManagement$ = [4, n0, _MDM,
564
+ 0,
565
+ [_In],
566
+ [() => IntuneConfiguration$]
567
+ ];
568
+ var CreateChallenge$ = [9, n0, _CC,
569
+ { [_h]: ["POST", "/challenges", 202] }, () => CreateChallengeRequest$, () => CreateChallengeResponse$
570
+ ];
571
+ var CreateConnector$ = [9, n0, _CCr,
572
+ { [_h]: ["POST", "/connectors", 202] }, () => CreateConnectorRequest$, () => CreateConnectorResponse$
573
+ ];
574
+ var DeleteChallenge$ = [9, n0, _DC,
575
+ { [_h]: ["DELETE", "/challenges/{ChallengeArn}", 202] }, () => DeleteChallengeRequest$, () => __Unit
576
+ ];
577
+ var DeleteConnector$ = [9, n0, _DCe,
578
+ { [_h]: ["DELETE", "/connectors/{ConnectorArn}", 202] }, () => DeleteConnectorRequest$, () => __Unit
579
+ ];
580
+ var GetChallengeMetadata$ = [9, n0, _GCM,
581
+ { [_h]: ["GET", "/challengeMetadata/{ChallengeArn}", 200] }, () => GetChallengeMetadataRequest$, () => GetChallengeMetadataResponse$
582
+ ];
583
+ var GetChallengePassword$ = [9, n0, _GCP,
584
+ { [_h]: ["GET", "/challengePasswords/{ChallengeArn}", 200] }, () => GetChallengePasswordRequest$, () => GetChallengePasswordResponse$
585
+ ];
586
+ var GetConnector$ = [9, n0, _GC,
587
+ { [_h]: ["GET", "/connectors/{ConnectorArn}", 200] }, () => GetConnectorRequest$, () => GetConnectorResponse$
588
+ ];
589
+ var ListChallengeMetadata$ = [9, n0, _LCM,
590
+ { [_h]: ["GET", "/challengeMetadata", 200] }, () => ListChallengeMetadataRequest$, () => ListChallengeMetadataResponse$
591
+ ];
592
+ var ListConnectors$ = [9, n0, _LC,
593
+ { [_h]: ["GET", "/connectors", 200] }, () => ListConnectorsRequest$, () => ListConnectorsResponse$
594
+ ];
595
+ var ListTagsForResource$ = [9, n0, _LTFR,
596
+ { [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
597
+ ];
598
+ var TagResource$ = [9, n0, _TR,
599
+ { [_h]: ["POST", "/tags/{ResourceArn}", 204] }, () => TagResourceRequest$, () => __Unit
600
+ ];
601
+ var UntagResource$ = [9, n0, _UR,
602
+ { [_h]: ["DELETE", "/tags/{ResourceArn}", 204] }, () => UntagResourceRequest$, () => __Unit
603
+ ];
604
+
605
+ const getRuntimeConfig$1 = (config) => {
606
+ return {
607
+ apiVersion: "2018-05-10",
608
+ base64Decoder: config?.base64Decoder ?? fromBase64,
609
+ base64Encoder: config?.base64Encoder ?? toBase64,
610
+ disableHostPrefix: config?.disableHostPrefix ?? false,
611
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
612
+ extensions: config?.extensions ?? [],
613
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultPcaConnectorScepHttpAuthSchemeProvider,
614
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
615
+ {
616
+ schemeId: "aws.auth#sigv4",
617
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
618
+ signer: new AwsSdkSigV4Signer(),
619
+ },
620
+ ],
621
+ logger: config?.logger ?? new NoOpLogger(),
622
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
623
+ protocolSettings: config?.protocolSettings ?? {
624
+ defaultNamespace: "com.amazonaws.pcaconnectorscep",
625
+ errorTypeRegistries,
626
+ version: "2018-05-10",
627
+ serviceTarget: "PcaConnectorScep",
628
+ },
629
+ serviceId: config?.serviceId ?? "Pca Connector Scep",
630
+ urlParser: config?.urlParser ?? parseUrl,
631
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
632
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
633
+ };
634
+ };
635
+
636
+ const getRuntimeConfig = (config) => {
637
+ emitWarningIfUnsupportedVersion(process.version);
638
+ const defaultsMode = resolveDefaultsModeConfig(config);
639
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
640
+ const clientSharedValues = getRuntimeConfig$1(config);
641
+ emitWarningIfUnsupportedVersion$1(process.version);
642
+ const loaderConfig = {
643
+ profile: config?.profile,
644
+ logger: clientSharedValues.logger,
645
+ };
646
+ return {
647
+ ...clientSharedValues,
648
+ ...config,
649
+ runtime: "node",
650
+ defaultsMode,
651
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
652
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
653
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
654
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
655
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
656
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
657
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
658
+ retryMode: config?.retryMode ??
659
+ loadConfig({
660
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
661
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
662
+ }, config),
663
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
664
+ streamCollector: config?.streamCollector ?? streamCollector,
665
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
666
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
667
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
668
+ };
669
+ };
670
+
34
671
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
672
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
673
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -309,23 +946,82 @@ const ConnectorType = {
309
946
  INTUNE: "INTUNE",
310
947
  };
311
948
 
949
+ exports.AccessDeniedException = AccessDeniedException;
950
+ exports.AccessDeniedException$ = AccessDeniedException$;
951
+ exports.BadRequestException = BadRequestException;
952
+ exports.BadRequestException$ = BadRequestException$;
953
+ exports.Challenge$ = Challenge$;
954
+ exports.ChallengeMetadata$ = ChallengeMetadata$;
955
+ exports.ChallengeMetadataSummary$ = ChallengeMetadataSummary$;
956
+ exports.ConflictException = ConflictException;
957
+ exports.ConflictException$ = ConflictException$;
958
+ exports.Connector$ = Connector$;
312
959
  exports.ConnectorStatus = ConnectorStatus;
313
960
  exports.ConnectorStatusReason = ConnectorStatusReason;
961
+ exports.ConnectorSummary$ = ConnectorSummary$;
314
962
  exports.ConnectorType = ConnectorType;
963
+ exports.CreateChallenge$ = CreateChallenge$;
315
964
  exports.CreateChallengeCommand = CreateChallengeCommand;
965
+ exports.CreateChallengeRequest$ = CreateChallengeRequest$;
966
+ exports.CreateChallengeResponse$ = CreateChallengeResponse$;
967
+ exports.CreateConnector$ = CreateConnector$;
316
968
  exports.CreateConnectorCommand = CreateConnectorCommand;
969
+ exports.CreateConnectorRequest$ = CreateConnectorRequest$;
970
+ exports.CreateConnectorResponse$ = CreateConnectorResponse$;
971
+ exports.DeleteChallenge$ = DeleteChallenge$;
317
972
  exports.DeleteChallengeCommand = DeleteChallengeCommand;
973
+ exports.DeleteChallengeRequest$ = DeleteChallengeRequest$;
974
+ exports.DeleteConnector$ = DeleteConnector$;
318
975
  exports.DeleteConnectorCommand = DeleteConnectorCommand;
976
+ exports.DeleteConnectorRequest$ = DeleteConnectorRequest$;
977
+ exports.GetChallengeMetadata$ = GetChallengeMetadata$;
319
978
  exports.GetChallengeMetadataCommand = GetChallengeMetadataCommand;
979
+ exports.GetChallengeMetadataRequest$ = GetChallengeMetadataRequest$;
980
+ exports.GetChallengeMetadataResponse$ = GetChallengeMetadataResponse$;
981
+ exports.GetChallengePassword$ = GetChallengePassword$;
320
982
  exports.GetChallengePasswordCommand = GetChallengePasswordCommand;
983
+ exports.GetChallengePasswordRequest$ = GetChallengePasswordRequest$;
984
+ exports.GetChallengePasswordResponse$ = GetChallengePasswordResponse$;
985
+ exports.GetConnector$ = GetConnector$;
321
986
  exports.GetConnectorCommand = GetConnectorCommand;
987
+ exports.GetConnectorRequest$ = GetConnectorRequest$;
988
+ exports.GetConnectorResponse$ = GetConnectorResponse$;
989
+ exports.InternalServerException = InternalServerException;
990
+ exports.InternalServerException$ = InternalServerException$;
991
+ exports.IntuneConfiguration$ = IntuneConfiguration$;
992
+ exports.ListChallengeMetadata$ = ListChallengeMetadata$;
322
993
  exports.ListChallengeMetadataCommand = ListChallengeMetadataCommand;
994
+ exports.ListChallengeMetadataRequest$ = ListChallengeMetadataRequest$;
995
+ exports.ListChallengeMetadataResponse$ = ListChallengeMetadataResponse$;
996
+ exports.ListConnectors$ = ListConnectors$;
323
997
  exports.ListConnectorsCommand = ListConnectorsCommand;
998
+ exports.ListConnectorsRequest$ = ListConnectorsRequest$;
999
+ exports.ListConnectorsResponse$ = ListConnectorsResponse$;
1000
+ exports.ListTagsForResource$ = ListTagsForResource$;
324
1001
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1002
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1003
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1004
+ exports.MobileDeviceManagement$ = MobileDeviceManagement$;
1005
+ exports.OpenIdConfiguration$ = OpenIdConfiguration$;
325
1006
  exports.PcaConnectorScep = PcaConnectorScep;
326
1007
  exports.PcaConnectorScepClient = PcaConnectorScepClient;
1008
+ exports.PcaConnectorScepServiceException = PcaConnectorScepServiceException;
1009
+ exports.PcaConnectorScepServiceException$ = PcaConnectorScepServiceException$;
1010
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1011
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1012
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1013
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
1014
+ exports.TagResource$ = TagResource$;
327
1015
  exports.TagResourceCommand = TagResourceCommand;
1016
+ exports.TagResourceRequest$ = TagResourceRequest$;
1017
+ exports.ThrottlingException = ThrottlingException;
1018
+ exports.ThrottlingException$ = ThrottlingException$;
1019
+ exports.UntagResource$ = UntagResource$;
328
1020
  exports.UntagResourceCommand = UntagResourceCommand;
1021
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1022
+ exports.ValidationException = ValidationException;
1023
+ exports.ValidationException$ = ValidationException$;
329
1024
  exports.ValidationExceptionReason = ValidationExceptionReason;
1025
+ exports.errorTypeRegistries = errorTypeRegistries;
330
1026
  exports.paginateListChallengeMetadata = paginateListChallengeMetadata;
331
1027
  exports.paginateListConnectors = paginateListConnectors;