@aws-sdk/client-bcm-data-exports 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 (56) hide show
  1. package/dist-cjs/index.js +23 -125
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateExportCommand.js +2 -14
  4. package/dist-es/commands/DeleteExportCommand.js +2 -14
  5. package/dist-es/commands/GetExecutionCommand.js +2 -14
  6. package/dist-es/commands/GetExportCommand.js +2 -14
  7. package/dist-es/commands/GetTableCommand.js +2 -14
  8. package/dist-es/commands/ListExecutionsCommand.js +2 -14
  9. package/dist-es/commands/ListExportsCommand.js +2 -14
  10. package/dist-es/commands/ListTablesCommand.js +2 -14
  11. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  12. package/dist-es/commands/TagResourceCommand.js +2 -14
  13. package/dist-es/commands/UntagResourceCommand.js +2 -14
  14. package/dist-es/commands/UpdateExportCommand.js +2 -14
  15. package/dist-es/index.js +1 -0
  16. package/dist-es/runtimeConfig.browser.js +0 -2
  17. package/dist-es/runtimeConfig.js +1 -2
  18. package/dist-es/runtimeConfig.native.js +0 -2
  19. package/dist-es/runtimeConfig.shared.js +2 -0
  20. package/dist-types/commandBuilder.d.ts +18 -0
  21. package/dist-types/commands/CreateExportCommand.d.ts +3 -8
  22. package/dist-types/commands/DeleteExportCommand.d.ts +3 -8
  23. package/dist-types/commands/GetExecutionCommand.d.ts +3 -8
  24. package/dist-types/commands/GetExportCommand.d.ts +3 -8
  25. package/dist-types/commands/GetTableCommand.d.ts +3 -8
  26. package/dist-types/commands/ListExecutionsCommand.d.ts +3 -8
  27. package/dist-types/commands/ListExportsCommand.d.ts +3 -8
  28. package/dist-types/commands/ListTablesCommand.d.ts +3 -8
  29. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  30. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  31. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  32. package/dist-types/commands/UpdateExportCommand.d.ts +3 -8
  33. package/dist-types/index.d.ts +1 -0
  34. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  35. package/dist-types/runtimeConfig.d.ts +1 -1
  36. package/dist-types/runtimeConfig.native.d.ts +1 -1
  37. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  38. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  39. package/dist-types/ts3.4/commands/CreateExportCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/DeleteExportCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/GetExecutionCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/GetExportCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/GetTableCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/ListExecutionsCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/UpdateExportCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/index.d.ts +1 -0
  52. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  53. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  54. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  55. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  56. 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_1Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultBCMDataExportsHttpAuthSchemeParametersProvider = 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
 
@@ -672,6 +674,7 @@ const getRuntimeConfig$1 = (config) => {
672
674
  serviceTarget: "AWSBillingAndCostManagementDataExports",
673
675
  },
674
676
  serviceId: config?.serviceId ?? "BCM Data Exports",
677
+ sha256: config?.sha256 ?? Sha256,
675
678
  urlParser: config?.urlParser ?? parseUrl,
676
679
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
677
680
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -705,7 +708,6 @@ const getRuntimeConfig = (config) => {
705
708
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
706
709
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
707
710
  }, config),
708
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
709
711
  streamCollector: config?.streamCollector ?? streamCollector,
710
712
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
711
713
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -793,148 +795,44 @@ class BCMDataExportsClient extends Client {
793
795
  }
794
796
  }
795
797
 
