@aws-sdk/client-scheduler 3.1076.0 → 3.1078.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 (56) hide show
  1. package/dist-cjs/index.js +23 -125
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateScheduleCommand.js +2 -14
  4. package/dist-es/commands/CreateScheduleGroupCommand.js +2 -14
  5. package/dist-es/commands/DeleteScheduleCommand.js +2 -14
  6. package/dist-es/commands/DeleteScheduleGroupCommand.js +2 -14
  7. package/dist-es/commands/GetScheduleCommand.js +2 -14
  8. package/dist-es/commands/GetScheduleGroupCommand.js +2 -14
  9. package/dist-es/commands/ListScheduleGroupsCommand.js +2 -14
  10. package/dist-es/commands/ListSchedulesCommand.js +2 -14
  11. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  12. package/dist-es/commands/TagResourceCommand.js +2 -14
  13. package/dist-es/commands/UntagResourceCommand.js +2 -14
  14. package/dist-es/commands/UpdateScheduleCommand.js +2 -14
  15. package/dist-es/index.js +1 -0
  16. package/dist-es/runtimeConfig.browser.js +0 -2
  17. package/dist-es/runtimeConfig.js +1 -2
  18. package/dist-es/runtimeConfig.native.js +0 -2
  19. package/dist-es/runtimeConfig.shared.js +2 -0
  20. package/dist-types/commandBuilder.d.ts +18 -0
  21. package/dist-types/commands/CreateScheduleCommand.d.ts +3 -8
  22. package/dist-types/commands/CreateScheduleGroupCommand.d.ts +3 -8
  23. package/dist-types/commands/DeleteScheduleCommand.d.ts +3 -8
  24. package/dist-types/commands/DeleteScheduleGroupCommand.d.ts +3 -8
  25. package/dist-types/commands/GetScheduleCommand.d.ts +3 -8
  26. package/dist-types/commands/GetScheduleGroupCommand.d.ts +3 -8
  27. package/dist-types/commands/ListScheduleGroupsCommand.d.ts +3 -8
  28. package/dist-types/commands/ListSchedulesCommand.d.ts +3 -8
  29. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  30. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  31. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  32. package/dist-types/commands/UpdateScheduleCommand.d.ts +3 -8
  33. package/dist-types/index.d.ts +1 -0
  34. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  35. package/dist-types/runtimeConfig.d.ts +1 -1
  36. package/dist-types/runtimeConfig.native.d.ts +1 -1
  37. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  38. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  39. package/dist-types/ts3.4/commands/CreateScheduleCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/CreateScheduleGroupCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/DeleteScheduleCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/DeleteScheduleGroupCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/GetScheduleCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/GetScheduleGroupCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/ListScheduleGroupsCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/ListSchedulesCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/UpdateScheduleCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/index.d.ts +1 -0
  52. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  53. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  54. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  55. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  56. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultSchedulerHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -700,6 +702,7 @@ const getRuntimeConfig$1 = (config) => {
700
702
  serviceTarget: "AWSChronosService",
701
703
  },
702
704
  serviceId: config?.serviceId ?? "Scheduler",
705
+ sha256: config?.sha256 ?? Sha256,
703
706
  urlParser: config?.urlParser ?? parseUrl,
704
707
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
705
708
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -733,7 +736,6 @@ const getRuntimeConfig = (config) => {
733
736
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
734
737
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
735
738
  }, config),
736
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
737
739
  streamCollector: config?.streamCollector ?? streamCollector,
738
740
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
739
741
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -821,148 +823,44 @@ class SchedulerClient extends Client {
821
823
  }
822
824
  }
823
825
 
