@aws-sdk/client-mwaa-serverless 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 (65) hide show
  1. package/dist-cjs/index.js +26 -155
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateWorkflowCommand.js +2 -14
  4. package/dist-es/commands/DeleteWorkflowCommand.js +2 -14
  5. package/dist-es/commands/GetTaskInstanceCommand.js +2 -14
  6. package/dist-es/commands/GetWorkflowCommand.js +2 -14
  7. package/dist-es/commands/GetWorkflowRunCommand.js +2 -14
  8. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  9. package/dist-es/commands/ListTaskInstancesCommand.js +2 -14
  10. package/dist-es/commands/ListWorkflowRunsCommand.js +2 -14
  11. package/dist-es/commands/ListWorkflowVersionsCommand.js +2 -14
  12. package/dist-es/commands/ListWorkflowsCommand.js +2 -14
  13. package/dist-es/commands/StartWorkflowRunCommand.js +2 -14
  14. package/dist-es/commands/StopWorkflowRunCommand.js +2 -14
  15. package/dist-es/commands/TagResourceCommand.js +2 -14
  16. package/dist-es/commands/UntagResourceCommand.js +2 -14
  17. package/dist-es/commands/UpdateWorkflowCommand.js +2 -14
  18. package/dist-es/index.js +1 -0
  19. package/dist-es/runtimeConfig.browser.js +0 -2
  20. package/dist-es/runtimeConfig.js +1 -2
  21. package/dist-es/runtimeConfig.native.js +0 -2
  22. package/dist-es/runtimeConfig.shared.js +2 -0
  23. package/dist-types/commandBuilder.d.ts +18 -0
  24. package/dist-types/commands/CreateWorkflowCommand.d.ts +3 -8
  25. package/dist-types/commands/DeleteWorkflowCommand.d.ts +3 -8
  26. package/dist-types/commands/GetTaskInstanceCommand.d.ts +3 -8
  27. package/dist-types/commands/GetWorkflowCommand.d.ts +3 -8
  28. package/dist-types/commands/GetWorkflowRunCommand.d.ts +3 -8
  29. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  30. package/dist-types/commands/ListTaskInstancesCommand.d.ts +3 -8
  31. package/dist-types/commands/ListWorkflowRunsCommand.d.ts +3 -8
  32. package/dist-types/commands/ListWorkflowVersionsCommand.d.ts +3 -8
  33. package/dist-types/commands/ListWorkflowsCommand.d.ts +3 -8
  34. package/dist-types/commands/StartWorkflowRunCommand.d.ts +3 -8
  35. package/dist-types/commands/StopWorkflowRunCommand.d.ts +3 -8
  36. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  37. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  38. package/dist-types/commands/UpdateWorkflowCommand.d.ts +3 -8
  39. package/dist-types/index.d.ts +1 -0
  40. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  41. package/dist-types/runtimeConfig.d.ts +1 -1
  42. package/dist-types/runtimeConfig.native.d.ts +1 -1
  43. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  44. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  45. package/dist-types/ts3.4/commands/CreateWorkflowCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/DeleteWorkflowCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/GetTaskInstanceCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/GetWorkflowCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/GetWorkflowRunCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/ListTaskInstancesCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/ListWorkflowRunsCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/ListWorkflowVersionsCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/ListWorkflowsCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/StartWorkflowRunCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/StopWorkflowRunCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/UpdateWorkflowCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/index.d.ts +1 -0
  61. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  62. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  63. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  64. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  65. 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 { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultMWAAServerlessHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -65,7 +67,7 @@ const commonParams = {
65
67
  Region: { type: "builtInParams", name: "region" },
66
68
  };
67
69
 
68
- var version = "3.1075.0";
70
+ var version = "3.1077.0";
69
71
  var packageInfo = {
70
72
  version: version};
71
73
 
@@ -763,6 +765,7 @@ const getRuntimeConfig$1 = (config) => {
763
765
  serviceTarget: "AmazonMWAAServerless",
764
766
  },
765
767
  serviceId: config?.serviceId ?? "MWAA Serverless",
768
+ sha256: config?.sha256 ?? Sha256,
766
769
  urlParser: config?.urlParser ?? parseUrl,
767
770
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
768
771
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -796,7 +799,6 @@ const getRuntimeConfig = (config) => {
796
799
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
797
800
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
798
801
  }, config),
799
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
800
802
  streamCollector: config?.streamCollector ?? streamCollector,
801
803
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
802
804
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -884,184 +886,53 @@ class MWAAServerlessClient extends Client {
884
886
  }
885
887
  }
886
888
 
