@aws-sdk/client-savingsplans 3.36.0 → 3.39.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 (45) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/Savingsplans.js +0 -6
  3. package/dist-cjs/SavingsplansClient.js +0 -11
  4. package/dist-cjs/commands/CreateSavingsPlanCommand.js +0 -24
  5. package/dist-cjs/commands/DeleteQueuedSavingsPlanCommand.js +0 -24
  6. package/dist-cjs/commands/DescribeSavingsPlanRatesCommand.js +0 -24
  7. package/dist-cjs/commands/DescribeSavingsPlansCommand.js +0 -24
  8. package/dist-cjs/commands/DescribeSavingsPlansOfferingRatesCommand.js +0 -24
  9. package/dist-cjs/commands/DescribeSavingsPlansOfferingsCommand.js +0 -24
  10. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -24
  11. package/dist-cjs/commands/TagResourceCommand.js +0 -24
  12. package/dist-cjs/commands/UntagResourceCommand.js +0 -24
  13. package/dist-cjs/commands/index.js +12 -0
  14. package/dist-cjs/endpoints.js +6 -1
  15. package/dist-cjs/index.js +3 -11
  16. package/dist-cjs/models/models_0.js +0 -102
  17. package/dist-cjs/protocols/Aws_restJson1.js +0 -5
  18. package/dist-cjs/runtimeConfig.browser.js +1 -5
  19. package/dist-cjs/runtimeConfig.js +1 -5
  20. package/dist-cjs/runtimeConfig.native.js +0 -3
  21. package/dist-cjs/runtimeConfig.shared.js +0 -3
  22. package/dist-es/commands/index.js +9 -0
  23. package/dist-es/endpoints.js +6 -1
  24. package/dist-es/index.js +3 -11
  25. package/dist-types/commands/index.d.ts +9 -0
  26. package/dist-types/index.d.ts +3 -11
  27. package/dist-types/ts3.4/Savingsplans.d.ts +10 -33
  28. package/dist-types/ts3.4/SavingsplansClient.d.ts +24 -92
  29. package/dist-types/ts3.4/commands/CreateSavingsPlanCommand.d.ts +2 -20
  30. package/dist-types/ts3.4/commands/DeleteQueuedSavingsPlanCommand.d.ts +2 -20
  31. package/dist-types/ts3.4/commands/DescribeSavingsPlanRatesCommand.d.ts +2 -20
  32. package/dist-types/ts3.4/commands/DescribeSavingsPlansCommand.d.ts +2 -20
  33. package/dist-types/ts3.4/commands/DescribeSavingsPlansOfferingRatesCommand.d.ts +2 -20
  34. package/dist-types/ts3.4/commands/DescribeSavingsPlansOfferingsCommand.d.ts +2 -20
  35. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  36. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
  37. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  38. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  39. package/dist-types/ts3.4/index.d.ts +3 -11
  40. package/dist-types/ts3.4/models/models_0.d.ts +171 -523
  41. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  42. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  43. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  44. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  45. package/package.json +32 -32
package/CHANGELOG.md CHANGED
@@ -3,6 +3,48 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-savingsplans
9
+
10
+
11
+
12
+
13
+
14
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
15
+
16
+
17
+ ### Features
18
+
19
+ * **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
20
+ * **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
21
+
22
+
23
+
24
+
25
+
26
+ # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
27
+
28
+
29
+ ### Features
30
+
31
+ * **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
32
+
33
+
34
+
35
+
36
+
37
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
38
+
39
+
40
+ ### Bug Fixes
41
+
42
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
43
+
44
+
45
+
46
+
47
+
6
48
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
49
 
8
50
 
@@ -11,12 +11,6 @@ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceComm
11
11
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
12
12
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
13
13
  const SavingsplansClient_1 = require("./SavingsplansClient");
