@aws-sdk/client-iotdeviceadvisor 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 (62) hide show
  1. package/dist-cjs/index.js +25 -145
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateSuiteDefinitionCommand.js +2 -14
  4. package/dist-es/commands/DeleteSuiteDefinitionCommand.js +2 -14
  5. package/dist-es/commands/GetEndpointCommand.js +2 -14
  6. package/dist-es/commands/GetSuiteDefinitionCommand.js +2 -14
  7. package/dist-es/commands/GetSuiteRunCommand.js +2 -14
  8. package/dist-es/commands/GetSuiteRunReportCommand.js +2 -14
  9. package/dist-es/commands/ListSuiteDefinitionsCommand.js +2 -14
  10. package/dist-es/commands/ListSuiteRunsCommand.js +2 -14
  11. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  12. package/dist-es/commands/StartSuiteRunCommand.js +2 -14
  13. package/dist-es/commands/StopSuiteRunCommand.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/UpdateSuiteDefinitionCommand.js +2 -14
  17. package/dist-es/index.js +1 -0
  18. package/dist-es/runtimeConfig.browser.js +0 -2
  19. package/dist-es/runtimeConfig.js +1 -2
  20. package/dist-es/runtimeConfig.native.js +0 -2
  21. package/dist-es/runtimeConfig.shared.js +2 -0
  22. package/dist-types/commandBuilder.d.ts +18 -0
  23. package/dist-types/commands/CreateSuiteDefinitionCommand.d.ts +3 -8
  24. package/dist-types/commands/DeleteSuiteDefinitionCommand.d.ts +3 -8
  25. package/dist-types/commands/GetEndpointCommand.d.ts +3 -8
  26. package/dist-types/commands/GetSuiteDefinitionCommand.d.ts +3 -8
  27. package/dist-types/commands/GetSuiteRunCommand.d.ts +3 -8
  28. package/dist-types/commands/GetSuiteRunReportCommand.d.ts +3 -8
  29. package/dist-types/commands/ListSuiteDefinitionsCommand.d.ts +3 -8
  30. package/dist-types/commands/ListSuiteRunsCommand.d.ts +3 -8
  31. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  32. package/dist-types/commands/StartSuiteRunCommand.d.ts +3 -8
  33. package/dist-types/commands/StopSuiteRunCommand.d.ts +3 -8
  34. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  35. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  36. package/dist-types/commands/UpdateSuiteDefinitionCommand.d.ts +3 -8
  37. package/dist-types/index.d.ts +1 -0
  38. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  39. package/dist-types/runtimeConfig.d.ts +1 -1
  40. package/dist-types/runtimeConfig.native.d.ts +1 -1
  41. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  42. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  43. package/dist-types/ts3.4/commands/CreateSuiteDefinitionCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/DeleteSuiteDefinitionCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/GetEndpointCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/GetSuiteDefinitionCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/GetSuiteRunCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/GetSuiteRunReportCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/ListSuiteDefinitionsCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/ListSuiteRunsCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/StartSuiteRunCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/StopSuiteRunCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/UpdateSuiteDefinitionCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/index.d.ts +1 -0
  58. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  59. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  60. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  61. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  62. 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 defaultIotDeviceAdvisorHttpAuthSchemeParametersProvider = 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
 
@@ -617,6 +619,7 @@ const getRuntimeConfig$1 = (config) => {
617
619
  serviceTarget: "IotSenateService",
618
620
  },
619
621
  serviceId: config?.serviceId ?? "IotDeviceAdvisor",
622
+ sha256: config?.sha256 ?? Sha256,
620
623
  urlParser: config?.urlParser ?? parseUrl,
621
624
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
622
625
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -650,7 +653,6 @@ const getRuntimeConfig = (config) => {
650
653
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
651
654
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
652
655
  }, config),
653
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
654
656
  streamCollector: config?.streamCollector ?? streamCollector,
655
657
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
656
658
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -738,172 +740,50 @@ class IotDeviceAdvisorClient extends Client {
738
740
  }
739
741
  }
740
742
 
