@aws-sdk/client-billing 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/AssociateSourceViewsCommand.js +2 -14
  4. package/dist-es/commands/CreateBillingViewCommand.js +2 -14
  5. package/dist-es/commands/DeleteBillingViewCommand.js +2 -14
  6. package/dist-es/commands/DisassociateSourceViewsCommand.js +2 -14
  7. package/dist-es/commands/GetBillingViewCommand.js +2 -14
  8. package/dist-es/commands/GetResourcePolicyCommand.js +2 -14
  9. package/dist-es/commands/ListBillingViewsCommand.js +2 -14
  10. package/dist-es/commands/ListSourceViewsForBillingViewCommand.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/UpdateBillingViewCommand.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/AssociateSourceViewsCommand.d.ts +3 -8
  22. package/dist-types/commands/CreateBillingViewCommand.d.ts +3 -8
  23. package/dist-types/commands/DeleteBillingViewCommand.d.ts +3 -8
  24. package/dist-types/commands/DisassociateSourceViewsCommand.d.ts +3 -8
  25. package/dist-types/commands/GetBillingViewCommand.d.ts +3 -8
  26. package/dist-types/commands/GetResourcePolicyCommand.d.ts +3 -8
  27. package/dist-types/commands/ListBillingViewsCommand.d.ts +3 -8
  28. package/dist-types/commands/ListSourceViewsForBillingViewCommand.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/UpdateBillingViewCommand.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/AssociateSourceViewsCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/CreateBillingViewCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/DeleteBillingViewCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/DisassociateSourceViewsCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/GetBillingViewCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/ListBillingViewsCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/ListSourceViewsForBillingViewCommand.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/UpdateBillingViewCommand.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_0Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultBillingHttpAuthSchemeParametersProvider = 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
 
@@ -692,6 +694,7 @@ const getRuntimeConfig$1 = (config) => {
692
694
  serviceTarget: "AWSBilling",
693
695
  },
694
696
  serviceId: config?.serviceId ?? "Billing",
697
+ sha256: config?.sha256 ?? Sha256,
695
698
  urlParser: config?.urlParser ?? parseUrl,
696
699
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
697
700
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -725,7 +728,6 @@ const getRuntimeConfig = (config) => {
725
728
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
726
729
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
727
730
  }, config),
728
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
729
731
  streamCollector: config?.streamCollector ?? streamCollector,
730
732
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
731
733
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -813,148 +815,44 @@ class BillingClient extends Client {
813
815
  }
814
816
  }
815
817
 