887
- class CreateWorkflowCommand extends Command
888
- .classBuilder()
889
- .ep(commonParams)
890
- .m(function (Command, cs, config, o) {
891
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
892
- })
893
- .s("AmazonMWAAServerless", "CreateWorkflow", {})
894
- .n("MWAAServerlessClient", "CreateWorkflowCommand")
895
- .sc(CreateWorkflow$)
896
- .build() {
889
+ const command = makeBuilder(commonParams, "AmazonMWAAServerless", "MWAAServerlessClient", getEndpointPlugin);
890
+ const _ep0 = {};
891
+ const _mw0 = (Command, cs, config, o) => [];
892
+
893
+ class CreateWorkflowCommand extends command(_ep0, _mw0, "CreateWorkflow", CreateWorkflow$) {
897
894
  }
898
895
 
899
- class DeleteWorkflowCommand extends Command
900
- .classBuilder()
901
- .ep(commonParams)
902
- .m(function (Command, cs, config, o) {
903
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
904
- })
905
- .s("AmazonMWAAServerless", "DeleteWorkflow", {})
906
- .n("MWAAServerlessClient", "DeleteWorkflowCommand")
907
- .sc(DeleteWorkflow$)
908
- .build() {
896
+ class DeleteWorkflowCommand extends command(_ep0, _mw0, "DeleteWorkflow", DeleteWorkflow$) {
909
897
  }
910
898
 
911
- class GetTaskInstanceCommand extends Command
912
- .classBuilder()
913
- .ep(commonParams)
914
- .m(function (Command, cs, config, o) {
915
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
916
- })
917
- .s("AmazonMWAAServerless", "GetTaskInstance", {})
918
- .n("MWAAServerlessClient", "GetTaskInstanceCommand")
919
- .sc(GetTaskInstance$)
920
- .build() {
899
+ class GetTaskInstanceCommand extends command(_ep0, _mw0, "GetTaskInstance", GetTaskInstance$) {
921
900
  }
922
901
 
923
- class GetWorkflowCommand extends Command
924
- .classBuilder()
925
- .ep(commonParams)
926
- .m(function (Command, cs, config, o) {
927
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
928
- })
929
- .s("AmazonMWAAServerless", "GetWorkflow", {})
930
- .n("MWAAServerlessClient", "GetWorkflowCommand")
931
- .sc(GetWorkflow$)
932
- .build() {
902
+ class GetWorkflowCommand extends command(_ep0, _mw0, "GetWorkflow", GetWorkflow$) {
933
903
  }
934
904
 
935
- class GetWorkflowRunCommand extends Command
936
- .classBuilder()
937
- .ep(commonParams)
938
- .m(function (Command, cs, config, o) {
939
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
940
- })
941
- .s("AmazonMWAAServerless", "GetWorkflowRun", {})
942
- .n("MWAAServerlessClient", "GetWorkflowRunCommand")
943
- .sc(GetWorkflowRun$)
944
- .build() {
905
+ class GetWorkflowRunCommand extends command(_ep0, _mw0, "GetWorkflowRun", GetWorkflowRun$) {
945
906
  }
946
907
 
947
- class ListTagsForResourceCommand extends Command
948
- .classBuilder()
949
- .ep(commonParams)
950
- .m(function (Command, cs, config, o) {
951
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
952
- })
953
- .s("AmazonMWAAServerless", "ListTagsForResource", {})
954
- .n("MWAAServerlessClient", "ListTagsForResourceCommand")
955
- .sc(ListTagsForResource$)
956
- .build() {
908
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
957
909
  }
958
910
 
959
- class ListTaskInstancesCommand extends Command
960
- .classBuilder()
961
- .ep(commonParams)
962
- .m(function (Command, cs, config, o) {
963
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
964
- })
965
- .s("AmazonMWAAServerless", "ListTaskInstances", {})
966
- .n("MWAAServerlessClient", "ListTaskInstancesCommand")
967
- .sc(ListTaskInstances$)
968
- .build() {
911
+ class ListTaskInstancesCommand extends command(_ep0, _mw0, "ListTaskInstances", ListTaskInstances$) {
969
912
  }
970
913
 
971
- class ListWorkflowRunsCommand extends Command
972
- .classBuilder()
973
- .ep(commonParams)
974
- .m(function (Command, cs, config, o) {
975
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
976
- })
977
- .s("AmazonMWAAServerless", "ListWorkflowRuns", {})
978
- .n("MWAAServerlessClient", "ListWorkflowRunsCommand")
979
- .sc(ListWorkflowRuns$)
980
- .build() {
914
+ class ListWorkflowRunsCommand extends command(_ep0, _mw0, "ListWorkflowRuns", ListWorkflowRuns$) {
981
915
  }
982
916
 
983
- class ListWorkflowsCommand extends Command
984
- .classBuilder()
985
- .ep(commonParams)
986
- .m(function (Command, cs, config, o) {
987
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
988
- })
989
- .s("AmazonMWAAServerless", "ListWorkflows", {})
990
- .n("MWAAServerlessClient", "ListWorkflowsCommand")
991
- .sc(ListWorkflows$)
992
- .build() {
917
+ class ListWorkflowsCommand extends command(_ep0, _mw0, "ListWorkflows", ListWorkflows$) {
993
918
  }
994
919
 
995
- class ListWorkflowVersionsCommand extends Command
996
- .classBuilder()
997
- .ep(commonParams)
998
- .m(function (Command, cs, config, o) {
999
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1000
- })
1001
- .s("AmazonMWAAServerless", "ListWorkflowVersions", {})
1002
- .n("MWAAServerlessClient", "ListWorkflowVersionsCommand")
1003
- .sc(ListWorkflowVersions$)
1004
- .build() {
920
+ class ListWorkflowVersionsCommand extends command(_ep0, _mw0, "ListWorkflowVersions", ListWorkflowVersions$) {
1005
921
  }
1006
922
 
1007
- class StartWorkflowRunCommand extends Command
1008
- .classBuilder()
1009
- .ep(commonParams)
1010
- .m(function (Command, cs, config, o) {
1011
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1012
- })
1013
- .s("AmazonMWAAServerless", "StartWorkflowRun", {})
1014
- .n("MWAAServerlessClient", "StartWorkflowRunCommand")
1015
- .sc(StartWorkflowRun$)
1016
- .build() {
923
+ class StartWorkflowRunCommand extends command(_ep0, _mw0, "StartWorkflowRun", StartWorkflowRun$) {
1017
924
  }
1018
925
 
1019
- class StopWorkflowRunCommand extends Command
1020
- .classBuilder()
1021
- .ep(commonParams)
1022
- .m(function (Command, cs, config, o) {
1023
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1024
- })
1025
- .s("AmazonMWAAServerless", "StopWorkflowRun", {})
1026
- .n("MWAAServerlessClient", "StopWorkflowRunCommand")
1027
- .sc(StopWorkflowRun$)
1028
- .build() {
926
+ class StopWorkflowRunCommand extends command(_ep0, _mw0, "StopWorkflowRun", StopWorkflowRun$) {
1029
927
  }
1030
928
 
1031
- class TagResourceCommand extends Command
1032
- .classBuilder()
1033
- .ep(commonParams)
1034
- .m(function (Command, cs, config, o) {
1035
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1036
- })
1037
- .s("AmazonMWAAServerless", "TagResource", {})
1038
- .n("MWAAServerlessClient", "TagResourceCommand")
1039
- .sc(TagResource$)
1040
- .build() {
929
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1041
930
  }
1042
931
 
1043
- class UntagResourceCommand extends Command
1044
- .classBuilder()
1045
- .ep(commonParams)
1046
- .m(function (Command, cs, config, o) {
1047
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1048
- })
1049
- .s("AmazonMWAAServerless", "UntagResource", {})
1050
- .n("MWAAServerlessClient", "UntagResourceCommand")
1051
- .sc(UntagResource$)
1052
- .build() {
932
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1053
933
  }
1054
934
 
1055
- class UpdateWorkflowCommand extends Command
1056
- .classBuilder()
1057
- .ep(commonParams)
1058
- .m(function (Command, cs, config, o) {
1059
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1060
- })
1061
- .s("AmazonMWAAServerless", "UpdateWorkflow", {})
1062
- .n("MWAAServerlessClient", "UpdateWorkflowCommand")
1063
- .sc(UpdateWorkflow$)
1064
- .build() {
935
+ class UpdateWorkflowCommand extends command(_ep0, _mw0, "UpdateWorkflow", UpdateWorkflow$) {
1065
936
  }
1066
937
 
1067
938
  const paginateListTaskInstances = createPaginator(MWAAServerlessClient, ListTaskInstancesCommand, "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, "AmazonMWAAServerless", "MWAAServerlessClient", 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 { CreateWorkflow$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateWorkflowCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAAServerless", "CreateWorkflow", {})
13
- .n("MWAAServerlessClient", "CreateWorkflowCommand")
14
- .sc(CreateWorkflow$)
15
- .build() {
3
+ export class CreateWorkflowCommand extends command(_ep0, _mw0, "CreateWorkflow", CreateWorkflow$) {
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 { DeleteWorkflow$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteWorkflowCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAAServerless", "DeleteWorkflow", {})
13
- .n("MWAAServerlessClient", "DeleteWorkflowCommand")
14
- .sc(DeleteWorkflow$)
15
- .build() {
3
+ export class DeleteWorkflowCommand extends command(_ep0, _mw0, "DeleteWorkflow", DeleteWorkflow$) {
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 { GetTaskInstance$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetTaskInstanceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAAServerless", "GetTaskInstance", {})
13
- .n("MWAAServerlessClient", "GetTaskInstanceCommand")
14
- .sc(GetTaskInstance$)
15
- .build() {
3
+ export class GetTaskInstanceCommand extends command(_ep0, _mw0, "GetTaskInstance", GetTaskInstance$) {
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 { GetWorkflow$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetWorkflowCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAAServerless", "GetWorkflow", {})
13
- .n("MWAAServerlessClient", "GetWorkflowCommand")
14
- .sc(GetWorkflow$)
15
- .build() {
3
+ export class GetWorkflowCommand extends command(_ep0, _mw0, "GetWorkflow", GetWorkflow$) {
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 { GetWorkflowRun$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetWorkflowRunCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAAServerless", "GetWorkflowRun", {})
13
- .n("MWAAServerlessClient", "GetWorkflowRunCommand")
14
- .sc(GetWorkflowRun$)
15
- .build() {
3
+ export class GetWorkflowRunCommand extends command(_ep0, _mw0, "GetWorkflowRun", GetWorkflowRun$) {
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("AmazonMWAAServerless", "ListTagsForResource", {})
13
- .n("MWAAServerlessClient", "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 { ListTaskInstances$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTaskInstancesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAAServerless", "ListTaskInstances", {})
13
- .n("MWAAServerlessClient", "ListTaskInstancesCommand")
14
- .sc(ListTaskInstances$)
15
- .build() {
3
+ export class ListTaskInstancesCommand extends command(_ep0, _mw0, "ListTaskInstances", ListTaskInstances$) {
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 { ListWorkflowRuns$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListWorkflowRunsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAAServerless", "ListWorkflowRuns", {})
13
- .n("MWAAServerlessClient", "ListWorkflowRunsCommand")
14
- .sc(ListWorkflowRuns$)
15
- .build() {
3
+ export class ListWorkflowRunsCommand extends command(_ep0, _mw0, "ListWorkflowRuns", ListWorkflowRuns$) {
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 { ListWorkflowVersions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListWorkflowVersionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAAServerless", "ListWorkflowVersions", {})
13
- .n("MWAAServerlessClient", "ListWorkflowVersionsCommand")
14
- .sc(ListWorkflowVersions$)
15
- .build() {
3
+ export class ListWorkflowVersionsCommand extends command(_ep0, _mw0, "ListWorkflowVersions", ListWorkflowVersions$) {
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 { ListWorkflows$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListWorkflowsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAAServerless", "ListWorkflows", {})
13
- .n("MWAAServerlessClient", "ListWorkflowsCommand")
14
- .sc(ListWorkflows$)
15
- .build() {
3
+ export class ListWorkflowsCommand extends command(_ep0, _mw0, "ListWorkflows", ListWorkflows$) {
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 { StartWorkflowRun$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StartWorkflowRunCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAAServerless", "StartWorkflowRun", {})
13
- .n("MWAAServerlessClient", "StartWorkflowRunCommand")
14
- .sc(StartWorkflowRun$)
15
- .build() {
3
+ export class StartWorkflowRunCommand extends command(_ep0, _mw0, "StartWorkflowRun", StartWorkflowRun$) {
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 { StopWorkflowRun$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StopWorkflowRunCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAAServerless", "StopWorkflowRun", {})
13
- .n("MWAAServerlessClient", "StopWorkflowRunCommand")
14
- .sc(StopWorkflowRun$)
15
- .build() {
3
+ export class StopWorkflowRunCommand extends command(_ep0, _mw0, "StopWorkflowRun", StopWorkflowRun$) {
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("AmazonMWAAServerless", "TagResource", {})
13
- .n("MWAAServerlessClient", "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("AmazonMWAAServerless", "UntagResource", {})
13
- .n("MWAAServerlessClient", "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 { UpdateWorkflow$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateWorkflowCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAAServerless", "UpdateWorkflow", {})
13
- .n("MWAAServerlessClient", "UpdateWorkflowCommand")
14
- .sc(UpdateWorkflow$)
15
- .build() {
3
+ export class UpdateWorkflowCommand extends command(_ep0, _mw0, "UpdateWorkflow", UpdateWorkflow$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./MWAAServerlessClient";
2
2
  export * from "./MWAAServerless";
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 { AwsJson1_0Protocol } 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: "AmazonMWAAServerless",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "MWAA Serverless",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,