824
- class CreateScheduleCommand extends Command
825
- .classBuilder()
826
- .ep(commonParams)
827
- .m(function (Command, cs, config, o) {
828
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
829
- })
830
- .s("AWSChronosService", "CreateSchedule", {})
831
- .n("SchedulerClient", "CreateScheduleCommand")
832
- .sc(CreateSchedule$)
833
- .build() {
826
+ const command = makeBuilder(commonParams, "AWSChronosService", "SchedulerClient", getEndpointPlugin);
827
+ const _ep0 = {};
828
+ const _mw0 = (Command, cs, config, o) => [];
829
+
830
+ class CreateScheduleCommand extends command(_ep0, _mw0, "CreateSchedule", CreateSchedule$) {
834
831
  }
835
832
 
836
- class CreateScheduleGroupCommand extends Command
837
- .classBuilder()
838
- .ep(commonParams)
839
- .m(function (Command, cs, config, o) {
840
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
841
- })
842
- .s("AWSChronosService", "CreateScheduleGroup", {})
843
- .n("SchedulerClient", "CreateScheduleGroupCommand")
844
- .sc(CreateScheduleGroup$)
845
- .build() {
833
+ class CreateScheduleGroupCommand extends command(_ep0, _mw0, "CreateScheduleGroup", CreateScheduleGroup$) {
846
834
  }
847
835
 
848
- class DeleteScheduleCommand extends Command
849
- .classBuilder()
850
- .ep(commonParams)
851
- .m(function (Command, cs, config, o) {
852
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
853
- })
854
- .s("AWSChronosService", "DeleteSchedule", {})
855
- .n("SchedulerClient", "DeleteScheduleCommand")
856
- .sc(DeleteSchedule$)
857
- .build() {
836
+ class DeleteScheduleCommand extends command(_ep0, _mw0, "DeleteSchedule", DeleteSchedule$) {
858
837
  }
859
838
 
860
- class DeleteScheduleGroupCommand extends Command
861
- .classBuilder()
862
- .ep(commonParams)
863
- .m(function (Command, cs, config, o) {
864
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
865
- })
866
- .s("AWSChronosService", "DeleteScheduleGroup", {})
867
- .n("SchedulerClient", "DeleteScheduleGroupCommand")
868
- .sc(DeleteScheduleGroup$)
869
- .build() {
839
+ class DeleteScheduleGroupCommand extends command(_ep0, _mw0, "DeleteScheduleGroup", DeleteScheduleGroup$) {
870
840
  }
871
841
 
872
- class GetScheduleCommand extends Command
873
- .classBuilder()
874
- .ep(commonParams)
875
- .m(function (Command, cs, config, o) {
876
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
877
- })
878
- .s("AWSChronosService", "GetSchedule", {})
879
- .n("SchedulerClient", "GetScheduleCommand")
880
- .sc(GetSchedule$)
881
- .build() {
842
+ class GetScheduleCommand extends command(_ep0, _mw0, "GetSchedule", GetSchedule$) {
882
843
  }
883
844
 
884
- class GetScheduleGroupCommand extends Command
885
- .classBuilder()
886
- .ep(commonParams)
887
- .m(function (Command, cs, config, o) {
888
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
889
- })
890
- .s("AWSChronosService", "GetScheduleGroup", {})
891
- .n("SchedulerClient", "GetScheduleGroupCommand")
892
- .sc(GetScheduleGroup$)
893
- .build() {
845
+ class GetScheduleGroupCommand extends command(_ep0, _mw0, "GetScheduleGroup", GetScheduleGroup$) {
894
846
  }
895
847
 
896
- class ListScheduleGroupsCommand extends Command
897
- .classBuilder()
898
- .ep(commonParams)
899
- .m(function (Command, cs, config, o) {
900
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
901
- })
902
- .s("AWSChronosService", "ListScheduleGroups", {})
903
- .n("SchedulerClient", "ListScheduleGroupsCommand")
904
- .sc(ListScheduleGroups$)
905
- .build() {
848
+ class ListScheduleGroupsCommand extends command(_ep0, _mw0, "ListScheduleGroups", ListScheduleGroups$) {
906
849
  }
907
850
 
908
- class ListSchedulesCommand extends Command
909
- .classBuilder()
910
- .ep(commonParams)
911
- .m(function (Command, cs, config, o) {
912
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
913
- })
914
- .s("AWSChronosService", "ListSchedules", {})
915
- .n("SchedulerClient", "ListSchedulesCommand")
916
- .sc(ListSchedules$)
917
- .build() {
851
+ class ListSchedulesCommand extends command(_ep0, _mw0, "ListSchedules", ListSchedules$) {
918
852
  }
919
853
 
920
- class ListTagsForResourceCommand extends Command
921
- .classBuilder()
922
- .ep(commonParams)
923
- .m(function (Command, cs, config, o) {
924
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
925
- })
926
- .s("AWSChronosService", "ListTagsForResource", {})
927
- .n("SchedulerClient", "ListTagsForResourceCommand")
928
- .sc(ListTagsForResource$)
929
- .build() {
854
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
930
855
  }
931
856
 
932
- class TagResourceCommand extends Command
933
- .classBuilder()
934
- .ep(commonParams)
935
- .m(function (Command, cs, config, o) {
936
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
937
- })
938
- .s("AWSChronosService", "TagResource", {})
939
- .n("SchedulerClient", "TagResourceCommand")
940
- .sc(TagResource$)
941
- .build() {
857
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
942
858
  }
943
859
 
944
- class UntagResourceCommand extends Command
945
- .classBuilder()
946
- .ep(commonParams)
947
- .m(function (Command, cs, config, o) {
948
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
949
- })
950
- .s("AWSChronosService", "UntagResource", {})
951
- .n("SchedulerClient", "UntagResourceCommand")
952
- .sc(UntagResource$)
953
- .build() {
860
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
954
861
  }
955
862
 
956
- class UpdateScheduleCommand extends Command
957
- .classBuilder()
958
- .ep(commonParams)
959
- .m(function (Command, cs, config, o) {
960
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
961
- })
962
- .s("AWSChronosService", "UpdateSchedule", {})
963
- .n("SchedulerClient", "UpdateScheduleCommand")
964
- .sc(UpdateSchedule$)
965
- .build() {
863
+ class UpdateScheduleCommand extends command(_ep0, _mw0, "UpdateSchedule", UpdateSchedule$) {
966
864
  }
967
865
 
968
866
  const paginateListScheduleGroups = createPaginator(SchedulerClient, ListScheduleGroupsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "AWSChronosService", "SchedulerClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateSchedule$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateScheduleCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSChronosService", "CreateSchedule", {})
13
- .n("SchedulerClient", "CreateScheduleCommand")
14
- .sc(CreateSchedule$)
15
- .build() {
3
+ export class CreateScheduleCommand extends command(_ep0, _mw0, "CreateSchedule", CreateSchedule$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateScheduleGroup$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateScheduleGroupCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSChronosService", "CreateScheduleGroup", {})
13
- .n("SchedulerClient", "CreateScheduleGroupCommand")
14
- .sc(CreateScheduleGroup$)
15
- .build() {
3
+ export class CreateScheduleGroupCommand extends command(_ep0, _mw0, "CreateScheduleGroup", CreateScheduleGroup$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteSchedule$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteScheduleCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSChronosService", "DeleteSchedule", {})
13
- .n("SchedulerClient", "DeleteScheduleCommand")
14
- .sc(DeleteSchedule$)
15
- .build() {
3
+ export class DeleteScheduleCommand extends command(_ep0, _mw0, "DeleteSchedule", DeleteSchedule$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteScheduleGroup$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteScheduleGroupCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSChronosService", "DeleteScheduleGroup", {})
13
- .n("SchedulerClient", "DeleteScheduleGroupCommand")
14
- .sc(DeleteScheduleGroup$)
15
- .build() {
3
+ export class DeleteScheduleGroupCommand extends command(_ep0, _mw0, "DeleteScheduleGroup", DeleteScheduleGroup$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetSchedule$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetScheduleCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSChronosService", "GetSchedule", {})
13
- .n("SchedulerClient", "GetScheduleCommand")
14
- .sc(GetSchedule$)
15
- .build() {
3
+ export class GetScheduleCommand extends command(_ep0, _mw0, "GetSchedule", GetSchedule$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetScheduleGroup$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetScheduleGroupCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSChronosService", "GetScheduleGroup", {})
13
- .n("SchedulerClient", "GetScheduleGroupCommand")
14
- .sc(GetScheduleGroup$)
15
- .build() {
3
+ export class GetScheduleGroupCommand extends command(_ep0, _mw0, "GetScheduleGroup", GetScheduleGroup$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListScheduleGroups$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListScheduleGroupsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSChronosService", "ListScheduleGroups", {})
13
- .n("SchedulerClient", "ListScheduleGroupsCommand")
14
- .sc(ListScheduleGroups$)
15
- .build() {
3
+ export class ListScheduleGroupsCommand extends command(_ep0, _mw0, "ListScheduleGroups", ListScheduleGroups$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListSchedules$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSchedulesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSChronosService", "ListSchedules", {})
13
- .n("SchedulerClient", "ListSchedulesCommand")
14
- .sc(ListSchedules$)
15
- .build() {
3
+ export class ListSchedulesCommand extends command(_ep0, _mw0, "ListSchedules", ListSchedules$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSChronosService", "ListTagsForResource", {})
13
- .n("SchedulerClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSChronosService", "TagResource", {})
13
- .n("SchedulerClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UntagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSChronosService", "UntagResource", {})
13
- .n("SchedulerClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateSchedule$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateScheduleCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSChronosService", "UpdateSchedule", {})
13
- .n("SchedulerClient", "UpdateScheduleCommand")
14
- .sc(UpdateSchedule$)
15
- .build() {
3
+ export class UpdateScheduleCommand extends command(_ep0, _mw0, "UpdateSchedule", UpdateSchedule$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./SchedulerClient";
2
2
  export * from "./Scheduler";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "AWSChronosService",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "Scheduler",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./SchedulerClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreateScheduleInput, CreateScheduleOutput } from "../models/models_0";
4
- import type { SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchedulerClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateScheduleCommandInput extends CreateScheduleInput {
22
19
  export interface CreateScheduleCommandOutput extends CreateScheduleOutput, __MetadataBearer {
23
20
  }
24
21
  declare const CreateScheduleCommand_base: {
25
- new (input: CreateScheduleCommandInput): import("@smithy/core/client").CommandImpl<CreateScheduleCommandInput, CreateScheduleCommandOutput, SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateScheduleCommandInput): import("@smithy/core/client").CommandImpl<CreateScheduleCommandInput, CreateScheduleCommandOutput, SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateScheduleCommandInput): import("@smithy/core/client").CommandImpl<CreateScheduleCommandInput, CreateScheduleCommandOutput, import("..").SchedulerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateScheduleCommandInput): import("@smithy/core/client").CommandImpl<CreateScheduleCommandInput, CreateScheduleCommandOutput, import("..").SchedulerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates the specified schedule.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreateScheduleGroupInput, CreateScheduleGroupOutput } from "../models/models_0";
4
- import type { SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchedulerClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateScheduleGroupCommandInput extends CreateScheduleGroupInpu
22
19
  export interface CreateScheduleGroupCommandOutput extends CreateScheduleGroupOutput, __MetadataBearer {
23
20
  }
24
21
  declare const CreateScheduleGroupCommand_base: {
25
- new (input: CreateScheduleGroupCommandInput): import("@smithy/core/client").CommandImpl<CreateScheduleGroupCommandInput, CreateScheduleGroupCommandOutput, SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateScheduleGroupCommandInput): import("@smithy/core/client").CommandImpl<CreateScheduleGroupCommandInput, CreateScheduleGroupCommandOutput, SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateScheduleGroupCommandInput): import("@smithy/core/client").CommandImpl<CreateScheduleGroupCommandInput, CreateScheduleGroupCommandOutput, import("..").SchedulerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateScheduleGroupCommandInput): import("@smithy/core/client").CommandImpl<CreateScheduleGroupCommandInput, CreateScheduleGroupCommandOutput, import("..").SchedulerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates the specified schedule group.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DeleteScheduleInput, DeleteScheduleOutput } from "../models/models_0";
4
- import type { SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchedulerClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeleteScheduleCommandInput extends DeleteScheduleInput {
22
19
  export interface DeleteScheduleCommandOutput extends DeleteScheduleOutput, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteScheduleCommand_base: {
25
- new (input: DeleteScheduleCommandInput): import("@smithy/core/client").CommandImpl<DeleteScheduleCommandInput, DeleteScheduleCommandOutput, SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteScheduleCommandInput): import("@smithy/core/client").CommandImpl<DeleteScheduleCommandInput, DeleteScheduleCommandOutput, SchedulerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteScheduleCommandInput): import("@smithy/core/client").CommandImpl<DeleteScheduleCommandInput, DeleteScheduleCommandOutput, import("..").SchedulerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteScheduleCommandInput): import("@smithy/core/client").CommandImpl<DeleteScheduleCommandInput, DeleteScheduleCommandOutput, import("..").SchedulerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes the specified schedule.</p>