@aws-sdk/client-launch-wizard 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/CreateDeploymentCommand.js +2 -14
  4. package/dist-es/commands/DeleteDeploymentCommand.js +2 -14
  5. package/dist-es/commands/GetDeploymentCommand.js +2 -14
  6. package/dist-es/commands/GetDeploymentPatternVersionCommand.js +2 -14
  7. package/dist-es/commands/GetWorkloadCommand.js +2 -14
  8. package/dist-es/commands/GetWorkloadDeploymentPatternCommand.js +2 -14
  9. package/dist-es/commands/ListDeploymentEventsCommand.js +2 -14
  10. package/dist-es/commands/ListDeploymentPatternVersionsCommand.js +2 -14
  11. package/dist-es/commands/ListDeploymentsCommand.js +2 -14
  12. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  13. package/dist-es/commands/ListWorkloadDeploymentPatternsCommand.js +2 -14
  14. package/dist-es/commands/ListWorkloadsCommand.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/UpdateDeploymentCommand.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/CreateDeploymentCommand.d.ts +3 -8
  25. package/dist-types/commands/DeleteDeploymentCommand.d.ts +3 -8
  26. package/dist-types/commands/GetDeploymentCommand.d.ts +3 -8
  27. package/dist-types/commands/GetDeploymentPatternVersionCommand.d.ts +3 -8
  28. package/dist-types/commands/GetWorkloadCommand.d.ts +3 -8
  29. package/dist-types/commands/GetWorkloadDeploymentPatternCommand.d.ts +3 -8
  30. package/dist-types/commands/ListDeploymentEventsCommand.d.ts +3 -8
  31. package/dist-types/commands/ListDeploymentPatternVersionsCommand.d.ts +3 -8
  32. package/dist-types/commands/ListDeploymentsCommand.d.ts +3 -8
  33. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  34. package/dist-types/commands/ListWorkloadDeploymentPatternsCommand.d.ts +3 -8
  35. package/dist-types/commands/ListWorkloadsCommand.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/UpdateDeploymentCommand.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/CreateDeploymentCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/DeleteDeploymentCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/GetDeploymentPatternVersionCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/GetWorkloadCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/GetWorkloadDeploymentPatternCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/ListDeploymentEventsCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/ListDeploymentPatternVersionsCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/ListWorkloadDeploymentPatternsCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/ListWorkloadsCommand.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/UpdateDeploymentCommand.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 { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultLaunchWizardHttpAuthSchemeParametersProvider = 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
 
@@ -653,6 +655,7 @@ const getRuntimeConfig$1 = (config) => {
653
655
  serviceTarget: "LaunchWizard",
654
656
  },
655
657
  serviceId: config?.serviceId ?? "Launch Wizard",
658
+ sha256: config?.sha256 ?? Sha256,
656
659
  urlParser: config?.urlParser ?? parseUrl,
657
660
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
658
661
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -686,7 +689,6 @@ const getRuntimeConfig = (config) => {
686
689
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
687
690
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
688
691
  }, config),
689
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
690
692
  streamCollector: config?.streamCollector ?? streamCollector,
691
693
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
692
694
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -774,184 +776,53 @@ class LaunchWizardClient extends Client {
774
776
  }
775
777
  }
776
778
 
