@aws-sdk/client-rbin 3.474.0 → 3.477.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.
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UpdateRuleCommand = exports.de_UntagResourceCommand = exports.de_UnlockRuleCommand = exports.de_TagResourceCommand = exports.de_LockRuleCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRulesCommand = exports.de_GetRuleCommand = exports.de_DeleteRuleCommand = exports.de_CreateRuleCommand = exports.se_UpdateRuleCommand = exports.se_UntagResourceCommand = exports.se_UnlockRuleCommand = exports.se_TagResourceCommand = exports.se_LockRuleCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRulesCommand = exports.se_GetRuleCommand = exports.se_DeleteRuleCommand = exports.se_CreateRuleCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const RbinServiceException_1 = require("../models/RbinServiceException");
|
|
8
8
|
const se_CreateRuleCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
b.bp("/rules");
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
16
|
Description: [],
|
|
@@ -20,57 +20,36 @@ const se_CreateRuleCommand = async (input, context) => {
|
|
|
20
20
|
RetentionPeriod: (_) => (0, smithy_client_1._json)(_),
|
|
21
21
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
22
22
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
hostname,
|
|
26
|
-
port,
|
|
27
|
-
method: "POST",
|
|
28
|
-
headers,
|
|
29
|
-
path: resolvedPath,
|
|
30
|
-
body,
|
|
31
|
-
});
|
|
23
|
+
b.m("POST").h(headers).b(body);
|
|
24
|
+
return b.build();
|
|
32
25
|
};
|
|
33
26
|
exports.se_CreateRuleCommand = se_CreateRuleCommand;
|
|
34
27
|
const se_DeleteRuleCommand = async (input, context) => {
|
|
35
|
-
const
|
|
28
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
36
29
|
const headers = {};
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
b.bp("/rules/{Identifier}");
|
|
31
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
39
32
|
let body;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
hostname,
|
|
43
|
-
port,
|
|
44
|
-
method: "DELETE",
|
|
45
|
-
headers,
|
|
46
|
-
path: resolvedPath,
|
|
47
|
-
body,
|
|
48
|
-
});
|
|
33
|
+
b.m("DELETE").h(headers).b(body);
|
|
34
|
+
return b.build();
|
|
49
35
|
};
|
|
50
36
|
exports.se_DeleteRuleCommand = se_DeleteRuleCommand;
|
|
51
37
|
const se_GetRuleCommand = async (input, context) => {
|
|
52
|
-
const
|
|
38
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
53
39
|
const headers = {};
|
|
54
|
-
|
|
55
|
-
|
|
40
|
+
b.bp("/rules/{Identifier}");
|
|
41
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
56
42
|
let body;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
hostname,
|
|
60
|
-
port,
|
|
61
|
-
method: "GET",
|
|
62
|
-
headers,
|
|
63
|
-
path: resolvedPath,
|
|
64
|
-
body,
|
|
65
|
-
});
|
|
43
|
+
b.m("GET").h(headers).b(body);
|
|
44
|
+
return b.build();
|
|
66
45
|
};
|
|
67
46
|
exports.se_GetRuleCommand = se_GetRuleCommand;
|
|
68
47
|
const se_ListRulesCommand = async (input, context) => {
|
|
69
|
-
const
|
|
48
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
70
49
|
const headers = {
|
|
71
50
|
"content-type": "application/json",
|
|
72
51
|
};
|
|
73
|
-
|
|
52
|
+
b.bp("/list-rules");
|
|
74
53
|
let body;
|
|
75
54
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
76
55
|
LockState: [],
|
|
@@ -79,126 +58,83 @@ const se_ListRulesCommand = async (input, context) => {
|
|
|
79
58
|
ResourceTags: (_) => (0, smithy_client_1._json)(_),
|
|
80
59
|
ResourceType: [],
|
|
81
60
|
}));
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
hostname,
|
|
85
|
-
port,
|
|
86
|
-
method: "POST",
|
|
87
|
-
headers,
|
|
88
|
-
path: resolvedPath,
|
|
89
|
-
body,
|
|
90
|
-
});
|
|
61
|
+
b.m("POST").h(headers).b(body);
|
|
62
|
+
return b.build();
|
|
91
63
|
};
|
|
92
64
|
exports.se_ListRulesCommand = se_ListRulesCommand;
|
|
93
65
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
94
|
-
const
|
|
66
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
95
67
|
const headers = {};
|
|
96
|
-
|
|
97
|
-
|
|
68
|
+
b.bp("/tags/{ResourceArn}");
|
|
69
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
98
70
|
let body;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
hostname,
|
|
102
|
-
port,
|
|
103
|
-
method: "GET",
|
|
104
|
-
headers,
|
|
105
|
-
path: resolvedPath,
|
|
106
|
-
body,
|
|
107
|
-
});
|
|
71
|
+
b.m("GET").h(headers).b(body);
|
|
72
|
+
return b.build();
|
|
108
73
|
};
|
|
109
74
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
110
75
|
const se_LockRuleCommand = async (input, context) => {
|
|
111
|
-
const
|
|
76
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
112
77
|
const headers = {
|
|
113
78
|
"content-type": "application/json",
|
|
114
79
|
};
|
|
115
|
-
|
|
116
|
-
|
|
80
|
+
b.bp("/rules/{Identifier}/lock");
|
|
81
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
117
82
|
let body;
|
|
118
83
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
119
84
|
LockConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
120
85
|
}));
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
hostname,
|
|
124
|
-
port,
|
|
125
|
-
method: "PATCH",
|
|
126
|
-
headers,
|
|
127
|
-
path: resolvedPath,
|
|
128
|
-
body,
|
|
129
|
-
});
|
|
86
|
+
b.m("PATCH").h(headers).b(body);
|
|
87
|
+
return b.build();
|
|
130
88
|
};
|
|
131
89
|
exports.se_LockRuleCommand = se_LockRuleCommand;
|
|
132
90
|
const se_TagResourceCommand = async (input, context) => {
|
|
133
|
-
const
|
|
91
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
134
92
|
const headers = {
|
|
135
93
|
"content-type": "application/json",
|
|
136
94
|
};
|
|
137
|
-
|
|
138
|
-
|
|
95
|
+
b.bp("/tags/{ResourceArn}");
|
|
96
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
139
97
|
let body;
|
|
140
98
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
141
99
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
142
100
|
}));
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
hostname,
|
|
146
|
-
port,
|
|
147
|
-
method: "POST",
|
|
148
|
-
headers,
|
|
149
|
-
path: resolvedPath,
|
|
150
|
-
body,
|
|
151
|
-
});
|
|
101
|
+
b.m("POST").h(headers).b(body);
|
|
102
|
+
return b.build();
|
|
152
103
|
};
|
|
153
104
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
154
105
|
const se_UnlockRuleCommand = async (input, context) => {
|
|
155
|
-
const
|
|
106
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
156
107
|
const headers = {};
|
|
157
|
-
|
|
158
|
-
|
|
108
|
+
b.bp("/rules/{Identifier}/unlock");
|
|
109
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
159
110
|
let body;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
hostname,
|
|
163
|
-
port,
|
|
164
|
-
method: "PATCH",
|
|
165
|
-
headers,
|
|
166
|
-
path: resolvedPath,
|
|
167
|
-
body,
|
|
168
|
-
});
|
|
111
|
+
b.m("PATCH").h(headers).b(body);
|
|
112
|
+
return b.build();
|
|
169
113
|
};
|
|
170
114
|
exports.se_UnlockRuleCommand = se_UnlockRuleCommand;
|
|
171
115
|
const se_UntagResourceCommand = async (input, context) => {
|
|
172
|
-
const
|
|
116
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
173
117
|
const headers = {};
|
|
174
|
-
|
|
175
|
-
|
|
118
|
+
b.bp("/tags/{ResourceArn}");
|
|
119
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
176
120
|
const query = (0, smithy_client_1.map)({
|
|
177
|
-
|
|
121
|
+
[_tK]: [
|
|
178
122
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
179
|
-
() => (input
|
|
123
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
180
124
|
],
|
|
181
125
|
});
|
|
182
126
|
let body;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
hostname,
|
|
186
|
-
port,
|
|
187
|
-
method: "DELETE",
|
|
188
|
-
headers,
|
|
189
|
-
path: resolvedPath,
|
|
190
|
-
query,
|
|
191
|
-
body,
|
|
192
|
-
});
|
|
127
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
128
|
+
return b.build();
|
|
193
129
|
};
|
|
194
130
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
195
131
|
const se_UpdateRuleCommand = async (input, context) => {
|
|
196
|
-
const
|
|
132
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
197
133
|
const headers = {
|
|
198
134
|
"content-type": "application/json",
|
|
199
135
|
};
|
|
200
|
-
|
|
201
|
-
|
|
136
|
+
b.bp("/rules/{Identifier}");
|
|
137
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
202
138
|
let body;
|
|
203
139
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
204
140
|
Description: [],
|
|
@@ -206,15 +142,8 @@ const se_UpdateRuleCommand = async (input, context) => {
|
|
|
206
142
|
ResourceType: [],
|
|
207
143
|
RetentionPeriod: (_) => (0, smithy_client_1._json)(_),
|
|
208
144
|
}));
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
hostname,
|
|
212
|
-
port,
|
|
213
|
-
method: "PATCH",
|
|
214
|
-
headers,
|
|
215
|
-
path: resolvedPath,
|
|
216
|
-
body,
|
|
217
|
-
});
|
|
145
|
+
b.m("PATCH").h(headers).b(body);
|
|
146
|
+
return b.build();
|
|
218
147
|
};
|
|
219
148
|
exports.se_UpdateRuleCommand = se_UpdateRuleCommand;
|
|
220
149
|
const de_CreateRuleCommand = async (output, context) => {
|
|
@@ -746,6 +675,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
746
675
|
value !== "" &&
|
|
747
676
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
748
677
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
678
|
+
const _TK = "TagKeys";
|
|
679
|
+
const _tK = "tagKeys";
|
|
749
680
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
750
681
|
if (encoded.length) {
|
|
751
682
|
return JSON.parse(encoded);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { RbinServiceException as __BaseException } from "../models/RbinServiceException";
|
|
5
5
|
export const se_CreateRuleCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
b.bp("/rules");
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify(take(input, {
|
|
13
13
|
Description: [],
|
|
@@ -17,54 +17,33 @@ export const se_CreateRuleCommand = async (input, context) => {
|
|
|
17
17
|
RetentionPeriod: (_) => _json(_),
|
|
18
18
|
Tags: (_) => _json(_),
|
|
19
19
|
}));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
hostname,
|
|
23
|
-
port,
|
|
24
|
-
method: "POST",
|
|
25
|
-
headers,
|
|
26
|
-
path: resolvedPath,
|
|
27
|
-
body,
|
|
28
|
-
});
|
|
20
|
+
b.m("POST").h(headers).b(body);
|
|
21
|
+
return b.build();
|
|
29
22
|
};
|
|
30
23
|
export const se_DeleteRuleCommand = async (input, context) => {
|
|
31
|
-
const
|
|
24
|
+
const b = rb(input, context);
|
|
32
25
|
const headers = {};
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
b.bp("/rules/{Identifier}");
|
|
27
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
35
28
|
let body;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
hostname,
|
|
39
|
-
port,
|
|
40
|
-
method: "DELETE",
|
|
41
|
-
headers,
|
|
42
|
-
path: resolvedPath,
|
|
43
|
-
body,
|
|
44
|
-
});
|
|
29
|
+
b.m("DELETE").h(headers).b(body);
|
|
30
|
+
return b.build();
|
|
45
31
|
};
|
|
46
32
|
export const se_GetRuleCommand = async (input, context) => {
|
|
47
|
-
const
|
|
33
|
+
const b = rb(input, context);
|
|
48
34
|
const headers = {};
|
|
49
|
-
|
|
50
|
-
|
|
35
|
+
b.bp("/rules/{Identifier}");
|
|
36
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
51
37
|
let body;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
hostname,
|
|
55
|
-
port,
|
|
56
|
-
method: "GET",
|
|
57
|
-
headers,
|
|
58
|
-
path: resolvedPath,
|
|
59
|
-
body,
|
|
60
|
-
});
|
|
38
|
+
b.m("GET").h(headers).b(body);
|
|
39
|
+
return b.build();
|
|
61
40
|
};
|
|
62
41
|
export const se_ListRulesCommand = async (input, context) => {
|
|
63
|
-
const
|
|
42
|
+
const b = rb(input, context);
|
|
64
43
|
const headers = {
|
|
65
44
|
"content-type": "application/json",
|
|
66
45
|
};
|
|
67
|
-
|
|
46
|
+
b.bp("/list-rules");
|
|
68
47
|
let body;
|
|
69
48
|
body = JSON.stringify(take(input, {
|
|
70
49
|
LockState: [],
|
|
@@ -73,120 +52,77 @@ export const se_ListRulesCommand = async (input, context) => {
|
|
|
73
52
|
ResourceTags: (_) => _json(_),
|
|
74
53
|
ResourceType: [],
|
|
75
54
|
}));
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
hostname,
|
|
79
|
-
port,
|
|
80
|
-
method: "POST",
|
|
81
|
-
headers,
|
|
82
|
-
path: resolvedPath,
|
|
83
|
-
body,
|
|
84
|
-
});
|
|
55
|
+
b.m("POST").h(headers).b(body);
|
|
56
|
+
return b.build();
|
|
85
57
|
};
|
|
86
58
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
87
|
-
const
|
|
59
|
+
const b = rb(input, context);
|
|
88
60
|
const headers = {};
|
|
89
|
-
|
|
90
|
-
|
|
61
|
+
b.bp("/tags/{ResourceArn}");
|
|
62
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
91
63
|
let body;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
hostname,
|
|
95
|
-
port,
|
|
96
|
-
method: "GET",
|
|
97
|
-
headers,
|
|
98
|
-
path: resolvedPath,
|
|
99
|
-
body,
|
|
100
|
-
});
|
|
64
|
+
b.m("GET").h(headers).b(body);
|
|
65
|
+
return b.build();
|
|
101
66
|
};
|
|
102
67
|
export const se_LockRuleCommand = async (input, context) => {
|
|
103
|
-
const
|
|
68
|
+
const b = rb(input, context);
|
|
104
69
|
const headers = {
|
|
105
70
|
"content-type": "application/json",
|
|
106
71
|
};
|
|
107
|
-
|
|
108
|
-
|
|
72
|
+
b.bp("/rules/{Identifier}/lock");
|
|
73
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
109
74
|
let body;
|
|
110
75
|
body = JSON.stringify(take(input, {
|
|
111
76
|
LockConfiguration: (_) => _json(_),
|
|
112
77
|
}));
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
hostname,
|
|
116
|
-
port,
|
|
117
|
-
method: "PATCH",
|
|
118
|
-
headers,
|
|
119
|
-
path: resolvedPath,
|
|
120
|
-
body,
|
|
121
|
-
});
|
|
78
|
+
b.m("PATCH").h(headers).b(body);
|
|
79
|
+
return b.build();
|
|
122
80
|
};
|
|
123
81
|
export const se_TagResourceCommand = async (input, context) => {
|
|
124
|
-
const
|
|
82
|
+
const b = rb(input, context);
|
|
125
83
|
const headers = {
|
|
126
84
|
"content-type": "application/json",
|
|
127
85
|
};
|
|
128
|
-
|
|
129
|
-
|
|
86
|
+
b.bp("/tags/{ResourceArn}");
|
|
87
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
130
88
|
let body;
|
|
131
89
|
body = JSON.stringify(take(input, {
|
|
132
90
|
Tags: (_) => _json(_),
|
|
133
91
|
}));
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
hostname,
|
|
137
|
-
port,
|
|
138
|
-
method: "POST",
|
|
139
|
-
headers,
|
|
140
|
-
path: resolvedPath,
|
|
141
|
-
body,
|
|
142
|
-
});
|
|
92
|
+
b.m("POST").h(headers).b(body);
|
|
93
|
+
return b.build();
|
|
143
94
|
};
|
|
144
95
|
export const se_UnlockRuleCommand = async (input, context) => {
|
|
145
|
-
const
|
|
96
|
+
const b = rb(input, context);
|
|
146
97
|
const headers = {};
|
|
147
|
-
|
|
148
|
-
|
|
98
|
+
b.bp("/rules/{Identifier}/unlock");
|
|
99
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
149
100
|
let body;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
hostname,
|
|
153
|
-
port,
|
|
154
|
-
method: "PATCH",
|
|
155
|
-
headers,
|
|
156
|
-
path: resolvedPath,
|
|
157
|
-
body,
|
|
158
|
-
});
|
|
101
|
+
b.m("PATCH").h(headers).b(body);
|
|
102
|
+
return b.build();
|
|
159
103
|
};
|
|
160
104
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
161
|
-
const
|
|
105
|
+
const b = rb(input, context);
|
|
162
106
|
const headers = {};
|
|
163
|
-
|
|
164
|
-
|
|
107
|
+
b.bp("/tags/{ResourceArn}");
|
|
108
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
165
109
|
const query = map({
|
|
166
|
-
|
|
110
|
+
[_tK]: [
|
|
167
111
|
__expectNonNull(input.TagKeys, `TagKeys`) != null,
|
|
168
|
-
() => (input
|
|
112
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
169
113
|
],
|
|
170
114
|
});
|
|
171
115
|
let body;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
hostname,
|
|
175
|
-
port,
|
|
176
|
-
method: "DELETE",
|
|
177
|
-
headers,
|
|
178
|
-
path: resolvedPath,
|
|
179
|
-
query,
|
|
180
|
-
body,
|
|
181
|
-
});
|
|
116
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
117
|
+
return b.build();
|
|
182
118
|
};
|
|
183
119
|
export const se_UpdateRuleCommand = async (input, context) => {
|
|
184
|
-
const
|
|
120
|
+
const b = rb(input, context);
|
|
185
121
|
const headers = {
|
|
186
122
|
"content-type": "application/json",
|
|
187
123
|
};
|
|
188
|
-
|
|
189
|
-
|
|
124
|
+
b.bp("/rules/{Identifier}");
|
|
125
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
190
126
|
let body;
|
|
191
127
|
body = JSON.stringify(take(input, {
|
|
192
128
|
Description: [],
|
|
@@ -194,15 +130,8 @@ export const se_UpdateRuleCommand = async (input, context) => {
|
|
|
194
130
|
ResourceType: [],
|
|
195
131
|
RetentionPeriod: (_) => _json(_),
|
|
196
132
|
}));
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
hostname,
|
|
200
|
-
port,
|
|
201
|
-
method: "PATCH",
|
|
202
|
-
headers,
|
|
203
|
-
path: resolvedPath,
|
|
204
|
-
body,
|
|
205
|
-
});
|
|
133
|
+
b.m("PATCH").h(headers).b(body);
|
|
134
|
+
return b.build();
|
|
206
135
|
};
|
|
207
136
|
export const de_CreateRuleCommand = async (output, context) => {
|
|
208
137
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -723,6 +652,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
723
652
|
value !== "" &&
|
|
724
653
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
725
654
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
655
|
+
const _TK = "TagKeys";
|
|
656
|
+
const _tK = "tagKeys";
|
|
726
657
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
727
658
|
if (encoded.length) {
|
|
728
659
|
return JSON.parse(encoded);
|
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.477.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|