@aws-sdk/client-acm 3.489.0 → 3.495.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 (32) hide show
  1. package/dist-cjs/ACM.js +1 -41
  2. package/dist-cjs/ACMClient.js +1 -43
  3. package/dist-cjs/commands/AddTagsToCertificateCommand.js +1 -28
  4. package/dist-cjs/commands/DeleteCertificateCommand.js +1 -28
  5. package/dist-cjs/commands/DescribeCertificateCommand.js +1 -28
  6. package/dist-cjs/commands/ExportCertificateCommand.js +1 -29
  7. package/dist-cjs/commands/GetAccountConfigurationCommand.js +1 -28
  8. package/dist-cjs/commands/GetCertificateCommand.js +1 -28
  9. package/dist-cjs/commands/ImportCertificateCommand.js +1 -29
  10. package/dist-cjs/commands/ListCertificatesCommand.js +1 -28
  11. package/dist-cjs/commands/ListTagsForCertificateCommand.js +1 -28
  12. package/dist-cjs/commands/PutAccountConfigurationCommand.js +1 -28
  13. package/dist-cjs/commands/RemoveTagsFromCertificateCommand.js +1 -28
  14. package/dist-cjs/commands/RenewCertificateCommand.js +1 -28
  15. package/dist-cjs/commands/RequestCertificateCommand.js +1 -28
  16. package/dist-cjs/commands/ResendValidationEmailCommand.js +1 -28
  17. package/dist-cjs/commands/UpdateCertificateOptionsCommand.js +1 -28
  18. package/dist-cjs/commands/index.js +1 -18
  19. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  20. package/dist-cjs/extensionConfiguration.js +1 -2
  21. package/dist-cjs/index.js +1998 -12
  22. package/dist-cjs/models/ACMServiceException.js +1 -12
  23. package/dist-cjs/models/index.js +1 -4
  24. package/dist-cjs/models/models_0.js +1 -343
  25. package/dist-cjs/pagination/Interfaces.js +1 -2
  26. package/dist-cjs/pagination/ListCertificatesPaginator.js +1 -7
  27. package/dist-cjs/pagination/index.js +1 -5
  28. package/dist-cjs/protocols/Aws_json1_1.js +1 -1033
  29. package/dist-cjs/runtimeExtensions.js +1 -22
  30. package/dist-cjs/waiters/index.js +1 -4
  31. package/dist-cjs/waiters/waitForCertificateValidated.js +1 -71
  32. package/package.json +41 -41
