@aws-sdk/client-applicationcostprofiler 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 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-applicationcostprofiler
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-applicationcostprofiler
@@ -154,7 +154,7 @@ exports.deserializeAws_restJson1DeleteReportDefinitionCommand = deserializeAws_r
154
154
  const deserializeAws_restJson1DeleteReportDefinitionCommandError = async (output, context) => {
155
155
  const parsedOutput = {
156
156
  ...output,
157
- body: await parseBody(output.body, context),
157
+ body: await parseErrorBody(output.body, context),
158
158
  };
159
159
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
160
160
  switch (errorCode) {
@@ -215,7 +215,7 @@ exports.deserializeAws_restJson1GetReportDefinitionCommand = deserializeAws_rest
215
215
  const deserializeAws_restJson1GetReportDefinitionCommandError = async (output, context) => {
216
216
  const parsedOutput = {
217
217
  ...output,
218
- body: await parseBody(output.body, context),
218
+ body: await parseErrorBody(output.body, context),
219
219
  };
220
220
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
221
221
  switch (errorCode) {
@@ -258,7 +258,7 @@ exports.deserializeAws_restJson1ImportApplicationUsageCommand = deserializeAws_r
258
258
  const deserializeAws_restJson1ImportApplicationUsageCommandError = async (output, context) => {
259
259
  const parsedOutput = {
260
260
  ...output,
261
- body: await parseBody(output.body, context),
261
+ body: await parseErrorBody(output.body, context),
262
262
  };
263
263
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
264
264
  switch (errorCode) {
@@ -304,7 +304,7 @@ exports.deserializeAws_restJson1ListReportDefinitionsCommand = deserializeAws_re
304
304
  const deserializeAws_restJson1ListReportDefinitionsCommandError = async (output, context) => {
305
305
  const parsedOutput = {
306
306
  ...output,
307
- body: await parseBody(output.body, context),
307
+ body: await parseErrorBody(output.body, context),
308
308
  };
309
309
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
310
310
  switch (errorCode) {
@@ -347,7 +347,7 @@ exports.deserializeAws_restJson1PutReportDefinitionCommand = deserializeAws_rest
347
347
  const deserializeAws_restJson1PutReportDefinitionCommandError = async (output, context) => {
348
348
  const parsedOutput = {
349
349
  ...output,
350
- body: await parseBody(output.body, context),
350
+ body: await parseErrorBody(output.body, context),
351
351
  };
352
352
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
353
353
  switch (errorCode) {
@@ -393,7 +393,7 @@ exports.deserializeAws_restJson1UpdateReportDefinitionCommand = deserializeAws_r
393
393
  const deserializeAws_restJson1UpdateReportDefinitionCommandError = async (output, context) => {
394
394
  const parsedOutput = {
395
395
  ...output,
396
- body: await parseBody(output.body, context),
396
+ body: await parseErrorBody(output.body, context),
397
397
  };
398
398
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
399
399
  switch (errorCode) {
@@ -552,6 +552,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
552
552
  }
553
553
  return {};
554
554
  });
555
+ const parseErrorBody = async (errorBody, context) => {
556
+ var _a;
557
+ const value = await parseBody(errorBody, context);
558
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
559
+ return value;
560
+ };
555
561
  const loadRestJsonErrorCode = (output, data) => {
556
562
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
557
563
  const sanitizeErrorCode = (rawValue) => {
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { ApplicationCostProfilerClient } from "./ApplicationCostProfilerClient";
3
2
  import { DeleteReportDefinitionCommand, } from "./commands/DeleteReportDefinitionCommand";
4
3
  import { GetReportDefinitionCommand, } from "./commands/GetReportDefinitionCommand";
@@ -6,95 +5,89 @@ import { ImportApplicationUsageCommand, } from "./commands/ImportApplicationUsag
6
5
  import { ListReportDefinitionsCommand, } from "./commands/ListReportDefinitionsCommand";
7
6
  import { PutReportDefinitionCommand, } from "./commands/PutReportDefinitionCommand";
8
7
  import { UpdateReportDefinitionCommand, } from "./commands/UpdateReportDefinitionCommand";
9
- var ApplicationCostProfiler = (function (_super) {
10
- __extends(ApplicationCostProfiler, _super);
11
- function ApplicationCostProfiler() {
12
- return _super !== null && _super.apply(this, arguments) || this;
13
- }
14
- ApplicationCostProfiler.prototype.deleteReportDefinition = function (args, optionsOrCb, cb) {
15
- var command = new DeleteReportDefinitionCommand(args);
8
+ export class ApplicationCostProfiler extends ApplicationCostProfilerClient {
9
+ deleteReportDefinition(args, optionsOrCb, cb) {
10
+ const command = new DeleteReportDefinitionCommand(args);
16
11
  if (typeof optionsOrCb === "function") {
17
12
  this.send(command, optionsOrCb);
18
13
  }
19
14
  else if (typeof cb === "function") {
20
15
  if (typeof optionsOrCb !== "object")
21
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
16
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
22
17
  this.send(command, optionsOrCb || {}, cb);
23
18
  }
24
19
  else {
25
20
  return this.send(command, optionsOrCb);
26
21
  }
27
- };
28
- ApplicationCostProfiler.prototype.getReportDefinition = function (args, optionsOrCb, cb) {
29
- var command = new GetReportDefinitionCommand(args);
22
+ }
23
+ getReportDefinition(args, optionsOrCb, cb) {
24
+ const command = new GetReportDefinitionCommand(args);
30
25
  if (typeof optionsOrCb === "function") {
31
26
  this.send(command, optionsOrCb);
32
27
  }
33
28
  else if (typeof cb === "function") {
34
29
  if (typeof optionsOrCb !== "object")
35
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
30
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
36
31
  this.send(command, optionsOrCb || {}, cb);
37
32
  }
38
33
  else {
39
34
  return this.send(command, optionsOrCb);
40
35
  }
41
- };
42
- ApplicationCostProfiler.prototype.importApplicationUsage = function (args, optionsOrCb, cb) {
43
- var command = new ImportApplicationUsageCommand(args);
36
+ }
37
+ importApplicationUsage(args, optionsOrCb, cb) {
38
+ const command = new ImportApplicationUsageCommand(args);
44
39
  if (typeof optionsOrCb === "function") {
45
40
  this.send(command, optionsOrCb);
46
41
  }
47
42
  else if (typeof cb === "function") {
48
43
  if (typeof optionsOrCb !== "object")
49
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
44
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
50
45
  this.send(command, optionsOrCb || {}, cb);
51
46
  }
52
47
  else {
53
48
  return this.send(command, optionsOrCb);
54
49
  }
55
- };
56
- ApplicationCostProfiler.prototype.listReportDefinitions = function (args, optionsOrCb, cb) {
57
- var command = new ListReportDefinitionsCommand(args);
50
+ }
51
+ listReportDefinitions(args, optionsOrCb, cb) {
52
+ const command = new ListReportDefinitionsCommand(args);
58
53
  if (typeof optionsOrCb === "function") {
59
54
  this.send(command, optionsOrCb);
60
55
  }
61
56
  else if (typeof cb === "function") {
62
57
  if (typeof optionsOrCb !== "object")
63
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
58
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
64
59
  this.send(command, optionsOrCb || {}, cb);
65
60
  }
66
61
  else {
67
62
  return this.send(command, optionsOrCb);
68
63
  }
69
- };
70
- ApplicationCostProfiler.prototype.putReportDefinition = function (args, optionsOrCb, cb) {
71
- var command = new PutReportDefinitionCommand(args);
64
+ }
65
+ putReportDefinition(args, optionsOrCb, cb) {
66
+ const command = new PutReportDefinitionCommand(args);
72
67
  if (typeof optionsOrCb === "function") {
73
68
  this.send(command, optionsOrCb);
74
69
  }
75
70
  else if (typeof cb === "function") {
76
71
  if (typeof optionsOrCb !== "object")
77
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
72
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
78
73
  this.send(command, optionsOrCb || {}, cb);
79
74
  }
80
75
  else {
81
76
  return this.send(command, optionsOrCb);
82
77
  }
83
- };
84
- ApplicationCostProfiler.prototype.updateReportDefinition = function (args, optionsOrCb, cb) {
85
- var command = new UpdateReportDefinitionCommand(args);
78
+ }
79
+ updateReportDefinition(args, optionsOrCb, cb) {
80
+ const command = new UpdateReportDefinitionCommand(args);
86
81
  if (typeof optionsOrCb === "function") {
87
82
  this.send(command, optionsOrCb);
88
83
  }
89
84
  else if (typeof cb === "function") {
90
85
  if (typeof optionsOrCb !== "object")
91
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
86
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
92
87
  this.send(command, optionsOrCb || {}, cb);
93
88
  }
94
89
  else {
95
90
  return this.send(command, optionsOrCb);
96
91
  }
97
- };
98
- return ApplicationCostProfiler;
99
- }(ApplicationCostProfilerClient));
100
- export { ApplicationCostProfiler };
92
+ }
93
+ }
@@ -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
- var ApplicationCostProfilerClient = (function (_super) {
13
- __extends(ApplicationCostProfilerClient, _super);
14
- function ApplicationCostProfilerClient(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;
11
+ export class ApplicationCostProfilerClient 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
- ApplicationCostProfilerClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return ApplicationCostProfilerClient;
38
- }(__Client));
39
- export { ApplicationCostProfilerClient };
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 { DeleteReportDefinitionRequestFilterSensitiveLog, DeleteReportDefinitionResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteReportDefinitionCommand, serializeAws_restJson1DeleteReportDefinitionCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteReportDefinitionCommand = (function (_super) {
7
- __extends(DeleteReportDefinitionCommand, _super);
8
- function DeleteReportDefinitionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteReportDefinitionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteReportDefinitionCommand.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 = "ApplicationCostProfilerClient";
18
- var commandName = "DeleteReportDefinitionCommand";
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 = "ApplicationCostProfilerClient";
15
+ const commandName = "DeleteReportDefinitionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteReportDefinitionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteReportDefinitionResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteReportDefinitionCommand.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_restJson1DeleteReportDefinitionCommand(input, context);
33
- };
34
- DeleteReportDefinitionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteReportDefinitionCommand(output, context);
36
- };
37
- return DeleteReportDefinitionCommand;
38
- }($Command));
39
- export { DeleteReportDefinitionCommand };
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 { GetReportDefinitionRequestFilterSensitiveLog, GetReportDefinitionResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetReportDefinitionCommand, serializeAws_restJson1GetReportDefinitionCommand, } from "../protocols/Aws_restJson1";
6
- var GetReportDefinitionCommand = (function (_super) {
7
- __extends(GetReportDefinitionCommand, _super);
8
- function GetReportDefinitionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetReportDefinitionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetReportDefinitionCommand.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 = "ApplicationCostProfilerClient";
18
- var commandName = "GetReportDefinitionCommand";
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 = "ApplicationCostProfilerClient";
15
+ const commandName = "GetReportDefinitionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetReportDefinitionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetReportDefinitionResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetReportDefinitionCommand.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_restJson1GetReportDefinitionCommand(input, context);
33
- };
34
- GetReportDefinitionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetReportDefinitionCommand(output, context);
36
- };
37
- return GetReportDefinitionCommand;
38
- }($Command));
39
- export { GetReportDefinitionCommand };
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 { ImportApplicationUsageRequestFilterSensitiveLog, ImportApplicationUsageResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ImportApplicationUsageCommand, serializeAws_restJson1ImportApplicationUsageCommand, } from "../protocols/Aws_restJson1";
6
- var ImportApplicationUsageCommand = (function (_super) {
7
- __extends(ImportApplicationUsageCommand, _super);
8
- function ImportApplicationUsageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ImportApplicationUsageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ImportApplicationUsageCommand.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 = "ApplicationCostProfilerClient";
18
- var commandName = "ImportApplicationUsageCommand";
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 = "ApplicationCostProfilerClient";
15
+ const commandName = "ImportApplicationUsageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ImportApplicationUsageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ImportApplicationUsageResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ImportApplicationUsageCommand.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_restJson1ImportApplicationUsageCommand(input, context);
33
- };
34
- ImportApplicationUsageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ImportApplicationUsageCommand(output, context);
36
- };
37
- return ImportApplicationUsageCommand;
38
- }($Command));
39
- export { ImportApplicationUsageCommand };
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 { ListReportDefinitionsRequestFilterSensitiveLog, ListReportDefinitionsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListReportDefinitionsCommand, serializeAws_restJson1ListReportDefinitionsCommand, } from "../protocols/Aws_restJson1";
6
- var ListReportDefinitionsCommand = (function (_super) {
7
- __extends(ListReportDefinitionsCommand, _super);
8
- function ListReportDefinitionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListReportDefinitionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListReportDefinitionsCommand.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 = "ApplicationCostProfilerClient";
18
- var commandName = "ListReportDefinitionsCommand";
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 = "ApplicationCostProfilerClient";
15
+ const commandName = "ListReportDefinitionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListReportDefinitionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListReportDefinitionsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListReportDefinitionsCommand.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_restJson1ListReportDefinitionsCommand(input, context);
33
- };
34
- ListReportDefinitionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListReportDefinitionsCommand(output, context);
36
- };
37
- return ListReportDefinitionsCommand;
38
- }($Command));
39
- export { ListReportDefinitionsCommand };
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 { PutReportDefinitionRequestFilterSensitiveLog, PutReportDefinitionResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1PutReportDefinitionCommand, serializeAws_restJson1PutReportDefinitionCommand, } from "../protocols/Aws_restJson1";
6
- var PutReportDefinitionCommand = (function (_super) {
7
- __extends(PutReportDefinitionCommand, _super);
8
- function PutReportDefinitionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutReportDefinitionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutReportDefinitionCommand.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 = "ApplicationCostProfilerClient";
18
- var commandName = "PutReportDefinitionCommand";
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 = "ApplicationCostProfilerClient";
15
+ const commandName = "PutReportDefinitionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutReportDefinitionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutReportDefinitionResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutReportDefinitionCommand.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_restJson1PutReportDefinitionCommand(input, context);
33
- };
34
- PutReportDefinitionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1PutReportDefinitionCommand(output, context);
36
- };
37
- return PutReportDefinitionCommand;
38
- }($Command));
39
- export { PutReportDefinitionCommand };
31
+ }
32
+ }