@aws-sdk/client-snow-device-management 3.1077.0 → 3.1079.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 (47) hide show
  1. package/dist-cjs/index.js +21 -133
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CancelTaskCommand.js +2 -14
  4. package/dist-es/commands/CreateTaskCommand.js +2 -14
  5. package/dist-es/commands/DescribeDeviceCommand.js +2 -14
  6. package/dist-es/commands/DescribeDeviceEc2InstancesCommand.js +2 -14
  7. package/dist-es/commands/DescribeExecutionCommand.js +2 -14
  8. package/dist-es/commands/DescribeTaskCommand.js +2 -14
  9. package/dist-es/commands/ListDeviceResourcesCommand.js +2 -14
  10. package/dist-es/commands/ListDevicesCommand.js +2 -14
  11. package/dist-es/commands/ListExecutionsCommand.js +2 -14
  12. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  13. package/dist-es/commands/ListTasksCommand.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/index.js +1 -0
  17. package/dist-types/commandBuilder.d.ts +18 -0
  18. package/dist-types/commands/CancelTaskCommand.d.ts +3 -8
  19. package/dist-types/commands/CreateTaskCommand.d.ts +3 -8
  20. package/dist-types/commands/DescribeDeviceCommand.d.ts +3 -8
  21. package/dist-types/commands/DescribeDeviceEc2InstancesCommand.d.ts +3 -8
  22. package/dist-types/commands/DescribeExecutionCommand.d.ts +3 -8
  23. package/dist-types/commands/DescribeTaskCommand.d.ts +3 -8
  24. package/dist-types/commands/ListDeviceResourcesCommand.d.ts +3 -8
  25. package/dist-types/commands/ListDevicesCommand.d.ts +3 -8
  26. package/dist-types/commands/ListExecutionsCommand.d.ts +3 -8
  27. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  28. package/dist-types/commands/ListTasksCommand.d.ts +3 -8
  29. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  30. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  31. package/dist-types/index.d.ts +1 -0
  32. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  33. package/dist-types/ts3.4/commands/CancelTaskCommand.d.ts +7 -16
  34. package/dist-types/ts3.4/commands/CreateTaskCommand.d.ts +7 -16
  35. package/dist-types/ts3.4/commands/DescribeDeviceCommand.d.ts +7 -16
  36. package/dist-types/ts3.4/commands/DescribeDeviceEc2InstancesCommand.d.ts +7 -16
  37. package/dist-types/ts3.4/commands/DescribeExecutionCommand.d.ts +7 -16
  38. package/dist-types/ts3.4/commands/DescribeTaskCommand.d.ts +7 -16
  39. package/dist-types/ts3.4/commands/ListDeviceResourcesCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/ListDevicesCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/ListExecutionsCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/ListTasksCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/index.d.ts +1 -0
  47. package/package.json +8 -8
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");
@@ -68,7 +69,7 @@ const commonParams = {
68
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
69
70
  };
70
71
 
71
- var version = "3.1076.0";
72
+ var version = "3.1078.0";
72
73
  var packageInfo = {
73
74
  version: version};
74
75
 
@@ -832,160 +833,47 @@ class SnowDeviceManagementClient extends Client {
832
833
  }
833
834
  }
834
835
 
