@aws-sdk/client-acm 3.180.0 → 3.183.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 (44) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +3 -3
  3. package/dist-cjs/models/models_0.js +11 -2
  4. package/dist-cjs/protocols/Aws_json1_1.js +65 -15
  5. package/dist-es/ACM.js +62 -69
  6. package/dist-es/ACMClient.js +22 -28
  7. package/dist-es/commands/AddTagsToCertificateCommand.js +22 -29
  8. package/dist-es/commands/DeleteCertificateCommand.js +22 -29
  9. package/dist-es/commands/DescribeCertificateCommand.js +21 -28
  10. package/dist-es/commands/ExportCertificateCommand.js +21 -28
  11. package/dist-es/commands/GetAccountConfigurationCommand.js +22 -29
  12. package/dist-es/commands/GetCertificateCommand.js +21 -28
  13. package/dist-es/commands/ImportCertificateCommand.js +21 -28
  14. package/dist-es/commands/ListCertificatesCommand.js +21 -28
  15. package/dist-es/commands/ListTagsForCertificateCommand.js +21 -28
  16. package/dist-es/commands/PutAccountConfigurationCommand.js +22 -29
  17. package/dist-es/commands/RemoveTagsFromCertificateCommand.js +22 -29
  18. package/dist-es/commands/RenewCertificateCommand.js +22 -29
  19. package/dist-es/commands/RequestCertificateCommand.js +21 -28
  20. package/dist-es/commands/ResendValidationEmailCommand.js +22 -29
  21. package/dist-es/commands/UpdateCertificateOptionsCommand.js +22 -29
  22. package/dist-es/endpoints.js +8 -8
  23. package/dist-es/models/ACMServiceException.js +5 -10
  24. package/dist-es/models/models_0.js +291 -212
  25. package/dist-es/pagination/ListCertificatesPaginator.js +25 -68
  26. package/dist-es/protocols/Aws_json1_1.js +1164 -1432
  27. package/dist-es/runtimeConfig.browser.js +26 -12
  28. package/dist-es/runtimeConfig.js +30 -12
  29. package/dist-es/runtimeConfig.native.js +8 -5
  30. package/dist-es/runtimeConfig.shared.js +8 -11
  31. package/dist-es/waiters/waitForCertificateValidated.js +61 -102
  32. package/dist-types/ACM.d.ts +18 -27
  33. package/dist-types/ACMClient.d.ts +3 -3
  34. package/dist-types/commands/AddTagsToCertificateCommand.d.ts +0 -2
  35. package/dist-types/commands/DescribeCertificateCommand.d.ts +2 -0
  36. package/dist-types/commands/GetAccountConfigurationCommand.d.ts +1 -2
  37. package/dist-types/commands/ImportCertificateCommand.d.ts +2 -7
  38. package/dist-types/commands/PutAccountConfigurationCommand.d.ts +3 -6
  39. package/dist-types/commands/RemoveTagsFromCertificateCommand.d.ts +0 -1
  40. package/dist-types/commands/RenewCertificateCommand.d.ts +2 -2
  41. package/dist-types/commands/RequestCertificateCommand.d.ts +5 -4
  42. package/dist-types/models/models_0.d.ts +153 -50
  43. package/dist-types/ts3.4/models/models_0.d.ts +25 -0
  44. package/package.json +34 -34
