@aws-sdk/client-rbin 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 +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +27 -32
- package/dist-es/protocols/Aws_restJson1.js +15 -20
- package/package.json +26 -26
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-rbin
|
|
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
|
|
|
@@ -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
|
|
17
|
-
...(input.ResourceTags
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
...(input.
|
|
21
|
-
|
|
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
|
|
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
|
|
99
|
-
...(input.NextToken
|
|
100
|
-
...(input.ResourceTags
|
|
101
|
-
|
|
102
|
-
|
|
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
|
|
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
|
|
222
|
-
...(input.ResourceTags
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
...(input.
|
|
226
|
-
|
|
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
|
|
709
|
-
|
|
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
|
|
727
|
-
|
|
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
|
|
735
|
-
...(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
|
|
770
|
+
RetentionPeriod: output.RetentionPeriod != null
|
|
776
771
|
? deserializeAws_restJson1RetentionPeriod(output.RetentionPeriod, context)
|
|
777
772
|
: undefined,
|
|
778
773
|
};
|
|
@@ -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
|
|
18
|
-
|
|
19
|
-
|
|
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
|
|
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
|
|
109
|
-
|
|
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
|
|
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
|
|
243
|
-
|
|
244
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
941
|
+
RetentionPeriod: output.RetentionPeriod != null
|
|
947
942
|
? deserializeAws_restJson1RetentionPeriod(output.RetentionPeriod, context)
|
|
948
943
|
: undefined,
|
|
949
944
|
};
|
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.
|
|
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.
|
|
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.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.
|
|
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.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"
|