@aws-sdk/client-cost-and-usage-report-service 3.186.0 → 3.190.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,22 @@
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.190.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.189.0...v3.190.0) (2022-10-17)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-cost-and-usage-report-service
9
+
10
+
11
+
12
+
13
+
14
+ # [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-cost-and-usage-report-service
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
23
 
8
24
  **Note:** Version bump only for package @aws-sdk/client-cost-and-usage-report-service
@@ -1,70 +1,63 @@
1
- import { __extends } from "tslib";
2
1
  import { DeleteReportDefinitionCommand, } from "./commands/DeleteReportDefinitionCommand";
3
2
  import { DescribeReportDefinitionsCommand, } from "./commands/DescribeReportDefinitionsCommand";
4
3
  import { ModifyReportDefinitionCommand, } from "./commands/ModifyReportDefinitionCommand";
5
4
  import { PutReportDefinitionCommand, } from "./commands/PutReportDefinitionCommand";
6
5
  import { CostAndUsageReportServiceClient } from "./CostAndUsageReportServiceClient";
7
- var CostAndUsageReportService = (function (_super) {
8
- __extends(CostAndUsageReportService, _super);
9
- function CostAndUsageReportService() {
10
- return _super !== null && _super.apply(this, arguments) || this;
11
- }
12
- CostAndUsageReportService.prototype.deleteReportDefinition = function (args, optionsOrCb, cb) {
13
- var command = new DeleteReportDefinitionCommand(args);
6
+ export class CostAndUsageReportService extends CostAndUsageReportServiceClient {
7
+ deleteReportDefinition(args, optionsOrCb, cb) {
8
+ const command = new DeleteReportDefinitionCommand(args);
14
9
  if (typeof optionsOrCb === "function") {
15
10
  this.send(command, optionsOrCb);
16
11
  }
17
12
  else if (typeof cb === "function") {
18
13
  if (typeof optionsOrCb !== "object")
19
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
14
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
20
15
  this.send(command, optionsOrCb || {}, cb);
21
16
  }
22
17
  else {
23
18
  return this.send(command, optionsOrCb);
24
19
  }
25
- };
26
- CostAndUsageReportService.prototype.describeReportDefinitions = function (args, optionsOrCb, cb) {
27
- var command = new DescribeReportDefinitionsCommand(args);
20
+ }
21
+ describeReportDefinitions(args, optionsOrCb, cb) {
22
+ const command = new DescribeReportDefinitionsCommand(args);
28
23
  if (typeof optionsOrCb === "function") {
29
24
  this.send(command, optionsOrCb);
30
25
  }
31
26
  else if (typeof cb === "function") {
32
27
  if (typeof optionsOrCb !== "object")
33
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
28
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
34
29
  this.send(command, optionsOrCb || {}, cb);
35
30
  }
36
31
  else {
37
32
  return this.send(command, optionsOrCb);
38
33
  }
39
- };
40
- CostAndUsageReportService.prototype.modifyReportDefinition = function (args, optionsOrCb, cb) {
41
- var command = new ModifyReportDefinitionCommand(args);
34
+ }
35
+ modifyReportDefinition(args, optionsOrCb, cb) {
36
+ const command = new ModifyReportDefinitionCommand(args);
42
37
  if (typeof optionsOrCb === "function") {
43
38
  this.send(command, optionsOrCb);
44
39
  }
45
40
  else if (typeof cb === "function") {
46
41
  if (typeof optionsOrCb !== "object")
47
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
42
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
48
43
  this.send(command, optionsOrCb || {}, cb);
49
44
  }
50
45
  else {
51
46
  return this.send(command, optionsOrCb);
52
47
  }
53
- };
54
- CostAndUsageReportService.prototype.putReportDefinition = function (args, optionsOrCb, cb) {
55
- var command = new PutReportDefinitionCommand(args);
48
+ }
49
+ putReportDefinition(args, optionsOrCb, cb) {
50
+ const command = new PutReportDefinitionCommand(args);
56
51
  if (typeof optionsOrCb === "function") {
57
52
  this.send(command, optionsOrCb);
58
53
  }
59
54
  else if (typeof cb === "function") {
60
55
  if (typeof optionsOrCb !== "object")
61
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
56
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
62
57
  this.send(command, optionsOrCb || {}, cb);
63
58
  }
64
59
  else {
65
60
  return this.send(command, optionsOrCb);
66
61
  }
67
- };
68
- return CostAndUsageReportService;
69
- }(CostAndUsageReportServiceClient));
70
- export { CostAndUsageReportService };
62
+ }
63
+ }
@@ -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 CostAndUsageReportServiceClient = (function (_super) {
13
- __extends(CostAndUsageReportServiceClient, _super);
14
- function CostAndUsageReportServiceClient(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 CostAndUsageReportServiceClient 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
- CostAndUsageReportServiceClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return CostAndUsageReportServiceClient;
38
- }(__Client));
39
- export { CostAndUsageReportServiceClient };
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, DeleteReportDefinitionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteReportDefinitionCommand, serializeAws_json1_1DeleteReportDefinitionCommand, } from "../protocols/Aws_json1_1";
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 = "CostAndUsageReportServiceClient";
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 = "CostAndUsageReportServiceClient";
15
+ const commandName = "DeleteReportDefinitionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteReportDefinitionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteReportDefinitionResponseFilterSensitiveLog,
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_json1_1DeleteReportDefinitionCommand(input, context);
33
- };
34
- DeleteReportDefinitionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteReportDefinitionCommand(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 { DescribeReportDefinitionsRequestFilterSensitiveLog, DescribeReportDefinitionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeReportDefinitionsCommand, serializeAws_json1_1DescribeReportDefinitionsCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeReportDefinitionsCommand = (function (_super) {
7
- __extends(DescribeReportDefinitionsCommand, _super);
8
- function DescribeReportDefinitionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeReportDefinitionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeReportDefinitionsCommand.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 = "CostAndUsageReportServiceClient";
18
- var commandName = "DescribeReportDefinitionsCommand";
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 = "CostAndUsageReportServiceClient";
15
+ const commandName = "DescribeReportDefinitionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeReportDefinitionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeReportDefinitionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeReportDefinitionsCommand.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_json1_1DescribeReportDefinitionsCommand(input, context);
33
- };
34
- DescribeReportDefinitionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeReportDefinitionsCommand(output, context);
36
- };
37
- return DescribeReportDefinitionsCommand;
38
- }($Command));
39
- export { DescribeReportDefinitionsCommand };
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 { ModifyReportDefinitionRequestFilterSensitiveLog, ModifyReportDefinitionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ModifyReportDefinitionCommand, serializeAws_json1_1ModifyReportDefinitionCommand, } from "../protocols/Aws_json1_1";
6
- var ModifyReportDefinitionCommand = (function (_super) {
7
- __extends(ModifyReportDefinitionCommand, _super);
8
- function ModifyReportDefinitionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ModifyReportDefinitionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ModifyReportDefinitionCommand.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 = "CostAndUsageReportServiceClient";
18
- var commandName = "ModifyReportDefinitionCommand";
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 = "CostAndUsageReportServiceClient";
15
+ const commandName = "ModifyReportDefinitionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ModifyReportDefinitionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ModifyReportDefinitionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ModifyReportDefinitionCommand.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_json1_1ModifyReportDefinitionCommand(input, context);
33
- };
34
- ModifyReportDefinitionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ModifyReportDefinitionCommand(output, context);
36
- };
37
- return ModifyReportDefinitionCommand;
38
- }($Command));
39
- export { ModifyReportDefinitionCommand };
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, PutReportDefinitionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutReportDefinitionCommand, serializeAws_json1_1PutReportDefinitionCommand, } from "../protocols/Aws_json1_1";
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 = "CostAndUsageReportServiceClient";
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 = "CostAndUsageReportServiceClient";
15
+ const commandName = "PutReportDefinitionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutReportDefinitionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutReportDefinitionResponseFilterSensitiveLog,
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_json1_1PutReportDefinitionCommand(input, context);
33
- };
34
- PutReportDefinitionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutReportDefinitionCommand(output, context);
36
- };
37
- return PutReportDefinitionCommand;
38
- }($Command));
39
- export { PutReportDefinitionCommand };
31
+ }
32
+ }
@@ -1,7 +1,6 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {};
4
- var partitionHash = {
2
+ const regionHash = {};
3
+ const partitionHash = {
5
4
  aws: {
6
5
  regions: [
7
6
  "af-south-1",
@@ -121,8 +120,9 @@ var partitionHash = {
121
120
  ],
122
121
  },
123
122
  };
124
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
- return __generator(this, function (_a) {
126
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "cur", regionHash: regionHash, partitionHash: partitionHash }))];
127
- });
128
- }); };
123
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
+ ...options,
125
+ signingService: "cur",
126
+ regionHash,
127
+ partitionHash,
128
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var CostAndUsageReportServiceServiceException = (function (_super) {
4
- __extends(CostAndUsageReportServiceServiceException, _super);
5
- function CostAndUsageReportServiceServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, CostAndUsageReportServiceServiceException.prototype);
8
- return _this;
2
+ export class CostAndUsageReportServiceServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, CostAndUsageReportServiceServiceException.prototype);
9
6
  }
