@aws-sdk/client-rbin 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 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-rbin
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-rbin
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
 
@@ -13,16 +13,15 @@ const serializeAws_restJson1CreateRuleCommand = async (input, context) => {
13
13
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/rules";
14
14
  let body;
15
15
  body = JSON.stringify({
16
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
17
- ...(input.ResourceTags !== undefined &&
18
- input.ResourceTags !== null && { ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context) }),
19
- ...(input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }),
20
- ...(input.RetentionPeriod !== undefined &&
21
- input.RetentionPeriod !== null && {
16
+ ...(input.Description != null && { Description: input.Description }),
17
+ ...(input.ResourceTags != null && {
18
+ ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context),
19
+ }),
20
+ ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
21
+ ...(input.RetentionPeriod != null && {
22
22
  RetentionPeriod: serializeAws_restJson1RetentionPeriod(input.RetentionPeriod, context),
23
23
  }),
24
- ...(input.Tags !== undefined &&
25
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
24
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
26
25
  });
27
26
  return new protocol_http_1.HttpRequest({
28
27
  protocol,
@@ -95,11 +94,12 @@ const serializeAws_restJson1ListRulesCommand = async (input, context) => {
95
94
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-rules";
96
95
  let body;
97
96
  body = JSON.stringify({
98
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
99
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
100
- ...(input.ResourceTags !== undefined &&
101
- input.ResourceTags !== null && { ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context) }),
102
- ...(input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }),
97
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
98
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
99
+ ...(input.ResourceTags != null && {
100
+ ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context),
101
+ }),
102
+ ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
103
103
  });
104
104
  return new protocol_http_1.HttpRequest({
105
105
  protocol,
@@ -156,8 +156,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
156
156
  }
157
157
  let body;
158
158
  body = JSON.stringify({
159
- ...(input.Tags !== undefined &&
160
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
159
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
161
160
  });
162
161
  return new protocol_http_1.HttpRequest({
163
162
  protocol,
@@ -218,12 +217,12 @@ const serializeAws_restJson1UpdateRuleCommand = async (input, context) => {
218
217
  }
219
218
  let body;
220
219
  body = JSON.stringify({
221
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
222
- ...(input.ResourceTags !== undefined &&
223
- input.ResourceTags !== null && { ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context) }),
224
- ...(input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }),
225
- ...(input.RetentionPeriod !== undefined &&
226
- input.RetentionPeriod !== null && {
220
+ ...(input.Description != null && { Description: input.Description }),
221
+ ...(input.ResourceTags != null && {
222
+ ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context),
223
+ }),
224
+ ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
225
+ ...(input.RetentionPeriod != null && {
227
226
  RetentionPeriod: serializeAws_restJson1RetentionPeriod(input.RetentionPeriod, context),
228
227
  }),
229
228
  });
@@ -705,10 +704,8 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
705
704
  };
706
705
  const serializeAws_restJson1ResourceTag = (input, context) => {
707
706
  return {
708
- ...(input.ResourceTagKey !== undefined &&
709
- input.ResourceTagKey !== null && { ResourceTagKey: input.ResourceTagKey }),
710
- ...(input.ResourceTagValue !== undefined &&
711
- input.ResourceTagValue !== null && { ResourceTagValue: input.ResourceTagValue }),
707
+ ...(input.ResourceTagKey != null && { ResourceTagKey: input.ResourceTagKey }),
708
+ ...(input.ResourceTagValue != null && { ResourceTagValue: input.ResourceTagValue }),
712
709
  };
713
710
  };
714
711
  const serializeAws_restJson1ResourceTags = (input, context) => {
@@ -723,16 +720,14 @@ const serializeAws_restJson1ResourceTags = (input, context) => {
723
720
  };
724
721
  const serializeAws_restJson1RetentionPeriod = (input, context) => {
725
722
  return {
726
- ...(input.RetentionPeriodUnit !== undefined &&
727
- input.RetentionPeriodUnit !== null && { RetentionPeriodUnit: input.RetentionPeriodUnit }),
728
- ...(input.RetentionPeriodValue !== undefined &&
729
- input.RetentionPeriodValue !== null && { RetentionPeriodValue: input.RetentionPeriodValue }),
723
+ ...(input.RetentionPeriodUnit != null && { RetentionPeriodUnit: input.RetentionPeriodUnit }),
724
+ ...(input.RetentionPeriodValue != null && { RetentionPeriodValue: input.RetentionPeriodValue }),
730
725
  };
731
726
  };
732
727
  const serializeAws_restJson1Tag = (input, context) => {
733
728
  return {
734
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
735
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
729
+ ...(input.Key != null && { Key: input.Key }),
730
+ ...(input.Value != null && { Value: input.Value }),
736
731
  };
737
732
  };
738
733
  const serializeAws_restJson1TagList = (input, context) => {
@@ -772,7 +767,7 @@ const deserializeAws_restJson1RuleSummary = (output, context) => {
772
767
  return {
773
768
  Description: (0, smithy_client_1.expectString)(output.Description),
774
769
  Identifier: (0, smithy_client_1.expectString)(output.Identifier),
775
- RetentionPeriod: output.RetentionPeriod !== undefined && output.RetentionPeriod !== null
770
+ RetentionPeriod: output.RetentionPeriod != null
776
771
  ? deserializeAws_restJson1RetentionPeriod(output.RetentionPeriod, context)
777
772
  : undefined,
778
773
  };
@@ -836,6 +831,9 @@ const loadRestJsonErrorCode = (output, data) => {
836
831
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
837
832
  const sanitizeErrorCode = (rawValue) => {
838
833
  let cleanValue = rawValue;
834
+ if (typeof cleanValue === "number") {
835
+ cleanValue = cleanValue.toString();
836
+ }
839
837
  if (cleanValue.indexOf(":") >= 0) {
840
838
  cleanValue = cleanValue.split(":")[0];
841
839
  }
@@ -14,12 +14,11 @@ export var serializeAws_restJson1CreateRuleCommand = function (input, context) {
14
14
  "content-type": "application/json",
15
15
  };
16
16
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/rules";
17
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.ResourceTags !== undefined &&
18
- input.ResourceTags !== null && { ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context) })), (input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType })), (input.RetentionPeriod !== undefined &&
19
- input.RetentionPeriod !== null && {
17
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.ResourceTags != null && {
18
+ ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context),
19
+ })), (input.ResourceType != null && { ResourceType: input.ResourceType })), (input.RetentionPeriod != null && {
20
20
  RetentionPeriod: serializeAws_restJson1RetentionPeriod(input.RetentionPeriod, context),
21
- })), (input.Tags !== undefined &&
22
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
21
+ })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
23
22
  return [2, new __HttpRequest({
24
23
  protocol: protocol,
25
24
  hostname: hostname,
@@ -105,8 +104,9 @@ export var serializeAws_restJson1ListRulesCommand = function (input, context) {
105
104
  "content-type": "application/json",
106
105
  };
107
106
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-rules";
108
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceTags !== undefined &&
109
- input.ResourceTags !== null && { ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context) })), (input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType })));
107
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceTags != null && {
108
+ ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context),
109
+ })), (input.ResourceType != null && { ResourceType: input.ResourceType })));
110
110
  return [2, new __HttpRequest({
111
111
  protocol: protocol,
112
112
  hostname: hostname,
@@ -171,8 +171,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
171
171
  else {
172
172
  throw new Error("No value provided for input HTTP label: ResourceArn.");
173
173
  }
174
- body = JSON.stringify(__assign({}, (input.Tags !== undefined &&
175
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
174
+ body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
176
175
  return [2, new __HttpRequest({
177
176
  protocol: protocol,
178
177
  hostname: hostname,
@@ -239,9 +238,9 @@ export var serializeAws_restJson1UpdateRuleCommand = function (input, context) {
239
238
  else {
240
239
  throw new Error("No value provided for input HTTP label: Identifier.");
241
240
  }
242
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.ResourceTags !== undefined &&
243
- input.ResourceTags !== null && { ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context) })), (input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType })), (input.RetentionPeriod !== undefined &&
244
- input.RetentionPeriod !== null && {
241
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.ResourceTags != null && {
242
+ ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context),
243
+ })), (input.ResourceType != null && { ResourceType: input.ResourceType })), (input.RetentionPeriod != null && {
245
244
  RetentionPeriod: serializeAws_restJson1RetentionPeriod(input.RetentionPeriod, context),
246
245
  })));
247
246
  return [2, new __HttpRequest({
@@ -884,9 +883,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
884
883
  });
885
884
  }); };
