@aws-sdk/client-dlm 3.141.0 → 3.147.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist-cjs/models/models_0.js +5 -5
- package/dist-cjs/protocols/Aws_restJson1.js +129 -227
- package/dist-es/models/models_0.js +1 -1
- package/dist-es/protocols/Aws_restJson1.js +160 -227
- package/dist-types/models/models_0.d.ts +176 -94
- package/dist-types/ts3.4/models/models_0.d.ts +11 -9
- package/package.json +11 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, 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";
|
|
4
4
|
import { DLMServiceException as __BaseException } from "../models/DLMServiceException";
|
|
5
5
|
import { InternalServerException, InvalidRequestException, LimitExceededException, ResourceNotFoundException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1CreateLifecyclePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -30,7 +30,7 @@ export var serializeAws_restJson1CreateLifecyclePolicyCommand = function (input,
|
|
|
30
30
|
});
|
|
31
31
|
}); };
|
|
32
32
|
export var serializeAws_restJson1DeleteLifecyclePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
33
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
33
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
34
34
|
return __generator(this, function (_c) {
|
|
35
35
|
switch (_c.label) {
|
|
36
36
|
case 0: return [4, context.endpoint()];
|
|
@@ -38,16 +38,7 @@ export var serializeAws_restJson1DeleteLifecyclePolicyCommand = function (input,
|
|
|
38
38
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
39
39
|
headers = {};
|
|
40
40
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policies/{PolicyId}";
|
|
41
|
-
|
|
42
|
-
labelValue = input.PolicyId;
|
|
43
|
-
if (labelValue.length <= 0) {
|
|
44
|
-
throw new Error("Empty value provided for input HTTP label: PolicyId.");
|
|
45
|
-
}
|
|
46
|
-
resolvedPath = resolvedPath.replace("{PolicyId}", __extendedEncodeURIComponent(labelValue));
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
throw new Error("No value provided for input HTTP label: PolicyId.");
|
|
50
|
-
}
|
|
41
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "PolicyId", function () { return input.PolicyId; }, "{PolicyId}", false);
|
|
51
42
|
return [2, new __HttpRequest({
|
|
52
43
|
protocol: protocol,
|
|
53
44
|
hostname: hostname,
|
|
@@ -69,9 +60,16 @@ export var serializeAws_restJson1GetLifecyclePoliciesCommand = function (input,
|
|
|
69
60
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
70
61
|
headers = {};
|
|
71
62
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policies";
|
|
72
|
-
query =
|
|
73
|
-
|
|
74
|
-
|
|
63
|
+
query = map({
|
|
64
|
+
policyIds: [function () { return input.PolicyIds !== void 0; }, function () { return (input.PolicyIds || []).map(function (_entry) { return _entry; }); }],
|
|
65
|
+
state: [, input.State],
|
|
66
|
+
resourceTypes: [
|
|
67
|
+
function () { return input.ResourceTypes !== void 0; },
|
|
68
|
+
function () { return (input.ResourceTypes || []).map(function (_entry) { return _entry; }); },
|
|
69
|
+
],
|
|
70
|
+
targetTags: [function () { return input.TargetTags !== void 0; }, function () { return (input.TargetTags || []).map(function (_entry) { return _entry; }); }],
|
|
71
|
+
tagsToAdd: [function () { return input.TagsToAdd !== void 0; }, function () { return (input.TagsToAdd || []).map(function (_entry) { return _entry; }); }],
|
|
72
|
+
});
|
|
75
73
|
return [2, new __HttpRequest({
|
|
76
74
|
protocol: protocol,
|
|
77
75
|
hostname: hostname,
|
|
@@ -86,7 +84,7 @@ export var serializeAws_restJson1GetLifecyclePoliciesCommand = function (input,
|
|
|
86
84
|
});
|
|
87
85
|
}); };
|
|
88
86
|
export var serializeAws_restJson1GetLifecyclePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
89
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
87
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
90
88
|
return __generator(this, function (_c) {
|
|
91
89
|
switch (_c.label) {
|
|
92
90
|
case 0: return [4, context.endpoint()];
|
|
@@ -94,16 +92,7 @@ export var serializeAws_restJson1GetLifecyclePolicyCommand = function (input, co
|
|
|
94
92
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
95
93
|
headers = {};
|
|
96
94
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policies/{PolicyId}";
|
|
97
|
-
|
|
98
|
-
labelValue = input.PolicyId;
|
|
99
|
-
if (labelValue.length <= 0) {
|
|
100
|
-
throw new Error("Empty value provided for input HTTP label: PolicyId.");
|
|
101
|
-
}
|
|
102
|
-
resolvedPath = resolvedPath.replace("{PolicyId}", __extendedEncodeURIComponent(labelValue));
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
throw new Error("No value provided for input HTTP label: PolicyId.");
|
|
106
|
-
}
|
|
95
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "PolicyId", function () { return input.PolicyId; }, "{PolicyId}", false);
|
|
107
96
|
return [2, new __HttpRequest({
|
|
108
97
|
protocol: protocol,
|
|
109
98
|
hostname: hostname,
|
|
@@ -117,7 +106,7 @@ export var serializeAws_restJson1GetLifecyclePolicyCommand = function (input, co
|
|
|
117
106
|
});
|
|
118
107
|
}); };
|
|
119
108
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
120
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
109
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
121
110
|
return __generator(this, function (_c) {
|
|
122
111
|
switch (_c.label) {
|
|
123
112
|
case 0: return [4, context.endpoint()];
|
|
@@ -125,16 +114,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
125
114
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
126
115
|
headers = {};
|
|
127
116
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
128
|
-
|
|
129
|
-
labelValue = input.ResourceArn;
|
|
130
|
-
if (labelValue.length <= 0) {
|
|
131
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
132
|
-
}
|
|
133
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
137
|
-
}
|
|
117
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
138
118
|
return [2, new __HttpRequest({
|
|
139
119
|
protocol: protocol,
|
|
140
120
|
hostname: hostname,
|
|
@@ -148,7 +128,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
148
128
|
});
|
|
149
129
|
}); };
|
|
150
130
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
151
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
131
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
152
132
|
return __generator(this, function (_c) {
|
|
153
133
|
switch (_c.label) {
|
|
154
134
|
case 0: return [4, context.endpoint()];
|
|
@@ -158,16 +138,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
158
138
|
"content-type": "application/json",
|
|
159
139
|
};
|
|
160
140
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
161
|
-
|
|
162
|
-
labelValue = input.ResourceArn;
|
|
163
|
-
if (labelValue.length <= 0) {
|
|
164
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
165
|
-
}
|
|
166
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
170
|
-
}
|
|
141
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
171
142
|
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
172
143
|
return [2, new __HttpRequest({
|
|
173
144
|
protocol: protocol,
|
|
@@ -182,7 +153,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
182
153
|
});
|
|
183
154
|
}); };
|
|
184
155
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
185
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
156
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
186
157
|
return __generator(this, function (_c) {
|
|
187
158
|
switch (_c.label) {
|
|
188
159
|
case 0: return [4, context.endpoint()];
|
|
@@ -190,17 +161,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
190
161
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
191
162
|
headers = {};
|
|
192
163
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
199
|
-
}
|
|
200
|
-
else {
|
|
201
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
202
|
-
}
|
|
203
|
-
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
164
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
165
|
+
query = map({
|
|
166
|
+
tagKeys: [function () { return input.TagKeys !== void 0; }, function () { return (input.TagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
167
|
+
});
|
|
204
168
|
return [2, new __HttpRequest({
|
|
205
169
|
protocol: protocol,
|
|
206
170
|
hostname: hostname,
|
|
@@ -215,7 +179,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
215
179
|
});
|
|
216
180
|
}); };
|
|
217
181
|
export var serializeAws_restJson1UpdateLifecyclePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
218
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
182
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
219
183
|
return __generator(this, function (_c) {
|
|
220
184
|
switch (_c.label) {
|
|
221
185
|
case 0: return [4, context.endpoint()];
|
|
@@ -225,16 +189,7 @@ export var serializeAws_restJson1UpdateLifecyclePolicyCommand = function (input,
|
|
|
225
189
|
"content-type": "application/json",
|
|
226
190
|
};
|
|
227
191
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policies/{PolicyId}";
|
|
228
|
-
|
|
229
|
-
labelValue = input.PolicyId;
|
|
230
|
-
if (labelValue.length <= 0) {
|
|
231
|
-
throw new Error("Empty value provided for input HTTP label: PolicyId.");
|
|
232
|
-
}
|
|
233
|
-
resolvedPath = resolvedPath.replace("{PolicyId}", __extendedEncodeURIComponent(labelValue));
|
|
234
|
-
}
|
|
235
|
-
else {
|
|
236
|
-
throw new Error("No value provided for input HTTP label: PolicyId.");
|
|
237
|
-
}
|
|
192
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "PolicyId", function () { return input.PolicyId; }, "{PolicyId}", false);
|
|
238
193
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.PolicyDetails != null && {
|
|
239
194
|
PolicyDetails: serializeAws_restJson1PolicyDetails(input.PolicyDetails, context),
|
|
240
195
|
})), (input.State != null && { State: input.State })));
|
|
@@ -258,24 +213,23 @@ export var deserializeAws_restJson1CreateLifecyclePolicyCommand = function (outp
|
|
|
258
213
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
259
214
|
return [2, deserializeAws_restJson1CreateLifecyclePolicyCommandError(output, context)];
|
|
260
215
|
}
|
|
261
|
-
contents = {
|
|
216
|
+
contents = map({
|
|
262
217
|
$metadata: deserializeMetadata(output),
|
|
263
|
-
|
|
264
|
-
};
|
|
218
|
+
});
|
|
265
219
|
_a = __expectNonNull;
|
|
266
220
|
_b = __expectObject;
|
|
267
221
|
return [4, parseBody(output.body, context)];
|
|
268
222
|
case 1:
|
|
269
223
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
270
|
-
if (data.PolicyId
|
|
224
|
+
if (data.PolicyId != null) {
|
|
271
225
|
contents.PolicyId = __expectString(data.PolicyId);
|
|
272
226
|
}
|
|
273
|
-
return [2,
|
|
227
|
+
return [2, contents];
|
|
274
228
|
}
|
|
275
229
|
});
|
|
276
230
|
}); };
|
|
277
231
|
var deserializeAws_restJson1CreateLifecyclePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
278
|
-
var parsedOutput, _a,
|
|
232
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
279
233
|
var _c;
|
|
280
234
|
return __generator(this, function (_d) {
|
|
281
235
|
switch (_d.label) {
|
|
@@ -304,14 +258,14 @@ var deserializeAws_restJson1CreateLifecyclePolicyCommandError = function (output
|
|
|
304
258
|
case 7: throw _d.sent();
|
|
305
259
|
case 8:
|
|
306
260
|
parsedBody = parsedOutput.body;
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
$metadata: $metadata,
|
|
261
|
+
throwDefaultError({
|
|
262
|
+
output: output,
|
|
263
|
+
parsedBody: parsedBody,
|
|
264
|
+
exceptionCtor: __BaseException,
|
|
265
|
+
errorCode: errorCode,
|
|
313
266
|
});
|
|
314
|
-
|
|
267
|
+
_d.label = 9;
|
|
268
|
+
case 9: return [2];
|
|
315
269
|
}
|
|
316
270
|
});
|
|
317
271
|
}); };
|
|
@@ -323,18 +277,18 @@ export var deserializeAws_restJson1DeleteLifecyclePolicyCommand = function (outp
|
|
|
323
277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
324
278
|
return [2, deserializeAws_restJson1DeleteLifecyclePolicyCommandError(output, context)];
|
|
325
279
|
}
|
|
326
|
-
contents = {
|
|
280
|
+
contents = map({
|
|
327
281
|
$metadata: deserializeMetadata(output),
|
|
328
|
-
};
|
|
282
|
+
});
|
|
329
283
|
return [4, collectBody(output.body, context)];
|
|
330
284
|
case 1:
|
|
331
285
|
_a.sent();
|
|
332
|
-
return [2,
|
|
286
|
+
return [2, contents];
|
|
333
287
|
}
|
|
334
288
|
});
|
|
335
289
|
}); };
|
|
336
290
|
var deserializeAws_restJson1DeleteLifecyclePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
337
|
-
var parsedOutput, _a,
|
|
291
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
338
292
|
var _c;
|
|
339
293
|
return __generator(this, function (_d) {
|
|
340
294
|
switch (_d.label) {
|
|
@@ -363,14 +317,14 @@ var deserializeAws_restJson1DeleteLifecyclePolicyCommandError = function (output
|
|
|
363
317
|
case 7: throw _d.sent();
|
|
364
318
|
case 8:
|
|
365
319
|
parsedBody = parsedOutput.body;
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
$metadata: $metadata,
|
|
320
|
+
throwDefaultError({
|
|
321
|
+
output: output,
|
|
322
|
+
parsedBody: parsedBody,
|
|
323
|
+
exceptionCtor: __BaseException,
|
|
324
|
+
errorCode: errorCode,
|
|
372
325
|
});
|
|
373
|
-
|
|
326
|
+
_d.label = 9;
|
|
327
|
+
case 9: return [2];
|
|
374
328
|
}
|
|
375
329
|
});
|
|
376
330
|
}); };
|
|
@@ -382,24 +336,23 @@ export var deserializeAws_restJson1GetLifecyclePoliciesCommand = function (outpu
|
|
|
382
336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
383
337
|
return [2, deserializeAws_restJson1GetLifecyclePoliciesCommandError(output, context)];
|
|
384
338
|
}
|
|
385
|
-
contents = {
|
|
339
|
+
contents = map({
|
|
386
340
|
$metadata: deserializeMetadata(output),
|
|
387
|
-
|
|
388
|
-
};
|
|
341
|
+
});
|
|
389
342
|
_a = __expectNonNull;
|
|
390
343
|
_b = __expectObject;
|
|
391
344
|
return [4, parseBody(output.body, context)];
|
|
392
345
|
case 1:
|
|
393
346
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
394
|
-
if (data.Policies
|
|
347
|
+
if (data.Policies != null) {
|
|
395
348
|
contents.Policies = deserializeAws_restJson1LifecyclePolicySummaryList(data.Policies, context);
|
|
396
349
|
}
|
|
397
|
-
return [2,
|
|
350
|
+
return [2, contents];
|
|
398
351
|
}
|
|
399
352
|
});
|
|
400
353
|
}); };
|
|
401
354
|
var deserializeAws_restJson1GetLifecyclePoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
402
|
-
var parsedOutput, _a,
|
|
355
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
403
356
|
var _c;
|
|
404
357
|
return __generator(this, function (_d) {
|
|
405
358
|
switch (_d.label) {
|
|
@@ -432,14 +385,14 @@ var deserializeAws_restJson1GetLifecyclePoliciesCommandError = function (output,
|
|
|
432
385
|
case 9: throw _d.sent();
|
|
433
386
|
case 10:
|
|
434
387
|
parsedBody = parsedOutput.body;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
$metadata: $metadata,
|
|
388
|
+
throwDefaultError({
|
|
389
|
+
output: output,
|
|
390
|
+
parsedBody: parsedBody,
|
|
391
|
+
exceptionCtor: __BaseException,
|
|
392
|
+
errorCode: errorCode,
|
|
441
393
|
});
|
|
442
|
-
|
|
394
|
+
_d.label = 11;
|
|
395
|
+
case 11: return [2];
|
|
443
396
|
}
|
|
444
397
|
});
|
|
445
398
|
}); };
|
|
@@ -451,24 +404,23 @@ export var deserializeAws_restJson1GetLifecyclePolicyCommand = function (output,
|
|
|
451
404
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
452
405
|
return [2, deserializeAws_restJson1GetLifecyclePolicyCommandError(output, context)];
|
|
453
406
|
}
|
|
454
|
-
contents = {
|
|
407
|
+
contents = map({
|
|
455
408
|
$metadata: deserializeMetadata(output),
|
|
456
|
-
|
|
457
|
-
};
|
|
409
|
+
});
|
|
458
410
|
_a = __expectNonNull;
|
|
459
411
|
_b = __expectObject;
|
|
460
412
|
return [4, parseBody(output.body, context)];
|
|
461
413
|
case 1:
|
|
462
414
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
463
|
-
if (data.Policy
|
|
415
|
+
if (data.Policy != null) {
|
|
464
416
|
contents.Policy = deserializeAws_restJson1LifecyclePolicy(data.Policy, context);
|
|
465
417
|
}
|
|
466
|
-
return [2,
|
|
418
|
+
return [2, contents];
|
|
467
419
|
}
|
|
468
420
|
});
|
|
469
421
|
}); };
|
|
470
422
|
var deserializeAws_restJson1GetLifecyclePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
471
|
-
var parsedOutput, _a,
|
|
423
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
472
424
|
var _c;
|
|
473
425
|
return __generator(this, function (_d) {
|
|
474
426
|
switch (_d.label) {
|
|
@@ -497,14 +449,14 @@ var deserializeAws_restJson1GetLifecyclePolicyCommandError = function (output, c
|
|
|
497
449
|
case 7: throw _d.sent();
|
|
498
450
|
case 8:
|
|
499
451
|
parsedBody = parsedOutput.body;
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
$metadata: $metadata,
|
|
452
|
+
throwDefaultError({
|
|
453
|
+
output: output,
|
|
454
|
+
parsedBody: parsedBody,
|
|
455
|
+
exceptionCtor: __BaseException,
|
|
456
|
+
errorCode: errorCode,
|
|
506
457
|
});
|
|
507
|
-
|
|
458
|
+
_d.label = 9;
|
|
459
|
+
case 9: return [2];
|
|
508
460
|
}
|
|
509
461
|
});
|
|
510
462
|
}); };
|
|
@@ -516,24 +468,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
516
468
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
517
469
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
518
470
|
}
|
|
519
|
-
contents = {
|
|
471
|
+
contents = map({
|
|
520
472
|
$metadata: deserializeMetadata(output),
|
|
521
|
-
|
|
522
|
-
};
|
|
473
|
+
});
|
|
523
474
|
_a = __expectNonNull;
|
|
524
475
|
_b = __expectObject;
|
|
525
476
|
return [4, parseBody(output.body, context)];
|
|
526
477
|
case 1:
|
|
527
478
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
528
|
-
if (data.Tags
|
|
479
|
+
if (data.Tags != null) {
|
|
529
480
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
530
481
|
}
|
|
531
|
-
return [2,
|
|
482
|
+
return [2, contents];
|
|
532
483
|
}
|
|
533
484
|
});
|
|
534
485
|
}); };
|
|
535
486
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
536
|
-
var parsedOutput, _a,
|
|
487
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
537
488
|
var _c;
|
|
538
489
|
return __generator(this, function (_d) {
|
|
539
490
|
switch (_d.label) {
|
|
@@ -562,14 +513,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
562
513
|
case 7: throw _d.sent();
|
|
563
514
|
case 8:
|
|
564
515
|
parsedBody = parsedOutput.body;
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
$metadata: $metadata,
|
|
516
|
+
throwDefaultError({
|
|
517
|
+
output: output,
|
|
518
|
+
parsedBody: parsedBody,
|
|
519
|
+
exceptionCtor: __BaseException,
|
|
520
|
+
errorCode: errorCode,
|
|
571
521
|
});
|
|
572
|
-
|
|
522
|
+
_d.label = 9;
|
|
523
|
+
case 9: return [2];
|
|
573
524
|
}
|
|
574
525
|
});
|
|
575
526
|
}); };
|
|
@@ -581,18 +532,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
581
532
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
582
533
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
583
534
|
}
|
|
584
|
-
contents = {
|
|
535
|
+
contents = map({
|
|
585
536
|
$metadata: deserializeMetadata(output),
|
|
586
|
-
};
|
|
537
|
+
});
|
|
587
538
|
return [4, collectBody(output.body, context)];
|
|
588
539
|
case 1:
|
|
589
540
|
_a.sent();
|
|
590
|
-
return [2,
|
|
541
|
+
return [2, contents];
|
|
591
542
|
}
|
|
592
543
|
});
|
|
593
544
|
}); };
|
|
594
545
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
595
|
-
var parsedOutput, _a,
|
|
546
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
596
547
|
var _c;
|
|
597
548
|
return __generator(this, function (_d) {
|
|
598
549
|
switch (_d.label) {
|
|
@@ -621,14 +572,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
621
572
|
case 7: throw _d.sent();
|
|
622
573
|
case 8:
|
|
623
574
|
parsedBody = parsedOutput.body;
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
$metadata: $metadata,
|
|
575
|
+
throwDefaultError({
|
|
576
|
+
output: output,
|
|
577
|
+
parsedBody: parsedBody,
|
|
578
|
+
exceptionCtor: __BaseException,
|
|
579
|
+
errorCode: errorCode,
|
|
630
580
|
});
|
|
631
|
-
|
|
581
|
+
_d.label = 9;
|
|
582
|
+
case 9: return [2];
|
|
632
583
|
}
|
|
633
584
|
});
|
|
634
585
|
}); };
|
|
@@ -640,18 +591,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
640
591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
641
592
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
642
593
|
}
|
|
643
|
-
contents = {
|
|
594
|
+
contents = map({
|
|
644
595
|
$metadata: deserializeMetadata(output),
|
|
645
|
-
};
|
|
596
|
+
});
|
|
646
597
|
return [4, collectBody(output.body, context)];
|
|
647
598
|
case 1:
|
|
648
599
|
_a.sent();
|
|
649
|
-
return [2,
|
|
600
|
+
return [2, contents];
|
|
650
601
|
}
|
|
651
602
|
});
|
|
652
603
|
}); };
|
|
653
604
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
654
|
-
var parsedOutput, _a,
|
|
605
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
655
606
|
var _c;
|
|
656
607
|
return __generator(this, function (_d) {
|
|
657
608
|
switch (_d.label) {
|
|
@@ -680,14 +631,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
680
631
|
case 7: throw _d.sent();
|
|
681
632
|
case 8:
|
|
682
633
|
parsedBody = parsedOutput.body;
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
$metadata: $metadata,
|
|
634
|
+
throwDefaultError({
|
|
635
|
+
output: output,
|
|
636
|
+
parsedBody: parsedBody,
|
|
637
|
+
exceptionCtor: __BaseException,
|
|
638
|
+
errorCode: errorCode,
|
|
689
639
|
});
|
|
690
|
-
|
|
640
|
+
_d.label = 9;
|
|
641
|
+
case 9: return [2];
|
|
691
642
|
}
|
|
692
643
|
});
|
|
693
644
|
}); };
|
|
@@ -699,18 +650,18 @@ export var deserializeAws_restJson1UpdateLifecyclePolicyCommand = function (outp
|
|
|
699
650
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
700
651
|
return [2, deserializeAws_restJson1UpdateLifecyclePolicyCommandError(output, context)];
|
|
701
652
|
}
|
|
702
|
-
contents = {
|
|
653
|
+
contents = map({
|
|
703
654
|
$metadata: deserializeMetadata(output),
|
|
704
|
-
};
|
|
655
|
+
});
|
|
705
656
|
return [4, collectBody(output.body, context)];
|
|
706
657
|
case 1:
|
|
707
658
|
_a.sent();
|
|
708
|
-
return [2,
|
|
659
|
+
return [2, contents];
|
|
709
660
|
}
|
|
710
661
|
});
|
|
711
662
|
}); };
|
|
712
663
|
var deserializeAws_restJson1UpdateLifecyclePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
713
|
-
var parsedOutput, _a,
|
|
664
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
714
665
|
var _c;
|
|
715
666
|
return __generator(this, function (_d) {
|
|
716
667
|
switch (_d.label) {
|
|
@@ -743,26 +694,27 @@ var deserializeAws_restJson1UpdateLifecyclePolicyCommandError = function (output
|
|
|
743
694
|
case 9: throw _d.sent();
|
|
744
695
|
case 10:
|
|
745
696
|
parsedBody = parsedOutput.body;
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
$metadata: $metadata,
|
|
697
|
+
throwDefaultError({
|
|
698
|
+
output: output,
|
|
699
|
+
parsedBody: parsedBody,
|
|
700
|
+
exceptionCtor: __BaseException,
|
|
701
|
+
errorCode: errorCode,
|
|
752
702
|
});
|
|
753
|
-
|
|
703
|
+
_d.label = 11;
|
|
704
|
+
case 11: return [2];
|
|
754
705
|
}
|
|
755
706
|
});
|
|
756
707
|
}); };
|
|
708
|
+
var map = __map;
|
|
757
709
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
758
710
|
var contents, data, exception;
|
|
759
711
|
return __generator(this, function (_a) {
|
|
760
|
-
contents = {};
|
|
712
|
+
contents = map({});
|
|
761
713
|
data = parsedOutput.body;
|
|
762
|
-
if (data.Code
|
|
714
|
+
if (data.Code != null) {
|
|
763
715
|
contents.Code = __expectString(data.Code);
|
|
764
716
|
}
|
|
765
|
-
if (data.Message
|
|
717
|
+
if (data.Message != null) {
|
|
766
718
|
contents.Message = __expectString(data.Message);
|
|
767
719
|
}
|
|
768
720
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -772,18 +724,18 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
772
724
|
var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
773
725
|
var contents, data, exception;
|
|
774
726
|
return __generator(this, function (_a) {
|
|
775
|
-
contents = {};
|
|
727
|
+
contents = map({});
|
|
776
728
|
data = parsedOutput.body;
|
|
777
|
-
if (data.Code
|
|
729
|
+
if (data.Code != null) {
|
|
778
730
|
contents.Code = __expectString(data.Code);
|
|
779
731
|
}
|
|
780
|
-
if (data.Message
|
|
732
|
+
if (data.Message != null) {
|
|
781
733
|
contents.Message = __expectString(data.Message);
|
|
782
734
|
}
|
|
783
|
-
if (data.MutuallyExclusiveParameters
|
|
735
|
+
if (data.MutuallyExclusiveParameters != null) {
|
|
784
736
|
contents.MutuallyExclusiveParameters = deserializeAws_restJson1ParameterList(data.MutuallyExclusiveParameters, context);
|
|
785
737
|
}
|
|
786
|
-
if (data.RequiredParameters
|
|
738
|
+
if (data.RequiredParameters != null) {
|
|
787
739
|
contents.RequiredParameters = deserializeAws_restJson1ParameterList(data.RequiredParameters, context);
|
|
788
740
|
}
|
|
789
741
|
exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -793,15 +745,15 @@ var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOu
|
|
|
793
745
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
794
746
|
var contents, data, exception;
|
|
795
747
|
return __generator(this, function (_a) {
|
|
796
|
-
contents = {};
|
|
748
|
+
contents = map({});
|
|
797
749
|
data = parsedOutput.body;
|
|
798
|
-
if (data.Code
|
|
750
|
+
if (data.Code != null) {
|
|
799
751
|
contents.Code = __expectString(data.Code);
|
|
800
752
|
}
|
|
801
|
-
if (data.Message
|
|
753
|
+
if (data.Message != null) {
|
|
802
754
|
contents.Message = __expectString(data.Message);
|
|
803
755
|
}
|
|
804
|
-
if (data.ResourceType
|
|
756
|
+
if (data.ResourceType != null) {
|
|
805
757
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
806
758
|
}
|
|
807
759
|
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -811,18 +763,18 @@ var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOut
|
|
|
811
763
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
812
764
|
var contents, data, exception;
|
|
813
765
|
return __generator(this, function (_a) {
|
|
814
|
-
contents = {};
|
|
766
|
+
contents = map({});
|
|
815
767
|
data = parsedOutput.body;
|
|
816
|
-
if (data.Code
|
|
768
|
+
if (data.Code != null) {
|
|
817
769
|
contents.Code = __expectString(data.Code);
|
|
818
770
|
}
|
|
819
|
-
if (data.Message
|
|
771
|
+
if (data.Message != null) {
|
|
820
772
|
contents.Message = __expectString(data.Message);
|
|
821
773
|
}
|
|
822
|
-
if (data.ResourceIds
|
|
774
|
+
if (data.ResourceIds != null) {
|
|
823
775
|
contents.ResourceIds = deserializeAws_restJson1PolicyIdList(data.ResourceIds, context);
|
|
824
776
|
}
|
|
825
|
-
if (data.ResourceType
|
|
777
|
+
if (data.ResourceType != null) {
|
|
826
778
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
827
779
|
}
|
|
828
780
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -838,9 +790,6 @@ var serializeAws_restJson1ActionList = function (input, context) {
|
|
|
838
790
|
return input
|
|
839
791
|
.filter(function (e) { return e != null; })
|
|
840
792
|
.map(function (entry) {
|
|
841
|
-
if (entry === null) {
|
|
842
|
-
return null;
|
|
843
|
-
}
|
|
844
793
|
return serializeAws_restJson1Action(entry, context);
|
|
845
794
|
});
|
|
846
795
|
};
|
|
@@ -848,9 +797,6 @@ var serializeAws_restJson1AvailabilityZoneList = function (input, context) {
|
|
|
848
797
|
return input
|
|
849
798
|
.filter(function (e) { return e != null; })
|
|
850
799
|
.map(function (entry) {
|
|
851
|
-
if (entry === null) {
|
|
852
|
-
return null;
|
|
853
|
-
}
|
|
854
800
|
return entry;
|
|
855
801
|
});
|
|
856
802
|
};
|
|
@@ -868,9 +814,6 @@ var serializeAws_restJson1CrossRegionCopyActionList = function (input, context)
|
|
|
868
814
|
return input
|
|
869
815
|
.filter(function (e) { return e != null; })
|
|
870
816
|
.map(function (entry) {
|
|
871
|
-
if (entry === null) {
|
|
872
|
-
return null;
|
|
873
|
-
}
|
|
874
817
|
return serializeAws_restJson1CrossRegionCopyAction(entry, context);
|
|
875
818
|
});
|
|
876
819
|
};
|
|
@@ -891,9 +834,6 @@ var serializeAws_restJson1CrossRegionCopyRules = function (input, context) {
|
|
|
891
834
|
return input
|
|
892
835
|
.filter(function (e) { return e != null; })
|
|
893
836
|
.map(function (entry) {
|
|
894
|
-
if (entry === null) {
|
|
895
|
-
return null;
|
|
896
|
-
}
|
|
897
837
|
return serializeAws_restJson1CrossRegionCopyRule(entry, context);
|
|
898
838
|
});
|
|
899
839
|
};
|
|
@@ -911,13 +851,22 @@ var serializeAws_restJson1EventParameters = function (input, context) {
|
|
|
911
851
|
var serializeAws_restJson1EventSource = function (input, context) {
|
|
912
852
|
return __assign(__assign({}, (input.Parameters != null && { Parameters: serializeAws_restJson1EventParameters(input.Parameters, context) })), (input.Type != null && { Type: input.Type }));
|
|
913
853
|
};
|
|
854
|
+
var serializeAws_restJson1ExcludeDataVolumeTagList = function (input, context) {
|
|
855
|
+
return input
|
|
856
|
+
.filter(function (e) { return e != null; })
|
|
857
|
+
.map(function (entry) {
|
|
858
|
+
return serializeAws_restJson1Tag(entry, context);
|
|
859
|
+
});
|
|
860
|
+
};
|
|
914
861
|
var serializeAws_restJson1FastRestoreRule = function (input, context) {
|
|
915
862
|
return __assign(__assign(__assign(__assign({}, (input.AvailabilityZones != null && {
|
|
916
863
|
AvailabilityZones: serializeAws_restJson1AvailabilityZoneList(input.AvailabilityZones, context),
|
|
917
864
|
})), (input.Count != null && { Count: input.Count })), (input.Interval != null && { Interval: input.Interval })), (input.IntervalUnit != null && { IntervalUnit: input.IntervalUnit }));
|
|
918
865
|
};
|
|
919
866
|
var serializeAws_restJson1_Parameters = function (input, context) {
|
|
920
|
-
return __assign(__assign({}, (input.ExcludeBootVolume != null && { ExcludeBootVolume: input.ExcludeBootVolume })), (input.
|
|
867
|
+
return __assign(__assign(__assign({}, (input.ExcludeBootVolume != null && { ExcludeBootVolume: input.ExcludeBootVolume })), (input.ExcludeDataVolumeTags != null && {
|
|
868
|
+
ExcludeDataVolumeTags: serializeAws_restJson1ExcludeDataVolumeTagList(input.ExcludeDataVolumeTags, context),
|
|
869
|
+
})), (input.NoReboot != null && { NoReboot: input.NoReboot }));
|
|
921
870
|
};
|
|
922
871
|
var serializeAws_restJson1PolicyDetails = function (input, context) {
|
|
923
872
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Actions != null && { Actions: serializeAws_restJson1ActionList(input.Actions, context) })), (input.EventSource != null && { EventSource: serializeAws_restJson1EventSource(input.EventSource, context) })), (input.Parameters != null && { Parameters: serializeAws_restJson1_Parameters(input.Parameters, context) })), (input.PolicyType != null && { PolicyType: input.PolicyType })), (input.ResourceLocations != null && {
|
|
@@ -930,9 +879,6 @@ var serializeAws_restJson1ResourceLocationList = function (input, context) {
|
|
|
930
879
|
return input
|
|
931
880
|
.filter(function (e) { return e != null; })
|
|
932
881
|
.map(function (entry) {
|
|
933
|
-
if (entry === null) {
|
|
934
|
-
return null;
|
|
935
|
-
}
|
|
936
882
|
return entry;
|
|
937
883
|
});
|
|
938
884
|
};
|
|
@@ -940,9 +886,6 @@ var serializeAws_restJson1ResourceTypeValuesList = function (input, context) {
|
|
|
940
886
|
return input
|
|
941
887
|
.filter(function (e) { return e != null; })
|
|
942
888
|
.map(function (entry) {
|
|
943
|
-
if (entry === null) {
|
|
944
|
-
return null;
|
|
945
|
-
}
|
|
946
889
|
return entry;
|
|
947
890
|
});
|
|
948
891
|
};
|
|
@@ -964,9 +907,6 @@ var serializeAws_restJson1ScheduleList = function (input, context) {
|
|
|
964
907
|
return input
|
|
965
908
|
.filter(function (e) { return e != null; })
|
|
966
909
|
.map(function (entry) {
|
|
967
|
-
if (entry === null) {
|
|
968
|
-
return null;
|
|
969
|
-
}
|
|
970
910
|
return serializeAws_restJson1Schedule(entry, context);
|
|
971
911
|
});
|
|
972
912
|
};
|
|
@@ -979,9 +919,6 @@ var serializeAws_restJson1ShareRules = function (input, context) {
|
|
|
979
919
|
return input
|
|
980
920
|
.filter(function (e) { return e != null; })
|
|
981
921
|
.map(function (entry) {
|
|
982
|
-
if (entry === null) {
|
|
983
|
-
return null;
|
|
984
|
-
}
|
|
985
922
|
return serializeAws_restJson1ShareRule(entry, context);
|
|
986
923
|
});
|
|
987
924
|
};
|
|
@@ -989,9 +926,6 @@ var serializeAws_restJson1ShareTargetAccountList = function (input, context) {
|
|
|
989
926
|
return input
|
|
990
927
|
.filter(function (e) { return e != null; })
|
|
991
928
|
.map(function (entry) {
|
|
992
|
-
if (entry === null) {
|
|
993
|
-
return null;
|
|
994
|
-
}
|
|
995
929
|
return entry;
|
|
996
930
|
});
|
|
997
931
|
};
|
|
@@ -999,9 +933,6 @@ var serializeAws_restJson1SnapshotOwnerList = function (input, context) {
|
|
|
999
933
|
return input
|
|
1000
934
|
.filter(function (e) { return e != null; })
|
|
1001
935
|
.map(function (entry) {
|
|
1002
|
-
if (entry === null) {
|
|
1003
|
-
return null;
|
|
1004
|
-
}
|
|
1005
936
|
return entry;
|
|
1006
937
|
});
|
|
1007
938
|
};
|
|
@@ -1022,9 +953,6 @@ var serializeAws_restJson1TagsToAddList = function (input, context) {
|
|
|
1022
953
|
return input
|
|
1023
954
|
.filter(function (e) { return e != null; })
|
|
1024
955
|
.map(function (entry) {
|
|
1025
|
-
if (entry === null) {
|
|
1026
|
-
return null;
|
|
1027
|
-
}
|
|
1028
956
|
return serializeAws_restJson1Tag(entry, context);
|
|
1029
957
|
});
|
|
1030
958
|
};
|
|
@@ -1032,9 +960,6 @@ var serializeAws_restJson1TargetTagList = function (input, context) {
|
|
|
1032
960
|
return input
|
|
1033
961
|
.filter(function (e) { return e != null; })
|
|
1034
962
|
.map(function (entry) {
|
|
1035
|
-
if (entry === null) {
|
|
1036
|
-
return null;
|
|
1037
|
-
}
|
|
1038
963
|
return serializeAws_restJson1Tag(entry, context);
|
|
1039
964
|
});
|
|
1040
965
|
};
|
|
@@ -1042,9 +967,6 @@ var serializeAws_restJson1TimesList = function (input, context) {
|
|
|
1042
967
|
return input
|
|
1043
968
|
.filter(function (e) { return e != null; })
|
|
1044
969
|
.map(function (entry) {
|
|
1045
|
-
if (entry === null) {
|
|
1046
|
-
return null;
|
|
1047
|
-
}
|
|
1048
970
|
return entry;
|
|
1049
971
|
});
|
|
1050
972
|
};
|
|
@@ -1052,9 +974,6 @@ var serializeAws_restJson1VariableTagsList = function (input, context) {
|
|
|
1052
974
|
return input
|
|
1053
975
|
.filter(function (e) { return e != null; })
|
|
1054
976
|
.map(function (entry) {
|
|
1055
|
-
if (entry === null) {
|
|
1056
|
-
return null;
|
|
1057
|
-
}
|
|
1058
977
|
return serializeAws_restJson1Tag(entry, context);
|
|
1059
978
|
});
|
|
1060
979
|
};
|
|
@@ -1185,6 +1104,17 @@ var deserializeAws_restJson1EventSource = function (output, context) {
|
|
|
1185
1104
|
Type: __expectString(output.Type),
|
|
1186
1105
|
};
|
|
1187
1106
|
};
|
|
1107
|
+
var deserializeAws_restJson1ExcludeDataVolumeTagList = function (output, context) {
|
|
1108
|
+
var retVal = (output || [])
|
|
1109
|
+
.filter(function (e) { return e != null; })
|
|
1110
|
+
.map(function (entry) {
|
|
1111
|
+
if (entry === null) {
|
|
1112
|
+
return null;
|
|
1113
|
+
}
|
|
1114
|
+
return deserializeAws_restJson1Tag(entry, context);
|
|
1115
|
+
});
|
|
1116
|
+
return retVal;
|
|
1117
|
+
};
|
|
1188
1118
|
var deserializeAws_restJson1FastRestoreRule = function (output, context) {
|
|
1189
1119
|
return {
|
|
1190
1120
|
AvailabilityZones: output.AvailabilityZones != null
|
|
@@ -1247,6 +1177,9 @@ var deserializeAws_restJson1ParameterList = function (output, context) {
|
|
|
1247
1177
|
var deserializeAws_restJson1_Parameters = function (output, context) {
|
|
1248
1178
|
return {
|
|
1249
1179
|
ExcludeBootVolume: __expectBoolean(output.ExcludeBootVolume),
|
|
1180
|
+
ExcludeDataVolumeTags: output.ExcludeDataVolumeTags != null
|
|
1181
|
+
? deserializeAws_restJson1ExcludeDataVolumeTagList(output.ExcludeDataVolumeTags, context)
|
|
1182
|
+
: undefined,
|
|
1250
1183
|
NoReboot: __expectBoolean(output.NoReboot),
|
|
1251
1184
|
};
|
|
1252
1185
|
};
|