@aws-sdk/client-bcm-dashboards 3.1076.0 → 3.1078.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist-cjs/index.js +26 -155
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateDashboardCommand.js +2 -14
  4. package/dist-es/commands/CreateScheduledReportCommand.js +2 -14
  5. package/dist-es/commands/DeleteDashboardCommand.js +2 -14
  6. package/dist-es/commands/DeleteScheduledReportCommand.js +2 -14
  7. package/dist-es/commands/ExecuteScheduledReportCommand.js +2 -14
  8. package/dist-es/commands/GetDashboardCommand.js +2 -14
  9. package/dist-es/commands/GetResourcePolicyCommand.js +2 -14
  10. package/dist-es/commands/GetScheduledReportCommand.js +2 -14
  11. package/dist-es/commands/ListDashboardsCommand.js +2 -14
  12. package/dist-es/commands/ListScheduledReportsCommand.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/UpdateDashboardCommand.js +2 -14
  17. package/dist-es/commands/UpdateScheduledReportCommand.js +2 -14
  18. package/dist-es/index.js +1 -0
  19. package/dist-es/runtimeConfig.browser.js +0 -2
  20. package/dist-es/runtimeConfig.js +1 -2
  21. package/dist-es/runtimeConfig.native.js +0 -2
  22. package/dist-es/runtimeConfig.shared.js +2 -0
  23. package/dist-types/commandBuilder.d.ts +18 -0
  24. package/dist-types/commands/CreateDashboardCommand.d.ts +3 -8
  25. package/dist-types/commands/CreateScheduledReportCommand.d.ts +3 -8
  26. package/dist-types/commands/DeleteDashboardCommand.d.ts +3 -8
  27. package/dist-types/commands/DeleteScheduledReportCommand.d.ts +3 -8
  28. package/dist-types/commands/ExecuteScheduledReportCommand.d.ts +3 -8
  29. package/dist-types/commands/GetDashboardCommand.d.ts +3 -8
  30. package/dist-types/commands/GetResourcePolicyCommand.d.ts +3 -8
  31. package/dist-types/commands/GetScheduledReportCommand.d.ts +3 -8
  32. package/dist-types/commands/ListDashboardsCommand.d.ts +3 -8
  33. package/dist-types/commands/ListScheduledReportsCommand.d.ts +3 -8
  34. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  35. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  36. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  37. package/dist-types/commands/UpdateDashboardCommand.d.ts +3 -8
  38. package/dist-types/commands/UpdateScheduledReportCommand.d.ts +3 -8
  39. package/dist-types/index.d.ts +1 -0
  40. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  41. package/dist-types/runtimeConfig.d.ts +1 -1
  42. package/dist-types/runtimeConfig.native.d.ts +1 -1
  43. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  44. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  45. package/dist-types/ts3.4/commands/CreateDashboardCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/CreateScheduledReportCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/DeleteDashboardCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/DeleteScheduledReportCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/ExecuteScheduledReportCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/GetDashboardCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/GetScheduledReportCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/ListDashboardsCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/ListScheduledReportsCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/UpdateDashboardCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/UpdateScheduledReportCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/index.d.ts +1 -0
  61. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  62. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  63. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  64. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  65. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultBCMDashboardsHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -65,7 +67,7 @@ const commonParams = {
65
67
  Region: { type: "builtInParams", name: "region" },
66
68
  };
67
69
 
68
- var version = "3.1075.0";
70
+ var version = "3.1077.0";
69
71
  var packageInfo = {
70
72
  version: version};
71
73
 
@@ -791,6 +793,7 @@ const getRuntimeConfig$1 = (config) => {
791
793
  serviceTarget: "AWSBCMDashboardsService",
792
794
  },
793
795
  serviceId: config?.serviceId ?? "BCM Dashboards",
796
+ sha256: config?.sha256 ?? Sha256,
794
797
  urlParser: config?.urlParser ?? parseUrl,
795
798
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
796
799
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -824,7 +827,6 @@ const getRuntimeConfig = (config) => {
824
827
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
825
828
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
826
829
  }, config),
827
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
828
830
  streamCollector: config?.streamCollector ?? streamCollector,
829
831
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
830
832
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -912,184 +914,53 @@ class BCMDashboardsClient extends Client {
912
914
  }
913
915
  }
914
916
 