835
- class CancelTaskCommand extends Command
836
- .classBuilder()
837
- .ep(commonParams)
838
- .m(function (Command, cs, config, o) {
839
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
840
- })
841
- .s("SnowDeviceManagement", "CancelTask", {})
842
- .n("SnowDeviceManagementClient", "CancelTaskCommand")
843
- .sc(CancelTask$)
844
- .build() {
836
+ const command = makeBuilder(commonParams, "SnowDeviceManagement", "SnowDeviceManagementClient", getEndpointPlugin);
837
+ const _ep0 = {};
838
+ const _mw0 = (Command, cs, config, o) => [];
839
+
840
+ class CancelTaskCommand extends command(_ep0, _mw0, "CancelTask", CancelTask$) {
845
841
  }
846
842
 
847
- class CreateTaskCommand extends Command
848
- .classBuilder()
849
- .ep(commonParams)
850
- .m(function (Command, cs, config, o) {
851
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
852
- })
853
- .s("SnowDeviceManagement", "CreateTask", {})
854
- .n("SnowDeviceManagementClient", "CreateTaskCommand")
855
- .sc(CreateTask$)
856
- .build() {
843
+ class CreateTaskCommand extends command(_ep0, _mw0, "CreateTask", CreateTask$) {
857
844
  }
858
845
 
859
- class DescribeDeviceCommand extends Command
860
- .classBuilder()
861
- .ep(commonParams)
862
- .m(function (Command, cs, config, o) {
863
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
864
- })
865
- .s("SnowDeviceManagement", "DescribeDevice", {})
866
- .n("SnowDeviceManagementClient", "DescribeDeviceCommand")
867
- .sc(DescribeDevice$)
868
- .build() {
846
+ class DescribeDeviceCommand extends command(_ep0, _mw0, "DescribeDevice", DescribeDevice$) {
869
847
  }
870
848
 
871
- class DescribeDeviceEc2InstancesCommand extends Command
872
- .classBuilder()
873
- .ep(commonParams)
874
- .m(function (Command, cs, config, o) {
875
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
876
- })
877
- .s("SnowDeviceManagement", "DescribeDeviceEc2Instances", {})
878
- .n("SnowDeviceManagementClient", "DescribeDeviceEc2InstancesCommand")
879
- .sc(DescribeDeviceEc2Instances$)
880
- .build() {
849
+ class DescribeDeviceEc2InstancesCommand extends command(_ep0, _mw0, "DescribeDeviceEc2Instances", DescribeDeviceEc2Instances$) {
881
850
  }
882
851
 
883
- class DescribeExecutionCommand extends Command
884
- .classBuilder()
885
- .ep(commonParams)
886
- .m(function (Command, cs, config, o) {
887
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
888
- })
889
- .s("SnowDeviceManagement", "DescribeExecution", {})
890
- .n("SnowDeviceManagementClient", "DescribeExecutionCommand")
891
- .sc(DescribeExecution$)
892
- .build() {
852
+ class DescribeExecutionCommand extends command(_ep0, _mw0, "DescribeExecution", DescribeExecution$) {
893
853
  }
894
854
 
895
- class DescribeTaskCommand extends Command
896
- .classBuilder()
897
- .ep(commonParams)
898
- .m(function (Command, cs, config, o) {
899
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
900
- })
901
- .s("SnowDeviceManagement", "DescribeTask", {})
902
- .n("SnowDeviceManagementClient", "DescribeTaskCommand")
903
- .sc(DescribeTask$)
904
- .build() {
855
+ class DescribeTaskCommand extends command(_ep0, _mw0, "DescribeTask", DescribeTask$) {
905
856
  }
906
857
 
907
- class ListDeviceResourcesCommand extends Command
908
- .classBuilder()
909
- .ep(commonParams)
910
- .m(function (Command, cs, config, o) {
911
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
912
- })
913
- .s("SnowDeviceManagement", "ListDeviceResources", {})
914
- .n("SnowDeviceManagementClient", "ListDeviceResourcesCommand")
915
- .sc(ListDeviceResources$)
916
- .build() {
858
+ class ListDeviceResourcesCommand extends command(_ep0, _mw0, "ListDeviceResources", ListDeviceResources$) {
917
859
  }
918
860
 
919
- class ListDevicesCommand extends Command
920
- .classBuilder()
921
- .ep(commonParams)
922
- .m(function (Command, cs, config, o) {
923
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
924
- })
925
- .s("SnowDeviceManagement", "ListDevices", {})
926
- .n("SnowDeviceManagementClient", "ListDevicesCommand")
927
- .sc(ListDevices$)
928
- .build() {
861
+ class ListDevicesCommand extends command(_ep0, _mw0, "ListDevices", ListDevices$) {
929
862
  }
930
863
 
931
- class ListExecutionsCommand extends Command
932
- .classBuilder()
933
- .ep(commonParams)
934
- .m(function (Command, cs, config, o) {
935
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
936
- })
937
- .s("SnowDeviceManagement", "ListExecutions", {})
938
- .n("SnowDeviceManagementClient", "ListExecutionsCommand")
939
- .sc(ListExecutions$)
940
- .build() {
864
+ class ListExecutionsCommand extends command(_ep0, _mw0, "ListExecutions", ListExecutions$) {
941
865
  }
942
866
 
943
- class ListTagsForResourceCommand extends Command
944
- .classBuilder()
945
- .ep(commonParams)
946
- .m(function (Command, cs, config, o) {
947
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
948
- })
949
- .s("SnowDeviceManagement", "ListTagsForResource", {})
950
- .n("SnowDeviceManagementClient", "ListTagsForResourceCommand")
951
- .sc(ListTagsForResource$)
952
- .build() {
867
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
953
868
  }
954
869
 
955
- class ListTasksCommand extends Command
956
- .classBuilder()
957
- .ep(commonParams)
958
- .m(function (Command, cs, config, o) {
959
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
960
- })
961
- .s("SnowDeviceManagement", "ListTasks", {})
962
- .n("SnowDeviceManagementClient", "ListTasksCommand")
963
- .sc(ListTasks$)
964
- .build() {
870
+ class ListTasksCommand extends command(_ep0, _mw0, "ListTasks", ListTasks$) {
965
871
  }
966
872
 
967
- class TagResourceCommand extends Command
968
- .classBuilder()
969
- .ep(commonParams)
970
- .m(function (Command, cs, config, o) {
971
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
972
- })
973
- .s("SnowDeviceManagement", "TagResource", {})
974
- .n("SnowDeviceManagementClient", "TagResourceCommand")
975
- .sc(TagResource$)
976
- .build() {
873
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
977
874
  }
978
875
 
979
- class UntagResourceCommand extends Command
980
- .classBuilder()
981
- .ep(commonParams)
982
- .m(function (Command, cs, config, o) {
983
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
984
- })
985
- .s("SnowDeviceManagement", "UntagResource", {})
986
- .n("SnowDeviceManagementClient", "UntagResourceCommand")
987
- .sc(UntagResource$)
988
- .build() {
876
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
989
877
  }
990
878
 
991
879
  const paginateListDeviceResources = createPaginator(SnowDeviceManagementClient, ListDeviceResourcesCommand, "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, "SnowDeviceManagement", "SnowDeviceManagementClient", 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 { CancelTask$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CancelTaskCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SnowDeviceManagement", "CancelTask", {})
13
- .n("SnowDeviceManagementClient", "CancelTaskCommand")
14
- .sc(CancelTask$)
15
- .build() {
3
+ export class CancelTaskCommand extends command(_ep0, _mw0, "CancelTask", CancelTask$) {
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 { CreateTask$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateTaskCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SnowDeviceManagement", "CreateTask", {})
13
- .n("SnowDeviceManagementClient", "CreateTaskCommand")
14
- .sc(CreateTask$)
15
- .build() {
3
+ export class CreateTaskCommand extends command(_ep0, _mw0, "CreateTask", CreateTask$) {
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 { DescribeDevice$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeDeviceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SnowDeviceManagement", "DescribeDevice", {})
13
- .n("SnowDeviceManagementClient", "DescribeDeviceCommand")
14
- .sc(DescribeDevice$)
15
- .build() {
3
+ export class DescribeDeviceCommand extends command(_ep0, _mw0, "DescribeDevice", DescribeDevice$) {
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 { DescribeDeviceEc2Instances$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeDeviceEc2InstancesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SnowDeviceManagement", "DescribeDeviceEc2Instances", {})
13
- .n("SnowDeviceManagementClient", "DescribeDeviceEc2InstancesCommand")
14
- .sc(DescribeDeviceEc2Instances$)
15
- .build() {
3
+ export class DescribeDeviceEc2InstancesCommand extends command(_ep0, _mw0, "DescribeDeviceEc2Instances", DescribeDeviceEc2Instances$) {
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 { DescribeExecution$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeExecutionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SnowDeviceManagement", "DescribeExecution", {})
13
- .n("SnowDeviceManagementClient", "DescribeExecutionCommand")
14
- .sc(DescribeExecution$)
15
- .build() {
3
+ export class DescribeExecutionCommand extends command(_ep0, _mw0, "DescribeExecution", DescribeExecution$) {
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 { DescribeTask$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeTaskCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SnowDeviceManagement", "DescribeTask", {})
13
- .n("SnowDeviceManagementClient", "DescribeTaskCommand")
14
- .sc(DescribeTask$)
15
- .build() {
3
+ export class DescribeTaskCommand extends command(_ep0, _mw0, "DescribeTask", DescribeTask$) {
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 { ListDeviceResources$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListDeviceResourcesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SnowDeviceManagement", "ListDeviceResources", {})
13
- .n("SnowDeviceManagementClient", "ListDeviceResourcesCommand")
14
- .sc(ListDeviceResources$)
15
- .build() {
3
+ export class ListDeviceResourcesCommand extends command(_ep0, _mw0, "ListDeviceResources", ListDeviceResources$) {
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("SnowDeviceManagement", "ListDevices", {})
13
- .n("SnowDeviceManagementClient", "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 { ListExecutions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListExecutionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SnowDeviceManagement", "ListExecutions", {})
13
- .n("SnowDeviceManagementClient", "ListExecutionsCommand")
14
- .sc(ListExecutions$)
15
- .build() {
3
+ export class ListExecutionsCommand extends command(_ep0, _mw0, "ListExecutions", ListExecutions$) {
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("SnowDeviceManagement", "ListTagsForResource", {})
13
- .n("SnowDeviceManagementClient", "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 { ListTasks$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTasksCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SnowDeviceManagement", "ListTasks", {})
13
- .n("SnowDeviceManagementClient", "ListTasksCommand")
14
- .sc(ListTasks$)
15
- .build() {
3
+ export class ListTasksCommand extends command(_ep0, _mw0, "ListTasks", ListTasks$) {
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("SnowDeviceManagement", "TagResource", {})
13
- .n("SnowDeviceManagementClient", "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("SnowDeviceManagement", "UntagResource", {})
13
- .n("SnowDeviceManagementClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./SnowDeviceManagementClient";
2
2
  export * from "./SnowDeviceManagement";
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";
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { ServiceInputTypes, ServiceOutputTypes, SnowDeviceManagementClientResolvedConfig } from "./SnowDeviceManagementClient";
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, SnowDeviceManagementClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, SnowDeviceManagementClientResolvedConfig, 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 { CancelTaskInput, CancelTaskOutput } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SnowDeviceManagementClientResolvedConfig } from "../SnowDeviceManagementClient";
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 CancelTaskCommandInput extends CancelTaskInput {
22
19
  export interface CancelTaskCommandOutput extends CancelTaskOutput, __MetadataBearer {
23
20
  }
24
21
  declare const CancelTaskCommand_base: {
25
- new (input: CancelTaskCommandInput): import("@smithy/core/client").CommandImpl<CancelTaskCommandInput, CancelTaskCommandOutput, SnowDeviceManagementClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CancelTaskCommandInput): import("@smithy/core/client").CommandImpl<CancelTaskCommandInput, CancelTaskCommandOutput, SnowDeviceManagementClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CancelTaskCommandInput): import("@smithy/core/client").CommandImpl<CancelTaskCommandInput, CancelTaskCommandOutput, import("..").SnowDeviceManagementClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CancelTaskCommandInput): import("@smithy/core/client").CommandImpl<CancelTaskCommandInput, CancelTaskCommandOutput, import("..").SnowDeviceManagementClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Sends a cancel request for a specified task. You can cancel a task only if it's still in a
@@ -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 { CreateTaskInput, CreateTaskOutput } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SnowDeviceManagementClientResolvedConfig } from "../SnowDeviceManagementClient";
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 CreateTaskCommandInput extends CreateTaskInput {
22
19
  export interface CreateTaskCommandOutput extends CreateTaskOutput, __MetadataBearer {
23
20
  }
24
21
  declare const CreateTaskCommand_base: {
25
- new (input: CreateTaskCommandInput): import("@smithy/core/client").CommandImpl<CreateTaskCommandInput, CreateTaskCommandOutput, SnowDeviceManagementClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateTaskCommandInput): import("@smithy/core/client").CommandImpl<CreateTaskCommandInput, CreateTaskCommandOutput, SnowDeviceManagementClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateTaskCommandInput): import("@smithy/core/client").CommandImpl<CreateTaskCommandInput, CreateTaskCommandOutput, import("..").SnowDeviceManagementClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateTaskCommandInput): import("@smithy/core/client").CommandImpl<CreateTaskCommandInput, CreateTaskCommandOutput, import("..").SnowDeviceManagementClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Instructs one or more devices to start a task, such as unlocking or rebooting.</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 { DescribeDeviceInput, DescribeDeviceOutput } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SnowDeviceManagementClientResolvedConfig } from "../SnowDeviceManagementClient";
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 DescribeDeviceCommandInput extends DescribeDeviceInput {
22
19
  export interface DescribeDeviceCommandOutput extends DescribeDeviceOutput, __MetadataBearer {
23
20
  }
24
21
  declare const DescribeDeviceCommand_base: {
25
- new (input: DescribeDeviceCommandInput): import("@smithy/core/client").CommandImpl<DescribeDeviceCommandInput, DescribeDeviceCommandOutput, SnowDeviceManagementClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DescribeDeviceCommandInput): import("@smithy/core/client").CommandImpl<DescribeDeviceCommandInput, DescribeDeviceCommandOutput, SnowDeviceManagementClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DescribeDeviceCommandInput): import("@smithy/core/client").CommandImpl<DescribeDeviceCommandInput, DescribeDeviceCommandOutput, import("..").SnowDeviceManagementClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DescribeDeviceCommandInput): import("@smithy/core/client").CommandImpl<DescribeDeviceCommandInput, DescribeDeviceCommandOutput, import("..").SnowDeviceManagementClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Checks device-specific information, such as the device type, software version, IP
@@ -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 { DescribeDeviceEc2Input, DescribeDeviceEc2Output } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SnowDeviceManagementClientResolvedConfig } from "../SnowDeviceManagementClient";
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 DescribeDeviceEc2InstancesCommandInput extends DescribeDeviceEc
22
19
  export interface DescribeDeviceEc2InstancesCommandOutput extends DescribeDeviceEc2Output, __MetadataBearer {
23
20
  }
24
21
  declare const DescribeDeviceEc2InstancesCommand_base: {
25
- new (input: DescribeDeviceEc2InstancesCommandInput): import("@smithy/core/client").CommandImpl<DescribeDeviceEc2InstancesCommandInput, DescribeDeviceEc2InstancesCommandOutput, SnowDeviceManagementClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DescribeDeviceEc2InstancesCommandInput): import("@smithy/core/client").CommandImpl<DescribeDeviceEc2InstancesCommandInput, DescribeDeviceEc2InstancesCommandOutput, SnowDeviceManagementClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DescribeDeviceEc2InstancesCommandInput): import("@smithy/core/client").CommandImpl<DescribeDeviceEc2InstancesCommandInput, DescribeDeviceEc2InstancesCommandOutput, import("..").SnowDeviceManagementClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DescribeDeviceEc2InstancesCommandInput): import("@smithy/core/client").CommandImpl<DescribeDeviceEc2InstancesCommandInput, DescribeDeviceEc2InstancesCommandOutput, import("..").SnowDeviceManagementClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Checks the current state of the Amazon EC2 instances. The output is similar to
@@ -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 { DescribeExecutionInput, DescribeExecutionOutput } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SnowDeviceManagementClientResolvedConfig } from "../SnowDeviceManagementClient";
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 DescribeExecutionCommandInput extends DescribeExecutionInput {
22
19
  export interface DescribeExecutionCommandOutput extends DescribeExecutionOutput, __MetadataBearer {
23
20
  }
24
21
  declare const DescribeExecutionCommand_base: {
25
- new (input: DescribeExecutionCommandInput): import("@smithy/core/client").CommandImpl<DescribeExecutionCommandInput, DescribeExecutionCommandOutput, SnowDeviceManagementClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DescribeExecutionCommandInput): import("@smithy/core/client").CommandImpl<DescribeExecutionCommandInput, DescribeExecutionCommandOutput, SnowDeviceManagementClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DescribeExecutionCommandInput): import("@smithy/core/client").CommandImpl<DescribeExecutionCommandInput, DescribeExecutionCommandOutput, import("..").SnowDeviceManagementClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DescribeExecutionCommandInput): import("@smithy/core/client").CommandImpl<DescribeExecutionCommandInput, DescribeExecutionCommandOutput, import("..").SnowDeviceManagementClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Checks the status of a remote task running on one or more target devices.</p>