@aws-sdk/client-savingsplans 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 (50) hide show
  1. package/dist-cjs/index.js +21 -105
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateSavingsPlanCommand.js +2 -14
  4. package/dist-es/commands/DeleteQueuedSavingsPlanCommand.js +2 -14
  5. package/dist-es/commands/DescribeSavingsPlanRatesCommand.js +2 -14
  6. package/dist-es/commands/DescribeSavingsPlansCommand.js +2 -14
  7. package/dist-es/commands/DescribeSavingsPlansOfferingRatesCommand.js +2 -14
  8. package/dist-es/commands/DescribeSavingsPlansOfferingsCommand.js +2 -14
  9. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  10. package/dist-es/commands/ReturnSavingsPlanCommand.js +2 -14
  11. package/dist-es/commands/TagResourceCommand.js +2 -14
  12. package/dist-es/commands/UntagResourceCommand.js +2 -14
  13. package/dist-es/index.js +1 -0
  14. package/dist-es/runtimeConfig.browser.js +0 -2
  15. package/dist-es/runtimeConfig.js +1 -2
  16. package/dist-es/runtimeConfig.native.js +0 -2
  17. package/dist-es/runtimeConfig.shared.js +2 -0
  18. package/dist-types/commandBuilder.d.ts +18 -0
  19. package/dist-types/commands/CreateSavingsPlanCommand.d.ts +3 -8
  20. package/dist-types/commands/DeleteQueuedSavingsPlanCommand.d.ts +3 -8
  21. package/dist-types/commands/DescribeSavingsPlanRatesCommand.d.ts +3 -8
  22. package/dist-types/commands/DescribeSavingsPlansCommand.d.ts +3 -8
  23. package/dist-types/commands/DescribeSavingsPlansOfferingRatesCommand.d.ts +3 -8
  24. package/dist-types/commands/DescribeSavingsPlansOfferingsCommand.d.ts +3 -8
  25. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  26. package/dist-types/commands/ReturnSavingsPlanCommand.d.ts +3 -8
  27. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  28. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  29. package/dist-types/index.d.ts +1 -0
  30. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  31. package/dist-types/runtimeConfig.d.ts +1 -1
  32. package/dist-types/runtimeConfig.native.d.ts +1 -1
  33. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  34. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  35. package/dist-types/ts3.4/commands/CreateSavingsPlanCommand.d.ts +7 -16
  36. package/dist-types/ts3.4/commands/DeleteQueuedSavingsPlanCommand.d.ts +7 -16
  37. package/dist-types/ts3.4/commands/DescribeSavingsPlanRatesCommand.d.ts +7 -16
  38. package/dist-types/ts3.4/commands/DescribeSavingsPlansCommand.d.ts +7 -16
  39. package/dist-types/ts3.4/commands/DescribeSavingsPlansOfferingRatesCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/DescribeSavingsPlansOfferingsCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/ReturnSavingsPlanCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/index.d.ts +1 -0
  46. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  47. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  48. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  49. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  50. 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 } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultSavingsplansHttpAuthSchemeParametersProvider = 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
 
@@ -598,6 +600,7 @@ const getRuntimeConfig$1 = (config) => {
598
600
  serviceTarget: "AWSSavingsPlan",
599
601
  },
600
602
  serviceId: config?.serviceId ?? "savingsplans",
603
+ sha256: config?.sha256 ?? Sha256,
601
604
  urlParser: config?.urlParser ?? parseUrl,
602
605
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
603
606
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -631,7 +634,6 @@ const getRuntimeConfig = (config) => {
631
634
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
632
635
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
633
636
  }, config),
634
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
635
637
  streamCollector: config?.streamCollector ?? streamCollector,
636
638
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
637
639
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -719,124 +721,38 @@ class SavingsplansClient extends Client {
719
721
  }
720
722
  }
721
723
 