915
- class CreateDashboardCommand extends Command
916
- .classBuilder()
917
- .ep(commonParams)
918
- .m(function (Command, cs, config, o) {
919
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
920
- })
921
- .s("AWSBCMDashboardsService", "CreateDashboard", {})
922
- .n("BCMDashboardsClient", "CreateDashboardCommand")
923
- .sc(CreateDashboard$)
924
- .build() {
917
+ const command = makeBuilder(commonParams, "AWSBCMDashboardsService", "BCMDashboardsClient", getEndpointPlugin);
918
+ const _ep0 = {};
919
+ const _mw0 = (Command, cs, config, o) => [];
920
+
921
+ class CreateDashboardCommand extends command(_ep0, _mw0, "CreateDashboard", CreateDashboard$) {
925
922
  }
926
923
 
927
- class CreateScheduledReportCommand extends Command
928
- .classBuilder()
929
- .ep(commonParams)
930
- .m(function (Command, cs, config, o) {
931
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
932
- })
933
- .s("AWSBCMDashboardsService", "CreateScheduledReport", {})
934
- .n("BCMDashboardsClient", "CreateScheduledReportCommand")
935
- .sc(CreateScheduledReport$)
936
- .build() {
924
+ class CreateScheduledReportCommand extends command(_ep0, _mw0, "CreateScheduledReport", CreateScheduledReport$) {
937
925
  }
938
926
 
939
- class DeleteDashboardCommand extends Command
940
- .classBuilder()
941
- .ep(commonParams)
942
- .m(function (Command, cs, config, o) {
943
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
944
- })
945
- .s("AWSBCMDashboardsService", "DeleteDashboard", {})
946
- .n("BCMDashboardsClient", "DeleteDashboardCommand")
947
- .sc(DeleteDashboard$)
948
- .build() {
927
+ class DeleteDashboardCommand extends command(_ep0, _mw0, "DeleteDashboard", DeleteDashboard$) {
949
928
  }
950
929
 
951
- class DeleteScheduledReportCommand extends Command
952
- .classBuilder()
953
- .ep(commonParams)
954
- .m(function (Command, cs, config, o) {
955
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
956
- })
957
- .s("AWSBCMDashboardsService", "DeleteScheduledReport", {})
958
- .n("BCMDashboardsClient", "DeleteScheduledReportCommand")
959
- .sc(DeleteScheduledReport$)
960
- .build() {
930
+ class DeleteScheduledReportCommand extends command(_ep0, _mw0, "DeleteScheduledReport", DeleteScheduledReport$) {
961
931
  }
962
932
 
963
- class ExecuteScheduledReportCommand extends Command
964
- .classBuilder()
965
- .ep(commonParams)
966
- .m(function (Command, cs, config, o) {
967
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
968
- })
969
- .s("AWSBCMDashboardsService", "ExecuteScheduledReport", {})
970
- .n("BCMDashboardsClient", "ExecuteScheduledReportCommand")
971
- .sc(ExecuteScheduledReport$)
972
- .build() {
933
+ class ExecuteScheduledReportCommand extends command(_ep0, _mw0, "ExecuteScheduledReport", ExecuteScheduledReport$) {
973
934
  }
974
935
 
975
- class GetDashboardCommand extends Command
976
- .classBuilder()
977
- .ep(commonParams)
978
- .m(function (Command, cs, config, o) {
979
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
980
- })
981
- .s("AWSBCMDashboardsService", "GetDashboard", {})
982
- .n("BCMDashboardsClient", "GetDashboardCommand")
983
- .sc(GetDashboard$)
984
- .build() {
936
+ class GetDashboardCommand extends command(_ep0, _mw0, "GetDashboard", GetDashboard$) {
985
937
  }
986
938
 
987
- class GetResourcePolicyCommand extends Command
988
- .classBuilder()
989
- .ep(commonParams)
990
- .m(function (Command, cs, config, o) {
991
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
992
- })
993
- .s("AWSBCMDashboardsService", "GetResourcePolicy", {})
994
- .n("BCMDashboardsClient", "GetResourcePolicyCommand")
995
- .sc(GetResourcePolicy$)
996
- .build() {
939
+ class GetResourcePolicyCommand extends command(_ep0, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
997
940
  }
998
941
 
999
- class GetScheduledReportCommand extends Command
1000
- .classBuilder()
1001
- .ep(commonParams)
1002
- .m(function (Command, cs, config, o) {
1003
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1004
- })
1005
- .s("AWSBCMDashboardsService", "GetScheduledReport", {})
1006
- .n("BCMDashboardsClient", "GetScheduledReportCommand")
1007
- .sc(GetScheduledReport$)
1008
- .build() {
942
+ class GetScheduledReportCommand extends command(_ep0, _mw0, "GetScheduledReport", GetScheduledReport$) {
1009
943
  }
1010
944
 
1011
- class ListDashboardsCommand extends Command
1012
- .classBuilder()
1013
- .ep(commonParams)
1014
- .m(function (Command, cs, config, o) {
1015
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1016
- })
1017
- .s("AWSBCMDashboardsService", "ListDashboards", {})
1018
- .n("BCMDashboardsClient", "ListDashboardsCommand")
1019
- .sc(ListDashboards$)
1020
- .build() {
945
+ class ListDashboardsCommand extends command(_ep0, _mw0, "ListDashboards", ListDashboards$) {
1021
946
  }
1022
947
 
1023
- class ListScheduledReportsCommand extends Command
1024
- .classBuilder()
1025
- .ep(commonParams)
1026
- .m(function (Command, cs, config, o) {
1027
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1028
- })
1029
- .s("AWSBCMDashboardsService", "ListScheduledReports", {})
1030
- .n("BCMDashboardsClient", "ListScheduledReportsCommand")
1031
- .sc(ListScheduledReports$)
1032
- .build() {
948
+ class ListScheduledReportsCommand extends command(_ep0, _mw0, "ListScheduledReports", ListScheduledReports$) {
1033
949
  }
1034
950
 
1035
- class ListTagsForResourceCommand extends Command
1036
- .classBuilder()
1037
- .ep(commonParams)
1038
- .m(function (Command, cs, config, o) {
1039
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1040
- })
1041
- .s("AWSBCMDashboardsService", "ListTagsForResource", {})
1042
- .n("BCMDashboardsClient", "ListTagsForResourceCommand")
1043
- .sc(ListTagsForResource$)
1044
- .build() {
951
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1045
952
  }
1046
953
 
1047
- class TagResourceCommand extends Command
1048
- .classBuilder()
1049
- .ep(commonParams)
1050
- .m(function (Command, cs, config, o) {
1051
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1052
- })
1053
- .s("AWSBCMDashboardsService", "TagResource", {})
1054
- .n("BCMDashboardsClient", "TagResourceCommand")
1055
- .sc(TagResource$)
1056
- .build() {
954
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1057
955
  }
1058
956
 
1059
- class UntagResourceCommand extends Command
1060
- .classBuilder()
1061
- .ep(commonParams)
1062
- .m(function (Command, cs, config, o) {
1063
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1064
- })
1065
- .s("AWSBCMDashboardsService", "UntagResource", {})
1066
- .n("BCMDashboardsClient", "UntagResourceCommand")
1067
- .sc(UntagResource$)
1068
- .build() {
957
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1069
958
  }
1070
959
 
1071
- class UpdateDashboardCommand extends Command
1072
- .classBuilder()
1073
- .ep(commonParams)
1074
- .m(function (Command, cs, config, o) {
1075
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1076
- })
1077
- .s("AWSBCMDashboardsService", "UpdateDashboard", {})
1078
- .n("BCMDashboardsClient", "UpdateDashboardCommand")
1079
- .sc(UpdateDashboard$)
1080
- .build() {
960
+ class UpdateDashboardCommand extends command(_ep0, _mw0, "UpdateDashboard", UpdateDashboard$) {
1081
961
  }
1082
962
 
1083
- class UpdateScheduledReportCommand extends Command
1084
- .classBuilder()
1085
- .ep(commonParams)
1086
- .m(function (Command, cs, config, o) {
1087
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1088
- })
1089
- .s("AWSBCMDashboardsService", "UpdateScheduledReport", {})
1090
- .n("BCMDashboardsClient", "UpdateScheduledReportCommand")
1091
- .sc(UpdateScheduledReport$)
1092
- .build() {
963
+ class UpdateScheduledReportCommand extends command(_ep0, _mw0, "UpdateScheduledReport", UpdateScheduledReport$) {
1093
964
  }
1094
965
 
1095
966
  const paginateListDashboards = createPaginator(BCMDashboardsClient, ListDashboardsCommand, "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, "AWSBCMDashboardsService", "BCMDashboardsClient", 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 { CreateDashboard$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateDashboardCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBCMDashboardsService", "CreateDashboard", {})
13
- .n("BCMDashboardsClient", "CreateDashboardCommand")
14
- .sc(CreateDashboard$)
15
- .build() {
3
+ export class CreateDashboardCommand extends command(_ep0, _mw0, "CreateDashboard", CreateDashboard$) {
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 { CreateScheduledReport$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateScheduledReportCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBCMDashboardsService", "CreateScheduledReport", {})
13
- .n("BCMDashboardsClient", "CreateScheduledReportCommand")
14
- .sc(CreateScheduledReport$)
15
- .build() {
3
+ export class CreateScheduledReportCommand extends command(_ep0, _mw0, "CreateScheduledReport", CreateScheduledReport$) {
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 { DeleteDashboard$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteDashboardCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBCMDashboardsService", "DeleteDashboard", {})
13
- .n("BCMDashboardsClient", "DeleteDashboardCommand")
14
- .sc(DeleteDashboard$)
15
- .build() {
3
+ export class DeleteDashboardCommand extends command(_ep0, _mw0, "DeleteDashboard", DeleteDashboard$) {
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 { DeleteScheduledReport$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteScheduledReportCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBCMDashboardsService", "DeleteScheduledReport", {})
13
- .n("BCMDashboardsClient", "DeleteScheduledReportCommand")
14
- .sc(DeleteScheduledReport$)
15
- .build() {
3
+ export class DeleteScheduledReportCommand extends command(_ep0, _mw0, "DeleteScheduledReport", DeleteScheduledReport$) {
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 { ExecuteScheduledReport$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ExecuteScheduledReportCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBCMDashboardsService", "ExecuteScheduledReport", {})
13
- .n("BCMDashboardsClient", "ExecuteScheduledReportCommand")
14
- .sc(ExecuteScheduledReport$)
15
- .build() {
3
+ export class ExecuteScheduledReportCommand extends command(_ep0, _mw0, "ExecuteScheduledReport", ExecuteScheduledReport$) {
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 { GetDashboard$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetDashboardCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBCMDashboardsService", "GetDashboard", {})
13
- .n("BCMDashboardsClient", "GetDashboardCommand")
14
- .sc(GetDashboard$)
15
- .build() {
3
+ export class GetDashboardCommand extends command(_ep0, _mw0, "GetDashboard", GetDashboard$) {
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 { GetResourcePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetResourcePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBCMDashboardsService", "GetResourcePolicy", {})
13
- .n("BCMDashboardsClient", "GetResourcePolicyCommand")
14
- .sc(GetResourcePolicy$)
15
- .build() {
3
+ export class GetResourcePolicyCommand extends command(_ep0, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
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 { GetScheduledReport$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetScheduledReportCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBCMDashboardsService", "GetScheduledReport", {})
13
- .n("BCMDashboardsClient", "GetScheduledReportCommand")
14
- .sc(GetScheduledReport$)
15
- .build() {
3
+ export class GetScheduledReportCommand extends command(_ep0, _mw0, "GetScheduledReport", GetScheduledReport$) {
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 { ListDashboards$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListDashboardsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBCMDashboardsService", "ListDashboards", {})
13
- .n("BCMDashboardsClient", "ListDashboardsCommand")
14
- .sc(ListDashboards$)
15
- .build() {
3
+ export class ListDashboardsCommand extends command(_ep0, _mw0, "ListDashboards", ListDashboards$) {
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 { ListScheduledReports$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListScheduledReportsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBCMDashboardsService", "ListScheduledReports", {})
13
- .n("BCMDashboardsClient", "ListScheduledReportsCommand")
14
- .sc(ListScheduledReports$)
15
- .build() {
3
+ export class ListScheduledReportsCommand extends command(_ep0, _mw0, "ListScheduledReports", ListScheduledReports$) {
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("AWSBCMDashboardsService", "ListTagsForResource", {})
13
- .n("BCMDashboardsClient", "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("AWSBCMDashboardsService", "TagResource", {})
13
- .n("BCMDashboardsClient", "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("AWSBCMDashboardsService", "UntagResource", {})
13
- .n("BCMDashboardsClient", "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 { UpdateDashboard$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateDashboardCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBCMDashboardsService", "UpdateDashboard", {})
13
- .n("BCMDashboardsClient", "UpdateDashboardCommand")
14
- .sc(UpdateDashboard$)
15
- .build() {
3
+ export class UpdateDashboardCommand extends command(_ep0, _mw0, "UpdateDashboard", UpdateDashboard$) {
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 { UpdateScheduledReport$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateScheduledReportCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBCMDashboardsService", "UpdateScheduledReport", {})
13
- .n("BCMDashboardsClient", "UpdateScheduledReportCommand")
14
- .sc(UpdateScheduledReport$)
15
- .build() {
3
+ export class UpdateScheduledReportCommand extends command(_ep0, _mw0, "UpdateScheduledReport", UpdateScheduledReport$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./BCMDashboardsClient";
2
2
  export * from "./BCMDashboards";
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 { AwsJson1_0Protocol } 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: "AWSBCMDashboardsService",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "BCM Dashboards",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,