@aws-sdk/client-acm 3.1020.0 → 3.1021.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 (38) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +81 -32
  3. package/dist-cjs/models/errors.js +2 -0
  4. package/dist-cjs/schemas/schemas_0.js +230 -48
  5. package/dist-es/ACM.js +4 -0
  6. package/dist-es/commands/SearchCertificatesCommand.js +16 -0
  7. package/dist-es/commands/index.js +1 -0
  8. package/dist-es/models/enums.js +60 -32
  9. package/dist-es/models/errors.js +2 -0
  10. package/dist-es/pagination/SearchCertificatesPaginator.js +4 -0
  11. package/dist-es/pagination/index.js +1 -0
  12. package/dist-es/schemas/schemas_0.js +228 -46
  13. package/dist-types/ACM.d.ts +15 -0
  14. package/dist-types/ACMClient.d.ts +3 -2
  15. package/dist-types/commands/DeleteCertificateCommand.d.ts +1 -1
  16. package/dist-types/commands/ExportCertificateCommand.d.ts +4 -1
  17. package/dist-types/commands/ImportCertificateCommand.d.ts +3 -0
  18. package/dist-types/commands/RenewCertificateCommand.d.ts +1 -1
  19. package/dist-types/commands/RevokeCertificateCommand.d.ts +1 -1
  20. package/dist-types/commands/SearchCertificatesCommand.d.ts +303 -0
  21. package/dist-types/commands/index.d.ts +1 -0
  22. package/dist-types/models/enums.d.ts +122 -70
  23. package/dist-types/models/errors.d.ts +6 -0
  24. package/dist-types/models/models_0.d.ts +1062 -6
  25. package/dist-types/pagination/SearchCertificatesPaginator.d.ts +7 -0
  26. package/dist-types/pagination/index.d.ts +1 -0
  27. package/dist-types/schemas/schemas_0.d.ts +22 -1
  28. package/dist-types/ts3.4/ACM.d.ts +25 -0
  29. package/dist-types/ts3.4/ACMClient.d.ts +6 -0
  30. package/dist-types/ts3.4/commands/SearchCertificatesCommand.d.ts +51 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  32. package/dist-types/ts3.4/models/enums.d.ts +78 -44
  33. package/dist-types/ts3.4/models/errors.d.ts +2 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +570 -0
  35. package/dist-types/ts3.4/pagination/SearchCertificatesPaginator.d.ts +11 -0
  36. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  37. package/dist-types/ts3.4/schemas/schemas_0.d.ts +22 -0
  38. package/package.json +6 -6
package/README.md CHANGED
@@ -286,6 +286,13 @@ RevokeCertificate
286
286
  </details>
287
287
  <details>
288
288
  <summary>
289
+ SearchCertificates
290
+ </summary>
291
+
292
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/acm/command/SearchCertificatesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-acm/Interface/SearchCertificatesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-acm/Interface/SearchCertificatesCommandOutput/)
293
+ </details>
294
+ <details>
295
+ <summary>
289
296
  UpdateCertificateOptions
290
297
  </summary>
291
298
 
package/dist-cjs/index.js CHANGED
@@ -294,6 +294,18 @@ class RevokeCertificateCommand extends smithyClient.Command
294
294
  .build() {
295
295
  }
296
296
 
297
+ class SearchCertificatesCommand extends smithyClient.Command
298
+ .classBuilder()
299
+ .ep(commonParams)
300
+ .m(function (Command, cs, config, o) {
301
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
302
+ })
303
+ .s("CertificateManager", "SearchCertificates", {})
304
+ .n("ACMClient", "SearchCertificatesCommand")
305
+ .sc(schemas_0.SearchCertificates$)
306
+ .build() {
307
+ }
308
+
297
309
  class UpdateCertificateOptionsCommand extends smithyClient.Command
298
310
  .classBuilder()
299
311
  .ep(commonParams)
@@ -308,6 +320,8 @@ class UpdateCertificateOptionsCommand extends smithyClient.Command
308
320
 
309
321
  const paginateListCertificates = core.createPaginator(ACMClient, ListCertificatesCommand, "NextToken", "NextToken", "MaxItems");
310
322
 
