@aws-sdk/client-mwaa 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/CreateCliTokenCommand.js +2 -14
  4. package/dist-es/commands/CreateEnvironmentCommand.js +2 -14
  5. package/dist-es/commands/CreateWebLoginTokenCommand.js +2 -14
  6. package/dist-es/commands/DeleteEnvironmentCommand.js +2 -14
  7. package/dist-es/commands/GetEnvironmentCommand.js +2 -14
  8. package/dist-es/commands/InvokeRestApiCommand.js +2 -14
  9. package/dist-es/commands/ListEnvironmentsCommand.js +2 -14
  10. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  11. package/dist-es/commands/PublishMetricsCommand.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/UpdateEnvironmentCommand.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/CreateCliTokenCommand.d.ts +3 -8
  22. package/dist-types/commands/CreateEnvironmentCommand.d.ts +3 -8
  23. package/dist-types/commands/CreateWebLoginTokenCommand.d.ts +3 -8
  24. package/dist-types/commands/DeleteEnvironmentCommand.d.ts +3 -8
  25. package/dist-types/commands/GetEnvironmentCommand.d.ts +3 -8
  26. package/dist-types/commands/InvokeRestApiCommand.d.ts +3 -8
  27. package/dist-types/commands/ListEnvironmentsCommand.d.ts +3 -8
  28. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  29. package/dist-types/commands/PublishMetricsCommand.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/UpdateEnvironmentCommand.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/CreateCliTokenCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/CreateEnvironmentCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/CreateWebLoginTokenCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/DeleteEnvironmentCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/GetEnvironmentCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/InvokeRestApiCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/ListEnvironmentsCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/PublishMetricsCommand.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/UpdateEnvironmentCommand.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 defaultMWAAHttpAuthSchemeParametersProvider = 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
 
@@ -682,6 +684,7 @@ const getRuntimeConfig$1 = (config) => {
682
684
  serviceTarget: "AmazonMWAA",
683
685
  },
684
686
  serviceId: config?.serviceId ?? "MWAA",
687
+ sha256: config?.sha256 ?? Sha256,
685
688
  urlParser: config?.urlParser ?? parseUrl,
686
689
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
687
690
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -715,7 +718,6 @@ const getRuntimeConfig = (config) => {
715
718
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
716
719
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
717
720
  }, config),
718
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
719
721
  streamCollector: config?.streamCollector ?? streamCollector,
720
722
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
721
723
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -803,148 +805,44 @@ class MWAAClient extends Client {
803
805
  }
804
806
  }
805
807
 
