@aws-sdk/client-acm 3.974.0 → 3.978.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1010,28 +1010,6 @@ class UpdateCertificateOptionsCommand extends smithyClient.Command
1010
1010
  .build() {
1011
1011
  }
1012
1012
 
1013
- const commands = {
1014
- AddTagsToCertificateCommand,
1015
- DeleteCertificateCommand,
1016
- DescribeCertificateCommand,
1017
- ExportCertificateCommand,
1018
- GetAccountConfigurationCommand,
1019
- GetCertificateCommand,
1020
- ImportCertificateCommand,
1021
- ListCertificatesCommand,
1022
- ListTagsForCertificateCommand,
1023
- PutAccountConfigurationCommand,
1024
- RemoveTagsFromCertificateCommand,
1025
- RenewCertificateCommand,
1026
- RequestCertificateCommand,
1027
- ResendValidationEmailCommand,
1028
- RevokeCertificateCommand,
1029
- UpdateCertificateOptionsCommand,
1030
- };
1031
- class ACM extends ACMClient {
1032
- }
1033
- smithyClient.createAggregatedClient(commands, ACM);
1034
-
1035
1013
  const paginateListCertificates = core.createPaginator(ACMClient, ListCertificatesCommand, "NextToken", "NextToken", "MaxItems");
1036
1014
 
