@aws-sdk/client-cost-and-usage-report-service 3.183.0 → 3.186.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 +19 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/CostAndUsageReportService.js +25 -18
- package/dist-es/CostAndUsageReportServiceClient.js +28 -22
- package/dist-es/commands/DeleteReportDefinitionCommand.js +28 -21
- package/dist-es/commands/DescribeReportDefinitionsCommand.js +28 -21
- package/dist-es/commands/ModifyReportDefinitionCommand.js +28 -21
- package/dist-es/commands/PutReportDefinitionCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CostAndUsageReportServiceServiceException.js +10 -5
- package/dist-es/models/models_0.js +58 -75
- package/dist-es/pagination/DescribeReportDefinitionsPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +410 -324
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cost-and-usage-report-service
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-cost-and-usage-report-service
|
|
@@ -385,10 +385,10 @@ const deserializeAws_json1_1ValidationException = (output, context) => {
|
|
|
385
385
|
};
|
|
386
386
|
};
|
|
387
387
|
const deserializeMetadata = (output) => {
|
|
388
|
-
var _a;
|
|
388
|
+
var _a, _b;
|
|
389
389
|
return ({
|
|
390
390
|
httpStatusCode: output.statusCode,
|
|
391
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
391
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
392
392
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
393
393
|
cfId: output.headers["x-amz-cf-id"],
|
|
394
394
|
});
|
|
@@ -1,63 +1,70 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { DeleteReportDefinitionCommand, } from "./commands/DeleteReportDefinitionCommand";
|
|
2
3
|
import { DescribeReportDefinitionsCommand, } from "./commands/DescribeReportDefinitionsCommand";
|
|
3
4
|
import { ModifyReportDefinitionCommand, } from "./commands/ModifyReportDefinitionCommand";
|
|
4
5
|
import { PutReportDefinitionCommand, } from "./commands/PutReportDefinitionCommand";
|
|
5
6
|
import { CostAndUsageReportServiceClient } from "./CostAndUsageReportServiceClient";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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);
|
|
9
14
|
if (typeof optionsOrCb === "function") {
|
|
10
15
|
this.send(command, optionsOrCb);
|
|
11
16
|
}
|
|
12
17
|
else if (typeof cb === "function") {
|
|
13
18
|
if (typeof optionsOrCb !== "object")
|
|
14
|
-
throw new Error(
|
|
19
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
15
20
|
this.send(command, optionsOrCb || {}, cb);
|
|
16
21
|
}
|
|
17
22
|
else {
|
|
18
23
|
return this.send(command, optionsOrCb);
|
|
19
24
|
}
|
|
20
|
-
}
|
|
21
|
-
describeReportDefinitions(args, optionsOrCb, cb) {
|
|
22
|
-
|
|
25
|
+
};
|
|
26
|
+
CostAndUsageReportService.prototype.describeReportDefinitions = function (args, optionsOrCb, cb) {
|
|
27
|
+
var command = new DescribeReportDefinitionsCommand(args);
|
|
23
28
|
if (typeof optionsOrCb === "function") {
|
|
24
29
|
this.send(command, optionsOrCb);
|
|
25
30
|
}
|
|
26
31
|
else if (typeof cb === "function") {
|
|
27
32
|
if (typeof optionsOrCb !== "object")
|
|
28
|
-
throw new Error(
|
|
33
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
29
34
|
this.send(command, optionsOrCb || {}, cb);
|
|
30
35
|
}
|
|
31
36
|
else {
|
|
32
37
|
return this.send(command, optionsOrCb);
|
|
33
38
|
}
|
|
34
|
-
}
|
|
35
|
-
modifyReportDefinition(args, optionsOrCb, cb) {
|
|
36
|
-
|
|
39
|
+
};
|
|
40
|
+
CostAndUsageReportService.prototype.modifyReportDefinition = function (args, optionsOrCb, cb) {
|
|
41
|
+
var command = new ModifyReportDefinitionCommand(args);
|
|
37
42
|
if (typeof optionsOrCb === "function") {
|
|
38
43
|
this.send(command, optionsOrCb);
|
|
39
44
|
}
|
|
40
45
|
else if (typeof cb === "function") {
|
|
41
46
|
if (typeof optionsOrCb !== "object")
|
|
42
|
-
throw new Error(
|
|
47
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
43
48
|
this.send(command, optionsOrCb || {}, cb);
|
|
44
49
|
}
|
|
45
50
|
else {
|
|
46
51
|
return this.send(command, optionsOrCb);
|
|
47
52
|
}
|
|
48
|
-
}
|
|
49
|
-
putReportDefinition(args, optionsOrCb, cb) {
|
|
50
|
-
|
|
53
|
+
};
|
|
54
|
+
CostAndUsageReportService.prototype.putReportDefinition = function (args, optionsOrCb, cb) {
|
|
55
|
+
var command = new PutReportDefinitionCommand(args);
|
|
51
56
|
if (typeof optionsOrCb === "function") {
|
|
52
57
|
this.send(command, optionsOrCb);
|
|
53
58
|
}
|
|
54
59
|
else if (typeof cb === "function") {
|
|
55
60
|
if (typeof optionsOrCb !== "object")
|
|
56
|
-
throw new Error(
|
|
61
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
57
62
|
this.send(command, optionsOrCb || {}, cb);
|
|
58
63
|
}
|
|
59
64
|
else {
|
|
60
65
|
return this.send(command, optionsOrCb);
|
|
61
66
|
}
|
|
62
|
-
}
|
|
63
|
-
|
|
67
|
+
};
|
|
68
|
+
return CostAndUsageReportService;
|
|
69
|
+
}(CostAndUsageReportServiceClient));
|
|
70
|
+
export { CostAndUsageReportService };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
CostAndUsageReportServiceClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return CostAndUsageReportServiceClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { CostAndUsageReportServiceClient };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteReportDefinitionRequestFilterSensitiveLog, DeleteReportDefinitionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1DeleteReportDefinitionCommand, serializeAws_json1_1DeleteReportDefinitionCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DeleteReportDefinitionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
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,
|
|
20
23
|
inputFilterSensitiveLog: DeleteReportDefinitionRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DeleteReportDefinitionResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_json1_1DeleteReportDefinitionCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DeleteReportDefinitionCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1DeleteReportDefinitionCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DeleteReportDefinitionCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteReportDefinitionCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DescribeReportDefinitionsRequestFilterSensitiveLog, DescribeReportDefinitionsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1DescribeReportDefinitionsCommand, serializeAws_json1_1DescribeReportDefinitionsCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DescribeReportDefinitionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
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,
|
|
20
23
|
inputFilterSensitiveLog: DescribeReportDefinitionsRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DescribeReportDefinitionsResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_json1_1DescribeReportDefinitionsCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DescribeReportDefinitionsCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1DescribeReportDefinitionsCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DescribeReportDefinitionsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeReportDefinitionsCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ModifyReportDefinitionRequestFilterSensitiveLog, ModifyReportDefinitionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1ModifyReportDefinitionCommand, serializeAws_json1_1ModifyReportDefinitionCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
ModifyReportDefinitionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
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,
|
|
20
23
|
inputFilterSensitiveLog: ModifyReportDefinitionRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: ModifyReportDefinitionResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_json1_1ModifyReportDefinitionCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
ModifyReportDefinitionCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1ModifyReportDefinitionCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return ModifyReportDefinitionCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ModifyReportDefinitionCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { PutReportDefinitionRequestFilterSensitiveLog, PutReportDefinitionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1PutReportDefinitionCommand, serializeAws_json1_1PutReportDefinitionCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
PutReportDefinitionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
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,
|
|
20
23
|
inputFilterSensitiveLog: PutReportDefinitionRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: PutReportDefinitionResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_json1_1PutReportDefinitionCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
PutReportDefinitionCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1PutReportDefinitionCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return PutReportDefinitionCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { PutReportDefinitionCommand };
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
var regionHash = {};
|
|
4
|
+
var partitionHash = {
|
|
4
5
|
aws: {
|
|
5
6
|
regions: [
|
|
6
7
|
"af-south-1",
|
|
@@ -120,9 +121,8 @@ const partitionHash = {
|
|
|
120
121
|
],
|
|
121
122
|
},
|
|
122
123
|
};
|
|
123
|
-
export
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
});
|
|
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
|
+
}); };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
return CostAndUsageReportServiceServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { CostAndUsageReportServiceServiceException };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
1
2
|
import { CostAndUsageReportServiceServiceException as __BaseException } from "./CostAndUsageReportServiceServiceException";
|
|
2
3
|
export var AdditionalArtifact;
|
|
3
4
|
(function (AdditionalArtifact) {
|
|
@@ -5,32 +6,32 @@ export var AdditionalArtifact;
|
|
|
5
6
|
AdditionalArtifact["QUICKSIGHT"] = "QUICKSIGHT";
|
|
6
7
|
AdditionalArtifact["REDSHIFT"] = "REDSHIFT";
|
|
7
8
|
})(AdditionalArtifact || (AdditionalArtifact = {}));
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Object.setPrototypeOf(this, InternalErrorException.prototype);
|
|
18
|
-
this.Message = opts.Message;
|
|
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;
|
|
19
18
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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;
|
|
32
31
|
}
|
|
33
|
-
|
|
32
|
+
return ValidationException;
|
|
33
|
+
}(__BaseException));
|
|
34
|
+
export { ValidationException };
|
|
34
35
|
export var SchemaElement;
|
|
35
36
|
(function (SchemaElement) {
|
|
36
37
|
SchemaElement["RESOURCES"] = "RESOURCES";
|
|
@@ -86,56 +87,38 @@ export var TimeUnit;
|
|
|
86
87
|
TimeUnit["HOURLY"] = "HOURLY";
|
|
87
88
|
TimeUnit["MONTHLY"] = "MONTHLY";
|
|
88
89
|
})(TimeUnit || (TimeUnit = {}));
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
Object.setPrototypeOf(this, DuplicateReportNameException.prototype);
|
|
99
|
-
this.Message = opts.Message;
|
|
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;
|
|
100
99
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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;
|
|
113
112
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
});
|
|
118
|
-
export
|
|
119
|
-
|
|
120
|
-
});
|
|
121
|
-
export
|
|
122
|
-
|
|
123
|
-
});
|
|
124
|
-
export
|
|
125
|
-
|
|
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
|
-
});
|
|
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)); };
|