@aws-sdk/client-mq 3.975.0 → 3.980.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
@@ -1331,6 +1331,8 @@ class UpdateUserCommand extends smithyClient.Command
1331
1331
  .build() {
1332
1332
  }
1333
1333
 
1334
+ const paginateListBrokers = core.createPaginator(MqClient, ListBrokersCommand, "NextToken", "NextToken", "MaxResults");
1335
+
1334
1336
  const commands = {
1335
1337
  CreateBrokerCommand,
1336
1338
  CreateConfigurationCommand,
@@ -1357,11 +1359,12 @@ const commands = {
1357
1359
  UpdateConfigurationCommand,
1358
1360
  UpdateUserCommand,
1359
1361
  };
1362
+ const paginators = {
1363
+ paginateListBrokers,
1364
+ };
1360
1365
  class Mq extends MqClient {
1361
1366
  }
1362
- smithyClient.createAggregatedClient(commands, Mq);
1363
-
1364
- const paginateListBrokers = core.createPaginator(MqClient, ListBrokersCommand, "NextToken", "NextToken", "MaxResults");
1367
+ smithyClient.createAggregatedClient(commands, Mq, { paginators });
1365
1368
 
1366
1369
  const EngineType = {
1367
1370
  ACTIVEMQ: "ACTIVEMQ",
package/dist-es/Mq.js CHANGED
@@ -24,6 +24,7 @@ import { UpdateBrokerCommand, } from "./commands/UpdateBrokerCommand";
24
24
  import { UpdateConfigurationCommand, } from "./commands/UpdateConfigurationCommand";
25
25
  import { UpdateUserCommand } from "./commands/UpdateUserCommand";
26
26
  import { MqClient } from "./MqClient";
27
+ import { paginateListBrokers } from "./pagination/ListBrokersPaginator";
27
28
  const commands = {
28
29
  CreateBrokerCommand,
29
30
  CreateConfigurationCommand,
@@ -50,6 +51,9 @@ const commands = {
50
51
  UpdateConfigurationCommand,
51
52
  UpdateUserCommand,
52
53
  };
54
+ const paginators = {
55
+ paginateListBrokers,
56
+ };
53
57
  export class Mq extends MqClient {
54
58
  }
55
- createAggregatedClient(commands, Mq);
59
+ createAggregatedClient(commands, Mq, { paginators });
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { CreateBrokerCommandInput, CreateBrokerCommandOutput } from "./commands/CreateBrokerCommand";
3
3
  import { CreateConfigurationCommandInput, CreateConfigurationCommandOutput } from "./commands/CreateConfigurationCommand";
4
4
  import { CreateTagsCommandInput, CreateTagsCommandOutput } from "./commands/CreateTagsCommand";
@@ -173,6 +173,13 @@ export interface Mq {
173
173
  updateUser(args: UpdateUserCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUserCommandOutput>;
174
174
  updateUser(args: UpdateUserCommandInput, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
175
175
  updateUser(args: UpdateUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
176
+ /**
177
+ * @see {@link ListBrokersCommand}
178
+ * @param args - command input.
179
+ * @param paginationConfig - optional pagination config.
180
+ * @returns AsyncIterable of {@link ListBrokersCommandOutput}.
181
+ */
182
+ paginateListBrokers(args?: ListBrokersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListBrokersCommandOutput>;
176
183
  }
177
184
  /**
178
185
  * <p>Amazon MQ is a managed message broker service for Apache ActiveMQ and RabbitMQ that makes it easy to set up and operate message brokers in the cloud. A message broker allows software applications and components to communicate using various programming languages, operating systems, and formal messaging protocols.</p>
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import {
3
7
  CreateBrokerCommandInput,
4
8
  CreateBrokerCommandOutput,
@@ -413,5 +417,12 @@ export interface Mq {
413
417
  options: __HttpHandlerOptions,
414
418
  cb: (err: any, data?: UpdateUserCommandOutput) => void
415
419
  ): void;
420
+ paginateListBrokers(
421
+ args?: ListBrokersCommandInput,
422
+ paginationConfig?: Pick<
423
+ PaginationConfiguration,
424
+ Exclude<keyof PaginationConfiguration, "client">
425
+ >
426
+ ): Paginator<ListBrokersCommandOutput>;
416
427
  }
417
428
  export declare class Mq extends MqClient implements Mq {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mq",
3
3
  "description": "AWS SDK for JavaScript Mq Client for Node.js, Browser and React Native",
4
- "version": "3.975.0",
4
+ "version": "3.980.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-mq",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.2",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
32
- "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
24
+ "@aws-sdk/core": "^3.973.5",
25
+ "@aws-sdk/credential-provider-node": "^3.972.4",
26
+ "@aws-sdk/middleware-host-header": "^3.972.3",
27
+ "@aws-sdk/middleware-logger": "^3.972.3",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.5",
30
+ "@aws-sdk/region-config-resolver": "^3.972.3",
31
+ "@aws-sdk/types": "^3.973.1",
32
+ "@aws-sdk/util-endpoints": "3.980.0",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.3",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.1",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.11",
42
- "@smithy/middleware-retry": "^4.4.27",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.12",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",