@aws-sdk/client-applicationcostprofiler 3.121.0 → 3.130.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +21 -27
- package/dist-es/protocols/Aws_restJson1.js +13 -19
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-applicationcostprofiler
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-applicationcostprofiler
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -65,8 +65,7 @@ const serializeAws_restJson1ImportApplicationUsageCommand = async (input, contex
|
|
|
65
65
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/importApplicationUsage";
|
|
66
66
|
let body;
|
|
67
67
|
body = JSON.stringify({
|
|
68
|
-
...(input.sourceS3Location
|
|
69
|
-
input.sourceS3Location !== null && {
|
|
68
|
+
...(input.sourceS3Location != null && {
|
|
70
69
|
sourceS3Location: serializeAws_restJson1SourceS3Location(input.sourceS3Location, context),
|
|
71
70
|
}),
|
|
72
71
|
});
|
|
@@ -110,16 +109,13 @@ const serializeAws_restJson1PutReportDefinitionCommand = async (input, context)
|
|
|
110
109
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/reportDefinition";
|
|
111
110
|
let body;
|
|
112
111
|
body = JSON.stringify({
|
|
113
|
-
...(input.destinationS3Location
|
|
114
|
-
input.destinationS3Location !== null && {
|
|
112
|
+
...(input.destinationS3Location != null && {
|
|
115
113
|
destinationS3Location: serializeAws_restJson1S3Location(input.destinationS3Location, context),
|
|
116
114
|
}),
|
|
117
|
-
...(input.format
|
|
118
|
-
...(input.reportDescription
|
|
119
|
-
|
|
120
|
-
...(input.
|
|
121
|
-
input.reportFrequency !== null && { reportFrequency: input.reportFrequency }),
|
|
122
|
-
...(input.reportId !== undefined && input.reportId !== null && { reportId: input.reportId }),
|
|
115
|
+
...(input.format != null && { format: input.format }),
|
|
116
|
+
...(input.reportDescription != null && { reportDescription: input.reportDescription }),
|
|
117
|
+
...(input.reportFrequency != null && { reportFrequency: input.reportFrequency }),
|
|
118
|
+
...(input.reportId != null && { reportId: input.reportId }),
|
|
123
119
|
});
|
|
124
120
|
return new protocol_http_1.HttpRequest({
|
|
125
121
|
protocol,
|
|
@@ -150,15 +146,12 @@ const serializeAws_restJson1UpdateReportDefinitionCommand = async (input, contex
|
|
|
150
146
|
}
|
|
151
147
|
let body;
|
|
152
148
|
body = JSON.stringify({
|
|
153
|
-
...(input.destinationS3Location
|
|
154
|
-
input.destinationS3Location !== null && {
|
|
149
|
+
...(input.destinationS3Location != null && {
|
|
155
150
|
destinationS3Location: serializeAws_restJson1S3Location(input.destinationS3Location, context),
|
|
156
151
|
}),
|
|
157
|
-
...(input.format
|
|
158
|
-
...(input.reportDescription
|
|
159
|
-
|
|
160
|
-
...(input.reportFrequency !== undefined &&
|
|
161
|
-
input.reportFrequency !== null && { reportFrequency: input.reportFrequency }),
|
|
152
|
+
...(input.format != null && { format: input.format }),
|
|
153
|
+
...(input.reportDescription != null && { reportDescription: input.reportDescription }),
|
|
154
|
+
...(input.reportFrequency != null && { reportFrequency: input.reportFrequency }),
|
|
162
155
|
});
|
|
163
156
|
return new protocol_http_1.HttpRequest({
|
|
164
157
|
protocol,
|
|
@@ -546,27 +539,25 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
546
539
|
};
|
|
547
540
|
const serializeAws_restJson1S3Location = (input, context) => {
|
|
548
541
|
return {
|
|
549
|
-
...(input.bucket
|
|
550
|
-
...(input.prefix
|
|
542
|
+
...(input.bucket != null && { bucket: input.bucket }),
|
|
543
|
+
...(input.prefix != null && { prefix: input.prefix }),
|
|
551
544
|
};
|
|
552
545
|
};
|
|
553
546
|
const serializeAws_restJson1SourceS3Location = (input, context) => {
|
|
554
547
|
return {
|
|
555
|
-
...(input.bucket
|
|
556
|
-
...(input.key
|
|
557
|
-
...(input.region
|
|
548
|
+
...(input.bucket != null && { bucket: input.bucket }),
|
|
549
|
+
...(input.key != null && { key: input.key }),
|
|
550
|
+
...(input.region != null && { region: input.region }),
|
|
558
551
|
};
|
|
559
552
|
};
|
|
560
553
|
const deserializeAws_restJson1ReportDefinition = (output, context) => {
|
|
561
554
|
return {
|
|
562
|
-
createdAt: output.createdAt
|
|
563
|
-
|
|
564
|
-
: undefined,
|
|
565
|
-
destinationS3Location: output.destinationS3Location !== undefined && output.destinationS3Location !== null
|
|
555
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
556
|
+
destinationS3Location: output.destinationS3Location != null
|
|
566
557
|
? deserializeAws_restJson1S3Location(output.destinationS3Location, context)
|
|
567
558
|
: undefined,
|
|
568
559
|
format: (0, smithy_client_1.expectString)(output.format),
|
|
569
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
560
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
570
561
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
571
562
|
: undefined,
|
|
572
563
|
reportDescription: (0, smithy_client_1.expectString)(output.reportDescription),
|
|
@@ -622,6 +613,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
622
613
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
623
614
|
const sanitizeErrorCode = (rawValue) => {
|
|
624
615
|
let cleanValue = rawValue;
|
|
616
|
+
if (typeof cleanValue === "number") {
|
|
617
|
+
cleanValue = cleanValue.toString();
|
|
618
|
+
}
|
|
625
619
|
if (cleanValue.indexOf(":") >= 0) {
|
|
626
620
|
cleanValue = cleanValue.split(":")[0];
|
|
627
621
|
}
|
|
@@ -76,8 +76,7 @@ export var serializeAws_restJson1ImportApplicationUsageCommand = function (input
|
|
|
76
76
|
"content-type": "application/json",
|
|
77
77
|
};
|
|
78
78
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/importApplicationUsage";
|
|
79
|
-
body = JSON.stringify(__assign({}, (input.sourceS3Location
|
|
80
|
-
input.sourceS3Location !== null && {
|
|
79
|
+
body = JSON.stringify(__assign({}, (input.sourceS3Location != null && {
|
|
81
80
|
sourceS3Location: serializeAws_restJson1SourceS3Location(input.sourceS3Location, context),
|
|
82
81
|
})));
|
|
83
82
|
return [2, new __HttpRequest({
|
|
@@ -126,12 +125,9 @@ export var serializeAws_restJson1PutReportDefinitionCommand = function (input, c
|
|
|
126
125
|
"content-type": "application/json",
|
|
127
126
|
};
|
|
128
127
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/reportDefinition";
|
|
129
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.destinationS3Location
|
|
130
|
-
input.destinationS3Location !== null && {
|
|
128
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.destinationS3Location != null && {
|
|
131
129
|
destinationS3Location: serializeAws_restJson1S3Location(input.destinationS3Location, context),
|
|
132
|
-
})), (input.format
|
|
133
|
-
input.reportDescription !== null && { reportDescription: input.reportDescription })), (input.reportFrequency !== undefined &&
|
|
134
|
-
input.reportFrequency !== null && { reportFrequency: input.reportFrequency })), (input.reportId !== undefined && input.reportId !== null && { reportId: input.reportId })));
|
|
130
|
+
})), (input.format != null && { format: input.format })), (input.reportDescription != null && { reportDescription: input.reportDescription })), (input.reportFrequency != null && { reportFrequency: input.reportFrequency })), (input.reportId != null && { reportId: input.reportId })));
|
|
135
131
|
return [2, new __HttpRequest({
|
|
136
132
|
protocol: protocol,
|
|
137
133
|
hostname: hostname,
|
|
@@ -165,12 +161,9 @@ export var serializeAws_restJson1UpdateReportDefinitionCommand = function (input
|
|
|
165
161
|
else {
|
|
166
162
|
throw new Error("No value provided for input HTTP label: reportId.");
|
|
167
163
|
}
|
|
168
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.destinationS3Location
|
|
169
|
-
input.destinationS3Location !== null && {
|
|
164
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.destinationS3Location != null && {
|
|
170
165
|
destinationS3Location: serializeAws_restJson1S3Location(input.destinationS3Location, context),
|
|
171
|
-
})), (input.format
|
|
172
|
-
input.reportDescription !== null && { reportDescription: input.reportDescription })), (input.reportFrequency !== undefined &&
|
|
173
|
-
input.reportFrequency !== null && { reportFrequency: input.reportFrequency })));
|
|
166
|
+
})), (input.format != null && { format: input.format })), (input.reportDescription != null && { reportDescription: input.reportDescription })), (input.reportFrequency != null && { reportFrequency: input.reportFrequency })));
|
|
174
167
|
return [2, new __HttpRequest({
|
|
175
168
|
protocol: protocol,
|
|
176
169
|
hostname: hostname,
|
|
@@ -690,21 +683,19 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
690
683
|
});
|
|
691
684
|
}); };
|
|
692
685
|
var serializeAws_restJson1S3Location = function (input, context) {
|
|
693
|
-
return __assign(__assign({}, (input.bucket
|
|
686
|
+
return __assign(__assign({}, (input.bucket != null && { bucket: input.bucket })), (input.prefix != null && { prefix: input.prefix }));
|
|
694
687
|
};
|
|
695
688
|
var serializeAws_restJson1SourceS3Location = function (input, context) {
|
|
696
|
-
return __assign(__assign(__assign({}, (input.bucket
|
|
689
|
+
return __assign(__assign(__assign({}, (input.bucket != null && { bucket: input.bucket })), (input.key != null && { key: input.key })), (input.region != null && { region: input.region }));
|
|
697
690
|
};
|
|
698
691
|
var deserializeAws_restJson1ReportDefinition = function (output, context) {
|
|
699
692
|
return {
|
|
700
|
-
createdAt: output.createdAt
|
|
701
|
-
|
|
702
|
-
: undefined,
|
|
703
|
-
destinationS3Location: output.destinationS3Location !== undefined && output.destinationS3Location !== null
|
|
693
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
694
|
+
destinationS3Location: output.destinationS3Location != null
|
|
704
695
|
? deserializeAws_restJson1S3Location(output.destinationS3Location, context)
|
|
705
696
|
: undefined,
|
|
706
697
|
format: __expectString(output.format),
|
|
707
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
698
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
708
699
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
709
700
|
: undefined,
|
|
710
701
|
reportDescription: __expectString(output.reportDescription),
|
|
@@ -767,6 +758,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
767
758
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
768
759
|
var sanitizeErrorCode = function (rawValue) {
|
|
769
760
|
var cleanValue = rawValue;
|
|
761
|
+
if (typeof cleanValue === "number") {
|
|
762
|
+
cleanValue = cleanValue.toString();
|
|
763
|
+
}
|
|
770
764
|
if (cleanValue.indexOf(":") >= 0) {
|
|
771
765
|
cleanValue = cleanValue.split(":")[0];
|
|
772
766
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-applicationcostprofiler",
|
|
3
3
|
"description": "AWS SDK for JavaScript Applicationcostprofiler Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.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",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|