886
885
  var serializeAws_restJson1ResourceTag = function (input, context) {
887
- return __assign(__assign({}, (input.ResourceTagKey !== undefined &&
888
- input.ResourceTagKey !== null && { ResourceTagKey: input.ResourceTagKey })), (input.ResourceTagValue !== undefined &&
889
- input.ResourceTagValue !== null && { ResourceTagValue: input.ResourceTagValue }));
886
+ return __assign(__assign({}, (input.ResourceTagKey != null && { ResourceTagKey: input.ResourceTagKey })), (input.ResourceTagValue != null && { ResourceTagValue: input.ResourceTagValue }));
890
887
  };
891
888
  var serializeAws_restJson1ResourceTags = function (input, context) {
892
889
  return input
@@ -899,12 +896,10 @@ var serializeAws_restJson1ResourceTags = function (input, context) {
899
896
  });
900
897
  };
901
898
  var serializeAws_restJson1RetentionPeriod = function (input, context) {
902
- return __assign(__assign({}, (input.RetentionPeriodUnit !== undefined &&
903
- input.RetentionPeriodUnit !== null && { RetentionPeriodUnit: input.RetentionPeriodUnit })), (input.RetentionPeriodValue !== undefined &&
904
- input.RetentionPeriodValue !== null && { RetentionPeriodValue: input.RetentionPeriodValue }));
899
+ return __assign(__assign({}, (input.RetentionPeriodUnit != null && { RetentionPeriodUnit: input.RetentionPeriodUnit })), (input.RetentionPeriodValue != null && { RetentionPeriodValue: input.RetentionPeriodValue }));
905
900
  };
