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