@aws-sdk/client-acm-pca 3.1075.0 → 3.1077.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,58 @@
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, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, 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, defaultACMPCAHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateCertificateAuthorityAuditReport$, CreateCertificateAuthority$, CreatePermission$, DeleteCertificateAuthority$, DeletePermission$, DeletePolicy$, DescribeCertificateAuthorityAuditReport$, DescribeCertificateAuthority$, GetCertificateAuthorityCertificate$, GetCertificateAuthorityCsr$, GetCertificate$, GetPolicy$, ImportCertificateAuthorityCertificate$, IssueCertificate$, ListCertificateAuthorities$, ListPermissions$, ListTags$, PutPolicy$, RestoreCertificateAuthority$, RevokeCertificate$, TagCertificateAuthority$, UntagCertificateAuthority$, UpdateCertificateAuthority$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { ACMPCAServiceException } = require("./models/ACMPCAServiceException");
18
- exports.ACMPCAServiceException = ACMPCAServiceException;
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, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultACMPCAHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "acm-pca",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultACMPCAHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,1113 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
86
+ ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
87
+ ],
88
+ results: [
89
+ [a],
90
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
91
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
92
+ [g, i],
93
+ ["https://acm-pca-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
94
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
95
+ ["https://acm-pca.{Region}.amazonaws.com", i],
96
+ ["https://acm-pca-fips.{Region}.{PartitionResult#dnsSuffix}", i],
97
+ [a, "FIPS is enabled but this partition does not support FIPS"],
98
+ ["https://acm-pca.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
99
+ [a, "DualStack is enabled but this partition does not support DualStack"],
100
+ ["https://acm-pca.{Region}.{PartitionResult#dnsSuffix}", i],
101
+ [a, "Invalid Configuration: Missing Region"]
102
+ ]
103
+ };
104
+ const root = 2;
105
+ const r = 100_000_000;
106
+ const nodes = new Int32Array([
107
+ -1, 1, -1,
108
+ 0, 13, 3,
109
+ 1, 4, r + 12,
110
+ 2, 5, r + 12,
111
+ 3, 8, 6,
112
+ 4, 7, r + 11,
113
+ 5, r + 9, r + 10,
114
+ 4, 11, 9,
115
+ 6, 10, r + 8,
116
+ 7, r + 6, r + 7,
117
+ 5, 12, r + 5,
118
+ 6, r + 4, r + 5,
119
+ 3, r + 1, 14,
120
+ 4, r + 2, r + 3,
121
+ ]);
122
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
123
+
124
+ const cache = new EndpointCache({
125
+ size: 50,
126
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
127
+ });
128
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
129
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
130
+ endpointParams: endpointParams,
131
+ logger: context.logger,
132
+ }));
133
+ };
134
+ customEndpointFunctions.aws = awsEndpointFunctions;
135
+
136
+ class ACMPCAServiceException extends ServiceException {
137
+ constructor(options) {
138
+ super(options);
139
+ Object.setPrototypeOf(this, ACMPCAServiceException.prototype);
140
+ }
141
+ }
142
+
143
+ class InvalidArgsException extends ACMPCAServiceException {
144
+ name = "InvalidArgsException";
145
+ $fault = "client";
146
+ constructor(opts) {
147
+ super({
148
+ name: "InvalidArgsException",
149
+ $fault: "client",
150
+ ...opts,
151
+ });
152
+ Object.setPrototypeOf(this, InvalidArgsException.prototype);
153
+ }
154
+ }
155
+ class InvalidPolicyException extends ACMPCAServiceException {
156
+ name = "InvalidPolicyException";
157
+ $fault = "client";
158
+ constructor(opts) {
159
+ super({
160
+ name: "InvalidPolicyException",
161
+ $fault: "client",
162
+ ...opts,
163
+ });
164
+ Object.setPrototypeOf(this, InvalidPolicyException.prototype);
165
+ }
166
+ }
167
+ class InvalidTagException extends ACMPCAServiceException {
168
+ name = "InvalidTagException";
169
+ $fault = "client";
170
+ constructor(opts) {
171
+ super({
172
+ name: "InvalidTagException",
173
+ $fault: "client",
174
+ ...opts,
175
+ });
176
+ Object.setPrototypeOf(this, InvalidTagException.prototype);
177
+ }
178
+ }
179
+ class LimitExceededException extends ACMPCAServiceException {
180
+ name = "LimitExceededException";
181
+ $fault = "client";
182
+ constructor(opts) {
183
+ super({
184
+ name: "LimitExceededException",
185
+ $fault: "client",
186
+ ...opts,
187
+ });
188
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
189
+ }
190
+ }
191
+ class InvalidArnException extends ACMPCAServiceException {
192
+ name = "InvalidArnException";
193
+ $fault = "client";
194
+ constructor(opts) {
195
+ super({
196
+ name: "InvalidArnException",
197
+ $fault: "client",
198
+ ...opts,
199
+ });
200
+ Object.setPrototypeOf(this, InvalidArnException.prototype);
201
+ }
202
+ }
203
+ class InvalidStateException extends ACMPCAServiceException {
204
+ name = "InvalidStateException";
205
+ $fault = "client";
206
+ constructor(opts) {
207
+ super({
208
+ name: "InvalidStateException",
209
+ $fault: "client",
210
+ ...opts,
211
+ });
212
+ Object.setPrototypeOf(this, InvalidStateException.prototype);
213
+ }
214
+ }
215
+ class RequestFailedException extends ACMPCAServiceException {
216
+ name = "RequestFailedException";
217
+ $fault = "client";
218
+ constructor(opts) {
219
+ super({
220
+ name: "RequestFailedException",
221
+ $fault: "client",
222
+ ...opts,
223
+ });
224
+ Object.setPrototypeOf(this, RequestFailedException.prototype);
225
+ }
226
+ }
227
+ class RequestInProgressException extends ACMPCAServiceException {
228
+ name = "RequestInProgressException";
229
+ $fault = "client";
230
+ constructor(opts) {
231
+ super({
232
+ name: "RequestInProgressException",
233
+ $fault: "client",
234
+ ...opts,
235
+ });
236
+ Object.setPrototypeOf(this, RequestInProgressException.prototype);
237
+ }
238
+ }
239
+ class ResourceNotFoundException extends ACMPCAServiceException {
240
+ name = "ResourceNotFoundException";
241
+ $fault = "client";
242
+ constructor(opts) {
243
+ super({
244
+ name: "ResourceNotFoundException",
245
+ $fault: "client",
246
+ ...opts,
247
+ });
248
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
249
+ }
250
+ }
251
+ class PermissionAlreadyExistsException extends ACMPCAServiceException {
252
+ name = "PermissionAlreadyExistsException";
253
+ $fault = "client";
254
+ constructor(opts) {
255
+ super({
256
+ name: "PermissionAlreadyExistsException",
257
+ $fault: "client",
258
+ ...opts,
259
+ });
260
+ Object.setPrototypeOf(this, PermissionAlreadyExistsException.prototype);
261
+ }
262
+ }
263
+ class ConcurrentModificationException extends ACMPCAServiceException {
264
+ name = "ConcurrentModificationException";
265
+ $fault = "client";
266
+ constructor(opts) {
267
+ super({
268
+ name: "ConcurrentModificationException",
269
+ $fault: "client",
270
+ ...opts,
271
+ });
272
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
273
+ }
274
+ }
275
+ class LockoutPreventedException extends ACMPCAServiceException {
276
+ name = "LockoutPreventedException";
277
+ $fault = "client";
278
+ constructor(opts) {
279
+ super({
280
+ name: "LockoutPreventedException",
281
+ $fault: "client",
282
+ ...opts,
283
+ });
284
+ Object.setPrototypeOf(this, LockoutPreventedException.prototype);
285
+ }
286
+ }
287
+ class CertificateMismatchException extends ACMPCAServiceException {
288
+ name = "CertificateMismatchException";
289
+ $fault = "client";
290
+ constructor(opts) {
291
+ super({
292
+ name: "CertificateMismatchException",
293
+ $fault: "client",
294
+ ...opts,
295
+ });
296
+ Object.setPrototypeOf(this, CertificateMismatchException.prototype);
297
+ }
298
+ }
299
+ class InvalidRequestException extends ACMPCAServiceException {
300
+ name = "InvalidRequestException";
301
+ $fault = "client";
302
+ constructor(opts) {
303
+ super({
304
+ name: "InvalidRequestException",
305
+ $fault: "client",
306
+ ...opts,
307
+ });
308
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
309
+ }
310
+ }
311
+ class MalformedCertificateException extends ACMPCAServiceException {
312
+ name = "MalformedCertificateException";
313
+ $fault = "client";
314
+ constructor(opts) {
315
+ super({
316
+ name: "MalformedCertificateException",
317
+ $fault: "client",
318
+ ...opts,
319
+ });
320
+ Object.setPrototypeOf(this, MalformedCertificateException.prototype);
321
+ }
322
+ }
323
+ class MalformedCSRException extends ACMPCAServiceException {
324
+ name = "MalformedCSRException";
325
+ $fault = "client";
326
+ constructor(opts) {
327
+ super({
328
+ name: "MalformedCSRException",
329
+ $fault: "client",
330
+ ...opts,
331
+ });
332
+ Object.setPrototypeOf(this, MalformedCSRException.prototype);
333
+ }
334
+ }
335
+ class InvalidNextTokenException extends ACMPCAServiceException {
336
+ name = "InvalidNextTokenException";
337
+ $fault = "client";
338
+ constructor(opts) {
339
+ super({
340
+ name: "InvalidNextTokenException",
341
+ $fault: "client",
342
+ ...opts,
343
+ });
344
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
345
+ }
346
+ }
347
+ class RequestAlreadyProcessedException extends ACMPCAServiceException {
348
+ name = "RequestAlreadyProcessedException";
349
+ $fault = "client";
350
+ constructor(opts) {
351
+ super({
352
+ name: "RequestAlreadyProcessedException",
353
+ $fault: "client",
354
+ ...opts,
355
+ });
356
+ Object.setPrototypeOf(this, RequestAlreadyProcessedException.prototype);
357
+ }
358
+ }
359
+ class TooManyTagsException extends ACMPCAServiceException {
360
+ name = "TooManyTagsException";
361
+ $fault = "client";
362
+ constructor(opts) {
363
+ super({
364
+ name: "TooManyTagsException",
365
+ $fault: "client",
366
+ ...opts,
367
+ });
368
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
369
+ }
370
+ }
371
+
372
+ const _A = "Arn";
373
+ const _AD = "AccessDescription";
374
+ const _ADL = "AccessDescriptionList";
375
+ const _AL = "AccessLocation";
376
+ const _AM = "AccessMethod";
377
+ const _AMT = "AccessMethodType";
378
+ const _AP = "ApiPassthrough";
379
+ const _ARI = "AuditReportId";
380
+ const _ARRF = "AuditReportResponseFormat";
381
+ const _ARS = "AuditReportStatus";
382
+ const _ASNS = "ASN1Subject";
383
+ const _Ac = "Actions";
384
+ const _C = "Country";
385
+ const _CA = "CustomAttributes";
386
+ const _CAA = "CertificateAuthorityArn";
387
+ const _CAC = "CertificateAuthorityConfiguration";
388
+ const _CAL = "CustomAttributeList";
389
+ const _CAT = "CertificateAuthorityType";
390
+ const _CAe = "CertificateAuthority";
391
+ const _CAer = "CertificateArn";
392
+ const _CAert = "CertificateAuthorities";
393
+ const _CAr = "CreatedAt";
394
+ const _CAu = "CustomAttribute";
395
+ const _CC = "CrlConfiguration";
396
+ const _CCA = "CreateCertificateAuthority";
397
+ const _CCAAR = "CreateCertificateAuthorityAuditReport";
398
+ const _CCAARR = "CreateCertificateAuthorityAuditReportRequest";
399
+ const _CCAARRr = "CreateCertificateAuthorityAuditReportResponse";
400
+ const _CCAR = "CreateCertificateAuthorityRequest";
401
+ const _CCARr = "CreateCertificateAuthorityResponse";
402
+ const _CCe = "CertificateChain";
403
+ const _CCu = "CustomCname";
404
+ const _CDPEC = "CrlDistributionPointExtensionConfiguration";
405
+ const _CE = "CsrExtensions";
406
+ const _CEL = "CustomExtensionList";
407
+ const _CEu = "CustomExtension";
408
+ const _CEus = "CustomExtensions";
409
+ const _CME = "CertificateMismatchException";
410
+ const _CMEo = "ConcurrentModificationException";
411
+ const _CN = "CommonName";
412
+ const _COI = "CustomObjectIdentifier";
413
+ const _CP = "CustomPath";
414
+ const _CPI = "CertPolicyId";
415
+ const _CPL = "CertificatePolicyList";
416
+ const _CPR = "CreatePermissionRequest";
417
+ const _CPe = "CertificatePolicies";
418
+ const _CPr = "CreatePermission";
419
+ const _CRLS = "CRLSign";
420
+ const _CS = "CertificateSerial";
421
+ const _CT = "CrlType";
422
+ const _CU = "CpsUri";
423
+ const _Ce = "Certificate";
424
+ const _Cr = "Critical";
425
+ const _Cs = "Csr";
426
+ const _DCA = "DeleteCertificateAuthority";
427
+ const _DCAAR = "DescribeCertificateAuthorityAuditReport";
428
+ const _DCAARR = "DescribeCertificateAuthorityAuditReportRequest";
429
+ const _DCAARRe = "DescribeCertificateAuthorityAuditReportResponse";
430
+ const _DCAR = "DeleteCertificateAuthorityRequest";
431
+ const _DCARe = "DescribeCertificateAuthorityRequest";
432
+ const _DCARes = "DescribeCertificateAuthorityResponse";
433
+ const _DCAe = "DescribeCertificateAuthority";
434
+ const _DE = "DataEncipherment";
435
+ const _DN = "DnsName";
436
+ const _DNQ = "DistinguishedNameQualifier";
437
+ const _DNi = "DirectoryName";
438
+ const _DO = "DecipherOnly";
439
+ const _DP = "DeletePermission";
440
+ const _DPR = "DeletePermissionRequest";
441
+ const _DPRe = "DeletePolicyRequest";
442
+ const _DPe = "DeletePolicy";
443
+ const _DS = "DigitalSignature";
444
+ const _E = "Extensions";
445
+ const _EID = "ExpirationInDays";
446
+ const _EKU = "ExtendedKeyUsage";
447
+ const _EKUL = "ExtendedKeyUsageList";
448
+ const _EKUOI = "ExtendedKeyUsageObjectIdentifier";
449
+ const _EKUT = "ExtendedKeyUsageType";
450
+ const _EO = "EncipherOnly";
451
+ const _EPN = "EdiPartyName";
452
+ const _En = "Enabled";
453
+ const _FR = "FailureReason";
454
+ const _GC = "GetCertificate";
455
+ const _GCAC = "GetCertificateAuthorityCertificate";
456
+ const _GCACR = "GetCertificateAuthorityCertificateRequest";
457
+ const _GCACRe = "GetCertificateAuthorityCertificateResponse";
458
+ const _GCACRet = "GetCertificateAuthorityCsrRequest";
459
+ const _GCACRete = "GetCertificateAuthorityCsrResponse";
460
+ const _GCACe = "GetCertificateAuthorityCsr";
461
+ const _GCR = "GetCertificateRequest";
462
+ const _GCRe = "GetCertificateResponse";
463
+ const _GN = "GivenName";
464
+ const _GNL = "GeneralNameList";
465
+ const _GNe = "GeneralName";
466
+ const _GP = "GetPolicy";
467
+ const _GPR = "GetPolicyRequest";
468
+ const _GPRe = "GetPolicyResponse";
469
+ const _GQ = "GenerationQualifier";
470
+ const _I = "Initials";
471
+ const _IA = "IpAddress";
472
+ const _IAE = "InvalidArgsException";
473
+ const _IAEn = "InvalidArnException";
474
+ const _IC = "IssueCertificate";
475
+ const _ICAC = "ImportCertificateAuthorityCertificate";
476
+ const _ICACR = "ImportCertificateAuthorityCertificateRequest";
477
+ const _ICR = "IssueCertificateRequest";
478
+ const _ICRs = "IssueCertificateResponse";
479
+ const _INTE = "InvalidNextTokenException";
480
+ const _IPE = "InvalidPolicyException";
481
+ const _IRE = "InvalidRequestException";
482
+ const _ISE = "InvalidStateException";
483
+ const _IT = "IdempotencyToken";
484
+ const _ITE = "InvalidTagException";
485
+ const _K = "Key";
486
+ const _KA = "KeyAlgorithm";
487
+ const _KAe = "KeyAgreement";
488
+ const _KCS = "KeyCertSign";
489
+ const _KE = "KeyEncipherment";
490
+ const _KSSS = "KeyStorageSecurityStandard";
491
+ const _KU = "KeyUsage";
492
+ const _L = "Locality";
493
+ const _LCA = "ListCertificateAuthorities";
494
+ const _LCAR = "ListCertificateAuthoritiesRequest";
495
+ const _LCARi = "ListCertificateAuthoritiesResponse";
496
+ const _LEE = "LimitExceededException";
497
+ const _LP = "ListPermissions";
498
+ const _LPE = "LockoutPreventedException";
499
+ const _LPR = "ListPermissionsRequest";
500
+ const _LPRi = "ListPermissionsResponse";
501
+ const _LSCA = "LastStateChangeAt";
502
+ const _LT = "ListTags";
503
+ const _LTR = "ListTagsRequest";
504
+ const _LTRi = "ListTagsResponse";
505
+ const _MCE = "MalformedCertificateException";
506
+ const _MCSRE = "MalformedCSRException";
507
+ const _MR = "MaxResults";
508
+ const _NA = "NotAfter";
509
+ const _NAa = "NameAssigner";
510
+ const _NB = "NotBefore";
511
+ const _NR = "NonRepudiation";
512
+ const _NT = "NextToken";
513
+ const _O = "Organization";
514
+ const _OA = "OwnerAccount";
515
+ const _OC = "OcspConfiguration";
516
+ const _OCC = "OcspCustomCname";
517
+ const _OE = "OmitExtension";
518
+ const _OI = "ObjectIdentifier";
519
+ const _ON = "OtherName";
520
+ const _OU = "OrganizationalUnit";
521
+ const _P = "Pseudonym";
522
+ const _PAEE = "PermissionAlreadyExistsException";
523
+ const _PDTID = "PermanentDeletionTimeInDays";
524
+ const _PI = "PolicyInformation";
525
+ const _PL = "PermissionList";
526
+ const _PN = "PartyName";
527
+ const _PP = "PutPolicy";
528
+ const _PPR = "PutPolicyRequest";
529
+ const _PQ = "PolicyQualifiers";
530
+ const _PQI = "PolicyQualifierInfo";
531
+ const _PQIL = "PolicyQualifierInfoList";
532
+ const _PQIo = "PolicyQualifierId";
533
+ const _Pe = "Permissions";
534
+ const _Per = "Permission";
535
+ const _Po = "Policy";
536
+ const _Pr = "Principal";
537
+ const _Q = "Qualifier";
538
+ const _RA = "ResourceArn";
539
+ const _RAPE = "RequestAlreadyProcessedException";
540
+ const _RC = "RevocationConfiguration";
541
+ const _RCA = "RestoreCertificateAuthority";
542
+ const _RCAR = "RestoreCertificateAuthorityRequest";
543
+ const _RCR = "RevokeCertificateRequest";
544
+ const _RCe = "RevokeCertificate";
545
+ const _RFE = "RequestFailedException";
546
+ const _RI = "RegisteredId";
547
+ const _RIPE = "RequestInProgressException";
548
+ const _RN = "Rfc822Name";
549
+ const _RNFE = "ResourceNotFoundException";
550
+ const _RO = "ResourceOwner";
551
+ const _RR = "RevocationReason";
552
+ const _RU = "RestorableUntil";
553
+ const _S = "Subject";
554
+ const _SA = "SigningAlgorithm";
555
+ const _SAN = "SubjectAlternativeNames";
556
+ const _SAo = "SourceAccount";
557
+ const _SBN = "S3BucketName";
558
+ const _SIA = "SubjectInformationAccess";
559
+ const _SK = "S3Key";
560
+ const _SN = "SerialNumber";
561
+ const _SOA = "S3ObjectAcl";
562
+ const _Se = "Serial";
563
+ const _St = "State";
564
+ const _Sta = "Status";
565
+ const _Su = "Surname";
566
+ const _T = "Title";
567
+ const _TA = "TemplateArn";
568
+ const _TCA = "TagCertificateAuthority";
569
+ const _TCAR = "TagCertificateAuthorityRequest";
570
+ const _TI = "TypeId";
571
+ const _TL = "TagList";
572
+ const _TMTE = "TooManyTagsException";
573
+ const _Ta = "Tags";
574
+ const _Tag = "Tag";
575
+ const _Ty = "Type";
576
+ const _UCA = "UntagCertificateAuthority";
577
+ const _UCAR = "UntagCertificateAuthorityRequest";
578
+ const _UCARp = "UpdateCertificateAuthorityRequest";
579
+ const _UCAp = "UpdateCertificateAuthority";
580
+ const _UM = "UsageMode";
581
+ const _URI = "UniformResourceIdentifier";
582
+ const _V = "Value";
583
+ const _VNB = "ValidityNotBefore";
584
+ const _Va = "Validity";
585
+ const _c = "client";
586
+ const _e = "error";
587
+ const _m = "message";
588
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.acmpca";
589
+ const n0 = "com.amazonaws.acmpca";
590
+ const _s_registry = TypeRegistry.for(_s);
591
+ var ACMPCAServiceException$ = [-3, _s, "ACMPCAServiceException", 0, [], []];
592
+ _s_registry.registerError(ACMPCAServiceException$, ACMPCAServiceException);
593
+ const n0_registry = TypeRegistry.for(n0);
594
+ var CertificateMismatchException$ = [-3, n0, _CME,
595
+ { [_e]: _c },
596
+ [_m],
597
+ [0]
598
+ ];
599
+ n0_registry.registerError(CertificateMismatchException$, CertificateMismatchException);
600
+ var ConcurrentModificationException$ = [-3, n0, _CMEo,
601
+ { [_e]: _c },
602
+ [_m],
603
+ [0]
604
+ ];
605
+ n0_registry.registerError(ConcurrentModificationException$, ConcurrentModificationException);
606
+ var InvalidArgsException$ = [-3, n0, _IAE,
607
+ { [_e]: _c },
608
+ [_m],
609
+ [0]
610
+ ];
611
+ n0_registry.registerError(InvalidArgsException$, InvalidArgsException);
612
+ var InvalidArnException$ = [-3, n0, _IAEn,
613
+ { [_e]: _c },
614
+ [_m],
615
+ [0]
616
+ ];
617
+ n0_registry.registerError(InvalidArnException$, InvalidArnException);
618
+ var InvalidNextTokenException$ = [-3, n0, _INTE,
619
+ { [_e]: _c },
620
+ [_m],
621
+ [0]
622
+ ];
623
+ n0_registry.registerError(InvalidNextTokenException$, InvalidNextTokenException);
624
+ var InvalidPolicyException$ = [-3, n0, _IPE,
625
+ { [_e]: _c },
626
+ [_m],
627
+ [0]
628
+ ];
629
+ n0_registry.registerError(InvalidPolicyException$, InvalidPolicyException);
630
+ var InvalidRequestException$ = [-3, n0, _IRE,
631
+ { [_e]: _c },
632
+ [_m],
633
+ [0]
634
+ ];
635
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
636
+ var InvalidStateException$ = [-3, n0, _ISE,
637
+ { [_e]: _c },
638
+ [_m],
639
+ [0]
640
+ ];
641
+ n0_registry.registerError(InvalidStateException$, InvalidStateException);
642
+ var InvalidTagException$ = [-3, n0, _ITE,
643
+ { [_e]: _c },
644
+ [_m],
645
+ [0]
646
+ ];
647
+ n0_registry.registerError(InvalidTagException$, InvalidTagException);
648
+ var LimitExceededException$ = [-3, n0, _LEE,
649
+ { [_e]: _c },
650
+ [_m],
651
+ [0]
652
+ ];
653
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
654
+ var LockoutPreventedException$ = [-3, n0, _LPE,
655
+ { [_e]: _c },
656
+ [_m],
657
+ [0]
658
+ ];
659
+ n0_registry.registerError(LockoutPreventedException$, LockoutPreventedException);
660
+ var MalformedCertificateException$ = [-3, n0, _MCE,
661
+ { [_e]: _c },
662
+ [_m],
663
+ [0]
664
+ ];
665
+ n0_registry.registerError(MalformedCertificateException$, MalformedCertificateException);
666
+ var MalformedCSRException$ = [-3, n0, _MCSRE,
667
+ { [_e]: _c },
668
+ [_m],
669
+ [0]
670
+ ];
671
+ n0_registry.registerError(MalformedCSRException$, MalformedCSRException);
672
+ var PermissionAlreadyExistsException$ = [-3, n0, _PAEE,
673
+ { [_e]: _c },
674
+ [_m],
675
+ [0]
676
+ ];
677
+ n0_registry.registerError(PermissionAlreadyExistsException$, PermissionAlreadyExistsException);
678
+ var RequestAlreadyProcessedException$ = [-3, n0, _RAPE,
679
+ { [_e]: _c },
680
+ [_m],
681
+ [0]
682
+ ];
683
+ n0_registry.registerError(RequestAlreadyProcessedException$, RequestAlreadyProcessedException);
684
+ var RequestFailedException$ = [-3, n0, _RFE,
685
+ { [_e]: _c },
686
+ [_m],
687
+ [0]
688
+ ];
689
+ n0_registry.registerError(RequestFailedException$, RequestFailedException);
690
+ var RequestInProgressException$ = [-3, n0, _RIPE,
691
+ { [_e]: _c },
692
+ [_m],
693
+ [0]
694
+ ];
695
+ n0_registry.registerError(RequestInProgressException$, RequestInProgressException);
696
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
697
+ { [_e]: _c },
698
+ [_m],
699
+ [0]
700
+ ];
701
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
702
+ var TooManyTagsException$ = [-3, n0, _TMTE,
703
+ { [_e]: _c },
704
+ [_m],
705
+ [0]
706
+ ];
707
+ n0_registry.registerError(TooManyTagsException$, TooManyTagsException);
708
+ const errorTypeRegistries = [
709
+ _s_registry,
710
+ n0_registry,
711
+ ];
712
+ var AccessDescription$ = [3, n0, _AD,
713
+ 0,
714
+ [_AM, _AL],
715
+ [() => AccessMethod$, () => GeneralName$], 2
716
+ ];
717
+ var AccessMethod$ = [3, n0, _AM,
718
+ 0,
719
+ [_COI, _AMT],
720
+ [0, 0]
721
+ ];
722
+ var ApiPassthrough$ = [3, n0, _AP,
723
+ 0,
724
+ [_E, _S],
725
+ [() => Extensions$, () => ASN1Subject$]
726
+ ];
727
+ var ASN1Subject$ = [3, n0, _ASNS,
728
+ 0,
729
+ [_C, _O, _OU, _DNQ, _St, _CN, _SN, _L, _T, _Su, _GN, _I, _P, _GQ, _CA],
730
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => CustomAttributeList]
731
+ ];
732
+ var CertificateAuthority$ = [3, n0, _CAe,
733
+ 0,
734
+ [_A, _OA, _CAr, _LSCA, _Ty, _Se, _Sta, _NB, _NA, _FR, _CAC, _RC, _RU, _KSSS, _UM],
735
+ [0, 0, 4, 4, 0, 0, 0, 4, 4, 0, () => CertificateAuthorityConfiguration$, () => RevocationConfiguration$, 4, 0, 0]
736
+ ];
737
+ var CertificateAuthorityConfiguration$ = [3, n0, _CAC,
738
+ 0,
739
+ [_KA, _SA, _S, _CE],
740
+ [0, 0, () => ASN1Subject$, () => CsrExtensions$], 3
741
+ ];
742
+ var CreateCertificateAuthorityAuditReportRequest$ = [3, n0, _CCAARR,
743
+ 0,
744
+ [_CAA, _SBN, _ARRF],
745
+ [0, 0, 0], 3
746
+ ];
747
+ var CreateCertificateAuthorityAuditReportResponse$ = [3, n0, _CCAARRr,
748
+ 0,
749
+ [_ARI, _SK],
750
+ [0, 0]
751
+ ];
752
+ var CreateCertificateAuthorityRequest$ = [3, n0, _CCAR,
753
+ 0,
754
+ [_CAC, _CAT, _RC, _IT, _KSSS, _Ta, _UM],
755
+ [() => CertificateAuthorityConfiguration$, 0, () => RevocationConfiguration$, 0, 0, () => TagList, 0], 2
756
+ ];
757
+ var CreateCertificateAuthorityResponse$ = [3, n0, _CCARr,
758
+ 0,
759
+ [_CAA],
760
+ [0]
761
+ ];
762
+ var CreatePermissionRequest$ = [3, n0, _CPR,
763
+ 0,
764
+ [_CAA, _Pr, _Ac, _SAo],
765
+ [0, 0, 64 | 0, 0], 3
766
+ ];
767
+ var CrlConfiguration$ = [3, n0, _CC,
768
+ 0,
769
+ [_En, _EID, _CCu, _SBN, _SOA, _CDPEC, _CT, _CP],
770
+ [2, 1, 0, 0, 0, () => CrlDistributionPointExtensionConfiguration$, 0, 0], 1
771
+ ];
772
+ var CrlDistributionPointExtensionConfiguration$ = [3, n0, _CDPEC,
773
+ 0,
774
+ [_OE],
775
+ [2], 1
776
+ ];
777
+ var CsrExtensions$ = [3, n0, _CE,
778
+ 0,
779
+ [_KU, _SIA],
780
+ [() => KeyUsage$, () => AccessDescriptionList]
781
+ ];
782
+ var CustomAttribute$ = [3, n0, _CAu,
783
+ 0,
784
+ [_OI, _V],
785
+ [0, 0], 2
786
+ ];
787
+ var CustomExtension$ = [3, n0, _CEu,
788
+ 0,
789
+ [_OI, _V, _Cr],
790
+ [0, 0, 2], 2
791
+ ];
792
+ var DeleteCertificateAuthorityRequest$ = [3, n0, _DCAR,
793
+ 0,
794
+ [_CAA, _PDTID],
795
+ [0, 1], 1
796
+ ];
797
+ var DeletePermissionRequest$ = [3, n0, _DPR,
798
+ 0,
799
+ [_CAA, _Pr, _SAo],
800
+ [0, 0, 0], 2
801
+ ];
802
+ var DeletePolicyRequest$ = [3, n0, _DPRe,
803
+ 0,
804
+ [_RA],
805
+ [0], 1
806
+ ];
807
+ var DescribeCertificateAuthorityAuditReportRequest$ = [3, n0, _DCAARR,
808
+ 0,
809
+ [_CAA, _ARI],
810
+ [0, 0], 2
811
+ ];
812
+ var DescribeCertificateAuthorityAuditReportResponse$ = [3, n0, _DCAARRe,
813
+ 0,
814
+ [_ARS, _SBN, _SK, _CAr],
815
+ [0, 0, 0, 4]
816
+ ];
817
+ var DescribeCertificateAuthorityRequest$ = [3, n0, _DCARe,
818
+ 0,
819
+ [_CAA],
820
+ [0], 1
821
+ ];
822
+ var DescribeCertificateAuthorityResponse$ = [3, n0, _DCARes,
823
+ 0,
824
+ [_CAe],
825
+ [() => CertificateAuthority$]
826
+ ];
827
+ var EdiPartyName$ = [3, n0, _EPN,
828
+ 0,
829
+ [_PN, _NAa],
830
+ [0, 0], 1
831
+ ];
832
+ var ExtendedKeyUsage$ = [3, n0, _EKU,
833
+ 0,
834
+ [_EKUT, _EKUOI],
835
+ [0, 0]
836
+ ];
837
+ var Extensions$ = [3, n0, _E,
838
+ 0,
839
+ [_CPe, _EKU, _KU, _SAN, _CEus],
840
+ [() => CertificatePolicyList, () => ExtendedKeyUsageList, () => KeyUsage$, () => GeneralNameList, () => CustomExtensionList]
841
+ ];
842
+ var GeneralName$ = [3, n0, _GNe,
843
+ 0,
844
+ [_ON, _RN, _DN, _DNi, _EPN, _URI, _IA, _RI],
845
+ [() => OtherName$, 0, 0, () => ASN1Subject$, () => EdiPartyName$, 0, 0, 0]
846
+ ];
847
+ var GetCertificateAuthorityCertificateRequest$ = [3, n0, _GCACR,
848
+ 0,
849
+ [_CAA],
850
+ [0], 1
851
+ ];
852
+ var GetCertificateAuthorityCertificateResponse$ = [3, n0, _GCACRe,
853
+ 0,
854
+ [_Ce, _CCe],
855
+ [0, 0]
856
+ ];
857
+ var GetCertificateAuthorityCsrRequest$ = [3, n0, _GCACRet,
858
+ 0,
859
+ [_CAA],
860
+ [0], 1
861
+ ];
862
+ var GetCertificateAuthorityCsrResponse$ = [3, n0, _GCACRete,
863
+ 0,
864
+ [_Cs],
865
+ [0]
866
+ ];
867
+ var GetCertificateRequest$ = [3, n0, _GCR,
868
+ 0,
869
+ [_CAA, _CAer],
870
+ [0, 0], 2
871
+ ];
872
+ var GetCertificateResponse$ = [3, n0, _GCRe,
873
+ 0,
874
+ [_Ce, _CCe],
875
+ [0, 0]
876
+ ];
877
+ var GetPolicyRequest$ = [3, n0, _GPR,
878
+ 0,
879
+ [_RA],
880
+ [0], 1
881
+ ];
882
+ var GetPolicyResponse$ = [3, n0, _GPRe,
883
+ 0,
884
+ [_Po],
885
+ [0]
886
+ ];
887
+ var ImportCertificateAuthorityCertificateRequest$ = [3, n0, _ICACR,
888
+ 0,
889
+ [_CAA, _Ce, _CCe],
890
+ [0, 21, 21], 2
891
+ ];
892
+ var IssueCertificateRequest$ = [3, n0, _ICR,
893
+ 0,
894
+ [_CAA, _Cs, _SA, _Va, _AP, _TA, _VNB, _IT],
895
+ [0, 21, 0, () => Validity$, () => ApiPassthrough$, 0, () => Validity$, 0], 4
896
+ ];
897
+ var IssueCertificateResponse$ = [3, n0, _ICRs,
898
+ 0,
899
+ [_CAer],
900
+ [0]
901
+ ];
902
+ var KeyUsage$ = [3, n0, _KU,
903
+ 0,
904
+ [_DS, _NR, _KE, _DE, _KAe, _KCS, _CRLS, _EO, _DO],
905
+ [2, 2, 2, 2, 2, 2, 2, 2, 2]
906
+ ];
907
+ var ListCertificateAuthoritiesRequest$ = [3, n0, _LCAR,
908
+ 0,
909
+ [_MR, _NT, _RO],
910
+ [1, 0, 0]
911
+ ];
912
+ var ListCertificateAuthoritiesResponse$ = [3, n0, _LCARi,
913
+ 0,
914
+ [_NT, _CAert],
915
+ [0, () => CertificateAuthorities]
916
+ ];
917
+ var ListPermissionsRequest$ = [3, n0, _LPR,
918
+ 0,
919
+ [_CAA, _MR, _NT],
920
+ [0, 1, 0], 1
921
+ ];
922
+ var ListPermissionsResponse$ = [3, n0, _LPRi,
923
+ 0,
924
+ [_NT, _Pe],
925
+ [0, () => PermissionList]
926
+ ];
927
+ var ListTagsRequest$ = [3, n0, _LTR,
928
+ 0,
929
+ [_CAA, _MR, _NT],
930
+ [0, 1, 0], 1
931
+ ];
932
+ var ListTagsResponse$ = [3, n0, _LTRi,
933
+ 0,
934
+ [_NT, _Ta],
935
+ [0, () => TagList]
936
+ ];
937
+ var OcspConfiguration$ = [3, n0, _OC,
938
+ 0,
939
+ [_En, _OCC],
940
+ [2, 0], 1
941
+ ];
942
+ var OtherName$ = [3, n0, _ON,
943
+ 0,
944
+ [_TI, _V],
945
+ [0, 0], 2
946
+ ];
947
+ var Permission$ = [3, n0, _Per,
948
+ 0,
949
+ [_CAA, _CAr, _Pr, _SAo, _Ac, _Po],
950
+ [0, 4, 0, 0, 64 | 0, 0]
951
+ ];
952
+ var PolicyInformation$ = [3, n0, _PI,
953
+ 0,
954
+ [_CPI, _PQ],
955
+ [0, () => PolicyQualifierInfoList], 1
956
+ ];
957
+ var PolicyQualifierInfo$ = [3, n0, _PQI,
958
+ 0,
959
+ [_PQIo, _Q],
960
+ [0, () => Qualifier$], 2
961
+ ];
962
+ var PutPolicyRequest$ = [3, n0, _PPR,
963
+ 0,
964
+ [_RA, _Po],
965
+ [0, 0], 2
966
+ ];
967
+ var Qualifier$ = [3, n0, _Q,
968
+ 0,
969
+ [_CU],
970
+ [0], 1
971
+ ];
972
+ var RestoreCertificateAuthorityRequest$ = [3, n0, _RCAR,
973
+ 0,
974
+ [_CAA],
975
+ [0], 1
976
+ ];
977
+ var RevocationConfiguration$ = [3, n0, _RC,
978
+ 0,
979
+ [_CC, _OC],
980
+ [() => CrlConfiguration$, () => OcspConfiguration$]
981
+ ];
982
+ var RevokeCertificateRequest$ = [3, n0, _RCR,
983
+ 0,
984
+ [_CAA, _CS, _RR],
985
+ [0, 0, 0], 3
986
+ ];
987
+ var Tag$ = [3, n0, _Tag,
988
+ 0,
989
+ [_K, _V],
990
+ [0, 0], 1
991
+ ];
992
+ var TagCertificateAuthorityRequest$ = [3, n0, _TCAR,
993
+ 0,
994
+ [_CAA, _Ta],
995
+ [0, () => TagList], 2
996
+ ];
997
+ var UntagCertificateAuthorityRequest$ = [3, n0, _UCAR,
998
+ 0,
999
+ [_CAA, _Ta],
1000
+ [0, () => TagList], 2
1001
+ ];
1002
+ var UpdateCertificateAuthorityRequest$ = [3, n0, _UCARp,
1003
+ 0,
1004
+ [_CAA, _RC, _Sta],
1005
+ [0, () => RevocationConfiguration$, 0], 1
1006
+ ];
1007
+ var Validity$ = [3, n0, _Va,
1008
+ 0,
1009
+ [_V, _Ty],
1010
+ [1, 0], 2
1011
+ ];
1012
+ var __Unit = "unit";
1013
+ var AccessDescriptionList = [1, n0, _ADL,
1014
+ 0, () => AccessDescription$
1015
+ ];
1016
+ var CertificateAuthorities = [1, n0, _CAert,
1017
+ 0, () => CertificateAuthority$
1018
+ ];
1019
+ var CertificatePolicyList = [1, n0, _CPL,
1020
+ 0, () => PolicyInformation$
1021
+ ];
1022
+ var CustomAttributeList = [1, n0, _CAL,
1023
+ 0, () => CustomAttribute$
1024
+ ];
1025
+ var CustomExtensionList = [1, n0, _CEL,
1026
+ 0, () => CustomExtension$
1027
+ ];
1028
+ var ExtendedKeyUsageList = [1, n0, _EKUL,
1029
+ 0, () => ExtendedKeyUsage$
1030
+ ];
1031
+ var GeneralNameList = [1, n0, _GNL,
1032
+ 0, () => GeneralName$
1033
+ ];
1034
+ var PermissionList = [1, n0, _PL,
1035
+ 0, () => Permission$
1036
+ ];
1037
+ var PolicyQualifierInfoList = [1, n0, _PQIL,
1038
+ 0, () => PolicyQualifierInfo$
1039
+ ];
1040
+ var TagList = [1, n0, _TL,
1041
+ 0, () => Tag$
1042
+ ];
1043
+ var CreateCertificateAuthority$ = [9, n0, _CCA,
1044
+ 2, () => CreateCertificateAuthorityRequest$, () => CreateCertificateAuthorityResponse$
1045
+ ];
1046
+ var CreateCertificateAuthorityAuditReport$ = [9, n0, _CCAAR,
1047
+ 2, () => CreateCertificateAuthorityAuditReportRequest$, () => CreateCertificateAuthorityAuditReportResponse$
1048
+ ];
1049
+ var CreatePermission$ = [9, n0, _CPr,
1050
+ 0, () => CreatePermissionRequest$, () => __Unit
1051
+ ];
1052
+ var DeleteCertificateAuthority$ = [9, n0, _DCA,
1053
+ 0, () => DeleteCertificateAuthorityRequest$, () => __Unit
1054
+ ];
1055
+ var DeletePermission$ = [9, n0, _DP,
1056
+ 0, () => DeletePermissionRequest$, () => __Unit
1057
+ ];
1058
+ var DeletePolicy$ = [9, n0, _DPe,
1059
+ 0, () => DeletePolicyRequest$, () => __Unit
1060
+ ];
1061
+ var DescribeCertificateAuthority$ = [9, n0, _DCAe,
1062
+ 0, () => DescribeCertificateAuthorityRequest$, () => DescribeCertificateAuthorityResponse$
1063
+ ];
1064
+ var DescribeCertificateAuthorityAuditReport$ = [9, n0, _DCAAR,
1065
+ 0, () => DescribeCertificateAuthorityAuditReportRequest$, () => DescribeCertificateAuthorityAuditReportResponse$
1066
+ ];
1067
+ var GetCertificate$ = [9, n0, _GC,
1068
+ 0, () => GetCertificateRequest$, () => GetCertificateResponse$
1069
+ ];
1070
+ var GetCertificateAuthorityCertificate$ = [9, n0, _GCAC,
1071
+ 0, () => GetCertificateAuthorityCertificateRequest$, () => GetCertificateAuthorityCertificateResponse$
1072
+ ];
1073
+ var GetCertificateAuthorityCsr$ = [9, n0, _GCACe,
1074
+ 0, () => GetCertificateAuthorityCsrRequest$, () => GetCertificateAuthorityCsrResponse$
1075
+ ];
1076
+ var GetPolicy$ = [9, n0, _GP,
1077
+ 0, () => GetPolicyRequest$, () => GetPolicyResponse$
1078
+ ];
1079
+ var ImportCertificateAuthorityCertificate$ = [9, n0, _ICAC,
1080
+ 0, () => ImportCertificateAuthorityCertificateRequest$, () => __Unit
1081
+ ];
1082
+ var IssueCertificate$ = [9, n0, _IC,
1083
+ 2, () => IssueCertificateRequest$, () => IssueCertificateResponse$
1084
+ ];
1085
+ var ListCertificateAuthorities$ = [9, n0, _LCA,
1086
+ 0, () => ListCertificateAuthoritiesRequest$, () => ListCertificateAuthoritiesResponse$
1087
+ ];
1088
+ var ListPermissions$ = [9, n0, _LP,
1089
+ 0, () => ListPermissionsRequest$, () => ListPermissionsResponse$
1090
+ ];
1091
+ var ListTags$ = [9, n0, _LT,
1092
+ 0, () => ListTagsRequest$, () => ListTagsResponse$
1093
+ ];
1094
+ var PutPolicy$ = [9, n0, _PP,
1095
+ 0, () => PutPolicyRequest$, () => __Unit
1096
+ ];
1097
+ var RestoreCertificateAuthority$ = [9, n0, _RCA,
1098
+ 0, () => RestoreCertificateAuthorityRequest$, () => __Unit
1099
+ ];
1100
+ var RevokeCertificate$ = [9, n0, _RCe,
1101
+ 0, () => RevokeCertificateRequest$, () => __Unit
1102
+ ];
1103
+ var TagCertificateAuthority$ = [9, n0, _TCA,
1104
+ 0, () => TagCertificateAuthorityRequest$, () => __Unit
1105
+ ];
1106
+ var UntagCertificateAuthority$ = [9, n0, _UCA,
1107
+ 0, () => UntagCertificateAuthorityRequest$, () => __Unit
1108
+ ];
1109
+ var UpdateCertificateAuthority$ = [9, n0, _UCAp,
1110
+ 0, () => UpdateCertificateAuthorityRequest$, () => __Unit
1111
+ ];
1112
+
1113
+ const getRuntimeConfig$1 = (config) => {
1114
+ return {
1115
+ apiVersion: "",
1116
+ base64Decoder: config?.base64Decoder ?? fromBase64,
1117
+ base64Encoder: config?.base64Encoder ?? toBase64,
1118
+ disableHostPrefix: config?.disableHostPrefix ?? false,
1119
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
1120
+ extensions: config?.extensions ?? [],
1121
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultACMPCAHttpAuthSchemeProvider,
1122
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
1123
+ {
1124
+ schemeId: "aws.auth#sigv4",
1125
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
1126
+ signer: new AwsSdkSigV4Signer(),
1127
+ },
1128
+ ],
1129
+ logger: config?.logger ?? new NoOpLogger(),
1130
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
1131
+ protocolSettings: config?.protocolSettings ?? {
1132
+ defaultNamespace: "com.amazonaws.acmpca",
1133
+ errorTypeRegistries,
1134
+ serviceTarget: "ACMPrivateCA",
1135
+ },
1136
+ serviceId: config?.serviceId ?? "ACM PCA",
1137
+ sha256: config?.sha256 ?? Sha256,
1138
+ urlParser: config?.urlParser ?? parseUrl,
1139
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1140
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
1141
+ };
1142
+ };
1143
+
1144
+ const getRuntimeConfig = (config) => {
1145
+ emitWarningIfUnsupportedVersion(process.version);
1146
+ const defaultsMode = resolveDefaultsModeConfig(config);
1147
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
1148
+ const clientSharedValues = getRuntimeConfig$1(config);
1149
+ emitWarningIfUnsupportedVersion$1(process.version);
1150
+ const loaderConfig = {
1151
+ profile: config?.profile,
1152
+ logger: clientSharedValues.logger,
1153
+ };
1154
+ return {
1155
+ ...clientSharedValues,
1156
+ ...config,
1157
+ runtime: "node",
1158
+ defaultsMode,
1159
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
1160
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
1161
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
1162
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
1163
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1164
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
1165
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
1166
+ retryMode: config?.retryMode ??
1167
+ loadConfig({
1168
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1169
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1170
+ }, config),
1171
+ streamCollector: config?.streamCollector ?? streamCollector,
1172
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1173
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1174
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
1175
+ };
1176
+ };
1177
+
34
1178
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
1179
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
1180
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -646,47 +1790,171 @@ const RevocationReason = {
646
1790
 
647
1791
  exports.ACMPCA = ACMPCA;
648
1792
  exports.ACMPCAClient = ACMPCAClient;
1793
+ exports.ACMPCAServiceException = ACMPCAServiceException;
1794
+ exports.ACMPCAServiceException$ = ACMPCAServiceException$;
1795
+ exports.ASN1Subject$ = ASN1Subject$;
1796
+ exports.AccessDescription$ = AccessDescription$;
1797
+ exports.AccessMethod$ = AccessMethod$;
649
1798
  exports.AccessMethodType = AccessMethodType;
650
1799
  exports.ActionType = ActionType;
1800
+ exports.ApiPassthrough$ = ApiPassthrough$;
651
1801
  exports.AuditReportResponseFormat = AuditReportResponseFormat;
652
1802
  exports.AuditReportStatus = AuditReportStatus;
1803
+ exports.CertificateAuthority$ = CertificateAuthority$;
1804
+ exports.CertificateAuthorityConfiguration$ = CertificateAuthorityConfiguration$;
653
1805
  exports.CertificateAuthorityStatus = CertificateAuthorityStatus;
654
1806
  exports.CertificateAuthorityType = CertificateAuthorityType;
655
1807
  exports.CertificateAuthorityUsageMode = CertificateAuthorityUsageMode;
1808
+ exports.CertificateMismatchException = CertificateMismatchException;
1809
+ exports.CertificateMismatchException$ = CertificateMismatchException$;
1810
+ exports.ConcurrentModificationException = ConcurrentModificationException;
1811
+ exports.ConcurrentModificationException$ = ConcurrentModificationException$;
1812
+ exports.CreateCertificateAuthority$ = CreateCertificateAuthority$;
1813
+ exports.CreateCertificateAuthorityAuditReport$ = CreateCertificateAuthorityAuditReport$;
656
1814
  exports.CreateCertificateAuthorityAuditReportCommand = CreateCertificateAuthorityAuditReportCommand;
1815
+ exports.CreateCertificateAuthorityAuditReportRequest$ = CreateCertificateAuthorityAuditReportRequest$;
1816
+ exports.CreateCertificateAuthorityAuditReportResponse$ = CreateCertificateAuthorityAuditReportResponse$;
657
1817
  exports.CreateCertificateAuthorityCommand = CreateCertificateAuthorityCommand;
1818
+ exports.CreateCertificateAuthorityRequest$ = CreateCertificateAuthorityRequest$;
1819
+ exports.CreateCertificateAuthorityResponse$ = CreateCertificateAuthorityResponse$;
1820
+ exports.CreatePermission$ = CreatePermission$;
658
1821
  exports.CreatePermissionCommand = CreatePermissionCommand;
1822
+ exports.CreatePermissionRequest$ = CreatePermissionRequest$;
1823
+ exports.CrlConfiguration$ = CrlConfiguration$;
1824
+ exports.CrlDistributionPointExtensionConfiguration$ = CrlDistributionPointExtensionConfiguration$;
659
1825
  exports.CrlType = CrlType;
1826
+ exports.CsrExtensions$ = CsrExtensions$;
1827
+ exports.CustomAttribute$ = CustomAttribute$;
1828
+ exports.CustomExtension$ = CustomExtension$;
1829
+ exports.DeleteCertificateAuthority$ = DeleteCertificateAuthority$;
660
1830
  exports.DeleteCertificateAuthorityCommand = DeleteCertificateAuthorityCommand;
1831
+ exports.DeleteCertificateAuthorityRequest$ = DeleteCertificateAuthorityRequest$;
1832
+ exports.DeletePermission$ = DeletePermission$;
661
1833
  exports.DeletePermissionCommand = DeletePermissionCommand;
1834
+ exports.DeletePermissionRequest$ = DeletePermissionRequest$;
1835
+ exports.DeletePolicy$ = DeletePolicy$;
662
1836
  exports.DeletePolicyCommand = DeletePolicyCommand;
1837
+ exports.DeletePolicyRequest$ = DeletePolicyRequest$;
1838
+ exports.DescribeCertificateAuthority$ = DescribeCertificateAuthority$;
1839
+ exports.DescribeCertificateAuthorityAuditReport$ = DescribeCertificateAuthorityAuditReport$;
663
1840
  exports.DescribeCertificateAuthorityAuditReportCommand = DescribeCertificateAuthorityAuditReportCommand;
1841
+ exports.DescribeCertificateAuthorityAuditReportRequest$ = DescribeCertificateAuthorityAuditReportRequest$;
1842
+ exports.DescribeCertificateAuthorityAuditReportResponse$ = DescribeCertificateAuthorityAuditReportResponse$;
664
1843
  exports.DescribeCertificateAuthorityCommand = DescribeCertificateAuthorityCommand;
1844
+ exports.DescribeCertificateAuthorityRequest$ = DescribeCertificateAuthorityRequest$;
1845
+ exports.DescribeCertificateAuthorityResponse$ = DescribeCertificateAuthorityResponse$;
1846
+ exports.EdiPartyName$ = EdiPartyName$;
1847
+ exports.ExtendedKeyUsage$ = ExtendedKeyUsage$;
665
1848
  exports.ExtendedKeyUsageType = ExtendedKeyUsageType;
1849
+ exports.Extensions$ = Extensions$;
666
1850
  exports.FailureReason = FailureReason;
1851
+ exports.GeneralName$ = GeneralName$;
1852
+ exports.GetCertificate$ = GetCertificate$;
1853
+ exports.GetCertificateAuthorityCertificate$ = GetCertificateAuthorityCertificate$;
667
1854
  exports.GetCertificateAuthorityCertificateCommand = GetCertificateAuthorityCertificateCommand;
1855
+ exports.GetCertificateAuthorityCertificateRequest$ = GetCertificateAuthorityCertificateRequest$;
1856
+ exports.GetCertificateAuthorityCertificateResponse$ = GetCertificateAuthorityCertificateResponse$;
1857
+ exports.GetCertificateAuthorityCsr$ = GetCertificateAuthorityCsr$;
668
1858
  exports.GetCertificateAuthorityCsrCommand = GetCertificateAuthorityCsrCommand;
1859
+ exports.GetCertificateAuthorityCsrRequest$ = GetCertificateAuthorityCsrRequest$;
1860
+ exports.GetCertificateAuthorityCsrResponse$ = GetCertificateAuthorityCsrResponse$;
669
1861
  exports.GetCertificateCommand = GetCertificateCommand;
1862
+ exports.GetCertificateRequest$ = GetCertificateRequest$;
1863
+ exports.GetCertificateResponse$ = GetCertificateResponse$;
1864
+ exports.GetPolicy$ = GetPolicy$;
670
1865
  exports.GetPolicyCommand = GetPolicyCommand;
1866
+ exports.GetPolicyRequest$ = GetPolicyRequest$;
1867
+ exports.GetPolicyResponse$ = GetPolicyResponse$;
1868
+ exports.ImportCertificateAuthorityCertificate$ = ImportCertificateAuthorityCertificate$;
671
1869
  exports.ImportCertificateAuthorityCertificateCommand = ImportCertificateAuthorityCertificateCommand;
1870
+ exports.ImportCertificateAuthorityCertificateRequest$ = ImportCertificateAuthorityCertificateRequest$;
1871
+ exports.InvalidArgsException = InvalidArgsException;
1872
+ exports.InvalidArgsException$ = InvalidArgsException$;
1873
+ exports.InvalidArnException = InvalidArnException;
1874
+ exports.InvalidArnException$ = InvalidArnException$;
1875
+ exports.InvalidNextTokenException = InvalidNextTokenException;
1876
+ exports.InvalidNextTokenException$ = InvalidNextTokenException$;
1877
+ exports.InvalidPolicyException = InvalidPolicyException;
1878
+ exports.InvalidPolicyException$ = InvalidPolicyException$;
1879
+ exports.InvalidRequestException = InvalidRequestException;
1880
+ exports.InvalidRequestException$ = InvalidRequestException$;
1881
+ exports.InvalidStateException = InvalidStateException;
1882
+ exports.InvalidStateException$ = InvalidStateException$;
1883
+ exports.InvalidTagException = InvalidTagException;
1884
+ exports.InvalidTagException$ = InvalidTagException$;
1885
+ exports.IssueCertificate$ = IssueCertificate$;
672
1886
  exports.IssueCertificateCommand = IssueCertificateCommand;
1887
+ exports.IssueCertificateRequest$ = IssueCertificateRequest$;
1888
+ exports.IssueCertificateResponse$ = IssueCertificateResponse$;
673
1889
  exports.KeyAlgorithm = KeyAlgorithm;
674
1890
  exports.KeyStorageSecurityStandard = KeyStorageSecurityStandard;
1891
+ exports.KeyUsage$ = KeyUsage$;
1892
+ exports.LimitExceededException = LimitExceededException;
1893
+ exports.LimitExceededException$ = LimitExceededException$;
1894
+ exports.ListCertificateAuthorities$ = ListCertificateAuthorities$;
675
1895
  exports.ListCertificateAuthoritiesCommand = ListCertificateAuthoritiesCommand;
1896
+ exports.ListCertificateAuthoritiesRequest$ = ListCertificateAuthoritiesRequest$;
1897
+ exports.ListCertificateAuthoritiesResponse$ = ListCertificateAuthoritiesResponse$;
1898
+ exports.ListPermissions$ = ListPermissions$;
676
1899
  exports.ListPermissionsCommand = ListPermissionsCommand;
1900
+ exports.ListPermissionsRequest$ = ListPermissionsRequest$;
1901
+ exports.ListPermissionsResponse$ = ListPermissionsResponse$;
1902
+ exports.ListTags$ = ListTags$;
677
1903
  exports.ListTagsCommand = ListTagsCommand;
1904
+ exports.ListTagsRequest$ = ListTagsRequest$;
1905
+ exports.ListTagsResponse$ = ListTagsResponse$;
1906
+ exports.LockoutPreventedException = LockoutPreventedException;
1907
+ exports.LockoutPreventedException$ = LockoutPreventedException$;
1908
+ exports.MalformedCSRException = MalformedCSRException;
1909
+ exports.MalformedCSRException$ = MalformedCSRException$;
1910
+ exports.MalformedCertificateException = MalformedCertificateException;
1911
+ exports.MalformedCertificateException$ = MalformedCertificateException$;
1912
+ exports.OcspConfiguration$ = OcspConfiguration$;
1913
+ exports.OtherName$ = OtherName$;
1914
+ exports.Permission$ = Permission$;
1915
+ exports.PermissionAlreadyExistsException = PermissionAlreadyExistsException;
1916
+ exports.PermissionAlreadyExistsException$ = PermissionAlreadyExistsException$;
1917
+ exports.PolicyInformation$ = PolicyInformation$;
678
1918
  exports.PolicyQualifierId = PolicyQualifierId;
1919
+ exports.PolicyQualifierInfo$ = PolicyQualifierInfo$;
1920
+ exports.PutPolicy$ = PutPolicy$;
679
1921
  exports.PutPolicyCommand = PutPolicyCommand;
1922
+ exports.PutPolicyRequest$ = PutPolicyRequest$;
1923
+ exports.Qualifier$ = Qualifier$;
1924
+ exports.RequestAlreadyProcessedException = RequestAlreadyProcessedException;
1925
+ exports.RequestAlreadyProcessedException$ = RequestAlreadyProcessedException$;
1926
+ exports.RequestFailedException = RequestFailedException;
1927
+ exports.RequestFailedException$ = RequestFailedException$;
1928
+ exports.RequestInProgressException = RequestInProgressException;
1929
+ exports.RequestInProgressException$ = RequestInProgressException$;
1930
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1931
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
680
1932
  exports.ResourceOwner = ResourceOwner;
1933
+ exports.RestoreCertificateAuthority$ = RestoreCertificateAuthority$;
681
1934
  exports.RestoreCertificateAuthorityCommand = RestoreCertificateAuthorityCommand;
1935
+ exports.RestoreCertificateAuthorityRequest$ = RestoreCertificateAuthorityRequest$;
1936
+ exports.RevocationConfiguration$ = RevocationConfiguration$;
682
1937
  exports.RevocationReason = RevocationReason;
1938
+ exports.RevokeCertificate$ = RevokeCertificate$;
683
1939
  exports.RevokeCertificateCommand = RevokeCertificateCommand;
1940
+ exports.RevokeCertificateRequest$ = RevokeCertificateRequest$;
684
1941
  exports.S3ObjectAcl = S3ObjectAcl;
685
1942
  exports.SigningAlgorithm = SigningAlgorithm;
1943
+ exports.Tag$ = Tag$;
1944
+ exports.TagCertificateAuthority$ = TagCertificateAuthority$;
686
1945
  exports.TagCertificateAuthorityCommand = TagCertificateAuthorityCommand;
1946
+ exports.TagCertificateAuthorityRequest$ = TagCertificateAuthorityRequest$;
1947
+ exports.TooManyTagsException = TooManyTagsException;
1948
+ exports.TooManyTagsException$ = TooManyTagsException$;
1949
+ exports.UntagCertificateAuthority$ = UntagCertificateAuthority$;
687
1950
  exports.UntagCertificateAuthorityCommand = UntagCertificateAuthorityCommand;
1951
+ exports.UntagCertificateAuthorityRequest$ = UntagCertificateAuthorityRequest$;
1952
+ exports.UpdateCertificateAuthority$ = UpdateCertificateAuthority$;
688
1953
  exports.UpdateCertificateAuthorityCommand = UpdateCertificateAuthorityCommand;
1954
+ exports.UpdateCertificateAuthorityRequest$ = UpdateCertificateAuthorityRequest$;
1955
+ exports.Validity$ = Validity$;
689
1956
  exports.ValidityPeriodType = ValidityPeriodType;
1957
+ exports.errorTypeRegistries = errorTypeRegistries;
690
1958
  exports.paginateListCertificateAuthorities = paginateListCertificateAuthorities;
691
1959
  exports.paginateListPermissions = paginateListPermissions;
692
1960
  exports.paginateListTags = paginateListTags;