@aws-sdk/client-workspaces-thin-client 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 (68) hide show
  1. package/dist-cjs/index.js +27 -165
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateEnvironmentCommand.js +2 -14
  4. package/dist-es/commands/DeleteDeviceCommand.js +2 -14
  5. package/dist-es/commands/DeleteEnvironmentCommand.js +2 -14
  6. package/dist-es/commands/DeregisterDeviceCommand.js +2 -14
  7. package/dist-es/commands/GetDeviceCommand.js +2 -14
  8. package/dist-es/commands/GetEnvironmentCommand.js +2 -14
  9. package/dist-es/commands/GetSoftwareSetCommand.js +2 -14
  10. package/dist-es/commands/ListDevicesCommand.js +2 -14
  11. package/dist-es/commands/ListEnvironmentsCommand.js +2 -14
  12. package/dist-es/commands/ListSoftwareSetsCommand.js +2 -14
  13. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  14. package/dist-es/commands/TagResourceCommand.js +2 -14
  15. package/dist-es/commands/UntagResourceCommand.js +2 -14
  16. package/dist-es/commands/UpdateDeviceCommand.js +2 -14
  17. package/dist-es/commands/UpdateEnvironmentCommand.js +2 -14
  18. package/dist-es/commands/UpdateSoftwareSetCommand.js +2 -14
  19. package/dist-es/index.js +1 -0
  20. package/dist-es/runtimeConfig.browser.js +0 -2
  21. package/dist-es/runtimeConfig.js +1 -2
  22. package/dist-es/runtimeConfig.native.js +0 -2
  23. package/dist-es/runtimeConfig.shared.js +2 -0
  24. package/dist-types/commandBuilder.d.ts +18 -0
  25. package/dist-types/commands/CreateEnvironmentCommand.d.ts +3 -8
  26. package/dist-types/commands/DeleteDeviceCommand.d.ts +3 -8
  27. package/dist-types/commands/DeleteEnvironmentCommand.d.ts +3 -8
  28. package/dist-types/commands/DeregisterDeviceCommand.d.ts +3 -8
  29. package/dist-types/commands/GetDeviceCommand.d.ts +3 -8
  30. package/dist-types/commands/GetEnvironmentCommand.d.ts +3 -8
  31. package/dist-types/commands/GetSoftwareSetCommand.d.ts +3 -8
  32. package/dist-types/commands/ListDevicesCommand.d.ts +3 -8
  33. package/dist-types/commands/ListEnvironmentsCommand.d.ts +3 -8
  34. package/dist-types/commands/ListSoftwareSetsCommand.d.ts +3 -8
  35. package/dist-types/commands/ListTagsForResourceCommand.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/UpdateDeviceCommand.d.ts +3 -8
  39. package/dist-types/commands/UpdateEnvironmentCommand.d.ts +3 -8
  40. package/dist-types/commands/UpdateSoftwareSetCommand.d.ts +3 -8
  41. package/dist-types/index.d.ts +1 -0
  42. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  43. package/dist-types/runtimeConfig.d.ts +1 -1
  44. package/dist-types/runtimeConfig.native.d.ts +1 -1
  45. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  46. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  47. package/dist-types/ts3.4/commands/CreateEnvironmentCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/DeleteDeviceCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/DeleteEnvironmentCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/DeregisterDeviceCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/GetDeviceCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/GetEnvironmentCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/GetSoftwareSetCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/ListDevicesCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/ListEnvironmentsCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/ListSoftwareSetsCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/commands/UpdateDeviceCommand.d.ts +7 -16
  61. package/dist-types/ts3.4/commands/UpdateEnvironmentCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/UpdateSoftwareSetCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/index.d.ts +1 -0
  64. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  65. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  66. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  67. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  68. 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 defaultWorkSpacesThinClientHttpAuthSchemeParametersProvider = 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
 
@@ -760,6 +762,7 @@ const getRuntimeConfig$1 = (config) => {
760
762
  serviceTarget: "ThinClient",
761
763
  },
762
764
  serviceId: config?.serviceId ?? "WorkSpaces Thin Client",
765
+ sha256: config?.sha256 ?? Sha256,
763
766
  urlParser: config?.urlParser ?? parseUrl,
764
767
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
765
768
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -793,7 +796,6 @@ const getRuntimeConfig = (config) => {
793
796
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
794
797
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
795
798
  }, config),
796
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
797
799
  streamCollector: config?.streamCollector ?? streamCollector,