796
- class CreateExportCommand extends Command
797
- .classBuilder()
798
- .ep(commonParams)
799
- .m(function (Command, cs, config, o) {
800
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
801
- })
802
- .s("AWSBillingAndCostManagementDataExports", "CreateExport", {})
803
- .n("BCMDataExportsClient", "CreateExportCommand")
804
- .sc(CreateExport$)
805
- .build() {
798
+ const command = makeBuilder(commonParams, "AWSBillingAndCostManagementDataExports", "BCMDataExportsClient", getEndpointPlugin);
799
+ const _ep0 = {};
800
+ const _mw0 = (Command, cs, config, o) => [];
801
+
802
+ class CreateExportCommand extends command(_ep0, _mw0, "CreateExport", CreateExport$) {
806
803
  }
807
804
 
808
- class DeleteExportCommand extends Command
809
- .classBuilder()
810
- .ep(commonParams)
811
- .m(function (Command, cs, config, o) {
812
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
813
- })
814
- .s("AWSBillingAndCostManagementDataExports", "DeleteExport", {})
815
- .n("BCMDataExportsClient", "DeleteExportCommand")
816
- .sc(DeleteExport$)
817
- .build() {
805
+ class DeleteExportCommand extends command(_ep0, _mw0, "DeleteExport", DeleteExport$) {
818
806
  }
819
807
 
820
- class GetExecutionCommand extends Command
821
- .classBuilder()
822
- .ep(commonParams)
823
- .m(function (Command, cs, config, o) {
824
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
825
- })
826
- .s("AWSBillingAndCostManagementDataExports", "GetExecution", {})
827
- .n("BCMDataExportsClient", "GetExecutionCommand")
828
- .sc(GetExecution$)
829
- .build() {
808
+ class GetExecutionCommand extends command(_ep0, _mw0, "GetExecution", GetExecution$) {
830
809
  }
831
810
 
832
- class GetExportCommand extends Command
833
- .classBuilder()
834
- .ep(commonParams)
835
- .m(function (Command, cs, config, o) {
836
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
837
- })
838
- .s("AWSBillingAndCostManagementDataExports", "GetExport", {})
839
- .n("BCMDataExportsClient", "GetExportCommand")
840
- .sc(GetExport$)
841
- .build() {
811
+ class GetExportCommand extends command(_ep0, _mw0, "GetExport", GetExport$) {
842
812
  }
843
813
 
844
- class GetTableCommand extends Command
845
- .classBuilder()
846
- .ep(commonParams)
847
- .m(function (Command, cs, config, o) {
848
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
849
- })
850
- .s("AWSBillingAndCostManagementDataExports", "GetTable", {})
851
- .n("BCMDataExportsClient", "GetTableCommand")
852
- .sc(GetTable$)
853
- .build() {
814
+ class GetTableCommand extends command(_ep0, _mw0, "GetTable", GetTable$) {
854
815
  }
855
816
 
856
- class ListExecutionsCommand extends Command
857
- .classBuilder()
858
- .ep(commonParams)
859
- .m(function (Command, cs, config, o) {
860
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
861
- })
862
- .s("AWSBillingAndCostManagementDataExports", "ListExecutions", {})
863
- .n("BCMDataExportsClient", "ListExecutionsCommand")
864
- .sc(ListExecutions$)
865
- .build() {
817
+ class ListExecutionsCommand extends command(_ep0, _mw0, "ListExecutions", ListExecutions$) {
866
818
  }
867
819
 
868
- class ListExportsCommand extends Command
869
- .classBuilder()
870
- .ep(commonParams)
871
- .m(function (Command, cs, config, o) {
872
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
873
- })
874
- .s("AWSBillingAndCostManagementDataExports", "ListExports", {})
875
- .n("BCMDataExportsClient", "ListExportsCommand")
876
- .sc(ListExports$)
877
- .build() {
820
+ class ListExportsCommand extends command(_ep0, _mw0, "ListExports", ListExports$) {
878
821
  }
879
822
 
880
- class ListTablesCommand extends Command
881
- .classBuilder()
882
- .ep(commonParams)
883
- .m(function (Command, cs, config, o) {
884
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
885
- })
886
- .s("AWSBillingAndCostManagementDataExports", "ListTables", {})
887
- .n("BCMDataExportsClient", "ListTablesCommand")
888
- .sc(ListTables$)
889
- .build() {
823
+ class ListTablesCommand extends command(_ep0, _mw0, "ListTables", ListTables$) {
890
824
  }
891
825
 
892
- class ListTagsForResourceCommand extends Command
893
- .classBuilder()
894
- .ep(commonParams)
895
- .m(function (Command, cs, config, o) {
896
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
897
- })
898
- .s("AWSBillingAndCostManagementDataExports", "ListTagsForResource", {})
899
- .n("BCMDataExportsClient", "ListTagsForResourceCommand")
900
- .sc(ListTagsForResource$)
901
- .build() {
826
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
902
827
  }
903
828
 
904
- class TagResourceCommand extends Command
905
- .classBuilder()
906
- .ep(commonParams)
907
- .m(function (Command, cs, config, o) {
908
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
909
- })
910
- .s("AWSBillingAndCostManagementDataExports", "TagResource", {})
911
- .n("BCMDataExportsClient", "TagResourceCommand")
912
- .sc(TagResource$)
913
- .build() {
829
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
914
830
  }
915
831
 
916
- class UntagResourceCommand extends Command
917
- .classBuilder()
918
- .ep(commonParams)
919
- .m(function (Command, cs, config, o) {
920
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
921
- })
922
- .s("AWSBillingAndCostManagementDataExports", "UntagResource", {})
923
- .n("BCMDataExportsClient", "UntagResourceCommand")
924
- .sc(UntagResource$)
925
- .build() {
832
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
926
833
  }
927
834
 
928
- class UpdateExportCommand extends Command
929
- .classBuilder()
930
- .ep(commonParams)
931
- .m(function (Command, cs, config, o) {
932
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
933
- })
934
- .s("AWSBillingAndCostManagementDataExports", "UpdateExport", {})
935
- .n("BCMDataExportsClient", "UpdateExportCommand")
936
- .sc(UpdateExport$)
937
- .build() {
835
+ class UpdateExportCommand extends command(_ep0, _mw0, "UpdateExport", UpdateExport$) {
938
836
  }
939
837
 
940
838
  const paginateListExecutions = createPaginator(BCMDataExportsClient, ListExecutionsCommand, "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, "AWSBillingAndCostManagementDataExports", "BCMDataExportsClient", 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 { CreateExport$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateExportCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBillingAndCostManagementDataExports", "CreateExport", {})
13
- .n("BCMDataExportsClient", "CreateExportCommand")
14
- .sc(CreateExport$)
15
- .build() {
3
+ export class CreateExportCommand extends command(_ep0, _mw0, "CreateExport", CreateExport$) {
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 { DeleteExport$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteExportCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBillingAndCostManagementDataExports", "DeleteExport", {})
13
- .n("BCMDataExportsClient", "DeleteExportCommand")
14
- .sc(DeleteExport$)
15
- .build() {
3
+ export class DeleteExportCommand extends command(_ep0, _mw0, "DeleteExport", DeleteExport$) {
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 { GetExecution$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetExecutionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBillingAndCostManagementDataExports", "GetExecution", {})
13
- .n("BCMDataExportsClient", "GetExecutionCommand")
14
- .sc(GetExecution$)
15
- .build() {
3
+ export class GetExecutionCommand extends command(_ep0, _mw0, "GetExecution", GetExecution$) {
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 { GetExport$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetExportCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBillingAndCostManagementDataExports", "GetExport", {})
13
- .n("BCMDataExportsClient", "GetExportCommand")
14
- .sc(GetExport$)
15
- .build() {
3
+ export class GetExportCommand extends command(_ep0, _mw0, "GetExport", GetExport$) {
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 { GetTable$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetTableCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBillingAndCostManagementDataExports", "GetTable", {})
13
- .n("BCMDataExportsClient", "GetTableCommand")
14
- .sc(GetTable$)
15
- .build() {
3
+ export class GetTableCommand extends command(_ep0, _mw0, "GetTable", GetTable$) {
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("AWSBillingAndCostManagementDataExports", "ListExecutions", {})
13
- .n("BCMDataExportsClient", "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 { ListExports$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListExportsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBillingAndCostManagementDataExports", "ListExports", {})
13
- .n("BCMDataExportsClient", "ListExportsCommand")
14
- .sc(ListExports$)
15
- .build() {
3
+ export class ListExportsCommand extends command(_ep0, _mw0, "ListExports", ListExports$) {
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 { ListTables$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTablesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBillingAndCostManagementDataExports", "ListTables", {})
13
- .n("BCMDataExportsClient", "ListTablesCommand")
14
- .sc(ListTables$)
15
- .build() {
3
+ export class ListTablesCommand extends command(_ep0, _mw0, "ListTables", ListTables$) {
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("AWSBillingAndCostManagementDataExports", "ListTagsForResource", {})
13
- .n("BCMDataExportsClient", "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("AWSBillingAndCostManagementDataExports", "TagResource", {})
13
- .n("BCMDataExportsClient", "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("AWSBillingAndCostManagementDataExports", "UntagResource", {})
13
- .n("BCMDataExportsClient", "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 { UpdateExport$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateExportCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBillingAndCostManagementDataExports", "UpdateExport", {})
13
- .n("BCMDataExportsClient", "UpdateExportCommand")
14
- .sc(UpdateExport$)
15
- .build() {
3
+ export class UpdateExportCommand extends command(_ep0, _mw0, "UpdateExport", UpdateExport$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./BCMDataExportsClient";
2
2
  export * from "./BCMDataExports";
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_1Protocol } 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: "AWSBillingAndCostManagementDataExports",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "BCM Data Exports",
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 { BCMDataExportsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./BCMDataExportsClient";
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, BCMDataExportsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, BCMDataExportsClientResolvedConfig, 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 { BCMDataExportsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BCMDataExportsClient";
4
2
  import type { CreateExportRequest, CreateExportResponse } 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 CreateExportCommandInput extends CreateExportRequest {
22
19
  export interface CreateExportCommandOutput extends CreateExportResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateExportCommand_base: {
25
- new (input: CreateExportCommandInput): import("@smithy/core/client").CommandImpl<CreateExportCommandInput, CreateExportCommandOutput, BCMDataExportsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateExportCommandInput): import("@smithy/core/client").CommandImpl<CreateExportCommandInput, CreateExportCommandOutput, BCMDataExportsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateExportCommandInput): import("@smithy/core/client").CommandImpl<CreateExportCommandInput, CreateExportCommandOutput, import("..").BCMDataExportsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateExportCommandInput): import("@smithy/core/client").CommandImpl<CreateExportCommandInput, CreateExportCommandOutput, import("..").BCMDataExportsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a data export and specifies the data query, the delivery preference, and any optional resource tags.</p> <p>A <code>DataQuery</code> consists of both a <code>QueryStatement</code> and <code>TableConfigurations</code>.</p> <p>The <code>QueryStatement</code> is an SQL statement. Data Exports only supports a limited subset of the SQL syntax. For more information on the SQL syntax that is supported, see <a href="https://docs.aws.amazon.com/cur/latest/userguide/de-data-query.html">Data query</a>. To view the available tables and columns, see the <a href="https://docs.aws.amazon.com/cur/latest/userguide/de-table-dictionary.html">Data Exports table dictionary</a>.</p> <p>The <code>TableConfigurations</code> is a collection of specified <code>TableProperties</code> for the table being queried in the <code>QueryStatement</code>. TableProperties are additional configurations you can provide to change the data and schema of a table. Each table can have different TableProperties. However, tables are not required to have any TableProperties. Each table property has a default value that it assumes if not specified. For more information on table configurations, see <a href="https://docs.aws.amazon.com/cur/latest/userguide/de-data-query.html">Data query</a>. To view the table properties available for each table, see the <a href="https://docs.aws.amazon.com/cur/latest/userguide/de-table-dictionary.html">Data Exports table dictionary</a> or use the <code>ListTables</code> API to get a response of all tables and their available properties.</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
- import type { BCMDataExportsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BCMDataExportsClient";
4
2
  import type { DeleteExportRequest, DeleteExportResponse } 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 DeleteExportCommandInput extends DeleteExportRequest {
22
19
  export interface DeleteExportCommandOutput extends DeleteExportResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteExportCommand_base: {
25
- new (input: DeleteExportCommandInput): import("@smithy/core/client").CommandImpl<DeleteExportCommandInput, DeleteExportCommandOutput, BCMDataExportsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteExportCommandInput): import("@smithy/core/client").CommandImpl<DeleteExportCommandInput, DeleteExportCommandOutput, BCMDataExportsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteExportCommandInput): import("@smithy/core/client").CommandImpl<DeleteExportCommandInput, DeleteExportCommandOutput, import("..").BCMDataExportsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteExportCommandInput): import("@smithy/core/client").CommandImpl<DeleteExportCommandInput, DeleteExportCommandOutput, import("..").BCMDataExportsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes an existing data export.</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
- import type { BCMDataExportsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BCMDataExportsClient";
4
2
  import type { GetExecutionRequest, GetExecutionResponse } 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 GetExecutionCommandInput extends GetExecutionRequest {
22
19
  export interface GetExecutionCommandOutput extends GetExecutionResponse, __MetadataBearer {
23
20
  }
24
21
  declare const GetExecutionCommand_base: {
25
- new (input: GetExecutionCommandInput): import("@smithy/core/client").CommandImpl<GetExecutionCommandInput, GetExecutionCommandOutput, BCMDataExportsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: GetExecutionCommandInput): import("@smithy/core/client").CommandImpl<GetExecutionCommandInput, GetExecutionCommandOutput, BCMDataExportsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetExecutionCommandInput): import("@smithy/core/client").CommandImpl<GetExecutionCommandInput, GetExecutionCommandOutput, import("..").BCMDataExportsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetExecutionCommandInput): import("@smithy/core/client").CommandImpl<GetExecutionCommandInput, GetExecutionCommandOutput, import("..").BCMDataExportsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Exports data based on the source data update.</p>