@aws-sdk/client-api-gateway 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
@@ -3751,6 +3751,30 @@ class UpdateVpcLinkCommand extends smithyClient.Command
3751
3751
  .build() {
3752
3752
  }
3753
3753
 
3754
+ const paginateGetApiKeys = core.createPaginator(APIGatewayClient, GetApiKeysCommand, "position", "position", "limit");
3755
+
3756
+ const paginateGetBasePathMappings = core.createPaginator(APIGatewayClient, GetBasePathMappingsCommand, "position", "position", "limit");
3757
+
3758
+ const paginateGetClientCertificates = core.createPaginator(APIGatewayClient, GetClientCertificatesCommand, "position", "position", "limit");
3759
+
3760
+ const paginateGetDeployments = core.createPaginator(APIGatewayClient, GetDeploymentsCommand, "position", "position", "limit");
3761
+
3762
+ const paginateGetDomainNames = core.createPaginator(APIGatewayClient, GetDomainNamesCommand, "position", "position", "limit");
3763
+
3764
+ const paginateGetModels = core.createPaginator(APIGatewayClient, GetModelsCommand, "position", "position", "limit");
3765
+
3766
+ const paginateGetResources = core.createPaginator(APIGatewayClient, GetResourcesCommand, "position", "position", "limit");
3767
+
3768
+ const paginateGetRestApis = core.createPaginator(APIGatewayClient, GetRestApisCommand, "position", "position", "limit");
3769
+
3770
+ const paginateGetUsage = core.createPaginator(APIGatewayClient, GetUsageCommand, "position", "position", "limit");
3771
+
3772
+ const paginateGetUsagePlanKeys = core.createPaginator(APIGatewayClient, GetUsagePlanKeysCommand, "position", "position", "limit");
3773
+
3774
+ const paginateGetUsagePlans = core.createPaginator(APIGatewayClient, GetUsagePlansCommand, "position", "position", "limit");
3775
+
3776
+ const paginateGetVpcLinks = core.createPaginator(APIGatewayClient, GetVpcLinksCommand, "position", "position", "limit");
3777
+
3754
3778
  const commands = {
3755
3779
  CreateApiKeyCommand,
3756
3780
  CreateAuthorizerCommand,
@@ -3877,33 +3901,23 @@ const commands = {
3877
3901
  UpdateUsagePlanCommand,
3878
3902
  UpdateVpcLinkCommand,
3879
3903
  };
3904
+ const paginators = {
3905
+ paginateGetApiKeys,
3906
+ paginateGetBasePathMappings,
3907
+ paginateGetClientCertificates,
3908
+ paginateGetDeployments,
3909
+ paginateGetDomainNames,
3910
+ paginateGetModels,
3911
+ paginateGetResources,
3912
+ paginateGetRestApis,
3913
+ paginateGetUsage,
3914
+ paginateGetUsagePlanKeys,
3915
+ paginateGetUsagePlans,
3916
+ paginateGetVpcLinks,
3917
+ };
3880
3918
  class APIGateway extends APIGatewayClient {
3881
3919
  }
3882
- smithyClient.createAggregatedClient(commands, APIGateway);
3883
-
3884
- const paginateGetApiKeys = core.createPaginator(APIGatewayClient, GetApiKeysCommand, "position", "position", "limit");
3885
-
3886
- const paginateGetBasePathMappings = core.createPaginator(APIGatewayClient, GetBasePathMappingsCommand, "position", "position", "limit");
3887
-
3888
- const paginateGetClientCertificates = core.createPaginator(APIGatewayClient, GetClientCertificatesCommand, "position", "position", "limit");
3889
-
3890
- const paginateGetDeployments = core.createPaginator(APIGatewayClient, GetDeploymentsCommand, "position", "position", "limit");
3891
-
3892
- const paginateGetDomainNames = core.createPaginator(APIGatewayClient, GetDomainNamesCommand, "position", "position", "limit");
3893
-
3894
- const paginateGetModels = core.createPaginator(APIGatewayClient, GetModelsCommand, "position", "position", "limit");
3895
-
3896
- const paginateGetResources = core.createPaginator(APIGatewayClient, GetResourcesCommand, "position", "position", "limit");
3897
-
3898
- const paginateGetRestApis = core.createPaginator(APIGatewayClient, GetRestApisCommand, "position", "position", "limit");
3899
-
3900
- const paginateGetUsage = core.createPaginator(APIGatewayClient, GetUsageCommand, "position", "position", "limit");
3901
-
3902
- const paginateGetUsagePlanKeys = core.createPaginator(APIGatewayClient, GetUsagePlanKeysCommand, "position", "position", "limit");
3903
-
3904
- const paginateGetUsagePlans = core.createPaginator(APIGatewayClient, GetUsagePlansCommand, "position", "position", "limit");
3905
-
3906
- const paginateGetVpcLinks = core.createPaginator(APIGatewayClient, GetVpcLinksCommand, "position", "position", "limit");
3920
+ smithyClient.createAggregatedClient(commands, APIGateway, { paginators });
3907
3921
 
3908
3922
  const AccessAssociationSourceType = {
3909
3923
  VPCE: "VPCE",
@@ -124,6 +124,18 @@ import { UpdateStageCommand, } from "./commands/UpdateStageCommand";
124
124
  import { UpdateUsageCommand, } from "./commands/UpdateUsageCommand";
125
125
  import { UpdateUsagePlanCommand, } from "./commands/UpdateUsagePlanCommand";
126
126
  import { UpdateVpcLinkCommand, } from "./commands/UpdateVpcLinkCommand";
127
+ import { paginateGetApiKeys } from "./pagination/GetApiKeysPaginator";
128
+ import { paginateGetBasePathMappings } from "./pagination/GetBasePathMappingsPaginator";
129
+ import { paginateGetClientCertificates } from "./pagination/GetClientCertificatesPaginator";
130
+ import { paginateGetDeployments } from "./pagination/GetDeploymentsPaginator";
131
+ import { paginateGetDomainNames } from "./pagination/GetDomainNamesPaginator";
132
+ import { paginateGetModels } from "./pagination/GetModelsPaginator";
133
+ import { paginateGetResources } from "./pagination/GetResourcesPaginator";
134
+ import { paginateGetRestApis } from "./pagination/GetRestApisPaginator";
135
+ import { paginateGetUsage } from "./pagination/GetUsagePaginator";
136
+ import { paginateGetUsagePlanKeys } from "./pagination/GetUsagePlanKeysPaginator";
137
+ import { paginateGetUsagePlans } from "./pagination/GetUsagePlansPaginator";
138
+ import { paginateGetVpcLinks } from "./pagination/GetVpcLinksPaginator";
127
139
  const commands = {
128
140
  CreateApiKeyCommand,
129
141
  CreateAuthorizerCommand,
@@ -250,6 +262,20 @@ const commands = {
250
262
  UpdateUsagePlanCommand,
251
263
  UpdateVpcLinkCommand,
252
264
  };
265
+ const paginators = {
266
+ paginateGetApiKeys,
267
+ paginateGetBasePathMappings,
268
+ paginateGetClientCertificates,
269
+ paginateGetDeployments,
270
+ paginateGetDomainNames,
271
+ paginateGetModels,
272
+ paginateGetResources,
273
+ paginateGetRestApis,
274
+ paginateGetUsage,
275
+ paginateGetUsagePlanKeys,
276
+ paginateGetUsagePlans,
277
+ paginateGetVpcLinks,
278
+ };
253
279
  export class APIGateway extends APIGatewayClient {
254
280
  }
255
- createAggregatedClient(commands, APIGateway);
281
+ createAggregatedClient(commands, APIGateway, { 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 { APIGatewayClient } from "./APIGatewayClient";
3
3
  import { type CreateApiKeyCommandInput, type CreateApiKeyCommandOutput } from "./commands/CreateApiKeyCommand";
4
4
  import { type CreateAuthorizerCommandInput, type CreateAuthorizerCommandOutput } from "./commands/CreateAuthorizerCommand";
@@ -881,6 +881,90 @@ export interface APIGateway {
881
881
  updateVpcLink(args: UpdateVpcLinkCommandInput, options?: __HttpHandlerOptions): Promise<UpdateVpcLinkCommandOutput>;
882
882
  updateVpcLink(args: UpdateVpcLinkCommandInput, cb: (err: any, data?: UpdateVpcLinkCommandOutput) => void): void;
883
883
  updateVpcLink(args: UpdateVpcLinkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateVpcLinkCommandOutput) => void): void;
884
+ /**
885
+ * @see {@link GetApiKeysCommand}
886
+ * @param args - command input.
887
+ * @param paginationConfig - optional pagination config.
888
+ * @returns AsyncIterable of {@link GetApiKeysCommandOutput}.
889
+ */
890
+ paginateGetApiKeys(args?: GetApiKeysCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetApiKeysCommandOutput>;
891
+ /**
892
+ * @see {@link GetBasePathMappingsCommand}
893
+ * @param args - command input.
894
+ * @param paginationConfig - optional pagination config.
895
+ * @returns AsyncIterable of {@link GetBasePathMappingsCommandOutput}.
896
+ */
897
+ paginateGetBasePathMappings(args: GetBasePathMappingsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetBasePathMappingsCommandOutput>;
898
+ /**
899
+ * @see {@link GetClientCertificatesCommand}
900
+ * @param args - command input.
901
+ * @param paginationConfig - optional pagination config.
902
+ * @returns AsyncIterable of {@link GetClientCertificatesCommandOutput}.
903
+ */
904
+ paginateGetClientCertificates(args?: GetClientCertificatesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetClientCertificatesCommandOutput>;
905
+ /**
906
+ * @see {@link GetDeploymentsCommand}
907
+ * @param args - command input.
908
+ * @param paginationConfig - optional pagination config.
909
+ * @returns AsyncIterable of {@link GetDeploymentsCommandOutput}.
910
+ */
911
+ paginateGetDeployments(args: GetDeploymentsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetDeploymentsCommandOutput>;
912
+ /**
913
+ * @see {@link GetDomainNamesCommand}
914
+ * @param args - command input.
915
+ * @param paginationConfig - optional pagination config.
916
+ * @returns AsyncIterable of {@link GetDomainNamesCommandOutput}.
917
+ */
918
+ paginateGetDomainNames(args?: GetDomainNamesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetDomainNamesCommandOutput>;
919
+ /**
920
+ * @see {@link GetModelsCommand}
921
+ * @param args - command input.
922
+ * @param paginationConfig - optional pagination config.
923
+ * @returns AsyncIterable of {@link GetModelsCommandOutput}.
924
+ */
925
+ paginateGetModels(args: GetModelsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetModelsCommandOutput>;
926
+ /**
927
+ * @see {@link GetResourcesCommand}
928
+ * @param args - command input.
929
+ * @param paginationConfig - optional pagination config.
930
+ * @returns AsyncIterable of {@link GetResourcesCommandOutput}.
931
+ */
932
+ paginateGetResources(args: GetResourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetResourcesCommandOutput>;
933
+ /**
934
+ * @see {@link GetRestApisCommand}
935
+ * @param args - command input.
936
+ * @param paginationConfig - optional pagination config.
937
+ * @returns AsyncIterable of {@link GetRestApisCommandOutput}.
938
+ */
939
+ paginateGetRestApis(args?: GetRestApisCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetRestApisCommandOutput>;
940
+ /**
941
+ * @see {@link GetUsageCommand}
942
+ * @param args - command input.
943
+ * @param paginationConfig - optional pagination config.
944
+ * @returns AsyncIterable of {@link GetUsageCommandOutput}.
945
+ */
946
+ paginateGetUsage(args: GetUsageCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetUsageCommandOutput>;
947
+ /**
948
+ * @see {@link GetUsagePlanKeysCommand}
949
+ * @param args - command input.
950
+ * @param paginationConfig - optional pagination config.
951
+ * @returns AsyncIterable of {@link GetUsagePlanKeysCommandOutput}.
952
+ */
953
+ paginateGetUsagePlanKeys(args: GetUsagePlanKeysCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetUsagePlanKeysCommandOutput>;
954
+ /**
955
+ * @see {@link GetUsagePlansCommand}
956
+ * @param args - command input.
957
+ * @param paginationConfig - optional pagination config.
958
+ * @returns AsyncIterable of {@link GetUsagePlansCommandOutput}.
959
+ */
960
+ paginateGetUsagePlans(args?: GetUsagePlansCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetUsagePlansCommandOutput>;
961
+ /**
962
+ * @see {@link GetVpcLinksCommand}
963
+ * @param args - command input.
964
+ * @param paginationConfig - optional pagination config.
965
+ * @returns AsyncIterable of {@link GetVpcLinksCommandOutput}.
966
+ */
967
+ paginateGetVpcLinks(args?: GetVpcLinksCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetVpcLinksCommandOutput>;
884
968
  }
885
969
  /**
886
970
  * <fullname>Amazon API Gateway</fullname>
@@ -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 { APIGatewayClient } from "./APIGatewayClient";
3
7
  import {
4
8
  CreateApiKeyCommandInput,
@@ -2139,6 +2143,90 @@ export interface APIGateway {
2139
2143
  options: __HttpHandlerOptions,
2140
2144
  cb: (err: any, data?: UpdateVpcLinkCommandOutput) => void
2141
2145
  ): void;
2146
+ paginateGetApiKeys(
2147
+ args?: GetApiKeysCommandInput,
2148
+ paginationConfig?: Pick<
2149
+ PaginationConfiguration,
2150
+ Exclude<keyof PaginationConfiguration, "client">
2151
+ >
2152
+ ): Paginator<GetApiKeysCommandOutput>;
2153
+ paginateGetBasePathMappings(
2154
+ args: GetBasePathMappingsCommandInput,
2155
+ paginationConfig?: Pick<
2156
+ PaginationConfiguration,
2157
+ Exclude<keyof PaginationConfiguration, "client">
2158
+ >
2159
+ ): Paginator<GetBasePathMappingsCommandOutput>;
2160
+ paginateGetClientCertificates(
2161
+ args?: GetClientCertificatesCommandInput,
2162
+ paginationConfig?: Pick<
2163
+ PaginationConfiguration,
2164
+ Exclude<keyof PaginationConfiguration, "client">
2165
+ >
2166
+ ): Paginator<GetClientCertificatesCommandOutput>;
2167
+ paginateGetDeployments(
2168
+ args: GetDeploymentsCommandInput,
2169
+ paginationConfig?: Pick<
2170
+ PaginationConfiguration,
2171
+ Exclude<keyof PaginationConfiguration, "client">
2172
+ >
2173
+ ): Paginator<GetDeploymentsCommandOutput>;
2174
+ paginateGetDomainNames(
2175
+ args?: GetDomainNamesCommandInput,
2176
+ paginationConfig?: Pick<
2177
+ PaginationConfiguration,
2178
+ Exclude<keyof PaginationConfiguration, "client">
2179
+ >
2180
+ ): Paginator<GetDomainNamesCommandOutput>;
2181
+ paginateGetModels(
2182
+ args: GetModelsCommandInput,
2183
+ paginationConfig?: Pick<
2184
+ PaginationConfiguration,
2185
+ Exclude<keyof PaginationConfiguration, "client">
2186
+ >
2187
+ ): Paginator<GetModelsCommandOutput>;
2188
+ paginateGetResources(
2189
+ args: GetResourcesCommandInput,
2190
+ paginationConfig?: Pick<
2191
+ PaginationConfiguration,
2192
+ Exclude<keyof PaginationConfiguration, "client">
2193
+ >
2194
+ ): Paginator<GetResourcesCommandOutput>;
2195
+ paginateGetRestApis(
2196
+ args?: GetRestApisCommandInput,
2197
+ paginationConfig?: Pick<
2198
+ PaginationConfiguration,
2199
+ Exclude<keyof PaginationConfiguration, "client">
2200
+ >
2201
+ ): Paginator<GetRestApisCommandOutput>;
2202
+ paginateGetUsage(
2203
+ args: GetUsageCommandInput,
2204
+ paginationConfig?: Pick<
2205
+ PaginationConfiguration,
2206
+ Exclude<keyof PaginationConfiguration, "client">
2207
+ >
2208
+ ): Paginator<GetUsageCommandOutput>;
2209
+ paginateGetUsagePlanKeys(
2210
+ args: GetUsagePlanKeysCommandInput,
2211
+ paginationConfig?: Pick<
2212
+ PaginationConfiguration,
2213
+ Exclude<keyof PaginationConfiguration, "client">
2214
+ >
2215
+ ): Paginator<GetUsagePlanKeysCommandOutput>;
2216
+ paginateGetUsagePlans(
2217
+ args?: GetUsagePlansCommandInput,
2218
+ paginationConfig?: Pick<
2219
+ PaginationConfiguration,
2220
+ Exclude<keyof PaginationConfiguration, "client">
2221
+ >
2222
+ ): Paginator<GetUsagePlansCommandOutput>;
2223
+ paginateGetVpcLinks(
2224
+ args?: GetVpcLinksCommandInput,
2225
+ paginationConfig?: Pick<
2226
+ PaginationConfiguration,
2227
+ Exclude<keyof PaginationConfiguration, "client">
2228
+ >
2229
+ ): Paginator<GetVpcLinksCommandOutput>;
2142
2230
  }
2143
2231
  export declare class APIGateway
2144
2232
  extends APIGatewayClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-api-gateway",
3
3
  "description": "AWS SDK for JavaScript Api Gateway 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-api-gateway",
@@ -23,39 +23,39 @@
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.1",
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-sdk-api-gateway": "^3.972.1",
32
- "@aws-sdk/middleware-user-agent": "^3.972.2",
33
- "@aws-sdk/region-config-resolver": "^3.972.1",
34
- "@aws-sdk/types": "^3.973.0",
35
- "@aws-sdk/util-endpoints": "3.972.0",
36
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
37
- "@aws-sdk/util-user-agent-node": "^3.972.1",
26
+ "@aws-sdk/core": "^3.973.5",
27
+ "@aws-sdk/credential-provider-node": "^3.972.4",
28
+ "@aws-sdk/middleware-host-header": "^3.972.3",
29
+ "@aws-sdk/middleware-logger": "^3.972.3",
30
+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",
31
+ "@aws-sdk/middleware-sdk-api-gateway": "^3.972.3",
32
+ "@aws-sdk/middleware-user-agent": "^3.972.5",
33
+ "@aws-sdk/region-config-resolver": "^3.972.3",
34
+ "@aws-sdk/types": "^3.973.1",
35
+ "@aws-sdk/util-endpoints": "3.980.0",
36
+ "@aws-sdk/util-user-agent-browser": "^3.972.3",
37
+ "@aws-sdk/util-user-agent-node": "^3.972.3",
38
38
  "@smithy/config-resolver": "^4.4.6",
39
- "@smithy/core": "^3.21.1",
39
+ "@smithy/core": "^3.22.0",
40
40
  "@smithy/fetch-http-handler": "^5.3.9",
41
41
  "@smithy/hash-node": "^4.2.8",
42
42
  "@smithy/invalid-dependency": "^4.2.8",
43
43
  "@smithy/middleware-content-length": "^4.2.8",
44
- "@smithy/middleware-endpoint": "^4.4.11",
45
- "@smithy/middleware-retry": "^4.4.27",
44
+ "@smithy/middleware-endpoint": "^4.4.12",
45
+ "@smithy/middleware-retry": "^4.4.29",
46
46
  "@smithy/middleware-serde": "^4.2.9",
47
47
  "@smithy/middleware-stack": "^4.2.8",
48
48
  "@smithy/node-config-provider": "^4.3.8",
49
49
  "@smithy/node-http-handler": "^4.4.8",
50
50
  "@smithy/protocol-http": "^5.3.8",
51
- "@smithy/smithy-client": "^4.10.12",
51
+ "@smithy/smithy-client": "^4.11.1",
52
52
  "@smithy/types": "^4.12.0",
53
53
  "@smithy/url-parser": "^4.2.8",
54
54
  "@smithy/util-base64": "^4.3.0",
55
55
  "@smithy/util-body-length-browser": "^4.2.0",
56
56
  "@smithy/util-body-length-node": "^4.2.1",
57
- "@smithy/util-defaults-mode-browser": "^4.3.26",
58
- "@smithy/util-defaults-mode-node": "^4.2.29",
57
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
58
+ "@smithy/util-defaults-mode-node": "^4.2.31",
59
59
  "@smithy/util-endpoints": "^3.2.8",
60
60
  "@smithy/util-middleware": "^4.2.8",
61
61
  "@smithy/util-retry": "^4.2.8",