@aws-sdk/client-scheduler 3.477.0 → 3.481.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.
Files changed (61) hide show
  1. package/dist-cjs/commands/CreateScheduleCommand.js +18 -41
  2. package/dist-cjs/commands/CreateScheduleGroupCommand.js +18 -41
  3. package/dist-cjs/commands/DeleteScheduleCommand.js +18 -41
  4. package/dist-cjs/commands/DeleteScheduleGroupCommand.js +18 -41
  5. package/dist-cjs/commands/GetScheduleCommand.js +18 -41
  6. package/dist-cjs/commands/GetScheduleGroupCommand.js +18 -41
  7. package/dist-cjs/commands/ListScheduleGroupsCommand.js +18 -41
  8. package/dist-cjs/commands/ListSchedulesCommand.js +18 -41
  9. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  10. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  11. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  12. package/dist-cjs/commands/UpdateScheduleCommand.js +18 -41
  13. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  14. package/dist-cjs/pagination/ListScheduleGroupsPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListSchedulesPaginator.js +2 -24
  16. package/dist-es/commands/CreateScheduleCommand.js +18 -41
  17. package/dist-es/commands/CreateScheduleGroupCommand.js +18 -41
  18. package/dist-es/commands/DeleteScheduleCommand.js +18 -41
  19. package/dist-es/commands/DeleteScheduleGroupCommand.js +18 -41
  20. package/dist-es/commands/GetScheduleCommand.js +18 -41
  21. package/dist-es/commands/GetScheduleGroupCommand.js +18 -41
  22. package/dist-es/commands/ListScheduleGroupsCommand.js +18 -41
  23. package/dist-es/commands/ListSchedulesCommand.js +18 -41
  24. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  25. package/dist-es/commands/TagResourceCommand.js +18 -41
  26. package/dist-es/commands/UntagResourceCommand.js +18 -41
  27. package/dist-es/commands/UpdateScheduleCommand.js +18 -41
  28. package/dist-es/endpoint/EndpointParameters.js +6 -0
  29. package/dist-es/pagination/ListScheduleGroupsPaginator.js +2 -23
  30. package/dist-es/pagination/ListSchedulesPaginator.js +2 -23
  31. package/dist-types/commands/CreateScheduleCommand.d.ts +6 -21
  32. package/dist-types/commands/CreateScheduleGroupCommand.d.ts +6 -21
  33. package/dist-types/commands/DeleteScheduleCommand.d.ts +6 -21
  34. package/dist-types/commands/DeleteScheduleGroupCommand.d.ts +6 -21
  35. package/dist-types/commands/GetScheduleCommand.d.ts +6 -21
  36. package/dist-types/commands/GetScheduleGroupCommand.d.ts +6 -21
  37. package/dist-types/commands/ListScheduleGroupsCommand.d.ts +6 -21
  38. package/dist-types/commands/ListSchedulesCommand.d.ts +6 -21
  39. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  40. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  41. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  42. package/dist-types/commands/UpdateScheduleCommand.d.ts +6 -21
  43. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  44. package/dist-types/pagination/ListScheduleGroupsPaginator.d.ts +1 -1
  45. package/dist-types/pagination/ListSchedulesPaginator.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/CreateScheduleCommand.d.ts +14 -23
  47. package/dist-types/ts3.4/commands/CreateScheduleGroupCommand.d.ts +14 -23
  48. package/dist-types/ts3.4/commands/DeleteScheduleCommand.d.ts +14 -23
  49. package/dist-types/ts3.4/commands/DeleteScheduleGroupCommand.d.ts +14 -23
  50. package/dist-types/ts3.4/commands/GetScheduleCommand.d.ts +14 -23
  51. package/dist-types/ts3.4/commands/GetScheduleGroupCommand.d.ts +14 -23
  52. package/dist-types/ts3.4/commands/ListScheduleGroupsCommand.d.ts +14 -23
  53. package/dist-types/ts3.4/commands/ListSchedulesCommand.d.ts +14 -23
  54. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  55. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  56. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  57. package/dist-types/ts3.4/commands/UpdateScheduleCommand.d.ts +14 -23
  58. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  59. package/dist-types/ts3.4/pagination/ListScheduleGroupsPaginator.d.ts +3 -3
  60. package/dist-types/ts3.4/pagination/ListSchedulesPaginator.d.ts +3 -3
  61. package/package.json +11 -11
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetScheduleGroupCommand, se_GetScheduleGroupCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetScheduleGroupCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetScheduleGroupCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SchedulerClient";
26
- const commandName = "GetScheduleGroupCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSChronosService",
35
- operation: "GetScheduleGroup",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetScheduleGroupCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetScheduleGroupCommand(output, context);
46
- }
7
+ export class GetScheduleGroupCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSChronosService", "GetScheduleGroup", {})
19
+ .n("SchedulerClient", "GetScheduleGroupCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetScheduleGroupCommand)
22
+ .de(de_GetScheduleGroupCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListScheduleGroupsCommand, se_ListScheduleGroupsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListScheduleGroupsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListScheduleGroupsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SchedulerClient";
26
- const commandName = "ListScheduleGroupsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSChronosService",
35
- operation: "ListScheduleGroups",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListScheduleGroupsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListScheduleGroupsCommand(output, context);
46
- }
7
+ export class ListScheduleGroupsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSChronosService", "ListScheduleGroups", {})
19
+ .n("SchedulerClient", "ListScheduleGroupsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListScheduleGroupsCommand)
22
+ .de(de_ListScheduleGroupsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListSchedulesCommand, se_ListSchedulesCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListSchedulesCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListSchedulesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SchedulerClient";
26
- const commandName = "ListSchedulesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSChronosService",
35
- operation: "ListSchedules",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListSchedulesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListSchedulesCommand(output, context);
46
- }
7
+ export class ListSchedulesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSChronosService", "ListSchedules", {})
19
+ .n("SchedulerClient", "ListSchedulesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListSchedulesCommand)
22
+ .de(de_ListSchedulesCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListTagsForResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SchedulerClient";
26
- const commandName = "ListTagsForResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSChronosService",
35
- operation: "ListTagsForResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListTagsForResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListTagsForResourceCommand(output, context);
46
- }
7
+ export class ListTagsForResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSChronosService", "ListTagsForResource", {})
19
+ .n("SchedulerClient", "ListTagsForResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTagsForResourceCommand)
22
+ .de(de_ListTagsForResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class TagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SchedulerClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSChronosService",
35
- operation: "TagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSChronosService", "TagResource", {})
19
+ .n("SchedulerClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UntagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SchedulerClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSChronosService",
35
- operation: "UntagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSChronosService", "UntagResource", {})
19
+ .n("SchedulerClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateScheduleCommand, se_UpdateScheduleCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateScheduleCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateScheduleCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SchedulerClient";
26
- const commandName = "UpdateScheduleCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSChronosService",
35
- operation: "UpdateSchedule",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateScheduleCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateScheduleCommand(output, context);
46
- }
7
+ export class UpdateScheduleCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSChronosService", "UpdateSchedule", {})
19
+ .n("SchedulerClient", "UpdateScheduleCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateScheduleCommand)
22
+ .de(de_UpdateScheduleCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "scheduler",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListScheduleGroupsCommand, } from "../commands/ListScheduleGroupsCommand";
2
3
  import { SchedulerClient } from "../SchedulerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListScheduleGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateListScheduleGroups(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof SchedulerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Scheduler | SchedulerClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListScheduleGroups = createPaginator(SchedulerClient, ListScheduleGroupsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSchedulesCommand, } from "../commands/ListSchedulesCommand";
2
3
  import { SchedulerClient } from "../SchedulerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSchedulesCommand(input), ...args);
5
- };
6
- export async function* paginateListSchedules(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof SchedulerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Scheduler | SchedulerClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListSchedules = createPaginator(SchedulerClient, ListSchedulesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CreateScheduleInput, CreateScheduleOutput } from "../models/models_0";
5
4
  import { SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchedulerClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateScheduleCommandInput extends CreateScheduleInput {
21
20
  */
22
21
  export interface CreateScheduleCommandOutput extends CreateScheduleOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateScheduleCommand_base: {
24
+ new (input: CreateScheduleCommandInput): import("@smithy/smithy-client").CommandImpl<CreateScheduleCommandInput, CreateScheduleCommandOutput, SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates the specified schedule.</p>
@@ -159,23 +162,5 @@ export interface CreateScheduleCommandOutput extends CreateScheduleOutput, __Met
159
162
  * <p>Base exception class for all service exceptions from Scheduler service.</p>
160
163
  *
161
164
  */
162
- export declare class CreateScheduleCommand extends $Command<CreateScheduleCommandInput, CreateScheduleCommandOutput, SchedulerClientResolvedConfig> {
163
- readonly input: CreateScheduleCommandInput;
164
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
165
- /**
166
- * @public
167
- */
168
- constructor(input: CreateScheduleCommandInput);
169
- /**
170
- * @internal
171
- */
172
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SchedulerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateScheduleCommandInput, CreateScheduleCommandOutput>;
173
- /**
174
- * @internal
175
- */
176
- private serialize;
177
- /**
178
- * @internal
179
- */
180
- private deserialize;
165
+ export declare class CreateScheduleCommand extends CreateScheduleCommand_base {
181
166
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CreateScheduleGroupInput, CreateScheduleGroupOutput } from "../models/models_0";
5
4
  import { SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchedulerClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateScheduleGroupCommandInput extends CreateScheduleGroupInpu
21
20
  */
22
21
  export interface CreateScheduleGroupCommandOutput extends CreateScheduleGroupOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateScheduleGroupCommand_base: {
24
+ new (input: CreateScheduleGroupCommandInput): import("@smithy/smithy-client").CommandImpl<CreateScheduleGroupCommandInput, CreateScheduleGroupCommandOutput, SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates the specified schedule group.</p>
@@ -73,23 +76,5 @@ export interface CreateScheduleGroupCommandOutput extends CreateScheduleGroupOut
73
76
  * <p>Base exception class for all service exceptions from Scheduler service.</p>
74
77
  *
75
78
  */
76
- export declare class CreateScheduleGroupCommand extends $Command<CreateScheduleGroupCommandInput, CreateScheduleGroupCommandOutput, SchedulerClientResolvedConfig> {
77
- readonly input: CreateScheduleGroupCommandInput;
78
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
79
- /**
80
- * @public
81
- */
82
- constructor(input: CreateScheduleGroupCommandInput);
83
- /**
84
- * @internal
85
- */
86
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SchedulerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateScheduleGroupCommandInput, CreateScheduleGroupCommandOutput>;
87
- /**
88
- * @internal
89
- */
90
- private serialize;
91
- /**
92
- * @internal
93
- */
94
- private deserialize;
79
+ export declare class CreateScheduleGroupCommand extends CreateScheduleGroupCommand_base {
95
80
  }