906
901
  var serializeAws_restJson1Tag = function (input, context) {
907
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
902
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
908
903
  };
909
904
  var serializeAws_restJson1TagList = function (input, context) {
910
905
  return input
@@ -943,7 +938,7 @@ var deserializeAws_restJson1RuleSummary = function (output, context) {
943
938
  return {
944
939
  Description: __expectString(output.Description),
945
940
  Identifier: __expectString(output.Identifier),
946
- RetentionPeriod: output.RetentionPeriod !== undefined && output.RetentionPeriod !== null
941
+ RetentionPeriod: output.RetentionPeriod != null
947
942
  ? deserializeAws_restJson1RetentionPeriod(output.RetentionPeriod, context)
948
943
  : undefined,
949
944
  };
@@ -1014,6 +1009,9 @@ var loadRestJsonErrorCode = function (output, data) {
1014
1009
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
1015
1010
  var sanitizeErrorCode = function (rawValue) {
1016
1011
  var cleanValue = rawValue;
1012
+ if (typeof cleanValue === "number") {
1013
+ cleanValue = cleanValue.toString();
1014
+ }
1017
1015
  if (cleanValue.indexOf(":") >= 0) {
1018
1016
  cleanValue = cleanValue.split(":")[0];
1019
1017
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rbin",
3
3
  "description": "AWS SDK for JavaScript Rbin Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
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.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.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.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.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"