@aws-sdk/client-savingsplans 3.185.0 → 3.188.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.
@@ -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 { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
6
- var ListTagsForResourceCommand = (function (_super) {
7
- __extends(ListTagsForResourceCommand, _super);
8
- function ListTagsForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SavingsplansClient";
18
- var commandName = "ListTagsForResourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SavingsplansClient";
15
+ const commandName = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForResourceCommand.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_restJson1ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
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 { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
6
- var TagResourceCommand = (function (_super) {
7
- __extends(TagResourceCommand, _super);
8
- function TagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class TagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SavingsplansClient";
18
- var commandName = "TagResourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SavingsplansClient";
15
+ const commandName = "TagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- TagResourceCommand.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_restJson1TagResourceCommand(input, context);
33
- };
34
- TagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1TagResourceCommand(output, context);
36
- };
37
- return TagResourceCommand;
38
- }($Command));
39
- export { TagResourceCommand };
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 { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
6
- var UntagResourceCommand = (function (_super) {
7
- __extends(UntagResourceCommand, _super);
8
- function UntagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UntagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SavingsplansClient";
18
- var commandName = "UntagResourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SavingsplansClient";
15
+ const commandName = "UntagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UntagResourceCommand.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_restJson1UntagResourceCommand(input, context);
33
- };
34
- UntagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1UntagResourceCommand(output, context);
36
- };
37
- return UntagResourceCommand;
38
- }($Command));
39
- export { UntagResourceCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "aws-global": {
5
4
  variants: [
6
5
  {
@@ -11,7 +10,7 @@ var regionHash = {
11
10
  signingRegion: "us-east-1",
12
11
  },
13
12
  };
14
- var partitionHash = {
13
+ const partitionHash = {
15
14
  aws: {
16
15
  regions: [
17
16
  "af-south-1",
@@ -133,8 +132,9 @@ var partitionHash = {
133
132
  ],
134
133
  },
135
134
  };
136
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
137
- return __generator(this, function (_a) {
138
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "savingsplans", regionHash: regionHash, partitionHash: partitionHash }))];
139
- });
140
- }); };
135
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
136
+ ...options,
137
+ signingService: "savingsplans",
138
+ regionHash,
139
+ partitionHash,
140
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var SavingsplansServiceException = (function (_super) {
4
- __extends(SavingsplansServiceException, _super);
5
- function SavingsplansServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, SavingsplansServiceException.prototype);
8
- return _this;
2
+ export class SavingsplansServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, SavingsplansServiceException.prototype);
9
6
  }
10
- return SavingsplansServiceException;
11
- }(__ServiceException));
12
- export { SavingsplansServiceException };
7
+ }
@@ -1,53 +1,52 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SavingsplansServiceException as __BaseException } from "./SavingsplansServiceException";
3
- var InternalServerException = (function (_super) {
4
- __extends(InternalServerException, _super);
5
- function InternalServerException(opts) {
6
- var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
7
- _this.name = "InternalServerException";
8
- _this.$fault = "server";
9
- Object.setPrototypeOf(_this, InternalServerException.prototype);
10
- return _this;
2
+ export class InternalServerException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "InternalServerException",
6
+ $fault: "server",
7
+ ...opts,
8
+ });
9
+ this.name = "InternalServerException";
10
+ this.$fault = "server";
11
+ Object.setPrototypeOf(this, InternalServerException.prototype);
11
12
  }