14
- /**
15
- * <p>Savings Plans are a pricing model that offer significant savings on AWS usage (for
16
- * example, on Amazon EC2 instances). You commit to a consistent amount of usage, in USD
17
- * per hour, for a term of 1 or 3 years, and receive a lower price for that usage. For
18
- * more information, see the <a href="https://docs.aws.amazon.com/savingsplans/latest/userguide/">AWS Savings Plans User Guide</a>.</p>
19
- */
20
14
  class Savingsplans extends SavingsplansClient_1.SavingsplansClient {
21
15
  createSavingsPlan(args, optionsOrCb, cb) {
22
16
  const command = new CreateSavingsPlanCommand_1.CreateSavingsPlanCommand(args);
@@ -10,12 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
- /**
14
- * <p>Savings Plans are a pricing model that offer significant savings on AWS usage (for
15
- * example, on Amazon EC2 instances). You commit to a consistent amount of usage, in USD
16
- * per hour, for a term of 1 or 3 years, and receive a lower price for that usage. For
17
- * more information, see the <a href="https://docs.aws.amazon.com/savingsplans/latest/userguide/">AWS Savings Plans User Guide</a>.</p>
18
- */
19
13
  class SavingsplansClient extends smithy_client_1.Client {
20
14
  constructor(configuration) {
21
15
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -34,11 +28,6 @@ class SavingsplansClient extends smithy_client_1.Client {
34
28
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
35
29
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
36
30
  }
37
- /**
38
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
39
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
40
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
41
- */
42
31
  destroy() {
43
32
  super.destroy();
44
33
  }
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Creates a Savings Plan.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SavingsplansClient, CreateSavingsPlanCommand } from "@aws-sdk/client-savingsplans"; // ES Modules import
14
- * // const { SavingsplansClient, CreateSavingsPlanCommand } = require("@aws-sdk/client-savingsplans"); // CommonJS import
15
- * const client = new SavingsplansClient(config);
16
- * const command = new CreateSavingsPlanCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link CreateSavingsPlanCommandInput} for command's `input` shape.
21
- * @see {@link CreateSavingsPlanCommandOutput} for command's `response` shape.
22
- * @see {@link SavingsplansClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class CreateSavingsPlanCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Deletes the queued purchase for the specified Savings Plan.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SavingsplansClient, DeleteQueuedSavingsPlanCommand } from "@aws-sdk/client-savingsplans"; // ES Modules import
14
- * // const { SavingsplansClient, DeleteQueuedSavingsPlanCommand } = require("@aws-sdk/client-savingsplans"); // CommonJS import
15
- * const client = new SavingsplansClient(config);
16
- * const command = new DeleteQueuedSavingsPlanCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DeleteQueuedSavingsPlanCommandInput} for command's `input` shape.
21
- * @see {@link DeleteQueuedSavingsPlanCommandOutput} for command's `response` shape.
22
- * @see {@link SavingsplansClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DeleteQueuedSavingsPlanCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Describes the specified Savings Plans rates.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SavingsplansClient, DescribeSavingsPlanRatesCommand } from "@aws-sdk/client-savingsplans"; // ES Modules import
14
- * // const { SavingsplansClient, DescribeSavingsPlanRatesCommand } = require("@aws-sdk/client-savingsplans"); // CommonJS import
15
- * const client = new SavingsplansClient(config);
16
- * const command = new DescribeSavingsPlanRatesCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DescribeSavingsPlanRatesCommandInput} for command's `input` shape.
21
- * @see {@link DescribeSavingsPlanRatesCommandOutput} for command's `response` shape.
22
- * @see {@link SavingsplansClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DescribeSavingsPlanRatesCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Describes the specified Savings Plans.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SavingsplansClient, DescribeSavingsPlansCommand } from "@aws-sdk/client-savingsplans"; // ES Modules import
14
- * // const { SavingsplansClient, DescribeSavingsPlansCommand } = require("@aws-sdk/client-savingsplans"); // CommonJS import
15
- * const client = new SavingsplansClient(config);
16
- * const command = new DescribeSavingsPlansCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DescribeSavingsPlansCommandInput} for command's `input` shape.
21
- * @see {@link DescribeSavingsPlansCommandOutput} for command's `response` shape.
22
- * @see {@link SavingsplansClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DescribeSavingsPlansCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Describes the specified Savings Plans offering rates.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SavingsplansClient, DescribeSavingsPlansOfferingRatesCommand } from "@aws-sdk/client-savingsplans"; // ES Modules import
14
- * // const { SavingsplansClient, DescribeSavingsPlansOfferingRatesCommand } = require("@aws-sdk/client-savingsplans"); // CommonJS import
15
- * const client = new SavingsplansClient(config);
16
- * const command = new DescribeSavingsPlansOfferingRatesCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DescribeSavingsPlansOfferingRatesCommandInput} for command's `input` shape.
21
- * @see {@link DescribeSavingsPlansOfferingRatesCommandOutput} for command's `response` shape.
22
- * @see {@link SavingsplansClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DescribeSavingsPlansOfferingRatesCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Describes the specified Savings Plans offerings.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SavingsplansClient, DescribeSavingsPlansOfferingsCommand } from "@aws-sdk/client-savingsplans"; // ES Modules import
14
- * // const { SavingsplansClient, DescribeSavingsPlansOfferingsCommand } = require("@aws-sdk/client-savingsplans"); // CommonJS import
15
- * const client = new SavingsplansClient(config);
16
- * const command = new DescribeSavingsPlansOfferingsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DescribeSavingsPlansOfferingsCommandInput} for command's `input` shape.
21
- * @see {@link DescribeSavingsPlansOfferingsCommandOutput} for command's `response` shape.
22
- * @see {@link SavingsplansClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DescribeSavingsPlansOfferingsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Lists the tags for the specified resource.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SavingsplansClient, ListTagsForResourceCommand } from "@aws-sdk/client-savingsplans"; // ES Modules import
14
- * // const { SavingsplansClient, ListTagsForResourceCommand } = require("@aws-sdk/client-savingsplans"); // CommonJS import
15
- * const client = new SavingsplansClient(config);
16
- * const command = new ListTagsForResourceCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
21
- * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
22
- * @see {@link SavingsplansClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ListTagsForResourceCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Adds the specified tags to the specified resource.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SavingsplansClient, TagResourceCommand } from "@aws-sdk/client-savingsplans"; // ES Modules import
14
- * // const { SavingsplansClient, TagResourceCommand } = require("@aws-sdk/client-savingsplans"); // CommonJS import
15
- * const client = new SavingsplansClient(config);
16
- * const command = new TagResourceCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link TagResourceCommandInput} for command's `input` shape.
21
- * @see {@link TagResourceCommandOutput} for command's `response` shape.
22
- * @see {@link SavingsplansClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class TagResourceCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Removes the specified tags from the specified resource.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SavingsplansClient, UntagResourceCommand } from "@aws-sdk/client-savingsplans"; // ES Modules import
14
- * // const { SavingsplansClient, UntagResourceCommand } = require("@aws-sdk/client-savingsplans"); // CommonJS import
15
- * const client = new SavingsplansClient(config);
16
- * const command = new UntagResourceCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link UntagResourceCommandInput} for command's `input` shape.
21
- * @see {@link UntagResourceCommandOutput} for command's `response` shape.
22
- * @see {@link SavingsplansClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class UntagResourceCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CreateSavingsPlanCommand"), exports);
5
+ tslib_1.__exportStar(require("./DeleteQueuedSavingsPlanCommand"), exports);
6
+ tslib_1.__exportStar(require("./DescribeSavingsPlanRatesCommand"), exports);
7
+ tslib_1.__exportStar(require("./DescribeSavingsPlansCommand"), exports);
8
+ tslib_1.__exportStar(require("./DescribeSavingsPlansOfferingRatesCommand"), exports);
9
+ tslib_1.__exportStar(require("./DescribeSavingsPlansOfferingsCommand"), exports);
10
+ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
11
+ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
12
+ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
@@ -34,22 +34,27 @@ const partitionHash = {
34
34
  "us-west-1",
35
35
  "us-west-2",
36
36
  ],
37
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
37
38
  endpoint: "aws-global",
38
39
  },
39
40
  "aws-cn": {
40
41
  regions: ["cn-north-1", "cn-northwest-1"],
42
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
41
43
  hostname: "savingsplans.{region}.amazonaws.com.cn",
42
44
  },
43
45
  "aws-iso": {
44
- regions: ["us-iso-east-1"],
46
+ regions: ["us-iso-east-1", "us-iso-west-1"],
47
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
45
48
  hostname: "savingsplans.{region}.c2s.ic.gov",
46
49
  },
47
50
  "aws-iso-b": {
48
51
  regions: ["us-isob-east-1"],
52
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
49
53
  hostname: "savingsplans.{region}.sc2s.sgov.gov",
50
54
  },
51
55
  "aws-us-gov": {
52
56
  regions: ["us-gov-east-1", "us-gov-west-1"],
57
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
53
58
  hostname: "savingsplans.{region}.amazonaws.com",
54
59
  },
55
60
  };
package/dist-cjs/index.js CHANGED
@@ -1,15 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./SavingsplansClient"), exports);
5
4
  tslib_1.__exportStar(require("./Savingsplans"), exports);
6
- tslib_1.__exportStar(require("./commands/CreateSavingsPlanCommand"), exports);
7
- tslib_1.__exportStar(require("./commands/DeleteQueuedSavingsPlanCommand"), exports);
8
- tslib_1.__exportStar(require("./commands/DescribeSavingsPlanRatesCommand"), exports);
9
- tslib_1.__exportStar(require("./commands/DescribeSavingsPlansCommand"), exports);
10
- tslib_1.__exportStar(require("./commands/DescribeSavingsPlansOfferingRatesCommand"), exports);
11
- tslib_1.__exportStar(require("./commands/DescribeSavingsPlansOfferingsCommand"), exports);
12
- tslib_1.__exportStar(require("./commands/ListTagsForResourceCommand"), exports);
13
- tslib_1.__exportStar(require("./commands/TagResourceCommand"), exports);
14
- tslib_1.__exportStar(require("./commands/UntagResourceCommand"), exports);
15
- tslib_1.__exportStar(require("./models/index"), exports);
5
+ tslib_1.__exportStar(require("./SavingsplansClient"), exports);
6
+ tslib_1.__exportStar(require("./commands"), exports);
7
+ tslib_1.__exportStar(require("./models"), exports);