323
+ const paginateSearchCertificates = core.createPaginator(ACMClient, SearchCertificatesCommand, "NextToken", "NextToken", "MaxResults");
324
+
311
325
  const checkState = async (client, input) => {
312
326
  let reason;
313
327
  try {
@@ -389,10 +403,12 @@ const commands = {
389
403
  RequestCertificateCommand,
390
404
  ResendValidationEmailCommand,
391
405
  RevokeCertificateCommand,
406
+ SearchCertificatesCommand,
392
407
  UpdateCertificateOptionsCommand,
393
408
  };
394
409
  const paginators = {
395
410
  paginateListCertificates,
411
+ paginateSearchCertificates,
396
412
  };
397
413
  const waiters = {
398
414
  waitUntilCertificateValidated,
@@ -401,14 +417,45 @@ class ACM extends ACMClient {
401
417
  }
402
418
  smithyClient.createAggregatedClient(commands, ACM, { paginators, waiters });
403
419
 
404
- const RecordType = {
405
- CNAME: "CNAME",
420
+ const CertificateExport = {
421
+ DISABLED: "DISABLED",
422
+ ENABLED: "ENABLED",
423
+ };
424
+ const CertificateManagedBy = {
425
+ CLOUDFRONT: "CLOUDFRONT",
426
+ };
427
+ const RenewalEligibility = {
428
+ ELIGIBLE: "ELIGIBLE",
429
+ INELIGIBLE: "INELIGIBLE",
430
+ };
431
+ const RenewalStatus = {
432
+ FAILED: "FAILED",
433
+ PENDING_AUTO_RENEWAL: "PENDING_AUTO_RENEWAL",
434
+ PENDING_VALIDATION: "PENDING_VALIDATION",
435
+ SUCCESS: "SUCCESS",
436
+ };
437
+ const CertificateStatus = {
438
+ EXPIRED: "EXPIRED",
439
+ FAILED: "FAILED",
440
+ INACTIVE: "INACTIVE",
441
+ ISSUED: "ISSUED",
442
+ PENDING_VALIDATION: "PENDING_VALIDATION",
443
+ REVOKED: "REVOKED",
444
+ VALIDATION_TIMED_OUT: "VALIDATION_TIMED_OUT",
445
+ };
446
+ const CertificateType = {
447
+ AMAZON_ISSUED: "AMAZON_ISSUED",
448
+ IMPORTED: "IMPORTED",
449
+ PRIVATE: "PRIVATE",
406
450
  };
407
451
  const ValidationMethod = {
408
452
  DNS: "DNS",
409
453
  EMAIL: "EMAIL",
410
454
  HTTP: "HTTP",
411
455
  };
456
+ const RecordType = {
457
+ CNAME: "CNAME",
458
+ };
412
459
  const DomainStatus = {
413
460
  FAILED: "FAILED",
414
461
  PENDING_VALIDATION: "PENDING_VALIDATION",
@@ -469,27 +516,10 @@ const KeyUsageName = {
469
516
  KEY_ENCIPHERMENT: "KEY_ENCIPHERMENT",
470
517
  NON_REPUDATION: "NON_REPUDIATION",
471
518
  };
472
- const CertificateManagedBy = {
473
- CLOUDFRONT: "CLOUDFRONT",
474
- };
475
519
  const CertificateTransparencyLoggingPreference = {
476
520
  DISABLED: "DISABLED",
477
521
  ENABLED: "ENABLED",
478
522
  };
479
- const CertificateExport = {
480
- DISABLED: "DISABLED",
481
- ENABLED: "ENABLED",
482
- };
483
- const RenewalEligibility = {
484
- ELIGIBLE: "ELIGIBLE",
485
- INELIGIBLE: "INELIGIBLE",
486
- };
487
- const RenewalStatus = {
488
- FAILED: "FAILED",
489
- PENDING_AUTO_RENEWAL: "PENDING_AUTO_RENEWAL",
490
- PENDING_VALIDATION: "PENDING_VALIDATION",
491
- SUCCESS: "SUCCESS",
492
- };
493
523
  const RevocationReason = {
494
524
  AFFILIATION_CHANGED: "AFFILIATION_CHANGED",
495
525
  A_A_COMPROMISE: "A_A_COMPROMISE",
@@ -503,19 +533,9 @@ const RevocationReason = {
503
533
  SUPERSEDED: "SUPERSEDED",
504
534
  UNSPECIFIED: "UNSPECIFIED",
505
535
  };
506
- const CertificateStatus = {
507
- EXPIRED: "EXPIRED",
508
- FAILED: "FAILED",
509
- INACTIVE: "INACTIVE",
510
- ISSUED: "ISSUED",
511
- PENDING_VALIDATION: "PENDING_VALIDATION",
512
- REVOKED: "REVOKED",
513
- VALIDATION_TIMED_OUT: "VALIDATION_TIMED_OUT",
514
- };
515
- const CertificateType = {
516
- AMAZON_ISSUED: "AMAZON_ISSUED",
517
- IMPORTED: "IMPORTED",
518
- PRIVATE: "PRIVATE",
536
+ const ComparisonOperator = {
537
+ CONTAINS: "CONTAINS",
538
+ EQUALS: "EQUALS",
519
539
  };
520
540
  const SortBy = {
521
541
  CREATED_AT: "CREATED_AT",
@@ -524,6 +544,30 @@ const SortOrder = {
524
544
  ASCENDING: "ASCENDING",
525
545
  DESCENDING: "DESCENDING",
526
546
  };
547
+ const SearchCertificatesSortBy = {
548
+ CERTIFICATE_ARN: "CERTIFICATE_ARN",
549
+ COMMON_NAME: "COMMON_NAME",
550
+ CREATED_AT: "CREATED_AT",
551
+ EXPORTED: "EXPORTED",
552
+ EXPORT_OPTION: "EXPORT_OPTION",
553
+ IMPORTED_AT: "IMPORTED_AT",
554
+ IN_USE: "IN_USE",
555
+ ISSUED_AT: "ISSUED_AT",
556
+ KEY_ALGORITHM: "KEY_ALGORITHM",
557
+ MANAGED_BY: "MANAGED_BY",
558
+ NOT_AFTER: "NOT_AFTER",
559
+ NOT_BEFORE: "NOT_BEFORE",
560
+ RENEWAL_ELIGIBILITY: "RENEWAL_ELIGIBILITY",
561
+ RENEWAL_STATUS: "RENEWAL_STATUS",
562
+ REVOKED_AT: "REVOKED_AT",
563
+ STATUS: "STATUS",
564
+ TYPE: "TYPE",
565
+ VALIDATION_METHOD: "VALIDATION_METHOD",
566
+ };
567
+ const SearchCertificatesSortOrder = {
568
+ ASCENDING: "ASCENDING",
569
+ DESCENDING: "DESCENDING",
570
+ };
527
571
 
528
572
  exports.$Command = smithyClient.Command;
529
573
  exports.__Client = smithyClient.Client;
@@ -536,6 +580,7 @@ exports.CertificateManagedBy = CertificateManagedBy;
536
580
  exports.CertificateStatus = CertificateStatus;
537
581
  exports.CertificateTransparencyLoggingPreference = CertificateTransparencyLoggingPreference;
538
582
  exports.CertificateType = CertificateType;
583
+ exports.ComparisonOperator = ComparisonOperator;
539
584
  exports.DeleteCertificateCommand = DeleteCertificateCommand;
540
585
  exports.DescribeCertificateCommand = DescribeCertificateCommand;
541
586
  exports.DomainStatus = DomainStatus;
@@ -559,11 +604,15 @@ exports.RequestCertificateCommand = RequestCertificateCommand;
559
604
  exports.ResendValidationEmailCommand = ResendValidationEmailCommand;
560
605
  exports.RevocationReason = RevocationReason;
561
606
  exports.RevokeCertificateCommand = RevokeCertificateCommand;
607
+ exports.SearchCertificatesCommand = SearchCertificatesCommand;
608
+ exports.SearchCertificatesSortBy = SearchCertificatesSortBy;
609
+ exports.SearchCertificatesSortOrder = SearchCertificatesSortOrder;
562
610
  exports.SortBy = SortBy;
563
611
  exports.SortOrder = SortOrder;
564
612
  exports.UpdateCertificateOptionsCommand = UpdateCertificateOptionsCommand;
565
613
  exports.ValidationMethod = ValidationMethod;
566
614
  exports.paginateListCertificates = paginateListCertificates;
615
+ exports.paginateSearchCertificates = paginateSearchCertificates;
567
616
  exports.waitForCertificateValidated = waitForCertificateValidated;
568
617
  exports.waitUntilCertificateValidated = waitUntilCertificateValidated;
569
618
  Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
@@ -85,6 +85,7 @@ exports.TagPolicyException = TagPolicyException;
85
85
  class ThrottlingException extends ACMServiceException_1.ACMServiceException {
86
86
  name = "ThrottlingException";
87
87
  $fault = "client";
88
+ throttlingReasons;
88
89
  constructor(opts) {
89
90
  super({
90
91
  name: "ThrottlingException",
@@ -92,6 +93,7 @@ class ThrottlingException extends ACMServiceException_1.ACMServiceException {
92
93
  ...opts,
93
94
  });
94
95
  Object.setPrototypeOf(this, ThrottlingException.prototype);
96
+ this.throttlingReasons = opts.throttlingReasons;
95
97
  }
96
98
  }
97
99
  exports.ThrottlingException = ThrottlingException;