777
- class CreateDeploymentCommand extends Command
778
- .classBuilder()
779
- .ep(commonParams)
780
- .m(function (Command, cs, config, o) {
781
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
782
- })
783
- .s("LaunchWizard", "CreateDeployment", {})
784
- .n("LaunchWizardClient", "CreateDeploymentCommand")
785
- .sc(CreateDeployment$)
786
- .build() {
779
+ const command = makeBuilder(commonParams, "LaunchWizard", "LaunchWizardClient", getEndpointPlugin);
780
+ const _ep0 = {};
781
+ const _mw0 = (Command, cs, config, o) => [];
782
+
783
+ class CreateDeploymentCommand extends command(_ep0, _mw0, "CreateDeployment", CreateDeployment$) {
787
784
  }
788
785
 
789
- class DeleteDeploymentCommand extends Command
790
- .classBuilder()
791
- .ep(commonParams)
792
- .m(function (Command, cs, config, o) {
793
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
794
- })
795
- .s("LaunchWizard", "DeleteDeployment", {})
796
- .n("LaunchWizardClient", "DeleteDeploymentCommand")
797
- .sc(DeleteDeployment$)
798
- .build() {
786
+ class DeleteDeploymentCommand extends command(_ep0, _mw0, "DeleteDeployment", DeleteDeployment$) {
799
787
  }
800
788
 
801
- class GetDeploymentCommand extends Command
802
- .classBuilder()
803
- .ep(commonParams)
804
- .m(function (Command, cs, config, o) {
805
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
806
- })
807
- .s("LaunchWizard", "GetDeployment", {})
808
- .n("LaunchWizardClient", "GetDeploymentCommand")
809
- .sc(GetDeployment$)
810
- .build() {
789
+ class GetDeploymentCommand extends command(_ep0, _mw0, "GetDeployment", GetDeployment$) {
811
790
  }
812
791
 
813
- class GetDeploymentPatternVersionCommand extends Command
814
- .classBuilder()
815
- .ep(commonParams)
816
- .m(function (Command, cs, config, o) {
817
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
818
- })
819
- .s("LaunchWizard", "GetDeploymentPatternVersion", {})
820
- .n("LaunchWizardClient", "GetDeploymentPatternVersionCommand")
821
- .sc(GetDeploymentPatternVersion$)
822
- .build() {
792
+ class GetDeploymentPatternVersionCommand extends command(_ep0, _mw0, "GetDeploymentPatternVersion", GetDeploymentPatternVersion$) {
823
793
  }
824
794
 
825
- class GetWorkloadCommand extends Command
826
- .classBuilder()
827
- .ep(commonParams)
828
- .m(function (Command, cs, config, o) {
829
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
830
- })
831
- .s("LaunchWizard", "GetWorkload", {})
832
- .n("LaunchWizardClient", "GetWorkloadCommand")
833
- .sc(GetWorkload$)
834
- .build() {
795
+ class GetWorkloadCommand extends command(_ep0, _mw0, "GetWorkload", GetWorkload$) {
835
796
  }
836
797
 
837
- class GetWorkloadDeploymentPatternCommand extends Command
838
- .classBuilder()
839
- .ep(commonParams)
840
- .m(function (Command, cs, config, o) {
841
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
842
- })
843
- .s("LaunchWizard", "GetWorkloadDeploymentPattern", {})
844
- .n("LaunchWizardClient", "GetWorkloadDeploymentPatternCommand")
845
- .sc(GetWorkloadDeploymentPattern$)
846
- .build() {
798
+ class GetWorkloadDeploymentPatternCommand extends command(_ep0, _mw0, "GetWorkloadDeploymentPattern", GetWorkloadDeploymentPattern$) {
847
799
  }
848
800
 
849
- class ListDeploymentEventsCommand extends Command
850
- .classBuilder()
851
- .ep(commonParams)
852
- .m(function (Command, cs, config, o) {
853
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
854
- })
855
- .s("LaunchWizard", "ListDeploymentEvents", {})
856
- .n("LaunchWizardClient", "ListDeploymentEventsCommand")
857
- .sc(ListDeploymentEvents$)
858
- .build() {
801
+ class ListDeploymentEventsCommand extends command(_ep0, _mw0, "ListDeploymentEvents", ListDeploymentEvents$) {
859
802
  }
860
803
 
861
- class ListDeploymentPatternVersionsCommand extends Command
862
- .classBuilder()
863
- .ep(commonParams)
864
- .m(function (Command, cs, config, o) {
865
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
866
- })
867
- .s("LaunchWizard", "ListDeploymentPatternVersions", {})
868
- .n("LaunchWizardClient", "ListDeploymentPatternVersionsCommand")
869
- .sc(ListDeploymentPatternVersions$)
870
- .build() {
804
+ class ListDeploymentPatternVersionsCommand extends command(_ep0, _mw0, "ListDeploymentPatternVersions", ListDeploymentPatternVersions$) {
871
805
  }
872
806
 
873
- class ListDeploymentsCommand extends Command
874
- .classBuilder()
875
- .ep(commonParams)
876
- .m(function (Command, cs, config, o) {
877
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
878
- })
879
- .s("LaunchWizard", "ListDeployments", {})
880
- .n("LaunchWizardClient", "ListDeploymentsCommand")
881
- .sc(ListDeployments$)
882
- .build() {
807
+ class ListDeploymentsCommand extends command(_ep0, _mw0, "ListDeployments", ListDeployments$) {
883
808
  }
884
809
 
885
- class ListTagsForResourceCommand extends Command
886
- .classBuilder()
887
- .ep(commonParams)
888
- .m(function (Command, cs, config, o) {
889
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
890
- })
891
- .s("LaunchWizard", "ListTagsForResource", {})
892
- .n("LaunchWizardClient", "ListTagsForResourceCommand")
893
- .sc(ListTagsForResource$)
894
- .build() {
810
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
895
811
  }
896
812
 
897
- class ListWorkloadDeploymentPatternsCommand extends Command
898
- .classBuilder()
899
- .ep(commonParams)
900
- .m(function (Command, cs, config, o) {
901
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
902
- })
903
- .s("LaunchWizard", "ListWorkloadDeploymentPatterns", {})
904
- .n("LaunchWizardClient", "ListWorkloadDeploymentPatternsCommand")
905
- .sc(ListWorkloadDeploymentPatterns$)
906
- .build() {
813
+ class ListWorkloadDeploymentPatternsCommand extends command(_ep0, _mw0, "ListWorkloadDeploymentPatterns", ListWorkloadDeploymentPatterns$) {
907
814
  }
908
815
 
909
- class ListWorkloadsCommand extends Command
910
- .classBuilder()
911
- .ep(commonParams)
912
- .m(function (Command, cs, config, o) {
913
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
914
- })
915
- .s("LaunchWizard", "ListWorkloads", {})
916
- .n("LaunchWizardClient", "ListWorkloadsCommand")
917
- .sc(ListWorkloads$)
918
- .build() {
816
+ class ListWorkloadsCommand extends command(_ep0, _mw0, "ListWorkloads", ListWorkloads$) {
919
817
  }
920
818
 
921
- class TagResourceCommand extends Command
922
- .classBuilder()
923
- .ep(commonParams)
924
- .m(function (Command, cs, config, o) {
925
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
926
- })
927
- .s("LaunchWizard", "TagResource", {})
928
- .n("LaunchWizardClient", "TagResourceCommand")
929
- .sc(TagResource$)
930
- .build() {
819
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
931
820
  }
932
821
 
933
- class UntagResourceCommand extends Command
934
- .classBuilder()
935
- .ep(commonParams)
936
- .m(function (Command, cs, config, o) {
937
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
938
- })
939
- .s("LaunchWizard", "UntagResource", {})
940
- .n("LaunchWizardClient", "UntagResourceCommand")
941
- .sc(UntagResource$)
942
- .build() {
822
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
943
823
  }
944
824
 
945
- class UpdateDeploymentCommand extends Command
946
- .classBuilder()
947
- .ep(commonParams)
948
- .m(function (Command, cs, config, o) {
949
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
950
- })
951
- .s("LaunchWizard", "UpdateDeployment", {})
952
- .n("LaunchWizardClient", "UpdateDeploymentCommand")
953
- .sc(UpdateDeployment$)
954
- .build() {
825
+ class UpdateDeploymentCommand extends command(_ep0, _mw0, "UpdateDeployment", UpdateDeployment$) {
955
826
  }
956
827
 
957
828
  const paginateListDeploymentEvents = createPaginator(LaunchWizardClient, ListDeploymentEventsCommand, "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, "LaunchWizard", "LaunchWizardClient", 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 { CreateDeployment$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateDeploymentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("LaunchWizard", "CreateDeployment", {})
13
- .n("LaunchWizardClient", "CreateDeploymentCommand")
14
- .sc(CreateDeployment$)
15
- .build() {
3
+ export class CreateDeploymentCommand extends command(_ep0, _mw0, "CreateDeployment", CreateDeployment$) {
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 { DeleteDeployment$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteDeploymentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("LaunchWizard", "DeleteDeployment", {})
13
- .n("LaunchWizardClient", "DeleteDeploymentCommand")
14
- .sc(DeleteDeployment$)
15
- .build() {
3
+ export class DeleteDeploymentCommand extends command(_ep0, _mw0, "DeleteDeployment", DeleteDeployment$) {
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 { GetDeployment$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetDeploymentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("LaunchWizard", "GetDeployment", {})
13
- .n("LaunchWizardClient", "GetDeploymentCommand")
14
- .sc(GetDeployment$)
15
- .build() {
3
+ export class GetDeploymentCommand extends command(_ep0, _mw0, "GetDeployment", GetDeployment$) {
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 { GetDeploymentPatternVersion$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetDeploymentPatternVersionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("LaunchWizard", "GetDeploymentPatternVersion", {})
13
- .n("LaunchWizardClient", "GetDeploymentPatternVersionCommand")
14
- .sc(GetDeploymentPatternVersion$)
15
- .build() {
3
+ export class GetDeploymentPatternVersionCommand extends command(_ep0, _mw0, "GetDeploymentPatternVersion", GetDeploymentPatternVersion$) {
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 { GetWorkload$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetWorkloadCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("LaunchWizard", "GetWorkload", {})
13
- .n("LaunchWizardClient", "GetWorkloadCommand")
14
- .sc(GetWorkload$)
15
- .build() {
3
+ export class GetWorkloadCommand extends command(_ep0, _mw0, "GetWorkload", GetWorkload$) {
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 { GetWorkloadDeploymentPattern$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetWorkloadDeploymentPatternCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("LaunchWizard", "GetWorkloadDeploymentPattern", {})
13
- .n("LaunchWizardClient", "GetWorkloadDeploymentPatternCommand")
14
- .sc(GetWorkloadDeploymentPattern$)
15
- .build() {
3
+ export class GetWorkloadDeploymentPatternCommand extends command(_ep0, _mw0, "GetWorkloadDeploymentPattern", GetWorkloadDeploymentPattern$) {
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 { ListDeploymentEvents$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListDeploymentEventsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("LaunchWizard", "ListDeploymentEvents", {})
13
- .n("LaunchWizardClient", "ListDeploymentEventsCommand")
14
- .sc(ListDeploymentEvents$)
15
- .build() {
3
+ export class ListDeploymentEventsCommand extends command(_ep0, _mw0, "ListDeploymentEvents", ListDeploymentEvents$) {
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 { ListDeploymentPatternVersions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListDeploymentPatternVersionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("LaunchWizard", "ListDeploymentPatternVersions", {})
13
- .n("LaunchWizardClient", "ListDeploymentPatternVersionsCommand")
14
- .sc(ListDeploymentPatternVersions$)
15
- .build() {
3
+ export class ListDeploymentPatternVersionsCommand extends command(_ep0, _mw0, "ListDeploymentPatternVersions", ListDeploymentPatternVersions$) {
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 { ListDeployments$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListDeploymentsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("LaunchWizard", "ListDeployments", {})
13
- .n("LaunchWizardClient", "ListDeploymentsCommand")
14
- .sc(ListDeployments$)
15
- .build() {
3
+ export class ListDeploymentsCommand extends command(_ep0, _mw0, "ListDeployments", ListDeployments$) {
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("LaunchWizard", "ListTagsForResource", {})
13
- .n("LaunchWizardClient", "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 { ListWorkloadDeploymentPatterns$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListWorkloadDeploymentPatternsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("LaunchWizard", "ListWorkloadDeploymentPatterns", {})
13
- .n("LaunchWizardClient", "ListWorkloadDeploymentPatternsCommand")
14
- .sc(ListWorkloadDeploymentPatterns$)
15
- .build() {
3
+ export class ListWorkloadDeploymentPatternsCommand extends command(_ep0, _mw0, "ListWorkloadDeploymentPatterns", ListWorkloadDeploymentPatterns$) {
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 { ListWorkloads$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListWorkloadsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("LaunchWizard", "ListWorkloads", {})
13
- .n("LaunchWizardClient", "ListWorkloadsCommand")
14
- .sc(ListWorkloads$)
15
- .build() {
3
+ export class ListWorkloadsCommand extends command(_ep0, _mw0, "ListWorkloads", ListWorkloads$) {
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("LaunchWizard", "TagResource", {})
13
- .n("LaunchWizardClient", "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("LaunchWizard", "UntagResource", {})
13
- .n("LaunchWizardClient", "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 { UpdateDeployment$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateDeploymentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("LaunchWizard", "UpdateDeployment", {})
13
- .n("LaunchWizardClient", "UpdateDeploymentCommand")
14
- .sc(UpdateDeployment$)
15
- .build() {
3
+ export class UpdateDeploymentCommand extends command(_ep0, _mw0, "UpdateDeployment", UpdateDeployment$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./LaunchWizardClient";
2
2
  export * from "./LaunchWizard";
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: "LaunchWizard",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "Launch Wizard",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,