10
- return CostAndUsageReportServiceServiceException;
11
- }(__ServiceException));
12
- export { CostAndUsageReportServiceServiceException };
7
+ }
@@ -1,4 +1,3 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { CostAndUsageReportServiceServiceException as __BaseException } from "./CostAndUsageReportServiceServiceException";
3
2
  export var AdditionalArtifact;
4
3
  (function (AdditionalArtifact) {
@@ -6,32 +5,32 @@ export var AdditionalArtifact;
6
5
  AdditionalArtifact["QUICKSIGHT"] = "QUICKSIGHT";
7
6
  AdditionalArtifact["REDSHIFT"] = "REDSHIFT";
8
7
  })(AdditionalArtifact || (AdditionalArtifact = {}));
9
- var InternalErrorException = (function (_super) {
10
- __extends(InternalErrorException, _super);
11
- function InternalErrorException(opts) {
12
- var _this = _super.call(this, __assign({ name: "InternalErrorException", $fault: "server" }, opts)) || this;
13
- _this.name = "InternalErrorException";
14
- _this.$fault = "server";
15
- Object.setPrototypeOf(_this, InternalErrorException.prototype);
16
- _this.Message = opts.Message;
17
- return _this;
8
+ export class InternalErrorException extends __BaseException {
9
+ constructor(opts) {
10
+ super({
11
+ name: "InternalErrorException",
12
+ $fault: "server",
13
+ ...opts,
14
+ });
15
+ this.name = "InternalErrorException";
16
+ this.$fault = "server";
17
+ Object.setPrototypeOf(this, InternalErrorException.prototype);
18
+ this.Message = opts.Message;
18
19
  }
19
- return InternalErrorException;
20
- }(__BaseException));
21
- export { InternalErrorException };
22
- var ValidationException = (function (_super) {
23
- __extends(ValidationException, _super);
24
- function ValidationException(opts) {
25
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
26
- _this.name = "ValidationException";
27
- _this.$fault = "client";
28
- Object.setPrototypeOf(_this, ValidationException.prototype);
29
- _this.Message = opts.Message;
30
- return _this;
20
+ }
21
+ export class ValidationException extends __BaseException {
22
+ constructor(opts) {
23
+ super({
24
+ name: "ValidationException",
25
+ $fault: "client",
26
+ ...opts,
27
+ });
28
+ this.name = "ValidationException";
29
+ this.$fault = "client";
30
+ Object.setPrototypeOf(this, ValidationException.prototype);
31
+ this.Message = opts.Message;
31
32
  }
32
- return ValidationException;
33
- }(__BaseException));
34
- export { ValidationException };
33
+ }
35
34
  export var SchemaElement;
36
35
  (function (SchemaElement) {
37
36
  SchemaElement["RESOURCES"] = "RESOURCES";
@@ -87,38 +86,56 @@ export var TimeUnit;
87
86
  TimeUnit["HOURLY"] = "HOURLY";
88
87
  TimeUnit["MONTHLY"] = "MONTHLY";
89
88
  })(TimeUnit || (TimeUnit = {}));
90
- var DuplicateReportNameException = (function (_super) {
91
- __extends(DuplicateReportNameException, _super);
92
- function DuplicateReportNameException(opts) {
93
- var _this = _super.call(this, __assign({ name: "DuplicateReportNameException", $fault: "client" }, opts)) || this;
94
- _this.name = "DuplicateReportNameException";
95
- _this.$fault = "client";
96
- Object.setPrototypeOf(_this, DuplicateReportNameException.prototype);
97
- _this.Message = opts.Message;
98
- return _this;
89
+ export class DuplicateReportNameException extends __BaseException {
90
+ constructor(opts) {
91
+ super({
92
+ name: "DuplicateReportNameException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ this.name = "DuplicateReportNameException";
97
+ this.$fault = "client";
98
+ Object.setPrototypeOf(this, DuplicateReportNameException.prototype);
99
+ this.Message = opts.Message;
99
100
  }
100
- return DuplicateReportNameException;
101
- }(__BaseException));
102
- export { DuplicateReportNameException };
103
- var ReportLimitReachedException = (function (_super) {
104
- __extends(ReportLimitReachedException, _super);
105
- function ReportLimitReachedException(opts) {
106
- var _this = _super.call(this, __assign({ name: "ReportLimitReachedException", $fault: "client" }, opts)) || this;
107
- _this.name = "ReportLimitReachedException";
108
- _this.$fault = "client";
109
- Object.setPrototypeOf(_this, ReportLimitReachedException.prototype);
110
- _this.Message = opts.Message;
111
- return _this;
101
+ }
102
+ export class ReportLimitReachedException extends __BaseException {
103
+ constructor(opts) {
104
+ super({
105
+ name: "ReportLimitReachedException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ this.name = "ReportLimitReachedException";
110
+ this.$fault = "client";
111
+ Object.setPrototypeOf(this, ReportLimitReachedException.prototype);
112
+ this.Message = opts.Message;
112
113
  }
113
- return ReportLimitReachedException;
114
- }(__BaseException));
115
- export { ReportLimitReachedException };
116
- export var DeleteReportDefinitionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
117
- export var DeleteReportDefinitionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
118
- export var DescribeReportDefinitionsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
119
- export var ReportDefinitionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
120
- export var DescribeReportDefinitionsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
121
- export var ModifyReportDefinitionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
122
- export var ModifyReportDefinitionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
123
- export var PutReportDefinitionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
124
- export var PutReportDefinitionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
114
+ }
115
+ export const DeleteReportDefinitionRequestFilterSensitiveLog = (obj) => ({
116
+ ...obj,
117
+ });
118
+ export const DeleteReportDefinitionResponseFilterSensitiveLog = (obj) => ({
119
+ ...obj,
120
+ });
121
+ export const DescribeReportDefinitionsRequestFilterSensitiveLog = (obj) => ({
122
+ ...obj,
123
+ });
124
+ export const ReportDefinitionFilterSensitiveLog = (obj) => ({
125
+ ...obj,
126
+ });
127
+ export const DescribeReportDefinitionsResponseFilterSensitiveLog = (obj) => ({
128
+ ...obj,
129
+ });
130
+ export const ModifyReportDefinitionRequestFilterSensitiveLog = (obj) => ({
131
+ ...obj,
132
+ });
133
+ export const ModifyReportDefinitionResponseFilterSensitiveLog = (obj) => ({
134
+ ...obj,
135
+ });
136
+ export const PutReportDefinitionRequestFilterSensitiveLog = (obj) => ({
137
+ ...obj,
138
+ });
139
+ export const PutReportDefinitionResponseFilterSensitiveLog = (obj) => ({
140
+ ...obj,
141
+ });