@aws-sdk/client-m2 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
@@ -1911,6 +1911,26 @@ class UpdateEnvironmentCommand extends smithyClient.Command
1911
1911
  .build() {
1912
1912
  }
1913
1913
 
1914
+ const paginateListApplications = core.createPaginator(M2Client, ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
1915
+
1916
+ const paginateListApplicationVersions = core.createPaginator(M2Client, ListApplicationVersionsCommand, "nextToken", "nextToken", "maxResults");
1917
+
1918
+ const paginateListBatchJobDefinitions = core.createPaginator(M2Client, ListBatchJobDefinitionsCommand, "nextToken", "nextToken", "maxResults");
1919
+
1920
+ const paginateListBatchJobExecutions = core.createPaginator(M2Client, ListBatchJobExecutionsCommand, "nextToken", "nextToken", "maxResults");
1921
+
1922
+ const paginateListDataSetExportHistory = core.createPaginator(M2Client, ListDataSetExportHistoryCommand, "nextToken", "nextToken", "maxResults");
1923
+
1924
+ const paginateListDataSetImportHistory = core.createPaginator(M2Client, ListDataSetImportHistoryCommand, "nextToken", "nextToken", "maxResults");
1925
+
1926
+ const paginateListDataSets = core.createPaginator(M2Client, ListDataSetsCommand, "nextToken", "nextToken", "maxResults");
1927
+
1928
+ const paginateListDeployments = core.createPaginator(M2Client, ListDeploymentsCommand, "nextToken", "nextToken", "maxResults");
1929
+
1930
+ const paginateListEngineVersions = core.createPaginator(M2Client, ListEngineVersionsCommand, "nextToken", "nextToken", "maxResults");
1931
+
1932
+ const paginateListEnvironments = core.createPaginator(M2Client, ListEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
1933
+
1914
1934
  const commands = {
1915
1935
  CancelBatchJobExecutionCommand,
1916
1936
  CreateApplicationCommand,
@@ -1950,29 +1970,21 @@ const commands = {
1950
1970
  UpdateApplicationCommand,
1951
1971
  UpdateEnvironmentCommand,
1952
1972
  };
1973
+ const paginators = {
1974
+ paginateListApplications,
1975
+ paginateListApplicationVersions,
1976
+ paginateListBatchJobDefinitions,
1977
+ paginateListBatchJobExecutions,
1978
+ paginateListDataSetExportHistory,
1979
+ paginateListDataSetImportHistory,
1980
+ paginateListDataSets,
1981
+ paginateListDeployments,
1982
+ paginateListEngineVersions,
1983
+ paginateListEnvironments,
1984
+ };
1953
1985
  class M2 extends M2Client {
1954
1986
  }
1955
- smithyClient.createAggregatedClient(commands, M2);
1956
-
1957
- const paginateListApplications = core.createPaginator(M2Client, ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
1958
-
1959
- const paginateListApplicationVersions = core.createPaginator(M2Client, ListApplicationVersionsCommand, "nextToken", "nextToken", "maxResults");
1960
-
1961
- const paginateListBatchJobDefinitions = core.createPaginator(M2Client, ListBatchJobDefinitionsCommand, "nextToken", "nextToken", "maxResults");
1962
-
1963
- const paginateListBatchJobExecutions = core.createPaginator(M2Client, ListBatchJobExecutionsCommand, "nextToken", "nextToken", "maxResults");
1964
-
1965
- const paginateListDataSetExportHistory = core.createPaginator(M2Client, ListDataSetExportHistoryCommand, "nextToken", "nextToken", "maxResults");
1966
-
1967
- const paginateListDataSetImportHistory = core.createPaginator(M2Client, ListDataSetImportHistoryCommand, "nextToken", "nextToken", "maxResults");
1968
-
1969
- const paginateListDataSets = core.createPaginator(M2Client, ListDataSetsCommand, "nextToken", "nextToken", "maxResults");
1970
-
1971
- const paginateListDeployments = core.createPaginator(M2Client, ListDeploymentsCommand, "nextToken", "nextToken", "maxResults");
1972
-
1973
- const paginateListEngineVersions = core.createPaginator(M2Client, ListEngineVersionsCommand, "nextToken", "nextToken", "maxResults");
1974
-
1975
- const paginateListEnvironments = core.createPaginator(M2Client, ListEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
1987
+ smithyClient.createAggregatedClient(commands, M2, { paginators });
1976
1988
 
1977
1989
  const ValidationExceptionReason = {
1978
1990
  CANNOT_PARSE: "cannotParse",
package/dist-es/M2.js CHANGED
@@ -37,6 +37,16 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
37
37
  import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
38
38
  import { UpdateEnvironmentCommand, } from "./commands/UpdateEnvironmentCommand";
39
39
  import { M2Client } from "./M2Client";
40
+ import { paginateListApplications } from "./pagination/ListApplicationsPaginator";
41
+ import { paginateListApplicationVersions } from "./pagination/ListApplicationVersionsPaginator";
42
+ import { paginateListBatchJobDefinitions } from "./pagination/ListBatchJobDefinitionsPaginator";
43
+ import { paginateListBatchJobExecutions } from "./pagination/ListBatchJobExecutionsPaginator";
44
+ import { paginateListDataSetExportHistory } from "./pagination/ListDataSetExportHistoryPaginator";
45
+ import { paginateListDataSetImportHistory } from "./pagination/ListDataSetImportHistoryPaginator";
46
+ import { paginateListDataSets } from "./pagination/ListDataSetsPaginator";
47
+ import { paginateListDeployments } from "./pagination/ListDeploymentsPaginator";
48
+ import { paginateListEngineVersions } from "./pagination/ListEngineVersionsPaginator";
49
+ import { paginateListEnvironments } from "./pagination/ListEnvironmentsPaginator";
40
50
  const commands = {
41
51
  CancelBatchJobExecutionCommand,
42
52
  CreateApplicationCommand,
@@ -76,6 +86,18 @@ const commands = {
76
86
  UpdateApplicationCommand,
77
87
  UpdateEnvironmentCommand,
78
88
  };
89
+ const paginators = {
90
+ paginateListApplications,
91
+ paginateListApplicationVersions,
92
+ paginateListBatchJobDefinitions,
93
+ paginateListBatchJobExecutions,
94
+ paginateListDataSetExportHistory,
95
+ paginateListDataSetImportHistory,
96
+ paginateListDataSets,
97
+ paginateListDeployments,
98
+ paginateListEngineVersions,
99
+ paginateListEnvironments,
100
+ };
79
101
  export class M2 extends M2Client {
80
102
  }
81
- createAggregatedClient(commands, M2);
103
+ createAggregatedClient(commands, M2, { 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 { CancelBatchJobExecutionCommandInput, CancelBatchJobExecutionCommandOutput } from "./commands/CancelBatchJobExecutionCommand";
3
3
  import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
4
4
  import { CreateDataSetExportTaskCommandInput, CreateDataSetExportTaskCommandOutput } from "./commands/CreateDataSetExportTaskCommand";
@@ -264,6 +264,76 @@ export interface M2 {
264
264
  updateEnvironment(args: UpdateEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEnvironmentCommandOutput>;
265
265
  updateEnvironment(args: UpdateEnvironmentCommandInput, cb: (err: any, data?: UpdateEnvironmentCommandOutput) => void): void;
266
266
  updateEnvironment(args: UpdateEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEnvironmentCommandOutput) => void): void;
267
+ /**
268
+ * @see {@link ListApplicationsCommand}
269
+ * @param args - command input.
270
+ * @param paginationConfig - optional pagination config.
271
+ * @returns AsyncIterable of {@link ListApplicationsCommandOutput}.
272
+ */
273
+ paginateListApplications(args?: ListApplicationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListApplicationsCommandOutput>;
274
+ /**
275
+ * @see {@link ListApplicationVersionsCommand}
276
+ * @param args - command input.
277
+ * @param paginationConfig - optional pagination config.
278
+ * @returns AsyncIterable of {@link ListApplicationVersionsCommandOutput}.
279
+ */
280
+ paginateListApplicationVersions(args: ListApplicationVersionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListApplicationVersionsCommandOutput>;
281
+ /**
282
+ * @see {@link ListBatchJobDefinitionsCommand}
283
+ * @param args - command input.
284
+ * @param paginationConfig - optional pagination config.
285
+ * @returns AsyncIterable of {@link ListBatchJobDefinitionsCommandOutput}.
286
+ */
287
+ paginateListBatchJobDefinitions(args: ListBatchJobDefinitionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListBatchJobDefinitionsCommandOutput>;
288
+ /**
289
+ * @see {@link ListBatchJobExecutionsCommand}
290
+ * @param args - command input.
291
+ * @param paginationConfig - optional pagination config.
292
+ * @returns AsyncIterable of {@link ListBatchJobExecutionsCommandOutput}.
293
+ */
294
+ paginateListBatchJobExecutions(args: ListBatchJobExecutionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListBatchJobExecutionsCommandOutput>;
295
+ /**
296
+ * @see {@link ListDataSetExportHistoryCommand}
297
+ * @param args - command input.
298
+ * @param paginationConfig - optional pagination config.
299
+ * @returns AsyncIterable of {@link ListDataSetExportHistoryCommandOutput}.
300
+ */
301
+ paginateListDataSetExportHistory(args: ListDataSetExportHistoryCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDataSetExportHistoryCommandOutput>;
302
+ /**
303
+ * @see {@link ListDataSetImportHistoryCommand}
304
+ * @param args - command input.
305
+ * @param paginationConfig - optional pagination config.
306
+ * @returns AsyncIterable of {@link ListDataSetImportHistoryCommandOutput}.
307
+ */
308
+ paginateListDataSetImportHistory(args: ListDataSetImportHistoryCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDataSetImportHistoryCommandOutput>;
309
+ /**
310
+ * @see {@link ListDataSetsCommand}
311
+ * @param args - command input.
312
+ * @param paginationConfig - optional pagination config.
313
+ * @returns AsyncIterable of {@link ListDataSetsCommandOutput}.
314
+ */
315
+ paginateListDataSets(args: ListDataSetsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDataSetsCommandOutput>;
316
+ /**
317
+ * @see {@link ListDeploymentsCommand}
318
+ * @param args - command input.
319
+ * @param paginationConfig - optional pagination config.
320
+ * @returns AsyncIterable of {@link ListDeploymentsCommandOutput}.
321
+ */
322
+ paginateListDeployments(args: ListDeploymentsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDeploymentsCommandOutput>;
323
+ /**
324
+ * @see {@link ListEngineVersionsCommand}
325
+ * @param args - command input.
326
+ * @param paginationConfig - optional pagination config.
327
+ * @returns AsyncIterable of {@link ListEngineVersionsCommandOutput}.
328
+ */
329
+ paginateListEngineVersions(args?: ListEngineVersionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListEngineVersionsCommandOutput>;
330
+ /**
331
+ * @see {@link ListEnvironmentsCommand}
332
+ * @param args - command input.
333
+ * @param paginationConfig - optional pagination config.
334
+ * @returns AsyncIterable of {@link ListEnvironmentsCommandOutput}.
335
+ */
336
+ paginateListEnvironments(args?: ListEnvironmentsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListEnvironmentsCommandOutput>;
267
337
  }
268
338
  /**
269
339
  * <p>Amazon Web Services Mainframe Modernization provides tools and resources to help you plan and implement migration and
@@ -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
  CancelBatchJobExecutionCommandInput,
4
8
  CancelBatchJobExecutionCommandOutput,
@@ -634,5 +638,75 @@ export interface M2 {
634
638
  options: __HttpHandlerOptions,
635
639
  cb: (err: any, data?: UpdateEnvironmentCommandOutput) => void
636
640
  ): void;
641
+ paginateListApplications(
642
+ args?: ListApplicationsCommandInput,
643
+ paginationConfig?: Pick<
644
+ PaginationConfiguration,
645
+ Exclude<keyof PaginationConfiguration, "client">
646
+ >
647
+ ): Paginator<ListApplicationsCommandOutput>;
648
+ paginateListApplicationVersions(
649
+ args: ListApplicationVersionsCommandInput,
650
+ paginationConfig?: Pick<
651
+ PaginationConfiguration,
652
+ Exclude<keyof PaginationConfiguration, "client">
653
+ >
654
+ ): Paginator<ListApplicationVersionsCommandOutput>;
655
+ paginateListBatchJobDefinitions(
656
+ args: ListBatchJobDefinitionsCommandInput,
657
+ paginationConfig?: Pick<
658
+ PaginationConfiguration,
659
+ Exclude<keyof PaginationConfiguration, "client">
660
+ >
661
+ ): Paginator<ListBatchJobDefinitionsCommandOutput>;
662
+ paginateListBatchJobExecutions(
663
+ args: ListBatchJobExecutionsCommandInput,
664
+ paginationConfig?: Pick<
665
+ PaginationConfiguration,
666
+ Exclude<keyof PaginationConfiguration, "client">
667
+ >
668
+ ): Paginator<ListBatchJobExecutionsCommandOutput>;
669
+ paginateListDataSetExportHistory(
670
+ args: ListDataSetExportHistoryCommandInput,
671
+ paginationConfig?: Pick<
672
+ PaginationConfiguration,
673
+ Exclude<keyof PaginationConfiguration, "client">
674
+ >
675
+ ): Paginator<ListDataSetExportHistoryCommandOutput>;
676
+ paginateListDataSetImportHistory(
677
+ args: ListDataSetImportHistoryCommandInput,
678
+ paginationConfig?: Pick<
679
+ PaginationConfiguration,
680
+ Exclude<keyof PaginationConfiguration, "client">
681
+ >
682
+ ): Paginator<ListDataSetImportHistoryCommandOutput>;
683
+ paginateListDataSets(
684
+ args: ListDataSetsCommandInput,
685
+ paginationConfig?: Pick<
686
+ PaginationConfiguration,
687
+ Exclude<keyof PaginationConfiguration, "client">
688
+ >
689
+ ): Paginator<ListDataSetsCommandOutput>;
690
+ paginateListDeployments(
691
+ args: ListDeploymentsCommandInput,
692
+ paginationConfig?: Pick<
693
+ PaginationConfiguration,
694
+ Exclude<keyof PaginationConfiguration, "client">
695
+ >
696
+ ): Paginator<ListDeploymentsCommandOutput>;
697
+ paginateListEngineVersions(
698
+ args?: ListEngineVersionsCommandInput,
699
+ paginationConfig?: Pick<
700
+ PaginationConfiguration,
701
+ Exclude<keyof PaginationConfiguration, "client">
702
+ >
703
+ ): Paginator<ListEngineVersionsCommandOutput>;
704
+ paginateListEnvironments(
705
+ args?: ListEnvironmentsCommandInput,
706
+ paginationConfig?: Pick<
707
+ PaginationConfiguration,
708
+ Exclude<keyof PaginationConfiguration, "client">
709
+ >
710
+ ): Paginator<ListEnvironmentsCommandOutput>;
637
711
  }
638
712
  export declare class M2 extends M2Client implements M2 {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-m2",
3
3
  "description": "AWS SDK for JavaScript M2 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-m2",
@@ -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.0",
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.1",
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.0",
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.10",
42
- "@smithy/middleware-retry": "^4.4.26",
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.11",
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.25",
55
- "@smithy/util-defaults-mode-node": "^4.2.28",
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",