@aws-sdk/client-apigatewayv2 3.975.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
@@ -3828,6 +3828,8 @@ class UpdateVpcLinkCommand extends smithyClient.Command
3828
3828
  .build() {
3829
3829
  }
3830
3830
 
3831
+ const paginateListRoutingRules = core.createPaginator(ApiGatewayV2Client, ListRoutingRulesCommand, "NextToken", "NextToken", "MaxResults");
3832
+
3831
3833
  const commands = {
3832
3834
  CreateApiCommand,
3833
3835
  CreateApiMappingCommand,
@@ -3933,11 +3935,12 @@ const commands = {
3933
3935
  UpdateStageCommand,
3934
3936
  UpdateVpcLinkCommand,
3935
3937
  };
3938
+ const paginators = {
3939
+ paginateListRoutingRules,
3940
+ };
3936
3941
  class ApiGatewayV2 extends ApiGatewayV2Client {
3937
3942
  }
3938
- smithyClient.createAggregatedClient(commands, ApiGatewayV2);
3939
-
3940
- const paginateListRoutingRules = core.createPaginator(ApiGatewayV2Client, ListRoutingRulesCommand, "NextToken", "NextToken", "MaxResults");
3943
+ smithyClient.createAggregatedClient(commands, ApiGatewayV2, { paginators });
3941
3944
 
3942
3945
  const IpAddressType = {
3943
3946
  dualstack: "dualstack",
@@ -103,6 +103,7 @@ import { UpdateRouteCommand } from "./commands/UpdateRouteCommand";
103
103
  import { UpdateRouteResponseCommand, } from "./commands/UpdateRouteResponseCommand";
104
104
  import { UpdateStageCommand } from "./commands/UpdateStageCommand";
105
105
  import { UpdateVpcLinkCommand, } from "./commands/UpdateVpcLinkCommand";
106
+ import { paginateListRoutingRules } from "./pagination/ListRoutingRulesPaginator";
106
107
  const commands = {
107
108
  CreateApiCommand,
108
109
  CreateApiMappingCommand,
@@ -208,6 +209,9 @@ const commands = {
208
209
  UpdateStageCommand,
209
210
  UpdateVpcLinkCommand,
210
211
  };
212
+ const paginators = {
213
+ paginateListRoutingRules,
214
+ };
211
215
  export class ApiGatewayV2 extends ApiGatewayV2Client {
212
216
  }
213
- createAggregatedClient(commands, ApiGatewayV2);
217
+ createAggregatedClient(commands, ApiGatewayV2, { 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 { ApiGatewayV2Client } from "./ApiGatewayV2Client";
3
3
  import { CreateApiCommandInput, CreateApiCommandOutput } from "./commands/CreateApiCommand";
4
4
  import { CreateApiMappingCommandInput, CreateApiMappingCommandOutput } from "./commands/CreateApiMappingCommand";
@@ -727,6 +727,13 @@ export interface ApiGatewayV2 {
727
727
  updateVpcLink(args: UpdateVpcLinkCommandInput, options?: __HttpHandlerOptions): Promise<UpdateVpcLinkCommandOutput>;
728
728
  updateVpcLink(args: UpdateVpcLinkCommandInput, cb: (err: any, data?: UpdateVpcLinkCommandOutput) => void): void;
729
729
  updateVpcLink(args: UpdateVpcLinkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateVpcLinkCommandOutput) => void): void;
730
+ /**
731
+ * @see {@link ListRoutingRulesCommand}
732
+ * @param args - command input.
733
+ * @param paginationConfig - optional pagination config.
734
+ * @returns AsyncIterable of {@link ListRoutingRulesCommandOutput}.
735
+ */
736
+ paginateListRoutingRules(args: ListRoutingRulesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRoutingRulesCommandOutput>;
730
737
  }
731
738
  /**
732
739
  * <p>Amazon API Gateway V2</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 { ApiGatewayV2Client } from "./ApiGatewayV2Client";
3
7
  import {
4
8
  CreateApiCommandInput,
@@ -1757,6 +1761,13 @@ export interface ApiGatewayV2 {
1757
1761
  options: __HttpHandlerOptions,
1758
1762
  cb: (err: any, data?: UpdateVpcLinkCommandOutput) => void
1759
1763
  ): void;
1764
+ paginateListRoutingRules(
1765
+ args: ListRoutingRulesCommandInput,
1766
+ paginationConfig?: Pick<
1767
+ PaginationConfiguration,
1768
+ Exclude<keyof PaginationConfiguration, "client">
1769
+ >
1770
+ ): Paginator<ListRoutingRulesCommandOutput>;
1760
1771
  }
1761
1772
  export declare class ApiGatewayV2
1762
1773
  extends ApiGatewayV2Client
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-apigatewayv2",
3
3
  "description": "AWS SDK for JavaScript Apigatewayv2 Client for Node.js, Browser and React Native",
4
- "version": "3.975.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-apigatewayv2",
@@ -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",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
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",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
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",