741
- class CreateSuiteDefinitionCommand extends Command
742
- .classBuilder()
743
- .ep(commonParams)
744
- .m(function (Command, cs, config, o) {
745
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
746
- })
747
- .s("IotSenateService", "CreateSuiteDefinition", {})
748
- .n("IotDeviceAdvisorClient", "CreateSuiteDefinitionCommand")
749
- .sc(CreateSuiteDefinition$)
750
- .build() {
743
+ const command = makeBuilder(commonParams, "IotSenateService", "IotDeviceAdvisorClient", getEndpointPlugin);
744
+ const _ep0 = {};
745
+ const _mw0 = (Command, cs, config, o) => [];
746
+
747
+ class CreateSuiteDefinitionCommand extends command(_ep0, _mw0, "CreateSuiteDefinition", CreateSuiteDefinition$) {
751
748
  }
752
749
 
753
- class DeleteSuiteDefinitionCommand extends Command
754
- .classBuilder()
755
- .ep(commonParams)
756
- .m(function (Command, cs, config, o) {
757
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
758
- })
759
- .s("IotSenateService", "DeleteSuiteDefinition", {})
760
- .n("IotDeviceAdvisorClient", "DeleteSuiteDefinitionCommand")
761
- .sc(DeleteSuiteDefinition$)
762
- .build() {
750
+ class DeleteSuiteDefinitionCommand extends command(_ep0, _mw0, "DeleteSuiteDefinition", DeleteSuiteDefinition$) {
763
751
  }
764
752
 
765
- class GetEndpointCommand extends Command
766
- .classBuilder()
767
- .ep(commonParams)
768
- .m(function (Command, cs, config, o) {
769
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
770
- })
771
- .s("IotSenateService", "GetEndpoint", {})
772
- .n("IotDeviceAdvisorClient", "GetEndpointCommand")
773
- .sc(GetEndpoint$)
774
- .build() {
753
+ class GetEndpointCommand extends command(_ep0, _mw0, "GetEndpoint", GetEndpoint$) {
775
754
  }
776
755
 
777
- class GetSuiteDefinitionCommand extends Command
778
- .classBuilder()
779
- .ep(commonParams)
780
- .m(function (Command, cs, config, o) {
781
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
782
- })
783
- .s("IotSenateService", "GetSuiteDefinition", {})
784
- .n("IotDeviceAdvisorClient", "GetSuiteDefinitionCommand")
785
- .sc(GetSuiteDefinition$)
786
- .build() {
756
+ class GetSuiteDefinitionCommand extends command(_ep0, _mw0, "GetSuiteDefinition", GetSuiteDefinition$) {
787
757
  }
788
758
 
789
- class GetSuiteRunCommand extends Command
790
- .classBuilder()
791
- .ep(commonParams)
792
- .m(function (Command, cs, config, o) {
793
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
794
- })
795
- .s("IotSenateService", "GetSuiteRun", {})
796
- .n("IotDeviceAdvisorClient", "GetSuiteRunCommand")
797
- .sc(GetSuiteRun$)
798
- .build() {
759
+ class GetSuiteRunCommand extends command(_ep0, _mw0, "GetSuiteRun", GetSuiteRun$) {
799
760
  }
800
761
 
801
- class GetSuiteRunReportCommand extends Command
802
- .classBuilder()
803
- .ep(commonParams)
804
- .m(function (Command, cs, config, o) {
805
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
806
- })
807
- .s("IotSenateService", "GetSuiteRunReport", {})
808
- .n("IotDeviceAdvisorClient", "GetSuiteRunReportCommand")
809
- .sc(GetSuiteRunReport$)
810
- .build() {
762
+ class GetSuiteRunReportCommand extends command(_ep0, _mw0, "GetSuiteRunReport", GetSuiteRunReport$) {
811
763
  }
812
764
 
813
- class ListSuiteDefinitionsCommand extends Command
814
- .classBuilder()
815
- .ep(commonParams)
816
- .m(function (Command, cs, config, o) {
817
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
818
- })
819
- .s("IotSenateService", "ListSuiteDefinitions", {})
820
- .n("IotDeviceAdvisorClient", "ListSuiteDefinitionsCommand")
821
- .sc(ListSuiteDefinitions$)
822
- .build() {
765
+ class ListSuiteDefinitionsCommand extends command(_ep0, _mw0, "ListSuiteDefinitions", ListSuiteDefinitions$) {
823
766
  }
824
767
 
825
- class ListSuiteRunsCommand extends Command
826
- .classBuilder()
827
- .ep(commonParams)
828
- .m(function (Command, cs, config, o) {
829
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
830
- })
831
- .s("IotSenateService", "ListSuiteRuns", {})
832
- .n("IotDeviceAdvisorClient", "ListSuiteRunsCommand")
833
- .sc(ListSuiteRuns$)
834
- .build() {
768
+ class ListSuiteRunsCommand extends command(_ep0, _mw0, "ListSuiteRuns", ListSuiteRuns$) {
835
769
  }
836
770
 
837
- class ListTagsForResourceCommand extends Command
838
- .classBuilder()
839
- .ep(commonParams)
840
- .m(function (Command, cs, config, o) {
841
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
842
- })
843
- .s("IotSenateService", "ListTagsForResource", {})
844
- .n("IotDeviceAdvisorClient", "ListTagsForResourceCommand")
845
- .sc(ListTagsForResource$)
846
- .build() {
771
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
847
772
  }
848
773
 
849
- class StartSuiteRunCommand extends Command
850
- .classBuilder()
851
- .ep(commonParams)
852
- .m(function (Command, cs, config, o) {
853
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
854
- })
855
- .s("IotSenateService", "StartSuiteRun", {})
856
- .n("IotDeviceAdvisorClient", "StartSuiteRunCommand")
857
- .sc(StartSuiteRun$)
858
- .build() {
774
+ class StartSuiteRunCommand extends command(_ep0, _mw0, "StartSuiteRun", StartSuiteRun$) {
859
775
  }
860
776
 
861
- class StopSuiteRunCommand extends Command
862
- .classBuilder()
863
- .ep(commonParams)
864
- .m(function (Command, cs, config, o) {
865
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
866
- })
867
- .s("IotSenateService", "StopSuiteRun", {})
868
- .n("IotDeviceAdvisorClient", "StopSuiteRunCommand")
869
- .sc(StopSuiteRun$)
870
- .build() {
777
+ class StopSuiteRunCommand extends command(_ep0, _mw0, "StopSuiteRun", StopSuiteRun$) {
871
778
  }
872
779
 
873
- class TagResourceCommand extends Command
874
- .classBuilder()
875
- .ep(commonParams)
876
- .m(function (Command, cs, config, o) {
877
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
878
- })
879
- .s("IotSenateService", "TagResource", {})
880
- .n("IotDeviceAdvisorClient", "TagResourceCommand")
881
- .sc(TagResource$)
882
- .build() {
780
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
883
781
  }
884
782
 
885
- class UntagResourceCommand extends Command
886
- .classBuilder()
887
- .ep(commonParams)
888
- .m(function (Command, cs, config, o) {
889
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
890
- })
891
- .s("IotSenateService", "UntagResource", {})
892
- .n("IotDeviceAdvisorClient", "UntagResourceCommand")
893
- .sc(UntagResource$)
894
- .build() {
783
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
895
784
  }
896
785
 
897
- class UpdateSuiteDefinitionCommand extends Command
898
- .classBuilder()
899
- .ep(commonParams)
900
- .m(function (Command, cs, config, o) {
901
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
902
- })
903
- .s("IotSenateService", "UpdateSuiteDefinition", {})
904
- .n("IotDeviceAdvisorClient", "UpdateSuiteDefinitionCommand")
905
- .sc(UpdateSuiteDefinition$)
906
- .build() {
786
+ class UpdateSuiteDefinitionCommand extends command(_ep0, _mw0, "UpdateSuiteDefinition", UpdateSuiteDefinition$) {
907
787
  }
908
788
 
909
789
  const paginateListSuiteDefinitions = createPaginator(IotDeviceAdvisorClient, ListSuiteDefinitionsCommand, "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, "IotSenateService", "IotDeviceAdvisorClient", 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 { CreateSuiteDefinition$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateSuiteDefinitionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("IotSenateService", "CreateSuiteDefinition", {})
13
- .n("IotDeviceAdvisorClient", "CreateSuiteDefinitionCommand")
14
- .sc(CreateSuiteDefinition$)
15
- .build() {
3
+ export class CreateSuiteDefinitionCommand extends command(_ep0, _mw0, "CreateSuiteDefinition", CreateSuiteDefinition$) {
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 { DeleteSuiteDefinition$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteSuiteDefinitionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("IotSenateService", "DeleteSuiteDefinition", {})
13
- .n("IotDeviceAdvisorClient", "DeleteSuiteDefinitionCommand")
14
- .sc(DeleteSuiteDefinition$)
15
- .build() {
3
+ export class DeleteSuiteDefinitionCommand extends command(_ep0, _mw0, "DeleteSuiteDefinition", DeleteSuiteDefinition$) {
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 { GetEndpoint$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetEndpointCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("IotSenateService", "GetEndpoint", {})
13
- .n("IotDeviceAdvisorClient", "GetEndpointCommand")
14
- .sc(GetEndpoint$)
15
- .build() {
3
+ export class GetEndpointCommand extends command(_ep0, _mw0, "GetEndpoint", GetEndpoint$) {
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 { GetSuiteDefinition$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetSuiteDefinitionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("IotSenateService", "GetSuiteDefinition", {})
13
- .n("IotDeviceAdvisorClient", "GetSuiteDefinitionCommand")
14
- .sc(GetSuiteDefinition$)
15
- .build() {
3
+ export class GetSuiteDefinitionCommand extends command(_ep0, _mw0, "GetSuiteDefinition", GetSuiteDefinition$) {
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 { GetSuiteRun$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetSuiteRunCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("IotSenateService", "GetSuiteRun", {})
13
- .n("IotDeviceAdvisorClient", "GetSuiteRunCommand")
14
- .sc(GetSuiteRun$)
15
- .build() {
3
+ export class GetSuiteRunCommand extends command(_ep0, _mw0, "GetSuiteRun", GetSuiteRun$) {
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 { GetSuiteRunReport$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetSuiteRunReportCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("IotSenateService", "GetSuiteRunReport", {})
13
- .n("IotDeviceAdvisorClient", "GetSuiteRunReportCommand")
14
- .sc(GetSuiteRunReport$)
15
- .build() {
3
+ export class GetSuiteRunReportCommand extends command(_ep0, _mw0, "GetSuiteRunReport", GetSuiteRunReport$) {
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 { ListSuiteDefinitions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSuiteDefinitionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("IotSenateService", "ListSuiteDefinitions", {})
13
- .n("IotDeviceAdvisorClient", "ListSuiteDefinitionsCommand")
14
- .sc(ListSuiteDefinitions$)
15
- .build() {
3
+ export class ListSuiteDefinitionsCommand extends command(_ep0, _mw0, "ListSuiteDefinitions", ListSuiteDefinitions$) {
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 { ListSuiteRuns$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSuiteRunsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("IotSenateService", "ListSuiteRuns", {})
13
- .n("IotDeviceAdvisorClient", "ListSuiteRunsCommand")
14
- .sc(ListSuiteRuns$)
15
- .build() {
3
+ export class ListSuiteRunsCommand extends command(_ep0, _mw0, "ListSuiteRuns", ListSuiteRuns$) {
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("IotSenateService", "ListTagsForResource", {})
13
- .n("IotDeviceAdvisorClient", "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 { StartSuiteRun$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StartSuiteRunCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("IotSenateService", "StartSuiteRun", {})
13
- .n("IotDeviceAdvisorClient", "StartSuiteRunCommand")
14
- .sc(StartSuiteRun$)
15
- .build() {
3
+ export class StartSuiteRunCommand extends command(_ep0, _mw0, "StartSuiteRun", StartSuiteRun$) {
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 { StopSuiteRun$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StopSuiteRunCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("IotSenateService", "StopSuiteRun", {})
13
- .n("IotDeviceAdvisorClient", "StopSuiteRunCommand")
14
- .sc(StopSuiteRun$)
15
- .build() {
3
+ export class StopSuiteRunCommand extends command(_ep0, _mw0, "StopSuiteRun", StopSuiteRun$) {
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("IotSenateService", "TagResource", {})
13
- .n("IotDeviceAdvisorClient", "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("IotSenateService", "UntagResource", {})
13
- .n("IotDeviceAdvisorClient", "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 { UpdateSuiteDefinition$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateSuiteDefinitionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("IotSenateService", "UpdateSuiteDefinition", {})
13
- .n("IotDeviceAdvisorClient", "UpdateSuiteDefinitionCommand")
14
- .sc(UpdateSuiteDefinition$)
15
- .build() {
3
+ export class UpdateSuiteDefinitionCommand extends command(_ep0, _mw0, "UpdateSuiteDefinition", UpdateSuiteDefinition$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./IotDeviceAdvisorClient";
2
2
  export * from "./IotDeviceAdvisor";
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: "IotSenateService",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "IotDeviceAdvisor",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { IotDeviceAdvisorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./IotDeviceAdvisorClient";
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, IotDeviceAdvisorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, IotDeviceAdvisorClientResolvedConfig, 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
- import type { IotDeviceAdvisorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IotDeviceAdvisorClient";
4
2
  import type { CreateSuiteDefinitionRequest, CreateSuiteDefinitionResponse } from "../models/models_0";
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 CreateSuiteDefinitionCommandInput extends CreateSuiteDefinition
22
19
  export interface CreateSuiteDefinitionCommandOutput extends CreateSuiteDefinitionResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateSuiteDefinitionCommand_base: {
25
- new (input: CreateSuiteDefinitionCommandInput): import("@smithy/core/client").CommandImpl<CreateSuiteDefinitionCommandInput, CreateSuiteDefinitionCommandOutput, IotDeviceAdvisorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateSuiteDefinitionCommandInput): import("@smithy/core/client").CommandImpl<CreateSuiteDefinitionCommandInput, CreateSuiteDefinitionCommandOutput, IotDeviceAdvisorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateSuiteDefinitionCommandInput): import("@smithy/core/client").CommandImpl<CreateSuiteDefinitionCommandInput, CreateSuiteDefinitionCommandOutput, import("..").IotDeviceAdvisorClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateSuiteDefinitionCommandInput): import("@smithy/core/client").CommandImpl<CreateSuiteDefinitionCommandInput, CreateSuiteDefinitionCommandOutput, import("..").IotDeviceAdvisorClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a Device Advisor test suite.</p>