@aws-sdk/client-scheduler 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
@@ -794,6 +794,10 @@ class UpdateScheduleCommand extends smithyClient.Command
794
794
  .build() {
795
795
  }
796
796
 
797
+ const paginateListScheduleGroups = core.createPaginator(SchedulerClient, ListScheduleGroupsCommand, "NextToken", "NextToken", "MaxResults");
798
+
799
+ const paginateListSchedules = core.createPaginator(SchedulerClient, ListSchedulesCommand, "NextToken", "NextToken", "MaxResults");
800
+
797
801
  const commands = {
798
802
  CreateScheduleCommand,
799
803
  CreateScheduleGroupCommand,
@@ -808,13 +812,13 @@ const commands = {
808
812
  UntagResourceCommand,
809
813
  UpdateScheduleCommand,
810
814
  };
815
+ const paginators = {
816
+ paginateListScheduleGroups,
817
+ paginateListSchedules,
818
+ };
811
819
  class Scheduler extends SchedulerClient {
812
820
  }
813
- smithyClient.createAggregatedClient(commands, Scheduler);
814
-
815
- const paginateListScheduleGroups = core.createPaginator(SchedulerClient, ListScheduleGroupsCommand, "NextToken", "NextToken", "MaxResults");
816
-
817
- const paginateListSchedules = core.createPaginator(SchedulerClient, ListSchedulesCommand, "NextToken", "NextToken", "MaxResults");
821
+ smithyClient.createAggregatedClient(commands, Scheduler, { paginators });
818
822
 
819
823
  const ActionAfterCompletion = {
820
824
  DELETE: "DELETE",
@@ -11,6 +11,8 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
11
11
  import { TagResourceCommand } from "./commands/TagResourceCommand";
12
12
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
13
13
  import { UpdateScheduleCommand, } from "./commands/UpdateScheduleCommand";
14
+ import { paginateListScheduleGroups } from "./pagination/ListScheduleGroupsPaginator";
15
+ import { paginateListSchedules } from "./pagination/ListSchedulesPaginator";
14
16
  import { SchedulerClient } from "./SchedulerClient";
15
17
  const commands = {
16
18
  CreateScheduleCommand,
@@ -26,6 +28,10 @@ const commands = {
26
28
  UntagResourceCommand,
27
29
  UpdateScheduleCommand,
28
30
  };
31
+ const paginators = {
32
+ paginateListScheduleGroups,
33
+ paginateListSchedules,
34
+ };
29
35
  export class Scheduler extends SchedulerClient {
30
36
  }
31
- createAggregatedClient(commands, Scheduler);
37
+ createAggregatedClient(commands, Scheduler, { 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 { CreateScheduleCommandInput, CreateScheduleCommandOutput } from "./commands/CreateScheduleCommand";
3
3
  import { CreateScheduleGroupCommandInput, CreateScheduleGroupCommandOutput } from "./commands/CreateScheduleGroupCommand";
4
4
  import { DeleteScheduleCommandInput, DeleteScheduleCommandOutput } from "./commands/DeleteScheduleCommand";
@@ -87,6 +87,20 @@ export interface Scheduler {
87
87
  updateSchedule(args: UpdateScheduleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateScheduleCommandOutput>;
88
88
  updateSchedule(args: UpdateScheduleCommandInput, cb: (err: any, data?: UpdateScheduleCommandOutput) => void): void;
89
89
  updateSchedule(args: UpdateScheduleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateScheduleCommandOutput) => void): void;
90
+ /**
91
+ * @see {@link ListScheduleGroupsCommand}
92
+ * @param args - command input.
93
+ * @param paginationConfig - optional pagination config.
94
+ * @returns AsyncIterable of {@link ListScheduleGroupsCommandOutput}.
95
+ */
96
+ paginateListScheduleGroups(args?: ListScheduleGroupsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListScheduleGroupsCommandOutput>;
97
+ /**
98
+ * @see {@link ListSchedulesCommand}
99
+ * @param args - command input.
100
+ * @param paginationConfig - optional pagination config.
101
+ * @returns AsyncIterable of {@link ListSchedulesCommandOutput}.
102
+ */
103
+ paginateListSchedules(args?: ListSchedulesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSchedulesCommandOutput>;
90
104
  }
91
105
  /**
92
106
  * <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 {
3
7
  CreateScheduleCommandInput,
4
8
  CreateScheduleCommandOutput,
@@ -207,5 +211,19 @@ export interface Scheduler {
207
211
  options: __HttpHandlerOptions,
208
212
  cb: (err: any, data?: UpdateScheduleCommandOutput) => void
209
213
  ): void;
214
+ paginateListScheduleGroups(
215
+ args?: ListScheduleGroupsCommandInput,
216
+ paginationConfig?: Pick<
217
+ PaginationConfiguration,
218
+ Exclude<keyof PaginationConfiguration, "client">
219
+ >
220
+ ): Paginator<ListScheduleGroupsCommandOutput>;
221
+ paginateListSchedules(
222
+ args?: ListSchedulesCommandInput,
223
+ paginationConfig?: Pick<
224
+ PaginationConfiguration,
225
+ Exclude<keyof PaginationConfiguration, "client">
226
+ >
227
+ ): Paginator<ListSchedulesCommandOutput>;
210
228
  }
211
229
  export declare class Scheduler extends SchedulerClient implements Scheduler {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-scheduler",
3
3
  "description": "AWS SDK for JavaScript Scheduler 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-scheduler",
@@ -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",