@aws-sdk/client-migrationhub-config 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
@@ -395,17 +395,20 @@ class GetHomeRegionCommand extends smithyClient.Command
395
395
  .build() {
396
396
  }
397
397
 
398
+ const paginateDescribeHomeRegionControls = core.createPaginator(MigrationHubConfigClient, DescribeHomeRegionControlsCommand, "NextToken", "NextToken", "MaxResults");
399
+
398
400
  const commands = {
399
401
  CreateHomeRegionControlCommand,
400
402
  DeleteHomeRegionControlCommand,
401
403
  DescribeHomeRegionControlsCommand,
402
404
  GetHomeRegionCommand,
403
405
  };
406
+ const paginators = {
407
+ paginateDescribeHomeRegionControls,
408
+ };
404
409
  class MigrationHubConfig extends MigrationHubConfigClient {
405
410
  }
406
- smithyClient.createAggregatedClient(commands, MigrationHubConfig);
407
-
408
- const paginateDescribeHomeRegionControls = core.createPaginator(MigrationHubConfigClient, DescribeHomeRegionControlsCommand, "NextToken", "NextToken", "MaxResults");
411
+ smithyClient.createAggregatedClient(commands, MigrationHubConfig, { paginators });
409
412
 
410
413
  const TargetType = {
411
414
  ACCOUNT: "ACCOUNT",
@@ -4,12 +4,16 @@ import { DeleteHomeRegionControlCommand, } from "./commands/DeleteHomeRegionCont
4
4
  import { DescribeHomeRegionControlsCommand, } from "./commands/DescribeHomeRegionControlsCommand";
5
5
  import { GetHomeRegionCommand, } from "./commands/GetHomeRegionCommand";
6
6
  import { MigrationHubConfigClient } from "./MigrationHubConfigClient";
7
+ import { paginateDescribeHomeRegionControls } from "./pagination/DescribeHomeRegionControlsPaginator";
7
8
  const commands = {
8
9
  CreateHomeRegionControlCommand,
9
10
  DeleteHomeRegionControlCommand,
10
11
  DescribeHomeRegionControlsCommand,
11
12
  GetHomeRegionCommand,
12
13
  };
14
+ const paginators = {
15
+ paginateDescribeHomeRegionControls,
16
+ };
13
17
  export class MigrationHubConfig extends MigrationHubConfigClient {
14
18
  }
15
- createAggregatedClient(commands, MigrationHubConfig);
19
+ createAggregatedClient(commands, MigrationHubConfig, { 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 { CreateHomeRegionControlCommandInput, CreateHomeRegionControlCommandOutput } from "./commands/CreateHomeRegionControlCommand";
3
3
  import { DeleteHomeRegionControlCommandInput, DeleteHomeRegionControlCommandOutput } from "./commands/DeleteHomeRegionControlCommand";
4
4
  import { DescribeHomeRegionControlsCommandInput, DescribeHomeRegionControlsCommandOutput } from "./commands/DescribeHomeRegionControlsCommand";
@@ -31,6 +31,13 @@ export interface MigrationHubConfig {
31
31
  getHomeRegion(args: GetHomeRegionCommandInput, options?: __HttpHandlerOptions): Promise<GetHomeRegionCommandOutput>;
32
32
  getHomeRegion(args: GetHomeRegionCommandInput, cb: (err: any, data?: GetHomeRegionCommandOutput) => void): void;
33
33
  getHomeRegion(args: GetHomeRegionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetHomeRegionCommandOutput) => void): void;
34
+ /**
35
+ * @see {@link DescribeHomeRegionControlsCommand}
36
+ * @param args - command input.
37
+ * @param paginationConfig - optional pagination config.
38
+ * @returns AsyncIterable of {@link DescribeHomeRegionControlsCommandOutput}.
39
+ */
40
+ paginateDescribeHomeRegionControls(args?: DescribeHomeRegionControlsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<DescribeHomeRegionControlsCommandOutput>;
34
41
  }
35
42
  /**
36
43
  * <p>The AWS Migration Hub home region APIs are available specifically for working with your
@@ -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
  CreateHomeRegionControlCommandInput,
4
8
  CreateHomeRegionControlCommandOutput,
@@ -71,6 +75,13 @@ export interface MigrationHubConfig {
71
75
  options: __HttpHandlerOptions,
72
76
  cb: (err: any, data?: GetHomeRegionCommandOutput) => void
73
77
  ): void;
78
+ paginateDescribeHomeRegionControls(
79
+ args?: DescribeHomeRegionControlsCommandInput,
80
+ paginationConfig?: Pick<
81
+ PaginationConfiguration,
82
+ Exclude<keyof PaginationConfiguration, "client">
83
+ >
84
+ ): Paginator<DescribeHomeRegionControlsCommandOutput>;
74
85
  }
75
86
  export declare class MigrationHubConfig
76
87
  extends MigrationHubConfigClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-migrationhub-config",
3
3
  "description": "AWS SDK for JavaScript Migrationhub Config 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-migrationhub-config",
@@ -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",