806
- class CreateCliTokenCommand extends Command
807
- .classBuilder()
808
- .ep(commonParams)
809
- .m(function (Command, cs, config, o) {
810
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
811
- })
812
- .s("AmazonMWAA", "CreateCliToken", {})
813
- .n("MWAAClient", "CreateCliTokenCommand")
814
- .sc(CreateCliToken$)
815
- .build() {
808
+ const command = makeBuilder(commonParams, "AmazonMWAA", "MWAAClient", getEndpointPlugin);
809
+ const _ep0 = {};
810
+ const _mw0 = (Command, cs, config, o) => [];
811
+
812
+ class CreateCliTokenCommand extends command(_ep0, _mw0, "CreateCliToken", CreateCliToken$) {
816
813
  }
817
814
 
818
- class CreateEnvironmentCommand extends Command
819
- .classBuilder()
820
- .ep(commonParams)
821
- .m(function (Command, cs, config, o) {
822
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
823
- })
824
- .s("AmazonMWAA", "CreateEnvironment", {})
825
- .n("MWAAClient", "CreateEnvironmentCommand")
826
- .sc(CreateEnvironment$)
827
- .build() {
815
+ class CreateEnvironmentCommand extends command(_ep0, _mw0, "CreateEnvironment", CreateEnvironment$) {
828
816
  }
829
817
 
830
- class CreateWebLoginTokenCommand extends Command
831
- .classBuilder()
832
- .ep(commonParams)
833
- .m(function (Command, cs, config, o) {
834
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
835
- })
836
- .s("AmazonMWAA", "CreateWebLoginToken", {})
837
- .n("MWAAClient", "CreateWebLoginTokenCommand")
838
- .sc(CreateWebLoginToken$)
839
- .build() {
818
+ class CreateWebLoginTokenCommand extends command(_ep0, _mw0, "CreateWebLoginToken", CreateWebLoginToken$) {
840
819
  }
841
820
 
842
- class DeleteEnvironmentCommand extends Command
843
- .classBuilder()
844
- .ep(commonParams)
845
- .m(function (Command, cs, config, o) {
846
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
847
- })
848
- .s("AmazonMWAA", "DeleteEnvironment", {})
849
- .n("MWAAClient", "DeleteEnvironmentCommand")
850
- .sc(DeleteEnvironment$)
851
- .build() {
821
+ class DeleteEnvironmentCommand extends command(_ep0, _mw0, "DeleteEnvironment", DeleteEnvironment$) {
852
822
  }
853
823
 
854
- class GetEnvironmentCommand extends Command
855
- .classBuilder()
856
- .ep(commonParams)
857
- .m(function (Command, cs, config, o) {
858
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
859
- })
860
- .s("AmazonMWAA", "GetEnvironment", {})
861
- .n("MWAAClient", "GetEnvironmentCommand")
862
- .sc(GetEnvironment$)
863
- .build() {
824
+ class GetEnvironmentCommand extends command(_ep0, _mw0, "GetEnvironment", GetEnvironment$) {
864
825
  }
865
826
 
866
- class InvokeRestApiCommand extends Command
867
- .classBuilder()
868
- .ep(commonParams)
869
- .m(function (Command, cs, config, o) {
870
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
871
- })
872
- .s("AmazonMWAA", "InvokeRestApi", {})
873
- .n("MWAAClient", "InvokeRestApiCommand")
874
- .sc(InvokeRestApi$)
875
- .build() {
827
+ class InvokeRestApiCommand extends command(_ep0, _mw0, "InvokeRestApi", InvokeRestApi$) {
876
828
  }
877
829
 
878
- class ListEnvironmentsCommand extends Command
879
- .classBuilder()
880
- .ep(commonParams)
881
- .m(function (Command, cs, config, o) {
882
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
883
- })
884
- .s("AmazonMWAA", "ListEnvironments", {})
885
- .n("MWAAClient", "ListEnvironmentsCommand")
886
- .sc(ListEnvironments$)
887
- .build() {
830
+ class ListEnvironmentsCommand extends command(_ep0, _mw0, "ListEnvironments", ListEnvironments$) {
888
831
  }
889
832
 
890
- class ListTagsForResourceCommand extends Command
891
- .classBuilder()
892
- .ep(commonParams)
893
- .m(function (Command, cs, config, o) {
894
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
895
- })
896
- .s("AmazonMWAA", "ListTagsForResource", {})
897
- .n("MWAAClient", "ListTagsForResourceCommand")
898
- .sc(ListTagsForResource$)
899
- .build() {
833
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
900
834
  }
901
835
 
902
- class PublishMetricsCommand extends Command
903
- .classBuilder()
904
- .ep(commonParams)
905
- .m(function (Command, cs, config, o) {
906
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
907
- })
908
- .s("AmazonMWAA", "PublishMetrics", {})
909
- .n("MWAAClient", "PublishMetricsCommand")
910
- .sc(PublishMetrics$)
911
- .build() {
836
+ class PublishMetricsCommand extends command(_ep0, _mw0, "PublishMetrics", PublishMetrics$) {
912
837
  }
913
838
 
914
- class TagResourceCommand extends Command
915
- .classBuilder()
916
- .ep(commonParams)
917
- .m(function (Command, cs, config, o) {
918
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
919
- })
920
- .s("AmazonMWAA", "TagResource", {})
921
- .n("MWAAClient", "TagResourceCommand")
922
- .sc(TagResource$)
923
- .build() {
839
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
924
840
  }
925
841
 
926
- class UntagResourceCommand extends Command
927
- .classBuilder()
928
- .ep(commonParams)
929
- .m(function (Command, cs, config, o) {
930
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
931
- })
932
- .s("AmazonMWAA", "UntagResource", {})
933
- .n("MWAAClient", "UntagResourceCommand")
934
- .sc(UntagResource$)
935
- .build() {
842
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
936
843
  }
937
844
 
938
- class UpdateEnvironmentCommand extends Command
939
- .classBuilder()
940
- .ep(commonParams)
941
- .m(function (Command, cs, config, o) {
942
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
943
- })
944
- .s("AmazonMWAA", "UpdateEnvironment", {})
945
- .n("MWAAClient", "UpdateEnvironmentCommand")
946
- .sc(UpdateEnvironment$)
947
- .build() {
845
+ class UpdateEnvironmentCommand extends command(_ep0, _mw0, "UpdateEnvironment", UpdateEnvironment$) {
948
846
  }
949
847
 
950
848
  const paginateListEnvironments = createPaginator(MWAAClient, ListEnvironmentsCommand, "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, "AmazonMWAA", "MWAAClient", 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 { CreateCliToken$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateCliTokenCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAA", "CreateCliToken", {})
13
- .n("MWAAClient", "CreateCliTokenCommand")
14
- .sc(CreateCliToken$)
15
- .build() {
3
+ export class CreateCliTokenCommand extends command(_ep0, _mw0, "CreateCliToken", CreateCliToken$) {
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 { CreateEnvironment$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateEnvironmentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAA", "CreateEnvironment", {})
13
- .n("MWAAClient", "CreateEnvironmentCommand")
14
- .sc(CreateEnvironment$)
15
- .build() {
3
+ export class CreateEnvironmentCommand extends command(_ep0, _mw0, "CreateEnvironment", CreateEnvironment$) {
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 { CreateWebLoginToken$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateWebLoginTokenCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAA", "CreateWebLoginToken", {})
13
- .n("MWAAClient", "CreateWebLoginTokenCommand")
14
- .sc(CreateWebLoginToken$)
15
- .build() {
3
+ export class CreateWebLoginTokenCommand extends command(_ep0, _mw0, "CreateWebLoginToken", CreateWebLoginToken$) {
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 { DeleteEnvironment$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteEnvironmentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAA", "DeleteEnvironment", {})
13
- .n("MWAAClient", "DeleteEnvironmentCommand")
14
- .sc(DeleteEnvironment$)
15
- .build() {
3
+ export class DeleteEnvironmentCommand extends command(_ep0, _mw0, "DeleteEnvironment", DeleteEnvironment$) {
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 { GetEnvironment$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetEnvironmentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAA", "GetEnvironment", {})
13
- .n("MWAAClient", "GetEnvironmentCommand")
14
- .sc(GetEnvironment$)
15
- .build() {
3
+ export class GetEnvironmentCommand extends command(_ep0, _mw0, "GetEnvironment", GetEnvironment$) {
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 { InvokeRestApi$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class InvokeRestApiCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAA", "InvokeRestApi", {})
13
- .n("MWAAClient", "InvokeRestApiCommand")
14
- .sc(InvokeRestApi$)
15
- .build() {
3
+ export class InvokeRestApiCommand extends command(_ep0, _mw0, "InvokeRestApi", InvokeRestApi$) {
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 { ListEnvironments$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListEnvironmentsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAA", "ListEnvironments", {})
13
- .n("MWAAClient", "ListEnvironmentsCommand")
14
- .sc(ListEnvironments$)
15
- .build() {
3
+ export class ListEnvironmentsCommand extends command(_ep0, _mw0, "ListEnvironments", ListEnvironments$) {
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("AmazonMWAA", "ListTagsForResource", {})
13
- .n("MWAAClient", "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 { PublishMetrics$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PublishMetricsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAA", "PublishMetrics", {})
13
- .n("MWAAClient", "PublishMetricsCommand")
14
- .sc(PublishMetrics$)
15
- .build() {
3
+ export class PublishMetricsCommand extends command(_ep0, _mw0, "PublishMetrics", PublishMetrics$) {
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("AmazonMWAA", "TagResource", {})
13
- .n("MWAAClient", "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("AmazonMWAA", "UntagResource", {})
13
- .n("MWAAClient", "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 { UpdateEnvironment$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateEnvironmentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonMWAA", "UpdateEnvironment", {})
13
- .n("MWAAClient", "UpdateEnvironmentCommand")
14
- .sc(UpdateEnvironment$)
15
- .build() {
3
+ export class UpdateEnvironmentCommand extends command(_ep0, _mw0, "UpdateEnvironment", UpdateEnvironment$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./MWAAClient";
2
2
  export * from "./MWAA";
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: "AmazonMWAA",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "MWAA",
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 { MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./MWAAClient";
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, MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, MWAAClientResolvedConfig, 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 { CreateCliTokenRequest, CreateCliTokenResponse } from "../models/models_0";
4
- import type { MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MWAAClient";
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 CreateCliTokenCommandInput extends CreateCliTokenRequest {
22
19
  export interface CreateCliTokenCommandOutput extends CreateCliTokenResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateCliTokenCommand_base: {
25
- new (input: CreateCliTokenCommandInput): import("@smithy/core/client").CommandImpl<CreateCliTokenCommandInput, CreateCliTokenCommandOutput, MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateCliTokenCommandInput): import("@smithy/core/client").CommandImpl<CreateCliTokenCommandInput, CreateCliTokenCommandOutput, MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateCliTokenCommandInput): import("@smithy/core/client").CommandImpl<CreateCliTokenCommandInput, CreateCliTokenCommandOutput, import("..").MWAAClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateCliTokenCommandInput): import("@smithy/core/client").CommandImpl<CreateCliTokenCommandInput, CreateCliTokenCommandOutput, import("..").MWAAClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a CLI token for the Airflow CLI. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/call-mwaa-apis-cli.html">Creating an Apache Airflow CLI token</a>.</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 { CreateEnvironmentInput, CreateEnvironmentOutput } from "../models/models_0";
4
- import type { MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MWAAClient";
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 CreateEnvironmentCommandInput extends CreateEnvironmentInput {
22
19
  export interface CreateEnvironmentCommandOutput extends CreateEnvironmentOutput, __MetadataBearer {
23
20
  }
24
21
  declare const CreateEnvironmentCommand_base: {
25
- new (input: CreateEnvironmentCommandInput): import("@smithy/core/client").CommandImpl<CreateEnvironmentCommandInput, CreateEnvironmentCommandOutput, MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateEnvironmentCommandInput): import("@smithy/core/client").CommandImpl<CreateEnvironmentCommandInput, CreateEnvironmentCommandOutput, MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateEnvironmentCommandInput): import("@smithy/core/client").CommandImpl<CreateEnvironmentCommandInput, CreateEnvironmentCommandOutput, import("..").MWAAClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateEnvironmentCommandInput): import("@smithy/core/client").CommandImpl<CreateEnvironmentCommandInput, CreateEnvironmentCommandOutput, import("..").MWAAClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment.</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 { CreateWebLoginTokenRequest, CreateWebLoginTokenResponse } from "../models/models_0";
4
- import type { MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MWAAClient";
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 CreateWebLoginTokenCommandInput extends CreateWebLoginTokenRequ
22
19
  export interface CreateWebLoginTokenCommandOutput extends CreateWebLoginTokenResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateWebLoginTokenCommand_base: {
25
- new (input: CreateWebLoginTokenCommandInput): import("@smithy/core/client").CommandImpl<CreateWebLoginTokenCommandInput, CreateWebLoginTokenCommandOutput, MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateWebLoginTokenCommandInput): import("@smithy/core/client").CommandImpl<CreateWebLoginTokenCommandInput, CreateWebLoginTokenCommandOutput, MWAAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateWebLoginTokenCommandInput): import("@smithy/core/client").CommandImpl<CreateWebLoginTokenCommandInput, CreateWebLoginTokenCommandOutput, import("..").MWAAClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateWebLoginTokenCommandInput): import("@smithy/core/client").CommandImpl<CreateWebLoginTokenCommandInput, CreateWebLoginTokenCommandOutput, import("..").MWAAClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a web login token for the Airflow Web UI. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/call-mwaa-apis-web.html">Creating an Apache Airflow web login token</a>.</p>