@aws-sdk/client-applicationcostprofiler 3.121.0 → 3.127.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,14 @@
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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-applicationcostprofiler
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
15
 
8
16
 
@@ -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 !== undefined &&
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 !== undefined &&
114
- input.destinationS3Location !== null && {
112
+ ...(input.destinationS3Location != null && {
115
113
  destinationS3Location: serializeAws_restJson1S3Location(input.destinationS3Location, context),
116
114
  }),
117
- ...(input.format !== undefined && input.format !== null && { format: input.format }),
118
- ...(input.reportDescription !== undefined &&
119
- input.reportDescription !== null && { reportDescription: input.reportDescription }),
120
- ...(input.reportFrequency !== undefined &&
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 !== undefined &&
154
- input.destinationS3Location !== null && {
149
+ ...(input.destinationS3Location != null && {
155
150
  destinationS3Location: serializeAws_restJson1S3Location(input.destinationS3Location, context),
156
151
  }),
157
- ...(input.format !== undefined && input.format !== null && { format: input.format }),
158
- ...(input.reportDescription !== undefined &&
159
- input.reportDescription !== null && { reportDescription: input.reportDescription }),
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 !== undefined && input.bucket !== null && { bucket: input.bucket }),
550
- ...(input.prefix !== undefined && input.prefix !== null && { prefix: 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 !== undefined && input.bucket !== null && { bucket: input.bucket }),
556
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
557
- ...(input.region !== undefined && input.region !== null && { region: 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 !== undefined && output.createdAt !== null
563
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
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 !== undefined && output.lastUpdatedAt !== null
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),
@@ -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 !== undefined &&
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 !== undefined &&
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 !== undefined && input.format !== null && { format: input.format })), (input.reportDescription !== undefined &&
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 !== undefined &&
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 !== undefined && input.format !== null && { format: input.format })), (input.reportDescription !== undefined &&
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 !== undefined && input.bucket !== null && { bucket: input.bucket })), (input.prefix !== undefined && input.prefix !== null && { prefix: input.prefix }));
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 !== undefined && input.bucket !== null && { bucket: input.bucket })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.region !== undefined && input.region !== null && { region: input.region }));
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 !== undefined && output.createdAt !== null
701
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
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 !== undefined && output.lastUpdatedAt !== null
698
+ lastUpdatedAt: output.lastUpdatedAt != null
708
699
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
709
700
  : undefined,
710
701
  reportDescription: __expectString(output.reportDescription),
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.121.0",
4
+ "version": "3.127.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.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.127.0",
22
+ "@aws-sdk/config-resolver": "3.127.0",
23
+ "@aws-sdk/credential-provider-node": "3.127.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.127.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.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.127.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"