1037
1015
  const checkState = async (client, input) => {
@@ -1099,6 +1077,34 @@ const waitUntilCertificateValidated = async (params, input) => {
1099
1077
  return utilWaiter.checkExceptions(result);
1100
1078
  };
1101
1079
 
1080
+ const commands = {
1081
+ AddTagsToCertificateCommand,
1082
+ DeleteCertificateCommand,
1083
+ DescribeCertificateCommand,
1084
+ ExportCertificateCommand,
1085
+ GetAccountConfigurationCommand,
1086
+ GetCertificateCommand,
1087
+ ImportCertificateCommand,
1088
+ ListCertificatesCommand,
1089
+ ListTagsForCertificateCommand,
1090
+ PutAccountConfigurationCommand,
1091
+ RemoveTagsFromCertificateCommand,
1092
+ RenewCertificateCommand,
1093
+ RequestCertificateCommand,
1094
+ ResendValidationEmailCommand,
1095
+ RevokeCertificateCommand,
1096
+ UpdateCertificateOptionsCommand,
1097
+ };
1098
+ const paginators = {
1099
+ paginateListCertificates,
1100
+ };
1101
+ const waiters = {
1102
+ waitUntilCertificateValidated,
1103
+ };
1104
+ class ACM extends ACMClient {
1105
+ }
1106
+ smithyClient.createAggregatedClient(commands, ACM, { paginators, waiters });
1107
+
1102
1108
  const RecordType = {
1103
1109
  CNAME: "CNAME",
1104
1110
  };
package/dist-es/ACM.js CHANGED
@@ -16,6 +16,8 @@ import { RequestCertificateCommand, } from "./commands/RequestCertificateCommand
16
16
  import { ResendValidationEmailCommand, } from "./commands/ResendValidationEmailCommand";
17
17
  import { RevokeCertificateCommand, } from "./commands/RevokeCertificateCommand";
18
18
  import { UpdateCertificateOptionsCommand, } from "./commands/UpdateCertificateOptionsCommand";
19
+ import { paginateListCertificates } from "./pagination/ListCertificatesPaginator";
20
+ import { waitUntilCertificateValidated } from "./waiters/waitForCertificateValidated";
19
21
  const commands = {
20
22
  AddTagsToCertificateCommand,
21
23
  DeleteCertificateCommand,
@@ -34,6 +36,12 @@ const commands = {
34
36
  RevokeCertificateCommand,
35
37
  UpdateCertificateOptionsCommand,
36
38
  };
39
+ const paginators = {
40
+ paginateListCertificates,
41
+ };
42
+ const waiters = {
43
+ waitUntilCertificateValidated,
44
+ };
37
45
  export class ACM extends ACMClient {
38
46
  }
39
- createAggregatedClient(commands, ACM);
47
+ createAggregatedClient(commands, ACM, { paginators, waiters });
@@ -1,4 +1,5 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
2
+ import type { WaiterResult } from "@smithy/util-waiter";
2
3
  import { ACMClient } from "./ACMClient";
3
4
  import { AddTagsToCertificateCommandInput, AddTagsToCertificateCommandOutput } from "./commands/AddTagsToCertificateCommand";
4
5
  import { DeleteCertificateCommandInput, DeleteCertificateCommandOutput } from "./commands/DeleteCertificateCommand";
@@ -115,6 +116,19 @@ export interface ACM {
115
116
  updateCertificateOptions(args: UpdateCertificateOptionsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCertificateOptionsCommandOutput>;
116
117
  updateCertificateOptions(args: UpdateCertificateOptionsCommandInput, cb: (err: any, data?: UpdateCertificateOptionsCommandOutput) => void): void;
117
118
  updateCertificateOptions(args: UpdateCertificateOptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCertificateOptionsCommandOutput) => void): void;
119
+ /**
120
+ * @see {@link ListCertificatesCommand}
121
+ * @param args - command input.
122
+ * @param paginationConfig - optional pagination config.
123
+ * @returns AsyncIterable of {@link ListCertificatesCommandOutput}.
124
+ */
125
+ paginateListCertificates(args?: ListCertificatesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListCertificatesCommandOutput>;
126
+ /**
127
+ * @see {@link DescribeCertificateCommand}
128
+ * @param args - command input.
129
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
130
+ */
131
+ waitUntilCertificateValidated(args: DescribeCertificateCommandInput, waiterConfig: number | Omit<WaiterConfiguration<ACM>, "client">): Promise<WaiterResult>;
118
132
  }
119
133
  /**
120
134
  * <fullname>Certificate Manager</fullname> <p>You can use Certificate Manager (ACM) to manage SSL/TLS certificates for your Amazon Web Services-based websites 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>
@@ -1,4 +1,10 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ WaiterConfiguration,
6
+ } from "@smithy/types";
7
+ import { WaiterResult } from "@smithy/util-waiter";
2
8
  import { ACMClient } from "./ACMClient";
3
9
  import {
4
10
  AddTagsToCertificateCommandInput,
@@ -275,5 +281,21 @@ export interface ACM {
275
281
  options: __HttpHandlerOptions,
276
282
  cb: (err: any, data?: UpdateCertificateOptionsCommandOutput) => void
277
283
  ): void;
284
+ paginateListCertificates(
285
+ args?: ListCertificatesCommandInput,
286
+ paginationConfig?: Pick<
287
+ PaginationConfiguration,
288
+ Exclude<keyof PaginationConfiguration, "client">
289
+ >
290
+ ): Paginator<ListCertificatesCommandOutput>;
291
+ waitUntilCertificateValidated(
292
+ args: DescribeCertificateCommandInput,
293
+ waiterConfig:
294
+ | number
295
+ | Pick<
296
+ WaiterConfiguration<ACM>,
297
+ Exclude<keyof WaiterConfiguration<ACM>, "client">
298
+ >
299
+ ): Promise<WaiterResult>;
278
300
  }
279
301
  export declare class ACM extends ACMClient implements ACM {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-acm",
3
3
  "description": "AWS SDK for JavaScript Acm Client for Node.js, Browser and React Native",
4
- "version": "3.974.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-acm",
@@ -23,38 +23,38 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
- "@aws-sdk/core": "^3.973.0",
27
- "@aws-sdk/credential-provider-node": "^3.972.1",
28
- "@aws-sdk/middleware-host-header": "^3.972.1",
29
- "@aws-sdk/middleware-logger": "^3.972.1",
30
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
31
- "@aws-sdk/middleware-user-agent": "^3.972.1",
32
- "@aws-sdk/region-config-resolver": "^3.972.1",
33
- "@aws-sdk/types": "^3.973.0",
26
+ "@aws-sdk/core": "^3.973.4",
27
+ "@aws-sdk/credential-provider-node": "^3.972.2",
28
+ "@aws-sdk/middleware-host-header": "^3.972.2",
29
+ "@aws-sdk/middleware-logger": "^3.972.2",
30
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
32
+ "@aws-sdk/region-config-resolver": "^3.972.2",
33
+ "@aws-sdk/types": "^3.973.1",
34
34
  "@aws-sdk/util-endpoints": "3.972.0",
35
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
36
- "@aws-sdk/util-user-agent-node": "^3.972.1",
35
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
36
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
37
37
  "@smithy/config-resolver": "^4.4.6",
38
- "@smithy/core": "^3.21.0",
38
+ "@smithy/core": "^3.22.0",
39
39
  "@smithy/fetch-http-handler": "^5.3.9",
40
40
  "@smithy/hash-node": "^4.2.8",
41
41
  "@smithy/invalid-dependency": "^4.2.8",
42
42
  "@smithy/middleware-content-length": "^4.2.8",
43
- "@smithy/middleware-endpoint": "^4.4.10",
44
- "@smithy/middleware-retry": "^4.4.26",
43
+ "@smithy/middleware-endpoint": "^4.4.12",
44
+ "@smithy/middleware-retry": "^4.4.29",
45
45
  "@smithy/middleware-serde": "^4.2.9",
46
46
  "@smithy/middleware-stack": "^4.2.8",
47
47
  "@smithy/node-config-provider": "^4.3.8",
48
48
  "@smithy/node-http-handler": "^4.4.8",
49
49
  "@smithy/protocol-http": "^5.3.8",
50
- "@smithy/smithy-client": "^4.10.11",
50
+ "@smithy/smithy-client": "^4.11.1",
51
51
  "@smithy/types": "^4.12.0",
52
52
  "@smithy/url-parser": "^4.2.8",
53
53
  "@smithy/util-base64": "^4.3.0",
54
54
  "@smithy/util-body-length-browser": "^4.2.0",
55
55
  "@smithy/util-body-length-node": "^4.2.1",
56
- "@smithy/util-defaults-mode-browser": "^4.3.25",
57
- "@smithy/util-defaults-mode-node": "^4.2.28",
56
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
57
+ "@smithy/util-defaults-mode-node": "^4.2.31",
58
58
  "@smithy/util-endpoints": "^3.2.8",
59
59
  "@smithy/util-middleware": "^4.2.8",
60
60
  "@smithy/util-retry": "^4.2.8",