798
800
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
799
801
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -881,196 +883,56 @@ class WorkSpacesThinClientClient extends Client {
881
883
  }
882
884
  }
883
885
 
884
- class CreateEnvironmentCommand extends Command
885
- .classBuilder()
886
- .ep(commonParams)
887
- .m(function (Command, cs, config, o) {
888
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
889
- })
890
- .s("ThinClient", "CreateEnvironment", {})
891
- .n("WorkSpacesThinClientClient", "CreateEnvironmentCommand")
892
- .sc(CreateEnvironment$)
893
- .build() {
886
+ const command = makeBuilder(commonParams, "ThinClient", "WorkSpacesThinClientClient", getEndpointPlugin);
887
+ const _ep0 = {};
888
+ const _mw0 = (Command, cs, config, o) => [];
889
+
890
+ class CreateEnvironmentCommand extends command(_ep0, _mw0, "CreateEnvironment", CreateEnvironment$) {
894
891
  }
895
892
 
896
- class DeleteDeviceCommand extends Command
897
- .classBuilder()
898
- .ep(commonParams)
899
- .m(function (Command, cs, config, o) {
900
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
901
- })
902
- .s("ThinClient", "DeleteDevice", {})
903
- .n("WorkSpacesThinClientClient", "DeleteDeviceCommand")
904
- .sc(DeleteDevice$)
905
- .build() {
893
+ class DeleteDeviceCommand extends command(_ep0, _mw0, "DeleteDevice", DeleteDevice$) {
906
894
  }
907
895
 
908
- class DeleteEnvironmentCommand extends Command
909
- .classBuilder()
910
- .ep(commonParams)
911
- .m(function (Command, cs, config, o) {
912
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
913
- })
914
- .s("ThinClient", "DeleteEnvironment", {})
915
- .n("WorkSpacesThinClientClient", "DeleteEnvironmentCommand")
916
- .sc(DeleteEnvironment$)
917
- .build() {
896
+ class DeleteEnvironmentCommand extends command(_ep0, _mw0, "DeleteEnvironment", DeleteEnvironment$) {
918
897
  }
919
898
 
920
- class DeregisterDeviceCommand extends Command
921
- .classBuilder()
922
- .ep(commonParams)
923
- .m(function (Command, cs, config, o) {
924
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
925
- })
926
- .s("ThinClient", "DeregisterDevice", {})
927
- .n("WorkSpacesThinClientClient", "DeregisterDeviceCommand")
928
- .sc(DeregisterDevice$)
929
- .build() {
899
+ class DeregisterDeviceCommand extends command(_ep0, _mw0, "DeregisterDevice", DeregisterDevice$) {
930
900
  }
931
901
 
932
- class GetDeviceCommand extends Command
933
- .classBuilder()
934
- .ep(commonParams)
935
- .m(function (Command, cs, config, o) {
936
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
937
- })
938
- .s("ThinClient", "GetDevice", {})
939
- .n("WorkSpacesThinClientClient", "GetDeviceCommand")
940
- .sc(GetDevice$)
941
- .build() {
902
+ class GetDeviceCommand extends command(_ep0, _mw0, "GetDevice", GetDevice$) {
942
903
  }
943
904
 
944
- class GetEnvironmentCommand extends Command
945
- .classBuilder()
946
- .ep(commonParams)
947
- .m(function (Command, cs, config, o) {
948
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
949
- })
950
- .s("ThinClient", "GetEnvironment", {})
951
- .n("WorkSpacesThinClientClient", "GetEnvironmentCommand")
952
- .sc(GetEnvironment$)
953
- .build() {
905
+ class GetEnvironmentCommand extends command(_ep0, _mw0, "GetEnvironment", GetEnvironment$) {
954
906
  }
955
907
 
956
- class GetSoftwareSetCommand extends Command
957
- .classBuilder()
958
- .ep(commonParams)
959
- .m(function (Command, cs, config, o) {
960
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
961
- })
962
- .s("ThinClient", "GetSoftwareSet", {})
963
- .n("WorkSpacesThinClientClient", "GetSoftwareSetCommand")
964
- .sc(GetSoftwareSet$)
965
- .build() {
908
+ class GetSoftwareSetCommand extends command(_ep0, _mw0, "GetSoftwareSet", GetSoftwareSet$) {
966
909
  }
967
910
 
968
- class ListDevicesCommand extends Command
969
- .classBuilder()
970
- .ep(commonParams)
971
- .m(function (Command, cs, config, o) {
972
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
973
- })
974
- .s("ThinClient", "ListDevices", {})
975
- .n("WorkSpacesThinClientClient", "ListDevicesCommand")
976
- .sc(ListDevices$)
977
- .build() {
911
+ class ListDevicesCommand extends command(_ep0, _mw0, "ListDevices", ListDevices$) {
978
912
  }
979
913
 
980
- class ListEnvironmentsCommand extends Command
981
- .classBuilder()
982
- .ep(commonParams)
983
- .m(function (Command, cs, config, o) {
984
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
985
- })
986
- .s("ThinClient", "ListEnvironments", {})
987
- .n("WorkSpacesThinClientClient", "ListEnvironmentsCommand")
988
- .sc(ListEnvironments$)
989
- .build() {
914
+ class ListEnvironmentsCommand extends command(_ep0, _mw0, "ListEnvironments", ListEnvironments$) {
990
915
  }
991
916
 
992
- class ListSoftwareSetsCommand extends Command
993
- .classBuilder()
994
- .ep(commonParams)
995
- .m(function (Command, cs, config, o) {
996
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
997
- })
998
- .s("ThinClient", "ListSoftwareSets", {})
999
- .n("WorkSpacesThinClientClient", "ListSoftwareSetsCommand")
1000
- .sc(ListSoftwareSets$)
1001
- .build() {
917
+ class ListSoftwareSetsCommand extends command(_ep0, _mw0, "ListSoftwareSets", ListSoftwareSets$) {
1002
918
  }
1003
919
 
1004
- class ListTagsForResourceCommand extends Command
1005
- .classBuilder()
1006
- .ep(commonParams)
1007
- .m(function (Command, cs, config, o) {
1008
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1009
- })
1010
- .s("ThinClient", "ListTagsForResource", {})
1011
- .n("WorkSpacesThinClientClient", "ListTagsForResourceCommand")
1012
- .sc(ListTagsForResource$)
1013
- .build() {
920
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1014
921
  }
1015
922
 
1016
- class TagResourceCommand extends Command
1017
- .classBuilder()
1018
- .ep(commonParams)
1019
- .m(function (Command, cs, config, o) {
1020
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1021
- })
1022
- .s("ThinClient", "TagResource", {})
1023
- .n("WorkSpacesThinClientClient", "TagResourceCommand")
1024
- .sc(TagResource$)
1025
- .build() {
923
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1026
924
  }
1027
925
 
1028
- class UntagResourceCommand extends Command
1029
- .classBuilder()
1030
- .ep(commonParams)
1031
- .m(function (Command, cs, config, o) {
1032
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1033
- })
1034
- .s("ThinClient", "UntagResource", {})
1035
- .n("WorkSpacesThinClientClient", "UntagResourceCommand")
1036
- .sc(UntagResource$)
1037
- .build() {
926
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1038
927
  }
1039
928
 
1040
- class UpdateDeviceCommand extends Command
1041
- .classBuilder()
1042
- .ep(commonParams)
1043
- .m(function (Command, cs, config, o) {
1044
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1045
- })
1046
- .s("ThinClient", "UpdateDevice", {})
1047
- .n("WorkSpacesThinClientClient", "UpdateDeviceCommand")
1048
- .sc(UpdateDevice$)
1049
- .build() {
929
+ class UpdateDeviceCommand extends command(_ep0, _mw0, "UpdateDevice", UpdateDevice$) {
1050
930
  }
1051
931
 
1052
- class UpdateEnvironmentCommand extends Command
1053
- .classBuilder()
1054
- .ep(commonParams)
1055
- .m(function (Command, cs, config, o) {
1056
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1057
- })
1058
- .s("ThinClient", "UpdateEnvironment", {})
1059
- .n("WorkSpacesThinClientClient", "UpdateEnvironmentCommand")
1060
- .sc(UpdateEnvironment$)
1061
- .build() {
932
+ class UpdateEnvironmentCommand extends command(_ep0, _mw0, "UpdateEnvironment", UpdateEnvironment$) {
1062
933
  }
1063
934
 
1064
- class UpdateSoftwareSetCommand extends Command
1065
- .classBuilder()
1066
- .ep(commonParams)
1067
- .m(function (Command, cs, config, o) {
1068
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1069
- })
1070
- .s("ThinClient", "UpdateSoftwareSet", {})
1071
- .n("WorkSpacesThinClientClient", "UpdateSoftwareSetCommand")
1072
- .sc(UpdateSoftwareSet$)
1073
- .build() {
935
+ class UpdateSoftwareSetCommand extends command(_ep0, _mw0, "UpdateSoftwareSet", UpdateSoftwareSet$) {
1074
936
  }
1075
937
 
1076
938
  const paginateListDevices = createPaginator(WorkSpacesThinClientClient, ListDevicesCommand, "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, "ThinClient", "WorkSpacesThinClientClient", 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 { 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("ThinClient", "CreateEnvironment", {})
13
- .n("WorkSpacesThinClientClient", "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 { DeleteDevice$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteDeviceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ThinClient", "DeleteDevice", {})
13
- .n("WorkSpacesThinClientClient", "DeleteDeviceCommand")
14
- .sc(DeleteDevice$)
15
- .build() {
3
+ export class DeleteDeviceCommand extends command(_ep0, _mw0, "DeleteDevice", DeleteDevice$) {
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("ThinClient", "DeleteEnvironment", {})
13
- .n("WorkSpacesThinClientClient", "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 { DeregisterDevice$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeregisterDeviceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ThinClient", "DeregisterDevice", {})
13
- .n("WorkSpacesThinClientClient", "DeregisterDeviceCommand")
14
- .sc(DeregisterDevice$)
15
- .build() {
3
+ export class DeregisterDeviceCommand extends command(_ep0, _mw0, "DeregisterDevice", DeregisterDevice$) {
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 { GetDevice$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetDeviceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ThinClient", "GetDevice", {})
13
- .n("WorkSpacesThinClientClient", "GetDeviceCommand")
14
- .sc(GetDevice$)
15
- .build() {
3
+ export class GetDeviceCommand extends command(_ep0, _mw0, "GetDevice", GetDevice$) {
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("ThinClient", "GetEnvironment", {})
13
- .n("WorkSpacesThinClientClient", "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 { GetSoftwareSet$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetSoftwareSetCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ThinClient", "GetSoftwareSet", {})
13
- .n("WorkSpacesThinClientClient", "GetSoftwareSetCommand")
14
- .sc(GetSoftwareSet$)
15
- .build() {
3
+ export class GetSoftwareSetCommand extends command(_ep0, _mw0, "GetSoftwareSet", GetSoftwareSet$) {
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 { ListDevices$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListDevicesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ThinClient", "ListDevices", {})
13
- .n("WorkSpacesThinClientClient", "ListDevicesCommand")
14
- .sc(ListDevices$)
15
- .build() {
3
+ export class ListDevicesCommand extends command(_ep0, _mw0, "ListDevices", ListDevices$) {
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("ThinClient", "ListEnvironments", {})
13
- .n("WorkSpacesThinClientClient", "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 { ListSoftwareSets$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSoftwareSetsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ThinClient", "ListSoftwareSets", {})
13
- .n("WorkSpacesThinClientClient", "ListSoftwareSetsCommand")
14
- .sc(ListSoftwareSets$)
15
- .build() {
3
+ export class ListSoftwareSetsCommand extends command(_ep0, _mw0, "ListSoftwareSets", ListSoftwareSets$) {
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("ThinClient", "ListTagsForResource", {})
13
- .n("WorkSpacesThinClientClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ThinClient", "TagResource", {})
13
- .n("WorkSpacesThinClientClient", "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("ThinClient", "UntagResource", {})
13
- .n("WorkSpacesThinClientClient", "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 { UpdateDevice$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateDeviceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ThinClient", "UpdateDevice", {})
13
- .n("WorkSpacesThinClientClient", "UpdateDeviceCommand")
14
- .sc(UpdateDevice$)
15
- .build() {
3
+ export class UpdateDeviceCommand extends command(_ep0, _mw0, "UpdateDevice", UpdateDevice$) {
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("ThinClient", "UpdateEnvironment", {})
13
- .n("WorkSpacesThinClientClient", "UpdateEnvironmentCommand")
14
- .sc(UpdateEnvironment$)
15
- .build() {
3
+ export class UpdateEnvironmentCommand extends command(_ep0, _mw0, "UpdateEnvironment", UpdateEnvironment$) {
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 { UpdateSoftwareSet$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateSoftwareSetCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ThinClient", "UpdateSoftwareSet", {})
13
- .n("WorkSpacesThinClientClient", "UpdateSoftwareSetCommand")
14
- .sc(UpdateSoftwareSet$)
15
- .build() {
3
+ export class UpdateSoftwareSetCommand extends command(_ep0, _mw0, "UpdateSoftwareSet", UpdateSoftwareSet$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./WorkSpacesThinClientClient";
2
2
  export * from "./WorkSpacesThinClient";
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
  };