@aws-sdk/client-rbin 3.928.0 → 3.929.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/dist-cjs/index.js +397 -505
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/RbinClient.js +2 -0
- package/dist-es/commands/CreateRuleCommand.js +3 -9
- package/dist-es/commands/DeleteRuleCommand.js +3 -9
- package/dist-es/commands/GetRuleCommand.js +3 -9
- package/dist-es/commands/ListRulesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/LockRuleCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UnlockRuleCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateRuleCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +364 -0
- package/dist-types/RbinClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +49 -0
- package/dist-types/ts3.4/RbinClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +54 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -423
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -92
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -125
|
@@ -1,423 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
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";
|
|
4
|
-
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
5
|
-
import { RbinServiceException as __BaseException } from "../models/RbinServiceException";
|
|
6
|
-
export const se_CreateRuleCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/rules");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
Description: [],
|
|
15
|
-
ExcludeResourceTags: (_) => _json(_),
|
|
16
|
-
LockConfiguration: (_) => _json(_),
|
|
17
|
-
ResourceTags: (_) => _json(_),
|
|
18
|
-
ResourceType: [],
|
|
19
|
-
RetentionPeriod: (_) => _json(_),
|
|
20
|
-
Tags: (_) => _json(_),
|
|
21
|
-
}));
|
|
22
|
-
b.m("POST").h(headers).b(body);
|
|
23
|
-
return b.build();
|
|
24
|
-
};
|
|
25
|
-
export const se_DeleteRuleCommand = async (input, context) => {
|
|
26
|
-
const b = rb(input, context);
|
|
27
|
-
const headers = {};
|
|
28
|
-
b.bp("/rules/{Identifier}");
|
|
29
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
30
|
-
let body;
|
|
31
|
-
b.m("DELETE").h(headers).b(body);
|
|
32
|
-
return b.build();
|
|
33
|
-
};
|
|
34
|
-
export const se_GetRuleCommand = async (input, context) => {
|
|
35
|
-
const b = rb(input, context);
|
|
36
|
-
const headers = {};
|
|
37
|
-
b.bp("/rules/{Identifier}");
|
|
38
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
39
|
-
let body;
|
|
40
|
-
b.m("GET").h(headers).b(body);
|
|
41
|
-
return b.build();
|
|
42
|
-
};
|
|
43
|
-
export const se_ListRulesCommand = async (input, context) => {
|
|
44
|
-
const b = rb(input, context);
|
|
45
|
-
const headers = {
|
|
46
|
-
"content-type": "application/json",
|
|
47
|
-
};
|
|
48
|
-
b.bp("/list-rules");
|
|
49
|
-
let body;
|
|
50
|
-
body = JSON.stringify(take(input, {
|
|
51
|
-
ExcludeResourceTags: (_) => _json(_),
|
|
52
|
-
LockState: [],
|
|
53
|
-
MaxResults: [],
|
|
54
|
-
NextToken: [],
|
|
55
|
-
ResourceTags: (_) => _json(_),
|
|
56
|
-
ResourceType: [],
|
|
57
|
-
}));
|
|
58
|
-
b.m("POST").h(headers).b(body);
|
|
59
|
-
return b.build();
|
|
60
|
-
};
|
|
61
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
62
|
-
const b = rb(input, context);
|
|
63
|
-
const headers = {};
|
|
64
|
-
b.bp("/tags/{ResourceArn}");
|
|
65
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
66
|
-
let body;
|
|
67
|
-
b.m("GET").h(headers).b(body);
|
|
68
|
-
return b.build();
|
|
69
|
-
};
|
|
70
|
-
export const se_LockRuleCommand = async (input, context) => {
|
|
71
|
-
const b = rb(input, context);
|
|
72
|
-
const headers = {
|
|
73
|
-
"content-type": "application/json",
|
|
74
|
-
};
|
|
75
|
-
b.bp("/rules/{Identifier}/lock");
|
|
76
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
77
|
-
let body;
|
|
78
|
-
body = JSON.stringify(take(input, {
|
|
79
|
-
LockConfiguration: (_) => _json(_),
|
|
80
|
-
}));
|
|
81
|
-
b.m("PATCH").h(headers).b(body);
|
|
82
|
-
return b.build();
|
|
83
|
-
};
|
|
84
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
85
|
-
const b = rb(input, context);
|
|
86
|
-
const headers = {
|
|
87
|
-
"content-type": "application/json",
|
|
88
|
-
};
|
|
89
|
-
b.bp("/tags/{ResourceArn}");
|
|
90
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
91
|
-
let body;
|
|
92
|
-
body = JSON.stringify(take(input, {
|
|
93
|
-
Tags: (_) => _json(_),
|
|
94
|
-
}));
|
|
95
|
-
b.m("POST").h(headers).b(body);
|
|
96
|
-
return b.build();
|
|
97
|
-
};
|
|
98
|
-
export const se_UnlockRuleCommand = async (input, context) => {
|
|
99
|
-
const b = rb(input, context);
|
|
100
|
-
const headers = {};
|
|
101
|
-
b.bp("/rules/{Identifier}/unlock");
|
|
102
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
103
|
-
let body;
|
|
104
|
-
b.m("PATCH").h(headers).b(body);
|
|
105
|
-
return b.build();
|
|
106
|
-
};
|
|
107
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
108
|
-
const b = rb(input, context);
|
|
109
|
-
const headers = {};
|
|
110
|
-
b.bp("/tags/{ResourceArn}");
|
|
111
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
112
|
-
const query = map({
|
|
113
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
114
|
-
});
|
|
115
|
-
let body;
|
|
116
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
117
|
-
return b.build();
|
|
118
|
-
};
|
|
119
|
-
export const se_UpdateRuleCommand = async (input, context) => {
|
|
120
|
-
const b = rb(input, context);
|
|
121
|
-
const headers = {
|
|
122
|
-
"content-type": "application/json",
|
|
123
|
-
};
|
|
124
|
-
b.bp("/rules/{Identifier}");
|
|
125
|
-
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
126
|
-
let body;
|
|
127
|
-
body = JSON.stringify(take(input, {
|
|
128
|
-
Description: [],
|
|
129
|
-
ExcludeResourceTags: (_) => _json(_),
|
|
130
|
-
ResourceTags: (_) => _json(_),
|
|
131
|
-
ResourceType: [],
|
|
132
|
-
RetentionPeriod: (_) => _json(_),
|
|
133
|
-
}));
|
|
134
|
-
b.m("PATCH").h(headers).b(body);
|
|
135
|
-
return b.build();
|
|
136
|
-
};
|
|
137
|
-
export const de_CreateRuleCommand = async (output, context) => {
|
|
138
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
139
|
-
return de_CommandError(output, context);
|
|
140
|
-
}
|
|
141
|
-
const contents = map({
|
|
142
|
-
$metadata: deserializeMetadata(output),
|
|
143
|
-
});
|
|
144
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
145
|
-
const doc = take(data, {
|
|
146
|
-
Description: __expectString,
|
|
147
|
-
ExcludeResourceTags: _json,
|
|
148
|
-
Identifier: __expectString,
|
|
149
|
-
LockConfiguration: _json,
|
|
150
|
-
LockState: __expectString,
|
|
151
|
-
ResourceTags: _json,
|
|
152
|
-
ResourceType: __expectString,
|
|
153
|
-
RetentionPeriod: _json,
|
|
154
|
-
RuleArn: __expectString,
|
|
155
|
-
Status: __expectString,
|
|
156
|
-
Tags: _json,
|
|
157
|
-
});
|
|
158
|
-
Object.assign(contents, doc);
|
|
159
|
-
return contents;
|
|
160
|
-
};
|
|
161
|
-
export const de_DeleteRuleCommand = async (output, context) => {
|
|
162
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
163
|
-
return de_CommandError(output, context);
|
|
164
|
-
}
|
|
165
|
-
const contents = map({
|
|
166
|
-
$metadata: deserializeMetadata(output),
|
|
167
|
-
});
|
|
168
|
-
await collectBody(output.body, context);
|
|
169
|
-
return contents;
|
|
170
|
-
};
|
|
171
|
-
export const de_GetRuleCommand = async (output, context) => {
|
|
172
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
173
|
-
return de_CommandError(output, context);
|
|
174
|
-
}
|
|
175
|
-
const contents = map({
|
|
176
|
-
$metadata: deserializeMetadata(output),
|
|
177
|
-
});
|
|
178
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
179
|
-
const doc = take(data, {
|
|
180
|
-
Description: __expectString,
|
|
181
|
-
ExcludeResourceTags: _json,
|
|
182
|
-
Identifier: __expectString,
|
|
183
|
-
LockConfiguration: _json,
|
|
184
|
-
LockEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
185
|
-
LockState: __expectString,
|
|
186
|
-
ResourceTags: _json,
|
|
187
|
-
ResourceType: __expectString,
|
|
188
|
-
RetentionPeriod: _json,
|
|
189
|
-
RuleArn: __expectString,
|
|
190
|
-
Status: __expectString,
|
|
191
|
-
});
|
|
192
|
-
Object.assign(contents, doc);
|
|
193
|
-
return contents;
|
|
194
|
-
};
|
|
195
|
-
export const de_ListRulesCommand = async (output, context) => {
|
|
196
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
197
|
-
return de_CommandError(output, context);
|
|
198
|
-
}
|
|
199
|
-
const contents = map({
|
|
200
|
-
$metadata: deserializeMetadata(output),
|
|
201
|
-
});
|
|
202
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
203
|
-
const doc = take(data, {
|
|
204
|
-
NextToken: __expectString,
|
|
205
|
-
Rules: _json,
|
|
206
|
-
});
|
|
207
|
-
Object.assign(contents, doc);
|
|
208
|
-
return contents;
|
|
209
|
-
};
|
|
210
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
211
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
212
|
-
return de_CommandError(output, context);
|
|
213
|
-
}
|
|
214
|
-
const contents = map({
|
|
215
|
-
$metadata: deserializeMetadata(output),
|
|
216
|
-
});
|
|
217
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
218
|
-
const doc = take(data, {
|
|
219
|
-
Tags: _json,
|
|
220
|
-
});
|
|
221
|
-
Object.assign(contents, doc);
|
|
222
|
-
return contents;
|
|
223
|
-
};
|
|
224
|
-
export const de_LockRuleCommand = async (output, context) => {
|
|
225
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
226
|
-
return de_CommandError(output, context);
|
|
227
|
-
}
|
|
228
|
-
const contents = map({
|
|
229
|
-
$metadata: deserializeMetadata(output),
|
|
230
|
-
});
|
|
231
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
232
|
-
const doc = take(data, {
|
|
233
|
-
Description: __expectString,
|
|
234
|
-
ExcludeResourceTags: _json,
|
|
235
|
-
Identifier: __expectString,
|
|
236
|
-
LockConfiguration: _json,
|
|
237
|
-
LockState: __expectString,
|
|
238
|
-
ResourceTags: _json,
|
|
239
|
-
ResourceType: __expectString,
|
|
240
|
-
RetentionPeriod: _json,
|
|
241
|
-
RuleArn: __expectString,
|
|
242
|
-
Status: __expectString,
|
|
243
|
-
});
|
|
244
|
-
Object.assign(contents, doc);
|
|
245
|
-
return contents;
|
|
246
|
-
};
|
|
247
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
248
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
249
|
-
return de_CommandError(output, context);
|
|
250
|
-
}
|
|
251
|
-
const contents = map({
|
|
252
|
-
$metadata: deserializeMetadata(output),
|
|
253
|
-
});
|
|
254
|
-
await collectBody(output.body, context);
|
|
255
|
-
return contents;
|
|
256
|
-
};
|
|
257
|
-
export const de_UnlockRuleCommand = async (output, context) => {
|
|
258
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
259
|
-
return de_CommandError(output, context);
|
|
260
|
-
}
|
|
261
|
-
const contents = map({
|
|
262
|
-
$metadata: deserializeMetadata(output),
|
|
263
|
-
});
|
|
264
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
265
|
-
const doc = take(data, {
|
|
266
|
-
Description: __expectString,
|
|
267
|
-
ExcludeResourceTags: _json,
|
|
268
|
-
Identifier: __expectString,
|
|
269
|
-
LockConfiguration: _json,
|
|
270
|
-
LockEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
271
|
-
LockState: __expectString,
|
|
272
|
-
ResourceTags: _json,
|
|
273
|
-
ResourceType: __expectString,
|
|
274
|
-
RetentionPeriod: _json,
|
|
275
|
-
RuleArn: __expectString,
|
|
276
|
-
Status: __expectString,
|
|
277
|
-
});
|
|
278
|
-
Object.assign(contents, doc);
|
|
279
|
-
return contents;
|
|
280
|
-
};
|
|
281
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
282
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
283
|
-
return de_CommandError(output, context);
|
|
284
|
-
}
|
|
285
|
-
const contents = map({
|
|
286
|
-
$metadata: deserializeMetadata(output),
|
|
287
|
-
});
|
|
288
|
-
await collectBody(output.body, context);
|
|
289
|
-
return contents;
|
|
290
|
-
};
|
|
291
|
-
export const de_UpdateRuleCommand = async (output, context) => {
|
|
292
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
293
|
-
return de_CommandError(output, context);
|
|
294
|
-
}
|
|
295
|
-
const contents = map({
|
|
296
|
-
$metadata: deserializeMetadata(output),
|
|
297
|
-
});
|
|
298
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
299
|
-
const doc = take(data, {
|
|
300
|
-
Description: __expectString,
|
|
301
|
-
ExcludeResourceTags: _json,
|
|
302
|
-
Identifier: __expectString,
|
|
303
|
-
LockEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
304
|
-
LockState: __expectString,
|
|
305
|
-
ResourceTags: _json,
|
|
306
|
-
ResourceType: __expectString,
|
|
307
|
-
RetentionPeriod: _json,
|
|
308
|
-
RuleArn: __expectString,
|
|
309
|
-
Status: __expectString,
|
|
310
|
-
});
|
|
311
|
-
Object.assign(contents, doc);
|
|
312
|
-
return contents;
|
|
313
|
-
};
|
|
314
|
-
const de_CommandError = async (output, context) => {
|
|
315
|
-
const parsedOutput = {
|
|
316
|
-
...output,
|
|
317
|
-
body: await parseErrorBody(output.body, context),
|
|
318
|
-
};
|
|
319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
320
|
-
switch (errorCode) {
|
|
321
|
-
case "InternalServerException":
|
|
322
|
-
case "com.amazonaws.rbin#InternalServerException":
|
|
323
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
324
|
-
case "ServiceQuotaExceededException":
|
|
325
|
-
case "com.amazonaws.rbin#ServiceQuotaExceededException":
|
|
326
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
327
|
-
case "ValidationException":
|
|
328
|
-
case "com.amazonaws.rbin#ValidationException":
|
|
329
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
330
|
-
case "ConflictException":
|
|
331
|
-
case "com.amazonaws.rbin#ConflictException":
|
|
332
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
333
|
-
case "ResourceNotFoundException":
|
|
334
|
-
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
335
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
336
|
-
default:
|
|
337
|
-
const parsedBody = parsedOutput.body;
|
|
338
|
-
return throwDefaultError({
|
|
339
|
-
output,
|
|
340
|
-
parsedBody,
|
|
341
|
-
errorCode,
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
};
|
|
345
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
346
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
347
|
-
const contents = map({});
|
|
348
|
-
const data = parsedOutput.body;
|
|
349
|
-
const doc = take(data, {
|
|
350
|
-
Message: __expectString,
|
|
351
|
-
Reason: __expectString,
|
|
352
|
-
});
|
|
353
|
-
Object.assign(contents, doc);
|
|
354
|
-
const exception = new ConflictException({
|
|
355
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
356
|
-
...contents,
|
|
357
|
-
});
|
|
358
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
359
|
-
};
|
|
360
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
361
|
-
const contents = map({});
|
|
362
|
-
const data = parsedOutput.body;
|
|
363
|
-
const doc = take(data, {
|
|
364
|
-
Message: __expectString,
|
|
365
|
-
});
|
|
366
|
-
Object.assign(contents, doc);
|
|
367
|
-
const exception = new InternalServerException({
|
|
368
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
369
|
-
...contents,
|
|
370
|
-
});
|
|
371
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
372
|
-
};
|
|
373
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
374
|
-
const contents = map({});
|
|
375
|
-
const data = parsedOutput.body;
|
|
376
|
-
const doc = take(data, {
|
|
377
|
-
Message: __expectString,
|
|
378
|
-
Reason: __expectString,
|
|
379
|
-
});
|
|
380
|
-
Object.assign(contents, doc);
|
|
381
|
-
const exception = new ResourceNotFoundException({
|
|
382
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
383
|
-
...contents,
|
|
384
|
-
});
|
|
385
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
386
|
-
};
|
|
387
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
388
|
-
const contents = map({});
|
|
389
|
-
const data = parsedOutput.body;
|
|
390
|
-
const doc = take(data, {
|
|
391
|
-
Message: __expectString,
|
|
392
|
-
Reason: __expectString,
|
|
393
|
-
});
|
|
394
|
-
Object.assign(contents, doc);
|
|
395
|
-
const exception = new ServiceQuotaExceededException({
|
|
396
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
397
|
-
...contents,
|
|
398
|
-
});
|
|
399
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
400
|
-
};
|
|
401
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
402
|
-
const contents = map({});
|
|
403
|
-
const data = parsedOutput.body;
|
|
404
|
-
const doc = take(data, {
|
|
405
|
-
Message: __expectString,
|
|
406
|
-
Reason: __expectString,
|
|
407
|
-
});
|
|
408
|
-
Object.assign(contents, doc);
|
|
409
|
-
const exception = new ValidationException({
|
|
410
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
411
|
-
...contents,
|
|
412
|
-
});
|
|
413
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
414
|
-
};
|
|
415
|
-
const deserializeMetadata = (output) => ({
|
|
416
|
-
httpStatusCode: output.statusCode,
|
|
417
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
418
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
419
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
420
|
-
});
|
|
421
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
422
|
-
const _TK = "TagKeys";
|
|
423
|
-
const _tK = "tagKeys";
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { CreateRuleCommandInput, CreateRuleCommandOutput } from "../commands/CreateRuleCommand";
|
|
4
|
-
import { DeleteRuleCommandInput, DeleteRuleCommandOutput } from "../commands/DeleteRuleCommand";
|
|
5
|
-
import { GetRuleCommandInput, GetRuleCommandOutput } from "../commands/GetRuleCommand";
|
|
6
|
-
import { ListRulesCommandInput, ListRulesCommandOutput } from "../commands/ListRulesCommand";
|
|
7
|
-
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
8
|
-
import { LockRuleCommandInput, LockRuleCommandOutput } from "../commands/LockRuleCommand";
|
|
9
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
10
|
-
import { UnlockRuleCommandInput, UnlockRuleCommandOutput } from "../commands/UnlockRuleCommand";
|
|
11
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
12
|
-
import { UpdateRuleCommandInput, UpdateRuleCommandOutput } from "../commands/UpdateRuleCommand";
|
|
13
|
-
/**
|
|
14
|
-
* serializeAws_restJson1CreateRuleCommand
|
|
15
|
-
*/
|
|
16
|
-
export declare const se_CreateRuleCommand: (input: CreateRuleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
17
|
-
/**
|
|
18
|
-
* serializeAws_restJson1DeleteRuleCommand
|
|
19
|
-
*/
|
|
20
|
-
export declare const se_DeleteRuleCommand: (input: DeleteRuleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
21
|
-
/**
|
|
22
|
-
* serializeAws_restJson1GetRuleCommand
|
|
23
|
-
*/
|
|
24
|
-
export declare const se_GetRuleCommand: (input: GetRuleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
25
|
-
/**
|
|
26
|
-
* serializeAws_restJson1ListRulesCommand
|
|
27
|
-
*/
|
|
28
|
-
export declare const se_ListRulesCommand: (input: ListRulesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
29
|
-
/**
|
|
30
|
-
* serializeAws_restJson1ListTagsForResourceCommand
|
|
31
|
-
*/
|
|
32
|
-
export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
33
|
-
/**
|
|
34
|
-
* serializeAws_restJson1LockRuleCommand
|
|
35
|
-
*/
|
|
36
|
-
export declare const se_LockRuleCommand: (input: LockRuleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
37
|
-
/**
|
|
38
|
-
* serializeAws_restJson1TagResourceCommand
|
|
39
|
-
*/
|
|
40
|
-
export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
41
|
-
/**
|
|
42
|
-
* serializeAws_restJson1UnlockRuleCommand
|
|
43
|
-
*/
|
|
44
|
-
export declare const se_UnlockRuleCommand: (input: UnlockRuleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
45
|
-
/**
|
|
46
|
-
* serializeAws_restJson1UntagResourceCommand
|
|
47
|
-
*/
|
|
48
|
-
export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
49
|
-
/**
|
|
50
|
-
* serializeAws_restJson1UpdateRuleCommand
|
|
51
|
-
*/
|
|
52
|
-
export declare const se_UpdateRuleCommand: (input: UpdateRuleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
53
|
-
/**
|
|
54
|
-
* deserializeAws_restJson1CreateRuleCommand
|
|
55
|
-
*/
|
|
56
|
-
export declare const de_CreateRuleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateRuleCommandOutput>;
|
|
57
|
-
/**
|
|
58
|
-
* deserializeAws_restJson1DeleteRuleCommand
|
|
59
|
-
*/
|
|
60
|
-
export declare const de_DeleteRuleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteRuleCommandOutput>;
|
|
61
|
-
/**
|
|
62
|
-
* deserializeAws_restJson1GetRuleCommand
|
|
63
|
-
*/
|
|
64
|
-
export declare const de_GetRuleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRuleCommandOutput>;
|
|
65
|
-
/**
|
|
66
|
-
* deserializeAws_restJson1ListRulesCommand
|
|
67
|
-
*/
|
|
68
|
-
export declare const de_ListRulesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListRulesCommandOutput>;
|
|
69
|
-
/**
|
|
70
|
-
* deserializeAws_restJson1ListTagsForResourceCommand
|
|
71
|
-
*/
|
|
72
|
-
export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
73
|
-
/**
|
|
74
|
-
* deserializeAws_restJson1LockRuleCommand
|
|
75
|
-
*/
|
|
76
|
-
export declare const de_LockRuleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<LockRuleCommandOutput>;
|
|
77
|
-
/**
|
|
78
|
-
* deserializeAws_restJson1TagResourceCommand
|
|
79
|
-
*/
|
|
80
|
-
export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
81
|
-
/**
|
|
82
|
-
* deserializeAws_restJson1UnlockRuleCommand
|
|
83
|
-
*/
|
|
84
|
-
export declare const de_UnlockRuleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UnlockRuleCommandOutput>;
|
|
85
|
-
/**
|
|
86
|
-
* deserializeAws_restJson1UntagResourceCommand
|
|
87
|
-
*/
|
|
88
|
-
export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
89
|
-
/**
|
|
90
|
-
* deserializeAws_restJson1UpdateRuleCommand
|
|
91
|
-
*/
|
|
92
|
-
export declare const de_UpdateRuleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateRuleCommandOutput>;
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HttpRequest as __HttpRequest,
|
|
3
|
-
HttpResponse as __HttpResponse,
|
|
4
|
-
} from "@smithy/protocol-http";
|
|
5
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
|
-
import {
|
|
7
|
-
CreateRuleCommandInput,
|
|
8
|
-
CreateRuleCommandOutput,
|
|
9
|
-
} from "../commands/CreateRuleCommand";
|
|
10
|
-
import {
|
|
11
|
-
DeleteRuleCommandInput,
|
|
12
|
-
DeleteRuleCommandOutput,
|
|
13
|
-
} from "../commands/DeleteRuleCommand";
|
|
14
|
-
import {
|
|
15
|
-
GetRuleCommandInput,
|
|
16
|
-
GetRuleCommandOutput,
|
|
17
|
-
} from "../commands/GetRuleCommand";
|
|
18
|
-
import {
|
|
19
|
-
ListRulesCommandInput,
|
|
20
|
-
ListRulesCommandOutput,
|
|
21
|
-
} from "../commands/ListRulesCommand";
|
|
22
|
-
import {
|
|
23
|
-
ListTagsForResourceCommandInput,
|
|
24
|
-
ListTagsForResourceCommandOutput,
|
|
25
|
-
} from "../commands/ListTagsForResourceCommand";
|
|
26
|
-
import {
|
|
27
|
-
LockRuleCommandInput,
|
|
28
|
-
LockRuleCommandOutput,
|
|
29
|
-
} from "../commands/LockRuleCommand";
|
|
30
|
-
import {
|
|
31
|
-
TagResourceCommandInput,
|
|
32
|
-
TagResourceCommandOutput,
|
|
33
|
-
} from "../commands/TagResourceCommand";
|
|
34
|
-
import {
|
|
35
|
-
UnlockRuleCommandInput,
|
|
36
|
-
UnlockRuleCommandOutput,
|
|
37
|
-
} from "../commands/UnlockRuleCommand";
|
|
38
|
-
import {
|
|
39
|
-
UntagResourceCommandInput,
|
|
40
|
-
UntagResourceCommandOutput,
|
|
41
|
-
} from "../commands/UntagResourceCommand";
|
|
42
|
-
import {
|
|
43
|
-
UpdateRuleCommandInput,
|
|
44
|
-
UpdateRuleCommandOutput,
|
|
45
|
-
} from "../commands/UpdateRuleCommand";
|
|
46
|
-
export declare const se_CreateRuleCommand: (
|
|
47
|
-
input: CreateRuleCommandInput,
|
|
48
|
-
context: __SerdeContext
|
|
49
|
-
) => Promise<__HttpRequest>;
|
|
50
|
-
export declare const se_DeleteRuleCommand: (
|
|
51
|
-
input: DeleteRuleCommandInput,
|
|
52
|
-
context: __SerdeContext
|
|
53
|
-
) => Promise<__HttpRequest>;
|
|
54
|
-
export declare const se_GetRuleCommand: (
|
|
55
|
-
input: GetRuleCommandInput,
|
|
56
|
-
context: __SerdeContext
|
|
57
|
-
) => Promise<__HttpRequest>;
|
|
58
|
-
export declare const se_ListRulesCommand: (
|
|
59
|
-
input: ListRulesCommandInput,
|
|
60
|
-
context: __SerdeContext
|
|
61
|
-
) => Promise<__HttpRequest>;
|
|
62
|
-
export declare const se_ListTagsForResourceCommand: (
|
|
63
|
-
input: ListTagsForResourceCommandInput,
|
|
64
|
-
context: __SerdeContext
|
|
65
|
-
) => Promise<__HttpRequest>;
|
|
66
|
-
export declare const se_LockRuleCommand: (
|
|
67
|
-
input: LockRuleCommandInput,
|
|
68
|
-
context: __SerdeContext
|
|
69
|
-
) => Promise<__HttpRequest>;
|
|
70
|
-
export declare const se_TagResourceCommand: (
|
|
71
|
-
input: TagResourceCommandInput,
|
|
72
|
-
context: __SerdeContext
|
|
73
|
-
) => Promise<__HttpRequest>;
|
|
74
|
-
export declare const se_UnlockRuleCommand: (
|
|
75
|
-
input: UnlockRuleCommandInput,
|
|
76
|
-
context: __SerdeContext
|
|
77
|
-
) => Promise<__HttpRequest>;
|
|
78
|
-
export declare const se_UntagResourceCommand: (
|
|
79
|
-
input: UntagResourceCommandInput,
|
|
80
|
-
context: __SerdeContext
|
|
81
|
-
) => Promise<__HttpRequest>;
|
|
82
|
-
export declare const se_UpdateRuleCommand: (
|
|
83
|
-
input: UpdateRuleCommandInput,
|
|
84
|
-
context: __SerdeContext
|
|
85
|
-
) => Promise<__HttpRequest>;
|
|
86
|
-
export declare const de_CreateRuleCommand: (
|
|
87
|
-
output: __HttpResponse,
|
|
88
|
-
context: __SerdeContext
|
|
89
|
-
) => Promise<CreateRuleCommandOutput>;
|
|
90
|
-
export declare const de_DeleteRuleCommand: (
|
|
91
|
-
output: __HttpResponse,
|
|
92
|
-
context: __SerdeContext
|
|
93
|
-
) => Promise<DeleteRuleCommandOutput>;
|
|
94
|
-
export declare const de_GetRuleCommand: (
|
|
95
|
-
output: __HttpResponse,
|
|
96
|
-
context: __SerdeContext
|
|
97
|
-
) => Promise<GetRuleCommandOutput>;
|
|
98
|
-
export declare const de_ListRulesCommand: (
|
|
99
|
-
output: __HttpResponse,
|
|
100
|
-
context: __SerdeContext
|
|
101
|
-
) => Promise<ListRulesCommandOutput>;
|
|
102
|
-
export declare const de_ListTagsForResourceCommand: (
|
|
103
|
-
output: __HttpResponse,
|
|
104
|
-
context: __SerdeContext
|
|
105
|
-
) => Promise<ListTagsForResourceCommandOutput>;
|
|
106
|
-
export declare const de_LockRuleCommand: (
|
|
107
|
-
output: __HttpResponse,
|
|
108
|
-
context: __SerdeContext
|
|
109
|
-
) => Promise<LockRuleCommandOutput>;
|
|
110
|
-
export declare const de_TagResourceCommand: (
|
|
111
|
-
output: __HttpResponse,
|
|
112
|
-
context: __SerdeContext
|
|
113
|
-
) => Promise<TagResourceCommandOutput>;
|
|
114
|
-
export declare const de_UnlockRuleCommand: (
|
|
115
|
-
output: __HttpResponse,
|
|
116
|
-
context: __SerdeContext
|
|
117
|
-
) => Promise<UnlockRuleCommandOutput>;
|
|
118
|
-
export declare const de_UntagResourceCommand: (
|
|
119
|
-
output: __HttpResponse,
|
|
120
|
-
context: __SerdeContext
|
|
121
|
-
) => Promise<UntagResourceCommandOutput>;
|
|
122
|
-
export declare const de_UpdateRuleCommand: (
|
|
123
|
-
output: __HttpResponse,
|
|
124
|
-
context: __SerdeContext
|
|
125
|
-
) => Promise<UpdateRuleCommandOutput>;
|