@aws-sdk/client-savingsplans 3.315.0 → 3.319.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/dist-cjs/Savingsplans.js +13 -126
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1
- package/dist-es/Savingsplans.js +13 -126
- package/dist-es/protocols/Aws_restJson1.js +1 -1
- package/dist-types/Savingsplans.d.ts +19 -26
- package/dist-types/ts3.4/Savingsplans.d.ts +4 -1
- package/package.json +8 -8
package/dist-cjs/Savingsplans.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Savingsplans = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateSavingsPlanCommand_1 = require("./commands/CreateSavingsPlanCommand");
|
|
5
6
|
const DeleteQueuedSavingsPlanCommand_1 = require("./commands/DeleteQueuedSavingsPlanCommand");
|
|
6
7
|
const DescribeSavingsPlanRatesCommand_1 = require("./commands/DescribeSavingsPlanRatesCommand");
|
|
@@ -11,132 +12,18 @@ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceComm
|
|
|
11
12
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
12
13
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
13
14
|
const SavingsplansClient_1 = require("./SavingsplansClient");
|
|
15
|
+
const commands = {
|
|
16
|
+
CreateSavingsPlanCommand: CreateSavingsPlanCommand_1.CreateSavingsPlanCommand,
|
|
17
|
+
DeleteQueuedSavingsPlanCommand: DeleteQueuedSavingsPlanCommand_1.DeleteQueuedSavingsPlanCommand,
|
|
18
|
+
DescribeSavingsPlanRatesCommand: DescribeSavingsPlanRatesCommand_1.DescribeSavingsPlanRatesCommand,
|
|
19
|
+
DescribeSavingsPlansCommand: DescribeSavingsPlansCommand_1.DescribeSavingsPlansCommand,
|
|
20
|
+
DescribeSavingsPlansOfferingRatesCommand: DescribeSavingsPlansOfferingRatesCommand_1.DescribeSavingsPlansOfferingRatesCommand,
|
|
21
|
+
DescribeSavingsPlansOfferingsCommand: DescribeSavingsPlansOfferingsCommand_1.DescribeSavingsPlansOfferingsCommand,
|
|
22
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
23
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
24
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
25
|
+
};
|
|
14
26
|
class Savingsplans extends SavingsplansClient_1.SavingsplansClient {
|
|
15
|
-
createSavingsPlan(args, optionsOrCb, cb) {
|
|
16
|
-
const command = new CreateSavingsPlanCommand_1.CreateSavingsPlanCommand(args);
|
|
17
|
-
if (typeof optionsOrCb === "function") {
|
|
18
|
-
this.send(command, optionsOrCb);
|
|
19
|
-
}
|
|
20
|
-
else if (typeof cb === "function") {
|
|
21
|
-
if (typeof optionsOrCb !== "object")
|
|
22
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
23
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
return this.send(command, optionsOrCb);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
deleteQueuedSavingsPlan(args, optionsOrCb, cb) {
|
|
30
|
-
const command = new DeleteQueuedSavingsPlanCommand_1.DeleteQueuedSavingsPlanCommand(args);
|
|
31
|
-
if (typeof optionsOrCb === "function") {
|
|
32
|
-
this.send(command, optionsOrCb);
|
|
33
|
-
}
|
|
34
|
-
else if (typeof cb === "function") {
|
|
35
|
-
if (typeof optionsOrCb !== "object")
|
|
36
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
37
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
describeSavingsPlanRates(args, optionsOrCb, cb) {
|
|
44
|
-
const command = new DescribeSavingsPlanRatesCommand_1.DescribeSavingsPlanRatesCommand(args);
|
|
45
|
-
if (typeof optionsOrCb === "function") {
|
|
46
|
-
this.send(command, optionsOrCb);
|
|
47
|
-
}
|
|
48
|
-
else if (typeof cb === "function") {
|
|
49
|
-
if (typeof optionsOrCb !== "object")
|
|
50
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
51
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
return this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
describeSavingsPlans(args, optionsOrCb, cb) {
|
|
58
|
-
const command = new DescribeSavingsPlansCommand_1.DescribeSavingsPlansCommand(args);
|
|
59
|
-
if (typeof optionsOrCb === "function") {
|
|
60
|
-
this.send(command, optionsOrCb);
|
|
61
|
-
}
|
|
62
|
-
else if (typeof cb === "function") {
|
|
63
|
-
if (typeof optionsOrCb !== "object")
|
|
64
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
65
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
return this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
describeSavingsPlansOfferingRates(args, optionsOrCb, cb) {
|
|
72
|
-
const command = new DescribeSavingsPlansOfferingRatesCommand_1.DescribeSavingsPlansOfferingRatesCommand(args);
|
|
73
|
-
if (typeof optionsOrCb === "function") {
|
|
74
|
-
this.send(command, optionsOrCb);
|
|
75
|
-
}
|
|
76
|
-
else if (typeof cb === "function") {
|
|
77
|
-
if (typeof optionsOrCb !== "object")
|
|
78
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
79
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
return this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
describeSavingsPlansOfferings(args, optionsOrCb, cb) {
|
|
86
|
-
const command = new DescribeSavingsPlansOfferingsCommand_1.DescribeSavingsPlansOfferingsCommand(args);
|
|
87
|
-
if (typeof optionsOrCb === "function") {
|
|
88
|
-
this.send(command, optionsOrCb);
|
|
89
|
-
}
|
|
90
|
-
else if (typeof cb === "function") {
|
|
91
|
-
if (typeof optionsOrCb !== "object")
|
|
92
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
return this.send(command, optionsOrCb);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
100
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
101
|
-
if (typeof optionsOrCb === "function") {
|
|
102
|
-
this.send(command, optionsOrCb);
|
|
103
|
-
}
|
|
104
|
-
else if (typeof cb === "function") {
|
|
105
|
-
if (typeof optionsOrCb !== "object")
|
|
106
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
107
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
return this.send(command, optionsOrCb);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
tagResource(args, optionsOrCb, cb) {
|
|
114
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
115
|
-
if (typeof optionsOrCb === "function") {
|
|
116
|
-
this.send(command, optionsOrCb);
|
|
117
|
-
}
|
|
118
|
-
else if (typeof cb === "function") {
|
|
119
|
-
if (typeof optionsOrCb !== "object")
|
|
120
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
121
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
return this.send(command, optionsOrCb);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
untagResource(args, optionsOrCb, cb) {
|
|
128
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
129
|
-
if (typeof optionsOrCb === "function") {
|
|
130
|
-
this.send(command, optionsOrCb);
|
|
131
|
-
}
|
|
132
|
-
else if (typeof cb === "function") {
|
|
133
|
-
if (typeof optionsOrCb !== "object")
|
|
134
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
return this.send(command, optionsOrCb);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
27
|
}
|
|
142
28
|
exports.Savingsplans = Savingsplans;
|
|
29
|
+
(0, smithy_client_1.createAggregatedClient)(commands, Savingsplans);
|
|
@@ -14,7 +14,7 @@ const se_CreateSavingsPlanCommand = async (input, context) => {
|
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateSavingsPlan";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
-
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
17
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
18
18
|
commitment: [],
|
|
19
19
|
purchaseTime: (_) => Math.round(_.getTime() / 1000),
|
|
20
20
|
savingsPlanOfferingId: [],
|
package/dist-es/Savingsplans.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateSavingsPlanCommand, } from "./commands/CreateSavingsPlanCommand";
|
|
2
3
|
import { DeleteQueuedSavingsPlanCommand, } from "./commands/DeleteQueuedSavingsPlanCommand";
|
|
3
4
|
import { DescribeSavingsPlanRatesCommand, } from "./commands/DescribeSavingsPlanRatesCommand";
|
|
@@ -8,131 +9,17 @@ 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";
|
|
12
|
+
const commands = {
|
|
13
|
+
CreateSavingsPlanCommand,
|
|
14
|
+
DeleteQueuedSavingsPlanCommand,
|
|
15
|
+
DescribeSavingsPlanRatesCommand,
|
|
16
|
+
DescribeSavingsPlansCommand,
|
|
17
|
+
DescribeSavingsPlansOfferingRatesCommand,
|
|
18
|
+
DescribeSavingsPlansOfferingsCommand,
|
|
19
|
+
ListTagsForResourceCommand,
|
|
20
|
+
TagResourceCommand,
|
|
21
|
+
UntagResourceCommand,
|
|
22
|
+
};
|
|
11
23
|
export class Savingsplans extends SavingsplansClient {
|
|
12
|
-
createSavingsPlan(args, optionsOrCb, cb) {
|
|
13
|
-
const command = new CreateSavingsPlanCommand(args);
|
|
14
|
-
if (typeof optionsOrCb === "function") {
|
|
15
|
-
this.send(command, optionsOrCb);
|
|
16
|
-
}
|
|
17
|
-
else if (typeof cb === "function") {
|
|
18
|
-
if (typeof optionsOrCb !== "object")
|
|
19
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
20
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
return this.send(command, optionsOrCb);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
deleteQueuedSavingsPlan(args, optionsOrCb, cb) {
|
|
27
|
-
const command = new DeleteQueuedSavingsPlanCommand(args);
|
|
28
|
-
if (typeof optionsOrCb === "function") {
|
|
29
|
-
this.send(command, optionsOrCb);
|
|
30
|
-
}
|
|
31
|
-
else if (typeof cb === "function") {
|
|
32
|
-
if (typeof optionsOrCb !== "object")
|
|
33
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
34
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
return this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
describeSavingsPlanRates(args, optionsOrCb, cb) {
|
|
41
|
-
const command = new DescribeSavingsPlanRatesCommand(args);
|
|
42
|
-
if (typeof optionsOrCb === "function") {
|
|
43
|
-
this.send(command, optionsOrCb);
|
|
44
|
-
}
|
|
45
|
-
else if (typeof cb === "function") {
|
|
46
|
-
if (typeof optionsOrCb !== "object")
|
|
47
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
48
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
return this.send(command, optionsOrCb);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
describeSavingsPlans(args, optionsOrCb, cb) {
|
|
55
|
-
const command = new DescribeSavingsPlansCommand(args);
|
|
56
|
-
if (typeof optionsOrCb === "function") {
|
|
57
|
-
this.send(command, optionsOrCb);
|
|
58
|
-
}
|
|
59
|
-
else if (typeof cb === "function") {
|
|
60
|
-
if (typeof optionsOrCb !== "object")
|
|
61
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
62
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
return this.send(command, optionsOrCb);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
describeSavingsPlansOfferingRates(args, optionsOrCb, cb) {
|
|
69
|
-
const command = new DescribeSavingsPlansOfferingRatesCommand(args);
|
|
70
|
-
if (typeof optionsOrCb === "function") {
|
|
71
|
-
this.send(command, optionsOrCb);
|
|
72
|
-
}
|
|
73
|
-
else if (typeof cb === "function") {
|
|
74
|
-
if (typeof optionsOrCb !== "object")
|
|
75
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
76
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
return this.send(command, optionsOrCb);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
describeSavingsPlansOfferings(args, optionsOrCb, cb) {
|
|
83
|
-
const command = new DescribeSavingsPlansOfferingsCommand(args);
|
|
84
|
-
if (typeof optionsOrCb === "function") {
|
|
85
|
-
this.send(command, optionsOrCb);
|
|
86
|
-
}
|
|
87
|
-
else if (typeof cb === "function") {
|
|
88
|
-
if (typeof optionsOrCb !== "object")
|
|
89
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
90
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
return this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
97
|
-
const command = new ListTagsForResourceCommand(args);
|
|
98
|
-
if (typeof optionsOrCb === "function") {
|
|
99
|
-
this.send(command, optionsOrCb);
|
|
100
|
-
}
|
|
101
|
-
else if (typeof cb === "function") {
|
|
102
|
-
if (typeof optionsOrCb !== "object")
|
|
103
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
104
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
return this.send(command, optionsOrCb);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
tagResource(args, optionsOrCb, cb) {
|
|
111
|
-
const command = new TagResourceCommand(args);
|
|
112
|
-
if (typeof optionsOrCb === "function") {
|
|
113
|
-
this.send(command, optionsOrCb);
|
|
114
|
-
}
|
|
115
|
-
else if (typeof cb === "function") {
|
|
116
|
-
if (typeof optionsOrCb !== "object")
|
|
117
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
118
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
return this.send(command, optionsOrCb);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
untagResource(args, optionsOrCb, cb) {
|
|
125
|
-
const command = new UntagResourceCommand(args);
|
|
126
|
-
if (typeof optionsOrCb === "function") {
|
|
127
|
-
this.send(command, optionsOrCb);
|
|
128
|
-
}
|
|
129
|
-
else if (typeof cb === "function") {
|
|
130
|
-
if (typeof optionsOrCb !== "object")
|
|
131
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
132
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
return this.send(command, optionsOrCb);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
24
|
}
|
|
25
|
+
createAggregatedClient(commands, Savingsplans);
|
|
@@ -11,7 +11,7 @@ export const se_CreateSavingsPlanCommand = async (input, context) => {
|
|
|
11
11
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateSavingsPlan";
|
|
12
12
|
let body;
|
|
13
13
|
body = JSON.stringify(take(input, {
|
|
14
|
-
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
14
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
15
15
|
commitment: [],
|
|
16
16
|
purchaseTime: (_) => Math.round(_.getTime() / 1000),
|
|
17
17
|
savingsPlanOfferingId: [],
|
|
@@ -9,75 +9,68 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
|
|
|
9
9
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
10
10
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
11
11
|
import { SavingsplansClient } from "./SavingsplansClient";
|
|
12
|
-
|
|
13
|
-
* @public
|
|
14
|
-
* <p>Savings Plans are a pricing model that offer significant savings on AWS usage (for
|
|
15
|
-
* example, on Amazon EC2 instances). You commit to a consistent amount of usage, in USD
|
|
16
|
-
* per hour, for a term of 1 or 3 years, and receive a lower price for that usage. For
|
|
17
|
-
* more information, see the <a href="https://docs.aws.amazon.com/savingsplans/latest/userguide/">AWS Savings Plans User Guide</a>.</p>
|
|
18
|
-
*/
|
|
19
|
-
export declare class Savingsplans extends SavingsplansClient {
|
|
12
|
+
export interface Savingsplans {
|
|
20
13
|
/**
|
|
21
|
-
* @
|
|
22
|
-
* <p>Creates a Savings Plan.</p>
|
|
14
|
+
* @see {@link CreateSavingsPlanCommand}
|
|
23
15
|
*/
|
|
24
16
|
createSavingsPlan(args: CreateSavingsPlanCommandInput, options?: __HttpHandlerOptions): Promise<CreateSavingsPlanCommandOutput>;
|
|
25
17
|
createSavingsPlan(args: CreateSavingsPlanCommandInput, cb: (err: any, data?: CreateSavingsPlanCommandOutput) => void): void;
|
|
26
18
|
createSavingsPlan(args: CreateSavingsPlanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSavingsPlanCommandOutput) => void): void;
|
|
27
19
|
/**
|
|
28
|
-
* @
|
|
29
|
-
* <p>Deletes the queued purchase for the specified Savings Plan.</p>
|
|
20
|
+
* @see {@link DeleteQueuedSavingsPlanCommand}
|
|
30
21
|
*/
|
|
31
22
|
deleteQueuedSavingsPlan(args: DeleteQueuedSavingsPlanCommandInput, options?: __HttpHandlerOptions): Promise<DeleteQueuedSavingsPlanCommandOutput>;
|
|
32
23
|
deleteQueuedSavingsPlan(args: DeleteQueuedSavingsPlanCommandInput, cb: (err: any, data?: DeleteQueuedSavingsPlanCommandOutput) => void): void;
|
|
33
24
|
deleteQueuedSavingsPlan(args: DeleteQueuedSavingsPlanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteQueuedSavingsPlanCommandOutput) => void): void;
|
|
34
25
|
/**
|
|
35
|
-
* @
|
|
36
|
-
* <p>Describes the specified Savings Plans rates.</p>
|
|
26
|
+
* @see {@link DescribeSavingsPlanRatesCommand}
|
|
37
27
|
*/
|
|
38
28
|
describeSavingsPlanRates(args: DescribeSavingsPlanRatesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSavingsPlanRatesCommandOutput>;
|
|
39
29
|
describeSavingsPlanRates(args: DescribeSavingsPlanRatesCommandInput, cb: (err: any, data?: DescribeSavingsPlanRatesCommandOutput) => void): void;
|
|
40
30
|
describeSavingsPlanRates(args: DescribeSavingsPlanRatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSavingsPlanRatesCommandOutput) => void): void;
|
|
41
31
|
/**
|
|
42
|
-
* @
|
|
43
|
-
* <p>Describes the specified Savings Plans.</p>
|
|
32
|
+
* @see {@link DescribeSavingsPlansCommand}
|
|
44
33
|
*/
|
|
45
34
|
describeSavingsPlans(args: DescribeSavingsPlansCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSavingsPlansCommandOutput>;
|
|
46
35
|
describeSavingsPlans(args: DescribeSavingsPlansCommandInput, cb: (err: any, data?: DescribeSavingsPlansCommandOutput) => void): void;
|
|
47
36
|
describeSavingsPlans(args: DescribeSavingsPlansCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSavingsPlansCommandOutput) => void): void;
|
|
48
37
|
/**
|
|
49
|
-
* @
|
|
50
|
-
* <p>Describes the specified Savings Plans offering rates.</p>
|
|
38
|
+
* @see {@link DescribeSavingsPlansOfferingRatesCommand}
|
|
51
39
|
*/
|
|
52
40
|
describeSavingsPlansOfferingRates(args: DescribeSavingsPlansOfferingRatesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSavingsPlansOfferingRatesCommandOutput>;
|
|
53
41
|
describeSavingsPlansOfferingRates(args: DescribeSavingsPlansOfferingRatesCommandInput, cb: (err: any, data?: DescribeSavingsPlansOfferingRatesCommandOutput) => void): void;
|
|
54
42
|
describeSavingsPlansOfferingRates(args: DescribeSavingsPlansOfferingRatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSavingsPlansOfferingRatesCommandOutput) => void): void;
|
|
55
43
|
/**
|
|
56
|
-
* @
|
|
57
|
-
* <p>Describes the specified Savings Plans offerings.</p>
|
|
44
|
+
* @see {@link DescribeSavingsPlansOfferingsCommand}
|
|
58
45
|
*/
|
|
59
46
|
describeSavingsPlansOfferings(args: DescribeSavingsPlansOfferingsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSavingsPlansOfferingsCommandOutput>;
|
|
60
47
|
describeSavingsPlansOfferings(args: DescribeSavingsPlansOfferingsCommandInput, cb: (err: any, data?: DescribeSavingsPlansOfferingsCommandOutput) => void): void;
|
|
61
48
|
describeSavingsPlansOfferings(args: DescribeSavingsPlansOfferingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSavingsPlansOfferingsCommandOutput) => void): void;
|
|
62
49
|
/**
|
|
63
|
-
* @
|
|
64
|
-
* <p>Lists the tags for the specified resource.</p>
|
|
50
|
+
* @see {@link ListTagsForResourceCommand}
|
|
65
51
|
*/
|
|
66
52
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
67
53
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
68
54
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
69
55
|
/**
|
|
70
|
-
* @
|
|
71
|
-
* <p>Adds the specified tags to the specified resource.</p>
|
|
56
|
+
* @see {@link TagResourceCommand}
|
|
72
57
|
*/
|
|
73
58
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
74
59
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
75
60
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
76
61
|
/**
|
|
77
|
-
* @
|
|
78
|
-
* <p>Removes the specified tags from the specified resource.</p>
|
|
62
|
+
* @see {@link UntagResourceCommand}
|
|
79
63
|
*/
|
|
80
64
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
81
65
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
82
66
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
83
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
* <p>Savings Plans are a pricing model that offer significant savings on AWS usage (for
|
|
71
|
+
* example, on Amazon EC2 instances). You commit to a consistent amount of usage, in USD
|
|
72
|
+
* per hour, for a term of 1 or 3 years, and receive a lower price for that usage. For
|
|
73
|
+
* more information, see the <a href="https://docs.aws.amazon.com/savingsplans/latest/userguide/">AWS Savings Plans User Guide</a>.</p>
|
|
74
|
+
*/
|
|
75
|
+
export declare class Savingsplans extends SavingsplansClient implements Savingsplans {
|
|
76
|
+
}
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
UntagResourceCommandOutput,
|
|
37
37
|
} from "./commands/UntagResourceCommand";
|
|
38
38
|
import { SavingsplansClient } from "./SavingsplansClient";
|
|
39
|
-
export
|
|
39
|
+
export interface Savingsplans {
|
|
40
40
|
createSavingsPlan(
|
|
41
41
|
args: CreateSavingsPlanCommandInput,
|
|
42
42
|
options?: __HttpHandlerOptions
|
|
@@ -161,3 +161,6 @@ export declare class Savingsplans extends SavingsplansClient {
|
|
|
161
161
|
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
162
162
|
): void;
|
|
163
163
|
}
|
|
164
|
+
export declare class Savingsplans
|
|
165
|
+
extends SavingsplansClient
|
|
166
|
+
implements Savingsplans {}
|
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.319.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",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|