package/dist-cjs/index.js CHANGED
@@ -1,13 +1,1999 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ACMServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./ACMClient"), exports);
6
- tslib_1.__exportStar(require("./ACM"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./waiters"), exports);
10
- tslib_1.__exportStar(require("./models"), exports);
11
- require("@aws-sdk/util-endpoints");
12
- var ACMServiceException_1 = require("./models/ACMServiceException");
13
- Object.defineProperty(exports, "ACMServiceException", { enumerable: true, get: function () { return ACMServiceException_1.ACMServiceException; } });
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 src_exports = {};
23
+ __export(src_exports, {
24
+ ACM: () => ACM,
25
+ ACMClient: () => ACMClient,
26
+ ACMServiceException: () => ACMServiceException,
27
+ AccessDeniedException: () => AccessDeniedException,
28
+ AddTagsToCertificateCommand: () => AddTagsToCertificateCommand,
29
+ CertificateStatus: () => CertificateStatus,
30
+ CertificateTransparencyLoggingPreference: () => CertificateTransparencyLoggingPreference,
31
+ CertificateType: () => CertificateType,
32
+ ConflictException: () => ConflictException,
33
+ DeleteCertificateCommand: () => DeleteCertificateCommand,
34
+ DescribeCertificateCommand: () => DescribeCertificateCommand,
35
+ DomainStatus: () => DomainStatus,
36
+ ExportCertificateCommand: () => ExportCertificateCommand,
37
+ ExportCertificateRequestFilterSensitiveLog: () => ExportCertificateRequestFilterSensitiveLog,
38
+ ExportCertificateResponseFilterSensitiveLog: () => ExportCertificateResponseFilterSensitiveLog,
39
+ ExtendedKeyUsageName: () => ExtendedKeyUsageName,
40
+ FailureReason: () => FailureReason,
41
+ GetAccountConfigurationCommand: () => GetAccountConfigurationCommand,
42
+ GetCertificateCommand: () => GetCertificateCommand,
43
+ ImportCertificateCommand: () => ImportCertificateCommand,
44
+ ImportCertificateRequestFilterSensitiveLog: () => ImportCertificateRequestFilterSensitiveLog,
45
+ InvalidArgsException: () => InvalidArgsException,
46
+ InvalidArnException: () => InvalidArnException,
47
+ InvalidDomainValidationOptionsException: () => InvalidDomainValidationOptionsException,
48
+ InvalidParameterException: () => InvalidParameterException,
49
+ InvalidStateException: () => InvalidStateException,
50
+ InvalidTagException: () => InvalidTagException,
51
+ KeyAlgorithm: () => KeyAlgorithm,
52
+ KeyUsageName: () => KeyUsageName,
53
+ LimitExceededException: () => LimitExceededException,
54
+ ListCertificatesCommand: () => ListCertificatesCommand,
55
+ ListTagsForCertificateCommand: () => ListTagsForCertificateCommand,
56
+ PutAccountConfigurationCommand: () => PutAccountConfigurationCommand,
57
+ RecordType: () => RecordType,
58
+ RemoveTagsFromCertificateCommand: () => RemoveTagsFromCertificateCommand,
59
+ RenewCertificateCommand: () => RenewCertificateCommand,
60
+ RenewalEligibility: () => RenewalEligibility,
61
+ RenewalStatus: () => RenewalStatus,
62
+ RequestCertificateCommand: () => RequestCertificateCommand,
63
+ RequestInProgressException: () => RequestInProgressException,
64
+ ResendValidationEmailCommand: () => ResendValidationEmailCommand,
65
+ ResourceInUseException: () => ResourceInUseException,
66
+ ResourceNotFoundException: () => ResourceNotFoundException,
67
+ RevocationReason: () => RevocationReason,
68
+ SortBy: () => SortBy,
69
+ SortOrder: () => SortOrder,
70
+ TagPolicyException: () => TagPolicyException,
71
+ ThrottlingException: () => ThrottlingException,
72
+ TooManyTagsException: () => TooManyTagsException,
73
+ UpdateCertificateOptionsCommand: () => UpdateCertificateOptionsCommand,
74
+ ValidationException: () => ValidationException,
75
+ ValidationMethod: () => ValidationMethod,
76
+ __Client: () => import_smithy_client.Client,
77
+ paginateListCertificates: () => paginateListCertificates,
78
+ waitForCertificateValidated: () => waitForCertificateValidated,
79
+ waitUntilCertificateValidated: () => waitUntilCertificateValidated
80
+ });
81
+ module.exports = __toCommonJS(src_exports);
82
+
83
+ // src/ACMClient.ts
84
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
85
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
86
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
87
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
88
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
89
+ var import_config_resolver = require("@smithy/config-resolver");
90
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
91
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
92
+ var import_middleware_retry = require("@smithy/middleware-retry");
93
+
94
+
95
+ // src/endpoint/EndpointParameters.ts
96
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
97
+ return {
98
+ ...options,
99
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
100
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
101
+ defaultSigningName: "acm"
102
+ };
103
+ }, "resolveClientEndpointParameters");
104
+ var commonParams = {
105
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
106
+ Endpoint: { type: "builtInParams", name: "endpoint" },
107
+ Region: { type: "builtInParams", name: "region" },
108
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
109
+ };
110
+
111
+ // src/ACMClient.ts
112
+ var import_runtimeConfig = require("././runtimeConfig");
113
+
114
+ // src/runtimeExtensions.ts
115
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
116
+ var import_protocol_http = require("@smithy/protocol-http");
117
+ var import_smithy_client = require("@smithy/smithy-client");
118
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
119
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
120
+ const extensionConfiguration = {
121
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
122
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
123
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
124
+ };
125
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
126
+ return {
127
+ ...runtimeConfig,
128
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
129
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
130
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
131
+ };
132
+ }, "resolveRuntimeExtensions");
133
+
134
+ // src/ACMClient.ts
135
+ var _ACMClient = class _ACMClient extends import_smithy_client.Client {
136
+ constructor(...[configuration]) {
137
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
138
+ const _config_1 = resolveClientEndpointParameters(_config_0);
139
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
140
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
141
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
142
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
143
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
144
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
145
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
146
+ super(_config_8);
147
+ this.config = _config_8;
148
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
149
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
150
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
151
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
152
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
153
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
154
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
155
+ }
156
+ /**
157
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
158
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
159
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
160
+ */
161
+ destroy() {
162
+ super.destroy();
163
+ }
164
+ };
165
+ __name(_ACMClient, "ACMClient");
166
+ var ACMClient = _ACMClient;
167
+
168
+ // src/ACM.ts
169
+
170
+
171
+ // src/commands/AddTagsToCertificateCommand.ts
172
+
173
+ var import_middleware_serde = require("@smithy/middleware-serde");
174
+
175
+ var import_types = require("@smithy/types");
176
+
177
+ // src/protocols/Aws_json1_1.ts
178
+
179
+
180
+
181
+ // src/models/ACMServiceException.ts
182
+
183
+ var _ACMServiceException = class _ACMServiceException extends import_smithy_client.ServiceException {
184
+ /**
185
+ * @internal
186
+ */
187
+ constructor(options) {
188
+ super(options);
189
+ Object.setPrototypeOf(this, _ACMServiceException.prototype);
190
+ }
191
+ };
192
+ __name(_ACMServiceException, "ACMServiceException");
193
+ var ACMServiceException = _ACMServiceException;
194
+
195
+ // src/models/models_0.ts
196
+
197
+ var _AccessDeniedException = class _AccessDeniedException extends ACMServiceException {
198
+ /**
199
+ * @internal
200
+ */
201
+ constructor(opts) {
202
+ super({
203
+ name: "AccessDeniedException",
204
+ $fault: "client",
205
+ ...opts
206
+ });
207
+ this.name = "AccessDeniedException";
208
+ this.$fault = "client";
209
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
210
+ this.Message = opts.Message;
211
+ }
212
+ };
213
+ __name(_AccessDeniedException, "AccessDeniedException");
214
+ var AccessDeniedException = _AccessDeniedException;
215
+ var _InvalidArnException = class _InvalidArnException extends ACMServiceException {
216
+ /**
217
+ * @internal
218
+ */
219
+ constructor(opts) {
220
+ super({
221
+ name: "InvalidArnException",
222
+ $fault: "client",
223
+ ...opts
224
+ });
225
+ this.name = "InvalidArnException";
226
+ this.$fault = "client";
227
+ Object.setPrototypeOf(this, _InvalidArnException.prototype);
228
+ }
229
+ };
230
+ __name(_InvalidArnException, "InvalidArnException");
231
+ var InvalidArnException = _InvalidArnException;
232
+ var _InvalidParameterException = class _InvalidParameterException extends ACMServiceException {
233
+ /**
234
+ * @internal
235
+ */
236
+ constructor(opts) {
237
+ super({
238
+ name: "InvalidParameterException",
239
+ $fault: "client",
240
+ ...opts
241
+ });
242
+ this.name = "InvalidParameterException";
243
+ this.$fault = "client";
244
+ Object.setPrototypeOf(this, _InvalidParameterException.prototype);
245
+ }
246
+ };
247
+ __name(_InvalidParameterException, "InvalidParameterException");
248
+ var InvalidParameterException = _InvalidParameterException;
249
+ var _InvalidTagException = class _InvalidTagException extends ACMServiceException {
250
+ /**
251
+ * @internal
252
+ */
253
+ constructor(opts) {
254
+ super({
255
+ name: "InvalidTagException",
256
+ $fault: "client",
257
+ ...opts
258
+ });
259
+ this.name = "InvalidTagException";
260
+ this.$fault = "client";
261
+ Object.setPrototypeOf(this, _InvalidTagException.prototype);
262
+ }
263
+ };
264
+ __name(_InvalidTagException, "InvalidTagException");
265
+ var InvalidTagException = _InvalidTagException;
266
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends ACMServiceException {
267
+ /**
268
+ * @internal
269
+ */
270
+ constructor(opts) {
271
+ super({
272
+ name: "ResourceNotFoundException",
273
+ $fault: "client",
274
+ ...opts
275
+ });
276
+ this.name = "ResourceNotFoundException";
277
+ this.$fault = "client";
278
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
279
+ }
280
+ };
281
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
282
+ var ResourceNotFoundException = _ResourceNotFoundException;
283
+ var _TagPolicyException = class _TagPolicyException extends ACMServiceException {
284
+ /**
285
+ * @internal
286
+ */
287
+ constructor(opts) {
288
+ super({
289
+ name: "TagPolicyException",
290
+ $fault: "client",
291
+ ...opts
292
+ });
293
+ this.name = "TagPolicyException";
294
+ this.$fault = "client";
295
+ Object.setPrototypeOf(this, _TagPolicyException.prototype);
296
+ }
297
+ };
298
+ __name(_TagPolicyException, "TagPolicyException");
299
+ var TagPolicyException = _TagPolicyException;
300
+ var _ThrottlingException = class _ThrottlingException extends ACMServiceException {
301
+ /**
302
+ * @internal
303
+ */
304
+ constructor(opts) {
305
+ super({
306
+ name: "ThrottlingException",
307
+ $fault: "client",
308
+ ...opts
309
+ });
310
+ this.name = "ThrottlingException";
311
+ this.$fault = "client";
312
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
313
+ }
314
+ };
315
+ __name(_ThrottlingException, "ThrottlingException");
316
+ var ThrottlingException = _ThrottlingException;
317
+ var _TooManyTagsException = class _TooManyTagsException extends ACMServiceException {
318
+ /**
319
+ * @internal
320
+ */
321
+ constructor(opts) {
322
+ super({
323
+ name: "TooManyTagsException",
324
+ $fault: "client",
325
+ ...opts
326
+ });
327
+ this.name = "TooManyTagsException";
328
+ this.$fault = "client";
329
+ Object.setPrototypeOf(this, _TooManyTagsException.prototype);
330
+ }
331
+ };
332
+ __name(_TooManyTagsException, "TooManyTagsException");
333
+ var TooManyTagsException = _TooManyTagsException;
334
+ var RecordType = {
335
+ CNAME: "CNAME"
336
+ };
337
+ var ValidationMethod = {
338
+ DNS: "DNS",
339
+ EMAIL: "EMAIL"
340
+ };
341
+ var DomainStatus = {
342
+ FAILED: "FAILED",
343
+ PENDING_VALIDATION: "PENDING_VALIDATION",
344
+ SUCCESS: "SUCCESS"
345
+ };
346
+ var ExtendedKeyUsageName = {
347
+ ANY: "ANY",
348
+ CODE_SIGNING: "CODE_SIGNING",
349
+ CUSTOM: "CUSTOM",
350
+ EMAIL_PROTECTION: "EMAIL_PROTECTION",
351
+ IPSEC_END_SYSTEM: "IPSEC_END_SYSTEM",
352
+ IPSEC_TUNNEL: "IPSEC_TUNNEL",
353
+ IPSEC_USER: "IPSEC_USER",
354
+ NONE: "NONE",
355
+ OCSP_SIGNING: "OCSP_SIGNING",
356
+ TIME_STAMPING: "TIME_STAMPING",
357
+ TLS_WEB_CLIENT_AUTHENTICATION: "TLS_WEB_CLIENT_AUTHENTICATION",
358
+ TLS_WEB_SERVER_AUTHENTICATION: "TLS_WEB_SERVER_AUTHENTICATION"
359
+ };
360
+ var FailureReason = {
361
+ ADDITIONAL_VERIFICATION_REQUIRED: "ADDITIONAL_VERIFICATION_REQUIRED",
362
+ CAA_ERROR: "CAA_ERROR",
363
+ DOMAIN_NOT_ALLOWED: "DOMAIN_NOT_ALLOWED",
364
+ DOMAIN_VALIDATION_DENIED: "DOMAIN_VALIDATION_DENIED",
365
+ INVALID_PUBLIC_DOMAIN: "INVALID_PUBLIC_DOMAIN",
366
+ NO_AVAILABLE_CONTACTS: "NO_AVAILABLE_CONTACTS",
367
+ OTHER: "OTHER",
368
+ PCA_ACCESS_DENIED: "PCA_ACCESS_DENIED",
369
+ PCA_INVALID_ARGS: "PCA_INVALID_ARGS",
370
+ PCA_INVALID_ARN: "PCA_INVALID_ARN",
371
+ PCA_INVALID_DURATION: "PCA_INVALID_DURATION",
372
+ PCA_INVALID_STATE: "PCA_INVALID_STATE",
373
+ PCA_LIMIT_EXCEEDED: "PCA_LIMIT_EXCEEDED",
374
+ PCA_NAME_CONSTRAINTS_VALIDATION: "PCA_NAME_CONSTRAINTS_VALIDATION",
375
+ PCA_REQUEST_FAILED: "PCA_REQUEST_FAILED",
376
+ PCA_RESOURCE_NOT_FOUND: "PCA_RESOURCE_NOT_FOUND",
377
+ SLR_NOT_FOUND: "SLR_NOT_FOUND"
378
+ };
379
+ var KeyAlgorithm = {
380
+ EC_prime256v1: "EC_prime256v1",
381
+ EC_secp384r1: "EC_secp384r1",
382
+ EC_secp521r1: "EC_secp521r1",
383
+ RSA_1024: "RSA_1024",
384
+ RSA_2048: "RSA_2048",
385
+ RSA_3072: "RSA_3072",
386
+ RSA_4096: "RSA_4096"
387
+ };
388
+ var KeyUsageName = {
389
+ ANY: "ANY",
390
+ CERTIFICATE_SIGNING: "CERTIFICATE_SIGNING",
391
+ CRL_SIGNING: "CRL_SIGNING",
392
+ CUSTOM: "CUSTOM",
393
+ DATA_ENCIPHERMENT: "DATA_ENCIPHERMENT",
394
+ DECIPHER_ONLY: "DECIPHER_ONLY",
395
+ DIGITAL_SIGNATURE: "DIGITAL_SIGNATURE",
396
+ ENCHIPER_ONLY: "ENCIPHER_ONLY",
397
+ KEY_AGREEMENT: "KEY_AGREEMENT",
398
+ KEY_ENCIPHERMENT: "KEY_ENCIPHERMENT",
399
+ NON_REPUDATION: "NON_REPUDIATION"
400
+ };
401
+ var CertificateTransparencyLoggingPreference = {
402
+ DISABLED: "DISABLED",
403
+ ENABLED: "ENABLED"
404
+ };
405
+ var RenewalEligibility = {
406
+ ELIGIBLE: "ELIGIBLE",
407
+ INELIGIBLE: "INELIGIBLE"
408
+ };
409
+ var RenewalStatus = {
410
+ FAILED: "FAILED",
411
+ PENDING_AUTO_RENEWAL: "PENDING_AUTO_RENEWAL",
412
+ PENDING_VALIDATION: "PENDING_VALIDATION",
413
+ SUCCESS: "SUCCESS"
414
+ };
415
+ var RevocationReason = {
416
+ AFFILIATION_CHANGED: "AFFILIATION_CHANGED",
417
+ A_A_COMPROMISE: "A_A_COMPROMISE",
418
+ CA_COMPROMISE: "CA_COMPROMISE",
419
+ CERTIFICATE_HOLD: "CERTIFICATE_HOLD",
420
+ CESSATION_OF_OPERATION: "CESSATION_OF_OPERATION",
421
+ KEY_COMPROMISE: "KEY_COMPROMISE",
422
+ PRIVILEGE_WITHDRAWN: "PRIVILEGE_WITHDRAWN",
423
+ REMOVE_FROM_CRL: "REMOVE_FROM_CRL",
424
+ SUPERCEDED: "SUPERCEDED",
425
+ UNSPECIFIED: "UNSPECIFIED"
426
+ };
427
+ var CertificateStatus = {
428
+ EXPIRED: "EXPIRED",
429
+ FAILED: "FAILED",
430
+ INACTIVE: "INACTIVE",
431
+ ISSUED: "ISSUED",
432
+ PENDING_VALIDATION: "PENDING_VALIDATION",
433
+ REVOKED: "REVOKED",
434
+ VALIDATION_TIMED_OUT: "VALIDATION_TIMED_OUT"
435
+ };
436
+ var CertificateType = {
437
+ AMAZON_ISSUED: "AMAZON_ISSUED",
438
+ IMPORTED: "IMPORTED",
439
+ PRIVATE: "PRIVATE"
440
+ };
441
+ var _ConflictException = class _ConflictException extends ACMServiceException {
442
+ /**
443
+ * @internal
444
+ */
445
+ constructor(opts) {
446
+ super({
447
+ name: "ConflictException",
448
+ $fault: "client",
449
+ ...opts
450
+ });
451
+ this.name = "ConflictException";
452
+ this.$fault = "client";
453
+ Object.setPrototypeOf(this, _ConflictException.prototype);
454
+ }
455
+ };
456
+ __name(_ConflictException, "ConflictException");
457
+ var ConflictException = _ConflictException;
458
+ var _ResourceInUseException = class _ResourceInUseException extends ACMServiceException {
459
+ /**
460
+ * @internal
461
+ */
462
+ constructor(opts) {
463
+ super({
464
+ name: "ResourceInUseException",
465
+ $fault: "client",
466
+ ...opts
467
+ });
468
+ this.name = "ResourceInUseException";
469
+ this.$fault = "client";
470
+ Object.setPrototypeOf(this, _ResourceInUseException.prototype);
471
+ }
472
+ };
473
+ __name(_ResourceInUseException, "ResourceInUseException");
474
+ var ResourceInUseException = _ResourceInUseException;
475
+ var _RequestInProgressException = class _RequestInProgressException extends ACMServiceException {
476
+ /**
477
+ * @internal
478
+ */
479
+ constructor(opts) {
480
+ super({
481
+ name: "RequestInProgressException",
482
+ $fault: "client",
483
+ ...opts
484
+ });
485
+ this.name = "RequestInProgressException";
486
+ this.$fault = "client";
487
+ Object.setPrototypeOf(this, _RequestInProgressException.prototype);
488
+ }
489
+ };
490
+ __name(_RequestInProgressException, "RequestInProgressException");
491
+ var RequestInProgressException = _RequestInProgressException;
492
+ var _LimitExceededException = class _LimitExceededException extends ACMServiceException {
493
+ /**
494
+ * @internal
495
+ */
496
+ constructor(opts) {
497
+ super({
498
+ name: "LimitExceededException",
499
+ $fault: "client",
500
+ ...opts
501
+ });
502
+ this.name = "LimitExceededException";
503
+ this.$fault = "client";
504
+ Object.setPrototypeOf(this, _LimitExceededException.prototype);
505
+ }
506
+ };
507
+ __name(_LimitExceededException, "LimitExceededException");
508
+ var LimitExceededException = _LimitExceededException;
509
+ var _InvalidArgsException = class _InvalidArgsException extends ACMServiceException {
510
+ /**
511
+ * @internal
512
+ */
513
+ constructor(opts) {
514
+ super({
515
+ name: "InvalidArgsException",
516
+ $fault: "client",
517
+ ...opts
518
+ });
519
+ this.name = "InvalidArgsException";
520
+ this.$fault = "client";
521
+ Object.setPrototypeOf(this, _InvalidArgsException.prototype);
522
+ }
523
+ };
524
+ __name(_InvalidArgsException, "InvalidArgsException");
525
+ var InvalidArgsException = _InvalidArgsException;
526
+ var SortBy = {
527
+ CREATED_AT: "CREATED_AT"
528
+ };
529
+ var SortOrder = {
530
+ ASCENDING: "ASCENDING",
531
+ DESCENDING: "DESCENDING"
532
+ };
533
+ var _ValidationException = class _ValidationException extends ACMServiceException {
534
+ /**
535
+ * @internal
536
+ */
537
+ constructor(opts) {
538
+ super({
539
+ name: "ValidationException",
540
+ $fault: "client",
541
+ ...opts
542
+ });
543
+ this.name = "ValidationException";
544
+ this.$fault = "client";
545
+ Object.setPrototypeOf(this, _ValidationException.prototype);
546
+ }
547
+ };
548
+ __name(_ValidationException, "ValidationException");
549
+ var ValidationException = _ValidationException;
550
+ var _InvalidDomainValidationOptionsException = class _InvalidDomainValidationOptionsException extends ACMServiceException {
551
+ /**
552
+ * @internal
553
+ */
554
+ constructor(opts) {
555
+ super({
556
+ name: "InvalidDomainValidationOptionsException",
557
+ $fault: "client",
558
+ ...opts
559
+ });
560
+ this.name = "InvalidDomainValidationOptionsException";
561
+ this.$fault = "client";
562
+ Object.setPrototypeOf(this, _InvalidDomainValidationOptionsException.prototype);
563
+ }
564
+ };
565
+ __name(_InvalidDomainValidationOptionsException, "InvalidDomainValidationOptionsException");
566
+ var InvalidDomainValidationOptionsException = _InvalidDomainValidationOptionsException;
567
+ var _InvalidStateException = class _InvalidStateException extends ACMServiceException {
568
+ /**
569
+ * @internal
570
+ */
571
+ constructor(opts) {
572
+ super({
573
+ name: "InvalidStateException",
574
+ $fault: "client",
575
+ ...opts
576
+ });
577
+ this.name = "InvalidStateException";
578
+ this.$fault = "client";
579
+ Object.setPrototypeOf(this, _InvalidStateException.prototype);
580
+ }
581
+ };
582
+ __name(_InvalidStateException, "InvalidStateException");
583
+ var InvalidStateException = _InvalidStateException;
584
+ var ExportCertificateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
585
+ ...obj,
586
+ ...obj.Passphrase && { Passphrase: import_smithy_client.SENSITIVE_STRING }
587
+ }), "ExportCertificateRequestFilterSensitiveLog");
588
+ var ExportCertificateResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
589
+ ...obj,
590
+ ...obj.PrivateKey && { PrivateKey: import_smithy_client.SENSITIVE_STRING }
591
+ }), "ExportCertificateResponseFilterSensitiveLog");
592
+ var ImportCertificateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
593
+ ...obj,
594
+ ...obj.PrivateKey && { PrivateKey: import_smithy_client.SENSITIVE_STRING }
595
+ }), "ImportCertificateRequestFilterSensitiveLog");
596
+
597
+ // src/protocols/Aws_json1_1.ts
598
+ var se_AddTagsToCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
599
+ const headers = sharedHeaders("AddTagsToCertificate");
600
+ let body;
601
+ body = JSON.stringify((0, import_smithy_client._json)(input));
602
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
603
+ }, "se_AddTagsToCertificateCommand");
604
+ var se_DeleteCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
605
+ const headers = sharedHeaders("DeleteCertificate");
606
+ let body;
607
+ body = JSON.stringify((0, import_smithy_client._json)(input));
608
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
609
+ }, "se_DeleteCertificateCommand");
610
+ var se_DescribeCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
611
+ const headers = sharedHeaders("DescribeCertificate");
612
+ let body;
613
+ body = JSON.stringify((0, import_smithy_client._json)(input));
614
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
615
+ }, "se_DescribeCertificateCommand");
616
+ var se_ExportCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
617
+ const headers = sharedHeaders("ExportCertificate");
618
+ let body;
619
+ body = JSON.stringify(se_ExportCertificateRequest(input, context));
620
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
621
+ }, "se_ExportCertificateCommand");
622
+ var se_GetAccountConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
623
+ const headers = sharedHeaders("GetAccountConfiguration");
624
+ const body = "{}";
625
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
626
+ }, "se_GetAccountConfigurationCommand");
627
+ var se_GetCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
628
+ const headers = sharedHeaders("GetCertificate");
629
+ let body;
630
+ body = JSON.stringify((0, import_smithy_client._json)(input));
631
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
632
+ }, "se_GetCertificateCommand");
633
+ var se_ImportCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
634
+ const headers = sharedHeaders("ImportCertificate");
635
+ let body;
636
+ body = JSON.stringify(se_ImportCertificateRequest(input, context));
637
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
638
+ }, "se_ImportCertificateCommand");
639
+ var se_ListCertificatesCommand = /* @__PURE__ */ __name(async (input, context) => {
640
+ const headers = sharedHeaders("ListCertificates");
641
+ let body;
642
+ body = JSON.stringify((0, import_smithy_client._json)(input));
643
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
644
+ }, "se_ListCertificatesCommand");
645
+ var se_ListTagsForCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
646
+ const headers = sharedHeaders("ListTagsForCertificate");
647
+ let body;
648
+ body = JSON.stringify((0, import_smithy_client._json)(input));
649
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
650
+ }, "se_ListTagsForCertificateCommand");
651
+ var se_PutAccountConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
652
+ const headers = sharedHeaders("PutAccountConfiguration");
653
+ let body;
654
+ body = JSON.stringify((0, import_smithy_client._json)(input));
655
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
656
+ }, "se_PutAccountConfigurationCommand");
657
+ var se_RemoveTagsFromCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
658
+ const headers = sharedHeaders("RemoveTagsFromCertificate");
659
+ let body;
660
+ body = JSON.stringify((0, import_smithy_client._json)(input));
661
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
662
+ }, "se_RemoveTagsFromCertificateCommand");
663
+ var se_RenewCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
664
+ const headers = sharedHeaders("RenewCertificate");
665
+ let body;
666
+ body = JSON.stringify((0, import_smithy_client._json)(input));
667
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
668
+ }, "se_RenewCertificateCommand");
669
+ var se_RequestCertificateCommand = /* @__PURE__ */ __name(async (input, context) => {
670
+ const headers = sharedHeaders("RequestCertificate");
671
+ let body;
672
+ body = JSON.stringify((0, import_smithy_client._json)(input));
673
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
674
+ }, "se_RequestCertificateCommand");
675
+ var se_ResendValidationEmailCommand = /* @__PURE__ */ __name(async (input, context) => {
676
+ const headers = sharedHeaders("ResendValidationEmail");
677
+ let body;
678
+ body = JSON.stringify((0, import_smithy_client._json)(input));
679
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
680
+ }, "se_ResendValidationEmailCommand");
681
+ var se_UpdateCertificateOptionsCommand = /* @__PURE__ */ __name(async (input, context) => {
682
+ const headers = sharedHeaders("UpdateCertificateOptions");
683
+ let body;
684
+ body = JSON.stringify((0, import_smithy_client._json)(input));
685
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
686
+ }, "se_UpdateCertificateOptionsCommand");
687
+ var de_AddTagsToCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
688
+ if (output.statusCode >= 300) {
689
+ return de_AddTagsToCertificateCommandError(output, context);
690
+ }
691
+ await (0, import_smithy_client.collectBody)(output.body, context);
692
+ const response = {
693
+ $metadata: deserializeMetadata(output)
694
+ };
695
+ return response;
696
+ }, "de_AddTagsToCertificateCommand");
697
+ var de_AddTagsToCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
698
+ const parsedOutput = {
699
+ ...output,
700
+ body: await parseErrorBody(output.body, context)
701
+ };
702
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
703
+ switch (errorCode) {
704
+ case "InvalidArnException":
705
+ case "com.amazonaws.acm#InvalidArnException":
706
+ throw await de_InvalidArnExceptionRes(parsedOutput, context);
707
+ case "InvalidParameterException":
708
+ case "com.amazonaws.acm#InvalidParameterException":
709
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
710
+ case "InvalidTagException":
711
+ case "com.amazonaws.acm#InvalidTagException":
712
+ throw await de_InvalidTagExceptionRes(parsedOutput, context);
713
+ case "ResourceNotFoundException":
714
+ case "com.amazonaws.acm#ResourceNotFoundException":
715
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
716
+ case "TagPolicyException":
717
+ case "com.amazonaws.acm#TagPolicyException":
718
+ throw await de_TagPolicyExceptionRes(parsedOutput, context);
719
+ case "ThrottlingException":
720
+ case "com.amazonaws.acm#ThrottlingException":
721
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
722
+ case "TooManyTagsException":
723
+ case "com.amazonaws.acm#TooManyTagsException":
724
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
725
+ default:
726
+ const parsedBody = parsedOutput.body;
727
+ return throwDefaultError({
728
+ output,
729
+ parsedBody,
730
+ errorCode
731
+ });
732
+ }
733
+ }, "de_AddTagsToCertificateCommandError");
734
+ var de_DeleteCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
735
+ if (output.statusCode >= 300) {
736
+ return de_DeleteCertificateCommandError(output, context);
737
+ }
738
+ await (0, import_smithy_client.collectBody)(output.body, context);
739
+ const response = {
740
+ $metadata: deserializeMetadata(output)
741
+ };
742
+ return response;
743
+ }, "de_DeleteCertificateCommand");
744
+ var de_DeleteCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
745
+ const parsedOutput = {
746
+ ...output,
747
+ body: await parseErrorBody(output.body, context)
748
+ };
749
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
750
+ switch (errorCode) {
751
+ case "AccessDeniedException":
752
+ case "com.amazonaws.acm#AccessDeniedException":
753
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
754
+ case "ConflictException":
755
+ case "com.amazonaws.acm#ConflictException":
756
+ throw await de_ConflictExceptionRes(parsedOutput, context);
757
+ case "InvalidArnException":
758
+ case "com.amazonaws.acm#InvalidArnException":
759
+ throw await de_InvalidArnExceptionRes(parsedOutput, context);
760
+ case "ResourceInUseException":
761
+ case "com.amazonaws.acm#ResourceInUseException":
762
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
763
+ case "ResourceNotFoundException":
764
+ case "com.amazonaws.acm#ResourceNotFoundException":
765
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
766
+ case "ThrottlingException":
767
+ case "com.amazonaws.acm#ThrottlingException":
768
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
769
+ default:
770
+ const parsedBody = parsedOutput.body;
771
+ return throwDefaultError({
772
+ output,
773
+ parsedBody,
774
+ errorCode
775
+ });
776
+ }
777
+ }, "de_DeleteCertificateCommandError");
778
+ var de_DescribeCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
779
+ if (output.statusCode >= 300) {
780
+ return de_DescribeCertificateCommandError(output, context);
781
+ }
782
+ const data = await parseBody(output.body, context);
783
+ let contents = {};
784
+ contents = de_DescribeCertificateResponse(data, context);
785
+ const response = {
786
+ $metadata: deserializeMetadata(output),
787
+ ...contents
788
+ };
789
+ return response;
790
+ }, "de_DescribeCertificateCommand");
791
+ var de_DescribeCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
792
+ const parsedOutput = {
793
+ ...output,
794
+ body: await parseErrorBody(output.body, context)
795
+ };
796
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
797
+ switch (errorCode) {
798
+ case "InvalidArnException":
799
+ case "com.amazonaws.acm#InvalidArnException":
800
+ throw await de_InvalidArnExceptionRes(parsedOutput, context);
801
+ case "ResourceNotFoundException":
802
+ case "com.amazonaws.acm#ResourceNotFoundException":
803
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
804
+ default:
805
+ const parsedBody = parsedOutput.body;
806
+ return throwDefaultError({
807
+ output,
808
+ parsedBody,
809
+ errorCode
810
+ });
811
+ }
812
+ }, "de_DescribeCertificateCommandError");
813
+ var de_ExportCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
814
+ if (output.statusCode >= 300) {
815
+ return de_ExportCertificateCommandError(output, context);
816
+ }
817
+ const data = await parseBody(output.body, context);
818
+ let contents = {};
819
+ contents = (0, import_smithy_client._json)(data);
820
+ const response = {
821
+ $metadata: deserializeMetadata(output),
822
+ ...contents
823
+ };
824
+ return response;
825
+ }, "de_ExportCertificateCommand");
826
+ var de_ExportCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
827
+ const parsedOutput = {
828
+ ...output,
829
+ body: await parseErrorBody(output.body, context)
830
+ };
831
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
832
+ switch (errorCode) {
833
+ case "InvalidArnException":
834
+ case "com.amazonaws.acm#InvalidArnException":
835
+ throw await de_InvalidArnExceptionRes(parsedOutput, context);
836
+ case "RequestInProgressException":
837
+ case "com.amazonaws.acm#RequestInProgressException":
838
+ throw await de_RequestInProgressExceptionRes(parsedOutput, context);
839
+ case "ResourceNotFoundException":
840
+ case "com.amazonaws.acm#ResourceNotFoundException":
841
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
842
+ default:
843
+ const parsedBody = parsedOutput.body;
844
+ return throwDefaultError({
845
+ output,
846
+ parsedBody,
847
+ errorCode
848
+ });
849
+ }
850
+ }, "de_ExportCertificateCommandError");
851
+ var de_GetAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
852
+ if (output.statusCode >= 300) {
853
+ return de_GetAccountConfigurationCommandError(output, context);
854
+ }
855
+ const data = await parseBody(output.body, context);
856
+ let contents = {};
857
+ contents = (0, import_smithy_client._json)(data);
858
+ const response = {
859
+ $metadata: deserializeMetadata(output),
860
+ ...contents
861
+ };
862
+ return response;
863
+ }, "de_GetAccountConfigurationCommand");
864
+ var de_GetAccountConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
865
+ const parsedOutput = {
866
+ ...output,
867
+ body: await parseErrorBody(output.body, context)
868
+ };
869
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
870
+ switch (errorCode) {
871
+ case "AccessDeniedException":
872
+ case "com.amazonaws.acm#AccessDeniedException":
873
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
874
+ case "ThrottlingException":
875
+ case "com.amazonaws.acm#ThrottlingException":
876
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
877
+ default:
878
+ const parsedBody = parsedOutput.body;
879
+ return throwDefaultError({
880
+ output,
881
+ parsedBody,
882
+ errorCode
883
+ });
884
+ }
885
+ }, "de_GetAccountConfigurationCommandError");
886
+ var de_GetCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
887
+ if (output.statusCode >= 300) {
888
+ return de_GetCertificateCommandError(output, context);
889
+ }
890
+ const data = await parseBody(output.body, context);
891
+ let contents = {};
892
+ contents = (0, import_smithy_client._json)(data);
893
+ const response = {
894
+ $metadata: deserializeMetadata(output),
895
+ ...contents
896
+ };
897
+ return response;
898
+ }, "de_GetCertificateCommand");
899
+ var de_GetCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
900
+ const parsedOutput = {
901
+ ...output,
902
+ body: await parseErrorBody(output.body, context)
903
+ };
904
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
905
+ switch (errorCode) {
906
+ case "InvalidArnException":
907
+ case "com.amazonaws.acm#InvalidArnException":
908
+ throw await de_InvalidArnExceptionRes(parsedOutput, context);
909
+ case "RequestInProgressException":
910
+ case "com.amazonaws.acm#RequestInProgressException":
911
+ throw await de_RequestInProgressExceptionRes(parsedOutput, context);
912
+ case "ResourceNotFoundException":
913
+ case "com.amazonaws.acm#ResourceNotFoundException":
914
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
915
+ default:
916
+ const parsedBody = parsedOutput.body;
917
+ return throwDefaultError({
918
+ output,
919
+ parsedBody,
920
+ errorCode
921
+ });
922
+ }
923
+ }, "de_GetCertificateCommandError");
924
+ var de_ImportCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
925
+ if (output.statusCode >= 300) {
926
+ return de_ImportCertificateCommandError(output, context);
927
+ }
928
+ const data = await parseBody(output.body, context);
929
+ let contents = {};
930
+ contents = (0, import_smithy_client._json)(data);
931
+ const response = {
932
+ $metadata: deserializeMetadata(output),
933
+ ...contents
934
+ };
935
+ return response;
936
+ }, "de_ImportCertificateCommand");
937
+ var de_ImportCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
938
+ const parsedOutput = {
939
+ ...output,
940
+ body: await parseErrorBody(output.body, context)
941
+ };
942
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
943
+ switch (errorCode) {
944
+ case "InvalidArnException":
945
+ case "com.amazonaws.acm#InvalidArnException":
946
+ throw await de_InvalidArnExceptionRes(parsedOutput, context);
947
+ case "InvalidParameterException":
948
+ case "com.amazonaws.acm#InvalidParameterException":
949
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
950
+ case "InvalidTagException":
951
+ case "com.amazonaws.acm#InvalidTagException":
952
+ throw await de_InvalidTagExceptionRes(parsedOutput, context);
953
+ case "LimitExceededException":
954
+ case "com.amazonaws.acm#LimitExceededException":
955
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
956
+ case "ResourceNotFoundException":
957
+ case "com.amazonaws.acm#ResourceNotFoundException":
958
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
959
+ case "TagPolicyException":
960
+ case "com.amazonaws.acm#TagPolicyException":
961
+ throw await de_TagPolicyExceptionRes(parsedOutput, context);
962
+ case "TooManyTagsException":
963
+ case "com.amazonaws.acm#TooManyTagsException":
964
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
965
+ default:
966
+ const parsedBody = parsedOutput.body;
967
+ return throwDefaultError({
968
+ output,
969
+ parsedBody,
970
+ errorCode
971
+ });
972
+ }
973
+ }, "de_ImportCertificateCommandError");
974
+ var de_ListCertificatesCommand = /* @__PURE__ */ __name(async (output, context) => {
975
+ if (output.statusCode >= 300) {
976
+ return de_ListCertificatesCommandError(output, context);
977
+ }
978
+ const data = await parseBody(output.body, context);
979
+ let contents = {};
980
+ contents = de_ListCertificatesResponse(data, context);
981
+ const response = {
982
+ $metadata: deserializeMetadata(output),
983
+ ...contents
984
+ };
985
+ return response;
986
+ }, "de_ListCertificatesCommand");
987
+ var de_ListCertificatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
988
+ const parsedOutput = {
989
+ ...output,
990
+ body: await parseErrorBody(output.body, context)
991
+ };
992
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
993
+ switch (errorCode) {
994
+ case "InvalidArgsException":
995
+ case "com.amazonaws.acm#InvalidArgsException":
996
+ throw await de_InvalidArgsExceptionRes(parsedOutput, context);
997
+ case "ValidationException":
998
+ case "com.amazonaws.acm#ValidationException":
999
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1000
+ default:
1001
+ const parsedBody = parsedOutput.body;
1002
+ return throwDefaultError({
1003
+ output,
1004
+ parsedBody,
1005
+ errorCode
1006
+ });
1007
+ }
1008
+ }, "de_ListCertificatesCommandError");
1009
+ var de_ListTagsForCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
1010
+ if (output.statusCode >= 300) {
1011
+ return de_ListTagsForCertificateCommandError(output, context);
1012
+ }
1013
+ const data = await parseBody(output.body, context);
1014
+ let contents = {};
1015
+ contents = (0, import_smithy_client._json)(data);
1016
+ const response = {
1017
+ $metadata: deserializeMetadata(output),
1018
+ ...contents
1019
+ };
1020
+ return response;
1021
+ }, "de_ListTagsForCertificateCommand");
1022
+ var de_ListTagsForCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1023
+ const parsedOutput = {
1024
+ ...output,
1025
+ body: await parseErrorBody(output.body, context)
1026
+ };
1027
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1028
+ switch (errorCode) {
1029
+ case "InvalidArnException":
1030
+ case "com.amazonaws.acm#InvalidArnException":
1031
+ throw await de_InvalidArnExceptionRes(parsedOutput, context);
1032
+ case "ResourceNotFoundException":
1033
+ case "com.amazonaws.acm#ResourceNotFoundException":
1034
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1035
+ default:
1036
+ const parsedBody = parsedOutput.body;
1037
+ return throwDefaultError({
1038
+ output,
1039
+ parsedBody,
1040
+ errorCode
1041
+ });
1042
+ }
1043
+ }, "de_ListTagsForCertificateCommandError");
1044
+ var de_PutAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1045
+ if (output.statusCode >= 300) {
1046
+ return de_PutAccountConfigurationCommandError(output, context);
1047
+ }
1048
+ await (0, import_smithy_client.collectBody)(output.body, context);
1049
+ const response = {
1050
+ $metadata: deserializeMetadata(output)
1051
+ };
1052
+ return response;
1053
+ }, "de_PutAccountConfigurationCommand");
1054
+ var de_PutAccountConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1055
+ const parsedOutput = {
1056
+ ...output,
1057
+ body: await parseErrorBody(output.body, context)
1058
+ };
1059
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1060
+ switch (errorCode) {
1061
+ case "AccessDeniedException":
1062
+ case "com.amazonaws.acm#AccessDeniedException":
1063
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1064
+ case "ConflictException":
1065
+ case "com.amazonaws.acm#ConflictException":
1066
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1067
+ case "ThrottlingException":
1068
+ case "com.amazonaws.acm#ThrottlingException":
1069
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1070
+ case "ValidationException":
1071
+ case "com.amazonaws.acm#ValidationException":
1072
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1073
+ default:
1074
+ const parsedBody = parsedOutput.body;
1075
+ return throwDefaultError({
1076
+ output,
1077
+ parsedBody,
1078
+ errorCode
1079
+ });
1080
+ }
1081
+ }, "de_PutAccountConfigurationCommandError");
1082
+ var de_RemoveTagsFromCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
1083
+ if (output.statusCode >= 300) {
1084
+ return de_RemoveTagsFromCertificateCommandError(output, context);
1085
+ }
1086
+ await (0, import_smithy_client.collectBody)(output.body, context);
1087
+ const response = {
1088
+ $metadata: deserializeMetadata(output)
1089
+ };
1090
+ return response;
1091
+ }, "de_RemoveTagsFromCertificateCommand");
1092
+ var de_RemoveTagsFromCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1093
+ const parsedOutput = {
1094
+ ...output,
1095
+ body: await parseErrorBody(output.body, context)
1096
+ };
1097
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1098
+ switch (errorCode) {
1099
+ case "InvalidArnException":
1100
+ case "com.amazonaws.acm#InvalidArnException":
1101
+ throw await de_InvalidArnExceptionRes(parsedOutput, context);
1102
+ case "InvalidParameterException":
1103
+ case "com.amazonaws.acm#InvalidParameterException":
1104
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1105
+ case "InvalidTagException":
1106
+ case "com.amazonaws.acm#InvalidTagException":
1107
+ throw await de_InvalidTagExceptionRes(parsedOutput, context);
1108
+ case "ResourceNotFoundException":
1109
+ case "com.amazonaws.acm#ResourceNotFoundException":
1110
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1111
+ case "TagPolicyException":
1112
+ case "com.amazonaws.acm#TagPolicyException":
1113
+ throw await de_TagPolicyExceptionRes(parsedOutput, context);
1114
+ case "ThrottlingException":
1115
+ case "com.amazonaws.acm#ThrottlingException":
1116
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1117
+ default:
1118
+ const parsedBody = parsedOutput.body;
1119
+ return throwDefaultError({
1120
+ output,
1121
+ parsedBody,
1122
+ errorCode
1123
+ });
1124
+ }
1125
+ }, "de_RemoveTagsFromCertificateCommandError");
1126
+ var de_RenewCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
1127
+ if (output.statusCode >= 300) {
1128
+ return de_RenewCertificateCommandError(output, context);
1129
+ }
1130
+ await (0, import_smithy_client.collectBody)(output.body, context);
1131
+ const response = {
1132
+ $metadata: deserializeMetadata(output)
1133
+ };
1134
+ return response;
1135
+ }, "de_RenewCertificateCommand");
1136
+ var de_RenewCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1137
+ const parsedOutput = {
1138
+ ...output,
1139
+ body: await parseErrorBody(output.body, context)
1140
+ };
1141
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1142
+ switch (errorCode) {
1143
+ case "InvalidArnException":
1144
+ case "com.amazonaws.acm#InvalidArnException":
1145
+ throw await de_InvalidArnExceptionRes(parsedOutput, context);
1146
+ case "ResourceNotFoundException":
1147
+ case "com.amazonaws.acm#ResourceNotFoundException":
1148
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1149
+ default:
1150
+ const parsedBody = parsedOutput.body;
1151
+ return throwDefaultError({
1152
+ output,
1153
+ parsedBody,
1154
+ errorCode
1155
+ });
1156
+ }
1157
+ }, "de_RenewCertificateCommandError");
1158
+ var de_RequestCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
1159
+ if (output.statusCode >= 300) {
1160
+ return de_RequestCertificateCommandError(output, context);
1161
+ }
1162
+ const data = await parseBody(output.body, context);
1163
+ let contents = {};
1164
+ contents = (0, import_smithy_client._json)(data);
1165
+ const response = {
1166
+ $metadata: deserializeMetadata(output),
1167
+ ...contents
1168
+ };
1169
+ return response;
1170
+ }, "de_RequestCertificateCommand");
1171
+ var de_RequestCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1172
+ const parsedOutput = {
1173
+ ...output,
1174
+ body: await parseErrorBody(output.body, context)
1175
+ };
1176
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1177
+ switch (errorCode) {
1178
+ case "InvalidArnException":
1179
+ case "com.amazonaws.acm#InvalidArnException":
1180
+ throw await de_InvalidArnExceptionRes(parsedOutput, context);
1181
+ case "InvalidDomainValidationOptionsException":
1182
+ case "com.amazonaws.acm#InvalidDomainValidationOptionsException":
1183
+ throw await de_InvalidDomainValidationOptionsExceptionRes(parsedOutput, context);
1184
+ case "InvalidParameterException":
1185
+ case "com.amazonaws.acm#InvalidParameterException":
1186
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1187
+ case "InvalidTagException":
1188
+ case "com.amazonaws.acm#InvalidTagException":
1189
+ throw await de_InvalidTagExceptionRes(parsedOutput, context);
1190
+ case "LimitExceededException":
1191
+ case "com.amazonaws.acm#LimitExceededException":
1192
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1193
+ case "TagPolicyException":
1194
+ case "com.amazonaws.acm#TagPolicyException":
1195
+ throw await de_TagPolicyExceptionRes(parsedOutput, context);
1196
+ case "TooManyTagsException":
1197
+ case "com.amazonaws.acm#TooManyTagsException":
1198
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1199
+ default:
1200
+ const parsedBody = parsedOutput.body;
1201
+ return throwDefaultError({
1202
+ output,
1203
+ parsedBody,
1204
+ errorCode
1205
+ });
1206
+ }
1207
+ }, "de_RequestCertificateCommandError");
1208
+ var de_ResendValidationEmailCommand = /* @__PURE__ */ __name(async (output, context) => {
1209
+ if (output.statusCode >= 300) {
1210
+ return de_ResendValidationEmailCommandError(output, context);
1211
+ }
1212
+ await (0, import_smithy_client.collectBody)(output.body, context);
1213
+ const response = {
1214
+ $metadata: deserializeMetadata(output)
1215
+ };
1216
+ return response;
1217
+ }, "de_ResendValidationEmailCommand");
1218
+ var de_ResendValidationEmailCommandError = /* @__PURE__ */ __name(async (output, context) => {
1219
+ const parsedOutput = {
1220
+ ...output,
1221
+ body: await parseErrorBody(output.body, context)
1222
+ };
1223
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1224
+ switch (errorCode) {
1225
+ case "InvalidArnException":
1226
+ case "com.amazonaws.acm#InvalidArnException":
1227
+ throw await de_InvalidArnExceptionRes(parsedOutput, context);
1228
+ case "InvalidDomainValidationOptionsException":
1229
+ case "com.amazonaws.acm#InvalidDomainValidationOptionsException":
1230
+ throw await de_InvalidDomainValidationOptionsExceptionRes(parsedOutput, context);
1231
+ case "InvalidStateException":
1232
+ case "com.amazonaws.acm#InvalidStateException":
1233
+ throw await de_InvalidStateExceptionRes(parsedOutput, context);
1234
+ case "ResourceNotFoundException":
1235
+ case "com.amazonaws.acm#ResourceNotFoundException":
1236
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1237
+ default:
1238
+ const parsedBody = parsedOutput.body;
1239
+ return throwDefaultError({
1240
+ output,
1241
+ parsedBody,
1242
+ errorCode
1243
+ });
1244
+ }
1245
+ }, "de_ResendValidationEmailCommandError");
1246
+ var de_UpdateCertificateOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1247
+ if (output.statusCode >= 300) {
1248
+ return de_UpdateCertificateOptionsCommandError(output, context);
1249
+ }
1250
+ await (0, import_smithy_client.collectBody)(output.body, context);
1251
+ const response = {
1252
+ $metadata: deserializeMetadata(output)
1253
+ };
1254
+ return response;
1255
+ }, "de_UpdateCertificateOptionsCommand");
1256
+ var de_UpdateCertificateOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1257
+ const parsedOutput = {
1258
+ ...output,
1259
+ body: await parseErrorBody(output.body, context)
1260
+ };
1261
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1262
+ switch (errorCode) {
1263
+ case "InvalidArnException":
1264
+ case "com.amazonaws.acm#InvalidArnException":
1265
+ throw await de_InvalidArnExceptionRes(parsedOutput, context);
1266
+ case "InvalidStateException":
1267
+ case "com.amazonaws.acm#InvalidStateException":
1268
+ throw await de_InvalidStateExceptionRes(parsedOutput, context);
1269
+ case "LimitExceededException":
1270
+ case "com.amazonaws.acm#LimitExceededException":
1271
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1272
+ case "ResourceNotFoundException":
1273
+ case "com.amazonaws.acm#ResourceNotFoundException":
1274
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1275
+ default:
1276
+ const parsedBody = parsedOutput.body;
1277
+ return throwDefaultError({
1278
+ output,
1279
+ parsedBody,
1280
+ errorCode
1281
+ });
1282
+ }
1283
+ }, "de_UpdateCertificateOptionsCommandError");
1284
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1285
+ const body = parsedOutput.body;
1286
+ const deserialized = (0, import_smithy_client._json)(body);
1287
+ const exception = new AccessDeniedException({
1288
+ $metadata: deserializeMetadata(parsedOutput),
1289
+ ...deserialized
1290
+ });
1291
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1292
+ }, "de_AccessDeniedExceptionRes");
1293
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1294
+ const body = parsedOutput.body;
1295
+ const deserialized = (0, import_smithy_client._json)(body);
1296
+ const exception = new ConflictException({
1297
+ $metadata: deserializeMetadata(parsedOutput),
1298
+ ...deserialized
1299
+ });
1300
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1301
+ }, "de_ConflictExceptionRes");
1302
+ var de_InvalidArgsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1303
+ const body = parsedOutput.body;
1304
+ const deserialized = (0, import_smithy_client._json)(body);
1305
+ const exception = new InvalidArgsException({
1306
+ $metadata: deserializeMetadata(parsedOutput),
1307
+ ...deserialized
1308
+ });
1309
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1310
+ }, "de_InvalidArgsExceptionRes");
1311
+ var de_InvalidArnExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1312
+ const body = parsedOutput.body;
1313
+ const deserialized = (0, import_smithy_client._json)(body);
1314
+ const exception = new InvalidArnException({
1315
+ $metadata: deserializeMetadata(parsedOutput),
1316
+ ...deserialized
1317
+ });
1318
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1319
+ }, "de_InvalidArnExceptionRes");
1320
+ var de_InvalidDomainValidationOptionsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1321
+ const body = parsedOutput.body;
1322
+ const deserialized = (0, import_smithy_client._json)(body);
1323
+ const exception = new InvalidDomainValidationOptionsException({
1324
+ $metadata: deserializeMetadata(parsedOutput),
1325
+ ...deserialized
1326
+ });
1327
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1328
+ }, "de_InvalidDomainValidationOptionsExceptionRes");
1329
+ var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1330
+ const body = parsedOutput.body;
1331
+ const deserialized = (0, import_smithy_client._json)(body);
1332
+ const exception = new InvalidParameterException({
1333
+ $metadata: deserializeMetadata(parsedOutput),
1334
+ ...deserialized
1335
+ });
1336
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1337
+ }, "de_InvalidParameterExceptionRes");
1338
+ var de_InvalidStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1339
+ const body = parsedOutput.body;
1340
+ const deserialized = (0, import_smithy_client._json)(body);
1341
+ const exception = new InvalidStateException({
1342
+ $metadata: deserializeMetadata(parsedOutput),
1343
+ ...deserialized
1344
+ });
1345
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1346
+ }, "de_InvalidStateExceptionRes");
1347
+ var de_InvalidTagExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1348
+ const body = parsedOutput.body;
1349
+ const deserialized = (0, import_smithy_client._json)(body);
1350
+ const exception = new InvalidTagException({
1351
+ $metadata: deserializeMetadata(parsedOutput),
1352
+ ...deserialized
1353
+ });
1354
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1355
+ }, "de_InvalidTagExceptionRes");
1356
+ var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1357
+ const body = parsedOutput.body;
1358
+ const deserialized = (0, import_smithy_client._json)(body);
1359
+ const exception = new LimitExceededException({
1360
+ $metadata: deserializeMetadata(parsedOutput),
1361
+ ...deserialized
1362
+ });
1363
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1364
+ }, "de_LimitExceededExceptionRes");
1365
+ var de_RequestInProgressExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1366
+ const body = parsedOutput.body;
1367
+ const deserialized = (0, import_smithy_client._json)(body);
1368
+ const exception = new RequestInProgressException({
1369
+ $metadata: deserializeMetadata(parsedOutput),
1370
+ ...deserialized
1371
+ });
1372
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1373
+ }, "de_RequestInProgressExceptionRes");
1374
+ var de_ResourceInUseExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1375
+ const body = parsedOutput.body;
1376
+ const deserialized = (0, import_smithy_client._json)(body);
1377
+ const exception = new ResourceInUseException({
1378
+ $metadata: deserializeMetadata(parsedOutput),
1379
+ ...deserialized
1380
+ });
1381
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1382
+ }, "de_ResourceInUseExceptionRes");
1383
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1384
+ const body = parsedOutput.body;
1385
+ const deserialized = (0, import_smithy_client._json)(body);
1386
+ const exception = new ResourceNotFoundException({
1387
+ $metadata: deserializeMetadata(parsedOutput),
1388
+ ...deserialized
1389
+ });
1390
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1391
+ }, "de_ResourceNotFoundExceptionRes");
1392
+ var de_TagPolicyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1393
+ const body = parsedOutput.body;
1394
+ const deserialized = (0, import_smithy_client._json)(body);
1395
+ const exception = new TagPolicyException({
1396
+ $metadata: deserializeMetadata(parsedOutput),
1397
+ ...deserialized
1398
+ });
1399
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1400
+ }, "de_TagPolicyExceptionRes");
1401
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1402
+ const body = parsedOutput.body;
1403
+ const deserialized = (0, import_smithy_client._json)(body);
1404
+ const exception = new ThrottlingException({
1405
+ $metadata: deserializeMetadata(parsedOutput),
1406
+ ...deserialized
1407
+ });
1408
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1409
+ }, "de_ThrottlingExceptionRes");
1410
+ var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1411
+ const body = parsedOutput.body;
1412
+ const deserialized = (0, import_smithy_client._json)(body);
1413
+ const exception = new TooManyTagsException({
1414
+ $metadata: deserializeMetadata(parsedOutput),
1415
+ ...deserialized
1416
+ });
1417
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1418
+ }, "de_TooManyTagsExceptionRes");
1419
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1420
+ const body = parsedOutput.body;
1421
+ const deserialized = (0, import_smithy_client._json)(body);
1422
+ const exception = new ValidationException({
1423
+ $metadata: deserializeMetadata(parsedOutput),
1424
+ ...deserialized
1425
+ });
1426
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1427
+ }, "de_ValidationExceptionRes");
1428
+ var se_ExportCertificateRequest = /* @__PURE__ */ __name((input, context) => {
1429
+ return (0, import_smithy_client.take)(input, {
1430
+ CertificateArn: [],
1431
+ Passphrase: context.base64Encoder
1432
+ });
1433
+ }, "se_ExportCertificateRequest");
1434
+ var se_ImportCertificateRequest = /* @__PURE__ */ __name((input, context) => {
1435
+ return (0, import_smithy_client.take)(input, {
1436
+ Certificate: context.base64Encoder,
1437
+ CertificateArn: [],
1438
+ CertificateChain: context.base64Encoder,
1439
+ PrivateKey: context.base64Encoder,
1440
+ Tags: import_smithy_client._json
1441
+ });
1442
+ }, "se_ImportCertificateRequest");
1443
+ var de_CertificateDetail = /* @__PURE__ */ __name((output, context) => {
1444
+ return (0, import_smithy_client.take)(output, {
1445
+ CertificateArn: import_smithy_client.expectString,
1446
+ CertificateAuthorityArn: import_smithy_client.expectString,
1447
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1448
+ DomainName: import_smithy_client.expectString,
1449
+ DomainValidationOptions: import_smithy_client._json,
1450
+ ExtendedKeyUsages: import_smithy_client._json,
1451
+ FailureReason: import_smithy_client.expectString,
1452
+ ImportedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1453
+ InUseBy: import_smithy_client._json,
1454
+ IssuedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1455
+ Issuer: import_smithy_client.expectString,
1456
+ KeyAlgorithm: import_smithy_client.expectString,
1457
+ KeyUsages: import_smithy_client._json,
1458
+ NotAfter: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1459
+ NotBefore: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1460
+ Options: import_smithy_client._json,
1461
+ RenewalEligibility: import_smithy_client.expectString,
1462
+ RenewalSummary: (_) => de_RenewalSummary(_, context),
1463
+ RevocationReason: import_smithy_client.expectString,
1464
+ RevokedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1465
+ Serial: import_smithy_client.expectString,
1466
+ SignatureAlgorithm: import_smithy_client.expectString,
1467
+ Status: import_smithy_client.expectString,
1468
+ Subject: import_smithy_client.expectString,
1469
+ SubjectAlternativeNames: import_smithy_client._json,
1470
+ Type: import_smithy_client.expectString
1471
+ });
1472
+ }, "de_CertificateDetail");
1473
+ var de_CertificateSummary = /* @__PURE__ */ __name((output, context) => {
1474
+ return (0, import_smithy_client.take)(output, {
1475
+ CertificateArn: import_smithy_client.expectString,
1476
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1477
+ DomainName: import_smithy_client.expectString,
1478
+ Exported: import_smithy_client.expectBoolean,
1479
+ ExtendedKeyUsages: import_smithy_client._json,
1480
+ HasAdditionalSubjectAlternativeNames: import_smithy_client.expectBoolean,
1481
+ ImportedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1482
+ InUse: import_smithy_client.expectBoolean,
1483
+ IssuedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1484
+ KeyAlgorithm: import_smithy_client.expectString,
1485
+ KeyUsages: import_smithy_client._json,
1486
+ NotAfter: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1487
+ NotBefore: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1488
+ RenewalEligibility: import_smithy_client.expectString,
1489
+ RevokedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1490
+ Status: import_smithy_client.expectString,
1491
+ SubjectAlternativeNameSummaries: import_smithy_client._json,
1492
+ Type: import_smithy_client.expectString
1493
+ });
1494
+ }, "de_CertificateSummary");
1495
+ var de_CertificateSummaryList = /* @__PURE__ */ __name((output, context) => {
1496
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1497
+ return de_CertificateSummary(entry, context);
1498
+ });
1499
+ return retVal;
1500
+ }, "de_CertificateSummaryList");
1501
+ var de_DescribeCertificateResponse = /* @__PURE__ */ __name((output, context) => {
1502
+ return (0, import_smithy_client.take)(output, {
1503
+ Certificate: (_) => de_CertificateDetail(_, context)
1504
+ });
1505
+ }, "de_DescribeCertificateResponse");
1506
+ var de_ListCertificatesResponse = /* @__PURE__ */ __name((output, context) => {
1507
+ return (0, import_smithy_client.take)(output, {
1508
+ CertificateSummaryList: (_) => de_CertificateSummaryList(_, context),
1509
+ NextToken: import_smithy_client.expectString
1510
+ });
1511
+ }, "de_ListCertificatesResponse");
1512
+ var de_RenewalSummary = /* @__PURE__ */ __name((output, context) => {
1513
+ return (0, import_smithy_client.take)(output, {
1514
+ DomainValidationOptions: import_smithy_client._json,
1515
+ RenewalStatus: import_smithy_client.expectString,
1516
+ RenewalStatusReason: import_smithy_client.expectString,
1517
+ UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1518
+ });
1519
+ }, "de_RenewalSummary");
1520
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1521
+ httpStatusCode: output.statusCode,
1522
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1523
+ extendedRequestId: output.headers["x-amz-id-2"],
1524
+ cfId: output.headers["x-amz-cf-id"]
1525
+ }), "deserializeMetadata");
1526
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1527
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(ACMServiceException);
1528
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1529
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1530
+ const contents = {
1531
+ protocol,
1532
+ hostname,
1533
+ port,
1534
+ method: "POST",
1535
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1536
+ headers
1537
+ };
1538
+ if (resolvedHostname !== void 0) {
1539
+ contents.hostname = resolvedHostname;
1540
+ }
1541
+ if (body !== void 0) {
1542
+ contents.body = body;
1543
+ }
1544
+ return new import_protocol_http.HttpRequest(contents);
1545
+ }, "buildHttpRpcRequest");
1546
+ function sharedHeaders(operation) {
1547
+ return {
1548
+ "content-type": "application/x-amz-json-1.1",
1549
+ "x-amz-target": `CertificateManager.${operation}`
1550
+ };
1551
+ }
1552
+ __name(sharedHeaders, "sharedHeaders");
1553
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1554
+ if (encoded.length) {
1555
+ return JSON.parse(encoded);
1556
+ }
1557
+ return {};
1558
+ }), "parseBody");
1559
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1560
+ const value = await parseBody(errorBody, context);
1561
+ value.message = value.message ?? value.Message;
1562
+ return value;
1563
+ }, "parseErrorBody");
1564
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1565
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1566
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1567
+ let cleanValue = rawValue;
1568
+ if (typeof cleanValue === "number") {
1569
+ cleanValue = cleanValue.toString();
1570
+ }
1571
+ if (cleanValue.indexOf(",") >= 0) {
1572
+ cleanValue = cleanValue.split(",")[0];
1573
+ }
1574
+ if (cleanValue.indexOf(":") >= 0) {
1575
+ cleanValue = cleanValue.split(":")[0];
1576
+ }
1577
+ if (cleanValue.indexOf("#") >= 0) {
1578
+ cleanValue = cleanValue.split("#")[1];
1579
+ }
1580
+ return cleanValue;
1581
+ }, "sanitizeErrorCode");
1582
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1583
+ if (headerKey !== void 0) {
1584
+ return sanitizeErrorCode(output.headers[headerKey]);
1585
+ }
1586
+ if (data.code !== void 0) {
1587
+ return sanitizeErrorCode(data.code);
1588
+ }
1589
+ if (data["__type"] !== void 0) {
1590
+ return sanitizeErrorCode(data["__type"]);
1591
+ }
1592
+ }, "loadRestJsonErrorCode");
1593
+
1594
+ // src/commands/AddTagsToCertificateCommand.ts
1595
+ var _AddTagsToCertificateCommand = class _AddTagsToCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
1596
+ ...commonParams
1597
+ }).m(function(Command, cs, config, o) {
1598
+ return [
1599
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1600
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1601
+ ];
1602
+ }).s("CertificateManager", "AddTagsToCertificate", {}).n("ACMClient", "AddTagsToCertificateCommand").f(void 0, void 0).ser(se_AddTagsToCertificateCommand).de(de_AddTagsToCertificateCommand).build() {
1603
+ };
1604
+ __name(_AddTagsToCertificateCommand, "AddTagsToCertificateCommand");
1605
+ var AddTagsToCertificateCommand = _AddTagsToCertificateCommand;
1606
+
1607
+ // src/commands/DeleteCertificateCommand.ts
1608
+
1609
+
1610
+
1611
+
1612
+ var _DeleteCertificateCommand = class _DeleteCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
1613
+ ...commonParams
1614
+ }).m(function(Command, cs, config, o) {
1615
+ return [
1616
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1617
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1618
+ ];
1619
+ }).s("CertificateManager", "DeleteCertificate", {}).n("ACMClient", "DeleteCertificateCommand").f(void 0, void 0).ser(se_DeleteCertificateCommand).de(de_DeleteCertificateCommand).build() {
1620
+ };
1621
+ __name(_DeleteCertificateCommand, "DeleteCertificateCommand");
1622
+ var DeleteCertificateCommand = _DeleteCertificateCommand;
1623
+
1624
+ // src/commands/DescribeCertificateCommand.ts
1625
+
1626
+
1627
+
1628
+
1629
+ var _DescribeCertificateCommand = class _DescribeCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
1630
+ ...commonParams
1631
+ }).m(function(Command, cs, config, o) {
1632
+ return [
1633
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1634
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1635
+ ];
1636
+ }).s("CertificateManager", "DescribeCertificate", {}).n("ACMClient", "DescribeCertificateCommand").f(void 0, void 0).ser(se_DescribeCertificateCommand).de(de_DescribeCertificateCommand).build() {
1637
+ };
1638
+ __name(_DescribeCertificateCommand, "DescribeCertificateCommand");
1639
+ var DescribeCertificateCommand = _DescribeCertificateCommand;
1640
+
1641
+ // src/commands/ExportCertificateCommand.ts
1642
+
1643
+
1644
+
1645
+
1646
+ var _ExportCertificateCommand = class _ExportCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
1647
+ ...commonParams
1648
+ }).m(function(Command, cs, config, o) {
1649
+ return [
1650
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1651
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1652
+ ];
1653
+ }).s("CertificateManager", "ExportCertificate", {}).n("ACMClient", "ExportCertificateCommand").f(ExportCertificateRequestFilterSensitiveLog, ExportCertificateResponseFilterSensitiveLog).ser(se_ExportCertificateCommand).de(de_ExportCertificateCommand).build() {
1654
+ };
1655
+ __name(_ExportCertificateCommand, "ExportCertificateCommand");
1656
+ var ExportCertificateCommand = _ExportCertificateCommand;
1657
+
1658
+ // src/commands/GetAccountConfigurationCommand.ts
1659
+
1660
+
1661
+
1662
+
1663
+ var _GetAccountConfigurationCommand = class _GetAccountConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
1664
+ ...commonParams
1665
+ }).m(function(Command, cs, config, o) {
1666
+ return [
1667
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1668
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1669
+ ];
1670
+ }).s("CertificateManager", "GetAccountConfiguration", {}).n("ACMClient", "GetAccountConfigurationCommand").f(void 0, void 0).ser(se_GetAccountConfigurationCommand).de(de_GetAccountConfigurationCommand).build() {
1671
+ };
1672
+ __name(_GetAccountConfigurationCommand, "GetAccountConfigurationCommand");
1673
+ var GetAccountConfigurationCommand = _GetAccountConfigurationCommand;
1674
+
1675
+ // src/commands/GetCertificateCommand.ts
1676
+
1677
+
1678
+
1679
+
1680
+ var _GetCertificateCommand = class _GetCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
1681
+ ...commonParams
1682
+ }).m(function(Command, cs, config, o) {
1683
+ return [
1684
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1685
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1686
+ ];
1687
+ }).s("CertificateManager", "GetCertificate", {}).n("ACMClient", "GetCertificateCommand").f(void 0, void 0).ser(se_GetCertificateCommand).de(de_GetCertificateCommand).build() {
1688
+ };
1689
+ __name(_GetCertificateCommand, "GetCertificateCommand");
1690
+ var GetCertificateCommand = _GetCertificateCommand;
1691
+
1692
+ // src/commands/ImportCertificateCommand.ts
1693
+
1694
+
1695
+
1696
+
1697
+ var _ImportCertificateCommand = class _ImportCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
1698
+ ...commonParams
1699
+ }).m(function(Command, cs, config, o) {
1700
+ return [
1701
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1702
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1703
+ ];
1704
+ }).s("CertificateManager", "ImportCertificate", {}).n("ACMClient", "ImportCertificateCommand").f(ImportCertificateRequestFilterSensitiveLog, void 0).ser(se_ImportCertificateCommand).de(de_ImportCertificateCommand).build() {
1705
+ };
1706
+ __name(_ImportCertificateCommand, "ImportCertificateCommand");
1707
+ var ImportCertificateCommand = _ImportCertificateCommand;
1708
+
1709
+ // src/commands/ListCertificatesCommand.ts
1710
+
1711
+
1712
+
1713
+
1714
+ var _ListCertificatesCommand = class _ListCertificatesCommand extends import_smithy_client.Command.classBuilder().ep({
1715
+ ...commonParams
1716
+ }).m(function(Command, cs, config, o) {
1717
+ return [
1718
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1719
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1720
+ ];
1721
+ }).s("CertificateManager", "ListCertificates", {}).n("ACMClient", "ListCertificatesCommand").f(void 0, void 0).ser(se_ListCertificatesCommand).de(de_ListCertificatesCommand).build() {
1722
+ };
1723
+ __name(_ListCertificatesCommand, "ListCertificatesCommand");
1724
+ var ListCertificatesCommand = _ListCertificatesCommand;
1725
+
1726
+ // src/commands/ListTagsForCertificateCommand.ts
1727
+
1728
+
1729
+
1730
+
1731
+ var _ListTagsForCertificateCommand = class _ListTagsForCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
1732
+ ...commonParams
1733
+ }).m(function(Command, cs, config, o) {
1734
+ return [
1735
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1736
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1737
+ ];
1738
+ }).s("CertificateManager", "ListTagsForCertificate", {}).n("ACMClient", "ListTagsForCertificateCommand").f(void 0, void 0).ser(se_ListTagsForCertificateCommand).de(de_ListTagsForCertificateCommand).build() {
1739
+ };
1740
+ __name(_ListTagsForCertificateCommand, "ListTagsForCertificateCommand");
1741
+ var ListTagsForCertificateCommand = _ListTagsForCertificateCommand;
1742
+
1743
+ // src/commands/PutAccountConfigurationCommand.ts
1744
+
1745
+
1746
+
1747
+
1748
+ var _PutAccountConfigurationCommand = class _PutAccountConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
1749
+ ...commonParams
1750
+ }).m(function(Command, cs, config, o) {
1751
+ return [
1752
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1753
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1754
+ ];
1755
+ }).s("CertificateManager", "PutAccountConfiguration", {}).n("ACMClient", "PutAccountConfigurationCommand").f(void 0, void 0).ser(se_PutAccountConfigurationCommand).de(de_PutAccountConfigurationCommand).build() {
1756
+ };
1757
+ __name(_PutAccountConfigurationCommand, "PutAccountConfigurationCommand");
1758
+ var PutAccountConfigurationCommand = _PutAccountConfigurationCommand;
1759
+
1760
+ // src/commands/RemoveTagsFromCertificateCommand.ts
1761
+
1762
+
1763
+
1764
+
1765
+ var _RemoveTagsFromCertificateCommand = class _RemoveTagsFromCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
1766
+ ...commonParams
1767
+ }).m(function(Command, cs, config, o) {
1768
+ return [
1769
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1770
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1771
+ ];
1772
+ }).s("CertificateManager", "RemoveTagsFromCertificate", {}).n("ACMClient", "RemoveTagsFromCertificateCommand").f(void 0, void 0).ser(se_RemoveTagsFromCertificateCommand).de(de_RemoveTagsFromCertificateCommand).build() {
1773
+ };
1774
+ __name(_RemoveTagsFromCertificateCommand, "RemoveTagsFromCertificateCommand");
1775
+ var RemoveTagsFromCertificateCommand = _RemoveTagsFromCertificateCommand;
1776
+
1777
+ // src/commands/RenewCertificateCommand.ts
1778
+
1779
+
1780
+
1781
+
1782
+ var _RenewCertificateCommand = class _RenewCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
1783
+ ...commonParams
1784
+ }).m(function(Command, cs, config, o) {
1785
+ return [
1786
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1787
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1788
+ ];
1789
+ }).s("CertificateManager", "RenewCertificate", {}).n("ACMClient", "RenewCertificateCommand").f(void 0, void 0).ser(se_RenewCertificateCommand).de(de_RenewCertificateCommand).build() {
1790
+ };
1791
+ __name(_RenewCertificateCommand, "RenewCertificateCommand");
1792
+ var RenewCertificateCommand = _RenewCertificateCommand;
1793
+
1794
+ // src/commands/RequestCertificateCommand.ts
1795
+
1796
+
1797
+
1798
+
1799
+ var _RequestCertificateCommand = class _RequestCertificateCommand extends import_smithy_client.Command.classBuilder().ep({
1800
+ ...commonParams
1801
+ }).m(function(Command, cs, config, o) {
1802
+ return [
1803
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1804
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1805
+ ];
1806
+ }).s("CertificateManager", "RequestCertificate", {}).n("ACMClient", "RequestCertificateCommand").f(void 0, void 0).ser(se_RequestCertificateCommand).de(de_RequestCertificateCommand).build() {
1807
+ };
1808
+ __name(_RequestCertificateCommand, "RequestCertificateCommand");
1809
+ var RequestCertificateCommand = _RequestCertificateCommand;
1810
+
1811
+ // src/commands/ResendValidationEmailCommand.ts
1812
+
1813
+
1814
+
1815
+
1816
+ var _ResendValidationEmailCommand = class _ResendValidationEmailCommand extends import_smithy_client.Command.classBuilder().ep({
1817
+ ...commonParams
1818
+ }).m(function(Command, cs, config, o) {
1819
+ return [
1820
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1821
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1822
+ ];
1823
+ }).s("CertificateManager", "ResendValidationEmail", {}).n("ACMClient", "ResendValidationEmailCommand").f(void 0, void 0).ser(se_ResendValidationEmailCommand).de(de_ResendValidationEmailCommand).build() {
1824
+ };
1825
+ __name(_ResendValidationEmailCommand, "ResendValidationEmailCommand");
1826
+ var ResendValidationEmailCommand = _ResendValidationEmailCommand;
1827
+
1828
+ // src/commands/UpdateCertificateOptionsCommand.ts
1829
+
1830
+
1831
+
1832
+
1833
+ var _UpdateCertificateOptionsCommand = class _UpdateCertificateOptionsCommand extends import_smithy_client.Command.classBuilder().ep({
1834
+ ...commonParams
1835
+ }).m(function(Command, cs, config, o) {
1836
+ return [
1837
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1838
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1839
+ ];
1840
+ }).s("CertificateManager", "UpdateCertificateOptions", {}).n("ACMClient", "UpdateCertificateOptionsCommand").f(void 0, void 0).ser(se_UpdateCertificateOptionsCommand).de(de_UpdateCertificateOptionsCommand).build() {
1841
+ };
1842
+ __name(_UpdateCertificateOptionsCommand, "UpdateCertificateOptionsCommand");
1843
+ var UpdateCertificateOptionsCommand = _UpdateCertificateOptionsCommand;
1844
+
1845
+ // src/ACM.ts
1846
+ var commands = {
1847
+ AddTagsToCertificateCommand,
1848
+ DeleteCertificateCommand,
1849
+ DescribeCertificateCommand,
1850
+ ExportCertificateCommand,
1851
+ GetAccountConfigurationCommand,
1852
+ GetCertificateCommand,
1853
+ ImportCertificateCommand,
1854
+ ListCertificatesCommand,
1855
+ ListTagsForCertificateCommand,
1856
+ PutAccountConfigurationCommand,
1857
+ RemoveTagsFromCertificateCommand,
1858
+ RenewCertificateCommand,
1859
+ RequestCertificateCommand,
1860
+ ResendValidationEmailCommand,
1861
+ UpdateCertificateOptionsCommand
1862
+ };
1863
+ var _ACM = class _ACM extends ACMClient {
1864
+ };
1865
+ __name(_ACM, "ACM");
1866
+ var ACM = _ACM;
1867
+ (0, import_smithy_client.createAggregatedClient)(commands, ACM);
1868
+
1869
+ // src/pagination/ListCertificatesPaginator.ts
1870
+ var import_core = require("@smithy/core");
1871
+ var paginateListCertificates = (0, import_core.createPaginator)(ACMClient, ListCertificatesCommand, "NextToken", "NextToken", "MaxItems");
1872
+
1873
+ // src/waiters/waitForCertificateValidated.ts
1874
+ var import_util_waiter = require("@smithy/util-waiter");
1875
+ var checkState = /* @__PURE__ */ __name(async (client, input) => {
1876
+ let reason;
1877
+ try {
1878
+ const result = await client.send(new DescribeCertificateCommand(input));
1879
+ reason = result;
1880
+ try {
1881
+ const returnComparator = /* @__PURE__ */ __name(() => {
1882
+ const flat_1 = [].concat(...result.Certificate.DomainValidationOptions);
1883
+ const projection_3 = flat_1.map((element_2) => {
1884
+ return element_2.ValidationStatus;
1885
+ });
1886
+ return projection_3;
1887
+ }, "returnComparator");
1888
+ let allStringEq_5 = returnComparator().length > 0;
1889
+ for (const element_4 of returnComparator()) {
1890
+ allStringEq_5 = allStringEq_5 && element_4 == "SUCCESS";
1891
+ }
1892
+ if (allStringEq_5) {
1893
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
1894
+ }
1895
+ } catch (e) {
1896
+ }
1897
+ try {
1898
+ const returnComparator = /* @__PURE__ */ __name(() => {
1899
+ const flat_1 = [].concat(...result.Certificate.DomainValidationOptions);
1900
+ const projection_3 = flat_1.map((element_2) => {
1901
+ return element_2.ValidationStatus;
1902
+ });
1903
+ return projection_3;
1904
+ }, "returnComparator");
1905
+ for (const anyStringEq_4 of returnComparator()) {
1906
+ if (anyStringEq_4 == "PENDING_VALIDATION") {
1907
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
1908
+ }
1909
+ }
1910
+ } catch (e) {
1911
+ }
1912
+ try {
1913
+ const returnComparator = /* @__PURE__ */ __name(() => {
1914
+ return result.Certificate.Status;
1915
+ }, "returnComparator");
1916
+ if (returnComparator() === "FAILED") {
1917
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
1918
+ }
1919
+ } catch (e) {
1920
+ }
1921
+ } catch (exception) {
1922
+ reason = exception;
1923
+ if (exception.name && exception.name == "ResourceNotFoundException") {
1924
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
1925
+ }
1926
+ }
1927
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
1928
+ }, "checkState");
1929
+ var waitForCertificateValidated = /* @__PURE__ */ __name(async (params, input) => {
1930
+ const serviceDefaults = { minDelay: 60, maxDelay: 120 };
1931
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
1932
+ }, "waitForCertificateValidated");
1933
+ var waitUntilCertificateValidated = /* @__PURE__ */ __name(async (params, input) => {
1934
+ const serviceDefaults = { minDelay: 60, maxDelay: 120 };
1935
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
1936
+ return (0, import_util_waiter.checkExceptions)(result);
1937
+ }, "waitUntilCertificateValidated");
1938
+
1939
+ // src/index.ts
1940
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1941
+ // Annotate the CommonJS export names for ESM import in node:
1942
+ 0 && (module.exports = {
1943
+ ACM,
1944
+ ACMClient,
1945
+ ACMServiceException,
1946
+ AccessDeniedException,
1947
+ AddTagsToCertificateCommand,
1948
+ CertificateStatus,
1949
+ CertificateTransparencyLoggingPreference,
1950
+ CertificateType,
1951
+ ConflictException,
1952
+ DeleteCertificateCommand,
1953
+ DescribeCertificateCommand,
1954
+ DomainStatus,
1955
+ ExportCertificateCommand,
1956
+ ExportCertificateRequestFilterSensitiveLog,
1957
+ ExportCertificateResponseFilterSensitiveLog,
1958
+ ExtendedKeyUsageName,
1959
+ FailureReason,
1960
+ GetAccountConfigurationCommand,
1961
+ GetCertificateCommand,
1962
+ ImportCertificateCommand,
1963
+ ImportCertificateRequestFilterSensitiveLog,
1964
+ InvalidArgsException,
1965
+ InvalidArnException,
1966
+ InvalidDomainValidationOptionsException,
1967
+ InvalidParameterException,
1968
+ InvalidStateException,
1969
+ InvalidTagException,
1970
+ KeyAlgorithm,
1971
+ KeyUsageName,
1972
+ LimitExceededException,
1973
+ ListCertificatesCommand,
1974
+ ListTagsForCertificateCommand,
1975
+ PutAccountConfigurationCommand,
1976
+ RecordType,
1977
+ RemoveTagsFromCertificateCommand,
1978
+ RenewCertificateCommand,
1979
+ RenewalEligibility,
1980
+ RenewalStatus,
1981
+ RequestCertificateCommand,
1982
+ RequestInProgressException,
1983
+ ResendValidationEmailCommand,
1984
+ ResourceInUseException,
1985
+ ResourceNotFoundException,
1986
+ RevocationReason,
1987
+ SortBy,
1988
+ SortOrder,
1989
+ TagPolicyException,
1990
+ ThrottlingException,
1991
+ TooManyTagsException,
1992
+ UpdateCertificateOptionsCommand,
1993
+ ValidationException,
1994
+ ValidationMethod,
1995
+ __Client,
1996
+ paginateListCertificates,
1997
+ waitForCertificateValidated,
1998
+ waitUntilCertificateValidated
1999
+ });