722
- class CreateSavingsPlanCommand extends Command
723
- .classBuilder()
724
- .ep(commonParams)
725
- .m(function (Command, cs, config, o) {
726
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
727
- })
728
- .s("AWSSavingsPlan", "CreateSavingsPlan", {})
729
- .n("SavingsplansClient", "CreateSavingsPlanCommand")
730
- .sc(CreateSavingsPlan$)
731
- .build() {
724
+ const command = makeBuilder(commonParams, "AWSSavingsPlan", "SavingsplansClient", getEndpointPlugin);
725
+ const _ep0 = {};
726
+ const _mw0 = (Command, cs, config, o) => [];
727
+
728
+ class CreateSavingsPlanCommand extends command(_ep0, _mw0, "CreateSavingsPlan", CreateSavingsPlan$) {
732
729
  }
733
730
 
734
- class DeleteQueuedSavingsPlanCommand extends Command
735
- .classBuilder()
736
- .ep(commonParams)
737
- .m(function (Command, cs, config, o) {
738
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
739
- })
740
- .s("AWSSavingsPlan", "DeleteQueuedSavingsPlan", {})
741
- .n("SavingsplansClient", "DeleteQueuedSavingsPlanCommand")
742
- .sc(DeleteQueuedSavingsPlan$)
743
- .build() {
731
+ class DeleteQueuedSavingsPlanCommand extends command(_ep0, _mw0, "DeleteQueuedSavingsPlan", DeleteQueuedSavingsPlan$) {
744
732
  }
745
733
 
746
- class DescribeSavingsPlanRatesCommand extends Command
747
- .classBuilder()
748
- .ep(commonParams)
749
- .m(function (Command, cs, config, o) {
750
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
751
- })
752
- .s("AWSSavingsPlan", "DescribeSavingsPlanRates", {})
753
- .n("SavingsplansClient", "DescribeSavingsPlanRatesCommand")
754
- .sc(DescribeSavingsPlanRates$)
755
- .build() {
734
+ class DescribeSavingsPlanRatesCommand extends command(_ep0, _mw0, "DescribeSavingsPlanRates", DescribeSavingsPlanRates$) {
756
735
  }
757
736
 
758
- class DescribeSavingsPlansCommand extends Command
759
- .classBuilder()
760
- .ep(commonParams)
761
- .m(function (Command, cs, config, o) {
762
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
763
- })
764
- .s("AWSSavingsPlan", "DescribeSavingsPlans", {})
765
- .n("SavingsplansClient", "DescribeSavingsPlansCommand")
766
- .sc(DescribeSavingsPlans$)
767
- .build() {
737
+ class DescribeSavingsPlansCommand extends command(_ep0, _mw0, "DescribeSavingsPlans", DescribeSavingsPlans$) {
768
738
  }
769
739
 
770
- class DescribeSavingsPlansOfferingRatesCommand extends Command
771
- .classBuilder()
772
- .ep(commonParams)
773
- .m(function (Command, cs, config, o) {
774
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
775
- })
776
- .s("AWSSavingsPlan", "DescribeSavingsPlansOfferingRates", {})
777
- .n("SavingsplansClient", "DescribeSavingsPlansOfferingRatesCommand")
778
- .sc(DescribeSavingsPlansOfferingRates$)
779
- .build() {
740
+ class DescribeSavingsPlansOfferingRatesCommand extends command(_ep0, _mw0, "DescribeSavingsPlansOfferingRates", DescribeSavingsPlansOfferingRates$) {
780
741
  }
781
742
 
782
- class DescribeSavingsPlansOfferingsCommand extends Command
783
- .classBuilder()
784
- .ep(commonParams)
785
- .m(function (Command, cs, config, o) {
786
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
787
- })
788
- .s("AWSSavingsPlan", "DescribeSavingsPlansOfferings", {})
789
- .n("SavingsplansClient", "DescribeSavingsPlansOfferingsCommand")
790
- .sc(DescribeSavingsPlansOfferings$)
791
- .build() {
743
+ class DescribeSavingsPlansOfferingsCommand extends command(_ep0, _mw0, "DescribeSavingsPlansOfferings", DescribeSavingsPlansOfferings$) {
792
744
  }
793
745
 
794
- class ListTagsForResourceCommand extends Command
795
- .classBuilder()
796
- .ep(commonParams)
797
- .m(function (Command, cs, config, o) {
798
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
799
- })
800
- .s("AWSSavingsPlan", "ListTagsForResource", {})
801
- .n("SavingsplansClient", "ListTagsForResourceCommand")
802
- .sc(ListTagsForResource$)
803
- .build() {
746
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
804
747
  }
805
748
 
806
- class ReturnSavingsPlanCommand extends Command
807
- .classBuilder()
808
- .ep(commonParams)
809
- .m(function (Command, cs, config, o) {
810
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
811
- })
812
- .s("AWSSavingsPlan", "ReturnSavingsPlan", {})
813
- .n("SavingsplansClient", "ReturnSavingsPlanCommand")
814
- .sc(ReturnSavingsPlan$)
815
- .build() {
749
+ class ReturnSavingsPlanCommand extends command(_ep0, _mw0, "ReturnSavingsPlan", ReturnSavingsPlan$) {
816
750
  }
817
751
 
818
- class TagResourceCommand extends Command
819
- .classBuilder()
820
- .ep(commonParams)
821
- .m(function (Command, cs, config, o) {
822
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
823
- })
824
- .s("AWSSavingsPlan", "TagResource", {})
825
- .n("SavingsplansClient", "TagResourceCommand")
826
- .sc(TagResource$)
827
- .build() {
752
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
828
753
  }
829
754
 
830
- class UntagResourceCommand extends Command
831
- .classBuilder()
832
- .ep(commonParams)
833
- .m(function (Command, cs, config, o) {
834
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
835
- })
836
- .s("AWSSavingsPlan", "UntagResource", {})
837
- .n("SavingsplansClient", "UntagResourceCommand")
838
- .sc(UntagResource$)
839
- .build() {
755
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
840
756
  }
841
757
 
842
758
  const commands = {
@@ -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, "AWSSavingsPlan", "SavingsplansClient", 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 { CreateSavingsPlan$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateSavingsPlanCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSavingsPlan", "CreateSavingsPlan", {})
13
- .n("SavingsplansClient", "CreateSavingsPlanCommand")
14
- .sc(CreateSavingsPlan$)
15
- .build() {
3
+ export class CreateSavingsPlanCommand extends command(_ep0, _mw0, "CreateSavingsPlan", CreateSavingsPlan$) {
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 { DeleteQueuedSavingsPlan$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteQueuedSavingsPlanCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSavingsPlan", "DeleteQueuedSavingsPlan", {})
13
- .n("SavingsplansClient", "DeleteQueuedSavingsPlanCommand")
14
- .sc(DeleteQueuedSavingsPlan$)
15
- .build() {
3
+ export class DeleteQueuedSavingsPlanCommand extends command(_ep0, _mw0, "DeleteQueuedSavingsPlan", DeleteQueuedSavingsPlan$) {
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 { DescribeSavingsPlanRates$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeSavingsPlanRatesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSavingsPlan", "DescribeSavingsPlanRates", {})
13
- .n("SavingsplansClient", "DescribeSavingsPlanRatesCommand")
14
- .sc(DescribeSavingsPlanRates$)
15
- .build() {
3
+ export class DescribeSavingsPlanRatesCommand extends command(_ep0, _mw0, "DescribeSavingsPlanRates", DescribeSavingsPlanRates$) {
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 { DescribeSavingsPlans$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeSavingsPlansCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSavingsPlan", "DescribeSavingsPlans", {})
13
- .n("SavingsplansClient", "DescribeSavingsPlansCommand")
14
- .sc(DescribeSavingsPlans$)
15
- .build() {
3
+ export class DescribeSavingsPlansCommand extends command(_ep0, _mw0, "DescribeSavingsPlans", DescribeSavingsPlans$) {
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 { DescribeSavingsPlansOfferingRates$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeSavingsPlansOfferingRatesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSavingsPlan", "DescribeSavingsPlansOfferingRates", {})
13
- .n("SavingsplansClient", "DescribeSavingsPlansOfferingRatesCommand")
14
- .sc(DescribeSavingsPlansOfferingRates$)
15
- .build() {
3
+ export class DescribeSavingsPlansOfferingRatesCommand extends command(_ep0, _mw0, "DescribeSavingsPlansOfferingRates", DescribeSavingsPlansOfferingRates$) {
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 { DescribeSavingsPlansOfferings$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeSavingsPlansOfferingsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSavingsPlan", "DescribeSavingsPlansOfferings", {})
13
- .n("SavingsplansClient", "DescribeSavingsPlansOfferingsCommand")
14
- .sc(DescribeSavingsPlansOfferings$)
15
- .build() {
3
+ export class DescribeSavingsPlansOfferingsCommand extends command(_ep0, _mw0, "DescribeSavingsPlansOfferings", DescribeSavingsPlansOfferings$) {
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("AWSSavingsPlan", "ListTagsForResource", {})
13
- .n("SavingsplansClient", "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 { ReturnSavingsPlan$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ReturnSavingsPlanCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSSavingsPlan", "ReturnSavingsPlan", {})
13
- .n("SavingsplansClient", "ReturnSavingsPlanCommand")
14
- .sc(ReturnSavingsPlan$)
15
- .build() {
3
+ export class ReturnSavingsPlanCommand extends command(_ep0, _mw0, "ReturnSavingsPlan", ReturnSavingsPlan$) {
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("AWSSavingsPlan", "TagResource", {})
13
- .n("SavingsplansClient", "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("AWSSavingsPlan", "UntagResource", {})
13
- .n("SavingsplansClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./SavingsplansClient";
2
2
  export * from "./Savingsplans";
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 "./models/enums";
6
7
  export * from "./models/errors";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "AWSSavingsPlan",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "savingsplans",
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 { SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./SavingsplansClient";
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, SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreateSavingsPlanRequest, CreateSavingsPlanResponse } from "../models/models_0";
4
- import type { SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SavingsplansClient";
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 CreateSavingsPlanCommandInput extends CreateSavingsPlanRequest
22
19
  export interface CreateSavingsPlanCommandOutput extends CreateSavingsPlanResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateSavingsPlanCommand_base: {
25
- new (input: CreateSavingsPlanCommandInput): import("@smithy/core/client").CommandImpl<CreateSavingsPlanCommandInput, CreateSavingsPlanCommandOutput, SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateSavingsPlanCommandInput): import("@smithy/core/client").CommandImpl<CreateSavingsPlanCommandInput, CreateSavingsPlanCommandOutput, SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateSavingsPlanCommandInput): import("@smithy/core/client").CommandImpl<CreateSavingsPlanCommandInput, CreateSavingsPlanCommandOutput, import("..").SavingsplansClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateSavingsPlanCommandInput): import("@smithy/core/client").CommandImpl<CreateSavingsPlanCommandInput, CreateSavingsPlanCommandOutput, import("..").SavingsplansClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a Savings Plan.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DeleteQueuedSavingsPlanRequest, DeleteQueuedSavingsPlanResponse } from "../models/models_0";
4
- import type { SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SavingsplansClient";
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 DeleteQueuedSavingsPlanCommandInput extends DeleteQueuedSavings
22
19
  export interface DeleteQueuedSavingsPlanCommandOutput extends DeleteQueuedSavingsPlanResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteQueuedSavingsPlanCommand_base: {
25
- new (input: DeleteQueuedSavingsPlanCommandInput): import("@smithy/core/client").CommandImpl<DeleteQueuedSavingsPlanCommandInput, DeleteQueuedSavingsPlanCommandOutput, SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteQueuedSavingsPlanCommandInput): import("@smithy/core/client").CommandImpl<DeleteQueuedSavingsPlanCommandInput, DeleteQueuedSavingsPlanCommandOutput, SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteQueuedSavingsPlanCommandInput): import("@smithy/core/client").CommandImpl<DeleteQueuedSavingsPlanCommandInput, DeleteQueuedSavingsPlanCommandOutput, import("..").SavingsplansClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteQueuedSavingsPlanCommandInput): import("@smithy/core/client").CommandImpl<DeleteQueuedSavingsPlanCommandInput, DeleteQueuedSavingsPlanCommandOutput, import("..").SavingsplansClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes the queued purchase for the specified Savings Plan.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DescribeSavingsPlanRatesRequest, DescribeSavingsPlanRatesResponse } from "../models/models_0";
4
- import type { SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SavingsplansClient";
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 DescribeSavingsPlanRatesCommandInput extends DescribeSavingsPla
22
19
  export interface DescribeSavingsPlanRatesCommandOutput extends DescribeSavingsPlanRatesResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DescribeSavingsPlanRatesCommand_base: {
25
- new (input: DescribeSavingsPlanRatesCommandInput): import("@smithy/core/client").CommandImpl<DescribeSavingsPlanRatesCommandInput, DescribeSavingsPlanRatesCommandOutput, SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DescribeSavingsPlanRatesCommandInput): import("@smithy/core/client").CommandImpl<DescribeSavingsPlanRatesCommandInput, DescribeSavingsPlanRatesCommandOutput, SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DescribeSavingsPlanRatesCommandInput): import("@smithy/core/client").CommandImpl<DescribeSavingsPlanRatesCommandInput, DescribeSavingsPlanRatesCommandOutput, import("..").SavingsplansClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DescribeSavingsPlanRatesCommandInput): import("@smithy/core/client").CommandImpl<DescribeSavingsPlanRatesCommandInput, DescribeSavingsPlanRatesCommandOutput, import("..").SavingsplansClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Describes the rates for a specific, existing Savings Plan.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DescribeSavingsPlansRequest, DescribeSavingsPlansResponse } from "../models/models_0";
4
- import type { SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SavingsplansClient";
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 DescribeSavingsPlansCommandInput extends DescribeSavingsPlansRe
22
19
  export interface DescribeSavingsPlansCommandOutput extends DescribeSavingsPlansResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DescribeSavingsPlansCommand_base: {
25
- new (input: DescribeSavingsPlansCommandInput): import("@smithy/core/client").CommandImpl<DescribeSavingsPlansCommandInput, DescribeSavingsPlansCommandOutput, SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [DescribeSavingsPlansCommandInput]): import("@smithy/core/client").CommandImpl<DescribeSavingsPlansCommandInput, DescribeSavingsPlansCommandOutput, SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DescribeSavingsPlansCommandInput): import("@smithy/core/client").CommandImpl<DescribeSavingsPlansCommandInput, DescribeSavingsPlansCommandOutput, import("..").SavingsplansClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [DescribeSavingsPlansCommandInput]): import("@smithy/core/client").CommandImpl<DescribeSavingsPlansCommandInput, DescribeSavingsPlansCommandOutput, import("..").SavingsplansClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Describes the specified Savings Plans.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DescribeSavingsPlansOfferingRatesRequest, DescribeSavingsPlansOfferingRatesResponse } from "../models/models_0";
4
- import type { SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SavingsplansClient";
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 DescribeSavingsPlansOfferingRatesCommandInput extends DescribeS
22
19
  export interface DescribeSavingsPlansOfferingRatesCommandOutput extends DescribeSavingsPlansOfferingRatesResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DescribeSavingsPlansOfferingRatesCommand_base: {
25
- new (input: DescribeSavingsPlansOfferingRatesCommandInput): import("@smithy/core/client").CommandImpl<DescribeSavingsPlansOfferingRatesCommandInput, DescribeSavingsPlansOfferingRatesCommandOutput, SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [DescribeSavingsPlansOfferingRatesCommandInput]): import("@smithy/core/client").CommandImpl<DescribeSavingsPlansOfferingRatesCommandInput, DescribeSavingsPlansOfferingRatesCommandOutput, SavingsplansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DescribeSavingsPlansOfferingRatesCommandInput): import("@smithy/core/client").CommandImpl<DescribeSavingsPlansOfferingRatesCommandInput, DescribeSavingsPlansOfferingRatesCommandOutput, import("..").SavingsplansClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [DescribeSavingsPlansOfferingRatesCommandInput]): import("@smithy/core/client").CommandImpl<DescribeSavingsPlansOfferingRatesCommandInput, DescribeSavingsPlansOfferingRatesCommandOutput, import("..").SavingsplansClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Describes the offering rates for Savings Plans you might want to purchase.</p>