package/CHANGELOG.md CHANGED
@@ -3,6 +3,31 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-acm
9
+
10
+
11
+
12
+
13
+
14
+ # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
20
+ * **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
21
+
22
+
23
+ ### Features
24
+
25
+ * **client-acm:** This update returns additional certificate details such as certificate SANs and allows sorting in the ListCertificates API. ([0afc7d5](https://github.com/aws/aws-sdk-js-v3/commit/0afc7d5b2b171d75c36712c60e87becb4dc82209))
26
+
27
+
28
+
29
+
30
+
6
31
  # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
7
32
 
8
33
  **Note:** Version bump only for package @aws-sdk/client-acm
package/README.md CHANGED
@@ -9,10 +9,10 @@
9
9
 
10
10
  AWS SDK for JavaScript ACM Client for Node.js, Browser and React Native.
11
11
 
12
- <fullname>Amazon Web Services Certificate Manager</fullname>
12
+ <fullname>Certificate Manager</fullname>
13
13
 
14
- <p>You can use Amazon Web Services Certificate Manager (ACM) to manage SSL/TLS certificates for your Amazon Web Services-based websites
15
- and applications. For more information about using ACM, see the <a href="https://docs.aws.amazon.com/acm/latest/userguide/">Amazon Web Services Certificate Manager User Guide</a>.</p>
14
+ <p>You can use Certificate Manager (ACM) to manage SSL/TLS certificates for your Amazon Web Services-based websites
15
+ and applications. For more information about using ACM, see the <a href="https://docs.aws.amazon.com/acm/latest/userguide/">Certificate Manager User Guide</a>.</p>
16
16
 
17
17
  ## Installing
18
18
 
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FiltersFilterSensitiveLog = exports.ImportCertificateResponseFilterSensitiveLog = exports.ImportCertificateRequestFilterSensitiveLog = exports.GetCertificateResponseFilterSensitiveLog = exports.GetCertificateRequestFilterSensitiveLog = exports.GetAccountConfigurationResponseFilterSensitiveLog = exports.ExpiryEventsConfigurationFilterSensitiveLog = exports.ExportCertificateResponseFilterSensitiveLog = exports.ExportCertificateRequestFilterSensitiveLog = exports.DescribeCertificateResponseFilterSensitiveLog = exports.DescribeCertificateRequestFilterSensitiveLog = exports.DeleteCertificateRequestFilterSensitiveLog = exports.CertificateDetailFilterSensitiveLog = exports.RenewalSummaryFilterSensitiveLog = exports.CertificateOptionsFilterSensitiveLog = exports.KeyUsageFilterSensitiveLog = exports.ExtendedKeyUsageFilterSensitiveLog = exports.DomainValidationFilterSensitiveLog = exports.ResourceRecordFilterSensitiveLog = exports.AddTagsToCertificateRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.InvalidStateException = exports.InvalidDomainValidationOptionsException = exports.ValidationException = exports.ConflictException = exports.InvalidArgsException = exports.LimitExceededException = exports.RequestInProgressException = exports.ResourceInUseException = exports.CertificateType = exports.CertificateStatus = exports.RevocationReason = exports.RenewalStatus = exports.RenewalEligibility = exports.CertificateTransparencyLoggingPreference = exports.KeyUsageName = exports.KeyAlgorithm = exports.FailureReason = exports.ExtendedKeyUsageName = exports.DomainStatus = exports.ValidationMethod = exports.RecordType = exports.TooManyTagsException = exports.ThrottlingException = exports.TagPolicyException = exports.ResourceNotFoundException = exports.InvalidTagException = exports.InvalidParameterException = exports.InvalidArnException = exports.AccessDeniedException = void 0;
4
- exports.UpdateCertificateOptionsRequestFilterSensitiveLog = exports.ResendValidationEmailRequestFilterSensitiveLog = exports.RequestCertificateResponseFilterSensitiveLog = exports.RequestCertificateRequestFilterSensitiveLog = exports.DomainValidationOptionFilterSensitiveLog = exports.RenewCertificateRequestFilterSensitiveLog = exports.RemoveTagsFromCertificateRequestFilterSensitiveLog = exports.PutAccountConfigurationRequestFilterSensitiveLog = exports.ListTagsForCertificateResponseFilterSensitiveLog = exports.ListTagsForCertificateRequestFilterSensitiveLog = exports.ListCertificatesResponseFilterSensitiveLog = exports.CertificateSummaryFilterSensitiveLog = exports.ListCertificatesRequestFilterSensitiveLog = void 0;
3
+ exports.ImportCertificateRequestFilterSensitiveLog = exports.GetCertificateResponseFilterSensitiveLog = exports.GetCertificateRequestFilterSensitiveLog = exports.GetAccountConfigurationResponseFilterSensitiveLog = exports.ExpiryEventsConfigurationFilterSensitiveLog = exports.ExportCertificateResponseFilterSensitiveLog = exports.ExportCertificateRequestFilterSensitiveLog = exports.DescribeCertificateResponseFilterSensitiveLog = exports.DescribeCertificateRequestFilterSensitiveLog = exports.DeleteCertificateRequestFilterSensitiveLog = exports.CertificateDetailFilterSensitiveLog = exports.RenewalSummaryFilterSensitiveLog = exports.CertificateOptionsFilterSensitiveLog = exports.KeyUsageFilterSensitiveLog = exports.ExtendedKeyUsageFilterSensitiveLog = exports.DomainValidationFilterSensitiveLog = exports.ResourceRecordFilterSensitiveLog = exports.AddTagsToCertificateRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.InvalidStateException = exports.InvalidDomainValidationOptionsException = exports.ValidationException = exports.ConflictException = exports.SortOrder = exports.SortBy = exports.InvalidArgsException = exports.LimitExceededException = exports.RequestInProgressException = exports.ResourceInUseException = exports.CertificateType = exports.CertificateStatus = exports.RevocationReason = exports.RenewalStatus = exports.RenewalEligibility = exports.CertificateTransparencyLoggingPreference = exports.KeyUsageName = exports.KeyAlgorithm = exports.FailureReason = exports.ExtendedKeyUsageName = exports.DomainStatus = exports.ValidationMethod = exports.RecordType = exports.TooManyTagsException = exports.ThrottlingException = exports.TagPolicyException = exports.ResourceNotFoundException = exports.InvalidTagException = exports.InvalidParameterException = exports.InvalidArnException = exports.AccessDeniedException = void 0;
4
+ exports.UpdateCertificateOptionsRequestFilterSensitiveLog = exports.ResendValidationEmailRequestFilterSensitiveLog = exports.RequestCertificateResponseFilterSensitiveLog = exports.RequestCertificateRequestFilterSensitiveLog = exports.DomainValidationOptionFilterSensitiveLog = exports.RenewCertificateRequestFilterSensitiveLog = exports.RemoveTagsFromCertificateRequestFilterSensitiveLog = exports.PutAccountConfigurationRequestFilterSensitiveLog = exports.ListTagsForCertificateResponseFilterSensitiveLog = exports.ListTagsForCertificateRequestFilterSensitiveLog = exports.ListCertificatesResponseFilterSensitiveLog = exports.CertificateSummaryFilterSensitiveLog = exports.ListCertificatesRequestFilterSensitiveLog = exports.FiltersFilterSensitiveLog = exports.ImportCertificateResponseFilterSensitiveLog = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const ACMServiceException_1 = require("./ACMServiceException");
7
7
  class AccessDeniedException extends ACMServiceException_1.ACMServiceException {
@@ -281,6 +281,15 @@ class InvalidArgsException extends ACMServiceException_1.ACMServiceException {
281
281
  }
282
282
  }
283
283
  exports.InvalidArgsException = InvalidArgsException;
284
+ var SortBy;
285
+ (function (SortBy) {
286
+ SortBy["CREATED_AT"] = "CREATED_AT";
287
+ })(SortBy = exports.SortBy || (exports.SortBy = {}));
288
+ var SortOrder;
289
+ (function (SortOrder) {
290
+ SortOrder["ASCENDING"] = "ASCENDING";
291
+ SortOrder["DESCENDING"] = "DESCENDING";
292
+ })(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
284
293
  class ConflictException extends ACMServiceException_1.ACMServiceException {
285
294
  constructor(opts) {
286
295
  super({
@@ -168,7 +168,7 @@ exports.deserializeAws_json1_1AddTagsToCertificateCommand = deserializeAws_json1
168
168
  const deserializeAws_json1_1AddTagsToCertificateCommandError = async (output, context) => {
169
169
  const parsedOutput = {
170
170
  ...output,
171
- body: await parseBody(output.body, context),
171
+ body: await parseErrorBody(output.body, context),
172
172
  };
173
173
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
174
174
  switch (errorCode) {
@@ -217,7 +217,7 @@ exports.deserializeAws_json1_1DeleteCertificateCommand = deserializeAws_json1_1D
217
217
  const deserializeAws_json1_1DeleteCertificateCommandError = async (output, context) => {
218
218
  const parsedOutput = {
219
219
  ...output,
220
- body: await parseBody(output.body, context),
220
+ body: await parseErrorBody(output.body, context),
221
221
  };
222
222
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
223
223
  switch (errorCode) {
@@ -257,7 +257,7 @@ exports.deserializeAws_json1_1DescribeCertificateCommand = deserializeAws_json1_
257
257
  const deserializeAws_json1_1DescribeCertificateCommandError = async (output, context) => {
258
258
  const parsedOutput = {
259
259
  ...output,
260
- body: await parseBody(output.body, context),
260
+ body: await parseErrorBody(output.body, context),
261
261
  };
262
262
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
263
263
  switch (errorCode) {
@@ -294,7 +294,7 @@ exports.deserializeAws_json1_1ExportCertificateCommand = deserializeAws_json1_1E
294
294
  const deserializeAws_json1_1ExportCertificateCommandError = async (output, context) => {
295
295
  const parsedOutput = {
296
296
  ...output,
297
- body: await parseBody(output.body, context),
297
+ body: await parseErrorBody(output.body, context),
298
298
  };
299
299
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
300
300
  switch (errorCode) {
@@ -334,7 +334,7 @@ exports.deserializeAws_json1_1GetAccountConfigurationCommand = deserializeAws_js
334
334
  const deserializeAws_json1_1GetAccountConfigurationCommandError = async (output, context) => {
335
335
  const parsedOutput = {
336
336
  ...output,
337
- body: await parseBody(output.body, context),
337
+ body: await parseErrorBody(output.body, context),
338
338
  };
339
339
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
340
340
  switch (errorCode) {
@@ -371,7 +371,7 @@ exports.deserializeAws_json1_1GetCertificateCommand = deserializeAws_json1_1GetC
371
371
  const deserializeAws_json1_1GetCertificateCommandError = async (output, context) => {
372
372
  const parsedOutput = {
373
373
  ...output,
374
- body: await parseBody(output.body, context),
374
+ body: await parseErrorBody(output.body, context),
375
375
  };
376
376
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
377
377
  switch (errorCode) {
@@ -411,7 +411,7 @@ exports.deserializeAws_json1_1ImportCertificateCommand = deserializeAws_json1_1I
411
411
  const deserializeAws_json1_1ImportCertificateCommandError = async (output, context) => {
412
412
  const parsedOutput = {
413
413
  ...output,
414
- body: await parseBody(output.body, context),
414
+ body: await parseErrorBody(output.body, context),
415
415
  };
416
416
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
417
417
  switch (errorCode) {
@@ -463,7 +463,7 @@ exports.deserializeAws_json1_1ListCertificatesCommand = deserializeAws_json1_1Li
463
463
  const deserializeAws_json1_1ListCertificatesCommandError = async (output, context) => {
464
464
  const parsedOutput = {
465
465
  ...output,
466
- body: await parseBody(output.body, context),
466
+ body: await parseErrorBody(output.body, context),
467
467
  };
468
468
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
469
469
  switch (errorCode) {
@@ -497,7 +497,7 @@ exports.deserializeAws_json1_1ListTagsForCertificateCommand = deserializeAws_jso
497
497
  const deserializeAws_json1_1ListTagsForCertificateCommandError = async (output, context) => {
498
498
  const parsedOutput = {
499
499
  ...output,
500
- body: await parseBody(output.body, context),
500
+ body: await parseErrorBody(output.body, context),
501
501
  };
502
502
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
503
503
  switch (errorCode) {
@@ -531,7 +531,7 @@ exports.deserializeAws_json1_1PutAccountConfigurationCommand = deserializeAws_js
531
531
  const deserializeAws_json1_1PutAccountConfigurationCommandError = async (output, context) => {
532
532
  const parsedOutput = {
533
533
  ...output,
534
- body: await parseBody(output.body, context),
534
+ body: await parseErrorBody(output.body, context),
535
535
  };
536
536
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
537
537
  switch (errorCode) {
@@ -571,7 +571,7 @@ exports.deserializeAws_json1_1RemoveTagsFromCertificateCommand = deserializeAws_
571
571
  const deserializeAws_json1_1RemoveTagsFromCertificateCommandError = async (output, context) => {
572
572
  const parsedOutput = {
573
573
  ...output,
574
- body: await parseBody(output.body, context),
574
+ body: await parseErrorBody(output.body, context),
575
575
  };
576
576
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
577
577
  switch (errorCode) {
@@ -617,7 +617,7 @@ exports.deserializeAws_json1_1RenewCertificateCommand = deserializeAws_json1_1Re
617
617
  const deserializeAws_json1_1RenewCertificateCommandError = async (output, context) => {
618
618
  const parsedOutput = {
619
619
  ...output,
620
- body: await parseBody(output.body, context),
620
+ body: await parseErrorBody(output.body, context),
621
621
  };
622
622
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
623
623
  switch (errorCode) {
@@ -654,7 +654,7 @@ exports.deserializeAws_json1_1RequestCertificateCommand = deserializeAws_json1_1
654
654
  const deserializeAws_json1_1RequestCertificateCommandError = async (output, context) => {
655
655
  const parsedOutput = {
656
656
  ...output,
657
- body: await parseBody(output.body, context),
657
+ body: await parseErrorBody(output.body, context),
658
658
  };
659
659
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
660
660
  switch (errorCode) {
@@ -703,7 +703,7 @@ exports.deserializeAws_json1_1ResendValidationEmailCommand = deserializeAws_json
703
703
  const deserializeAws_json1_1ResendValidationEmailCommandError = async (output, context) => {
704
704
  const parsedOutput = {
705
705
  ...output,
706
- body: await parseBody(output.body, context),
706
+ body: await parseErrorBody(output.body, context),
707
707
  };
708
708
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
709
709
  switch (errorCode) {
@@ -743,7 +743,7 @@ exports.deserializeAws_json1_1UpdateCertificateOptionsCommand = deserializeAws_j
743
743
  const deserializeAws_json1_1UpdateCertificateOptionsCommandError = async (output, context) => {
744
744
  const parsedOutput = {
745
745
  ...output,
746
- body: await parseBody(output.body, context),
746
+ body: await parseErrorBody(output.body, context),
747
747
  };
748
748
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
749
749
  switch (errorCode) {
@@ -1026,6 +1026,8 @@ const serializeAws_json1_1ListCertificatesRequest = (input, context) => {
1026
1026
  ...(input.Includes != null && { Includes: serializeAws_json1_1Filters(input.Includes, context) }),
1027
1027
  ...(input.MaxItems != null && { MaxItems: input.MaxItems }),
1028
1028
  ...(input.NextToken != null && { NextToken: input.NextToken }),
1029
+ ...(input.SortBy != null && { SortBy: input.SortBy }),
1030
+ ...(input.SortOrder != null && { SortOrder: input.SortOrder }),
1029
1031
  };
1030
1032
  };
1031
1033
  const serializeAws_json1_1ListTagsForCertificateRequest = (input, context) => {
@@ -1143,7 +1145,27 @@ const deserializeAws_json1_1CertificateOptions = (output, context) => {
1143
1145
  const deserializeAws_json1_1CertificateSummary = (output, context) => {
1144
1146
  return {
1145
1147
  CertificateArn: (0, smithy_client_1.expectString)(output.CertificateArn),
1148
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
1146
1149
  DomainName: (0, smithy_client_1.expectString)(output.DomainName),
1150
+ Exported: (0, smithy_client_1.expectBoolean)(output.Exported),
1151
+ ExtendedKeyUsages: output.ExtendedKeyUsages != null
1152
+ ? deserializeAws_json1_1ExtendedKeyUsageNames(output.ExtendedKeyUsages, context)
1153
+ : undefined,
1154
+ HasAdditionalSubjectAlternativeNames: (0, smithy_client_1.expectBoolean)(output.HasAdditionalSubjectAlternativeNames),
1155
+ ImportedAt: output.ImportedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ImportedAt))) : undefined,
1156
+ InUse: (0, smithy_client_1.expectBoolean)(output.InUse),
1157
+ IssuedAt: output.IssuedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.IssuedAt))) : undefined,
1158
+ KeyAlgorithm: (0, smithy_client_1.expectString)(output.KeyAlgorithm),
1159
+ KeyUsages: output.KeyUsages != null ? deserializeAws_json1_1KeyUsageNames(output.KeyUsages, context) : undefined,
1160
+ NotAfter: output.NotAfter != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotAfter))) : undefined,
1161
+ NotBefore: output.NotBefore != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NotBefore))) : undefined,
1162
+ RenewalEligibility: (0, smithy_client_1.expectString)(output.RenewalEligibility),
1163
+ RevokedAt: output.RevokedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RevokedAt))) : undefined,
1164
+ Status: (0, smithy_client_1.expectString)(output.Status),
1165
+ SubjectAlternativeNameSummaries: output.SubjectAlternativeNameSummaries != null
1166
+ ? deserializeAws_json1_1DomainList(output.SubjectAlternativeNameSummaries, context)
1167
+ : undefined,
1168
+ Type: (0, smithy_client_1.expectString)(output.Type),
1147
1169
  };
1148
1170
  };
1149
1171
  const deserializeAws_json1_1CertificateSummaryList = (output, context) => {
@@ -1230,6 +1252,17 @@ const deserializeAws_json1_1ExtendedKeyUsageList = (output, context) => {
1230
1252
  });
1231
1253
  return retVal;
1232
1254
  };
1255
+ const deserializeAws_json1_1ExtendedKeyUsageNames = (output, context) => {
1256
+ const retVal = (output || [])
1257
+ .filter((e) => e != null)
1258
+ .map((entry) => {
1259
+ if (entry === null) {
1260
+ return null;
1261
+ }
1262
+ return (0, smithy_client_1.expectString)(entry);
1263
+ });
1264
+ return retVal;
1265
+ };
1233
1266
  const deserializeAws_json1_1GetAccountConfigurationResponse = (output, context) => {
1234
1267
  return {
1235
1268
  ExpiryEvents: output.ExpiryEvents != null
@@ -1305,6 +1338,17 @@ const deserializeAws_json1_1KeyUsageList = (output, context) => {
1305
1338
  });
1306
1339
  return retVal;
1307
1340
  };
1341
+ const deserializeAws_json1_1KeyUsageNames = (output, context) => {
1342
+ const retVal = (output || [])
1343
+ .filter((e) => e != null)
1344
+ .map((entry) => {
1345
+ if (entry === null) {
1346
+ return null;
1347
+ }
1348
+ return (0, smithy_client_1.expectString)(entry);
1349
+ });
1350
+ return retVal;
1351
+ };
1308
1352
  const deserializeAws_json1_1LimitExceededException = (output, context) => {
1309
1353
  return {
1310
1354
  message: (0, smithy_client_1.expectString)(output.message),
@@ -1448,6 +1492,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
1448
1492
  }
1449
1493
  return {};
1450
1494
  });
1495
+ const parseErrorBody = async (errorBody, context) => {
1496
+ var _a;
1497
+ const value = await parseBody(errorBody, context);
1498
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
1499
+ return value;
1500
+ };
1451
1501
  const loadRestJsonErrorCode = (output, data) => {
1452
1502
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1453
1503
  const sanitizeErrorCode = (rawValue) => {
package/dist-es/ACM.js CHANGED
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { ACMClient } from "./ACMClient";
3
2
  import { AddTagsToCertificateCommand, } from "./commands/AddTagsToCertificateCommand";
4
3
  import { DeleteCertificateCommand, } from "./commands/DeleteCertificateCommand";
@@ -15,221 +14,215 @@ import { RenewCertificateCommand, } from "./commands/RenewCertificateCommand";
15
14
  import { RequestCertificateCommand, } from "./commands/RequestCertificateCommand";
16
15
  import { ResendValidationEmailCommand, } from "./commands/ResendValidationEmailCommand";
17
16
  import { UpdateCertificateOptionsCommand, } from "./commands/UpdateCertificateOptionsCommand";
18
- var ACM = (function (_super) {
19
- __extends(ACM, _super);
20
- function ACM() {
21
- return _super !== null && _super.apply(this, arguments) || this;
22
- }
23
- ACM.prototype.addTagsToCertificate = function (args, optionsOrCb, cb) {
24
- var command = new AddTagsToCertificateCommand(args);
17
+ export class ACM extends ACMClient {
18
+ addTagsToCertificate(args, optionsOrCb, cb) {
19
+ const command = new AddTagsToCertificateCommand(args);
25
20
  if (typeof optionsOrCb === "function") {
26
21
  this.send(command, optionsOrCb);
27
22
  }
28
23
  else if (typeof cb === "function") {
29
24
  if (typeof optionsOrCb !== "object")
30
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
25
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
31
26
  this.send(command, optionsOrCb || {}, cb);
32
27
  }
33
28
  else {
34
29
  return this.send(command, optionsOrCb);
35
30
  }
36
- };
37
- ACM.prototype.deleteCertificate = function (args, optionsOrCb, cb) {
38
- var command = new DeleteCertificateCommand(args);
31
+ }
32
+ deleteCertificate(args, optionsOrCb, cb) {
33
+ const command = new DeleteCertificateCommand(args);
39
34
  if (typeof optionsOrCb === "function") {
40
35
  this.send(command, optionsOrCb);
41
36
  }
42
37
  else if (typeof cb === "function") {
43
38
  if (typeof optionsOrCb !== "object")
44
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
39
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
45
40
  this.send(command, optionsOrCb || {}, cb);
46
41
  }
47
42
  else {
48
43
  return this.send(command, optionsOrCb);
49
44
  }
50
- };
51
- ACM.prototype.describeCertificate = function (args, optionsOrCb, cb) {
52
- var command = new DescribeCertificateCommand(args);
45
+ }
46
+ describeCertificate(args, optionsOrCb, cb) {
47
+ const command = new DescribeCertificateCommand(args);
53
48
  if (typeof optionsOrCb === "function") {
54
49
  this.send(command, optionsOrCb);
55
50
  }
56
51
  else if (typeof cb === "function") {
57
52
  if (typeof optionsOrCb !== "object")
58
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
53
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
59
54
  this.send(command, optionsOrCb || {}, cb);
60
55
  }
61
56
  else {
62
57
  return this.send(command, optionsOrCb);
63
58
  }
64
- };
65
- ACM.prototype.exportCertificate = function (args, optionsOrCb, cb) {
66
- var command = new ExportCertificateCommand(args);
59
+ }
60
+ exportCertificate(args, optionsOrCb, cb) {
61
+ const command = new ExportCertificateCommand(args);
67
62
  if (typeof optionsOrCb === "function") {
68
63
  this.send(command, optionsOrCb);
69
64
  }
70
65
  else if (typeof cb === "function") {
71
66
  if (typeof optionsOrCb !== "object")
72
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
67
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
73
68
  this.send(command, optionsOrCb || {}, cb);
74
69
  }
75
70
  else {
76
71
  return this.send(command, optionsOrCb);
77
72
  }
78
- };
79
- ACM.prototype.getAccountConfiguration = function (args, optionsOrCb, cb) {
80
- var command = new GetAccountConfigurationCommand(args);
73
+ }
74
+ getAccountConfiguration(args, optionsOrCb, cb) {
75
+ const command = new GetAccountConfigurationCommand(args);
81
76
  if (typeof optionsOrCb === "function") {
82
77
  this.send(command, optionsOrCb);
83
78
  }
84
79
  else if (typeof cb === "function") {
85
80
  if (typeof optionsOrCb !== "object")
86
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
81
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
87
82
  this.send(command, optionsOrCb || {}, cb);
88
83
  }
89
84
  else {
90
85
  return this.send(command, optionsOrCb);
91
86
  }
92
- };
93
- ACM.prototype.getCertificate = function (args, optionsOrCb, cb) {
94
- var command = new GetCertificateCommand(args);
87
+ }
88
+ getCertificate(args, optionsOrCb, cb) {
89
+ const command = new GetCertificateCommand(args);
95
90
  if (typeof optionsOrCb === "function") {
96
91
  this.send(command, optionsOrCb);
97
92
  }
98
93
  else if (typeof cb === "function") {
99
94
  if (typeof optionsOrCb !== "object")
100
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
95
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
101
96
  this.send(command, optionsOrCb || {}, cb);
102
97
  }
103
98
  else {
104
99
  return this.send(command, optionsOrCb);
105
100
  }
106
- };
107
- ACM.prototype.importCertificate = function (args, optionsOrCb, cb) {
108
- var command = new ImportCertificateCommand(args);
101
+ }
102
+ importCertificate(args, optionsOrCb, cb) {
103
+ const command = new ImportCertificateCommand(args);
109
104
  if (typeof optionsOrCb === "function") {
110
105
  this.send(command, optionsOrCb);
111
106
  }
112
107
  else if (typeof cb === "function") {
113
108
  if (typeof optionsOrCb !== "object")
114
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
109
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
115
110
  this.send(command, optionsOrCb || {}, cb);
116
111
  }
117
112
  else {
118
113
  return this.send(command, optionsOrCb);
119
114
  }
120
- };
121
- ACM.prototype.listCertificates = function (args, optionsOrCb, cb) {
122
- var command = new ListCertificatesCommand(args);
115
+ }
116
+ listCertificates(args, optionsOrCb, cb) {
117
+ const command = new ListCertificatesCommand(args);
123
118
  if (typeof optionsOrCb === "function") {
124
119
  this.send(command, optionsOrCb);
125
120
  }
126
121
  else if (typeof cb === "function") {
127
122
  if (typeof optionsOrCb !== "object")
128
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
123
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
129
124
  this.send(command, optionsOrCb || {}, cb);
130
125
  }
131
126
  else {
132
127
  return this.send(command, optionsOrCb);
133
128
  }
134
- };
135
- ACM.prototype.listTagsForCertificate = function (args, optionsOrCb, cb) {
136
- var command = new ListTagsForCertificateCommand(args);
129
+ }
130
+ listTagsForCertificate(args, optionsOrCb, cb) {
131
+ const command = new ListTagsForCertificateCommand(args);
137
132
  if (typeof optionsOrCb === "function") {
138
133
  this.send(command, optionsOrCb);
139
134
  }
140
135
  else if (typeof cb === "function") {
141
136
  if (typeof optionsOrCb !== "object")
142
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
137
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
143
138
  this.send(command, optionsOrCb || {}, cb);
144
139
  }
145
140
  else {
146
141
  return this.send(command, optionsOrCb);
147
142
  }
148
- };
149
- ACM.prototype.putAccountConfiguration = function (args, optionsOrCb, cb) {
150
- var command = new PutAccountConfigurationCommand(args);
143
+ }
144
+ putAccountConfiguration(args, optionsOrCb, cb) {
145
+ const command = new PutAccountConfigurationCommand(args);
151
146
  if (typeof optionsOrCb === "function") {
152
147
  this.send(command, optionsOrCb);
153
148
  }
154
149
  else if (typeof cb === "function") {
155
150
  if (typeof optionsOrCb !== "object")
156
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
151
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
157
152
  this.send(command, optionsOrCb || {}, cb);
158
153
  }
159
154
  else {
160
155
  return this.send(command, optionsOrCb);
161
156
  }
162
- };
163
- ACM.prototype.removeTagsFromCertificate = function (args, optionsOrCb, cb) {
164
- var command = new RemoveTagsFromCertificateCommand(args);
157
+ }
158
+ removeTagsFromCertificate(args, optionsOrCb, cb) {
159
+ const command = new RemoveTagsFromCertificateCommand(args);
165
160
  if (typeof optionsOrCb === "function") {
166
161
  this.send(command, optionsOrCb);
167
162
  }
168
163
  else if (typeof cb === "function") {
169
164
  if (typeof optionsOrCb !== "object")
170
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
165
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
171
166
  this.send(command, optionsOrCb || {}, cb);
172
167
  }
173
168
  else {
174
169
  return this.send(command, optionsOrCb);
175
170
  }
176
- };
177
- ACM.prototype.renewCertificate = function (args, optionsOrCb, cb) {
178
- var command = new RenewCertificateCommand(args);
171
+ }
172
+ renewCertificate(args, optionsOrCb, cb) {
173
+ const command = new RenewCertificateCommand(args);
179
174
  if (typeof optionsOrCb === "function") {
180
175
  this.send(command, optionsOrCb);
181
176
  }
182
177
  else if (typeof cb === "function") {
183
178
  if (typeof optionsOrCb !== "object")
184
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
179
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
185
180
  this.send(command, optionsOrCb || {}, cb);
186
181
  }
187
182
  else {
188
183
  return this.send(command, optionsOrCb);
189
184
  }
190
- };
191
- ACM.prototype.requestCertificate = function (args, optionsOrCb, cb) {
192
- var command = new RequestCertificateCommand(args);
185
+ }
186
+ requestCertificate(args, optionsOrCb, cb) {
187
+ const command = new RequestCertificateCommand(args);
193
188
  if (typeof optionsOrCb === "function") {
194
189
  this.send(command, optionsOrCb);
195
190
  }
196
191
  else if (typeof cb === "function") {
197
192
  if (typeof optionsOrCb !== "object")
198
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
193
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
199
194
  this.send(command, optionsOrCb || {}, cb);
200
195
  }
201
196
  else {
202
197
  return this.send(command, optionsOrCb);
203
198
  }
204
- };
205
- ACM.prototype.resendValidationEmail = function (args, optionsOrCb, cb) {
206
- var command = new ResendValidationEmailCommand(args);
199
+ }
200
+ resendValidationEmail(args, optionsOrCb, cb) {
201
+ const command = new ResendValidationEmailCommand(args);
207
202
  if (typeof optionsOrCb === "function") {
208
203
  this.send(command, optionsOrCb);
209
204
  }
210
205
  else if (typeof cb === "function") {
211
206
  if (typeof optionsOrCb !== "object")
212
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
207
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
213
208
  this.send(command, optionsOrCb || {}, cb);
214
209
  }
215
210
  else {
216
211
  return this.send(command, optionsOrCb);
217
212
  }
218
- };
219
- ACM.prototype.updateCertificateOptions = function (args, optionsOrCb, cb) {
220
- var command = new UpdateCertificateOptionsCommand(args);
213
+ }
214
+ updateCertificateOptions(args, optionsOrCb, cb) {
215
+ const command = new UpdateCertificateOptionsCommand(args);
221
216
  if (typeof optionsOrCb === "function") {
222
217
  this.send(command, optionsOrCb);
223
218
  }
224
219
  else if (typeof cb === "function") {
225
220
  if (typeof optionsOrCb !== "object")
226
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
221
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
227
222
  this.send(command, optionsOrCb || {}, cb);
228
223
  }
229
224
  else {
230
225
  return this.send(command, optionsOrCb);
231
226
  }
232
- };
233
- return ACM;
234
- }(ACMClient));
235
- export { ACM };
227
+ }
228
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var ACMClient = (function (_super) {
13
- __extends(ACMClient, _super);
14
- function ACMClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class ACMClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- ACMClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return ACMClient;
38
- }(__Client));
39
- export { ACMClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }