@aws-sdk/client-savingsplans 3.54.1 → 3.58.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.
- package/CHANGELOG.md +24 -0
- package/dist-cjs/SavingsplansClient.js +13 -13
- package/dist-cjs/commands/CreateSavingsPlanCommand.js +3 -3
- package/dist-cjs/commands/DeleteQueuedSavingsPlanCommand.js +3 -3
- package/dist-cjs/commands/DescribeSavingsPlanRatesCommand.js +3 -3
- package/dist-cjs/commands/DescribeSavingsPlansCommand.js +3 -3
- package/dist-cjs/commands/DescribeSavingsPlansOfferingRatesCommand.js +3 -3
- package/dist-cjs/commands/DescribeSavingsPlansOfferingsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +82 -82
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Savingsplans.js +9 -9
- package/dist-es/protocols/Aws_restJson1.js +9 -9
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
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.58.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.57.0...v3.58.0) (2022-03-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-savingsplans
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.56.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.55.0...v3.56.0) (2022-03-24)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-savingsplans
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/client-savingsplans
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @aws-sdk/client-savingsplans
|
|
@@ -12,21 +12,21 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
13
|
class SavingsplansClient extends smithy_client_1.Client {
|
|
14
14
|
constructor(configuration) {
|
|
15
|
-
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
16
|
-
const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
|
|
17
|
-
const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
|
|
18
|
-
const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
|
|
19
|
-
const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
|
|
20
|
-
const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
|
|
21
|
-
const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
|
|
15
|
+
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
|
|
16
|
+
const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
|
|
17
|
+
const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
|
|
18
|
+
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
19
|
+
const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
|
|
20
|
+
const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4);
|
|
21
|
+
const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
|
|
22
22
|
super(_config_6);
|
|
23
23
|
this.config = _config_6;
|
|
24
|
-
this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
|
|
25
|
-
this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
|
|
26
|
-
this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
|
|
27
|
-
this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
|
|
28
|
-
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
29
|
-
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
25
|
+
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
26
|
+
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
27
|
+
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
28
|
+
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
29
|
+
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
30
30
|
}
|
|
31
31
|
destroy() {
|
|
32
32
|
super.destroy();
|
|
@@ -11,7 +11,7 @@ class CreateSavingsPlanCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "SavingsplansClient";
|
|
@@ -27,10 +27,10 @@ class CreateSavingsPlanCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1CreateSavingsPlanCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CreateSavingsPlanCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1CreateSavingsPlanCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CreateSavingsPlanCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.CreateSavingsPlanCommand = CreateSavingsPlanCommand;
|
|
@@ -11,7 +11,7 @@ class DeleteQueuedSavingsPlanCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "SavingsplansClient";
|
|
@@ -27,10 +27,10 @@ class DeleteQueuedSavingsPlanCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1DeleteQueuedSavingsPlanCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeleteQueuedSavingsPlanCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1DeleteQueuedSavingsPlanCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteQueuedSavingsPlanCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.DeleteQueuedSavingsPlanCommand = DeleteQueuedSavingsPlanCommand;
|
|
@@ -11,7 +11,7 @@ class DescribeSavingsPlanRatesCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "SavingsplansClient";
|
|
@@ -27,10 +27,10 @@ class DescribeSavingsPlanRatesCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1DescribeSavingsPlanRatesCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DescribeSavingsPlanRatesCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1DescribeSavingsPlanRatesCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DescribeSavingsPlanRatesCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.DescribeSavingsPlanRatesCommand = DescribeSavingsPlanRatesCommand;
|
|
@@ -11,7 +11,7 @@ class DescribeSavingsPlansCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "SavingsplansClient";
|
|
@@ -27,10 +27,10 @@ class DescribeSavingsPlansCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1DescribeSavingsPlansCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DescribeSavingsPlansCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1DescribeSavingsPlansCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DescribeSavingsPlansCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.DescribeSavingsPlansCommand = DescribeSavingsPlansCommand;
|
|
@@ -11,7 +11,7 @@ class DescribeSavingsPlansOfferingRatesCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "SavingsplansClient";
|
|
@@ -27,10 +27,10 @@ class DescribeSavingsPlansOfferingRatesCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.DescribeSavingsPlansOfferingRatesCommand = DescribeSavingsPlansOfferingRatesCommand;
|
|
@@ -11,7 +11,7 @@ class DescribeSavingsPlansOfferingsCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "SavingsplansClient";
|
|
@@ -27,10 +27,10 @@ class DescribeSavingsPlansOfferingsCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1DescribeSavingsPlansOfferingsCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DescribeSavingsPlansOfferingsCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1DescribeSavingsPlansOfferingsCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DescribeSavingsPlansOfferingsCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.DescribeSavingsPlansOfferingsCommand = DescribeSavingsPlansOfferingsCommand;
|
|
@@ -11,7 +11,7 @@ class ListTagsForResourceCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "SavingsplansClient";
|
|
@@ -27,10 +27,10 @@ class ListTagsForResourceCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1ListTagsForResourceCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListTagsForResourceCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1ListTagsForResourceCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListTagsForResourceCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
@@ -11,7 +11,7 @@ class TagResourceCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "SavingsplansClient";
|
|
@@ -27,10 +27,10 @@ class TagResourceCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1TagResourceCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1TagResourceCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1TagResourceCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1TagResourceCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.TagResourceCommand = TagResourceCommand;
|
|
@@ -11,7 +11,7 @@ class UntagResourceCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "SavingsplansClient";
|
|
@@ -27,10 +27,10 @@ class UntagResourceCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1UntagResourceCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1UntagResourceCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1UntagResourceCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1UntagResourceCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.UntagResourceCommand = UntagResourceCommand;
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -134,7 +134,7 @@ const partitionHash = {
|
|
|
134
134
|
],
|
|
135
135
|
},
|
|
136
136
|
};
|
|
137
|
-
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
|
137
|
+
const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
|
|
138
138
|
...options,
|
|
139
139
|
signingService: "savingsplans",
|
|
140
140
|
regionHash,
|
|
@@ -15,7 +15,7 @@ const serializeAws_restJson1CreateSavingsPlanCommand = async (input, context) =>
|
|
|
15
15
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateSavingsPlan";
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify({
|
|
18
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
18
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
19
19
|
...(input.commitment !== undefined && input.commitment !== null && { commitment: input.commitment }),
|
|
20
20
|
...(input.purchaseTime !== undefined &&
|
|
21
21
|
input.purchaseTime !== null && { purchaseTime: Math.round(input.purchaseTime.getTime() / 1000) }),
|
|
@@ -299,9 +299,9 @@ const deserializeAws_restJson1CreateSavingsPlanCommand = async (output, context)
|
|
|
299
299
|
$metadata: deserializeMetadata(output),
|
|
300
300
|
savingsPlanId: undefined,
|
|
301
301
|
};
|
|
302
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
302
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
303
303
|
if (data.savingsPlanId !== undefined && data.savingsPlanId !== null) {
|
|
304
|
-
contents.savingsPlanId = smithy_client_1.expectString(data.savingsPlanId);
|
|
304
|
+
contents.savingsPlanId = (0, smithy_client_1.expectString)(data.savingsPlanId);
|
|
305
305
|
}
|
|
306
306
|
return Promise.resolve(contents);
|
|
307
307
|
};
|
|
@@ -334,7 +334,7 @@ const deserializeAws_restJson1CreateSavingsPlanCommandError = async (output, con
|
|
|
334
334
|
$fault: "client",
|
|
335
335
|
$metadata: deserializeMetadata(output),
|
|
336
336
|
});
|
|
337
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
337
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
338
338
|
}
|
|
339
339
|
};
|
|
340
340
|
const deserializeAws_restJson1DeleteQueuedSavingsPlanCommand = async (output, context) => {
|
|
@@ -376,7 +376,7 @@ const deserializeAws_restJson1DeleteQueuedSavingsPlanCommandError = async (outpu
|
|
|
376
376
|
$fault: "client",
|
|
377
377
|
$metadata: deserializeMetadata(output),
|
|
378
378
|
});
|
|
379
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
379
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
380
380
|
}
|
|
381
381
|
};
|
|
382
382
|
const deserializeAws_restJson1DescribeSavingsPlanRatesCommand = async (output, context) => {
|
|
@@ -389,12 +389,12 @@ const deserializeAws_restJson1DescribeSavingsPlanRatesCommand = async (output, c
|
|
|
389
389
|
savingsPlanId: undefined,
|
|
390
390
|
searchResults: undefined,
|
|
391
391
|
};
|
|
392
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
392
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
393
393
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
394
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
394
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
395
395
|
}
|
|
396
396
|
if (data.savingsPlanId !== undefined && data.savingsPlanId !== null) {
|
|
397
|
-
contents.savingsPlanId = smithy_client_1.expectString(data.savingsPlanId);
|
|
397
|
+
contents.savingsPlanId = (0, smithy_client_1.expectString)(data.savingsPlanId);
|
|
398
398
|
}
|
|
399
399
|
if (data.searchResults !== undefined && data.searchResults !== null) {
|
|
400
400
|
contents.searchResults = deserializeAws_restJson1SavingsPlanRateList(data.searchResults, context);
|
|
@@ -424,7 +424,7 @@ const deserializeAws_restJson1DescribeSavingsPlanRatesCommandError = async (outp
|
|
|
424
424
|
$fault: "client",
|
|
425
425
|
$metadata: deserializeMetadata(output),
|
|
426
426
|
});
|
|
427
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
427
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
430
|
const deserializeAws_restJson1DescribeSavingsPlansCommand = async (output, context) => {
|
|
@@ -436,9 +436,9 @@ const deserializeAws_restJson1DescribeSavingsPlansCommand = async (output, conte
|
|
|
436
436
|
nextToken: undefined,
|
|
437
437
|
savingsPlans: undefined,
|
|
438
438
|
};
|
|
439
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
439
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
440
440
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
441
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
441
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
442
442
|
}
|
|
443
443
|
if (data.savingsPlans !== undefined && data.savingsPlans !== null) {
|
|
444
444
|
contents.savingsPlans = deserializeAws_restJson1SavingsPlanList(data.savingsPlans, context);
|
|
@@ -468,7 +468,7 @@ const deserializeAws_restJson1DescribeSavingsPlansCommandError = async (output,
|
|
|
468
468
|
$fault: "client",
|
|
469
469
|
$metadata: deserializeMetadata(output),
|
|
470
470
|
});
|
|
471
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
471
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
472
472
|
}
|
|
473
473
|
};
|
|
474
474
|
const deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand = async (output, context) => {
|
|
@@ -480,9 +480,9 @@ const deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand = async (
|
|
|
480
480
|
nextToken: undefined,
|
|
481
481
|
searchResults: undefined,
|
|
482
482
|
};
|
|
483
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
483
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
484
484
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
485
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
485
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
486
486
|
}
|
|
487
487
|
if (data.searchResults !== undefined && data.searchResults !== null) {
|
|
488
488
|
contents.searchResults = deserializeAws_restJson1SavingsPlanOfferingRatesList(data.searchResults, context);
|
|
@@ -512,7 +512,7 @@ const deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommandError = as
|
|
|
512
512
|
$fault: "client",
|
|
513
513
|
$metadata: deserializeMetadata(output),
|
|
514
514
|
});
|
|
515
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
515
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
518
|
const deserializeAws_restJson1DescribeSavingsPlansOfferingsCommand = async (output, context) => {
|
|
@@ -524,9 +524,9 @@ const deserializeAws_restJson1DescribeSavingsPlansOfferingsCommand = async (outp
|
|
|
524
524
|
nextToken: undefined,
|
|
525
525
|
searchResults: undefined,
|
|
526
526
|
};
|
|
527
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
527
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
528
528
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
529
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
529
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
530
530
|
}
|
|
531
531
|
if (data.searchResults !== undefined && data.searchResults !== null) {
|
|
532
532
|
contents.searchResults = deserializeAws_restJson1SavingsPlanOfferingsList(data.searchResults, context);
|
|
@@ -556,7 +556,7 @@ const deserializeAws_restJson1DescribeSavingsPlansOfferingsCommandError = async
|
|
|
556
556
|
$fault: "client",
|
|
557
557
|
$metadata: deserializeMetadata(output),
|
|
558
558
|
});
|
|
559
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
559
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
560
560
|
}
|
|
561
561
|
};
|
|
562
562
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -567,7 +567,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
567
567
|
$metadata: deserializeMetadata(output),
|
|
568
568
|
tags: undefined,
|
|
569
569
|
};
|
|
570
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
570
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
571
571
|
if (data.tags !== undefined && data.tags !== null) {
|
|
572
572
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
573
573
|
}
|
|
@@ -599,7 +599,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
599
599
|
$fault: "client",
|
|
600
600
|
$metadata: deserializeMetadata(output),
|
|
601
601
|
});
|
|
602
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
602
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
603
603
|
}
|
|
604
604
|
};
|
|
605
605
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -641,7 +641,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
641
641
|
$fault: "client",
|
|
642
642
|
$metadata: deserializeMetadata(output),
|
|
643
643
|
});
|
|
644
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
644
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
645
645
|
}
|
|
646
646
|
};
|
|
647
647
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -680,56 +680,56 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
680
680
|
$fault: "client",
|
|
681
681
|
$metadata: deserializeMetadata(output),
|
|
682
682
|
});
|
|
683
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
683
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
684
684
|
}
|
|
685
685
|
};
|
|
686
686
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
687
687
|
const contents = {};
|
|
688
688
|
const data = parsedOutput.body;
|
|
689
689
|
if (data.message !== undefined && data.message !== null) {
|
|
690
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
690
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
691
691
|
}
|
|
692
692
|
const exception = new models_0_1.InternalServerException({
|
|
693
693
|
$metadata: deserializeMetadata(parsedOutput),
|
|
694
694
|
...contents,
|
|
695
695
|
});
|
|
696
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
696
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
697
697
|
};
|
|
698
698
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
699
699
|
const contents = {};
|
|
700
700
|
const data = parsedOutput.body;
|
|
701
701
|
if (data.message !== undefined && data.message !== null) {
|
|
702
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
702
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
703
703
|
}
|
|
704
704
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
705
705
|
$metadata: deserializeMetadata(parsedOutput),
|
|
706
706
|
...contents,
|
|
707
707
|
});
|
|
708
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
708
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
709
709
|
};
|
|
710
710
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
711
711
|
const contents = {};
|
|
712
712
|
const data = parsedOutput.body;
|
|
713
713
|
if (data.message !== undefined && data.message !== null) {
|
|
714
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
714
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
715
715
|
}
|
|
716
716
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
717
717
|
$metadata: deserializeMetadata(parsedOutput),
|
|
718
718
|
...contents,
|
|
719
719
|
});
|
|
720
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
720
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
721
721
|
};
|
|
722
722
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
723
723
|
const contents = {};
|
|
724
724
|
const data = parsedOutput.body;
|
|
725
725
|
if (data.message !== undefined && data.message !== null) {
|
|
726
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
726
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
727
727
|
}
|
|
728
728
|
const exception = new models_0_1.ValidationException({
|
|
729
729
|
$metadata: deserializeMetadata(parsedOutput),
|
|
730
730
|
...contents,
|
|
731
731
|
});
|
|
732
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
732
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
733
733
|
};
|
|
734
734
|
const serializeAws_restJson1CurrencyList = (input, context) => {
|
|
735
735
|
return input
|
|
@@ -1002,38 +1002,38 @@ const serializeAws_restJson1UUIDs = (input, context) => {
|
|
|
1002
1002
|
};
|
|
1003
1003
|
const deserializeAws_restJson1ParentSavingsPlanOffering = (output, context) => {
|
|
1004
1004
|
return {
|
|
1005
|
-
currency: smithy_client_1.expectString(output.currency),
|
|
1006
|
-
durationSeconds: smithy_client_1.expectLong(output.durationSeconds),
|
|
1007
|
-
offeringId: smithy_client_1.expectString(output.offeringId),
|
|
1008
|
-
paymentOption: smithy_client_1.expectString(output.paymentOption),
|
|
1009
|
-
planDescription: smithy_client_1.expectString(output.planDescription),
|
|
1010
|
-
planType: smithy_client_1.expectString(output.planType),
|
|
1005
|
+
currency: (0, smithy_client_1.expectString)(output.currency),
|
|
1006
|
+
durationSeconds: (0, smithy_client_1.expectLong)(output.durationSeconds),
|
|
1007
|
+
offeringId: (0, smithy_client_1.expectString)(output.offeringId),
|
|
1008
|
+
paymentOption: (0, smithy_client_1.expectString)(output.paymentOption),
|
|
1009
|
+
planDescription: (0, smithy_client_1.expectString)(output.planDescription),
|
|
1010
|
+
planType: (0, smithy_client_1.expectString)(output.planType),
|
|
1011
1011
|
};
|
|
1012
1012
|
};
|
|
1013
1013
|
const deserializeAws_restJson1SavingsPlan = (output, context) => {
|
|
1014
1014
|
return {
|
|
1015
|
-
commitment: smithy_client_1.expectString(output.commitment),
|
|
1016
|
-
currency: smithy_client_1.expectString(output.currency),
|
|
1017
|
-
description: smithy_client_1.expectString(output.description),
|
|
1018
|
-
ec2InstanceFamily: smithy_client_1.expectString(output.ec2InstanceFamily),
|
|
1019
|
-
end: smithy_client_1.expectString(output.end),
|
|
1020
|
-
offeringId: smithy_client_1.expectString(output.offeringId),
|
|
1021
|
-
paymentOption: smithy_client_1.expectString(output.paymentOption),
|
|
1015
|
+
commitment: (0, smithy_client_1.expectString)(output.commitment),
|
|
1016
|
+
currency: (0, smithy_client_1.expectString)(output.currency),
|
|
1017
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1018
|
+
ec2InstanceFamily: (0, smithy_client_1.expectString)(output.ec2InstanceFamily),
|
|
1019
|
+
end: (0, smithy_client_1.expectString)(output.end),
|
|
1020
|
+
offeringId: (0, smithy_client_1.expectString)(output.offeringId),
|
|
1021
|
+
paymentOption: (0, smithy_client_1.expectString)(output.paymentOption),
|
|
1022
1022
|
productTypes: output.productTypes !== undefined && output.productTypes !== null
|
|
1023
1023
|
? deserializeAws_restJson1SavingsPlanProductTypeList(output.productTypes, context)
|
|
1024
1024
|
: undefined,
|
|
1025
|
-
recurringPaymentAmount: smithy_client_1.expectString(output.recurringPaymentAmount),
|
|
1026
|
-
region: smithy_client_1.expectString(output.region),
|
|
1027
|
-
savingsPlanArn: smithy_client_1.expectString(output.savingsPlanArn),
|
|
1028
|
-
savingsPlanId: smithy_client_1.expectString(output.savingsPlanId),
|
|
1029
|
-
savingsPlanType: smithy_client_1.expectString(output.savingsPlanType),
|
|
1030
|
-
start: smithy_client_1.expectString(output.start),
|
|
1031
|
-
state: smithy_client_1.expectString(output.state),
|
|
1025
|
+
recurringPaymentAmount: (0, smithy_client_1.expectString)(output.recurringPaymentAmount),
|
|
1026
|
+
region: (0, smithy_client_1.expectString)(output.region),
|
|
1027
|
+
savingsPlanArn: (0, smithy_client_1.expectString)(output.savingsPlanArn),
|
|
1028
|
+
savingsPlanId: (0, smithy_client_1.expectString)(output.savingsPlanId),
|
|
1029
|
+
savingsPlanType: (0, smithy_client_1.expectString)(output.savingsPlanType),
|
|
1030
|
+
start: (0, smithy_client_1.expectString)(output.start),
|
|
1031
|
+
state: (0, smithy_client_1.expectString)(output.state),
|
|
1032
1032
|
tags: output.tags !== undefined && output.tags !== null
|
|
1033
1033
|
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
1034
1034
|
: undefined,
|
|
1035
|
-
termDurationInSeconds: smithy_client_1.expectLong(output.termDurationInSeconds),
|
|
1036
|
-
upfrontPaymentAmount: smithy_client_1.expectString(output.upfrontPaymentAmount),
|
|
1035
|
+
termDurationInSeconds: (0, smithy_client_1.expectLong)(output.termDurationInSeconds),
|
|
1036
|
+
upfrontPaymentAmount: (0, smithy_client_1.expectString)(output.upfrontPaymentAmount),
|
|
1037
1037
|
};
|
|
1038
1038
|
};
|
|
1039
1039
|
const deserializeAws_restJson1SavingsPlanList = (output, context) => {
|
|
@@ -1049,27 +1049,27 @@ const deserializeAws_restJson1SavingsPlanList = (output, context) => {
|
|
|
1049
1049
|
};
|
|
1050
1050
|
const deserializeAws_restJson1SavingsPlanOffering = (output, context) => {
|
|
1051
1051
|
return {
|
|
1052
|
-
currency: smithy_client_1.expectString(output.currency),
|
|
1053
|
-
description: smithy_client_1.expectString(output.description),
|
|
1054
|
-
durationSeconds: smithy_client_1.expectLong(output.durationSeconds),
|
|
1055
|
-
offeringId: smithy_client_1.expectString(output.offeringId),
|
|
1056
|
-
operation: smithy_client_1.expectString(output.operation),
|
|
1057
|
-
paymentOption: smithy_client_1.expectString(output.paymentOption),
|
|
1058
|
-
planType: smithy_client_1.expectString(output.planType),
|
|
1052
|
+
currency: (0, smithy_client_1.expectString)(output.currency),
|
|
1053
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1054
|
+
durationSeconds: (0, smithy_client_1.expectLong)(output.durationSeconds),
|
|
1055
|
+
offeringId: (0, smithy_client_1.expectString)(output.offeringId),
|
|
1056
|
+
operation: (0, smithy_client_1.expectString)(output.operation),
|
|
1057
|
+
paymentOption: (0, smithy_client_1.expectString)(output.paymentOption),
|
|
1058
|
+
planType: (0, smithy_client_1.expectString)(output.planType),
|
|
1059
1059
|
productTypes: output.productTypes !== undefined && output.productTypes !== null
|
|
1060
1060
|
? deserializeAws_restJson1SavingsPlanProductTypeList(output.productTypes, context)
|
|
1061
1061
|
: undefined,
|
|
1062
1062
|
properties: output.properties !== undefined && output.properties !== null
|
|
1063
1063
|
? deserializeAws_restJson1SavingsPlanOfferingPropertyList(output.properties, context)
|
|
1064
1064
|
: undefined,
|
|
1065
|
-
serviceCode: smithy_client_1.expectString(output.serviceCode),
|
|
1066
|
-
usageType: smithy_client_1.expectString(output.usageType),
|
|
1065
|
+
serviceCode: (0, smithy_client_1.expectString)(output.serviceCode),
|
|
1066
|
+
usageType: (0, smithy_client_1.expectString)(output.usageType),
|
|
1067
1067
|
};
|
|
1068
1068
|
};
|
|
1069
1069
|
const deserializeAws_restJson1SavingsPlanOfferingProperty = (output, context) => {
|
|
1070
1070
|
return {
|
|
1071
|
-
name: smithy_client_1.expectString(output.name),
|
|
1072
|
-
value: smithy_client_1.expectString(output.value),
|
|
1071
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1072
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
1073
1073
|
};
|
|
1074
1074
|
};
|
|
1075
1075
|
const deserializeAws_restJson1SavingsPlanOfferingPropertyList = (output, context) => {
|
|
@@ -1085,24 +1085,24 @@ const deserializeAws_restJson1SavingsPlanOfferingPropertyList = (output, context
|
|
|
1085
1085
|
};
|
|
1086
1086
|
const deserializeAws_restJson1SavingsPlanOfferingRate = (output, context) => {
|
|
1087
1087
|
return {
|
|
1088
|
-
operation: smithy_client_1.expectString(output.operation),
|
|
1089
|
-
productType: smithy_client_1.expectString(output.productType),
|
|
1088
|
+
operation: (0, smithy_client_1.expectString)(output.operation),
|
|
1089
|
+
productType: (0, smithy_client_1.expectString)(output.productType),
|
|
1090
1090
|
properties: output.properties !== undefined && output.properties !== null
|
|
1091
1091
|
? deserializeAws_restJson1SavingsPlanOfferingRatePropertyList(output.properties, context)
|
|
1092
1092
|
: undefined,
|
|
1093
|
-
rate: smithy_client_1.expectString(output.rate),
|
|
1093
|
+
rate: (0, smithy_client_1.expectString)(output.rate),
|
|
1094
1094
|
savingsPlanOffering: output.savingsPlanOffering !== undefined && output.savingsPlanOffering !== null
|
|
1095
1095
|
? deserializeAws_restJson1ParentSavingsPlanOffering(output.savingsPlanOffering, context)
|
|
1096
1096
|
: undefined,
|
|
1097
|
-
serviceCode: smithy_client_1.expectString(output.serviceCode),
|
|
1098
|
-
unit: smithy_client_1.expectString(output.unit),
|
|
1099
|
-
usageType: smithy_client_1.expectString(output.usageType),
|
|
1097
|
+
serviceCode: (0, smithy_client_1.expectString)(output.serviceCode),
|
|
1098
|
+
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
1099
|
+
usageType: (0, smithy_client_1.expectString)(output.usageType),
|
|
1100
1100
|
};
|
|
1101
1101
|
};
|
|
1102
1102
|
const deserializeAws_restJson1SavingsPlanOfferingRateProperty = (output, context) => {
|
|
1103
1103
|
return {
|
|
1104
|
-
name: smithy_client_1.expectString(output.name),
|
|
1105
|
-
value: smithy_client_1.expectString(output.value),
|
|
1104
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1105
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
1106
1106
|
};
|
|
1107
1107
|
};
|
|
1108
1108
|
const deserializeAws_restJson1SavingsPlanOfferingRatePropertyList = (output, context) => {
|
|
@@ -1145,22 +1145,22 @@ const deserializeAws_restJson1SavingsPlanProductTypeList = (output, context) =>
|
|
|
1145
1145
|
if (entry === null) {
|
|
1146
1146
|
return null;
|
|
1147
1147
|
}
|
|
1148
|
-
return smithy_client_1.expectString(entry);
|
|
1148
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1149
1149
|
});
|
|
1150
1150
|
return retVal;
|
|
1151
1151
|
};
|
|
1152
1152
|
const deserializeAws_restJson1SavingsPlanRate = (output, context) => {
|
|
1153
1153
|
return {
|
|
1154
|
-
currency: smithy_client_1.expectString(output.currency),
|
|
1155
|
-
operation: smithy_client_1.expectString(output.operation),
|
|
1156
|
-
productType: smithy_client_1.expectString(output.productType),
|
|
1154
|
+
currency: (0, smithy_client_1.expectString)(output.currency),
|
|
1155
|
+
operation: (0, smithy_client_1.expectString)(output.operation),
|
|
1156
|
+
productType: (0, smithy_client_1.expectString)(output.productType),
|
|
1157
1157
|
properties: output.properties !== undefined && output.properties !== null
|
|
1158
1158
|
? deserializeAws_restJson1SavingsPlanRatePropertyList(output.properties, context)
|
|
1159
1159
|
: undefined,
|
|
1160
|
-
rate: smithy_client_1.expectString(output.rate),
|
|
1161
|
-
serviceCode: smithy_client_1.expectString(output.serviceCode),
|
|
1162
|
-
unit: smithy_client_1.expectString(output.unit),
|
|
1163
|
-
usageType: smithy_client_1.expectString(output.usageType),
|
|
1160
|
+
rate: (0, smithy_client_1.expectString)(output.rate),
|
|
1161
|
+
serviceCode: (0, smithy_client_1.expectString)(output.serviceCode),
|
|
1162
|
+
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
1163
|
+
usageType: (0, smithy_client_1.expectString)(output.usageType),
|
|
1164
1164
|
};
|
|
1165
1165
|
};
|
|
1166
1166
|
const deserializeAws_restJson1SavingsPlanRateList = (output, context) => {
|
|
@@ -1176,8 +1176,8 @@ const deserializeAws_restJson1SavingsPlanRateList = (output, context) => {
|
|
|
1176
1176
|
};
|
|
1177
1177
|
const deserializeAws_restJson1SavingsPlanRateProperty = (output, context) => {
|
|
1178
1178
|
return {
|
|
1179
|
-
name: smithy_client_1.expectString(output.name),
|
|
1180
|
-
value: smithy_client_1.expectString(output.value),
|
|
1179
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1180
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
1181
1181
|
};
|
|
1182
1182
|
};
|
|
1183
1183
|
const deserializeAws_restJson1SavingsPlanRatePropertyList = (output, context) => {
|
|
@@ -1198,7 +1198,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
return {
|
|
1200
1200
|
...acc,
|
|
1201
|
-
[key]: smithy_client_1.expectString(value),
|
|
1201
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1202
1202
|
};
|
|
1203
1203
|
}, {});
|
|
1204
1204
|
};
|
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|
package/dist-es/Savingsplans.js
CHANGED
|
@@ -21,7 +21,7 @@ var Savingsplans = (function (_super) {
|
|
|
21
21
|
}
|
|
22
22
|
else if (typeof cb === "function") {
|
|
23
23
|
if (typeof optionsOrCb !== "object")
|
|
24
|
-
throw new Error("Expect http options but get "
|
|
24
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
25
25
|
this.send(command, optionsOrCb || {}, cb);
|
|
26
26
|
}
|
|
27
27
|
else {
|
|
@@ -35,7 +35,7 @@ var Savingsplans = (function (_super) {
|
|
|
35
35
|
}
|
|
36
36
|
else if (typeof cb === "function") {
|
|
37
37
|
if (typeof optionsOrCb !== "object")
|
|
38
|
-
throw new Error("Expect http options but get "
|
|
38
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
39
39
|
this.send(command, optionsOrCb || {}, cb);
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
@@ -49,7 +49,7 @@ var Savingsplans = (function (_super) {
|
|
|
49
49
|
}
|
|
50
50
|
else if (typeof cb === "function") {
|
|
51
51
|
if (typeof optionsOrCb !== "object")
|
|
52
|
-
throw new Error("Expect http options but get "
|
|
52
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
53
53
|
this.send(command, optionsOrCb || {}, cb);
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
@@ -63,7 +63,7 @@ var Savingsplans = (function (_super) {
|
|
|
63
63
|
}
|
|
64
64
|
else if (typeof cb === "function") {
|
|
65
65
|
if (typeof optionsOrCb !== "object")
|
|
66
|
-
throw new Error("Expect http options but get "
|
|
66
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
67
67
|
this.send(command, optionsOrCb || {}, cb);
|
|
68
68
|
}
|
|
69
69
|
else {
|
|
@@ -77,7 +77,7 @@ var Savingsplans = (function (_super) {
|
|
|
77
77
|
}
|
|
78
78
|
else if (typeof cb === "function") {
|
|
79
79
|
if (typeof optionsOrCb !== "object")
|
|
80
|
-
throw new Error("Expect http options but get "
|
|
80
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
81
81
|
this.send(command, optionsOrCb || {}, cb);
|
|
82
82
|
}
|
|
83
83
|
else {
|
|
@@ -91,7 +91,7 @@ var Savingsplans = (function (_super) {
|
|
|
91
91
|
}
|
|
92
92
|
else if (typeof cb === "function") {
|
|
93
93
|
if (typeof optionsOrCb !== "object")
|
|
94
|
-
throw new Error("Expect http options but get "
|
|
94
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
95
95
|
this.send(command, optionsOrCb || {}, cb);
|
|
96
96
|
}
|
|
97
97
|
else {
|
|
@@ -105,7 +105,7 @@ var Savingsplans = (function (_super) {
|
|
|
105
105
|
}
|
|
106
106
|
else if (typeof cb === "function") {
|
|
107
107
|
if (typeof optionsOrCb !== "object")
|
|
108
|
-
throw new Error("Expect http options but get "
|
|
108
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
109
109
|
this.send(command, optionsOrCb || {}, cb);
|
|
110
110
|
}
|
|
111
111
|
else {
|
|
@@ -119,7 +119,7 @@ var Savingsplans = (function (_super) {
|
|
|
119
119
|
}
|
|
120
120
|
else if (typeof cb === "function") {
|
|
121
121
|
if (typeof optionsOrCb !== "object")
|
|
122
|
-
throw new Error("Expect http options but get "
|
|
122
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
123
123
|
this.send(command, optionsOrCb || {}, cb);
|
|
124
124
|
}
|
|
125
125
|
else {
|
|
@@ -133,7 +133,7 @@ var Savingsplans = (function (_super) {
|
|
|
133
133
|
}
|
|
134
134
|
else if (typeof cb === "function") {
|
|
135
135
|
if (typeof optionsOrCb !== "object")
|
|
136
|
-
throw new Error("Expect http options but get "
|
|
136
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
137
137
|
this.send(command, optionsOrCb || {}, cb);
|
|
138
138
|
}
|
|
139
139
|
else {
|
|
@@ -15,7 +15,7 @@ export var serializeAws_restJson1CreateSavingsPlanCommand = function (input, con
|
|
|
15
15
|
headers = {
|
|
16
16
|
"content-type": "application/json",
|
|
17
17
|
};
|
|
18
|
-
resolvedPath = ""
|
|
18
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateSavingsPlan";
|
|
19
19
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.commitment !== undefined && input.commitment !== null && { commitment: input.commitment })), (input.purchaseTime !== undefined &&
|
|
20
20
|
input.purchaseTime !== null && { purchaseTime: Math.round(input.purchaseTime.getTime() / 1000) })), (input.savingsPlanOfferingId !== undefined &&
|
|
21
21
|
input.savingsPlanOfferingId !== null && { savingsPlanOfferingId: input.savingsPlanOfferingId })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.upfrontPaymentAmount !== undefined &&
|
|
@@ -42,7 +42,7 @@ export var serializeAws_restJson1DeleteQueuedSavingsPlanCommand = function (inpu
|
|
|
42
42
|
headers = {
|
|
43
43
|
"content-type": "application/json",
|
|
44
44
|
};
|
|
45
|
-
resolvedPath = ""
|
|
45
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteQueuedSavingsPlan";
|
|
46
46
|
body = JSON.stringify(__assign({}, (input.savingsPlanId !== undefined && input.savingsPlanId !== null && { savingsPlanId: input.savingsPlanId })));
|
|
47
47
|
return [2, new __HttpRequest({
|
|
48
48
|
protocol: protocol,
|
|
@@ -66,7 +66,7 @@ export var serializeAws_restJson1DescribeSavingsPlanRatesCommand = function (inp
|
|
|
66
66
|
headers = {
|
|
67
67
|
"content-type": "application/json",
|
|
68
68
|
};
|
|
69
|
-
resolvedPath = ""
|
|
69
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeSavingsPlanRates";
|
|
70
70
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters !== undefined &&
|
|
71
71
|
input.filters !== null && { filters: serializeAws_restJson1SavingsPlanRateFilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.savingsPlanId !== undefined && input.savingsPlanId !== null && { savingsPlanId: input.savingsPlanId })));
|
|
72
72
|
return [2, new __HttpRequest({
|
|
@@ -91,7 +91,7 @@ export var serializeAws_restJson1DescribeSavingsPlansCommand = function (input,
|
|
|
91
91
|
headers = {
|
|
92
92
|
"content-type": "application/json",
|
|
93
93
|
};
|
|
94
|
-
resolvedPath = ""
|
|
94
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeSavingsPlans";
|
|
95
95
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.filters !== undefined &&
|
|
96
96
|
input.filters !== null && { filters: serializeAws_restJson1SavingsPlanFilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.savingsPlanArns !== undefined &&
|
|
97
97
|
input.savingsPlanArns !== null && {
|
|
@@ -123,7 +123,7 @@ export var serializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand = func
|
|
|
123
123
|
headers = {
|
|
124
124
|
"content-type": "application/json",
|
|
125
125
|
};
|
|
126
|
-
resolvedPath = ""
|
|
126
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeSavingsPlansOfferingRates";
|
|
127
127
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.filters !== undefined &&
|
|
128
128
|
input.filters !== null && {
|
|
129
129
|
filters: serializeAws_restJson1SavingsPlanOfferingRateFiltersList(input.filters, context),
|
|
@@ -171,7 +171,7 @@ export var serializeAws_restJson1DescribeSavingsPlansOfferingsCommand = function
|
|
|
171
171
|
headers = {
|
|
172
172
|
"content-type": "application/json",
|
|
173
173
|
};
|
|
174
|
-
resolvedPath = ""
|
|
174
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeSavingsPlansOfferings";
|
|
175
175
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.currencies !== undefined &&
|
|
176
176
|
input.currencies !== null && { currencies: serializeAws_restJson1CurrencyList(input.currencies, context) })), (input.descriptions !== undefined &&
|
|
177
177
|
input.descriptions !== null && {
|
|
@@ -217,7 +217,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
217
217
|
headers = {
|
|
218
218
|
"content-type": "application/json",
|
|
219
219
|
};
|
|
220
|
-
resolvedPath = ""
|
|
220
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListTagsForResource";
|
|
221
221
|
body = JSON.stringify(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })));
|
|
222
222
|
return [2, new __HttpRequest({
|
|
223
223
|
protocol: protocol,
|
|
@@ -241,7 +241,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
241
241
|
headers = {
|
|
242
242
|
"content-type": "application/json",
|
|
243
243
|
};
|
|
244
|
-
resolvedPath = ""
|
|
244
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/TagResource";
|
|
245
245
|
body = JSON.stringify(__assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
246
246
|
return [2, new __HttpRequest({
|
|
247
247
|
protocol: protocol,
|
|
@@ -265,7 +265,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
265
265
|
headers = {
|
|
266
266
|
"content-type": "application/json",
|
|
267
267
|
};
|
|
268
|
-
resolvedPath = ""
|
|
268
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UntagResource";
|
|
269
269
|
body = JSON.stringify(__assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tagKeys !== undefined &&
|
|
270
270
|
input.tagKeys !== null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
|
|
271
271
|
return [2, new __HttpRequest({
|
|
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: SavingsplansClientConfig) => {
|
|
|
21
21
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
22
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
23
23
|
serviceId: string;
|
|
24
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
24
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
29
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
30
30
|
tls?: boolean | undefined;
|
|
31
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: SavingsplansClientConfig) => {
|
|
|
19
19
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
21
|
serviceId: string;
|
|
22
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
22
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
27
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
28
|
tls?: boolean | undefined;
|
|
29
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-savingsplans",
|
|
3
3
|
"description": "AWS SDK for JavaScript Savingsplans Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.58.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,41 +18,41 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-node": "3.
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
51
|
-
"tslib": "^2.3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.58.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.58.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.58.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.58.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.55.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.55.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.58.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.58.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.55.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.58.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.55.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.58.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.55.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.58.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.58.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.58.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.58.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.55.0",
|
|
39
|
+
"@aws-sdk/types": "3.55.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.55.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.58.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.55.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.55.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.58.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.58.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.58.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.55.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.55.0",
|
|
51
|
+
"tslib": "^2.3.1",
|
|
52
52
|
"uuid": "^8.3.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
55
|
+
"@aws-sdk/service-client-documentation-generator": "3.58.0",
|
|
56
56
|
"@tsconfig/recommended": "1.0.1",
|
|
57
57
|
"@types/node": "^12.7.5",
|
|
58
58
|
"@types/uuid": "^8.3.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"downlevel-dts": "0.7.0",
|
|
61
61
|
"rimraf": "3.0.2",
|
|
62
62
|
"typedoc": "0.19.2",
|
|
63
|
-
"typescript": "~4.
|
|
63
|
+
"typescript": "~4.6.2"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">=12.0.0"
|