816
- class AssociateSourceViewsCommand extends Command
817
- .classBuilder()
818
- .ep(commonParams)
819
- .m(function (Command, cs, config, o) {
820
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
821
- })
822
- .s("AWSBilling", "AssociateSourceViews", {})
823
- .n("BillingClient", "AssociateSourceViewsCommand")
824
- .sc(AssociateSourceViews$)
825
- .build() {
818
+ const command = makeBuilder(commonParams, "AWSBilling", "BillingClient", getEndpointPlugin);
819
+ const _ep0 = {};
820
+ const _mw0 = (Command, cs, config, o) => [];
821
+
822
+ class AssociateSourceViewsCommand extends command(_ep0, _mw0, "AssociateSourceViews", AssociateSourceViews$) {
826
823
  }
827
824
 
828
- class CreateBillingViewCommand extends Command
829
- .classBuilder()
830
- .ep(commonParams)
831
- .m(function (Command, cs, config, o) {
832
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
833
- })
834
- .s("AWSBilling", "CreateBillingView", {})
835
- .n("BillingClient", "CreateBillingViewCommand")
836
- .sc(CreateBillingView$)
837
- .build() {
825
+ class CreateBillingViewCommand extends command(_ep0, _mw0, "CreateBillingView", CreateBillingView$) {
838
826
  }
839
827
 
840
- class DeleteBillingViewCommand extends Command
841
- .classBuilder()
842
- .ep(commonParams)
843
- .m(function (Command, cs, config, o) {
844
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
845
- })
846
- .s("AWSBilling", "DeleteBillingView", {})
847
- .n("BillingClient", "DeleteBillingViewCommand")
848
- .sc(DeleteBillingView$)
849
- .build() {
828
+ class DeleteBillingViewCommand extends command(_ep0, _mw0, "DeleteBillingView", DeleteBillingView$) {
850
829
  }
851
830
 
852
- class DisassociateSourceViewsCommand extends Command
853
- .classBuilder()
854
- .ep(commonParams)
855
- .m(function (Command, cs, config, o) {
856
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
857
- })
858
- .s("AWSBilling", "DisassociateSourceViews", {})
859
- .n("BillingClient", "DisassociateSourceViewsCommand")
860
- .sc(DisassociateSourceViews$)
861
- .build() {
831
+ class DisassociateSourceViewsCommand extends command(_ep0, _mw0, "DisassociateSourceViews", DisassociateSourceViews$) {
862
832
  }
863
833
 
864
- class GetBillingViewCommand extends Command
865
- .classBuilder()
866
- .ep(commonParams)
867
- .m(function (Command, cs, config, o) {
868
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
869
- })
870
- .s("AWSBilling", "GetBillingView", {})
871
- .n("BillingClient", "GetBillingViewCommand")
872
- .sc(GetBillingView$)
873
- .build() {
834
+ class GetBillingViewCommand extends command(_ep0, _mw0, "GetBillingView", GetBillingView$) {
874
835
  }
875
836
 
876
- class GetResourcePolicyCommand extends Command
877
- .classBuilder()
878
- .ep(commonParams)
879
- .m(function (Command, cs, config, o) {
880
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
881
- })
882
- .s("AWSBilling", "GetResourcePolicy", {})
883
- .n("BillingClient", "GetResourcePolicyCommand")
884
- .sc(GetResourcePolicy$)
885
- .build() {
837
+ class GetResourcePolicyCommand extends command(_ep0, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
886
838
  }
887
839
 
888
- class ListBillingViewsCommand extends Command
889
- .classBuilder()
890
- .ep(commonParams)
891
- .m(function (Command, cs, config, o) {
892
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
893
- })
894
- .s("AWSBilling", "ListBillingViews", {})
895
- .n("BillingClient", "ListBillingViewsCommand")
896
- .sc(ListBillingViews$)
897
- .build() {
840
+ class ListBillingViewsCommand extends command(_ep0, _mw0, "ListBillingViews", ListBillingViews$) {
898
841
  }
899
842
 
900
- class ListSourceViewsForBillingViewCommand extends Command
901
- .classBuilder()
902
- .ep(commonParams)
903
- .m(function (Command, cs, config, o) {
904
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
905
- })
906
- .s("AWSBilling", "ListSourceViewsForBillingView", {})
907
- .n("BillingClient", "ListSourceViewsForBillingViewCommand")
908
- .sc(ListSourceViewsForBillingView$)
909
- .build() {
843
+ class ListSourceViewsForBillingViewCommand extends command(_ep0, _mw0, "ListSourceViewsForBillingView", ListSourceViewsForBillingView$) {
910
844
  }
911
845
 
912
- class ListTagsForResourceCommand extends Command
913
- .classBuilder()
914
- .ep(commonParams)
915
- .m(function (Command, cs, config, o) {
916
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
917
- })
918
- .s("AWSBilling", "ListTagsForResource", {})
919
- .n("BillingClient", "ListTagsForResourceCommand")
920
- .sc(ListTagsForResource$)
921
- .build() {
846
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
922
847
  }
923
848
 
924
- class TagResourceCommand extends Command
925
- .classBuilder()
926
- .ep(commonParams)
927
- .m(function (Command, cs, config, o) {
928
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
929
- })
930
- .s("AWSBilling", "TagResource", {})
931
- .n("BillingClient", "TagResourceCommand")
932
- .sc(TagResource$)
933
- .build() {
849
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
934
850
  }
935
851
 
936
- class UntagResourceCommand extends Command
937
- .classBuilder()
938
- .ep(commonParams)
939
- .m(function (Command, cs, config, o) {
940
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
941
- })
942
- .s("AWSBilling", "UntagResource", {})
943
- .n("BillingClient", "UntagResourceCommand")
944
- .sc(UntagResource$)
945
- .build() {
852
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
946
853
  }
947
854
 
948
- class UpdateBillingViewCommand extends Command
949
- .classBuilder()
950
- .ep(commonParams)
951
- .m(function (Command, cs, config, o) {
952
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
953
- })
954
- .s("AWSBilling", "UpdateBillingView", {})
955
- .n("BillingClient", "UpdateBillingViewCommand")
956
- .sc(UpdateBillingView$)
957
- .build() {
855
+ class UpdateBillingViewCommand extends command(_ep0, _mw0, "UpdateBillingView", UpdateBillingView$) {
958
856
  }
959
857
 
960
858
  const paginateListBillingViews = createPaginator(BillingClient, ListBillingViewsCommand, "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, "AWSBilling", "BillingClient", 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 { AssociateSourceViews$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AssociateSourceViewsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBilling", "AssociateSourceViews", {})
13
- .n("BillingClient", "AssociateSourceViewsCommand")
14
- .sc(AssociateSourceViews$)
15
- .build() {
3
+ export class AssociateSourceViewsCommand extends command(_ep0, _mw0, "AssociateSourceViews", AssociateSourceViews$) {
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 { CreateBillingView$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateBillingViewCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBilling", "CreateBillingView", {})
13
- .n("BillingClient", "CreateBillingViewCommand")
14
- .sc(CreateBillingView$)
15
- .build() {
3
+ export class CreateBillingViewCommand extends command(_ep0, _mw0, "CreateBillingView", CreateBillingView$) {
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 { DeleteBillingView$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteBillingViewCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBilling", "DeleteBillingView", {})
13
- .n("BillingClient", "DeleteBillingViewCommand")
14
- .sc(DeleteBillingView$)
15
- .build() {
3
+ export class DeleteBillingViewCommand extends command(_ep0, _mw0, "DeleteBillingView", DeleteBillingView$) {
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 { DisassociateSourceViews$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DisassociateSourceViewsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBilling", "DisassociateSourceViews", {})
13
- .n("BillingClient", "DisassociateSourceViewsCommand")
14
- .sc(DisassociateSourceViews$)
15
- .build() {
3
+ export class DisassociateSourceViewsCommand extends command(_ep0, _mw0, "DisassociateSourceViews", DisassociateSourceViews$) {
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 { GetBillingView$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetBillingViewCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBilling", "GetBillingView", {})
13
- .n("BillingClient", "GetBillingViewCommand")
14
- .sc(GetBillingView$)
15
- .build() {
3
+ export class GetBillingViewCommand extends command(_ep0, _mw0, "GetBillingView", GetBillingView$) {
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("AWSBilling", "GetResourcePolicy", {})
13
- .n("BillingClient", "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 { ListBillingViews$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListBillingViewsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBilling", "ListBillingViews", {})
13
- .n("BillingClient", "ListBillingViewsCommand")
14
- .sc(ListBillingViews$)
15
- .build() {
3
+ export class ListBillingViewsCommand extends command(_ep0, _mw0, "ListBillingViews", ListBillingViews$) {
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 { ListSourceViewsForBillingView$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSourceViewsForBillingViewCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBilling", "ListSourceViewsForBillingView", {})
13
- .n("BillingClient", "ListSourceViewsForBillingViewCommand")
14
- .sc(ListSourceViewsForBillingView$)
15
- .build() {
3
+ export class ListSourceViewsForBillingViewCommand extends command(_ep0, _mw0, "ListSourceViewsForBillingView", ListSourceViewsForBillingView$) {
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("AWSBilling", "ListTagsForResource", {})
13
- .n("BillingClient", "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("AWSBilling", "TagResource", {})
13
- .n("BillingClient", "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("AWSBilling", "UntagResource", {})
13
- .n("BillingClient", "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 { UpdateBillingView$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateBillingViewCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSBilling", "UpdateBillingView", {})
13
- .n("BillingClient", "UpdateBillingViewCommand")
14
- .sc(UpdateBillingView$)
15
- .build() {
3
+ export class UpdateBillingViewCommand extends command(_ep0, _mw0, "UpdateBillingView", UpdateBillingView$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./BillingClient";
2
2
  export * from "./Billing";
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: "AWSBilling",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "Billing",
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 { BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./BillingClient";
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, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, BillingClientResolvedConfig, 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 { BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BillingClient";
4
2
  import type { AssociateSourceViewsRequest, AssociateSourceViewsResponse } 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 AssociateSourceViewsCommandInput extends AssociateSourceViewsRe
22
19
  export interface AssociateSourceViewsCommandOutput extends AssociateSourceViewsResponse, __MetadataBearer {
23
20
  }
24
21
  declare const AssociateSourceViewsCommand_base: {
25
- new (input: AssociateSourceViewsCommandInput): import("@smithy/core/client").CommandImpl<AssociateSourceViewsCommandInput, AssociateSourceViewsCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: AssociateSourceViewsCommandInput): import("@smithy/core/client").CommandImpl<AssociateSourceViewsCommandInput, AssociateSourceViewsCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: AssociateSourceViewsCommandInput): import("@smithy/core/client").CommandImpl<AssociateSourceViewsCommandInput, AssociateSourceViewsCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: AssociateSourceViewsCommandInput): import("@smithy/core/client").CommandImpl<AssociateSourceViewsCommandInput, AssociateSourceViewsCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p> Associates one or more source billing views with an existing billing view. This allows creating aggregate billing views that combine data from multiple sources. </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 { BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BillingClient";
4
2
  import type { CreateBillingViewRequest, CreateBillingViewResponse } 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 CreateBillingViewCommandInput extends CreateBillingViewRequest
22
19
  export interface CreateBillingViewCommandOutput extends CreateBillingViewResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateBillingViewCommand_base: {
25
- new (input: CreateBillingViewCommandInput): import("@smithy/core/client").CommandImpl<CreateBillingViewCommandInput, CreateBillingViewCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateBillingViewCommandInput): import("@smithy/core/client").CommandImpl<CreateBillingViewCommandInput, CreateBillingViewCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateBillingViewCommandInput): import("@smithy/core/client").CommandImpl<CreateBillingViewCommandInput, CreateBillingViewCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateBillingViewCommandInput): import("@smithy/core/client").CommandImpl<CreateBillingViewCommandInput, CreateBillingViewCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p> Creates a billing view with the specified billing view attributes. </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 { BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BillingClient";
4
2
  import type { DeleteBillingViewRequest, DeleteBillingViewResponse } 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 DeleteBillingViewCommandInput extends DeleteBillingViewRequest
22
19
  export interface DeleteBillingViewCommandOutput extends DeleteBillingViewResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteBillingViewCommand_base: {
25
- new (input: DeleteBillingViewCommandInput): import("@smithy/core/client").CommandImpl<DeleteBillingViewCommandInput, DeleteBillingViewCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteBillingViewCommandInput): import("@smithy/core/client").CommandImpl<DeleteBillingViewCommandInput, DeleteBillingViewCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteBillingViewCommandInput): import("@smithy/core/client").CommandImpl<DeleteBillingViewCommandInput, DeleteBillingViewCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteBillingViewCommandInput): import("@smithy/core/client").CommandImpl<DeleteBillingViewCommandInput, DeleteBillingViewCommandOutput, import("..").BillingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes the specified billing view.</p>