@aws-sdk/client-savingsplans 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +15 -9
- package/dist-es/Savingsplans.js +38 -45
- package/dist-es/SavingsplansClient.js +22 -28
- package/dist-es/commands/CreateSavingsPlanCommand.js +21 -28
- package/dist-es/commands/DeleteQueuedSavingsPlanCommand.js +21 -28
- package/dist-es/commands/DescribeSavingsPlanRatesCommand.js +21 -28
- package/dist-es/commands/DescribeSavingsPlansCommand.js +21 -28
- package/dist-es/commands/DescribeSavingsPlansOfferingRatesCommand.js +21 -28
- package/dist-es/commands/DescribeSavingsPlansOfferingsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SavingsplansServiceException.js +5 -10
- package/dist-es/models/models_0.js +134 -75
- package/dist-es/protocols/Aws_restJson1.js +798 -1009
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-savingsplans
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-savingsplans
|
|
@@ -281,7 +281,7 @@ exports.deserializeAws_restJson1CreateSavingsPlanCommand = deserializeAws_restJs
|
|
|
281
281
|
const deserializeAws_restJson1CreateSavingsPlanCommandError = async (output, context) => {
|
|
282
282
|
const parsedOutput = {
|
|
283
283
|
...output,
|
|
284
|
-
body: await
|
|
284
|
+
body: await parseErrorBody(output.body, context),
|
|
285
285
|
};
|
|
286
286
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
287
287
|
switch (errorCode) {
|
|
@@ -321,7 +321,7 @@ exports.deserializeAws_restJson1DeleteQueuedSavingsPlanCommand = deserializeAws_
|
|
|
321
321
|
const deserializeAws_restJson1DeleteQueuedSavingsPlanCommandError = async (output, context) => {
|
|
322
322
|
const parsedOutput = {
|
|
323
323
|
...output,
|
|
324
|
-
body: await
|
|
324
|
+
body: await parseErrorBody(output.body, context),
|
|
325
325
|
};
|
|
326
326
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
327
327
|
switch (errorCode) {
|
|
@@ -370,7 +370,7 @@ exports.deserializeAws_restJson1DescribeSavingsPlanRatesCommand = deserializeAws
|
|
|
370
370
|
const deserializeAws_restJson1DescribeSavingsPlanRatesCommandError = async (output, context) => {
|
|
371
371
|
const parsedOutput = {
|
|
372
372
|
...output,
|
|
373
|
-
body: await
|
|
373
|
+
body: await parseErrorBody(output.body, context),
|
|
374
374
|
};
|
|
375
375
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
376
376
|
switch (errorCode) {
|
|
@@ -410,7 +410,7 @@ exports.deserializeAws_restJson1DescribeSavingsPlansCommand = deserializeAws_res
|
|
|
410
410
|
const deserializeAws_restJson1DescribeSavingsPlansCommandError = async (output, context) => {
|
|
411
411
|
const parsedOutput = {
|
|
412
412
|
...output,
|
|
413
|
-
body: await
|
|
413
|
+
body: await parseErrorBody(output.body, context),
|
|
414
414
|
};
|
|
415
415
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
416
416
|
switch (errorCode) {
|
|
@@ -450,7 +450,7 @@ exports.deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand = deser
|
|
|
450
450
|
const deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommandError = async (output, context) => {
|
|
451
451
|
const parsedOutput = {
|
|
452
452
|
...output,
|
|
453
|
-
body: await
|
|
453
|
+
body: await parseErrorBody(output.body, context),
|
|
454
454
|
};
|
|
455
455
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
456
456
|
switch (errorCode) {
|
|
@@ -490,7 +490,7 @@ exports.deserializeAws_restJson1DescribeSavingsPlansOfferingsCommand = deseriali
|
|
|
490
490
|
const deserializeAws_restJson1DescribeSavingsPlansOfferingsCommandError = async (output, context) => {
|
|
491
491
|
const parsedOutput = {
|
|
492
492
|
...output,
|
|
493
|
-
body: await
|
|
493
|
+
body: await parseErrorBody(output.body, context),
|
|
494
494
|
};
|
|
495
495
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
496
496
|
switch (errorCode) {
|
|
@@ -527,7 +527,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
527
527
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
528
528
|
const parsedOutput = {
|
|
529
529
|
...output,
|
|
530
|
-
body: await
|
|
530
|
+
body: await parseErrorBody(output.body, context),
|
|
531
531
|
};
|
|
532
532
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
533
533
|
switch (errorCode) {
|
|
@@ -564,7 +564,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
564
564
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
565
565
|
const parsedOutput = {
|
|
566
566
|
...output,
|
|
567
|
-
body: await
|
|
567
|
+
body: await parseErrorBody(output.body, context),
|
|
568
568
|
};
|
|
569
569
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
570
570
|
switch (errorCode) {
|
|
@@ -604,7 +604,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
604
604
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
605
605
|
const parsedOutput = {
|
|
606
606
|
...output,
|
|
607
|
-
body: await
|
|
607
|
+
body: await parseErrorBody(output.body, context),
|
|
608
608
|
};
|
|
609
609
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
610
610
|
switch (errorCode) {
|
|
@@ -1099,6 +1099,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
1099
1099
|
}
|
|
1100
1100
|
return {};
|
|
1101
1101
|
});
|
|
1102
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1103
|
+
var _a;
|
|
1104
|
+
const value = await parseBody(errorBody, context);
|
|
1105
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1106
|
+
return value;
|
|
1107
|
+
};
|
|
1102
1108
|
const loadRestJsonErrorCode = (output, data) => {
|
|
1103
1109
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1104
1110
|
const sanitizeErrorCode = (rawValue) => {
|
package/dist-es/Savingsplans.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { CreateSavingsPlanCommand, } from "./commands/CreateSavingsPlanCommand";
|
|
3
2
|
import { DeleteQueuedSavingsPlanCommand, } from "./commands/DeleteQueuedSavingsPlanCommand";
|
|
4
3
|
import { DescribeSavingsPlanRatesCommand, } from "./commands/DescribeSavingsPlanRatesCommand";
|
|
@@ -9,137 +8,131 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
|
|
|
9
8
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
10
9
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
11
10
|
import { SavingsplansClient } from "./SavingsplansClient";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
16
|
-
}
|
|
17
|
-
Savingsplans.prototype.createSavingsPlan = function (args, optionsOrCb, cb) {
|
|
18
|
-
var command = new CreateSavingsPlanCommand(args);
|
|
11
|
+
export class Savingsplans extends SavingsplansClient {
|
|
12
|
+
createSavingsPlan(args, optionsOrCb, cb) {
|
|
13
|
+
const command = new CreateSavingsPlanCommand(args);
|
|
19
14
|
if (typeof optionsOrCb === "function") {
|
|
20
15
|
this.send(command, optionsOrCb);
|
|
21
16
|
}
|
|
22
17
|
else if (typeof cb === "function") {
|
|
23
18
|
if (typeof optionsOrCb !== "object")
|
|
24
|
-
throw new Error(
|
|
19
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
25
20
|
this.send(command, optionsOrCb || {}, cb);
|
|
26
21
|
}
|
|
27
22
|
else {
|
|
28
23
|
return this.send(command, optionsOrCb);
|
|
29
24
|
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
}
|
|
26
|
+
deleteQueuedSavingsPlan(args, optionsOrCb, cb) {
|
|
27
|
+
const command = new DeleteQueuedSavingsPlanCommand(args);
|
|
33
28
|
if (typeof optionsOrCb === "function") {
|
|
34
29
|
this.send(command, optionsOrCb);
|
|
35
30
|
}
|
|
36
31
|
else if (typeof cb === "function") {
|
|
37
32
|
if (typeof optionsOrCb !== "object")
|
|
38
|
-
throw new Error(
|
|
33
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
39
34
|
this.send(command, optionsOrCb || {}, cb);
|
|
40
35
|
}
|
|
41
36
|
else {
|
|
42
37
|
return this.send(command, optionsOrCb);
|
|
43
38
|
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
}
|
|
40
|
+
describeSavingsPlanRates(args, optionsOrCb, cb) {
|
|
41
|
+
const command = new DescribeSavingsPlanRatesCommand(args);
|
|
47
42
|
if (typeof optionsOrCb === "function") {
|
|
48
43
|
this.send(command, optionsOrCb);
|
|
49
44
|
}
|
|
50
45
|
else if (typeof cb === "function") {
|
|
51
46
|
if (typeof optionsOrCb !== "object")
|
|
52
|
-
throw new Error(
|
|
47
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
53
48
|
this.send(command, optionsOrCb || {}, cb);
|
|
54
49
|
}
|
|
55
50
|
else {
|
|
56
51
|
return this.send(command, optionsOrCb);
|
|
57
52
|
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
}
|
|
54
|
+
describeSavingsPlans(args, optionsOrCb, cb) {
|
|
55
|
+
const command = new DescribeSavingsPlansCommand(args);
|
|
61
56
|
if (typeof optionsOrCb === "function") {
|
|
62
57
|
this.send(command, optionsOrCb);
|
|
63
58
|
}
|
|
64
59
|
else if (typeof cb === "function") {
|
|
65
60
|
if (typeof optionsOrCb !== "object")
|
|
66
|
-
throw new Error(
|
|
61
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
67
62
|
this.send(command, optionsOrCb || {}, cb);
|
|
68
63
|
}
|
|
69
64
|
else {
|
|
70
65
|
return this.send(command, optionsOrCb);
|
|
71
66
|
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
67
|
+
}
|
|
68
|
+
describeSavingsPlansOfferingRates(args, optionsOrCb, cb) {
|
|
69
|
+
const command = new DescribeSavingsPlansOfferingRatesCommand(args);
|
|
75
70
|
if (typeof optionsOrCb === "function") {
|
|
76
71
|
this.send(command, optionsOrCb);
|
|
77
72
|
}
|
|
78
73
|
else if (typeof cb === "function") {
|
|
79
74
|
if (typeof optionsOrCb !== "object")
|
|
80
|
-
throw new Error(
|
|
75
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
81
76
|
this.send(command, optionsOrCb || {}, cb);
|
|
82
77
|
}
|
|
83
78
|
else {
|
|
84
79
|
return this.send(command, optionsOrCb);
|
|
85
80
|
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
}
|
|
82
|
+
describeSavingsPlansOfferings(args, optionsOrCb, cb) {
|
|
83
|
+
const command = new DescribeSavingsPlansOfferingsCommand(args);
|
|
89
84
|
if (typeof optionsOrCb === "function") {
|
|
90
85
|
this.send(command, optionsOrCb);
|
|
91
86
|
}
|
|
92
87
|
else if (typeof cb === "function") {
|
|
93
88
|
if (typeof optionsOrCb !== "object")
|
|
94
|
-
throw new Error(
|
|
89
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
95
90
|
this.send(command, optionsOrCb || {}, cb);
|
|
96
91
|
}
|
|
97
92
|
else {
|
|
98
93
|
return this.send(command, optionsOrCb);
|
|
99
94
|
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
}
|
|
96
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
97
|
+
const command = new ListTagsForResourceCommand(args);
|
|
103
98
|
if (typeof optionsOrCb === "function") {
|
|
104
99
|
this.send(command, optionsOrCb);
|
|
105
100
|
}
|
|
106
101
|
else if (typeof cb === "function") {
|
|
107
102
|
if (typeof optionsOrCb !== "object")
|
|
108
|
-
throw new Error(
|
|
103
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
109
104
|
this.send(command, optionsOrCb || {}, cb);
|
|
110
105
|
}
|
|
111
106
|
else {
|
|
112
107
|
return this.send(command, optionsOrCb);
|
|
113
108
|
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
|
|
109
|
+
}
|
|
110
|
+
tagResource(args, optionsOrCb, cb) {
|
|
111
|
+
const command = new TagResourceCommand(args);
|
|
117
112
|
if (typeof optionsOrCb === "function") {
|
|
118
113
|
this.send(command, optionsOrCb);
|
|
119
114
|
}
|
|
120
115
|
else if (typeof cb === "function") {
|
|
121
116
|
if (typeof optionsOrCb !== "object")
|
|
122
|
-
throw new Error(
|
|
117
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
123
118
|
this.send(command, optionsOrCb || {}, cb);
|
|
124
119
|
}
|
|
125
120
|
else {
|
|
126
121
|
return this.send(command, optionsOrCb);
|
|
127
122
|
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
123
|
+
}
|
|
124
|
+
untagResource(args, optionsOrCb, cb) {
|
|
125
|
+
const command = new UntagResourceCommand(args);
|
|
131
126
|
if (typeof optionsOrCb === "function") {
|
|
132
127
|
this.send(command, optionsOrCb);
|
|
133
128
|
}
|
|
134
129
|
else if (typeof cb === "function") {
|
|
135
130
|
if (typeof optionsOrCb !== "object")
|
|
136
|
-
throw new Error(
|
|
131
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
137
132
|
this.send(command, optionsOrCb || {}, cb);
|
|
138
133
|
}
|
|
139
134
|
else {
|
|
140
135
|
return this.send(command, optionsOrCb);
|
|
141
136
|
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
}(SavingsplansClient));
|
|
145
|
-
export { Savingsplans };
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class SavingsplansClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { SavingsplansClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CreateSavingsPlanRequestFilterSensitiveLog, CreateSavingsPlanResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1CreateSavingsPlanCommand, serializeAws_restJson1CreateSavingsPlanCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CreateSavingsPlanCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "SavingsplansClient";
|
|
15
|
+
const commandName = "CreateSavingsPlanCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CreateSavingsPlanRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CreateSavingsPlanResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CreateSavingsPlanCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1CreateSavingsPlanCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1CreateSavingsPlanCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CreateSavingsPlanCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { DeleteQueuedSavingsPlanRequestFilterSensitiveLog, DeleteQueuedSavingsPlanResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1DeleteQueuedSavingsPlanCommand, serializeAws_restJson1DeleteQueuedSavingsPlanCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class DeleteQueuedSavingsPlanCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "SavingsplansClient";
|
|
15
|
+
const commandName = "DeleteQueuedSavingsPlanCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: DeleteQueuedSavingsPlanRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: DeleteQueuedSavingsPlanResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
DeleteQueuedSavingsPlanCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1DeleteQueuedSavingsPlanCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1DeleteQueuedSavingsPlanCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { DeleteQueuedSavingsPlanCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { DescribeSavingsPlanRatesRequestFilterSensitiveLog, DescribeSavingsPlanRatesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1DescribeSavingsPlanRatesCommand, serializeAws_restJson1DescribeSavingsPlanRatesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class DescribeSavingsPlanRatesCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "SavingsplansClient";
|
|
15
|
+
const commandName = "DescribeSavingsPlanRatesCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: DescribeSavingsPlanRatesRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: DescribeSavingsPlanRatesResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
DescribeSavingsPlanRatesCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1DescribeSavingsPlanRatesCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1DescribeSavingsPlanRatesCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { DescribeSavingsPlanRatesCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { DescribeSavingsPlansRequestFilterSensitiveLog, DescribeSavingsPlansResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1DescribeSavingsPlansCommand, serializeAws_restJson1DescribeSavingsPlansCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class DescribeSavingsPlansCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "SavingsplansClient";
|
|
15
|
+
const commandName = "DescribeSavingsPlansCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: DescribeSavingsPlansRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: DescribeSavingsPlansResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
DescribeSavingsPlansCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1DescribeSavingsPlansCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1DescribeSavingsPlansCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { DescribeSavingsPlansCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|