@aws-sdk/client-rbin 3.306.0 → 3.309.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/commands/CreateRuleCommand.js +2 -2
- package/dist-cjs/commands/DeleteRuleCommand.js +2 -2
- package/dist-cjs/commands/GetRuleCommand.js +2 -2
- package/dist-cjs/commands/ListRulesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/LockRuleCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UnlockRuleCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateRuleCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +150 -162
- package/dist-es/commands/CreateRuleCommand.js +3 -3
- package/dist-es/commands/DeleteRuleCommand.js +3 -3
- package/dist-es/commands/GetRuleCommand.js +3 -3
- package/dist-es/commands/ListRulesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/LockRuleCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UnlockRuleCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateRuleCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +129 -141
- package/dist-types/protocols/Aws_restJson1.d.ts +80 -20
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +20 -20
- package/package.json +6 -6
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { RbinServiceException as __BaseException } from "../models/RbinServiceException";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CreateRuleCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
@@ -12,16 +12,12 @@ export const serializeAws_restJson1CreateRuleCommand = async (input, context) =>
|
|
|
12
12
|
body = JSON.stringify({
|
|
13
13
|
...(input.Description != null && { Description: input.Description }),
|
|
14
14
|
...(input.LockConfiguration != null && {
|
|
15
|
-
LockConfiguration:
|
|
16
|
-
}),
|
|
17
|
-
...(input.ResourceTags != null && {
|
|
18
|
-
ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context),
|
|
15
|
+
LockConfiguration: se_LockConfiguration(input.LockConfiguration, context),
|
|
19
16
|
}),
|
|
17
|
+
...(input.ResourceTags != null && { ResourceTags: se_ResourceTags(input.ResourceTags, context) }),
|
|
20
18
|
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
21
|
-
...(input.RetentionPeriod != null && {
|
|
22
|
-
|
|
23
|
-
}),
|
|
24
|
-
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
19
|
+
...(input.RetentionPeriod != null && { RetentionPeriod: se_RetentionPeriod(input.RetentionPeriod, context) }),
|
|
20
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
25
21
|
});
|
|
26
22
|
return new __HttpRequest({
|
|
27
23
|
protocol,
|
|
@@ -33,7 +29,7 @@ export const serializeAws_restJson1CreateRuleCommand = async (input, context) =>
|
|
|
33
29
|
body,
|
|
34
30
|
});
|
|
35
31
|
};
|
|
36
|
-
export const
|
|
32
|
+
export const se_DeleteRuleCommand = async (input, context) => {
|
|
37
33
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
38
34
|
const headers = {};
|
|
39
35
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
|
|
@@ -49,7 +45,7 @@ export const serializeAws_restJson1DeleteRuleCommand = async (input, context) =>
|
|
|
49
45
|
body,
|
|
50
46
|
});
|
|
51
47
|
};
|
|
52
|
-
export const
|
|
48
|
+
export const se_GetRuleCommand = async (input, context) => {
|
|
53
49
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
54
50
|
const headers = {};
|
|
55
51
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
|
|
@@ -65,7 +61,7 @@ export const serializeAws_restJson1GetRuleCommand = async (input, context) => {
|
|
|
65
61
|
body,
|
|
66
62
|
});
|
|
67
63
|
};
|
|
68
|
-
export const
|
|
64
|
+
export const se_ListRulesCommand = async (input, context) => {
|
|
69
65
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
70
66
|
const headers = {
|
|
71
67
|
"content-type": "application/json",
|
|
@@ -76,9 +72,7 @@ export const serializeAws_restJson1ListRulesCommand = async (input, context) =>
|
|
|
76
72
|
...(input.LockState != null && { LockState: input.LockState }),
|
|
77
73
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
78
74
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
79
|
-
...(input.ResourceTags != null && {
|
|
80
|
-
ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context),
|
|
81
|
-
}),
|
|
75
|
+
...(input.ResourceTags != null && { ResourceTags: se_ResourceTags(input.ResourceTags, context) }),
|
|
82
76
|
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
83
77
|
});
|
|
84
78
|
return new __HttpRequest({
|
|
@@ -91,7 +85,7 @@ export const serializeAws_restJson1ListRulesCommand = async (input, context) =>
|
|
|
91
85
|
body,
|
|
92
86
|
});
|
|
93
87
|
};
|
|
94
|
-
export const
|
|
88
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
95
89
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
96
90
|
const headers = {};
|
|
97
91
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -107,7 +101,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
107
101
|
body,
|
|
108
102
|
});
|
|
109
103
|
};
|
|
110
|
-
export const
|
|
104
|
+
export const se_LockRuleCommand = async (input, context) => {
|
|
111
105
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
112
106
|
const headers = {
|
|
113
107
|
"content-type": "application/json",
|
|
@@ -117,7 +111,7 @@ export const serializeAws_restJson1LockRuleCommand = async (input, context) => {
|
|
|
117
111
|
let body;
|
|
118
112
|
body = JSON.stringify({
|
|
119
113
|
...(input.LockConfiguration != null && {
|
|
120
|
-
LockConfiguration:
|
|
114
|
+
LockConfiguration: se_LockConfiguration(input.LockConfiguration, context),
|
|
121
115
|
}),
|
|
122
116
|
});
|
|
123
117
|
return new __HttpRequest({
|
|
@@ -130,7 +124,7 @@ export const serializeAws_restJson1LockRuleCommand = async (input, context) => {
|
|
|
130
124
|
body,
|
|
131
125
|
});
|
|
132
126
|
};
|
|
133
|
-
export const
|
|
127
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
134
128
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
135
129
|
const headers = {
|
|
136
130
|
"content-type": "application/json",
|
|
@@ -139,7 +133,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
139
133
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
140
134
|
let body;
|
|
141
135
|
body = JSON.stringify({
|
|
142
|
-
...(input.Tags != null && { Tags:
|
|
136
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
143
137
|
});
|
|
144
138
|
return new __HttpRequest({
|
|
145
139
|
protocol,
|
|
@@ -151,7 +145,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
151
145
|
body,
|
|
152
146
|
});
|
|
153
147
|
};
|
|
154
|
-
export const
|
|
148
|
+
export const se_UnlockRuleCommand = async (input, context) => {
|
|
155
149
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
156
150
|
const headers = {};
|
|
157
151
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}/unlock";
|
|
@@ -167,7 +161,7 @@ export const serializeAws_restJson1UnlockRuleCommand = async (input, context) =>
|
|
|
167
161
|
body,
|
|
168
162
|
});
|
|
169
163
|
};
|
|
170
|
-
export const
|
|
164
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
171
165
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
172
166
|
const headers = {};
|
|
173
167
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -190,7 +184,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
190
184
|
body,
|
|
191
185
|
});
|
|
192
186
|
};
|
|
193
|
-
export const
|
|
187
|
+
export const se_UpdateRuleCommand = async (input, context) => {
|
|
194
188
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
195
189
|
const headers = {
|
|
196
190
|
"content-type": "application/json",
|
|
@@ -200,13 +194,9 @@ export const serializeAws_restJson1UpdateRuleCommand = async (input, context) =>
|
|
|
200
194
|
let body;
|
|
201
195
|
body = JSON.stringify({
|
|
202
196
|
...(input.Description != null && { Description: input.Description }),
|
|
203
|
-
...(input.ResourceTags != null && {
|
|
204
|
-
ResourceTags: serializeAws_restJson1ResourceTags(input.ResourceTags, context),
|
|
205
|
-
}),
|
|
197
|
+
...(input.ResourceTags != null && { ResourceTags: se_ResourceTags(input.ResourceTags, context) }),
|
|
206
198
|
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
207
|
-
...(input.RetentionPeriod != null && {
|
|
208
|
-
RetentionPeriod: serializeAws_restJson1RetentionPeriod(input.RetentionPeriod, context),
|
|
209
|
-
}),
|
|
199
|
+
...(input.RetentionPeriod != null && { RetentionPeriod: se_RetentionPeriod(input.RetentionPeriod, context) }),
|
|
210
200
|
});
|
|
211
201
|
return new __HttpRequest({
|
|
212
202
|
protocol,
|
|
@@ -218,9 +208,9 @@ export const serializeAws_restJson1UpdateRuleCommand = async (input, context) =>
|
|
|
218
208
|
body,
|
|
219
209
|
});
|
|
220
210
|
};
|
|
221
|
-
export const
|
|
211
|
+
export const de_CreateRuleCommand = async (output, context) => {
|
|
222
212
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
223
|
-
return
|
|
213
|
+
return de_CreateRuleCommandError(output, context);
|
|
224
214
|
}
|
|
225
215
|
const contents = map({
|
|
226
216
|
$metadata: deserializeMetadata(output),
|
|
@@ -233,29 +223,29 @@ export const deserializeAws_restJson1CreateRuleCommand = async (output, context)
|
|
|
233
223
|
contents.Identifier = __expectString(data.Identifier);
|
|
234
224
|
}
|
|
235
225
|
if (data.LockConfiguration != null) {
|
|
236
|
-
contents.LockConfiguration =
|
|
226
|
+
contents.LockConfiguration = de_LockConfiguration(data.LockConfiguration, context);
|
|
237
227
|
}
|
|
238
228
|
if (data.LockState != null) {
|
|
239
229
|
contents.LockState = __expectString(data.LockState);
|
|
240
230
|
}
|
|
241
231
|
if (data.ResourceTags != null) {
|
|
242
|
-
contents.ResourceTags =
|
|
232
|
+
contents.ResourceTags = de_ResourceTags(data.ResourceTags, context);
|
|
243
233
|
}
|
|
244
234
|
if (data.ResourceType != null) {
|
|
245
235
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
246
236
|
}
|
|
247
237
|
if (data.RetentionPeriod != null) {
|
|
248
|
-
contents.RetentionPeriod =
|
|
238
|
+
contents.RetentionPeriod = de_RetentionPeriod(data.RetentionPeriod, context);
|
|
249
239
|
}
|
|
250
240
|
if (data.Status != null) {
|
|
251
241
|
contents.Status = __expectString(data.Status);
|
|
252
242
|
}
|
|
253
243
|
if (data.Tags != null) {
|
|
254
|
-
contents.Tags =
|
|
244
|
+
contents.Tags = de_TagList(data.Tags, context);
|
|
255
245
|
}
|
|
256
246
|
return contents;
|
|
257
247
|
};
|
|
258
|
-
const
|
|
248
|
+
const de_CreateRuleCommandError = async (output, context) => {
|
|
259
249
|
const parsedOutput = {
|
|
260
250
|
...output,
|
|
261
251
|
body: await parseErrorBody(output.body, context),
|
|
@@ -264,13 +254,13 @@ const deserializeAws_restJson1CreateRuleCommandError = async (output, context) =
|
|
|
264
254
|
switch (errorCode) {
|
|
265
255
|
case "InternalServerException":
|
|
266
256
|
case "com.amazonaws.rbin#InternalServerException":
|
|
267
|
-
throw await
|
|
257
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
268
258
|
case "ServiceQuotaExceededException":
|
|
269
259
|
case "com.amazonaws.rbin#ServiceQuotaExceededException":
|
|
270
|
-
throw await
|
|
260
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
271
261
|
case "ValidationException":
|
|
272
262
|
case "com.amazonaws.rbin#ValidationException":
|
|
273
|
-
throw await
|
|
263
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
274
264
|
default:
|
|
275
265
|
const parsedBody = parsedOutput.body;
|
|
276
266
|
throwDefaultError({
|
|
@@ -281,9 +271,9 @@ const deserializeAws_restJson1CreateRuleCommandError = async (output, context) =
|
|
|
281
271
|
});
|
|
282
272
|
}
|
|
283
273
|
};
|
|
284
|
-
export const
|
|
274
|
+
export const de_DeleteRuleCommand = async (output, context) => {
|
|
285
275
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
286
|
-
return
|
|
276
|
+
return de_DeleteRuleCommandError(output, context);
|
|
287
277
|
}
|
|
288
278
|
const contents = map({
|
|
289
279
|
$metadata: deserializeMetadata(output),
|
|
@@ -291,7 +281,7 @@ export const deserializeAws_restJson1DeleteRuleCommand = async (output, context)
|
|
|
291
281
|
await collectBody(output.body, context);
|
|
292
282
|
return contents;
|
|
293
283
|
};
|
|
294
|
-
const
|
|
284
|
+
const de_DeleteRuleCommandError = async (output, context) => {
|
|
295
285
|
const parsedOutput = {
|
|
296
286
|
...output,
|
|
297
287
|
body: await parseErrorBody(output.body, context),
|
|
@@ -300,16 +290,16 @@ const deserializeAws_restJson1DeleteRuleCommandError = async (output, context) =
|
|
|
300
290
|
switch (errorCode) {
|
|
301
291
|
case "ConflictException":
|
|
302
292
|
case "com.amazonaws.rbin#ConflictException":
|
|
303
|
-
throw await
|
|
293
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
304
294
|
case "InternalServerException":
|
|
305
295
|
case "com.amazonaws.rbin#InternalServerException":
|
|
306
|
-
throw await
|
|
296
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
307
297
|
case "ResourceNotFoundException":
|
|
308
298
|
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
309
|
-
throw await
|
|
299
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
310
300
|
case "ValidationException":
|
|
311
301
|
case "com.amazonaws.rbin#ValidationException":
|
|
312
|
-
throw await
|
|
302
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
313
303
|
default:
|
|
314
304
|
const parsedBody = parsedOutput.body;
|
|
315
305
|
throwDefaultError({
|
|
@@ -320,9 +310,9 @@ const deserializeAws_restJson1DeleteRuleCommandError = async (output, context) =
|
|
|
320
310
|
});
|
|
321
311
|
}
|
|
322
312
|
};
|
|
323
|
-
export const
|
|
313
|
+
export const de_GetRuleCommand = async (output, context) => {
|
|
324
314
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
325
|
-
return
|
|
315
|
+
return de_GetRuleCommandError(output, context);
|
|
326
316
|
}
|
|
327
317
|
const contents = map({
|
|
328
318
|
$metadata: deserializeMetadata(output),
|
|
@@ -335,7 +325,7 @@ export const deserializeAws_restJson1GetRuleCommand = async (output, context) =>
|
|
|
335
325
|
contents.Identifier = __expectString(data.Identifier);
|
|
336
326
|
}
|
|
337
327
|
if (data.LockConfiguration != null) {
|
|
338
|
-
contents.LockConfiguration =
|
|
328
|
+
contents.LockConfiguration = de_LockConfiguration(data.LockConfiguration, context);
|
|
339
329
|
}
|
|
340
330
|
if (data.LockEndTime != null) {
|
|
341
331
|
contents.LockEndTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LockEndTime)));
|
|
@@ -344,20 +334,20 @@ export const deserializeAws_restJson1GetRuleCommand = async (output, context) =>
|
|
|
344
334
|
contents.LockState = __expectString(data.LockState);
|
|
345
335
|
}
|
|
346
336
|
if (data.ResourceTags != null) {
|
|
347
|
-
contents.ResourceTags =
|
|
337
|
+
contents.ResourceTags = de_ResourceTags(data.ResourceTags, context);
|
|
348
338
|
}
|
|
349
339
|
if (data.ResourceType != null) {
|
|
350
340
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
351
341
|
}
|
|
352
342
|
if (data.RetentionPeriod != null) {
|
|
353
|
-
contents.RetentionPeriod =
|
|
343
|
+
contents.RetentionPeriod = de_RetentionPeriod(data.RetentionPeriod, context);
|
|
354
344
|
}
|
|
355
345
|
if (data.Status != null) {
|
|
356
346
|
contents.Status = __expectString(data.Status);
|
|
357
347
|
}
|
|
358
348
|
return contents;
|
|
359
349
|
};
|
|
360
|
-
const
|
|
350
|
+
const de_GetRuleCommandError = async (output, context) => {
|
|
361
351
|
const parsedOutput = {
|
|
362
352
|
...output,
|
|
363
353
|
body: await parseErrorBody(output.body, context),
|
|
@@ -366,13 +356,13 @@ const deserializeAws_restJson1GetRuleCommandError = async (output, context) => {
|
|
|
366
356
|
switch (errorCode) {
|
|
367
357
|
case "InternalServerException":
|
|
368
358
|
case "com.amazonaws.rbin#InternalServerException":
|
|
369
|
-
throw await
|
|
359
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
370
360
|
case "ResourceNotFoundException":
|
|
371
361
|
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
372
|
-
throw await
|
|
362
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
373
363
|
case "ValidationException":
|
|
374
364
|
case "com.amazonaws.rbin#ValidationException":
|
|
375
|
-
throw await
|
|
365
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
376
366
|
default:
|
|
377
367
|
const parsedBody = parsedOutput.body;
|
|
378
368
|
throwDefaultError({
|
|
@@ -383,9 +373,9 @@ const deserializeAws_restJson1GetRuleCommandError = async (output, context) => {
|
|
|
383
373
|
});
|
|
384
374
|
}
|
|
385
375
|
};
|
|
386
|
-
export const
|
|
376
|
+
export const de_ListRulesCommand = async (output, context) => {
|
|
387
377
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
388
|
-
return
|
|
378
|
+
return de_ListRulesCommandError(output, context);
|
|
389
379
|
}
|
|
390
380
|
const contents = map({
|
|
391
381
|
$metadata: deserializeMetadata(output),
|
|
@@ -395,11 +385,11 @@ export const deserializeAws_restJson1ListRulesCommand = async (output, context)
|
|
|
395
385
|
contents.NextToken = __expectString(data.NextToken);
|
|
396
386
|
}
|
|
397
387
|
if (data.Rules != null) {
|
|
398
|
-
contents.Rules =
|
|
388
|
+
contents.Rules = de_RuleSummaryList(data.Rules, context);
|
|
399
389
|
}
|
|
400
390
|
return contents;
|
|
401
391
|
};
|
|
402
|
-
const
|
|
392
|
+
const de_ListRulesCommandError = async (output, context) => {
|
|
403
393
|
const parsedOutput = {
|
|
404
394
|
...output,
|
|
405
395
|
body: await parseErrorBody(output.body, context),
|
|
@@ -408,10 +398,10 @@ const deserializeAws_restJson1ListRulesCommandError = async (output, context) =>
|
|
|
408
398
|
switch (errorCode) {
|
|
409
399
|
case "InternalServerException":
|
|
410
400
|
case "com.amazonaws.rbin#InternalServerException":
|
|
411
|
-
throw await
|
|
401
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
412
402
|
case "ValidationException":
|
|
413
403
|
case "com.amazonaws.rbin#ValidationException":
|
|
414
|
-
throw await
|
|
404
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
415
405
|
default:
|
|
416
406
|
const parsedBody = parsedOutput.body;
|
|
417
407
|
throwDefaultError({
|
|
@@ -422,20 +412,20 @@ const deserializeAws_restJson1ListRulesCommandError = async (output, context) =>
|
|
|
422
412
|
});
|
|
423
413
|
}
|
|
424
414
|
};
|
|
425
|
-
export const
|
|
415
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
426
416
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
427
|
-
return
|
|
417
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
428
418
|
}
|
|
429
419
|
const contents = map({
|
|
430
420
|
$metadata: deserializeMetadata(output),
|
|
431
421
|
});
|
|
432
422
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
433
423
|
if (data.Tags != null) {
|
|
434
|
-
contents.Tags =
|
|
424
|
+
contents.Tags = de_TagList(data.Tags, context);
|
|
435
425
|
}
|
|
436
426
|
return contents;
|
|
437
427
|
};
|
|
438
|
-
const
|
|
428
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
439
429
|
const parsedOutput = {
|
|
440
430
|
...output,
|
|
441
431
|
body: await parseErrorBody(output.body, context),
|
|
@@ -444,13 +434,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
444
434
|
switch (errorCode) {
|
|
445
435
|
case "InternalServerException":
|
|
446
436
|
case "com.amazonaws.rbin#InternalServerException":
|
|
447
|
-
throw await
|
|
437
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
448
438
|
case "ResourceNotFoundException":
|
|
449
439
|
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
450
|
-
throw await
|
|
440
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
451
441
|
case "ValidationException":
|
|
452
442
|
case "com.amazonaws.rbin#ValidationException":
|
|
453
|
-
throw await
|
|
443
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
454
444
|
default:
|
|
455
445
|
const parsedBody = parsedOutput.body;
|
|
456
446
|
throwDefaultError({
|
|
@@ -461,9 +451,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
461
451
|
});
|
|
462
452
|
}
|
|
463
453
|
};
|
|
464
|
-
export const
|
|
454
|
+
export const de_LockRuleCommand = async (output, context) => {
|
|
465
455
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
466
|
-
return
|
|
456
|
+
return de_LockRuleCommandError(output, context);
|
|
467
457
|
}
|
|
468
458
|
const contents = map({
|
|
469
459
|
$metadata: deserializeMetadata(output),
|
|
@@ -476,26 +466,26 @@ export const deserializeAws_restJson1LockRuleCommand = async (output, context) =
|
|
|
476
466
|
contents.Identifier = __expectString(data.Identifier);
|
|
477
467
|
}
|
|
478
468
|
if (data.LockConfiguration != null) {
|
|
479
|
-
contents.LockConfiguration =
|
|
469
|
+
contents.LockConfiguration = de_LockConfiguration(data.LockConfiguration, context);
|
|
480
470
|
}
|
|
481
471
|
if (data.LockState != null) {
|
|
482
472
|
contents.LockState = __expectString(data.LockState);
|
|
483
473
|
}
|
|
484
474
|
if (data.ResourceTags != null) {
|
|
485
|
-
contents.ResourceTags =
|
|
475
|
+
contents.ResourceTags = de_ResourceTags(data.ResourceTags, context);
|
|
486
476
|
}
|
|
487
477
|
if (data.ResourceType != null) {
|
|
488
478
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
489
479
|
}
|
|
490
480
|
if (data.RetentionPeriod != null) {
|
|
491
|
-
contents.RetentionPeriod =
|
|
481
|
+
contents.RetentionPeriod = de_RetentionPeriod(data.RetentionPeriod, context);
|
|
492
482
|
}
|
|
493
483
|
if (data.Status != null) {
|
|
494
484
|
contents.Status = __expectString(data.Status);
|
|
495
485
|
}
|
|
496
486
|
return contents;
|
|
497
487
|
};
|
|
498
|
-
const
|
|
488
|
+
const de_LockRuleCommandError = async (output, context) => {
|
|
499
489
|
const parsedOutput = {
|
|
500
490
|
...output,
|
|
501
491
|
body: await parseErrorBody(output.body, context),
|
|
@@ -504,16 +494,16 @@ const deserializeAws_restJson1LockRuleCommandError = async (output, context) =>
|
|
|
504
494
|
switch (errorCode) {
|
|
505
495
|
case "ConflictException":
|
|
506
496
|
case "com.amazonaws.rbin#ConflictException":
|
|
507
|
-
throw await
|
|
497
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
508
498
|
case "InternalServerException":
|
|
509
499
|
case "com.amazonaws.rbin#InternalServerException":
|
|
510
|
-
throw await
|
|
500
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
511
501
|
case "ResourceNotFoundException":
|
|
512
502
|
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
513
|
-
throw await
|
|
503
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
514
504
|
case "ValidationException":
|
|
515
505
|
case "com.amazonaws.rbin#ValidationException":
|
|
516
|
-
throw await
|
|
506
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
517
507
|
default:
|
|
518
508
|
const parsedBody = parsedOutput.body;
|
|
519
509
|
throwDefaultError({
|
|
@@ -524,9 +514,9 @@ const deserializeAws_restJson1LockRuleCommandError = async (output, context) =>
|
|
|
524
514
|
});
|
|
525
515
|
}
|
|
526
516
|
};
|
|
527
|
-
export const
|
|
517
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
528
518
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
529
|
-
return
|
|
519
|
+
return de_TagResourceCommandError(output, context);
|
|
530
520
|
}
|
|
531
521
|
const contents = map({
|
|
532
522
|
$metadata: deserializeMetadata(output),
|
|
@@ -534,7 +524,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
534
524
|
await collectBody(output.body, context);
|
|
535
525
|
return contents;
|
|
536
526
|
};
|
|
537
|
-
const
|
|
527
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
538
528
|
const parsedOutput = {
|
|
539
529
|
...output,
|
|
540
530
|
body: await parseErrorBody(output.body, context),
|
|
@@ -543,16 +533,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
543
533
|
switch (errorCode) {
|
|
544
534
|
case "InternalServerException":
|
|
545
535
|
case "com.amazonaws.rbin#InternalServerException":
|
|
546
|
-
throw await
|
|
536
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
547
537
|
case "ResourceNotFoundException":
|
|
548
538
|
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
549
|
-
throw await
|
|
539
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
550
540
|
case "ServiceQuotaExceededException":
|
|
551
541
|
case "com.amazonaws.rbin#ServiceQuotaExceededException":
|
|
552
|
-
throw await
|
|
542
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
553
543
|
case "ValidationException":
|
|
554
544
|
case "com.amazonaws.rbin#ValidationException":
|
|
555
|
-
throw await
|
|
545
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
556
546
|
default:
|
|
557
547
|
const parsedBody = parsedOutput.body;
|
|
558
548
|
throwDefaultError({
|
|
@@ -563,9 +553,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
563
553
|
});
|
|
564
554
|
}
|
|
565
555
|
};
|
|
566
|
-
export const
|
|
556
|
+
export const de_UnlockRuleCommand = async (output, context) => {
|
|
567
557
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
568
|
-
return
|
|
558
|
+
return de_UnlockRuleCommandError(output, context);
|
|
569
559
|
}
|
|
570
560
|
const contents = map({
|
|
571
561
|
$metadata: deserializeMetadata(output),
|
|
@@ -578,7 +568,7 @@ export const deserializeAws_restJson1UnlockRuleCommand = async (output, context)
|
|
|
578
568
|
contents.Identifier = __expectString(data.Identifier);
|
|
579
569
|
}
|
|
580
570
|
if (data.LockConfiguration != null) {
|
|
581
|
-
contents.LockConfiguration =
|
|
571
|
+
contents.LockConfiguration = de_LockConfiguration(data.LockConfiguration, context);
|
|
582
572
|
}
|
|
583
573
|
if (data.LockEndTime != null) {
|
|
584
574
|
contents.LockEndTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LockEndTime)));
|
|
@@ -587,20 +577,20 @@ export const deserializeAws_restJson1UnlockRuleCommand = async (output, context)
|
|
|
587
577
|
contents.LockState = __expectString(data.LockState);
|
|
588
578
|
}
|
|
589
579
|
if (data.ResourceTags != null) {
|
|
590
|
-
contents.ResourceTags =
|
|
580
|
+
contents.ResourceTags = de_ResourceTags(data.ResourceTags, context);
|
|
591
581
|
}
|
|
592
582
|
if (data.ResourceType != null) {
|
|
593
583
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
594
584
|
}
|
|
595
585
|
if (data.RetentionPeriod != null) {
|
|
596
|
-
contents.RetentionPeriod =
|
|
586
|
+
contents.RetentionPeriod = de_RetentionPeriod(data.RetentionPeriod, context);
|
|
597
587
|
}
|
|
598
588
|
if (data.Status != null) {
|
|
599
589
|
contents.Status = __expectString(data.Status);
|
|
600
590
|
}
|
|
601
591
|
return contents;
|
|
602
592
|
};
|
|
603
|
-
const
|
|
593
|
+
const de_UnlockRuleCommandError = async (output, context) => {
|
|
604
594
|
const parsedOutput = {
|
|
605
595
|
...output,
|
|
606
596
|
body: await parseErrorBody(output.body, context),
|
|
@@ -609,16 +599,16 @@ const deserializeAws_restJson1UnlockRuleCommandError = async (output, context) =
|
|
|
609
599
|
switch (errorCode) {
|
|
610
600
|
case "ConflictException":
|
|
611
601
|
case "com.amazonaws.rbin#ConflictException":
|
|
612
|
-
throw await
|
|
602
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
613
603
|
case "InternalServerException":
|
|
614
604
|
case "com.amazonaws.rbin#InternalServerException":
|
|
615
|
-
throw await
|
|
605
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
616
606
|
case "ResourceNotFoundException":
|
|
617
607
|
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
618
|
-
throw await
|
|
608
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
619
609
|
case "ValidationException":
|
|
620
610
|
case "com.amazonaws.rbin#ValidationException":
|
|
621
|
-
throw await
|
|
611
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
622
612
|
default:
|
|
623
613
|
const parsedBody = parsedOutput.body;
|
|
624
614
|
throwDefaultError({
|
|
@@ -629,9 +619,9 @@ const deserializeAws_restJson1UnlockRuleCommandError = async (output, context) =
|
|
|
629
619
|
});
|
|
630
620
|
}
|
|
631
621
|
};
|
|
632
|
-
export const
|
|
622
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
633
623
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
634
|
-
return
|
|
624
|
+
return de_UntagResourceCommandError(output, context);
|
|
635
625
|
}
|
|
636
626
|
const contents = map({
|
|
637
627
|
$metadata: deserializeMetadata(output),
|
|
@@ -639,7 +629,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
639
629
|
await collectBody(output.body, context);
|
|
640
630
|
return contents;
|
|
641
631
|
};
|
|
642
|
-
const
|
|
632
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
643
633
|
const parsedOutput = {
|
|
644
634
|
...output,
|
|
645
635
|
body: await parseErrorBody(output.body, context),
|
|
@@ -648,13 +638,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
648
638
|
switch (errorCode) {
|
|
649
639
|
case "InternalServerException":
|
|
650
640
|
case "com.amazonaws.rbin#InternalServerException":
|
|
651
|
-
throw await
|
|
641
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
652
642
|
case "ResourceNotFoundException":
|
|
653
643
|
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
654
|
-
throw await
|
|
644
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
655
645
|
case "ValidationException":
|
|
656
646
|
case "com.amazonaws.rbin#ValidationException":
|
|
657
|
-
throw await
|
|
647
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
658
648
|
default:
|
|
659
649
|
const parsedBody = parsedOutput.body;
|
|
660
650
|
throwDefaultError({
|
|
@@ -665,9 +655,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
665
655
|
});
|
|
666
656
|
}
|
|
667
657
|
};
|
|
668
|
-
export const
|
|
658
|
+
export const de_UpdateRuleCommand = async (output, context) => {
|
|
669
659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
670
|
-
return
|
|
660
|
+
return de_UpdateRuleCommandError(output, context);
|
|
671
661
|
}
|
|
672
662
|
const contents = map({
|
|
673
663
|
$metadata: deserializeMetadata(output),
|
|
@@ -686,20 +676,20 @@ export const deserializeAws_restJson1UpdateRuleCommand = async (output, context)
|
|
|
686
676
|
contents.LockState = __expectString(data.LockState);
|
|
687
677
|
}
|
|
688
678
|
if (data.ResourceTags != null) {
|
|
689
|
-
contents.ResourceTags =
|
|
679
|
+
contents.ResourceTags = de_ResourceTags(data.ResourceTags, context);
|
|
690
680
|
}
|
|
691
681
|
if (data.ResourceType != null) {
|
|
692
682
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
693
683
|
}
|
|
694
684
|
if (data.RetentionPeriod != null) {
|
|
695
|
-
contents.RetentionPeriod =
|
|
685
|
+
contents.RetentionPeriod = de_RetentionPeriod(data.RetentionPeriod, context);
|
|
696
686
|
}
|
|
697
687
|
if (data.Status != null) {
|
|
698
688
|
contents.Status = __expectString(data.Status);
|
|
699
689
|
}
|
|
700
690
|
return contents;
|
|
701
691
|
};
|
|
702
|
-
const
|
|
692
|
+
const de_UpdateRuleCommandError = async (output, context) => {
|
|
703
693
|
const parsedOutput = {
|
|
704
694
|
...output,
|
|
705
695
|
body: await parseErrorBody(output.body, context),
|
|
@@ -708,16 +698,16 @@ const deserializeAws_restJson1UpdateRuleCommandError = async (output, context) =
|
|
|
708
698
|
switch (errorCode) {
|
|
709
699
|
case "ConflictException":
|
|
710
700
|
case "com.amazonaws.rbin#ConflictException":
|
|
711
|
-
throw await
|
|
701
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
712
702
|
case "InternalServerException":
|
|
713
703
|
case "com.amazonaws.rbin#InternalServerException":
|
|
714
|
-
throw await
|
|
704
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
715
705
|
case "ResourceNotFoundException":
|
|
716
706
|
case "com.amazonaws.rbin#ResourceNotFoundException":
|
|
717
|
-
throw await
|
|
707
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
718
708
|
case "ValidationException":
|
|
719
709
|
case "com.amazonaws.rbin#ValidationException":
|
|
720
|
-
throw await
|
|
710
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
721
711
|
default:
|
|
722
712
|
const parsedBody = parsedOutput.body;
|
|
723
713
|
throwDefaultError({
|
|
@@ -729,7 +719,7 @@ const deserializeAws_restJson1UpdateRuleCommandError = async (output, context) =
|
|
|
729
719
|
}
|
|
730
720
|
};
|
|
731
721
|
const map = __map;
|
|
732
|
-
const
|
|
722
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
733
723
|
const contents = map({});
|
|
734
724
|
const data = parsedOutput.body;
|
|
735
725
|
if (data.Message != null) {
|
|
@@ -744,7 +734,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
744
734
|
});
|
|
745
735
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
746
736
|
};
|
|
747
|
-
const
|
|
737
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
748
738
|
const contents = map({});
|
|
749
739
|
const data = parsedOutput.body;
|
|
750
740
|
if (data.Message != null) {
|
|
@@ -756,7 +746,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
756
746
|
});
|
|
757
747
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
758
748
|
};
|
|
759
|
-
const
|
|
749
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
760
750
|
const contents = map({});
|
|
761
751
|
const data = parsedOutput.body;
|
|
762
752
|
if (data.Message != null) {
|
|
@@ -771,7 +761,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
771
761
|
});
|
|
772
762
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
773
763
|
};
|
|
774
|
-
const
|
|
764
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
775
765
|
const contents = map({});
|
|
776
766
|
const data = parsedOutput.body;
|
|
777
767
|
if (data.Message != null) {
|
|
@@ -786,7 +776,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
786
776
|
});
|
|
787
777
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
788
778
|
};
|
|
789
|
-
const
|
|
779
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
790
780
|
const contents = map({});
|
|
791
781
|
const data = parsedOutput.body;
|
|
792
782
|
if (data.Message != null) {
|
|
@@ -801,116 +791,114 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
801
791
|
});
|
|
802
792
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
803
793
|
};
|
|
804
|
-
const
|
|
794
|
+
const se_LockConfiguration = (input, context) => {
|
|
805
795
|
return {
|
|
806
|
-
...(input.UnlockDelay != null && { UnlockDelay:
|
|
796
|
+
...(input.UnlockDelay != null && { UnlockDelay: se_UnlockDelay(input.UnlockDelay, context) }),
|
|
807
797
|
};
|
|
808
798
|
};
|
|
809
|
-
const
|
|
799
|
+
const se_ResourceTag = (input, context) => {
|
|
810
800
|
return {
|
|
811
801
|
...(input.ResourceTagKey != null && { ResourceTagKey: input.ResourceTagKey }),
|
|
812
802
|
...(input.ResourceTagValue != null && { ResourceTagValue: input.ResourceTagValue }),
|
|
813
803
|
};
|
|
814
804
|
};
|
|
815
|
-
const
|
|
805
|
+
const se_ResourceTags = (input, context) => {
|
|
816
806
|
return input
|
|
817
807
|
.filter((e) => e != null)
|
|
818
808
|
.map((entry) => {
|
|
819
|
-
return
|
|
809
|
+
return se_ResourceTag(entry, context);
|
|
820
810
|
});
|
|
821
811
|
};
|
|
822
|
-
const
|
|
812
|
+
const se_RetentionPeriod = (input, context) => {
|
|
823
813
|
return {
|
|
824
814
|
...(input.RetentionPeriodUnit != null && { RetentionPeriodUnit: input.RetentionPeriodUnit }),
|
|
825
815
|
...(input.RetentionPeriodValue != null && { RetentionPeriodValue: input.RetentionPeriodValue }),
|
|
826
816
|
};
|
|
827
817
|
};
|
|
828
|
-
const
|
|
818
|
+
const se_Tag = (input, context) => {
|
|
829
819
|
return {
|
|
830
820
|
...(input.Key != null && { Key: input.Key }),
|
|
831
821
|
...(input.Value != null && { Value: input.Value }),
|
|
832
822
|
};
|
|
833
823
|
};
|
|
834
|
-
const
|
|
824
|
+
const se_TagList = (input, context) => {
|
|
835
825
|
return input
|
|
836
826
|
.filter((e) => e != null)
|
|
837
827
|
.map((entry) => {
|
|
838
|
-
return
|
|
828
|
+
return se_Tag(entry, context);
|
|
839
829
|
});
|
|
840
830
|
};
|
|
841
|
-
const
|
|
831
|
+
const se_UnlockDelay = (input, context) => {
|
|
842
832
|
return {
|
|
843
833
|
...(input.UnlockDelayUnit != null && { UnlockDelayUnit: input.UnlockDelayUnit }),
|
|
844
834
|
...(input.UnlockDelayValue != null && { UnlockDelayValue: input.UnlockDelayValue }),
|
|
845
835
|
};
|
|
846
836
|
};
|
|
847
|
-
const
|
|
837
|
+
const de_LockConfiguration = (output, context) => {
|
|
848
838
|
return {
|
|
849
|
-
UnlockDelay: output.UnlockDelay != null ?
|
|
839
|
+
UnlockDelay: output.UnlockDelay != null ? de_UnlockDelay(output.UnlockDelay, context) : undefined,
|
|
850
840
|
};
|
|
851
841
|
};
|
|
852
|
-
const
|
|
842
|
+
const de_ResourceTag = (output, context) => {
|
|
853
843
|
return {
|
|
854
844
|
ResourceTagKey: __expectString(output.ResourceTagKey),
|
|
855
845
|
ResourceTagValue: __expectString(output.ResourceTagValue),
|
|
856
846
|
};
|
|
857
847
|
};
|
|
858
|
-
const
|
|
848
|
+
const de_ResourceTags = (output, context) => {
|
|
859
849
|
const retVal = (output || [])
|
|
860
850
|
.filter((e) => e != null)
|
|
861
851
|
.map((entry) => {
|
|
862
852
|
if (entry === null) {
|
|
863
853
|
return null;
|
|
864
854
|
}
|
|
865
|
-
return
|
|
855
|
+
return de_ResourceTag(entry, context);
|
|
866
856
|
});
|
|
867
857
|
return retVal;
|
|
868
858
|
};
|
|
869
|
-
const
|
|
859
|
+
const de_RetentionPeriod = (output, context) => {
|
|
870
860
|
return {
|
|
871
861
|
RetentionPeriodUnit: __expectString(output.RetentionPeriodUnit),
|
|
872
862
|
RetentionPeriodValue: __expectInt32(output.RetentionPeriodValue),
|
|
873
863
|
};
|
|
874
864
|
};
|
|
875
|
-
const
|
|
865
|
+
const de_RuleSummary = (output, context) => {
|
|
876
866
|
return {
|
|
877
867
|
Description: __expectString(output.Description),
|
|
878
868
|
Identifier: __expectString(output.Identifier),
|
|
879
869
|
LockState: __expectString(output.LockState),
|
|
880
|
-
RetentionPeriod: output.RetentionPeriod != null
|
|
881
|
-
? deserializeAws_restJson1RetentionPeriod(output.RetentionPeriod, context)
|
|
882
|
-
: undefined,
|
|
870
|
+
RetentionPeriod: output.RetentionPeriod != null ? de_RetentionPeriod(output.RetentionPeriod, context) : undefined,
|
|
883
871
|
};
|
|
884
872
|
};
|
|
885
|
-
const
|
|
873
|
+
const de_RuleSummaryList = (output, context) => {
|
|
886
874
|
const retVal = (output || [])
|
|
887
875
|
.filter((e) => e != null)
|
|
888
876
|
.map((entry) => {
|
|
889
877
|
if (entry === null) {
|
|
890
878
|
return null;
|
|
891
879
|
}
|
|
892
|
-
return
|
|
880
|
+
return de_RuleSummary(entry, context);
|
|
893
881
|
});
|
|
894
882
|
return retVal;
|
|
895
883
|
};
|
|
896
|
-
const
|
|
884
|
+
const de_Tag = (output, context) => {
|
|
897
885
|
return {
|
|
898
886
|
Key: __expectString(output.Key),
|
|
899
887
|
Value: __expectString(output.Value),
|
|
900
888
|
};
|
|
901
889
|
};
|
|
902
|
-
const
|
|
890
|
+
const de_TagList = (output, context) => {
|
|
903
891
|
const retVal = (output || [])
|
|
904
892
|
.filter((e) => e != null)
|
|
905
893
|
.map((entry) => {
|
|
906
894
|
if (entry === null) {
|
|
907
895
|
return null;
|
|
908
896
|
}
|
|
909
|
-
return
|
|
897
|
+
return de_Tag(entry, context);
|
|
910
898
|
});
|
|
911
899
|
return retVal;
|
|
912
900
|
};
|
|
913
|
-
const
|
|
901
|
+
const de_UnlockDelay = (output, context) => {
|
|
914
902
|
return {
|
|
915
903
|
UnlockDelayUnit: __expectString(output.UnlockDelayUnit),
|
|
916
904
|
UnlockDelayValue: __expectInt32(output.UnlockDelayValue),
|