12
- return InternalServerException;
13
- }(__BaseException));
14
- export { InternalServerException };
15
- var ResourceNotFoundException = (function (_super) {
16
- __extends(ResourceNotFoundException, _super);
17
- function ResourceNotFoundException(opts) {
18
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
19
- _this.name = "ResourceNotFoundException";
20
- _this.$fault = "client";
21
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
22
- return _this;
13
+ }
14
+ export class ResourceNotFoundException extends __BaseException {
15
+ constructor(opts) {
16
+ super({
17
+ name: "ResourceNotFoundException",
18
+ $fault: "client",
19
+ ...opts,
20
+ });
21
+ this.name = "ResourceNotFoundException";
22
+ this.$fault = "client";
23
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
23
24
  }
24
- return ResourceNotFoundException;
25
- }(__BaseException));
26
- export { ResourceNotFoundException };
27
- var ServiceQuotaExceededException = (function (_super) {
28
- __extends(ServiceQuotaExceededException, _super);
29
- function ServiceQuotaExceededException(opts) {
30
- var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
31
- _this.name = "ServiceQuotaExceededException";
32
- _this.$fault = "client";
33
- Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
34
- return _this;
25
+ }
26
+ export class ServiceQuotaExceededException extends __BaseException {
27
+ constructor(opts) {
28
+ super({
29
+ name: "ServiceQuotaExceededException",
30
+ $fault: "client",
31
+ ...opts,
32
+ });
33
+ this.name = "ServiceQuotaExceededException";
34
+ this.$fault = "client";
35
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
35
36
  }
36
- return ServiceQuotaExceededException;
37
- }(__BaseException));
38
- export { ServiceQuotaExceededException };
39
- var ValidationException = (function (_super) {
40
- __extends(ValidationException, _super);
41
- function ValidationException(opts) {
42
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
43
- _this.name = "ValidationException";
44
- _this.$fault = "client";
45
- Object.setPrototypeOf(_this, ValidationException.prototype);
46
- return _this;
37
+ }
38
+ export class ValidationException extends __BaseException {
39
+ constructor(opts) {
40
+ super({
41
+ name: "ValidationException",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ this.name = "ValidationException";
46
+ this.$fault = "client";
47
+ Object.setPrototypeOf(this, ValidationException.prototype);
47
48
  }
48
- return ValidationException;
49
- }(__BaseException));
50
- export { ValidationException };
49
+ }
51
50
  export var SavingsPlanRateFilterName;
52
51
  (function (SavingsPlanRateFilterName) {
53
52
  SavingsPlanRateFilterName["INSTANCE_TYPE"] = "instanceType";
@@ -140,33 +139,93 @@ export var SavingsPlanOfferingPropertyKey;
140
139
  SavingsPlanOfferingPropertyKey["INSTANCE_FAMILY"] = "instanceFamily";
141
140
  SavingsPlanOfferingPropertyKey["REGION"] = "region";
142
141
  })(SavingsPlanOfferingPropertyKey || (SavingsPlanOfferingPropertyKey = {}));
143
- export var CreateSavingsPlanRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
144
- export var CreateSavingsPlanResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
145
- export var DeleteQueuedSavingsPlanRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
146
- export var DeleteQueuedSavingsPlanResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
147
- export var SavingsPlanRateFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
148
- export var DescribeSavingsPlanRatesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
149
- export var SavingsPlanRatePropertyFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
150
- export var SavingsPlanRateFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
151
- export var DescribeSavingsPlanRatesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
152
- export var SavingsPlanFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
153
- export var DescribeSavingsPlansRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
154
- export var SavingsPlanFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
155
- export var DescribeSavingsPlansResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
156
- export var SavingsPlanOfferingRateFilterElementFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
157
- export var DescribeSavingsPlansOfferingRatesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
158
- export var SavingsPlanOfferingRatePropertyFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
159
- export var ParentSavingsPlanOfferingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
160
- export var SavingsPlanOfferingRateFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
161
- export var DescribeSavingsPlansOfferingRatesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
162
- export var SavingsPlanOfferingFilterElementFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
163
- export var DescribeSavingsPlansOfferingsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
164
- export var SavingsPlanOfferingPropertyFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
165
- export var SavingsPlanOfferingFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
166
- export var DescribeSavingsPlansOfferingsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
167
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
168
- export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
169
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
170
- export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
171
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
172
- export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
142
+ export const CreateSavingsPlanRequestFilterSensitiveLog = (obj) => ({
143
+ ...obj,
144
+ });
145
+ export const CreateSavingsPlanResponseFilterSensitiveLog = (obj) => ({
146
+ ...obj,
147
+ });
148
+ export const DeleteQueuedSavingsPlanRequestFilterSensitiveLog = (obj) => ({
149
+ ...obj,
150
+ });
151
+ export const DeleteQueuedSavingsPlanResponseFilterSensitiveLog = (obj) => ({
152
+ ...obj,
153
+ });
154
+ export const SavingsPlanRateFilterFilterSensitiveLog = (obj) => ({
155
+ ...obj,
156
+ });
157
+ export const DescribeSavingsPlanRatesRequestFilterSensitiveLog = (obj) => ({
158
+ ...obj,
159
+ });
160
+ export const SavingsPlanRatePropertyFilterSensitiveLog = (obj) => ({
161
+ ...obj,
162
+ });
163
+ export const SavingsPlanRateFilterSensitiveLog = (obj) => ({
164
+ ...obj,
165
+ });
166
+ export const DescribeSavingsPlanRatesResponseFilterSensitiveLog = (obj) => ({
167
+ ...obj,
168
+ });
169
+ export const SavingsPlanFilterFilterSensitiveLog = (obj) => ({
170
+ ...obj,
171
+ });
172
+ export const DescribeSavingsPlansRequestFilterSensitiveLog = (obj) => ({
173
+ ...obj,
174
+ });
175
+ export const SavingsPlanFilterSensitiveLog = (obj) => ({
176
+ ...obj,
177
+ });
178
+ export const DescribeSavingsPlansResponseFilterSensitiveLog = (obj) => ({
179
+ ...obj,
180
+ });
181
+ export const SavingsPlanOfferingRateFilterElementFilterSensitiveLog = (obj) => ({
182
+ ...obj,
183
+ });
184
+ export const DescribeSavingsPlansOfferingRatesRequestFilterSensitiveLog = (obj) => ({
185
+ ...obj,
186
+ });
187
+ export const SavingsPlanOfferingRatePropertyFilterSensitiveLog = (obj) => ({
188
+ ...obj,
189
+ });
190
+ export const ParentSavingsPlanOfferingFilterSensitiveLog = (obj) => ({
191
+ ...obj,
192
+ });
193
+ export const SavingsPlanOfferingRateFilterSensitiveLog = (obj) => ({
194
+ ...obj,
195
+ });
196
+ export const DescribeSavingsPlansOfferingRatesResponseFilterSensitiveLog = (obj) => ({
197
+ ...obj,
198
+ });
199
+ export const SavingsPlanOfferingFilterElementFilterSensitiveLog = (obj) => ({
200
+ ...obj,
201
+ });
202
+ export const DescribeSavingsPlansOfferingsRequestFilterSensitiveLog = (obj) => ({
203
+ ...obj,
204
+ });
205
+ export const SavingsPlanOfferingPropertyFilterSensitiveLog = (obj) => ({
206
+ ...obj,
207
+ });
208
+ export const SavingsPlanOfferingFilterSensitiveLog = (obj) => ({
209
+ ...obj,
210
+ });
211
+ export const DescribeSavingsPlansOfferingsResponseFilterSensitiveLog = (obj) => ({
212
+ ...obj,
213
+ });
214
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
215
+ ...obj,
216
+ });
217
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
218
+ ...obj,
219
+ });
220
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
221
+ ...obj,
222
+ });
223
+ export const TagResourceResponseFilterSensitiveLog = (obj) => ({
224
+ ...obj,
225
+ });
226
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
227
+ ...obj,
228
+ });
229
+ export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
230
+ ...obj,
231
+ });