@aws-sdk/client-cost-and-usage-report-service 3.309.0 → 3.312.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_1.js +10 -16
- package/dist-es/protocols/Aws_json1_1.js +10 -16
- package/package.json +35 -35
|
@@ -6,40 +6,28 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
6
6
|
const CostAndUsageReportServiceServiceException_1 = require("../models/CostAndUsageReportServiceServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_DeleteReportDefinitionCommand = async (input, context) => {
|
|
9
|
-
const headers =
|
|
10
|
-
"content-type": "application/x-amz-json-1.1",
|
|
11
|
-
"x-amz-target": "AWSOrigamiServiceGatewayService.DeleteReportDefinition",
|
|
12
|
-
};
|
|
9
|
+
const headers = sharedHeaders("DeleteReportDefinition");
|
|
13
10
|
let body;
|
|
14
11
|
body = JSON.stringify(se_DeleteReportDefinitionRequest(input, context));
|
|
15
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
13
|
};
|
|
17
14
|
exports.se_DeleteReportDefinitionCommand = se_DeleteReportDefinitionCommand;
|
|
18
15
|
const se_DescribeReportDefinitionsCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-amz-json-1.1",
|
|
21
|
-
"x-amz-target": "AWSOrigamiServiceGatewayService.DescribeReportDefinitions",
|
|
22
|
-
};
|
|
16
|
+
const headers = sharedHeaders("DescribeReportDefinitions");
|
|
23
17
|
let body;
|
|
24
18
|
body = JSON.stringify(se_DescribeReportDefinitionsRequest(input, context));
|
|
25
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
20
|
};
|
|
27
21
|
exports.se_DescribeReportDefinitionsCommand = se_DescribeReportDefinitionsCommand;
|
|
28
22
|
const se_ModifyReportDefinitionCommand = async (input, context) => {
|
|
29
|
-
const headers =
|
|
30
|
-
"content-type": "application/x-amz-json-1.1",
|
|
31
|
-
"x-amz-target": "AWSOrigamiServiceGatewayService.ModifyReportDefinition",
|
|
32
|
-
};
|
|
23
|
+
const headers = sharedHeaders("ModifyReportDefinition");
|
|
33
24
|
let body;
|
|
34
25
|
body = JSON.stringify(se_ModifyReportDefinitionRequest(input, context));
|
|
35
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
27
|
};
|
|
37
28
|
exports.se_ModifyReportDefinitionCommand = se_ModifyReportDefinitionCommand;
|
|
38
29
|
const se_PutReportDefinitionCommand = async (input, context) => {
|
|
39
|
-
const headers =
|
|
40
|
-
"content-type": "application/x-amz-json-1.1",
|
|
41
|
-
"x-amz-target": "AWSOrigamiServiceGatewayService.PutReportDefinition",
|
|
42
|
-
};
|
|
30
|
+
const headers = sharedHeaders("PutReportDefinition");
|
|
43
31
|
let body;
|
|
44
32
|
body = JSON.stringify(se_PutReportDefinitionRequest(input, context));
|
|
45
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -407,6 +395,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
407
395
|
}
|
|
408
396
|
return new protocol_http_1.HttpRequest(contents);
|
|
409
397
|
};
|
|
398
|
+
function sharedHeaders(operation) {
|
|
399
|
+
return {
|
|
400
|
+
"content-type": "application/x-amz-json-1.1",
|
|
401
|
+
"x-amz-target": `AWSOrigamiServiceGatewayService.${operation}`,
|
|
402
|
+
};
|
|
403
|
+
}
|
|
410
404
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
411
405
|
if (encoded.length) {
|
|
412
406
|
return JSON.parse(encoded);
|
|
@@ -3,37 +3,25 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { CostAndUsageReportServiceServiceException as __BaseException } from "../models/CostAndUsageReportServiceServiceException";
|
|
4
4
|
import { DuplicateReportNameException, InternalErrorException, ReportLimitReachedException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_DeleteReportDefinitionCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "AWSOrigamiServiceGatewayService.DeleteReportDefinition",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("DeleteReportDefinition");
|
|
10
7
|
let body;
|
|
11
8
|
body = JSON.stringify(se_DeleteReportDefinitionRequest(input, context));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_DescribeReportDefinitionsCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "AWSOrigamiServiceGatewayService.DescribeReportDefinitions",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("DescribeReportDefinitions");
|
|
19
13
|
let body;
|
|
20
14
|
body = JSON.stringify(se_DescribeReportDefinitionsRequest(input, context));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_ModifyReportDefinitionCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "AWSOrigamiServiceGatewayService.ModifyReportDefinition",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("ModifyReportDefinition");
|
|
28
19
|
let body;
|
|
29
20
|
body = JSON.stringify(se_ModifyReportDefinitionRequest(input, context));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_PutReportDefinitionCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "AWSOrigamiServiceGatewayService.PutReportDefinition",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("PutReportDefinition");
|
|
37
25
|
let body;
|
|
38
26
|
body = JSON.stringify(se_PutReportDefinitionRequest(input, context));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -396,6 +384,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
396
384
|
}
|
|
397
385
|
return new __HttpRequest(contents);
|
|
398
386
|
};
|
|
387
|
+
function sharedHeaders(operation) {
|
|
388
|
+
return {
|
|
389
|
+
"content-type": "application/x-amz-json-1.1",
|
|
390
|
+
"x-amz-target": `AWSOrigamiServiceGatewayService.${operation}`,
|
|
391
|
+
};
|
|
392
|
+
}
|
|
399
393
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
400
394
|
if (encoded.length) {
|
|
401
395
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cost-and-usage-report-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cost And Usage Report Service Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.312.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,42 +21,42 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
55
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.312.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.310.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.310.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.310.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.310.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.310.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.310.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.310.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.310.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.310.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.310.0",
|
|
44
|
+
"@aws-sdk/types": "3.310.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.310.0",
|
|
46
|
+
"@aws-sdk/util-base64": "3.310.0",
|
|
47
|
+
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
|
+
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.310.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.310.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.310.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.310.0",
|
|
55
|
+
"@aws-sdk/util-utf8": "3.310.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
59
|
+
"@aws-sdk/service-client-documentation-generator": "3.310.0",
|
|
60
60
|
"@tsconfig/node14": "1.0.3",
|
|
61
61
|
"@types/node": "^14.14.31",
|
|
62
62
|
"concurrently": "7.0.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"files": [
|
|
79
|
-
"dist
|
|
79
|
+
"dist-*/**"
|
|
80
80
|
],
|
|
81
81
|
"author": {
|
|
82
82
|
"name": "AWS SDK for JavaScript Team",
|