@aws-sdk/client-codecatalyst 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
@@ -1651,6 +1651,26 @@ class VerifySessionCommand extends smithyClient.Command
1651
1651
  .build() {
1652
1652
  }
1653
1653
 
1654
+ const paginateListAccessTokens = core.createPaginator(CodeCatalystClient, ListAccessTokensCommand, "nextToken", "nextToken", "maxResults");
1655
+
1656
+ const paginateListDevEnvironmentSessions = core.createPaginator(CodeCatalystClient, ListDevEnvironmentSessionsCommand, "nextToken", "nextToken", "maxResults");
1657
+
1658
+ const paginateListDevEnvironments = core.createPaginator(CodeCatalystClient, ListDevEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
1659
+
1660
+ const paginateListEventLogs = core.createPaginator(CodeCatalystClient, ListEventLogsCommand, "nextToken", "nextToken", "maxResults");
1661
+
1662
+ const paginateListProjects = core.createPaginator(CodeCatalystClient, ListProjectsCommand, "nextToken", "nextToken", "maxResults");
1663
+
1664
+ const paginateListSourceRepositories = core.createPaginator(CodeCatalystClient, ListSourceRepositoriesCommand, "nextToken", "nextToken", "maxResults");
1665
+
1666
+ const paginateListSourceRepositoryBranches = core.createPaginator(CodeCatalystClient, ListSourceRepositoryBranchesCommand, "nextToken", "nextToken", "maxResults");
1667
+
1668
+ const paginateListSpaces = core.createPaginator(CodeCatalystClient, ListSpacesCommand, "nextToken", "nextToken", "");
1669
+
1670
+ const paginateListWorkflowRuns = core.createPaginator(CodeCatalystClient, ListWorkflowRunsCommand, "nextToken", "nextToken", "maxResults");
1671
+
1672
+ const paginateListWorkflows = core.createPaginator(CodeCatalystClient, ListWorkflowsCommand, "nextToken", "nextToken", "maxResults");
1673
+
1654
1674
  const commands = {
1655
1675
  CreateAccessTokenCommand,
1656
1676
  CreateDevEnvironmentCommand,
@@ -1691,29 +1711,21 @@ const commands = {
1691
1711
  UpdateSpaceCommand,
1692
1712
  VerifySessionCommand,
1693
1713
  };
1714
+ const paginators = {
1715
+ paginateListAccessTokens,
1716
+ paginateListDevEnvironments,
1717
+ paginateListDevEnvironmentSessions,
1718
+ paginateListEventLogs,
1719
+ paginateListProjects,
1720
+ paginateListSourceRepositories,
1721
+ paginateListSourceRepositoryBranches,
1722
+ paginateListSpaces,
1723
+ paginateListWorkflowRuns,
1724
+ paginateListWorkflows,
1725
+ };
1694
1726
  class CodeCatalyst extends CodeCatalystClient {
1695
1727
  }
1696
- smithyClient.createAggregatedClient(commands, CodeCatalyst);
1697
-
1698
- const paginateListAccessTokens = core.createPaginator(CodeCatalystClient, ListAccessTokensCommand, "nextToken", "nextToken", "maxResults");
1699
-
1700
- const paginateListDevEnvironments = core.createPaginator(CodeCatalystClient, ListDevEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
1701
-
1702
- const paginateListDevEnvironmentSessions = core.createPaginator(CodeCatalystClient, ListDevEnvironmentSessionsCommand, "nextToken", "nextToken", "maxResults");
1703
-
1704
- const paginateListEventLogs = core.createPaginator(CodeCatalystClient, ListEventLogsCommand, "nextToken", "nextToken", "maxResults");
1705
-
1706
- const paginateListProjects = core.createPaginator(CodeCatalystClient, ListProjectsCommand, "nextToken", "nextToken", "maxResults");
1707
-
1708
- const paginateListSourceRepositories = core.createPaginator(CodeCatalystClient, ListSourceRepositoriesCommand, "nextToken", "nextToken", "maxResults");
1709
-
1710
- const paginateListSourceRepositoryBranches = core.createPaginator(CodeCatalystClient, ListSourceRepositoryBranchesCommand, "nextToken", "nextToken", "maxResults");
1711
-
1712
- const paginateListSpaces = core.createPaginator(CodeCatalystClient, ListSpacesCommand, "nextToken", "nextToken", "");
1713
-
1714
- const paginateListWorkflowRuns = core.createPaginator(CodeCatalystClient, ListWorkflowRunsCommand, "nextToken", "nextToken", "maxResults");
1715
-
1716
- const paginateListWorkflows = core.createPaginator(CodeCatalystClient, ListWorkflowsCommand, "nextToken", "nextToken", "maxResults");
1728
+ smithyClient.createAggregatedClient(commands, CodeCatalyst, { paginators });
1717
1729
 
1718
1730
  const OperationType = {
1719
1731
  MUTATION: "MUTATION",
@@ -38,6 +38,16 @@ import { UpdateDevEnvironmentCommand, } from "./commands/UpdateDevEnvironmentCom
38
38
  import { UpdateProjectCommand, } from "./commands/UpdateProjectCommand";
39
39
  import { UpdateSpaceCommand } from "./commands/UpdateSpaceCommand";
40
40
  import { VerifySessionCommand, } from "./commands/VerifySessionCommand";
41
+ import { paginateListAccessTokens } from "./pagination/ListAccessTokensPaginator";
42
+ import { paginateListDevEnvironmentSessions } from "./pagination/ListDevEnvironmentSessionsPaginator";
43
+ import { paginateListDevEnvironments } from "./pagination/ListDevEnvironmentsPaginator";
44
+ import { paginateListEventLogs } from "./pagination/ListEventLogsPaginator";
45
+ import { paginateListProjects } from "./pagination/ListProjectsPaginator";
46
+ import { paginateListSourceRepositories } from "./pagination/ListSourceRepositoriesPaginator";
47
+ import { paginateListSourceRepositoryBranches } from "./pagination/ListSourceRepositoryBranchesPaginator";
48
+ import { paginateListSpaces } from "./pagination/ListSpacesPaginator";
49
+ import { paginateListWorkflowRuns } from "./pagination/ListWorkflowRunsPaginator";
50
+ import { paginateListWorkflows } from "./pagination/ListWorkflowsPaginator";
41
51
  const commands = {
42
52
  CreateAccessTokenCommand,
43
53
  CreateDevEnvironmentCommand,
@@ -78,6 +88,18 @@ const commands = {
78
88
  UpdateSpaceCommand,
79
89
  VerifySessionCommand,
80
90
  };
91
+ const paginators = {
92
+ paginateListAccessTokens,
93
+ paginateListDevEnvironments,
94
+ paginateListDevEnvironmentSessions,
95
+ paginateListEventLogs,
96
+ paginateListProjects,
97
+ paginateListSourceRepositories,
98
+ paginateListSourceRepositoryBranches,
99
+ paginateListSpaces,
100
+ paginateListWorkflowRuns,
101
+ paginateListWorkflows,
102
+ };
81
103
  export class CodeCatalyst extends CodeCatalystClient {
82
104
  }
83
- createAggregatedClient(commands, CodeCatalyst);
105
+ createAggregatedClient(commands, CodeCatalyst, { 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 { CodeCatalystClient } from "./CodeCatalystClient";
3
3
  import { CreateAccessTokenCommandInput, CreateAccessTokenCommandOutput } from "./commands/CreateAccessTokenCommand";
4
4
  import { CreateDevEnvironmentCommandInput, CreateDevEnvironmentCommandOutput } from "./commands/CreateDevEnvironmentCommand";
@@ -271,6 +271,76 @@ export interface CodeCatalyst {
271
271
  verifySession(args: VerifySessionCommandInput, options?: __HttpHandlerOptions): Promise<VerifySessionCommandOutput>;
272
272
  verifySession(args: VerifySessionCommandInput, cb: (err: any, data?: VerifySessionCommandOutput) => void): void;
273
273
  verifySession(args: VerifySessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifySessionCommandOutput) => void): void;
274
+ /**
275
+ * @see {@link ListAccessTokensCommand}
276
+ * @param args - command input.
277
+ * @param paginationConfig - optional pagination config.
278
+ * @returns AsyncIterable of {@link ListAccessTokensCommandOutput}.
279
+ */
280
+ paginateListAccessTokens(args?: ListAccessTokensCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAccessTokensCommandOutput>;
281
+ /**
282
+ * @see {@link ListDevEnvironmentsCommand}
283
+ * @param args - command input.
284
+ * @param paginationConfig - optional pagination config.
285
+ * @returns AsyncIterable of {@link ListDevEnvironmentsCommandOutput}.
286
+ */
287
+ paginateListDevEnvironments(args: ListDevEnvironmentsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDevEnvironmentsCommandOutput>;
288
+ /**
289
+ * @see {@link ListDevEnvironmentSessionsCommand}
290
+ * @param args - command input.
291
+ * @param paginationConfig - optional pagination config.
292
+ * @returns AsyncIterable of {@link ListDevEnvironmentSessionsCommandOutput}.
293
+ */
294
+ paginateListDevEnvironmentSessions(args: ListDevEnvironmentSessionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDevEnvironmentSessionsCommandOutput>;
295
+ /**
296
+ * @see {@link ListEventLogsCommand}
297
+ * @param args - command input.
298
+ * @param paginationConfig - optional pagination config.
299
+ * @returns AsyncIterable of {@link ListEventLogsCommandOutput}.
300
+ */
301
+ paginateListEventLogs(args: ListEventLogsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListEventLogsCommandOutput>;
302
+ /**
303
+ * @see {@link ListProjectsCommand}
304
+ * @param args - command input.
305
+ * @param paginationConfig - optional pagination config.
306
+ * @returns AsyncIterable of {@link ListProjectsCommandOutput}.
307
+ */
308
+ paginateListProjects(args: ListProjectsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListProjectsCommandOutput>;
309
+ /**
310
+ * @see {@link ListSourceRepositoriesCommand}
311
+ * @param args - command input.
312
+ * @param paginationConfig - optional pagination config.
313
+ * @returns AsyncIterable of {@link ListSourceRepositoriesCommandOutput}.
314
+ */
315
+ paginateListSourceRepositories(args: ListSourceRepositoriesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSourceRepositoriesCommandOutput>;
316
+ /**
317
+ * @see {@link ListSourceRepositoryBranchesCommand}
318
+ * @param args - command input.
319
+ * @param paginationConfig - optional pagination config.
320
+ * @returns AsyncIterable of {@link ListSourceRepositoryBranchesCommandOutput}.
321
+ */
322
+ paginateListSourceRepositoryBranches(args: ListSourceRepositoryBranchesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSourceRepositoryBranchesCommandOutput>;
323
+ /**
324
+ * @see {@link ListSpacesCommand}
325
+ * @param args - command input.
326
+ * @param paginationConfig - optional pagination config.
327
+ * @returns AsyncIterable of {@link ListSpacesCommandOutput}.
328
+ */
329
+ paginateListSpaces(args?: ListSpacesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSpacesCommandOutput>;
330
+ /**
331
+ * @see {@link ListWorkflowRunsCommand}
332
+ * @param args - command input.
333
+ * @param paginationConfig - optional pagination config.
334
+ * @returns AsyncIterable of {@link ListWorkflowRunsCommandOutput}.
335
+ */
336
+ paginateListWorkflowRuns(args: ListWorkflowRunsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListWorkflowRunsCommandOutput>;
337
+ /**
338
+ * @see {@link ListWorkflowsCommand}
339
+ * @param args - command input.
340
+ * @param paginationConfig - optional pagination config.
341
+ * @returns AsyncIterable of {@link ListWorkflowsCommandOutput}.
342
+ */
343
+ paginateListWorkflows(args: ListWorkflowsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListWorkflowsCommandOutput>;
274
344
  }
275
345
  /**
276
346
  * <p>Welcome to the Amazon CodeCatalyst API reference. This reference provides descriptions of operations and data types for Amazon CodeCatalyst. You can use the Amazon CodeCatalyst
@@ -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 { CodeCatalystClient } from "./CodeCatalystClient";
3
7
  import {
4
8
  CreateAccessTokenCommandInput,
@@ -651,6 +655,76 @@ export interface CodeCatalyst {
651
655
  options: __HttpHandlerOptions,
652
656
  cb: (err: any, data?: VerifySessionCommandOutput) => void
653
657
  ): void;
658
+ paginateListAccessTokens(
659
+ args?: ListAccessTokensCommandInput,
660
+ paginationConfig?: Pick<
661
+ PaginationConfiguration,
662
+ Exclude<keyof PaginationConfiguration, "client">
663
+ >
664
+ ): Paginator<ListAccessTokensCommandOutput>;
665
+ paginateListDevEnvironments(
666
+ args: ListDevEnvironmentsCommandInput,
667
+ paginationConfig?: Pick<
668
+ PaginationConfiguration,
669
+ Exclude<keyof PaginationConfiguration, "client">
670
+ >
671
+ ): Paginator<ListDevEnvironmentsCommandOutput>;
672
+ paginateListDevEnvironmentSessions(
673
+ args: ListDevEnvironmentSessionsCommandInput,
674
+ paginationConfig?: Pick<
675
+ PaginationConfiguration,
676
+ Exclude<keyof PaginationConfiguration, "client">
677
+ >
678
+ ): Paginator<ListDevEnvironmentSessionsCommandOutput>;
679
+ paginateListEventLogs(
680
+ args: ListEventLogsCommandInput,
681
+ paginationConfig?: Pick<
682
+ PaginationConfiguration,
683
+ Exclude<keyof PaginationConfiguration, "client">
684
+ >
685
+ ): Paginator<ListEventLogsCommandOutput>;
686
+ paginateListProjects(
687
+ args: ListProjectsCommandInput,
688
+ paginationConfig?: Pick<
689
+ PaginationConfiguration,
690
+ Exclude<keyof PaginationConfiguration, "client">
691
+ >
692
+ ): Paginator<ListProjectsCommandOutput>;
693
+ paginateListSourceRepositories(
694
+ args: ListSourceRepositoriesCommandInput,
695
+ paginationConfig?: Pick<
696
+ PaginationConfiguration,
697
+ Exclude<keyof PaginationConfiguration, "client">
698
+ >
699
+ ): Paginator<ListSourceRepositoriesCommandOutput>;
700
+ paginateListSourceRepositoryBranches(
701
+ args: ListSourceRepositoryBranchesCommandInput,
702
+ paginationConfig?: Pick<
703
+ PaginationConfiguration,
704
+ Exclude<keyof PaginationConfiguration, "client">
705
+ >
706
+ ): Paginator<ListSourceRepositoryBranchesCommandOutput>;
707
+ paginateListSpaces(
708
+ args?: ListSpacesCommandInput,
709
+ paginationConfig?: Pick<
710
+ PaginationConfiguration,
711
+ Exclude<keyof PaginationConfiguration, "client">
712
+ >
713
+ ): Paginator<ListSpacesCommandOutput>;
714
+ paginateListWorkflowRuns(
715
+ args: ListWorkflowRunsCommandInput,
716
+ paginationConfig?: Pick<
717
+ PaginationConfiguration,
718
+ Exclude<keyof PaginationConfiguration, "client">
719
+ >
720
+ ): Paginator<ListWorkflowRunsCommandOutput>;
721
+ paginateListWorkflows(
722
+ args: ListWorkflowsCommandInput,
723
+ paginationConfig?: Pick<
724
+ PaginationConfiguration,
725
+ Exclude<keyof PaginationConfiguration, "client">
726
+ >
727
+ ): Paginator<ListWorkflowsCommandOutput>;
654
728
  }
655
729
  export declare class CodeCatalyst
656
730
  extends CodeCatalystClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codecatalyst",
3
3
  "description": "AWS SDK for JavaScript Codecatalyst 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-codecatalyst",
@@ -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/middleware-host-header": "^3.972.1",
26
- "@aws-sdk/middleware-logger": "^3.972.1",
27
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
28
- "@aws-sdk/middleware-user-agent": "^3.972.2",
29
- "@aws-sdk/region-config-resolver": "^3.972.1",
30
- "@aws-sdk/token-providers": "3.975.0",
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/middleware-host-header": "^3.972.3",
26
+ "@aws-sdk/middleware-logger": "^3.972.3",
27
+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",
28
+ "@aws-sdk/middleware-user-agent": "^3.972.5",
29
+ "@aws-sdk/region-config-resolver": "^3.972.3",
30
+ "@aws-sdk/token-providers": "3.980.0",
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",