@aws-sdk/client-efs 3.303.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/CreateAccessPointCommand.js +2 -2
- package/dist-cjs/commands/CreateFileSystemCommand.js +2 -2
- package/dist-cjs/commands/CreateMountTargetCommand.js +2 -2
- package/dist-cjs/commands/CreateReplicationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/CreateTagsCommand.js +2 -2
- package/dist-cjs/commands/DeleteAccessPointCommand.js +2 -2
- package/dist-cjs/commands/DeleteFileSystemCommand.js +2 -2
- package/dist-cjs/commands/DeleteFileSystemPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteMountTargetCommand.js +2 -2
- package/dist-cjs/commands/DeleteReplicationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeleteTagsCommand.js +2 -2
- package/dist-cjs/commands/DescribeAccessPointsCommand.js +2 -2
- package/dist-cjs/commands/DescribeAccountPreferencesCommand.js +2 -2
- package/dist-cjs/commands/DescribeBackupPolicyCommand.js +2 -2
- package/dist-cjs/commands/DescribeFileSystemPolicyCommand.js +2 -2
- package/dist-cjs/commands/DescribeFileSystemsCommand.js +2 -2
- package/dist-cjs/commands/DescribeLifecycleConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DescribeMountTargetSecurityGroupsCommand.js +2 -2
- package/dist-cjs/commands/DescribeMountTargetsCommand.js +2 -2
- package/dist-cjs/commands/DescribeReplicationConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/DescribeTagsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ModifyMountTargetSecurityGroupsCommand.js +2 -2
- package/dist-cjs/commands/PutAccountPreferencesCommand.js +2 -2
- package/dist-cjs/commands/PutBackupPolicyCommand.js +2 -2
- package/dist-cjs/commands/PutFileSystemPolicyCommand.js +2 -2
- package/dist-cjs/commands/PutLifecycleConfigurationCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateFileSystemCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +442 -456
- package/dist-es/commands/CreateAccessPointCommand.js +3 -3
- package/dist-es/commands/CreateFileSystemCommand.js +3 -3
- package/dist-es/commands/CreateMountTargetCommand.js +3 -3
- package/dist-es/commands/CreateReplicationConfigurationCommand.js +3 -3
- package/dist-es/commands/CreateTagsCommand.js +3 -3
- package/dist-es/commands/DeleteAccessPointCommand.js +3 -3
- package/dist-es/commands/DeleteFileSystemCommand.js +3 -3
- package/dist-es/commands/DeleteFileSystemPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteMountTargetCommand.js +3 -3
- package/dist-es/commands/DeleteReplicationConfigurationCommand.js +3 -3
- package/dist-es/commands/DeleteTagsCommand.js +3 -3
- package/dist-es/commands/DescribeAccessPointsCommand.js +3 -3
- package/dist-es/commands/DescribeAccountPreferencesCommand.js +3 -3
- package/dist-es/commands/DescribeBackupPolicyCommand.js +3 -3
- package/dist-es/commands/DescribeFileSystemPolicyCommand.js +3 -3
- package/dist-es/commands/DescribeFileSystemsCommand.js +3 -3
- package/dist-es/commands/DescribeLifecycleConfigurationCommand.js +3 -3
- package/dist-es/commands/DescribeMountTargetSecurityGroupsCommand.js +3 -3
- package/dist-es/commands/DescribeMountTargetsCommand.js +3 -3
- package/dist-es/commands/DescribeReplicationConfigurationsCommand.js +3 -3
- package/dist-es/commands/DescribeTagsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ModifyMountTargetSecurityGroupsCommand.js +3 -3
- package/dist-es/commands/PutAccountPreferencesCommand.js +3 -3
- package/dist-es/commands/PutBackupPolicyCommand.js +3 -3
- package/dist-es/commands/PutFileSystemPolicyCommand.js +3 -3
- package/dist-es/commands/PutLifecycleConfigurationCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateFileSystemCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +380 -394
- package/dist-types/protocols/Aws_restJson1.d.ts +240 -60
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -60
- package/package.json +29 -29
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { EFSServiceException as __BaseException } from "../models/EFSServiceException";
|
|
5
5
|
import { AccessPointAlreadyExists, AccessPointLimitExceeded, AccessPointNotFound, AvailabilityZonesMismatch, BadRequest, DependencyTimeout, FileSystemAlreadyExists, FileSystemInUse, FileSystemLimitExceeded, FileSystemNotFound, IncorrectFileSystemLifeCycleState, IncorrectMountTargetState, InsufficientThroughputCapacity, InternalServerError, InvalidPolicyException, IpAddressInUse, MountTargetConflict, MountTargetNotFound, NetworkInterfaceLimitExceeded, NoFreeAddressesInSubnet, PolicyNotFound, ReplicationNotFound, SecurityGroupLimitExceeded, SecurityGroupNotFound, SubnetNotFound, ThrottlingException, ThroughputLimitExceeded, TooManyRequests, UnsupportedAvailabilityZone, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const
|
|
6
|
+
export const se_CreateAccessPointCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
@@ -13,11 +13,9 @@ export const serializeAws_restJson1CreateAccessPointCommand = async (input, cont
|
|
|
13
13
|
body = JSON.stringify({
|
|
14
14
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
15
15
|
...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
|
|
16
|
-
...(input.PosixUser != null && { PosixUser:
|
|
17
|
-
...(input.RootDirectory != null && {
|
|
18
|
-
|
|
19
|
-
}),
|
|
20
|
-
...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
16
|
+
...(input.PosixUser != null && { PosixUser: se_PosixUser(input.PosixUser, context) }),
|
|
17
|
+
...(input.RootDirectory != null && { RootDirectory: se_RootDirectory(input.RootDirectory, context) }),
|
|
18
|
+
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
21
19
|
});
|
|
22
20
|
return new __HttpRequest({
|
|
23
21
|
protocol,
|
|
@@ -29,7 +27,7 @@ export const serializeAws_restJson1CreateAccessPointCommand = async (input, cont
|
|
|
29
27
|
body,
|
|
30
28
|
});
|
|
31
29
|
};
|
|
32
|
-
export const
|
|
30
|
+
export const se_CreateFileSystemCommand = async (input, context) => {
|
|
33
31
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
34
32
|
const headers = {
|
|
35
33
|
"content-type": "application/json",
|
|
@@ -46,7 +44,7 @@ export const serializeAws_restJson1CreateFileSystemCommand = async (input, conte
|
|
|
46
44
|
...(input.ProvisionedThroughputInMibps != null && {
|
|
47
45
|
ProvisionedThroughputInMibps: __serializeFloat(input.ProvisionedThroughputInMibps),
|
|
48
46
|
}),
|
|
49
|
-
...(input.Tags != null && { Tags:
|
|
47
|
+
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
50
48
|
...(input.ThroughputMode != null && { ThroughputMode: input.ThroughputMode }),
|
|
51
49
|
});
|
|
52
50
|
return new __HttpRequest({
|
|
@@ -59,7 +57,7 @@ export const serializeAws_restJson1CreateFileSystemCommand = async (input, conte
|
|
|
59
57
|
body,
|
|
60
58
|
});
|
|
61
59
|
};
|
|
62
|
-
export const
|
|
60
|
+
export const se_CreateMountTargetCommand = async (input, context) => {
|
|
63
61
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
64
62
|
const headers = {
|
|
65
63
|
"content-type": "application/json",
|
|
@@ -69,9 +67,7 @@ export const serializeAws_restJson1CreateMountTargetCommand = async (input, cont
|
|
|
69
67
|
body = JSON.stringify({
|
|
70
68
|
...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
|
|
71
69
|
...(input.IpAddress != null && { IpAddress: input.IpAddress }),
|
|
72
|
-
...(input.SecurityGroups != null && {
|
|
73
|
-
SecurityGroups: serializeAws_restJson1SecurityGroups(input.SecurityGroups, context),
|
|
74
|
-
}),
|
|
70
|
+
...(input.SecurityGroups != null && { SecurityGroups: se_SecurityGroups(input.SecurityGroups, context) }),
|
|
75
71
|
...(input.SubnetId != null && { SubnetId: input.SubnetId }),
|
|
76
72
|
});
|
|
77
73
|
return new __HttpRequest({
|
|
@@ -84,7 +80,7 @@ export const serializeAws_restJson1CreateMountTargetCommand = async (input, cont
|
|
|
84
80
|
body,
|
|
85
81
|
});
|
|
86
82
|
};
|
|
87
|
-
export const
|
|
83
|
+
export const se_CreateReplicationConfigurationCommand = async (input, context) => {
|
|
88
84
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
89
85
|
const headers = {
|
|
90
86
|
"content-type": "application/json",
|
|
@@ -94,9 +90,7 @@ export const serializeAws_restJson1CreateReplicationConfigurationCommand = async
|
|
|
94
90
|
resolvedPath = __resolvedPath(resolvedPath, input, "SourceFileSystemId", () => input.SourceFileSystemId, "{SourceFileSystemId}", false);
|
|
95
91
|
let body;
|
|
96
92
|
body = JSON.stringify({
|
|
97
|
-
...(input.Destinations != null && {
|
|
98
|
-
Destinations: serializeAws_restJson1DestinationsToCreate(input.Destinations, context),
|
|
99
|
-
}),
|
|
93
|
+
...(input.Destinations != null && { Destinations: se_DestinationsToCreate(input.Destinations, context) }),
|
|
100
94
|
});
|
|
101
95
|
return new __HttpRequest({
|
|
102
96
|
protocol,
|
|
@@ -108,7 +102,7 @@ export const serializeAws_restJson1CreateReplicationConfigurationCommand = async
|
|
|
108
102
|
body,
|
|
109
103
|
});
|
|
110
104
|
};
|
|
111
|
-
export const
|
|
105
|
+
export const se_CreateTagsCommand = async (input, context) => {
|
|
112
106
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
113
107
|
const headers = {
|
|
114
108
|
"content-type": "application/json",
|
|
@@ -117,7 +111,7 @@ export const serializeAws_restJson1CreateTagsCommand = async (input, context) =>
|
|
|
117
111
|
resolvedPath = __resolvedPath(resolvedPath, input, "FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
118
112
|
let body;
|
|
119
113
|
body = JSON.stringify({
|
|
120
|
-
...(input.Tags != null && { Tags:
|
|
114
|
+
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
121
115
|
});
|
|
122
116
|
return new __HttpRequest({
|
|
123
117
|
protocol,
|
|
@@ -129,7 +123,7 @@ export const serializeAws_restJson1CreateTagsCommand = async (input, context) =>
|
|
|
129
123
|
body,
|
|
130
124
|
});
|
|
131
125
|
};
|
|
132
|
-
export const
|
|
126
|
+
export const se_DeleteAccessPointCommand = async (input, context) => {
|
|
133
127
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
134
128
|
const headers = {};
|
|
135
129
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/access-points/{AccessPointId}";
|
|
@@ -145,7 +139,7 @@ export const serializeAws_restJson1DeleteAccessPointCommand = async (input, cont
|
|
|
145
139
|
body,
|
|
146
140
|
});
|
|
147
141
|
};
|
|
148
|
-
export const
|
|
142
|
+
export const se_DeleteFileSystemCommand = async (input, context) => {
|
|
149
143
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
150
144
|
const headers = {};
|
|
151
145
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/file-systems/{FileSystemId}";
|
|
@@ -161,7 +155,7 @@ export const serializeAws_restJson1DeleteFileSystemCommand = async (input, conte
|
|
|
161
155
|
body,
|
|
162
156
|
});
|
|
163
157
|
};
|
|
164
|
-
export const
|
|
158
|
+
export const se_DeleteFileSystemPolicyCommand = async (input, context) => {
|
|
165
159
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
166
160
|
const headers = {};
|
|
167
161
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -178,7 +172,7 @@ export const serializeAws_restJson1DeleteFileSystemPolicyCommand = async (input,
|
|
|
178
172
|
body,
|
|
179
173
|
});
|
|
180
174
|
};
|
|
181
|
-
export const
|
|
175
|
+
export const se_DeleteMountTargetCommand = async (input, context) => {
|
|
182
176
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
183
177
|
const headers = {};
|
|
184
178
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/mount-targets/{MountTargetId}";
|
|
@@ -194,7 +188,7 @@ export const serializeAws_restJson1DeleteMountTargetCommand = async (input, cont
|
|
|
194
188
|
body,
|
|
195
189
|
});
|
|
196
190
|
};
|
|
197
|
-
export const
|
|
191
|
+
export const se_DeleteReplicationConfigurationCommand = async (input, context) => {
|
|
198
192
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
199
193
|
const headers = {};
|
|
200
194
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -211,7 +205,7 @@ export const serializeAws_restJson1DeleteReplicationConfigurationCommand = async
|
|
|
211
205
|
body,
|
|
212
206
|
});
|
|
213
207
|
};
|
|
214
|
-
export const
|
|
208
|
+
export const se_DeleteTagsCommand = async (input, context) => {
|
|
215
209
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
216
210
|
const headers = {
|
|
217
211
|
"content-type": "application/json",
|
|
@@ -220,7 +214,7 @@ export const serializeAws_restJson1DeleteTagsCommand = async (input, context) =>
|
|
|
220
214
|
resolvedPath = __resolvedPath(resolvedPath, input, "FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
221
215
|
let body;
|
|
222
216
|
body = JSON.stringify({
|
|
223
|
-
...(input.TagKeys != null && { TagKeys:
|
|
217
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeys(input.TagKeys, context) }),
|
|
224
218
|
});
|
|
225
219
|
return new __HttpRequest({
|
|
226
220
|
protocol,
|
|
@@ -232,7 +226,7 @@ export const serializeAws_restJson1DeleteTagsCommand = async (input, context) =>
|
|
|
232
226
|
body,
|
|
233
227
|
});
|
|
234
228
|
};
|
|
235
|
-
export const
|
|
229
|
+
export const se_DescribeAccessPointsCommand = async (input, context) => {
|
|
236
230
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
237
231
|
const headers = {};
|
|
238
232
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/access-points";
|
|
@@ -254,7 +248,7 @@ export const serializeAws_restJson1DescribeAccessPointsCommand = async (input, c
|
|
|
254
248
|
body,
|
|
255
249
|
});
|
|
256
250
|
};
|
|
257
|
-
export const
|
|
251
|
+
export const se_DescribeAccountPreferencesCommand = async (input, context) => {
|
|
258
252
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
259
253
|
const headers = {
|
|
260
254
|
"content-type": "application/json",
|
|
@@ -275,7 +269,7 @@ export const serializeAws_restJson1DescribeAccountPreferencesCommand = async (in
|
|
|
275
269
|
body,
|
|
276
270
|
});
|
|
277
271
|
};
|
|
278
|
-
export const
|
|
272
|
+
export const se_DescribeBackupPolicyCommand = async (input, context) => {
|
|
279
273
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
280
274
|
const headers = {};
|
|
281
275
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -292,7 +286,7 @@ export const serializeAws_restJson1DescribeBackupPolicyCommand = async (input, c
|
|
|
292
286
|
body,
|
|
293
287
|
});
|
|
294
288
|
};
|
|
295
|
-
export const
|
|
289
|
+
export const se_DescribeFileSystemPolicyCommand = async (input, context) => {
|
|
296
290
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
297
291
|
const headers = {};
|
|
298
292
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -309,7 +303,7 @@ export const serializeAws_restJson1DescribeFileSystemPolicyCommand = async (inpu
|
|
|
309
303
|
body,
|
|
310
304
|
});
|
|
311
305
|
};
|
|
312
|
-
export const
|
|
306
|
+
export const se_DescribeFileSystemsCommand = async (input, context) => {
|
|
313
307
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
314
308
|
const headers = {};
|
|
315
309
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/file-systems";
|
|
@@ -331,7 +325,7 @@ export const serializeAws_restJson1DescribeFileSystemsCommand = async (input, co
|
|
|
331
325
|
body,
|
|
332
326
|
});
|
|
333
327
|
};
|
|
334
|
-
export const
|
|
328
|
+
export const se_DescribeLifecycleConfigurationCommand = async (input, context) => {
|
|
335
329
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
336
330
|
const headers = {};
|
|
337
331
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -348,7 +342,7 @@ export const serializeAws_restJson1DescribeLifecycleConfigurationCommand = async
|
|
|
348
342
|
body,
|
|
349
343
|
});
|
|
350
344
|
};
|
|
351
|
-
export const
|
|
345
|
+
export const se_DescribeMountTargetsCommand = async (input, context) => {
|
|
352
346
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
353
347
|
const headers = {};
|
|
354
348
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/mount-targets";
|
|
@@ -371,7 +365,7 @@ export const serializeAws_restJson1DescribeMountTargetsCommand = async (input, c
|
|
|
371
365
|
body,
|
|
372
366
|
});
|
|
373
367
|
};
|
|
374
|
-
export const
|
|
368
|
+
export const se_DescribeMountTargetSecurityGroupsCommand = async (input, context) => {
|
|
375
369
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
376
370
|
const headers = {};
|
|
377
371
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -388,7 +382,7 @@ export const serializeAws_restJson1DescribeMountTargetSecurityGroupsCommand = as
|
|
|
388
382
|
body,
|
|
389
383
|
});
|
|
390
384
|
};
|
|
391
|
-
export const
|
|
385
|
+
export const se_DescribeReplicationConfigurationsCommand = async (input, context) => {
|
|
392
386
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
393
387
|
const headers = {};
|
|
394
388
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -410,7 +404,7 @@ export const serializeAws_restJson1DescribeReplicationConfigurationsCommand = as
|
|
|
410
404
|
body,
|
|
411
405
|
});
|
|
412
406
|
};
|
|
413
|
-
export const
|
|
407
|
+
export const se_DescribeTagsCommand = async (input, context) => {
|
|
414
408
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
415
409
|
const headers = {};
|
|
416
410
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/tags/{FileSystemId}";
|
|
@@ -431,7 +425,7 @@ export const serializeAws_restJson1DescribeTagsCommand = async (input, context)
|
|
|
431
425
|
body,
|
|
432
426
|
});
|
|
433
427
|
};
|
|
434
|
-
export const
|
|
428
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
435
429
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
436
430
|
const headers = {};
|
|
437
431
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/resource-tags/{ResourceId}";
|
|
@@ -452,7 +446,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
452
446
|
body,
|
|
453
447
|
});
|
|
454
448
|
};
|
|
455
|
-
export const
|
|
449
|
+
export const se_ModifyMountTargetSecurityGroupsCommand = async (input, context) => {
|
|
456
450
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
457
451
|
const headers = {
|
|
458
452
|
"content-type": "application/json",
|
|
@@ -462,9 +456,7 @@ export const serializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = asyn
|
|
|
462
456
|
resolvedPath = __resolvedPath(resolvedPath, input, "MountTargetId", () => input.MountTargetId, "{MountTargetId}", false);
|
|
463
457
|
let body;
|
|
464
458
|
body = JSON.stringify({
|
|
465
|
-
...(input.SecurityGroups != null && {
|
|
466
|
-
SecurityGroups: serializeAws_restJson1SecurityGroups(input.SecurityGroups, context),
|
|
467
|
-
}),
|
|
459
|
+
...(input.SecurityGroups != null && { SecurityGroups: se_SecurityGroups(input.SecurityGroups, context) }),
|
|
468
460
|
});
|
|
469
461
|
return new __HttpRequest({
|
|
470
462
|
protocol,
|
|
@@ -476,7 +468,7 @@ export const serializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = asyn
|
|
|
476
468
|
body,
|
|
477
469
|
});
|
|
478
470
|
};
|
|
479
|
-
export const
|
|
471
|
+
export const se_PutAccountPreferencesCommand = async (input, context) => {
|
|
480
472
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
481
473
|
const headers = {
|
|
482
474
|
"content-type": "application/json",
|
|
@@ -496,7 +488,7 @@ export const serializeAws_restJson1PutAccountPreferencesCommand = async (input,
|
|
|
496
488
|
body,
|
|
497
489
|
});
|
|
498
490
|
};
|
|
499
|
-
export const
|
|
491
|
+
export const se_PutBackupPolicyCommand = async (input, context) => {
|
|
500
492
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
501
493
|
const headers = {
|
|
502
494
|
"content-type": "application/json",
|
|
@@ -506,9 +498,7 @@ export const serializeAws_restJson1PutBackupPolicyCommand = async (input, contex
|
|
|
506
498
|
resolvedPath = __resolvedPath(resolvedPath, input, "FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
507
499
|
let body;
|
|
508
500
|
body = JSON.stringify({
|
|
509
|
-
...(input.BackupPolicy != null && {
|
|
510
|
-
BackupPolicy: serializeAws_restJson1BackupPolicy(input.BackupPolicy, context),
|
|
511
|
-
}),
|
|
501
|
+
...(input.BackupPolicy != null && { BackupPolicy: se_BackupPolicy(input.BackupPolicy, context) }),
|
|
512
502
|
});
|
|
513
503
|
return new __HttpRequest({
|
|
514
504
|
protocol,
|
|
@@ -520,7 +510,7 @@ export const serializeAws_restJson1PutBackupPolicyCommand = async (input, contex
|
|
|
520
510
|
body,
|
|
521
511
|
});
|
|
522
512
|
};
|
|
523
|
-
export const
|
|
513
|
+
export const se_PutFileSystemPolicyCommand = async (input, context) => {
|
|
524
514
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
525
515
|
const headers = {
|
|
526
516
|
"content-type": "application/json",
|
|
@@ -545,7 +535,7 @@ export const serializeAws_restJson1PutFileSystemPolicyCommand = async (input, co
|
|
|
545
535
|
body,
|
|
546
536
|
});
|
|
547
537
|
};
|
|
548
|
-
export const
|
|
538
|
+
export const se_PutLifecycleConfigurationCommand = async (input, context) => {
|
|
549
539
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
550
540
|
const headers = {
|
|
551
541
|
"content-type": "application/json",
|
|
@@ -556,7 +546,7 @@ export const serializeAws_restJson1PutLifecycleConfigurationCommand = async (inp
|
|
|
556
546
|
let body;
|
|
557
547
|
body = JSON.stringify({
|
|
558
548
|
...(input.LifecyclePolicies != null && {
|
|
559
|
-
LifecyclePolicies:
|
|
549
|
+
LifecyclePolicies: se_LifecyclePolicies(input.LifecyclePolicies, context),
|
|
560
550
|
}),
|
|
561
551
|
});
|
|
562
552
|
return new __HttpRequest({
|
|
@@ -569,7 +559,7 @@ export const serializeAws_restJson1PutLifecycleConfigurationCommand = async (inp
|
|
|
569
559
|
body,
|
|
570
560
|
});
|
|
571
561
|
};
|
|
572
|
-
export const
|
|
562
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
573
563
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
574
564
|
const headers = {
|
|
575
565
|
"content-type": "application/json",
|
|
@@ -578,7 +568,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
578
568
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
579
569
|
let body;
|
|
580
570
|
body = JSON.stringify({
|
|
581
|
-
...(input.Tags != null && { Tags:
|
|
571
|
+
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
582
572
|
});
|
|
583
573
|
return new __HttpRequest({
|
|
584
574
|
protocol,
|
|
@@ -590,7 +580,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
590
580
|
body,
|
|
591
581
|
});
|
|
592
582
|
};
|
|
593
|
-
export const
|
|
583
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
594
584
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
595
585
|
const headers = {};
|
|
596
586
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/resource-tags/{ResourceId}";
|
|
@@ -613,7 +603,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
613
603
|
body,
|
|
614
604
|
});
|
|
615
605
|
};
|
|
616
|
-
export const
|
|
606
|
+
export const se_UpdateFileSystemCommand = async (input, context) => {
|
|
617
607
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
618
608
|
const headers = {
|
|
619
609
|
"content-type": "application/json",
|
|
@@ -637,9 +627,9 @@ export const serializeAws_restJson1UpdateFileSystemCommand = async (input, conte
|
|
|
637
627
|
body,
|
|
638
628
|
});
|
|
639
629
|
};
|
|
640
|
-
export const
|
|
630
|
+
export const de_CreateAccessPointCommand = async (output, context) => {
|
|
641
631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
642
|
-
return
|
|
632
|
+
return de_CreateAccessPointCommandError(output, context);
|
|
643
633
|
}
|
|
644
634
|
const contents = map({
|
|
645
635
|
$metadata: deserializeMetadata(output),
|
|
@@ -667,17 +657,17 @@ export const deserializeAws_restJson1CreateAccessPointCommand = async (output, c
|
|
|
667
657
|
contents.OwnerId = __expectString(data.OwnerId);
|
|
668
658
|
}
|
|
669
659
|
if (data.PosixUser != null) {
|
|
670
|
-
contents.PosixUser =
|
|
660
|
+
contents.PosixUser = de_PosixUser(data.PosixUser, context);
|
|
671
661
|
}
|
|
672
662
|
if (data.RootDirectory != null) {
|
|
673
|
-
contents.RootDirectory =
|
|
663
|
+
contents.RootDirectory = de_RootDirectory(data.RootDirectory, context);
|
|
674
664
|
}
|
|
675
665
|
if (data.Tags != null) {
|
|
676
|
-
contents.Tags =
|
|
666
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
677
667
|
}
|
|
678
668
|
return contents;
|
|
679
669
|
};
|
|
680
|
-
const
|
|
670
|
+
const de_CreateAccessPointCommandError = async (output, context) => {
|
|
681
671
|
const parsedOutput = {
|
|
682
672
|
...output,
|
|
683
673
|
body: await parseErrorBody(output.body, context),
|
|
@@ -686,25 +676,25 @@ const deserializeAws_restJson1CreateAccessPointCommandError = async (output, con
|
|
|
686
676
|
switch (errorCode) {
|
|
687
677
|
case "AccessPointAlreadyExists":
|
|
688
678
|
case "com.amazonaws.efs#AccessPointAlreadyExists":
|
|
689
|
-
throw await
|
|
679
|
+
throw await de_AccessPointAlreadyExistsRes(parsedOutput, context);
|
|
690
680
|
case "AccessPointLimitExceeded":
|
|
691
681
|
case "com.amazonaws.efs#AccessPointLimitExceeded":
|
|
692
|
-
throw await
|
|
682
|
+
throw await de_AccessPointLimitExceededRes(parsedOutput, context);
|
|
693
683
|
case "BadRequest":
|
|
694
684
|
case "com.amazonaws.efs#BadRequest":
|
|
695
|
-
throw await
|
|
685
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
696
686
|
case "FileSystemNotFound":
|
|
697
687
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
698
|
-
throw await
|
|
688
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
699
689
|
case "IncorrectFileSystemLifeCycleState":
|
|
700
690
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
701
|
-
throw await
|
|
691
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
702
692
|
case "InternalServerError":
|
|
703
693
|
case "com.amazonaws.efs#InternalServerError":
|
|
704
|
-
throw await
|
|
694
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
705
695
|
case "ThrottlingException":
|
|
706
696
|
case "com.amazonaws.efs#ThrottlingException":
|
|
707
|
-
throw await
|
|
697
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
708
698
|
default:
|
|
709
699
|
const parsedBody = parsedOutput.body;
|
|
710
700
|
throwDefaultError({
|
|
@@ -715,9 +705,9 @@ const deserializeAws_restJson1CreateAccessPointCommandError = async (output, con
|
|
|
715
705
|
});
|
|
716
706
|
}
|
|
717
707
|
};
|
|
718
|
-
export const
|
|
708
|
+
export const de_CreateFileSystemCommand = async (output, context) => {
|
|
719
709
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
720
|
-
return
|
|
710
|
+
return de_CreateFileSystemCommandError(output, context);
|
|
721
711
|
}
|
|
722
712
|
const contents = map({
|
|
723
713
|
$metadata: deserializeMetadata(output),
|
|
@@ -766,17 +756,17 @@ export const deserializeAws_restJson1CreateFileSystemCommand = async (output, co
|
|
|
766
756
|
contents.ProvisionedThroughputInMibps = __limitedParseDouble(data.ProvisionedThroughputInMibps);
|
|
767
757
|
}
|
|
768
758
|
if (data.SizeInBytes != null) {
|
|
769
|
-
contents.SizeInBytes =
|
|
759
|
+
contents.SizeInBytes = de_FileSystemSize(data.SizeInBytes, context);
|
|
770
760
|
}
|
|
771
761
|
if (data.Tags != null) {
|
|
772
|
-
contents.Tags =
|
|
762
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
773
763
|
}
|
|
774
764
|
if (data.ThroughputMode != null) {
|
|
775
765
|
contents.ThroughputMode = __expectString(data.ThroughputMode);
|
|
776
766
|
}
|
|
777
767
|
return contents;
|
|
778
768
|
};
|
|
779
|
-
const
|
|
769
|
+
const de_CreateFileSystemCommandError = async (output, context) => {
|
|
780
770
|
const parsedOutput = {
|
|
781
771
|
...output,
|
|
782
772
|
body: await parseErrorBody(output.body, context),
|
|
@@ -785,25 +775,25 @@ const deserializeAws_restJson1CreateFileSystemCommandError = async (output, cont
|
|
|
785
775
|
switch (errorCode) {
|
|
786
776
|
case "BadRequest":
|
|
787
777
|
case "com.amazonaws.efs#BadRequest":
|
|
788
|
-
throw await
|
|
778
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
789
779
|
case "FileSystemAlreadyExists":
|
|
790
780
|
case "com.amazonaws.efs#FileSystemAlreadyExists":
|
|
791
|
-
throw await
|
|
781
|
+
throw await de_FileSystemAlreadyExistsRes(parsedOutput, context);
|
|
792
782
|
case "FileSystemLimitExceeded":
|
|
793
783
|
case "com.amazonaws.efs#FileSystemLimitExceeded":
|
|
794
|
-
throw await
|
|
784
|
+
throw await de_FileSystemLimitExceededRes(parsedOutput, context);
|
|
795
785
|
case "InsufficientThroughputCapacity":
|
|
796
786
|
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
797
|
-
throw await
|
|
787
|
+
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
798
788
|
case "InternalServerError":
|
|
799
789
|
case "com.amazonaws.efs#InternalServerError":
|
|
800
|
-
throw await
|
|
790
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
801
791
|
case "ThroughputLimitExceeded":
|
|
802
792
|
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
803
|
-
throw await
|
|
793
|
+
throw await de_ThroughputLimitExceededRes(parsedOutput, context);
|
|
804
794
|
case "UnsupportedAvailabilityZone":
|
|
805
795
|
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
806
|
-
throw await
|
|
796
|
+
throw await de_UnsupportedAvailabilityZoneRes(parsedOutput, context);
|
|
807
797
|
default:
|
|
808
798
|
const parsedBody = parsedOutput.body;
|
|
809
799
|
throwDefaultError({
|
|
@@ -814,9 +804,9 @@ const deserializeAws_restJson1CreateFileSystemCommandError = async (output, cont
|
|
|
814
804
|
});
|
|
815
805
|
}
|
|
816
806
|
};
|
|
817
|
-
export const
|
|
807
|
+
export const de_CreateMountTargetCommand = async (output, context) => {
|
|
818
808
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
819
|
-
return
|
|
809
|
+
return de_CreateMountTargetCommandError(output, context);
|
|
820
810
|
}
|
|
821
811
|
const contents = map({
|
|
822
812
|
$metadata: deserializeMetadata(output),
|
|
@@ -854,7 +844,7 @@ export const deserializeAws_restJson1CreateMountTargetCommand = async (output, c
|
|
|
854
844
|
}
|
|
855
845
|
return contents;
|
|
856
846
|
};
|
|
857
|
-
const
|
|
847
|
+
const de_CreateMountTargetCommandError = async (output, context) => {
|
|
858
848
|
const parsedOutput = {
|
|
859
849
|
...output,
|
|
860
850
|
body: await parseErrorBody(output.body, context),
|
|
@@ -863,43 +853,43 @@ const deserializeAws_restJson1CreateMountTargetCommandError = async (output, con
|
|
|
863
853
|
switch (errorCode) {
|
|
864
854
|
case "AvailabilityZonesMismatch":
|
|
865
855
|
case "com.amazonaws.efs#AvailabilityZonesMismatch":
|
|
866
|
-
throw await
|
|
856
|
+
throw await de_AvailabilityZonesMismatchRes(parsedOutput, context);
|
|
867
857
|
case "BadRequest":
|
|
868
858
|
case "com.amazonaws.efs#BadRequest":
|
|
869
|
-
throw await
|
|
859
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
870
860
|
case "FileSystemNotFound":
|
|
871
861
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
872
|
-
throw await
|
|
862
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
873
863
|
case "IncorrectFileSystemLifeCycleState":
|
|
874
864
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
875
|
-
throw await
|
|
865
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
876
866
|
case "InternalServerError":
|
|
877
867
|
case "com.amazonaws.efs#InternalServerError":
|
|
878
|
-
throw await
|
|
868
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
879
869
|
case "IpAddressInUse":
|
|
880
870
|
case "com.amazonaws.efs#IpAddressInUse":
|
|
881
|
-
throw await
|
|
871
|
+
throw await de_IpAddressInUseRes(parsedOutput, context);
|
|
882
872
|
case "MountTargetConflict":
|
|
883
873
|
case "com.amazonaws.efs#MountTargetConflict":
|
|
884
|
-
throw await
|
|
874
|
+
throw await de_MountTargetConflictRes(parsedOutput, context);
|
|
885
875
|
case "NetworkInterfaceLimitExceeded":
|
|
886
876
|
case "com.amazonaws.efs#NetworkInterfaceLimitExceeded":
|
|
887
|
-
throw await
|
|
877
|
+
throw await de_NetworkInterfaceLimitExceededRes(parsedOutput, context);
|
|
888
878
|
case "NoFreeAddressesInSubnet":
|
|
889
879
|
case "com.amazonaws.efs#NoFreeAddressesInSubnet":
|
|
890
|
-
throw await
|
|
880
|
+
throw await de_NoFreeAddressesInSubnetRes(parsedOutput, context);
|
|
891
881
|
case "SecurityGroupLimitExceeded":
|
|
892
882
|
case "com.amazonaws.efs#SecurityGroupLimitExceeded":
|
|
893
|
-
throw await
|
|
883
|
+
throw await de_SecurityGroupLimitExceededRes(parsedOutput, context);
|
|
894
884
|
case "SecurityGroupNotFound":
|
|
895
885
|
case "com.amazonaws.efs#SecurityGroupNotFound":
|
|
896
|
-
throw await
|
|
886
|
+
throw await de_SecurityGroupNotFoundRes(parsedOutput, context);
|
|
897
887
|
case "SubnetNotFound":
|
|
898
888
|
case "com.amazonaws.efs#SubnetNotFound":
|
|
899
|
-
throw await
|
|
889
|
+
throw await de_SubnetNotFoundRes(parsedOutput, context);
|
|
900
890
|
case "UnsupportedAvailabilityZone":
|
|
901
891
|
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
902
|
-
throw await
|
|
892
|
+
throw await de_UnsupportedAvailabilityZoneRes(parsedOutput, context);
|
|
903
893
|
default:
|
|
904
894
|
const parsedBody = parsedOutput.body;
|
|
905
895
|
throwDefaultError({
|
|
@@ -910,9 +900,9 @@ const deserializeAws_restJson1CreateMountTargetCommandError = async (output, con
|
|
|
910
900
|
});
|
|
911
901
|
}
|
|
912
902
|
};
|
|
913
|
-
export const
|
|
903
|
+
export const de_CreateReplicationConfigurationCommand = async (output, context) => {
|
|
914
904
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
915
|
-
return
|
|
905
|
+
return de_CreateReplicationConfigurationCommandError(output, context);
|
|
916
906
|
}
|
|
917
907
|
const contents = map({
|
|
918
908
|
$metadata: deserializeMetadata(output),
|
|
@@ -922,7 +912,7 @@ export const deserializeAws_restJson1CreateReplicationConfigurationCommand = asy
|
|
|
922
912
|
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
923
913
|
}
|
|
924
914
|
if (data.Destinations != null) {
|
|
925
|
-
contents.Destinations =
|
|
915
|
+
contents.Destinations = de_Destinations(data.Destinations, context);
|
|
926
916
|
}
|
|
927
917
|
if (data.OriginalSourceFileSystemArn != null) {
|
|
928
918
|
contents.OriginalSourceFileSystemArn = __expectString(data.OriginalSourceFileSystemArn);
|
|
@@ -938,7 +928,7 @@ export const deserializeAws_restJson1CreateReplicationConfigurationCommand = asy
|
|
|
938
928
|
}
|
|
939
929
|
return contents;
|
|
940
930
|
};
|
|
941
|
-
const
|
|
931
|
+
const de_CreateReplicationConfigurationCommandError = async (output, context) => {
|
|
942
932
|
const parsedOutput = {
|
|
943
933
|
...output,
|
|
944
934
|
body: await parseErrorBody(output.body, context),
|
|
@@ -947,34 +937,34 @@ const deserializeAws_restJson1CreateReplicationConfigurationCommandError = async
|
|
|
947
937
|
switch (errorCode) {
|
|
948
938
|
case "BadRequest":
|
|
949
939
|
case "com.amazonaws.efs#BadRequest":
|
|
950
|
-
throw await
|
|
940
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
951
941
|
case "FileSystemLimitExceeded":
|
|
952
942
|
case "com.amazonaws.efs#FileSystemLimitExceeded":
|
|
953
|
-
throw await
|
|
943
|
+
throw await de_FileSystemLimitExceededRes(parsedOutput, context);
|
|
954
944
|
case "FileSystemNotFound":
|
|
955
945
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
956
|
-
throw await
|
|
946
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
957
947
|
case "IncorrectFileSystemLifeCycleState":
|
|
958
948
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
959
|
-
throw await
|
|
949
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
960
950
|
case "InsufficientThroughputCapacity":
|
|
961
951
|
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
962
|
-
throw await
|
|
952
|
+
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
963
953
|
case "InternalServerError":
|
|
964
954
|
case "com.amazonaws.efs#InternalServerError":
|
|
965
|
-
throw await
|
|
955
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
966
956
|
case "ReplicationNotFound":
|
|
967
957
|
case "com.amazonaws.efs#ReplicationNotFound":
|
|
968
|
-
throw await
|
|
958
|
+
throw await de_ReplicationNotFoundRes(parsedOutput, context);
|
|
969
959
|
case "ThroughputLimitExceeded":
|
|
970
960
|
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
971
|
-
throw await
|
|
961
|
+
throw await de_ThroughputLimitExceededRes(parsedOutput, context);
|
|
972
962
|
case "UnsupportedAvailabilityZone":
|
|
973
963
|
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
974
|
-
throw await
|
|
964
|
+
throw await de_UnsupportedAvailabilityZoneRes(parsedOutput, context);
|
|
975
965
|
case "ValidationException":
|
|
976
966
|
case "com.amazonaws.efs#ValidationException":
|
|
977
|
-
throw await
|
|
967
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
978
968
|
default:
|
|
979
969
|
const parsedBody = parsedOutput.body;
|
|
980
970
|
throwDefaultError({
|
|
@@ -985,9 +975,9 @@ const deserializeAws_restJson1CreateReplicationConfigurationCommandError = async
|
|
|
985
975
|
});
|
|
986
976
|
}
|
|
987
977
|
};
|
|
988
|
-
export const
|
|
978
|
+
export const de_CreateTagsCommand = async (output, context) => {
|
|
989
979
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
990
|
-
return
|
|
980
|
+
return de_CreateTagsCommandError(output, context);
|
|
991
981
|
}
|
|
992
982
|
const contents = map({
|
|
993
983
|
$metadata: deserializeMetadata(output),
|
|
@@ -995,7 +985,7 @@ export const deserializeAws_restJson1CreateTagsCommand = async (output, context)
|
|
|
995
985
|
await collectBody(output.body, context);
|
|
996
986
|
return contents;
|
|
997
987
|
};
|
|
998
|
-
const
|
|
988
|
+
const de_CreateTagsCommandError = async (output, context) => {
|
|
999
989
|
const parsedOutput = {
|
|
1000
990
|
...output,
|
|
1001
991
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1004,13 +994,13 @@ const deserializeAws_restJson1CreateTagsCommandError = async (output, context) =
|
|
|
1004
994
|
switch (errorCode) {
|
|
1005
995
|
case "BadRequest":
|
|
1006
996
|
case "com.amazonaws.efs#BadRequest":
|
|
1007
|
-
throw await
|
|
997
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1008
998
|
case "FileSystemNotFound":
|
|
1009
999
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1010
|
-
throw await
|
|
1000
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1011
1001
|
case "InternalServerError":
|
|
1012
1002
|
case "com.amazonaws.efs#InternalServerError":
|
|
1013
|
-
throw await
|
|
1003
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1014
1004
|
default:
|
|
1015
1005
|
const parsedBody = parsedOutput.body;
|
|
1016
1006
|
throwDefaultError({
|
|
@@ -1021,9 +1011,9 @@ const deserializeAws_restJson1CreateTagsCommandError = async (output, context) =
|
|
|
1021
1011
|
});
|
|
1022
1012
|
}
|
|
1023
1013
|
};
|
|
1024
|
-
export const
|
|
1014
|
+
export const de_DeleteAccessPointCommand = async (output, context) => {
|
|
1025
1015
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1026
|
-
return
|
|
1016
|
+
return de_DeleteAccessPointCommandError(output, context);
|
|
1027
1017
|
}
|
|
1028
1018
|
const contents = map({
|
|
1029
1019
|
$metadata: deserializeMetadata(output),
|
|
@@ -1031,7 +1021,7 @@ export const deserializeAws_restJson1DeleteAccessPointCommand = async (output, c
|
|
|
1031
1021
|
await collectBody(output.body, context);
|
|
1032
1022
|
return contents;
|
|
1033
1023
|
};
|
|
1034
|
-
const
|
|
1024
|
+
const de_DeleteAccessPointCommandError = async (output, context) => {
|
|
1035
1025
|
const parsedOutput = {
|
|
1036
1026
|
...output,
|
|
1037
1027
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1040,13 +1030,13 @@ const deserializeAws_restJson1DeleteAccessPointCommandError = async (output, con
|
|
|
1040
1030
|
switch (errorCode) {
|
|
1041
1031
|
case "AccessPointNotFound":
|
|
1042
1032
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1043
|
-
throw await
|
|
1033
|
+
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1044
1034
|
case "BadRequest":
|
|
1045
1035
|
case "com.amazonaws.efs#BadRequest":
|
|
1046
|
-
throw await
|
|
1036
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1047
1037
|
case "InternalServerError":
|
|
1048
1038
|
case "com.amazonaws.efs#InternalServerError":
|
|
1049
|
-
throw await
|
|
1039
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1050
1040
|
default:
|
|
1051
1041
|
const parsedBody = parsedOutput.body;
|
|
1052
1042
|
throwDefaultError({
|
|
@@ -1057,9 +1047,9 @@ const deserializeAws_restJson1DeleteAccessPointCommandError = async (output, con
|
|
|
1057
1047
|
});
|
|
1058
1048
|
}
|
|
1059
1049
|
};
|
|
1060
|
-
export const
|
|
1050
|
+
export const de_DeleteFileSystemCommand = async (output, context) => {
|
|
1061
1051
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1062
|
-
return
|
|
1052
|
+
return de_DeleteFileSystemCommandError(output, context);
|
|
1063
1053
|
}
|
|
1064
1054
|
const contents = map({
|
|
1065
1055
|
$metadata: deserializeMetadata(output),
|
|
@@ -1067,7 +1057,7 @@ export const deserializeAws_restJson1DeleteFileSystemCommand = async (output, co
|
|
|
1067
1057
|
await collectBody(output.body, context);
|
|
1068
1058
|
return contents;
|
|
1069
1059
|
};
|
|
1070
|
-
const
|
|
1060
|
+
const de_DeleteFileSystemCommandError = async (output, context) => {
|
|
1071
1061
|
const parsedOutput = {
|
|
1072
1062
|
...output,
|
|
1073
1063
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1076,16 +1066,16 @@ const deserializeAws_restJson1DeleteFileSystemCommandError = async (output, cont
|
|
|
1076
1066
|
switch (errorCode) {
|
|
1077
1067
|
case "BadRequest":
|
|
1078
1068
|
case "com.amazonaws.efs#BadRequest":
|
|
1079
|
-
throw await
|
|
1069
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1080
1070
|
case "FileSystemInUse":
|
|
1081
1071
|
case "com.amazonaws.efs#FileSystemInUse":
|
|
1082
|
-
throw await
|
|
1072
|
+
throw await de_FileSystemInUseRes(parsedOutput, context);
|
|
1083
1073
|
case "FileSystemNotFound":
|
|
1084
1074
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1085
|
-
throw await
|
|
1075
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1086
1076
|
case "InternalServerError":
|
|
1087
1077
|
case "com.amazonaws.efs#InternalServerError":
|
|
1088
|
-
throw await
|
|
1078
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1089
1079
|
default:
|
|
1090
1080
|
const parsedBody = parsedOutput.body;
|
|
1091
1081
|
throwDefaultError({
|
|
@@ -1096,9 +1086,9 @@ const deserializeAws_restJson1DeleteFileSystemCommandError = async (output, cont
|
|
|
1096
1086
|
});
|
|
1097
1087
|
}
|
|
1098
1088
|
};
|
|
1099
|
-
export const
|
|
1089
|
+
export const de_DeleteFileSystemPolicyCommand = async (output, context) => {
|
|
1100
1090
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1101
|
-
return
|
|
1091
|
+
return de_DeleteFileSystemPolicyCommandError(output, context);
|
|
1102
1092
|
}
|
|
1103
1093
|
const contents = map({
|
|
1104
1094
|
$metadata: deserializeMetadata(output),
|
|
@@ -1106,7 +1096,7 @@ export const deserializeAws_restJson1DeleteFileSystemPolicyCommand = async (outp
|
|
|
1106
1096
|
await collectBody(output.body, context);
|
|
1107
1097
|
return contents;
|
|
1108
1098
|
};
|
|
1109
|
-
const
|
|
1099
|
+
const de_DeleteFileSystemPolicyCommandError = async (output, context) => {
|
|
1110
1100
|
const parsedOutput = {
|
|
1111
1101
|
...output,
|
|
1112
1102
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1115,16 +1105,16 @@ const deserializeAws_restJson1DeleteFileSystemPolicyCommandError = async (output
|
|
|
1115
1105
|
switch (errorCode) {
|
|
1116
1106
|
case "BadRequest":
|
|
1117
1107
|
case "com.amazonaws.efs#BadRequest":
|
|
1118
|
-
throw await
|
|
1108
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1119
1109
|
case "FileSystemNotFound":
|
|
1120
1110
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1121
|
-
throw await
|
|
1111
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1122
1112
|
case "IncorrectFileSystemLifeCycleState":
|
|
1123
1113
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1124
|
-
throw await
|
|
1114
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1125
1115
|
case "InternalServerError":
|
|
1126
1116
|
case "com.amazonaws.efs#InternalServerError":
|
|
1127
|
-
throw await
|
|
1117
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1128
1118
|
default:
|
|
1129
1119
|
const parsedBody = parsedOutput.body;
|
|
1130
1120
|
throwDefaultError({
|
|
@@ -1135,9 +1125,9 @@ const deserializeAws_restJson1DeleteFileSystemPolicyCommandError = async (output
|
|
|
1135
1125
|
});
|
|
1136
1126
|
}
|
|
1137
1127
|
};
|
|
1138
|
-
export const
|
|
1128
|
+
export const de_DeleteMountTargetCommand = async (output, context) => {
|
|
1139
1129
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1140
|
-
return
|
|
1130
|
+
return de_DeleteMountTargetCommandError(output, context);
|
|
1141
1131
|
}
|
|
1142
1132
|
const contents = map({
|
|
1143
1133
|
$metadata: deserializeMetadata(output),
|
|
@@ -1145,7 +1135,7 @@ export const deserializeAws_restJson1DeleteMountTargetCommand = async (output, c
|
|
|
1145
1135
|
await collectBody(output.body, context);
|
|
1146
1136
|
return contents;
|
|
1147
1137
|
};
|
|
1148
|
-
const
|
|
1138
|
+
const de_DeleteMountTargetCommandError = async (output, context) => {
|
|
1149
1139
|
const parsedOutput = {
|
|
1150
1140
|
...output,
|
|
1151
1141
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1154,16 +1144,16 @@ const deserializeAws_restJson1DeleteMountTargetCommandError = async (output, con
|
|
|
1154
1144
|
switch (errorCode) {
|
|
1155
1145
|
case "BadRequest":
|
|
1156
1146
|
case "com.amazonaws.efs#BadRequest":
|
|
1157
|
-
throw await
|
|
1147
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1158
1148
|
case "DependencyTimeout":
|
|
1159
1149
|
case "com.amazonaws.efs#DependencyTimeout":
|
|
1160
|
-
throw await
|
|
1150
|
+
throw await de_DependencyTimeoutRes(parsedOutput, context);
|
|
1161
1151
|
case "InternalServerError":
|
|
1162
1152
|
case "com.amazonaws.efs#InternalServerError":
|
|
1163
|
-
throw await
|
|
1153
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1164
1154
|
case "MountTargetNotFound":
|
|
1165
1155
|
case "com.amazonaws.efs#MountTargetNotFound":
|
|
1166
|
-
throw await
|
|
1156
|
+
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
1167
1157
|
default:
|
|
1168
1158
|
const parsedBody = parsedOutput.body;
|
|
1169
1159
|
throwDefaultError({
|
|
@@ -1174,9 +1164,9 @@ const deserializeAws_restJson1DeleteMountTargetCommandError = async (output, con
|
|
|
1174
1164
|
});
|
|
1175
1165
|
}
|
|
1176
1166
|
};
|
|
1177
|
-
export const
|
|
1167
|
+
export const de_DeleteReplicationConfigurationCommand = async (output, context) => {
|
|
1178
1168
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1179
|
-
return
|
|
1169
|
+
return de_DeleteReplicationConfigurationCommandError(output, context);
|
|
1180
1170
|
}
|
|
1181
1171
|
const contents = map({
|
|
1182
1172
|
$metadata: deserializeMetadata(output),
|
|
@@ -1184,7 +1174,7 @@ export const deserializeAws_restJson1DeleteReplicationConfigurationCommand = asy
|
|
|
1184
1174
|
await collectBody(output.body, context);
|
|
1185
1175
|
return contents;
|
|
1186
1176
|
};
|
|
1187
|
-
const
|
|
1177
|
+
const de_DeleteReplicationConfigurationCommandError = async (output, context) => {
|
|
1188
1178
|
const parsedOutput = {
|
|
1189
1179
|
...output,
|
|
1190
1180
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1193,16 +1183,16 @@ const deserializeAws_restJson1DeleteReplicationConfigurationCommandError = async
|
|
|
1193
1183
|
switch (errorCode) {
|
|
1194
1184
|
case "BadRequest":
|
|
1195
1185
|
case "com.amazonaws.efs#BadRequest":
|
|
1196
|
-
throw await
|
|
1186
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1197
1187
|
case "FileSystemNotFound":
|
|
1198
1188
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1199
|
-
throw await
|
|
1189
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1200
1190
|
case "InternalServerError":
|
|
1201
1191
|
case "com.amazonaws.efs#InternalServerError":
|
|
1202
|
-
throw await
|
|
1192
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1203
1193
|
case "ReplicationNotFound":
|
|
1204
1194
|
case "com.amazonaws.efs#ReplicationNotFound":
|
|
1205
|
-
throw await
|
|
1195
|
+
throw await de_ReplicationNotFoundRes(parsedOutput, context);
|
|
1206
1196
|
default:
|
|
1207
1197
|
const parsedBody = parsedOutput.body;
|
|
1208
1198
|
throwDefaultError({
|
|
@@ -1213,9 +1203,9 @@ const deserializeAws_restJson1DeleteReplicationConfigurationCommandError = async
|
|
|
1213
1203
|
});
|
|
1214
1204
|
}
|
|
1215
1205
|
};
|
|
1216
|
-
export const
|
|
1206
|
+
export const de_DeleteTagsCommand = async (output, context) => {
|
|
1217
1207
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1218
|
-
return
|
|
1208
|
+
return de_DeleteTagsCommandError(output, context);
|
|
1219
1209
|
}
|
|
1220
1210
|
const contents = map({
|
|
1221
1211
|
$metadata: deserializeMetadata(output),
|
|
@@ -1223,7 +1213,7 @@ export const deserializeAws_restJson1DeleteTagsCommand = async (output, context)
|
|
|
1223
1213
|
await collectBody(output.body, context);
|
|
1224
1214
|
return contents;
|
|
1225
1215
|
};
|
|
1226
|
-
const
|
|
1216
|
+
const de_DeleteTagsCommandError = async (output, context) => {
|
|
1227
1217
|
const parsedOutput = {
|
|
1228
1218
|
...output,
|
|
1229
1219
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1232,13 +1222,13 @@ const deserializeAws_restJson1DeleteTagsCommandError = async (output, context) =
|
|
|
1232
1222
|
switch (errorCode) {
|
|
1233
1223
|
case "BadRequest":
|
|
1234
1224
|
case "com.amazonaws.efs#BadRequest":
|
|
1235
|
-
throw await
|
|
1225
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1236
1226
|
case "FileSystemNotFound":
|
|
1237
1227
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1238
|
-
throw await
|
|
1228
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1239
1229
|
case "InternalServerError":
|
|
1240
1230
|
case "com.amazonaws.efs#InternalServerError":
|
|
1241
|
-
throw await
|
|
1231
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1242
1232
|
default:
|
|
1243
1233
|
const parsedBody = parsedOutput.body;
|
|
1244
1234
|
throwDefaultError({
|
|
@@ -1249,23 +1239,23 @@ const deserializeAws_restJson1DeleteTagsCommandError = async (output, context) =
|
|
|
1249
1239
|
});
|
|
1250
1240
|
}
|
|
1251
1241
|
};
|
|
1252
|
-
export const
|
|
1242
|
+
export const de_DescribeAccessPointsCommand = async (output, context) => {
|
|
1253
1243
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1254
|
-
return
|
|
1244
|
+
return de_DescribeAccessPointsCommandError(output, context);
|
|
1255
1245
|
}
|
|
1256
1246
|
const contents = map({
|
|
1257
1247
|
$metadata: deserializeMetadata(output),
|
|
1258
1248
|
});
|
|
1259
1249
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1260
1250
|
if (data.AccessPoints != null) {
|
|
1261
|
-
contents.AccessPoints =
|
|
1251
|
+
contents.AccessPoints = de_AccessPointDescriptions(data.AccessPoints, context);
|
|
1262
1252
|
}
|
|
1263
1253
|
if (data.NextToken != null) {
|
|
1264
1254
|
contents.NextToken = __expectString(data.NextToken);
|
|
1265
1255
|
}
|
|
1266
1256
|
return contents;
|
|
1267
1257
|
};
|
|
1268
|
-
const
|
|
1258
|
+
const de_DescribeAccessPointsCommandError = async (output, context) => {
|
|
1269
1259
|
const parsedOutput = {
|
|
1270
1260
|
...output,
|
|
1271
1261
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1274,16 +1264,16 @@ const deserializeAws_restJson1DescribeAccessPointsCommandError = async (output,
|
|
|
1274
1264
|
switch (errorCode) {
|
|
1275
1265
|
case "AccessPointNotFound":
|
|
1276
1266
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1277
|
-
throw await
|
|
1267
|
+
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1278
1268
|
case "BadRequest":
|
|
1279
1269
|
case "com.amazonaws.efs#BadRequest":
|
|
1280
|
-
throw await
|
|
1270
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1281
1271
|
case "FileSystemNotFound":
|
|
1282
1272
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1283
|
-
throw await
|
|
1273
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1284
1274
|
case "InternalServerError":
|
|
1285
1275
|
case "com.amazonaws.efs#InternalServerError":
|
|
1286
|
-
throw await
|
|
1276
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1287
1277
|
default:
|
|
1288
1278
|
const parsedBody = parsedOutput.body;
|
|
1289
1279
|
throwDefaultError({
|
|
@@ -1294,9 +1284,9 @@ const deserializeAws_restJson1DescribeAccessPointsCommandError = async (output,
|
|
|
1294
1284
|
});
|
|
1295
1285
|
}
|
|
1296
1286
|
};
|
|
1297
|
-
export const
|
|
1287
|
+
export const de_DescribeAccountPreferencesCommand = async (output, context) => {
|
|
1298
1288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1299
|
-
return
|
|
1289
|
+
return de_DescribeAccountPreferencesCommandError(output, context);
|
|
1300
1290
|
}
|
|
1301
1291
|
const contents = map({
|
|
1302
1292
|
$metadata: deserializeMetadata(output),
|
|
@@ -1306,11 +1296,11 @@ export const deserializeAws_restJson1DescribeAccountPreferencesCommand = async (
|
|
|
1306
1296
|
contents.NextToken = __expectString(data.NextToken);
|
|
1307
1297
|
}
|
|
1308
1298
|
if (data.ResourceIdPreference != null) {
|
|
1309
|
-
contents.ResourceIdPreference =
|
|
1299
|
+
contents.ResourceIdPreference = de_ResourceIdPreference(data.ResourceIdPreference, context);
|
|
1310
1300
|
}
|
|
1311
1301
|
return contents;
|
|
1312
1302
|
};
|
|
1313
|
-
const
|
|
1303
|
+
const de_DescribeAccountPreferencesCommandError = async (output, context) => {
|
|
1314
1304
|
const parsedOutput = {
|
|
1315
1305
|
...output,
|
|
1316
1306
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1319,7 +1309,7 @@ const deserializeAws_restJson1DescribeAccountPreferencesCommandError = async (ou
|
|
|
1319
1309
|
switch (errorCode) {
|
|
1320
1310
|
case "InternalServerError":
|
|
1321
1311
|
case "com.amazonaws.efs#InternalServerError":
|
|
1322
|
-
throw await
|
|
1312
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1323
1313
|
default:
|
|
1324
1314
|
const parsedBody = parsedOutput.body;
|
|
1325
1315
|
throwDefaultError({
|
|
@@ -1330,20 +1320,20 @@ const deserializeAws_restJson1DescribeAccountPreferencesCommandError = async (ou
|
|
|
1330
1320
|
});
|
|
1331
1321
|
}
|
|
1332
1322
|
};
|
|
1333
|
-
export const
|
|
1323
|
+
export const de_DescribeBackupPolicyCommand = async (output, context) => {
|
|
1334
1324
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1335
|
-
return
|
|
1325
|
+
return de_DescribeBackupPolicyCommandError(output, context);
|
|
1336
1326
|
}
|
|
1337
1327
|
const contents = map({
|
|
1338
1328
|
$metadata: deserializeMetadata(output),
|
|
1339
1329
|
});
|
|
1340
1330
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1341
1331
|
if (data.BackupPolicy != null) {
|
|
1342
|
-
contents.BackupPolicy =
|
|
1332
|
+
contents.BackupPolicy = de_BackupPolicy(data.BackupPolicy, context);
|
|
1343
1333
|
}
|
|
1344
1334
|
return contents;
|
|
1345
1335
|
};
|
|
1346
|
-
const
|
|
1336
|
+
const de_DescribeBackupPolicyCommandError = async (output, context) => {
|
|
1347
1337
|
const parsedOutput = {
|
|
1348
1338
|
...output,
|
|
1349
1339
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1352,19 +1342,19 @@ const deserializeAws_restJson1DescribeBackupPolicyCommandError = async (output,
|
|
|
1352
1342
|
switch (errorCode) {
|
|
1353
1343
|
case "BadRequest":
|
|
1354
1344
|
case "com.amazonaws.efs#BadRequest":
|
|
1355
|
-
throw await
|
|
1345
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1356
1346
|
case "FileSystemNotFound":
|
|
1357
1347
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1358
|
-
throw await
|
|
1348
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1359
1349
|
case "InternalServerError":
|
|
1360
1350
|
case "com.amazonaws.efs#InternalServerError":
|
|
1361
|
-
throw await
|
|
1351
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1362
1352
|
case "PolicyNotFound":
|
|
1363
1353
|
case "com.amazonaws.efs#PolicyNotFound":
|
|
1364
|
-
throw await
|
|
1354
|
+
throw await de_PolicyNotFoundRes(parsedOutput, context);
|
|
1365
1355
|
case "ValidationException":
|
|
1366
1356
|
case "com.amazonaws.efs#ValidationException":
|
|
1367
|
-
throw await
|
|
1357
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1368
1358
|
default:
|
|
1369
1359
|
const parsedBody = parsedOutput.body;
|
|
1370
1360
|
throwDefaultError({
|
|
@@ -1375,9 +1365,9 @@ const deserializeAws_restJson1DescribeBackupPolicyCommandError = async (output,
|
|
|
1375
1365
|
});
|
|
1376
1366
|
}
|
|
1377
1367
|
};
|
|
1378
|
-
export const
|
|
1368
|
+
export const de_DescribeFileSystemPolicyCommand = async (output, context) => {
|
|
1379
1369
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1380
|
-
return
|
|
1370
|
+
return de_DescribeFileSystemPolicyCommandError(output, context);
|
|
1381
1371
|
}
|
|
1382
1372
|
const contents = map({
|
|
1383
1373
|
$metadata: deserializeMetadata(output),
|
|
@@ -1391,7 +1381,7 @@ export const deserializeAws_restJson1DescribeFileSystemPolicyCommand = async (ou
|
|
|
1391
1381
|
}
|
|
1392
1382
|
return contents;
|
|
1393
1383
|
};
|
|
1394
|
-
const
|
|
1384
|
+
const de_DescribeFileSystemPolicyCommandError = async (output, context) => {
|
|
1395
1385
|
const parsedOutput = {
|
|
1396
1386
|
...output,
|
|
1397
1387
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1400,16 +1390,16 @@ const deserializeAws_restJson1DescribeFileSystemPolicyCommandError = async (outp
|
|
|
1400
1390
|
switch (errorCode) {
|
|
1401
1391
|
case "BadRequest":
|
|
1402
1392
|
case "com.amazonaws.efs#BadRequest":
|
|
1403
|
-
throw await
|
|
1393
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1404
1394
|
case "FileSystemNotFound":
|
|
1405
1395
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1406
|
-
throw await
|
|
1396
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1407
1397
|
case "InternalServerError":
|
|
1408
1398
|
case "com.amazonaws.efs#InternalServerError":
|
|
1409
|
-
throw await
|
|
1399
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1410
1400
|
case "PolicyNotFound":
|
|
1411
1401
|
case "com.amazonaws.efs#PolicyNotFound":
|
|
1412
|
-
throw await
|
|
1402
|
+
throw await de_PolicyNotFoundRes(parsedOutput, context);
|
|
1413
1403
|
default:
|
|
1414
1404
|
const parsedBody = parsedOutput.body;
|
|
1415
1405
|
throwDefaultError({
|
|
@@ -1420,16 +1410,16 @@ const deserializeAws_restJson1DescribeFileSystemPolicyCommandError = async (outp
|
|
|
1420
1410
|
});
|
|
1421
1411
|
}
|
|
1422
1412
|
};
|
|
1423
|
-
export const
|
|
1413
|
+
export const de_DescribeFileSystemsCommand = async (output, context) => {
|
|
1424
1414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1425
|
-
return
|
|
1415
|
+
return de_DescribeFileSystemsCommandError(output, context);
|
|
1426
1416
|
}
|
|
1427
1417
|
const contents = map({
|
|
1428
1418
|
$metadata: deserializeMetadata(output),
|
|
1429
1419
|
});
|
|
1430
1420
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1431
1421
|
if (data.FileSystems != null) {
|
|
1432
|
-
contents.FileSystems =
|
|
1422
|
+
contents.FileSystems = de_FileSystemDescriptions(data.FileSystems, context);
|
|
1433
1423
|
}
|
|
1434
1424
|
if (data.Marker != null) {
|
|
1435
1425
|
contents.Marker = __expectString(data.Marker);
|
|
@@ -1439,7 +1429,7 @@ export const deserializeAws_restJson1DescribeFileSystemsCommand = async (output,
|
|
|
1439
1429
|
}
|
|
1440
1430
|
return contents;
|
|
1441
1431
|
};
|
|
1442
|
-
const
|
|
1432
|
+
const de_DescribeFileSystemsCommandError = async (output, context) => {
|
|
1443
1433
|
const parsedOutput = {
|
|
1444
1434
|
...output,
|
|
1445
1435
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1448,13 +1438,13 @@ const deserializeAws_restJson1DescribeFileSystemsCommandError = async (output, c
|
|
|
1448
1438
|
switch (errorCode) {
|
|
1449
1439
|
case "BadRequest":
|
|
1450
1440
|
case "com.amazonaws.efs#BadRequest":
|
|
1451
|
-
throw await
|
|
1441
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1452
1442
|
case "FileSystemNotFound":
|
|
1453
1443
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1454
|
-
throw await
|
|
1444
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1455
1445
|
case "InternalServerError":
|
|
1456
1446
|
case "com.amazonaws.efs#InternalServerError":
|
|
1457
|
-
throw await
|
|
1447
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1458
1448
|
default:
|
|
1459
1449
|
const parsedBody = parsedOutput.body;
|
|
1460
1450
|
throwDefaultError({
|
|
@@ -1465,20 +1455,20 @@ const deserializeAws_restJson1DescribeFileSystemsCommandError = async (output, c
|
|
|
1465
1455
|
});
|
|
1466
1456
|
}
|
|
1467
1457
|
};
|
|
1468
|
-
export const
|
|
1458
|
+
export const de_DescribeLifecycleConfigurationCommand = async (output, context) => {
|
|
1469
1459
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1470
|
-
return
|
|
1460
|
+
return de_DescribeLifecycleConfigurationCommandError(output, context);
|
|
1471
1461
|
}
|
|
1472
1462
|
const contents = map({
|
|
1473
1463
|
$metadata: deserializeMetadata(output),
|
|
1474
1464
|
});
|
|
1475
1465
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1476
1466
|
if (data.LifecyclePolicies != null) {
|
|
1477
|
-
contents.LifecyclePolicies =
|
|
1467
|
+
contents.LifecyclePolicies = de_LifecyclePolicies(data.LifecyclePolicies, context);
|
|
1478
1468
|
}
|
|
1479
1469
|
return contents;
|
|
1480
1470
|
};
|
|
1481
|
-
const
|
|
1471
|
+
const de_DescribeLifecycleConfigurationCommandError = async (output, context) => {
|
|
1482
1472
|
const parsedOutput = {
|
|
1483
1473
|
...output,
|
|
1484
1474
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1487,13 +1477,13 @@ const deserializeAws_restJson1DescribeLifecycleConfigurationCommandError = async
|
|
|
1487
1477
|
switch (errorCode) {
|
|
1488
1478
|
case "BadRequest":
|
|
1489
1479
|
case "com.amazonaws.efs#BadRequest":
|
|
1490
|
-
throw await
|
|
1480
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1491
1481
|
case "FileSystemNotFound":
|
|
1492
1482
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1493
|
-
throw await
|
|
1483
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1494
1484
|
case "InternalServerError":
|
|
1495
1485
|
case "com.amazonaws.efs#InternalServerError":
|
|
1496
|
-
throw await
|
|
1486
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1497
1487
|
default:
|
|
1498
1488
|
const parsedBody = parsedOutput.body;
|
|
1499
1489
|
throwDefaultError({
|
|
@@ -1504,9 +1494,9 @@ const deserializeAws_restJson1DescribeLifecycleConfigurationCommandError = async
|
|
|
1504
1494
|
});
|
|
1505
1495
|
}
|
|
1506
1496
|
};
|
|
1507
|
-
export const
|
|
1497
|
+
export const de_DescribeMountTargetsCommand = async (output, context) => {
|
|
1508
1498
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1509
|
-
return
|
|
1499
|
+
return de_DescribeMountTargetsCommandError(output, context);
|
|
1510
1500
|
}
|
|
1511
1501
|
const contents = map({
|
|
1512
1502
|
$metadata: deserializeMetadata(output),
|
|
@@ -1516,14 +1506,14 @@ export const deserializeAws_restJson1DescribeMountTargetsCommand = async (output
|
|
|
1516
1506
|
contents.Marker = __expectString(data.Marker);
|
|
1517
1507
|
}
|
|
1518
1508
|
if (data.MountTargets != null) {
|
|
1519
|
-
contents.MountTargets =
|
|
1509
|
+
contents.MountTargets = de_MountTargetDescriptions(data.MountTargets, context);
|
|
1520
1510
|
}
|
|
1521
1511
|
if (data.NextMarker != null) {
|
|
1522
1512
|
contents.NextMarker = __expectString(data.NextMarker);
|
|
1523
1513
|
}
|
|
1524
1514
|
return contents;
|
|
1525
1515
|
};
|
|
1526
|
-
const
|
|
1516
|
+
const de_DescribeMountTargetsCommandError = async (output, context) => {
|
|
1527
1517
|
const parsedOutput = {
|
|
1528
1518
|
...output,
|
|
1529
1519
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1532,19 +1522,19 @@ const deserializeAws_restJson1DescribeMountTargetsCommandError = async (output,
|
|
|
1532
1522
|
switch (errorCode) {
|
|
1533
1523
|
case "AccessPointNotFound":
|
|
1534
1524
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1535
|
-
throw await
|
|
1525
|
+
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1536
1526
|
case "BadRequest":
|
|
1537
1527
|
case "com.amazonaws.efs#BadRequest":
|
|
1538
|
-
throw await
|
|
1528
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1539
1529
|
case "FileSystemNotFound":
|
|
1540
1530
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1541
|
-
throw await
|
|
1531
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1542
1532
|
case "InternalServerError":
|
|
1543
1533
|
case "com.amazonaws.efs#InternalServerError":
|
|
1544
|
-
throw await
|
|
1534
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1545
1535
|
case "MountTargetNotFound":
|
|
1546
1536
|
case "com.amazonaws.efs#MountTargetNotFound":
|
|
1547
|
-
throw await
|
|
1537
|
+
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
1548
1538
|
default:
|
|
1549
1539
|
const parsedBody = parsedOutput.body;
|
|
1550
1540
|
throwDefaultError({
|
|
@@ -1555,20 +1545,20 @@ const deserializeAws_restJson1DescribeMountTargetsCommandError = async (output,
|
|
|
1555
1545
|
});
|
|
1556
1546
|
}
|
|
1557
1547
|
};
|
|
1558
|
-
export const
|
|
1548
|
+
export const de_DescribeMountTargetSecurityGroupsCommand = async (output, context) => {
|
|
1559
1549
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1560
|
-
return
|
|
1550
|
+
return de_DescribeMountTargetSecurityGroupsCommandError(output, context);
|
|
1561
1551
|
}
|
|
1562
1552
|
const contents = map({
|
|
1563
1553
|
$metadata: deserializeMetadata(output),
|
|
1564
1554
|
});
|
|
1565
1555
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1566
1556
|
if (data.SecurityGroups != null) {
|
|
1567
|
-
contents.SecurityGroups =
|
|
1557
|
+
contents.SecurityGroups = de_SecurityGroups(data.SecurityGroups, context);
|
|
1568
1558
|
}
|
|
1569
1559
|
return contents;
|
|
1570
1560
|
};
|
|
1571
|
-
const
|
|
1561
|
+
const de_DescribeMountTargetSecurityGroupsCommandError = async (output, context) => {
|
|
1572
1562
|
const parsedOutput = {
|
|
1573
1563
|
...output,
|
|
1574
1564
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1577,16 +1567,16 @@ const deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommandError = as
|
|
|
1577
1567
|
switch (errorCode) {
|
|
1578
1568
|
case "BadRequest":
|
|
1579
1569
|
case "com.amazonaws.efs#BadRequest":
|
|
1580
|
-
throw await
|
|
1570
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1581
1571
|
case "IncorrectMountTargetState":
|
|
1582
1572
|
case "com.amazonaws.efs#IncorrectMountTargetState":
|
|
1583
|
-
throw await
|
|
1573
|
+
throw await de_IncorrectMountTargetStateRes(parsedOutput, context);
|
|
1584
1574
|
case "InternalServerError":
|
|
1585
1575
|
case "com.amazonaws.efs#InternalServerError":
|
|
1586
|
-
throw await
|
|
1576
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1587
1577
|
case "MountTargetNotFound":
|
|
1588
1578
|
case "com.amazonaws.efs#MountTargetNotFound":
|
|
1589
|
-
throw await
|
|
1579
|
+
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
1590
1580
|
default:
|
|
1591
1581
|
const parsedBody = parsedOutput.body;
|
|
1592
1582
|
throwDefaultError({
|
|
@@ -1597,9 +1587,9 @@ const deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommandError = as
|
|
|
1597
1587
|
});
|
|
1598
1588
|
}
|
|
1599
1589
|
};
|
|
1600
|
-
export const
|
|
1590
|
+
export const de_DescribeReplicationConfigurationsCommand = async (output, context) => {
|
|
1601
1591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1602
|
-
return
|
|
1592
|
+
return de_DescribeReplicationConfigurationsCommandError(output, context);
|
|
1603
1593
|
}
|
|
1604
1594
|
const contents = map({
|
|
1605
1595
|
$metadata: deserializeMetadata(output),
|
|
@@ -1609,11 +1599,11 @@ export const deserializeAws_restJson1DescribeReplicationConfigurationsCommand =
|
|
|
1609
1599
|
contents.NextToken = __expectString(data.NextToken);
|
|
1610
1600
|
}
|
|
1611
1601
|
if (data.Replications != null) {
|
|
1612
|
-
contents.Replications =
|
|
1602
|
+
contents.Replications = de_ReplicationConfigurationDescriptions(data.Replications, context);
|
|
1613
1603
|
}
|
|
1614
1604
|
return contents;
|
|
1615
1605
|
};
|
|
1616
|
-
const
|
|
1606
|
+
const de_DescribeReplicationConfigurationsCommandError = async (output, context) => {
|
|
1617
1607
|
const parsedOutput = {
|
|
1618
1608
|
...output,
|
|
1619
1609
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1622,19 +1612,19 @@ const deserializeAws_restJson1DescribeReplicationConfigurationsCommandError = as
|
|
|
1622
1612
|
switch (errorCode) {
|
|
1623
1613
|
case "BadRequest":
|
|
1624
1614
|
case "com.amazonaws.efs#BadRequest":
|
|
1625
|
-
throw await
|
|
1615
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1626
1616
|
case "FileSystemNotFound":
|
|
1627
1617
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1628
|
-
throw await
|
|
1618
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1629
1619
|
case "InternalServerError":
|
|
1630
1620
|
case "com.amazonaws.efs#InternalServerError":
|
|
1631
|
-
throw await
|
|
1621
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1632
1622
|
case "ReplicationNotFound":
|
|
1633
1623
|
case "com.amazonaws.efs#ReplicationNotFound":
|
|
1634
|
-
throw await
|
|
1624
|
+
throw await de_ReplicationNotFoundRes(parsedOutput, context);
|
|
1635
1625
|
case "ValidationException":
|
|
1636
1626
|
case "com.amazonaws.efs#ValidationException":
|
|
1637
|
-
throw await
|
|
1627
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1638
1628
|
default:
|
|
1639
1629
|
const parsedBody = parsedOutput.body;
|
|
1640
1630
|
throwDefaultError({
|
|
@@ -1645,9 +1635,9 @@ const deserializeAws_restJson1DescribeReplicationConfigurationsCommandError = as
|
|
|
1645
1635
|
});
|
|
1646
1636
|
}
|
|
1647
1637
|
};
|
|
1648
|
-
export const
|
|
1638
|
+
export const de_DescribeTagsCommand = async (output, context) => {
|
|
1649
1639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1650
|
-
return
|
|
1640
|
+
return de_DescribeTagsCommandError(output, context);
|
|
1651
1641
|
}
|
|
1652
1642
|
const contents = map({
|
|
1653
1643
|
$metadata: deserializeMetadata(output),
|
|
@@ -1660,11 +1650,11 @@ export const deserializeAws_restJson1DescribeTagsCommand = async (output, contex
|
|
|
1660
1650
|
contents.NextMarker = __expectString(data.NextMarker);
|
|
1661
1651
|
}
|
|
1662
1652
|
if (data.Tags != null) {
|
|
1663
|
-
contents.Tags =
|
|
1653
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
1664
1654
|
}
|
|
1665
1655
|
return contents;
|
|
1666
1656
|
};
|
|
1667
|
-
const
|
|
1657
|
+
const de_DescribeTagsCommandError = async (output, context) => {
|
|
1668
1658
|
const parsedOutput = {
|
|
1669
1659
|
...output,
|
|
1670
1660
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1673,13 +1663,13 @@ const deserializeAws_restJson1DescribeTagsCommandError = async (output, context)
|
|
|
1673
1663
|
switch (errorCode) {
|
|
1674
1664
|
case "BadRequest":
|
|
1675
1665
|
case "com.amazonaws.efs#BadRequest":
|
|
1676
|
-
throw await
|
|
1666
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1677
1667
|
case "FileSystemNotFound":
|
|
1678
1668
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1679
|
-
throw await
|
|
1669
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1680
1670
|
case "InternalServerError":
|
|
1681
1671
|
case "com.amazonaws.efs#InternalServerError":
|
|
1682
|
-
throw await
|
|
1672
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1683
1673
|
default:
|
|
1684
1674
|
const parsedBody = parsedOutput.body;
|
|
1685
1675
|
throwDefaultError({
|
|
@@ -1690,9 +1680,9 @@ const deserializeAws_restJson1DescribeTagsCommandError = async (output, context)
|
|
|
1690
1680
|
});
|
|
1691
1681
|
}
|
|
1692
1682
|
};
|
|
1693
|
-
export const
|
|
1683
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1694
1684
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1695
|
-
return
|
|
1685
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1696
1686
|
}
|
|
1697
1687
|
const contents = map({
|
|
1698
1688
|
$metadata: deserializeMetadata(output),
|
|
@@ -1702,11 +1692,11 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (output,
|
|
|
1702
1692
|
contents.NextToken = __expectString(data.NextToken);
|
|
1703
1693
|
}
|
|
1704
1694
|
if (data.Tags != null) {
|
|
1705
|
-
contents.Tags =
|
|
1695
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
1706
1696
|
}
|
|
1707
1697
|
return contents;
|
|
1708
1698
|
};
|
|
1709
|
-
const
|
|
1699
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1710
1700
|
const parsedOutput = {
|
|
1711
1701
|
...output,
|
|
1712
1702
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1715,16 +1705,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1715
1705
|
switch (errorCode) {
|
|
1716
1706
|
case "AccessPointNotFound":
|
|
1717
1707
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1718
|
-
throw await
|
|
1708
|
+
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1719
1709
|
case "BadRequest":
|
|
1720
1710
|
case "com.amazonaws.efs#BadRequest":
|
|
1721
|
-
throw await
|
|
1711
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1722
1712
|
case "FileSystemNotFound":
|
|
1723
1713
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1724
|
-
throw await
|
|
1714
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1725
1715
|
case "InternalServerError":
|
|
1726
1716
|
case "com.amazonaws.efs#InternalServerError":
|
|
1727
|
-
throw await
|
|
1717
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1728
1718
|
default:
|
|
1729
1719
|
const parsedBody = parsedOutput.body;
|
|
1730
1720
|
throwDefaultError({
|
|
@@ -1735,9 +1725,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1735
1725
|
});
|
|
1736
1726
|
}
|
|
1737
1727
|
};
|
|
1738
|
-
export const
|
|
1728
|
+
export const de_ModifyMountTargetSecurityGroupsCommand = async (output, context) => {
|
|
1739
1729
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1740
|
-
return
|
|
1730
|
+
return de_ModifyMountTargetSecurityGroupsCommandError(output, context);
|
|
1741
1731
|
}
|
|
1742
1732
|
const contents = map({
|
|
1743
1733
|
$metadata: deserializeMetadata(output),
|
|
@@ -1745,7 +1735,7 @@ export const deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = as
|
|
|
1745
1735
|
await collectBody(output.body, context);
|
|
1746
1736
|
return contents;
|
|
1747
1737
|
};
|
|
1748
|
-
const
|
|
1738
|
+
const de_ModifyMountTargetSecurityGroupsCommandError = async (output, context) => {
|
|
1749
1739
|
const parsedOutput = {
|
|
1750
1740
|
...output,
|
|
1751
1741
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1754,22 +1744,22 @@ const deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommandError = asyn
|
|
|
1754
1744
|
switch (errorCode) {
|
|
1755
1745
|
case "BadRequest":
|
|
1756
1746
|
case "com.amazonaws.efs#BadRequest":
|
|
1757
|
-
throw await
|
|
1747
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1758
1748
|
case "IncorrectMountTargetState":
|
|
1759
1749
|
case "com.amazonaws.efs#IncorrectMountTargetState":
|
|
1760
|
-
throw await
|
|
1750
|
+
throw await de_IncorrectMountTargetStateRes(parsedOutput, context);
|
|
1761
1751
|
case "InternalServerError":
|
|
1762
1752
|
case "com.amazonaws.efs#InternalServerError":
|
|
1763
|
-
throw await
|
|
1753
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1764
1754
|
case "MountTargetNotFound":
|
|
1765
1755
|
case "com.amazonaws.efs#MountTargetNotFound":
|
|
1766
|
-
throw await
|
|
1756
|
+
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
1767
1757
|
case "SecurityGroupLimitExceeded":
|
|
1768
1758
|
case "com.amazonaws.efs#SecurityGroupLimitExceeded":
|
|
1769
|
-
throw await
|
|
1759
|
+
throw await de_SecurityGroupLimitExceededRes(parsedOutput, context);
|
|
1770
1760
|
case "SecurityGroupNotFound":
|
|
1771
1761
|
case "com.amazonaws.efs#SecurityGroupNotFound":
|
|
1772
|
-
throw await
|
|
1762
|
+
throw await de_SecurityGroupNotFoundRes(parsedOutput, context);
|
|
1773
1763
|
default:
|
|
1774
1764
|
const parsedBody = parsedOutput.body;
|
|
1775
1765
|
throwDefaultError({
|
|
@@ -1780,20 +1770,20 @@ const deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommandError = asyn
|
|
|
1780
1770
|
});
|
|
1781
1771
|
}
|
|
1782
1772
|
};
|
|
1783
|
-
export const
|
|
1773
|
+
export const de_PutAccountPreferencesCommand = async (output, context) => {
|
|
1784
1774
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1785
|
-
return
|
|
1775
|
+
return de_PutAccountPreferencesCommandError(output, context);
|
|
1786
1776
|
}
|
|
1787
1777
|
const contents = map({
|
|
1788
1778
|
$metadata: deserializeMetadata(output),
|
|
1789
1779
|
});
|
|
1790
1780
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1791
1781
|
if (data.ResourceIdPreference != null) {
|
|
1792
|
-
contents.ResourceIdPreference =
|
|
1782
|
+
contents.ResourceIdPreference = de_ResourceIdPreference(data.ResourceIdPreference, context);
|
|
1793
1783
|
}
|
|
1794
1784
|
return contents;
|
|
1795
1785
|
};
|
|
1796
|
-
const
|
|
1786
|
+
const de_PutAccountPreferencesCommandError = async (output, context) => {
|
|
1797
1787
|
const parsedOutput = {
|
|
1798
1788
|
...output,
|
|
1799
1789
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1802,10 +1792,10 @@ const deserializeAws_restJson1PutAccountPreferencesCommandError = async (output,
|
|
|
1802
1792
|
switch (errorCode) {
|
|
1803
1793
|
case "BadRequest":
|
|
1804
1794
|
case "com.amazonaws.efs#BadRequest":
|
|
1805
|
-
throw await
|
|
1795
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1806
1796
|
case "InternalServerError":
|
|
1807
1797
|
case "com.amazonaws.efs#InternalServerError":
|
|
1808
|
-
throw await
|
|
1798
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1809
1799
|
default:
|
|
1810
1800
|
const parsedBody = parsedOutput.body;
|
|
1811
1801
|
throwDefaultError({
|
|
@@ -1816,20 +1806,20 @@ const deserializeAws_restJson1PutAccountPreferencesCommandError = async (output,
|
|
|
1816
1806
|
});
|
|
1817
1807
|
}
|
|
1818
1808
|
};
|
|
1819
|
-
export const
|
|
1809
|
+
export const de_PutBackupPolicyCommand = async (output, context) => {
|
|
1820
1810
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1821
|
-
return
|
|
1811
|
+
return de_PutBackupPolicyCommandError(output, context);
|
|
1822
1812
|
}
|
|
1823
1813
|
const contents = map({
|
|
1824
1814
|
$metadata: deserializeMetadata(output),
|
|
1825
1815
|
});
|
|
1826
1816
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1827
1817
|
if (data.BackupPolicy != null) {
|
|
1828
|
-
contents.BackupPolicy =
|
|
1818
|
+
contents.BackupPolicy = de_BackupPolicy(data.BackupPolicy, context);
|
|
1829
1819
|
}
|
|
1830
1820
|
return contents;
|
|
1831
1821
|
};
|
|
1832
|
-
const
|
|
1822
|
+
const de_PutBackupPolicyCommandError = async (output, context) => {
|
|
1833
1823
|
const parsedOutput = {
|
|
1834
1824
|
...output,
|
|
1835
1825
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1838,19 +1828,19 @@ const deserializeAws_restJson1PutBackupPolicyCommandError = async (output, conte
|
|
|
1838
1828
|
switch (errorCode) {
|
|
1839
1829
|
case "BadRequest":
|
|
1840
1830
|
case "com.amazonaws.efs#BadRequest":
|
|
1841
|
-
throw await
|
|
1831
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1842
1832
|
case "FileSystemNotFound":
|
|
1843
1833
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1844
|
-
throw await
|
|
1834
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1845
1835
|
case "IncorrectFileSystemLifeCycleState":
|
|
1846
1836
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1847
|
-
throw await
|
|
1837
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1848
1838
|
case "InternalServerError":
|
|
1849
1839
|
case "com.amazonaws.efs#InternalServerError":
|
|
1850
|
-
throw await
|
|
1840
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1851
1841
|
case "ValidationException":
|
|
1852
1842
|
case "com.amazonaws.efs#ValidationException":
|
|
1853
|
-
throw await
|
|
1843
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1854
1844
|
default:
|
|
1855
1845
|
const parsedBody = parsedOutput.body;
|
|
1856
1846
|
throwDefaultError({
|
|
@@ -1861,9 +1851,9 @@ const deserializeAws_restJson1PutBackupPolicyCommandError = async (output, conte
|
|
|
1861
1851
|
});
|
|
1862
1852
|
}
|
|
1863
1853
|
};
|
|
1864
|
-
export const
|
|
1854
|
+
export const de_PutFileSystemPolicyCommand = async (output, context) => {
|
|
1865
1855
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1866
|
-
return
|
|
1856
|
+
return de_PutFileSystemPolicyCommandError(output, context);
|
|
1867
1857
|
}
|
|
1868
1858
|
const contents = map({
|
|
1869
1859
|
$metadata: deserializeMetadata(output),
|
|
@@ -1877,7 +1867,7 @@ export const deserializeAws_restJson1PutFileSystemPolicyCommand = async (output,
|
|
|
1877
1867
|
}
|
|
1878
1868
|
return contents;
|
|
1879
1869
|
};
|
|
1880
|
-
const
|
|
1870
|
+
const de_PutFileSystemPolicyCommandError = async (output, context) => {
|
|
1881
1871
|
const parsedOutput = {
|
|
1882
1872
|
...output,
|
|
1883
1873
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1886,19 +1876,19 @@ const deserializeAws_restJson1PutFileSystemPolicyCommandError = async (output, c
|
|
|
1886
1876
|
switch (errorCode) {
|
|
1887
1877
|
case "BadRequest":
|
|
1888
1878
|
case "com.amazonaws.efs#BadRequest":
|
|
1889
|
-
throw await
|
|
1879
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1890
1880
|
case "FileSystemNotFound":
|
|
1891
1881
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1892
|
-
throw await
|
|
1882
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1893
1883
|
case "IncorrectFileSystemLifeCycleState":
|
|
1894
1884
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1895
|
-
throw await
|
|
1885
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1896
1886
|
case "InternalServerError":
|
|
1897
1887
|
case "com.amazonaws.efs#InternalServerError":
|
|
1898
|
-
throw await
|
|
1888
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1899
1889
|
case "InvalidPolicyException":
|
|
1900
1890
|
case "com.amazonaws.efs#InvalidPolicyException":
|
|
1901
|
-
throw await
|
|
1891
|
+
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
1902
1892
|
default:
|
|
1903
1893
|
const parsedBody = parsedOutput.body;
|
|
1904
1894
|
throwDefaultError({
|
|
@@ -1909,20 +1899,20 @@ const deserializeAws_restJson1PutFileSystemPolicyCommandError = async (output, c
|
|
|
1909
1899
|
});
|
|
1910
1900
|
}
|
|
1911
1901
|
};
|
|
1912
|
-
export const
|
|
1902
|
+
export const de_PutLifecycleConfigurationCommand = async (output, context) => {
|
|
1913
1903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1914
|
-
return
|
|
1904
|
+
return de_PutLifecycleConfigurationCommandError(output, context);
|
|
1915
1905
|
}
|
|
1916
1906
|
const contents = map({
|
|
1917
1907
|
$metadata: deserializeMetadata(output),
|
|
1918
1908
|
});
|
|
1919
1909
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1920
1910
|
if (data.LifecyclePolicies != null) {
|
|
1921
|
-
contents.LifecyclePolicies =
|
|
1911
|
+
contents.LifecyclePolicies = de_LifecyclePolicies(data.LifecyclePolicies, context);
|
|
1922
1912
|
}
|
|
1923
1913
|
return contents;
|
|
1924
1914
|
};
|
|
1925
|
-
const
|
|
1915
|
+
const de_PutLifecycleConfigurationCommandError = async (output, context) => {
|
|
1926
1916
|
const parsedOutput = {
|
|
1927
1917
|
...output,
|
|
1928
1918
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1931,16 +1921,16 @@ const deserializeAws_restJson1PutLifecycleConfigurationCommandError = async (out
|
|
|
1931
1921
|
switch (errorCode) {
|
|
1932
1922
|
case "BadRequest":
|
|
1933
1923
|
case "com.amazonaws.efs#BadRequest":
|
|
1934
|
-
throw await
|
|
1924
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1935
1925
|
case "FileSystemNotFound":
|
|
1936
1926
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1937
|
-
throw await
|
|
1927
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1938
1928
|
case "IncorrectFileSystemLifeCycleState":
|
|
1939
1929
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1940
|
-
throw await
|
|
1930
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1941
1931
|
case "InternalServerError":
|
|
1942
1932
|
case "com.amazonaws.efs#InternalServerError":
|
|
1943
|
-
throw await
|
|
1933
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1944
1934
|
default:
|
|
1945
1935
|
const parsedBody = parsedOutput.body;
|
|
1946
1936
|
throwDefaultError({
|
|
@@ -1951,9 +1941,9 @@ const deserializeAws_restJson1PutLifecycleConfigurationCommandError = async (out
|
|
|
1951
1941
|
});
|
|
1952
1942
|
}
|
|
1953
1943
|
};
|
|
1954
|
-
export const
|
|
1944
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1955
1945
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1956
|
-
return
|
|
1946
|
+
return de_TagResourceCommandError(output, context);
|
|
1957
1947
|
}
|
|
1958
1948
|
const contents = map({
|
|
1959
1949
|
$metadata: deserializeMetadata(output),
|
|
@@ -1961,7 +1951,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
1961
1951
|
await collectBody(output.body, context);
|
|
1962
1952
|
return contents;
|
|
1963
1953
|
};
|
|
1964
|
-
const
|
|
1954
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1965
1955
|
const parsedOutput = {
|
|
1966
1956
|
...output,
|
|
1967
1957
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1970,16 +1960,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1970
1960
|
switch (errorCode) {
|
|
1971
1961
|
case "AccessPointNotFound":
|
|
1972
1962
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1973
|
-
throw await
|
|
1963
|
+
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1974
1964
|
case "BadRequest":
|
|
1975
1965
|
case "com.amazonaws.efs#BadRequest":
|
|
1976
|
-
throw await
|
|
1966
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1977
1967
|
case "FileSystemNotFound":
|
|
1978
1968
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1979
|
-
throw await
|
|
1969
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1980
1970
|
case "InternalServerError":
|
|
1981
1971
|
case "com.amazonaws.efs#InternalServerError":
|
|
1982
|
-
throw await
|
|
1972
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1983
1973
|
default:
|
|
1984
1974
|
const parsedBody = parsedOutput.body;
|
|
1985
1975
|
throwDefaultError({
|
|
@@ -1990,9 +1980,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1990
1980
|
});
|
|
1991
1981
|
}
|
|
1992
1982
|
};
|
|
1993
|
-
export const
|
|
1983
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1994
1984
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1995
|
-
return
|
|
1985
|
+
return de_UntagResourceCommandError(output, context);
|
|
1996
1986
|
}
|
|
1997
1987
|
const contents = map({
|
|
1998
1988
|
$metadata: deserializeMetadata(output),
|
|
@@ -2000,7 +1990,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
2000
1990
|
await collectBody(output.body, context);
|
|
2001
1991
|
return contents;
|
|
2002
1992
|
};
|
|
2003
|
-
const
|
|
1993
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2004
1994
|
const parsedOutput = {
|
|
2005
1995
|
...output,
|
|
2006
1996
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2009,16 +1999,16 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2009
1999
|
switch (errorCode) {
|
|
2010
2000
|
case "AccessPointNotFound":
|
|
2011
2001
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
2012
|
-
throw await
|
|
2002
|
+
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
2013
2003
|
case "BadRequest":
|
|
2014
2004
|
case "com.amazonaws.efs#BadRequest":
|
|
2015
|
-
throw await
|
|
2005
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
2016
2006
|
case "FileSystemNotFound":
|
|
2017
2007
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2018
|
-
throw await
|
|
2008
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2019
2009
|
case "InternalServerError":
|
|
2020
2010
|
case "com.amazonaws.efs#InternalServerError":
|
|
2021
|
-
throw await
|
|
2011
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2022
2012
|
default:
|
|
2023
2013
|
const parsedBody = parsedOutput.body;
|
|
2024
2014
|
throwDefaultError({
|
|
@@ -2029,9 +2019,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2029
2019
|
});
|
|
2030
2020
|
}
|
|
2031
2021
|
};
|
|
2032
|
-
export const
|
|
2022
|
+
export const de_UpdateFileSystemCommand = async (output, context) => {
|
|
2033
2023
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2034
|
-
return
|
|
2024
|
+
return de_UpdateFileSystemCommandError(output, context);
|
|
2035
2025
|
}
|
|
2036
2026
|
const contents = map({
|
|
2037
2027
|
$metadata: deserializeMetadata(output),
|
|
@@ -2080,17 +2070,17 @@ export const deserializeAws_restJson1UpdateFileSystemCommand = async (output, co
|
|
|
2080
2070
|
contents.ProvisionedThroughputInMibps = __limitedParseDouble(data.ProvisionedThroughputInMibps);
|
|
2081
2071
|
}
|
|
2082
2072
|
if (data.SizeInBytes != null) {
|
|
2083
|
-
contents.SizeInBytes =
|
|
2073
|
+
contents.SizeInBytes = de_FileSystemSize(data.SizeInBytes, context);
|
|
2084
2074
|
}
|
|
2085
2075
|
if (data.Tags != null) {
|
|
2086
|
-
contents.Tags =
|
|
2076
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
2087
2077
|
}
|
|
2088
2078
|
if (data.ThroughputMode != null) {
|
|
2089
2079
|
contents.ThroughputMode = __expectString(data.ThroughputMode);
|
|
2090
2080
|
}
|
|
2091
2081
|
return contents;
|
|
2092
2082
|
};
|
|
2093
|
-
const
|
|
2083
|
+
const de_UpdateFileSystemCommandError = async (output, context) => {
|
|
2094
2084
|
const parsedOutput = {
|
|
2095
2085
|
...output,
|
|
2096
2086
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2099,25 +2089,25 @@ const deserializeAws_restJson1UpdateFileSystemCommandError = async (output, cont
|
|
|
2099
2089
|
switch (errorCode) {
|
|
2100
2090
|
case "BadRequest":
|
|
2101
2091
|
case "com.amazonaws.efs#BadRequest":
|
|
2102
|
-
throw await
|
|
2092
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
2103
2093
|
case "FileSystemNotFound":
|
|
2104
2094
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2105
|
-
throw await
|
|
2095
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2106
2096
|
case "IncorrectFileSystemLifeCycleState":
|
|
2107
2097
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
2108
|
-
throw await
|
|
2098
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
2109
2099
|
case "InsufficientThroughputCapacity":
|
|
2110
2100
|
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
2111
|
-
throw await
|
|
2101
|
+
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
2112
2102
|
case "InternalServerError":
|
|
2113
2103
|
case "com.amazonaws.efs#InternalServerError":
|
|
2114
|
-
throw await
|
|
2104
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2115
2105
|
case "ThroughputLimitExceeded":
|
|
2116
2106
|
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
2117
|
-
throw await
|
|
2107
|
+
throw await de_ThroughputLimitExceededRes(parsedOutput, context);
|
|
2118
2108
|
case "TooManyRequests":
|
|
2119
2109
|
case "com.amazonaws.efs#TooManyRequests":
|
|
2120
|
-
throw await
|
|
2110
|
+
throw await de_TooManyRequestsRes(parsedOutput, context);
|
|
2121
2111
|
default:
|
|
2122
2112
|
const parsedBody = parsedOutput.body;
|
|
2123
2113
|
throwDefaultError({
|
|
@@ -2129,7 +2119,7 @@ const deserializeAws_restJson1UpdateFileSystemCommandError = async (output, cont
|
|
|
2129
2119
|
}
|
|
2130
2120
|
};
|
|
2131
2121
|
const map = __map;
|
|
2132
|
-
const
|
|
2122
|
+
const de_AccessPointAlreadyExistsRes = async (parsedOutput, context) => {
|
|
2133
2123
|
const contents = map({});
|
|
2134
2124
|
const data = parsedOutput.body;
|
|
2135
2125
|
if (data.AccessPointId != null) {
|
|
@@ -2147,7 +2137,7 @@ const deserializeAws_restJson1AccessPointAlreadyExistsResponse = async (parsedOu
|
|
|
2147
2137
|
});
|
|
2148
2138
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2149
2139
|
};
|
|
2150
|
-
const
|
|
2140
|
+
const de_AccessPointLimitExceededRes = async (parsedOutput, context) => {
|
|
2151
2141
|
const contents = map({});
|
|
2152
2142
|
const data = parsedOutput.body;
|
|
2153
2143
|
if (data.ErrorCode != null) {
|
|
@@ -2162,7 +2152,7 @@ const deserializeAws_restJson1AccessPointLimitExceededResponse = async (parsedOu
|
|
|
2162
2152
|
});
|
|
2163
2153
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2164
2154
|
};
|
|
2165
|
-
const
|
|
2155
|
+
const de_AccessPointNotFoundRes = async (parsedOutput, context) => {
|
|
2166
2156
|
const contents = map({});
|
|
2167
2157
|
const data = parsedOutput.body;
|
|
2168
2158
|
if (data.ErrorCode != null) {
|
|
@@ -2177,7 +2167,7 @@ const deserializeAws_restJson1AccessPointNotFoundResponse = async (parsedOutput,
|
|
|
2177
2167
|
});
|
|
2178
2168
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2179
2169
|
};
|
|
2180
|
-
const
|
|
2170
|
+
const de_AvailabilityZonesMismatchRes = async (parsedOutput, context) => {
|
|
2181
2171
|
const contents = map({});
|
|
2182
2172
|
const data = parsedOutput.body;
|
|
2183
2173
|
if (data.ErrorCode != null) {
|
|
@@ -2192,7 +2182,7 @@ const deserializeAws_restJson1AvailabilityZonesMismatchResponse = async (parsedO
|
|
|
2192
2182
|
});
|
|
2193
2183
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2194
2184
|
};
|
|
2195
|
-
const
|
|
2185
|
+
const de_BadRequestRes = async (parsedOutput, context) => {
|
|
2196
2186
|
const contents = map({});
|
|
2197
2187
|
const data = parsedOutput.body;
|
|
2198
2188
|
if (data.ErrorCode != null) {
|
|
@@ -2207,7 +2197,7 @@ const deserializeAws_restJson1BadRequestResponse = async (parsedOutput, context)
|
|
|
2207
2197
|
});
|
|
2208
2198
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2209
2199
|
};
|
|
2210
|
-
const
|
|
2200
|
+
const de_DependencyTimeoutRes = async (parsedOutput, context) => {
|
|
2211
2201
|
const contents = map({});
|
|
2212
2202
|
const data = parsedOutput.body;
|
|
2213
2203
|
if (data.ErrorCode != null) {
|
|
@@ -2222,7 +2212,7 @@ const deserializeAws_restJson1DependencyTimeoutResponse = async (parsedOutput, c
|
|
|
2222
2212
|
});
|
|
2223
2213
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2224
2214
|
};
|
|
2225
|
-
const
|
|
2215
|
+
const de_FileSystemAlreadyExistsRes = async (parsedOutput, context) => {
|
|
2226
2216
|
const contents = map({});
|
|
2227
2217
|
const data = parsedOutput.body;
|
|
2228
2218
|
if (data.ErrorCode != null) {
|
|
@@ -2240,7 +2230,7 @@ const deserializeAws_restJson1FileSystemAlreadyExistsResponse = async (parsedOut
|
|
|
2240
2230
|
});
|
|
2241
2231
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2242
2232
|
};
|
|
2243
|
-
const
|
|
2233
|
+
const de_FileSystemInUseRes = async (parsedOutput, context) => {
|
|
2244
2234
|
const contents = map({});
|
|
2245
2235
|
const data = parsedOutput.body;
|
|
2246
2236
|
if (data.ErrorCode != null) {
|
|
@@ -2255,7 +2245,7 @@ const deserializeAws_restJson1FileSystemInUseResponse = async (parsedOutput, con
|
|
|
2255
2245
|
});
|
|
2256
2246
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2257
2247
|
};
|
|
2258
|
-
const
|
|
2248
|
+
const de_FileSystemLimitExceededRes = async (parsedOutput, context) => {
|
|
2259
2249
|
const contents = map({});
|
|
2260
2250
|
const data = parsedOutput.body;
|
|
2261
2251
|
if (data.ErrorCode != null) {
|
|
@@ -2270,7 +2260,7 @@ const deserializeAws_restJson1FileSystemLimitExceededResponse = async (parsedOut
|
|
|
2270
2260
|
});
|
|
2271
2261
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2272
2262
|
};
|
|
2273
|
-
const
|
|
2263
|
+
const de_FileSystemNotFoundRes = async (parsedOutput, context) => {
|
|
2274
2264
|
const contents = map({});
|
|
2275
2265
|
const data = parsedOutput.body;
|
|
2276
2266
|
if (data.ErrorCode != null) {
|
|
@@ -2285,7 +2275,7 @@ const deserializeAws_restJson1FileSystemNotFoundResponse = async (parsedOutput,
|
|
|
2285
2275
|
});
|
|
2286
2276
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2287
2277
|
};
|
|
2288
|
-
const
|
|
2278
|
+
const de_IncorrectFileSystemLifeCycleStateRes = async (parsedOutput, context) => {
|
|
2289
2279
|
const contents = map({});
|
|
2290
2280
|
const data = parsedOutput.body;
|
|
2291
2281
|
if (data.ErrorCode != null) {
|
|
@@ -2300,7 +2290,7 @@ const deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse = async
|
|
|
2300
2290
|
});
|
|
2301
2291
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2302
2292
|
};
|
|
2303
|
-
const
|
|
2293
|
+
const de_IncorrectMountTargetStateRes = async (parsedOutput, context) => {
|
|
2304
2294
|
const contents = map({});
|
|
2305
2295
|
const data = parsedOutput.body;
|
|
2306
2296
|
if (data.ErrorCode != null) {
|
|
@@ -2315,7 +2305,7 @@ const deserializeAws_restJson1IncorrectMountTargetStateResponse = async (parsedO
|
|
|
2315
2305
|
});
|
|
2316
2306
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2317
2307
|
};
|
|
2318
|
-
const
|
|
2308
|
+
const de_InsufficientThroughputCapacityRes = async (parsedOutput, context) => {
|
|
2319
2309
|
const contents = map({});
|
|
2320
2310
|
const data = parsedOutput.body;
|
|
2321
2311
|
if (data.ErrorCode != null) {
|
|
@@ -2330,7 +2320,7 @@ const deserializeAws_restJson1InsufficientThroughputCapacityResponse = async (pa
|
|
|
2330
2320
|
});
|
|
2331
2321
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2332
2322
|
};
|
|
2333
|
-
const
|
|
2323
|
+
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
2334
2324
|
const contents = map({});
|
|
2335
2325
|
const data = parsedOutput.body;
|
|
2336
2326
|
if (data.ErrorCode != null) {
|
|
@@ -2345,7 +2335,7 @@ const deserializeAws_restJson1InternalServerErrorResponse = async (parsedOutput,
|
|
|
2345
2335
|
});
|
|
2346
2336
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2347
2337
|
};
|
|
2348
|
-
const
|
|
2338
|
+
const de_InvalidPolicyExceptionRes = async (parsedOutput, context) => {
|
|
2349
2339
|
const contents = map({});
|
|
2350
2340
|
const data = parsedOutput.body;
|
|
2351
2341
|
if (data.ErrorCode != null) {
|
|
@@ -2360,7 +2350,7 @@ const deserializeAws_restJson1InvalidPolicyExceptionResponse = async (parsedOutp
|
|
|
2360
2350
|
});
|
|
2361
2351
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2362
2352
|
};
|
|
2363
|
-
const
|
|
2353
|
+
const de_IpAddressInUseRes = async (parsedOutput, context) => {
|
|
2364
2354
|
const contents = map({});
|
|
2365
2355
|
const data = parsedOutput.body;
|
|
2366
2356
|
if (data.ErrorCode != null) {
|
|
@@ -2375,7 +2365,7 @@ const deserializeAws_restJson1IpAddressInUseResponse = async (parsedOutput, cont
|
|
|
2375
2365
|
});
|
|
2376
2366
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2377
2367
|
};
|
|
2378
|
-
const
|
|
2368
|
+
const de_MountTargetConflictRes = async (parsedOutput, context) => {
|
|
2379
2369
|
const contents = map({});
|
|
2380
2370
|
const data = parsedOutput.body;
|
|
2381
2371
|
if (data.ErrorCode != null) {
|
|
@@ -2390,7 +2380,7 @@ const deserializeAws_restJson1MountTargetConflictResponse = async (parsedOutput,
|
|
|
2390
2380
|
});
|
|
2391
2381
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2392
2382
|
};
|
|
2393
|
-
const
|
|
2383
|
+
const de_MountTargetNotFoundRes = async (parsedOutput, context) => {
|
|
2394
2384
|
const contents = map({});
|
|
2395
2385
|
const data = parsedOutput.body;
|
|
2396
2386
|
if (data.ErrorCode != null) {
|
|
@@ -2405,7 +2395,7 @@ const deserializeAws_restJson1MountTargetNotFoundResponse = async (parsedOutput,
|
|
|
2405
2395
|
});
|
|
2406
2396
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2407
2397
|
};
|
|
2408
|
-
const
|
|
2398
|
+
const de_NetworkInterfaceLimitExceededRes = async (parsedOutput, context) => {
|
|
2409
2399
|
const contents = map({});
|
|
2410
2400
|
const data = parsedOutput.body;
|
|
2411
2401
|
if (data.ErrorCode != null) {
|
|
@@ -2420,7 +2410,7 @@ const deserializeAws_restJson1NetworkInterfaceLimitExceededResponse = async (par
|
|
|
2420
2410
|
});
|
|
2421
2411
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2422
2412
|
};
|
|
2423
|
-
const
|
|
2413
|
+
const de_NoFreeAddressesInSubnetRes = async (parsedOutput, context) => {
|
|
2424
2414
|
const contents = map({});
|
|
2425
2415
|
const data = parsedOutput.body;
|
|
2426
2416
|
if (data.ErrorCode != null) {
|
|
@@ -2435,7 +2425,7 @@ const deserializeAws_restJson1NoFreeAddressesInSubnetResponse = async (parsedOut
|
|
|
2435
2425
|
});
|
|
2436
2426
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2437
2427
|
};
|
|
2438
|
-
const
|
|
2428
|
+
const de_PolicyNotFoundRes = async (parsedOutput, context) => {
|
|
2439
2429
|
const contents = map({});
|
|
2440
2430
|
const data = parsedOutput.body;
|
|
2441
2431
|
if (data.ErrorCode != null) {
|
|
@@ -2450,7 +2440,7 @@ const deserializeAws_restJson1PolicyNotFoundResponse = async (parsedOutput, cont
|
|
|
2450
2440
|
});
|
|
2451
2441
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2452
2442
|
};
|
|
2453
|
-
const
|
|
2443
|
+
const de_ReplicationNotFoundRes = async (parsedOutput, context) => {
|
|
2454
2444
|
const contents = map({});
|
|
2455
2445
|
const data = parsedOutput.body;
|
|
2456
2446
|
if (data.ErrorCode != null) {
|
|
@@ -2465,7 +2455,7 @@ const deserializeAws_restJson1ReplicationNotFoundResponse = async (parsedOutput,
|
|
|
2465
2455
|
});
|
|
2466
2456
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2467
2457
|
};
|
|
2468
|
-
const
|
|
2458
|
+
const de_SecurityGroupLimitExceededRes = async (parsedOutput, context) => {
|
|
2469
2459
|
const contents = map({});
|
|
2470
2460
|
const data = parsedOutput.body;
|
|
2471
2461
|
if (data.ErrorCode != null) {
|
|
@@ -2480,7 +2470,7 @@ const deserializeAws_restJson1SecurityGroupLimitExceededResponse = async (parsed
|
|
|
2480
2470
|
});
|
|
2481
2471
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2482
2472
|
};
|
|
2483
|
-
const
|
|
2473
|
+
const de_SecurityGroupNotFoundRes = async (parsedOutput, context) => {
|
|
2484
2474
|
const contents = map({});
|
|
2485
2475
|
const data = parsedOutput.body;
|
|
2486
2476
|
if (data.ErrorCode != null) {
|
|
@@ -2495,7 +2485,7 @@ const deserializeAws_restJson1SecurityGroupNotFoundResponse = async (parsedOutpu
|
|
|
2495
2485
|
});
|
|
2496
2486
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2497
2487
|
};
|
|
2498
|
-
const
|
|
2488
|
+
const de_SubnetNotFoundRes = async (parsedOutput, context) => {
|
|
2499
2489
|
const contents = map({});
|
|
2500
2490
|
const data = parsedOutput.body;
|
|
2501
2491
|
if (data.ErrorCode != null) {
|
|
@@ -2510,7 +2500,7 @@ const deserializeAws_restJson1SubnetNotFoundResponse = async (parsedOutput, cont
|
|
|
2510
2500
|
});
|
|
2511
2501
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2512
2502
|
};
|
|
2513
|
-
const
|
|
2503
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2514
2504
|
const contents = map({});
|
|
2515
2505
|
const data = parsedOutput.body;
|
|
2516
2506
|
if (data.ErrorCode != null) {
|
|
@@ -2525,7 +2515,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2525
2515
|
});
|
|
2526
2516
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2527
2517
|
};
|
|
2528
|
-
const
|
|
2518
|
+
const de_ThroughputLimitExceededRes = async (parsedOutput, context) => {
|
|
2529
2519
|
const contents = map({});
|
|
2530
2520
|
const data = parsedOutput.body;
|
|
2531
2521
|
if (data.ErrorCode != null) {
|
|
@@ -2540,7 +2530,7 @@ const deserializeAws_restJson1ThroughputLimitExceededResponse = async (parsedOut
|
|
|
2540
2530
|
});
|
|
2541
2531
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2542
2532
|
};
|
|
2543
|
-
const
|
|
2533
|
+
const de_TooManyRequestsRes = async (parsedOutput, context) => {
|
|
2544
2534
|
const contents = map({});
|
|
2545
2535
|
const data = parsedOutput.body;
|
|
2546
2536
|
if (data.ErrorCode != null) {
|
|
@@ -2555,7 +2545,7 @@ const deserializeAws_restJson1TooManyRequestsResponse = async (parsedOutput, con
|
|
|
2555
2545
|
});
|
|
2556
2546
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2557
2547
|
};
|
|
2558
|
-
const
|
|
2548
|
+
const de_UnsupportedAvailabilityZoneRes = async (parsedOutput, context) => {
|
|
2559
2549
|
const contents = map({});
|
|
2560
2550
|
const data = parsedOutput.body;
|
|
2561
2551
|
if (data.ErrorCode != null) {
|
|
@@ -2570,7 +2560,7 @@ const deserializeAws_restJson1UnsupportedAvailabilityZoneResponse = async (parse
|
|
|
2570
2560
|
});
|
|
2571
2561
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2572
2562
|
};
|
|
2573
|
-
const
|
|
2563
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2574
2564
|
const contents = map({});
|
|
2575
2565
|
const data = parsedOutput.body;
|
|
2576
2566
|
if (data.ErrorCode != null) {
|
|
@@ -2585,40 +2575,40 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2585
2575
|
});
|
|
2586
2576
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2587
2577
|
};
|
|
2588
|
-
const
|
|
2578
|
+
const se_BackupPolicy = (input, context) => {
|
|
2589
2579
|
return {
|
|
2590
2580
|
...(input.Status != null && { Status: input.Status }),
|
|
2591
2581
|
};
|
|
2592
2582
|
};
|
|
2593
|
-
const
|
|
2583
|
+
const se_CreationInfo = (input, context) => {
|
|
2594
2584
|
return {
|
|
2595
2585
|
...(input.OwnerGid != null && { OwnerGid: input.OwnerGid }),
|
|
2596
2586
|
...(input.OwnerUid != null && { OwnerUid: input.OwnerUid }),
|
|
2597
2587
|
...(input.Permissions != null && { Permissions: input.Permissions }),
|
|
2598
2588
|
};
|
|
2599
2589
|
};
|
|
2600
|
-
const
|
|
2590
|
+
const se_DestinationsToCreate = (input, context) => {
|
|
2601
2591
|
return input
|
|
2602
2592
|
.filter((e) => e != null)
|
|
2603
2593
|
.map((entry) => {
|
|
2604
|
-
return
|
|
2594
|
+
return se_DestinationToCreate(entry, context);
|
|
2605
2595
|
});
|
|
2606
2596
|
};
|
|
2607
|
-
const
|
|
2597
|
+
const se_DestinationToCreate = (input, context) => {
|
|
2608
2598
|
return {
|
|
2609
2599
|
...(input.AvailabilityZoneName != null && { AvailabilityZoneName: input.AvailabilityZoneName }),
|
|
2610
2600
|
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
2611
2601
|
...(input.Region != null && { Region: input.Region }),
|
|
2612
2602
|
};
|
|
2613
2603
|
};
|
|
2614
|
-
const
|
|
2604
|
+
const se_LifecyclePolicies = (input, context) => {
|
|
2615
2605
|
return input
|
|
2616
2606
|
.filter((e) => e != null)
|
|
2617
2607
|
.map((entry) => {
|
|
2618
|
-
return
|
|
2608
|
+
return se_LifecyclePolicy(entry, context);
|
|
2619
2609
|
});
|
|
2620
2610
|
};
|
|
2621
|
-
const
|
|
2611
|
+
const se_LifecyclePolicy = (input, context) => {
|
|
2622
2612
|
return {
|
|
2623
2613
|
...(input.TransitionToIA != null && { TransitionToIA: input.TransitionToIA }),
|
|
2624
2614
|
...(input.TransitionToPrimaryStorageClass != null && {
|
|
@@ -2626,58 +2616,54 @@ const serializeAws_restJson1LifecyclePolicy = (input, context) => {
|
|
|
2626
2616
|
}),
|
|
2627
2617
|
};
|
|
2628
2618
|
};
|
|
2629
|
-
const
|
|
2619
|
+
const se_PosixUser = (input, context) => {
|
|
2630
2620
|
return {
|
|
2631
2621
|
...(input.Gid != null && { Gid: input.Gid }),
|
|
2632
|
-
...(input.SecondaryGids != null && {
|
|
2633
|
-
SecondaryGids: serializeAws_restJson1SecondaryGids(input.SecondaryGids, context),
|
|
2634
|
-
}),
|
|
2622
|
+
...(input.SecondaryGids != null && { SecondaryGids: se_SecondaryGids(input.SecondaryGids, context) }),
|
|
2635
2623
|
...(input.Uid != null && { Uid: input.Uid }),
|
|
2636
2624
|
};
|
|
2637
2625
|
};
|
|
2638
|
-
const
|
|
2626
|
+
const se_RootDirectory = (input, context) => {
|
|
2639
2627
|
return {
|
|
2640
|
-
...(input.CreationInfo != null && {
|
|
2641
|
-
CreationInfo: serializeAws_restJson1CreationInfo(input.CreationInfo, context),
|
|
2642
|
-
}),
|
|
2628
|
+
...(input.CreationInfo != null && { CreationInfo: se_CreationInfo(input.CreationInfo, context) }),
|
|
2643
2629
|
...(input.Path != null && { Path: input.Path }),
|
|
2644
2630
|
};
|
|
2645
2631
|
};
|
|
2646
|
-
const
|
|
2632
|
+
const se_SecondaryGids = (input, context) => {
|
|
2647
2633
|
return input
|
|
2648
2634
|
.filter((e) => e != null)
|
|
2649
2635
|
.map((entry) => {
|
|
2650
2636
|
return entry;
|
|
2651
2637
|
});
|
|
2652
2638
|
};
|
|
2653
|
-
const
|
|
2639
|
+
const se_SecurityGroups = (input, context) => {
|
|
2654
2640
|
return input
|
|
2655
2641
|
.filter((e) => e != null)
|
|
2656
2642
|
.map((entry) => {
|
|
2657
2643
|
return entry;
|
|
2658
2644
|
});
|
|
2659
2645
|
};
|
|
2660
|
-
const
|
|
2646
|
+
const se_Tag = (input, context) => {
|
|
2661
2647
|
return {
|
|
2662
2648
|
...(input.Key != null && { Key: input.Key }),
|
|
2663
2649
|
...(input.Value != null && { Value: input.Value }),
|
|
2664
2650
|
};
|
|
2665
2651
|
};
|
|
2666
|
-
const
|
|
2652
|
+
const se_TagKeys = (input, context) => {
|
|
2667
2653
|
return input
|
|
2668
2654
|
.filter((e) => e != null)
|
|
2669
2655
|
.map((entry) => {
|
|
2670
2656
|
return entry;
|
|
2671
2657
|
});
|
|
2672
2658
|
};
|
|
2673
|
-
const
|
|
2659
|
+
const se_Tags = (input, context) => {
|
|
2674
2660
|
return input
|
|
2675
2661
|
.filter((e) => e != null)
|
|
2676
2662
|
.map((entry) => {
|
|
2677
|
-
return
|
|
2663
|
+
return se_Tag(entry, context);
|
|
2678
2664
|
});
|
|
2679
2665
|
};
|
|
2680
|
-
const
|
|
2666
|
+
const de_AccessPointDescription = (output, context) => {
|
|
2681
2667
|
return {
|
|
2682
2668
|
AccessPointArn: __expectString(output.AccessPointArn),
|
|
2683
2669
|
AccessPointId: __expectString(output.AccessPointId),
|
|
@@ -2686,35 +2672,35 @@ const deserializeAws_restJson1AccessPointDescription = (output, context) => {
|
|
|
2686
2672
|
LifeCycleState: __expectString(output.LifeCycleState),
|
|
2687
2673
|
Name: __expectString(output.Name),
|
|
2688
2674
|
OwnerId: __expectString(output.OwnerId),
|
|
2689
|
-
PosixUser: output.PosixUser != null ?
|
|
2690
|
-
RootDirectory: output.RootDirectory != null ?
|
|
2691
|
-
Tags: output.Tags != null ?
|
|
2675
|
+
PosixUser: output.PosixUser != null ? de_PosixUser(output.PosixUser, context) : undefined,
|
|
2676
|
+
RootDirectory: output.RootDirectory != null ? de_RootDirectory(output.RootDirectory, context) : undefined,
|
|
2677
|
+
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
2692
2678
|
};
|
|
2693
2679
|
};
|
|
2694
|
-
const
|
|
2680
|
+
const de_AccessPointDescriptions = (output, context) => {
|
|
2695
2681
|
const retVal = (output || [])
|
|
2696
2682
|
.filter((e) => e != null)
|
|
2697
2683
|
.map((entry) => {
|
|
2698
2684
|
if (entry === null) {
|
|
2699
2685
|
return null;
|
|
2700
2686
|
}
|
|
2701
|
-
return
|
|
2687
|
+
return de_AccessPointDescription(entry, context);
|
|
2702
2688
|
});
|
|
2703
2689
|
return retVal;
|
|
2704
2690
|
};
|
|
2705
|
-
const
|
|
2691
|
+
const de_BackupPolicy = (output, context) => {
|
|
2706
2692
|
return {
|
|
2707
2693
|
Status: __expectString(output.Status),
|
|
2708
2694
|
};
|
|
2709
2695
|
};
|
|
2710
|
-
const
|
|
2696
|
+
const de_CreationInfo = (output, context) => {
|
|
2711
2697
|
return {
|
|
2712
2698
|
OwnerGid: __expectLong(output.OwnerGid),
|
|
2713
2699
|
OwnerUid: __expectLong(output.OwnerUid),
|
|
2714
2700
|
Permissions: __expectString(output.Permissions),
|
|
2715
2701
|
};
|
|
2716
2702
|
};
|
|
2717
|
-
const
|
|
2703
|
+
const de_Destination = (output, context) => {
|
|
2718
2704
|
return {
|
|
2719
2705
|
FileSystemId: __expectString(output.FileSystemId),
|
|
2720
2706
|
LastReplicatedTimestamp: output.LastReplicatedTimestamp != null
|
|
@@ -2724,18 +2710,18 @@ const deserializeAws_restJson1Destination = (output, context) => {
|
|
|
2724
2710
|
Status: __expectString(output.Status),
|
|
2725
2711
|
};
|
|
2726
2712
|
};
|
|
2727
|
-
const
|
|
2713
|
+
const de_Destinations = (output, context) => {
|
|
2728
2714
|
const retVal = (output || [])
|
|
2729
2715
|
.filter((e) => e != null)
|
|
2730
2716
|
.map((entry) => {
|
|
2731
2717
|
if (entry === null) {
|
|
2732
2718
|
return null;
|
|
2733
2719
|
}
|
|
2734
|
-
return
|
|
2720
|
+
return de_Destination(entry, context);
|
|
2735
2721
|
});
|
|
2736
2722
|
return retVal;
|
|
2737
2723
|
};
|
|
2738
|
-
const
|
|
2724
|
+
const de_FileSystemDescription = (output, context) => {
|
|
2739
2725
|
return {
|
|
2740
2726
|
AvailabilityZoneId: __expectString(output.AvailabilityZoneId),
|
|
2741
2727
|
AvailabilityZoneName: __expectString(output.AvailabilityZoneName),
|
|
@@ -2753,23 +2739,23 @@ const deserializeAws_restJson1FileSystemDescription = (output, context) => {
|
|
|
2753
2739
|
OwnerId: __expectString(output.OwnerId),
|
|
2754
2740
|
PerformanceMode: __expectString(output.PerformanceMode),
|
|
2755
2741
|
ProvisionedThroughputInMibps: __limitedParseDouble(output.ProvisionedThroughputInMibps),
|
|
2756
|
-
SizeInBytes: output.SizeInBytes != null ?
|
|
2757
|
-
Tags: output.Tags != null ?
|
|
2742
|
+
SizeInBytes: output.SizeInBytes != null ? de_FileSystemSize(output.SizeInBytes, context) : undefined,
|
|
2743
|
+
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
2758
2744
|
ThroughputMode: __expectString(output.ThroughputMode),
|
|
2759
2745
|
};
|
|
2760
2746
|
};
|
|
2761
|
-
const
|
|
2747
|
+
const de_FileSystemDescriptions = (output, context) => {
|
|
2762
2748
|
const retVal = (output || [])
|
|
2763
2749
|
.filter((e) => e != null)
|
|
2764
2750
|
.map((entry) => {
|
|
2765
2751
|
if (entry === null) {
|
|
2766
2752
|
return null;
|
|
2767
2753
|
}
|
|
2768
|
-
return
|
|
2754
|
+
return de_FileSystemDescription(entry, context);
|
|
2769
2755
|
});
|
|
2770
2756
|
return retVal;
|
|
2771
2757
|
};
|
|
2772
|
-
const
|
|
2758
|
+
const de_FileSystemSize = (output, context) => {
|
|
2773
2759
|
return {
|
|
2774
2760
|
Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
|
|
2775
2761
|
Value: __expectLong(output.Value),
|
|
@@ -2777,24 +2763,24 @@ const deserializeAws_restJson1FileSystemSize = (output, context) => {
|
|
|
2777
2763
|
ValueInStandard: __expectLong(output.ValueInStandard),
|
|
2778
2764
|
};
|
|
2779
2765
|
};
|
|
2780
|
-
const
|
|
2766
|
+
const de_LifecyclePolicies = (output, context) => {
|
|
2781
2767
|
const retVal = (output || [])
|
|
2782
2768
|
.filter((e) => e != null)
|
|
2783
2769
|
.map((entry) => {
|
|
2784
2770
|
if (entry === null) {
|
|
2785
2771
|
return null;
|
|
2786
2772
|
}
|
|
2787
|
-
return
|
|
2773
|
+
return de_LifecyclePolicy(entry, context);
|
|
2788
2774
|
});
|
|
2789
2775
|
return retVal;
|
|
2790
2776
|
};
|
|
2791
|
-
const
|
|
2777
|
+
const de_LifecyclePolicy = (output, context) => {
|
|
2792
2778
|
return {
|
|
2793
2779
|
TransitionToIA: __expectString(output.TransitionToIA),
|
|
2794
2780
|
TransitionToPrimaryStorageClass: __expectString(output.TransitionToPrimaryStorageClass),
|
|
2795
2781
|
};
|
|
2796
2782
|
};
|
|
2797
|
-
const
|
|
2783
|
+
const de_MountTargetDescription = (output, context) => {
|
|
2798
2784
|
return {
|
|
2799
2785
|
AvailabilityZoneId: __expectString(output.AvailabilityZoneId),
|
|
2800
2786
|
AvailabilityZoneName: __expectString(output.AvailabilityZoneName),
|
|
@@ -2808,54 +2794,54 @@ const deserializeAws_restJson1MountTargetDescription = (output, context) => {
|
|
|
2808
2794
|
VpcId: __expectString(output.VpcId),
|
|
2809
2795
|
};
|
|
2810
2796
|
};
|
|
2811
|
-
const
|
|
2797
|
+
const de_MountTargetDescriptions = (output, context) => {
|
|
2812
2798
|
const retVal = (output || [])
|
|
2813
2799
|
.filter((e) => e != null)
|
|
2814
2800
|
.map((entry) => {
|
|
2815
2801
|
if (entry === null) {
|
|
2816
2802
|
return null;
|
|
2817
2803
|
}
|
|
2818
|
-
return
|
|
2804
|
+
return de_MountTargetDescription(entry, context);
|
|
2819
2805
|
});
|
|
2820
2806
|
return retVal;
|
|
2821
2807
|
};
|
|
2822
|
-
const
|
|
2808
|
+
const de_PosixUser = (output, context) => {
|
|
2823
2809
|
return {
|
|
2824
2810
|
Gid: __expectLong(output.Gid),
|
|
2825
|
-
SecondaryGids: output.SecondaryGids != null ?
|
|
2811
|
+
SecondaryGids: output.SecondaryGids != null ? de_SecondaryGids(output.SecondaryGids, context) : undefined,
|
|
2826
2812
|
Uid: __expectLong(output.Uid),
|
|
2827
2813
|
};
|
|
2828
2814
|
};
|
|
2829
|
-
const
|
|
2815
|
+
const de_ReplicationConfigurationDescription = (output, context) => {
|
|
2830
2816
|
return {
|
|
2831
2817
|
CreationTime: output.CreationTime != null
|
|
2832
2818
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
2833
2819
|
: undefined,
|
|
2834
|
-
Destinations: output.Destinations != null ?
|
|
2820
|
+
Destinations: output.Destinations != null ? de_Destinations(output.Destinations, context) : undefined,
|
|
2835
2821
|
OriginalSourceFileSystemArn: __expectString(output.OriginalSourceFileSystemArn),
|
|
2836
2822
|
SourceFileSystemArn: __expectString(output.SourceFileSystemArn),
|
|
2837
2823
|
SourceFileSystemId: __expectString(output.SourceFileSystemId),
|
|
2838
2824
|
SourceFileSystemRegion: __expectString(output.SourceFileSystemRegion),
|
|
2839
2825
|
};
|
|
2840
2826
|
};
|
|
2841
|
-
const
|
|
2827
|
+
const de_ReplicationConfigurationDescriptions = (output, context) => {
|
|
2842
2828
|
const retVal = (output || [])
|
|
2843
2829
|
.filter((e) => e != null)
|
|
2844
2830
|
.map((entry) => {
|
|
2845
2831
|
if (entry === null) {
|
|
2846
2832
|
return null;
|
|
2847
2833
|
}
|
|
2848
|
-
return
|
|
2834
|
+
return de_ReplicationConfigurationDescription(entry, context);
|
|
2849
2835
|
});
|
|
2850
2836
|
return retVal;
|
|
2851
2837
|
};
|
|
2852
|
-
const
|
|
2838
|
+
const de_ResourceIdPreference = (output, context) => {
|
|
2853
2839
|
return {
|
|
2854
2840
|
ResourceIdType: __expectString(output.ResourceIdType),
|
|
2855
|
-
Resources: output.Resources != null ?
|
|
2841
|
+
Resources: output.Resources != null ? de_Resources(output.Resources, context) : undefined,
|
|
2856
2842
|
};
|
|
2857
2843
|
};
|
|
2858
|
-
const
|
|
2844
|
+
const de_Resources = (output, context) => {
|
|
2859
2845
|
const retVal = (output || [])
|
|
2860
2846
|
.filter((e) => e != null)
|
|
2861
2847
|
.map((entry) => {
|
|
@@ -2866,13 +2852,13 @@ const deserializeAws_restJson1Resources = (output, context) => {
|
|
|
2866
2852
|
});
|
|
2867
2853
|
return retVal;
|
|
2868
2854
|
};
|
|
2869
|
-
const
|
|
2855
|
+
const de_RootDirectory = (output, context) => {
|
|
2870
2856
|
return {
|
|
2871
|
-
CreationInfo: output.CreationInfo != null ?
|
|
2857
|
+
CreationInfo: output.CreationInfo != null ? de_CreationInfo(output.CreationInfo, context) : undefined,
|
|
2872
2858
|
Path: __expectString(output.Path),
|
|
2873
2859
|
};
|
|
2874
2860
|
};
|
|
2875
|
-
const
|
|
2861
|
+
const de_SecondaryGids = (output, context) => {
|
|
2876
2862
|
const retVal = (output || [])
|
|
2877
2863
|
.filter((e) => e != null)
|
|
2878
2864
|
.map((entry) => {
|
|
@@ -2883,7 +2869,7 @@ const deserializeAws_restJson1SecondaryGids = (output, context) => {
|
|
|
2883
2869
|
});
|
|
2884
2870
|
return retVal;
|
|
2885
2871
|
};
|
|
2886
|
-
const
|
|
2872
|
+
const de_SecurityGroups = (output, context) => {
|
|
2887
2873
|
const retVal = (output || [])
|
|
2888
2874
|
.filter((e) => e != null)
|
|
2889
2875
|
.map((entry) => {
|
|
@@ -2894,20 +2880,20 @@ const deserializeAws_restJson1SecurityGroups = (output, context) => {
|
|
|
2894
2880
|
});
|
|
2895
2881
|
return retVal;
|
|
2896
2882
|
};
|
|
2897
|
-
const
|
|
2883
|
+
const de_Tag = (output, context) => {
|
|
2898
2884
|
return {
|
|
2899
2885
|
Key: __expectString(output.Key),
|
|
2900
2886
|
Value: __expectString(output.Value),
|
|
2901
2887
|
};
|
|
2902
2888
|
};
|
|
2903
|
-
const
|
|
2889
|
+
const de_Tags = (output, context) => {
|
|
2904
2890
|
const retVal = (output || [])
|
|
2905
2891
|
.filter((e) => e != null)
|
|
2906
2892
|
.map((entry) => {
|
|
2907
2893
|
if (entry === null) {
|
|
2908
2894
|
return null;
|
|
2909
2895
|
}
|
|
2910
|
-
return
|
|
2896
|
+
return de_Tag(entry, context);
|
|
2911
2897
|
});
|
|
2912
2898
|
return retVal;
|
|
2913
2899
|
};
|