@aws-sdk/client-savingsplans 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/Savingsplans.js +45 -38
- package/dist-es/SavingsplansClient.js +28 -22
- package/dist-es/commands/CreateSavingsPlanCommand.js +28 -21
- package/dist-es/commands/DeleteQueuedSavingsPlanCommand.js +28 -21
- package/dist-es/commands/DescribeSavingsPlanRatesCommand.js +28 -21
- package/dist-es/commands/DescribeSavingsPlansCommand.js +28 -21
- package/dist-es/commands/DescribeSavingsPlansOfferingRatesCommand.js +28 -21
- package/dist-es/commands/DescribeSavingsPlansOfferingsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SavingsplansServiceException.js +10 -5
- package/dist-es/models/models_0.js +75 -134
- package/dist-es/protocols/Aws_restJson1.js +1022 -798
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-savingsplans
|
|
@@ -1073,10 +1073,10 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1073
1073
|
}, {});
|
|
1074
1074
|
};
|
|
1075
1075
|
const deserializeMetadata = (output) => {
|
|
1076
|
-
var _a;
|
|
1076
|
+
var _a, _b;
|
|
1077
1077
|
return ({
|
|
1078
1078
|
httpStatusCode: output.statusCode,
|
|
1079
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
1079
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
1080
1080
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1081
1081
|
cfId: output.headers["x-amz-cf-id"],
|
|
1082
1082
|
});
|
package/dist-es/Savingsplans.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { CreateSavingsPlanCommand, } from "./commands/CreateSavingsPlanCommand";
|
|
2
3
|
import { DeleteQueuedSavingsPlanCommand, } from "./commands/DeleteQueuedSavingsPlanCommand";
|
|
3
4
|
import { DescribeSavingsPlanRatesCommand, } from "./commands/DescribeSavingsPlanRatesCommand";
|
|
@@ -8,131 +9,137 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
|
|
|
8
9
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
9
10
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
10
11
|
import { SavingsplansClient } from "./SavingsplansClient";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
var Savingsplans = (function (_super) {
|
|
13
|
+
__extends(Savingsplans, _super);
|
|
14
|
+
function Savingsplans() {
|
|
15
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
16
|
+
}
|
|
17
|
+
Savingsplans.prototype.createSavingsPlan = function (args, optionsOrCb, cb) {
|
|
18
|
+
var command = new CreateSavingsPlanCommand(args);
|
|
14
19
|
if (typeof optionsOrCb === "function") {
|
|
15
20
|
this.send(command, optionsOrCb);
|
|
16
21
|
}
|
|
17
22
|
else if (typeof cb === "function") {
|
|
18
23
|
if (typeof optionsOrCb !== "object")
|
|
19
|
-
throw new Error(
|
|
24
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
20
25
|
this.send(command, optionsOrCb || {}, cb);
|
|
21
26
|
}
|
|
22
27
|
else {
|
|
23
28
|
return this.send(command, optionsOrCb);
|
|
24
29
|
}
|
|
25
|
-
}
|
|
26
|
-
deleteQueuedSavingsPlan(args, optionsOrCb, cb) {
|
|
27
|
-
|
|
30
|
+
};
|
|
31
|
+
Savingsplans.prototype.deleteQueuedSavingsPlan = function (args, optionsOrCb, cb) {
|
|
32
|
+
var command = new DeleteQueuedSavingsPlanCommand(args);
|
|
28
33
|
if (typeof optionsOrCb === "function") {
|
|
29
34
|
this.send(command, optionsOrCb);
|
|
30
35
|
}
|
|
31
36
|
else if (typeof cb === "function") {
|
|
32
37
|
if (typeof optionsOrCb !== "object")
|
|
33
|
-
throw new Error(
|
|
38
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
34
39
|
this.send(command, optionsOrCb || {}, cb);
|
|
35
40
|
}
|
|
36
41
|
else {
|
|
37
42
|
return this.send(command, optionsOrCb);
|
|
38
43
|
}
|
|
39
|
-
}
|
|
40
|
-
describeSavingsPlanRates(args, optionsOrCb, cb) {
|
|
41
|
-
|
|
44
|
+
};
|
|
45
|
+
Savingsplans.prototype.describeSavingsPlanRates = function (args, optionsOrCb, cb) {
|
|
46
|
+
var command = new DescribeSavingsPlanRatesCommand(args);
|
|
42
47
|
if (typeof optionsOrCb === "function") {
|
|
43
48
|
this.send(command, optionsOrCb);
|
|
44
49
|
}
|
|
45
50
|
else if (typeof cb === "function") {
|
|
46
51
|
if (typeof optionsOrCb !== "object")
|
|
47
|
-
throw new Error(
|
|
52
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
48
53
|
this.send(command, optionsOrCb || {}, cb);
|
|
49
54
|
}
|
|
50
55
|
else {
|
|
51
56
|
return this.send(command, optionsOrCb);
|
|
52
57
|
}
|
|
53
|
-
}
|
|
54
|
-
describeSavingsPlans(args, optionsOrCb, cb) {
|
|
55
|
-
|
|
58
|
+
};
|
|
59
|
+
Savingsplans.prototype.describeSavingsPlans = function (args, optionsOrCb, cb) {
|
|
60
|
+
var command = new DescribeSavingsPlansCommand(args);
|
|
56
61
|
if (typeof optionsOrCb === "function") {
|
|
57
62
|
this.send(command, optionsOrCb);
|
|
58
63
|
}
|
|
59
64
|
else if (typeof cb === "function") {
|
|
60
65
|
if (typeof optionsOrCb !== "object")
|
|
61
|
-
throw new Error(
|
|
66
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
62
67
|
this.send(command, optionsOrCb || {}, cb);
|
|
63
68
|
}
|
|
64
69
|
else {
|
|
65
70
|
return this.send(command, optionsOrCb);
|
|
66
71
|
}
|
|
67
|
-
}
|
|
68
|
-
describeSavingsPlansOfferingRates(args, optionsOrCb, cb) {
|
|
69
|
-
|
|
72
|
+
};
|
|
73
|
+
Savingsplans.prototype.describeSavingsPlansOfferingRates = function (args, optionsOrCb, cb) {
|
|
74
|
+
var command = new DescribeSavingsPlansOfferingRatesCommand(args);
|
|
70
75
|
if (typeof optionsOrCb === "function") {
|
|
71
76
|
this.send(command, optionsOrCb);
|
|
72
77
|
}
|
|
73
78
|
else if (typeof cb === "function") {
|
|
74
79
|
if (typeof optionsOrCb !== "object")
|
|
75
|
-
throw new Error(
|
|
80
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
76
81
|
this.send(command, optionsOrCb || {}, cb);
|
|
77
82
|
}
|
|
78
83
|
else {
|
|
79
84
|
return this.send(command, optionsOrCb);
|
|
80
85
|
}
|
|
81
|
-
}
|
|
82
|
-
describeSavingsPlansOfferings(args, optionsOrCb, cb) {
|
|
83
|
-
|
|
86
|
+
};
|
|
87
|
+
Savingsplans.prototype.describeSavingsPlansOfferings = function (args, optionsOrCb, cb) {
|
|
88
|
+
var command = new DescribeSavingsPlansOfferingsCommand(args);
|
|
84
89
|
if (typeof optionsOrCb === "function") {
|
|
85
90
|
this.send(command, optionsOrCb);
|
|
86
91
|
}
|
|
87
92
|
else if (typeof cb === "function") {
|
|
88
93
|
if (typeof optionsOrCb !== "object")
|
|
89
|
-
throw new Error(
|
|
94
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
90
95
|
this.send(command, optionsOrCb || {}, cb);
|
|
91
96
|
}
|
|
92
97
|
else {
|
|
93
98
|
return this.send(command, optionsOrCb);
|
|
94
99
|
}
|
|
95
|
-
}
|
|
96
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
97
|
-
|
|
100
|
+
};
|
|
101
|
+
Savingsplans.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
102
|
+
var command = new ListTagsForResourceCommand(args);
|
|
98
103
|
if (typeof optionsOrCb === "function") {
|
|
99
104
|
this.send(command, optionsOrCb);
|
|
100
105
|
}
|
|
101
106
|
else if (typeof cb === "function") {
|
|
102
107
|
if (typeof optionsOrCb !== "object")
|
|
103
|
-
throw new Error(
|
|
108
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
104
109
|
this.send(command, optionsOrCb || {}, cb);
|
|
105
110
|
}
|
|
106
111
|
else {
|
|
107
112
|
return this.send(command, optionsOrCb);
|
|
108
113
|
}
|
|
109
|
-
}
|
|
110
|
-
tagResource(args, optionsOrCb, cb) {
|
|
111
|
-
|
|
114
|
+
};
|
|
115
|
+
Savingsplans.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
116
|
+
var command = new TagResourceCommand(args);
|
|
112
117
|
if (typeof optionsOrCb === "function") {
|
|
113
118
|
this.send(command, optionsOrCb);
|
|
114
119
|
}
|
|
115
120
|
else if (typeof cb === "function") {
|
|
116
121
|
if (typeof optionsOrCb !== "object")
|
|
117
|
-
throw new Error(
|
|
122
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
118
123
|
this.send(command, optionsOrCb || {}, cb);
|
|
119
124
|
}
|
|
120
125
|
else {
|
|
121
126
|
return this.send(command, optionsOrCb);
|
|
122
127
|
}
|
|
123
|
-
}
|
|
124
|
-
untagResource(args, optionsOrCb, cb) {
|
|
125
|
-
|
|
128
|
+
};
|
|
129
|
+
Savingsplans.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
130
|
+
var command = new UntagResourceCommand(args);
|
|
126
131
|
if (typeof optionsOrCb === "function") {
|
|
127
132
|
this.send(command, optionsOrCb);
|
|
128
133
|
}
|
|
129
134
|
else if (typeof cb === "function") {
|
|
130
135
|
if (typeof optionsOrCb !== "object")
|
|
131
|
-
throw new Error(
|
|
136
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
132
137
|
this.send(command, optionsOrCb || {}, cb);
|
|
133
138
|
}
|
|
134
139
|
else {
|
|
135
140
|
return this.send(command, optionsOrCb);
|
|
136
141
|
}
|
|
137
|
-
}
|
|
138
|
-
|
|
142
|
+
};
|
|
143
|
+
return Savingsplans;
|
|
144
|
+
}(SavingsplansClient));
|
|
145
|
+
export { Savingsplans };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
var SavingsplansClient = (function (_super) {
|
|
13
|
+
__extends(SavingsplansClient, _super);
|
|
14
|
+
function SavingsplansClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
SavingsplansClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return SavingsplansClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { SavingsplansClient };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateSavingsPlanRequestFilterSensitiveLog, CreateSavingsPlanResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1CreateSavingsPlanCommand, serializeAws_restJson1CreateSavingsPlanCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateSavingsPlanCommand = (function (_super) {
|
|
7
|
+
__extends(CreateSavingsPlanCommand, _super);
|
|
8
|
+
function CreateSavingsPlanCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateSavingsPlanCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "SavingsplansClient";
|
|
18
|
+
var commandName = "CreateSavingsPlanCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateSavingsPlanRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateSavingsPlanResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateSavingsPlanCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1CreateSavingsPlanCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateSavingsPlanCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1CreateSavingsPlanCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateSavingsPlanCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateSavingsPlanCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteQueuedSavingsPlanRequestFilterSensitiveLog, DeleteQueuedSavingsPlanResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1DeleteQueuedSavingsPlanCommand, serializeAws_restJson1DeleteQueuedSavingsPlanCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DeleteQueuedSavingsPlanCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteQueuedSavingsPlanCommand, _super);
|
|
8
|
+
function DeleteQueuedSavingsPlanCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DeleteQueuedSavingsPlanCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "SavingsplansClient";
|
|
18
|
+
var commandName = "DeleteQueuedSavingsPlanCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DeleteQueuedSavingsPlanRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DeleteQueuedSavingsPlanResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteQueuedSavingsPlanCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1DeleteQueuedSavingsPlanCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DeleteQueuedSavingsPlanCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1DeleteQueuedSavingsPlanCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DeleteQueuedSavingsPlanCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteQueuedSavingsPlanCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DescribeSavingsPlanRatesRequestFilterSensitiveLog, DescribeSavingsPlanRatesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1DescribeSavingsPlanRatesCommand, serializeAws_restJson1DescribeSavingsPlanRatesCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DescribeSavingsPlanRatesCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeSavingsPlanRatesCommand, _super);
|
|
8
|
+
function DescribeSavingsPlanRatesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DescribeSavingsPlanRatesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "SavingsplansClient";
|
|
18
|
+
var commandName = "DescribeSavingsPlanRatesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DescribeSavingsPlanRatesRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DescribeSavingsPlanRatesResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeSavingsPlanRatesCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1DescribeSavingsPlanRatesCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DescribeSavingsPlanRatesCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1DescribeSavingsPlanRatesCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DescribeSavingsPlanRatesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeSavingsPlanRatesCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DescribeSavingsPlansRequestFilterSensitiveLog, DescribeSavingsPlansResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1DescribeSavingsPlansCommand, serializeAws_restJson1DescribeSavingsPlansCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DescribeSavingsPlansCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeSavingsPlansCommand, _super);
|
|
8
|
+
function DescribeSavingsPlansCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DescribeSavingsPlansCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "SavingsplansClient";
|
|
18
|
+
var commandName = "DescribeSavingsPlansCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DescribeSavingsPlansRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DescribeSavingsPlansResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeSavingsPlansCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1DescribeSavingsPlansCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DescribeSavingsPlansCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1DescribeSavingsPlansCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DescribeSavingsPlansCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeSavingsPlansCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DescribeSavingsPlansOfferingRatesRequestFilterSensitiveLog, DescribeSavingsPlansOfferingRatesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand, serializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DescribeSavingsPlansOfferingRatesCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeSavingsPlansOfferingRatesCommand, _super);
|
|
8
|
+
function DescribeSavingsPlansOfferingRatesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DescribeSavingsPlansOfferingRatesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "SavingsplansClient";
|
|
18
|
+
var commandName = "DescribeSavingsPlansOfferingRatesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DescribeSavingsPlansOfferingRatesRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DescribeSavingsPlansOfferingRatesResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeSavingsPlansOfferingRatesCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DescribeSavingsPlansOfferingRatesCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DescribeSavingsPlansOfferingRatesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeSavingsPlansOfferingRatesCommand };
|