@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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_DescribeReplicationConfigurationsCommand = exports.de_DescribeMountTargetSecurityGroupsCommand = exports.de_DescribeMountTargetsCommand = exports.de_DescribeLifecycleConfigurationCommand = exports.de_DescribeFileSystemsCommand = exports.de_DescribeFileSystemPolicyCommand = exports.de_DescribeBackupPolicyCommand = exports.de_DescribeAccountPreferencesCommand = exports.de_DescribeAccessPointsCommand = exports.de_DeleteTagsCommand = exports.de_DeleteReplicationConfigurationCommand = exports.de_DeleteMountTargetCommand = exports.de_DeleteFileSystemPolicyCommand = exports.de_DeleteFileSystemCommand = exports.de_DeleteAccessPointCommand = exports.de_CreateTagsCommand = exports.de_CreateReplicationConfigurationCommand = exports.de_CreateMountTargetCommand = exports.de_CreateFileSystemCommand = exports.de_CreateAccessPointCommand = exports.se_UpdateFileSystemCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutLifecycleConfigurationCommand = exports.se_PutFileSystemPolicyCommand = exports.se_PutBackupPolicyCommand = exports.se_PutAccountPreferencesCommand = exports.se_ModifyMountTargetSecurityGroupsCommand = exports.se_ListTagsForResourceCommand = exports.se_DescribeTagsCommand = exports.se_DescribeReplicationConfigurationsCommand = exports.se_DescribeMountTargetSecurityGroupsCommand = exports.se_DescribeMountTargetsCommand = exports.se_DescribeLifecycleConfigurationCommand = exports.se_DescribeFileSystemsCommand = exports.se_DescribeFileSystemPolicyCommand = exports.se_DescribeBackupPolicyCommand = exports.se_DescribeAccountPreferencesCommand = exports.se_DescribeAccessPointsCommand = exports.se_DeleteTagsCommand = exports.se_DeleteReplicationConfigurationCommand = exports.se_DeleteMountTargetCommand = exports.se_DeleteFileSystemPolicyCommand = exports.se_DeleteFileSystemCommand = exports.se_DeleteAccessPointCommand = exports.se_CreateTagsCommand = exports.se_CreateReplicationConfigurationCommand = exports.se_CreateMountTargetCommand = exports.se_CreateFileSystemCommand = exports.se_CreateAccessPointCommand = void 0;
|
|
4
|
+
exports.de_UpdateFileSystemCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutLifecycleConfigurationCommand = exports.de_PutFileSystemPolicyCommand = exports.de_PutBackupPolicyCommand = exports.de_PutAccountPreferencesCommand = exports.de_ModifyMountTargetSecurityGroupsCommand = exports.de_ListTagsForResourceCommand = exports.de_DescribeTagsCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const EFSServiceException_1 = require("../models/EFSServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const
|
|
10
|
+
const se_CreateAccessPointCommand = async (input, context) => {
|
|
11
11
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
@@ -17,11 +17,9 @@ const serializeAws_restJson1CreateAccessPointCommand = async (input, context) =>
|
|
|
17
17
|
body = JSON.stringify({
|
|
18
18
|
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
19
19
|
...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
|
|
20
|
-
...(input.PosixUser != null && { PosixUser:
|
|
21
|
-
...(input.RootDirectory != null && {
|
|
22
|
-
|
|
23
|
-
}),
|
|
24
|
-
...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
20
|
+
...(input.PosixUser != null && { PosixUser: se_PosixUser(input.PosixUser, context) }),
|
|
21
|
+
...(input.RootDirectory != null && { RootDirectory: se_RootDirectory(input.RootDirectory, context) }),
|
|
22
|
+
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
25
23
|
});
|
|
26
24
|
return new protocol_http_1.HttpRequest({
|
|
27
25
|
protocol,
|
|
@@ -33,8 +31,8 @@ const serializeAws_restJson1CreateAccessPointCommand = async (input, context) =>
|
|
|
33
31
|
body,
|
|
34
32
|
});
|
|
35
33
|
};
|
|
36
|
-
exports.
|
|
37
|
-
const
|
|
34
|
+
exports.se_CreateAccessPointCommand = se_CreateAccessPointCommand;
|
|
35
|
+
const se_CreateFileSystemCommand = async (input, context) => {
|
|
38
36
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
39
37
|
const headers = {
|
|
40
38
|
"content-type": "application/json",
|
|
@@ -51,7 +49,7 @@ const serializeAws_restJson1CreateFileSystemCommand = async (input, context) =>
|
|
|
51
49
|
...(input.ProvisionedThroughputInMibps != null && {
|
|
52
50
|
ProvisionedThroughputInMibps: (0, smithy_client_1.serializeFloat)(input.ProvisionedThroughputInMibps),
|
|
53
51
|
}),
|
|
54
|
-
...(input.Tags != null && { Tags:
|
|
52
|
+
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
55
53
|
...(input.ThroughputMode != null && { ThroughputMode: input.ThroughputMode }),
|
|
56
54
|
});
|
|
57
55
|
return new protocol_http_1.HttpRequest({
|
|
@@ -64,8 +62,8 @@ const serializeAws_restJson1CreateFileSystemCommand = async (input, context) =>
|
|
|
64
62
|
body,
|
|
65
63
|
});
|
|
66
64
|
};
|
|
67
|
-
exports.
|
|
68
|
-
const
|
|
65
|
+
exports.se_CreateFileSystemCommand = se_CreateFileSystemCommand;
|
|
66
|
+
const se_CreateMountTargetCommand = async (input, context) => {
|
|
69
67
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
70
68
|
const headers = {
|
|
71
69
|
"content-type": "application/json",
|
|
@@ -75,9 +73,7 @@ const serializeAws_restJson1CreateMountTargetCommand = async (input, context) =>
|
|
|
75
73
|
body = JSON.stringify({
|
|
76
74
|
...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
|
|
77
75
|
...(input.IpAddress != null && { IpAddress: input.IpAddress }),
|
|
78
|
-
...(input.SecurityGroups != null && {
|
|
79
|
-
SecurityGroups: serializeAws_restJson1SecurityGroups(input.SecurityGroups, context),
|
|
80
|
-
}),
|
|
76
|
+
...(input.SecurityGroups != null && { SecurityGroups: se_SecurityGroups(input.SecurityGroups, context) }),
|
|
81
77
|
...(input.SubnetId != null && { SubnetId: input.SubnetId }),
|
|
82
78
|
});
|
|
83
79
|
return new protocol_http_1.HttpRequest({
|
|
@@ -90,8 +86,8 @@ const serializeAws_restJson1CreateMountTargetCommand = async (input, context) =>
|
|
|
90
86
|
body,
|
|
91
87
|
});
|
|
92
88
|
};
|
|
93
|
-
exports.
|
|
94
|
-
const
|
|
89
|
+
exports.se_CreateMountTargetCommand = se_CreateMountTargetCommand;
|
|
90
|
+
const se_CreateReplicationConfigurationCommand = async (input, context) => {
|
|
95
91
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
96
92
|
const headers = {
|
|
97
93
|
"content-type": "application/json",
|
|
@@ -101,9 +97,7 @@ const serializeAws_restJson1CreateReplicationConfigurationCommand = async (input
|
|
|
101
97
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceFileSystemId", () => input.SourceFileSystemId, "{SourceFileSystemId}", false);
|
|
102
98
|
let body;
|
|
103
99
|
body = JSON.stringify({
|
|
104
|
-
...(input.Destinations != null && {
|
|
105
|
-
Destinations: serializeAws_restJson1DestinationsToCreate(input.Destinations, context),
|
|
106
|
-
}),
|
|
100
|
+
...(input.Destinations != null && { Destinations: se_DestinationsToCreate(input.Destinations, context) }),
|
|
107
101
|
});
|
|
108
102
|
return new protocol_http_1.HttpRequest({
|
|
109
103
|
protocol,
|
|
@@ -115,8 +109,8 @@ const serializeAws_restJson1CreateReplicationConfigurationCommand = async (input
|
|
|
115
109
|
body,
|
|
116
110
|
});
|
|
117
111
|
};
|
|
118
|
-
exports.
|
|
119
|
-
const
|
|
112
|
+
exports.se_CreateReplicationConfigurationCommand = se_CreateReplicationConfigurationCommand;
|
|
113
|
+
const se_CreateTagsCommand = async (input, context) => {
|
|
120
114
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
121
115
|
const headers = {
|
|
122
116
|
"content-type": "application/json",
|
|
@@ -125,7 +119,7 @@ const serializeAws_restJson1CreateTagsCommand = async (input, context) => {
|
|
|
125
119
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
126
120
|
let body;
|
|
127
121
|
body = JSON.stringify({
|
|
128
|
-
...(input.Tags != null && { Tags:
|
|
122
|
+
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
129
123
|
});
|
|
130
124
|
return new protocol_http_1.HttpRequest({
|
|
131
125
|
protocol,
|
|
@@ -137,8 +131,8 @@ const serializeAws_restJson1CreateTagsCommand = async (input, context) => {
|
|
|
137
131
|
body,
|
|
138
132
|
});
|
|
139
133
|
};
|
|
140
|
-
exports.
|
|
141
|
-
const
|
|
134
|
+
exports.se_CreateTagsCommand = se_CreateTagsCommand;
|
|
135
|
+
const se_DeleteAccessPointCommand = async (input, context) => {
|
|
142
136
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
143
137
|
const headers = {};
|
|
144
138
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/access-points/{AccessPointId}";
|
|
@@ -154,8 +148,8 @@ const serializeAws_restJson1DeleteAccessPointCommand = async (input, context) =>
|
|
|
154
148
|
body,
|
|
155
149
|
});
|
|
156
150
|
};
|
|
157
|
-
exports.
|
|
158
|
-
const
|
|
151
|
+
exports.se_DeleteAccessPointCommand = se_DeleteAccessPointCommand;
|
|
152
|
+
const se_DeleteFileSystemCommand = async (input, context) => {
|
|
159
153
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
160
154
|
const headers = {};
|
|
161
155
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/file-systems/{FileSystemId}";
|
|
@@ -171,8 +165,8 @@ const serializeAws_restJson1DeleteFileSystemCommand = async (input, context) =>
|
|
|
171
165
|
body,
|
|
172
166
|
});
|
|
173
167
|
};
|
|
174
|
-
exports.
|
|
175
|
-
const
|
|
168
|
+
exports.se_DeleteFileSystemCommand = se_DeleteFileSystemCommand;
|
|
169
|
+
const se_DeleteFileSystemPolicyCommand = async (input, context) => {
|
|
176
170
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
177
171
|
const headers = {};
|
|
178
172
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -189,8 +183,8 @@ const serializeAws_restJson1DeleteFileSystemPolicyCommand = async (input, contex
|
|
|
189
183
|
body,
|
|
190
184
|
});
|
|
191
185
|
};
|
|
192
|
-
exports.
|
|
193
|
-
const
|
|
186
|
+
exports.se_DeleteFileSystemPolicyCommand = se_DeleteFileSystemPolicyCommand;
|
|
187
|
+
const se_DeleteMountTargetCommand = async (input, context) => {
|
|
194
188
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
195
189
|
const headers = {};
|
|
196
190
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/mount-targets/{MountTargetId}";
|
|
@@ -206,8 +200,8 @@ const serializeAws_restJson1DeleteMountTargetCommand = async (input, context) =>
|
|
|
206
200
|
body,
|
|
207
201
|
});
|
|
208
202
|
};
|
|
209
|
-
exports.
|
|
210
|
-
const
|
|
203
|
+
exports.se_DeleteMountTargetCommand = se_DeleteMountTargetCommand;
|
|
204
|
+
const se_DeleteReplicationConfigurationCommand = async (input, context) => {
|
|
211
205
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
212
206
|
const headers = {};
|
|
213
207
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -224,8 +218,8 @@ const serializeAws_restJson1DeleteReplicationConfigurationCommand = async (input
|
|
|
224
218
|
body,
|
|
225
219
|
});
|
|
226
220
|
};
|
|
227
|
-
exports.
|
|
228
|
-
const
|
|
221
|
+
exports.se_DeleteReplicationConfigurationCommand = se_DeleteReplicationConfigurationCommand;
|
|
222
|
+
const se_DeleteTagsCommand = async (input, context) => {
|
|
229
223
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
230
224
|
const headers = {
|
|
231
225
|
"content-type": "application/json",
|
|
@@ -234,7 +228,7 @@ const serializeAws_restJson1DeleteTagsCommand = async (input, context) => {
|
|
|
234
228
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
235
229
|
let body;
|
|
236
230
|
body = JSON.stringify({
|
|
237
|
-
...(input.TagKeys != null && { TagKeys:
|
|
231
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeys(input.TagKeys, context) }),
|
|
238
232
|
});
|
|
239
233
|
return new protocol_http_1.HttpRequest({
|
|
240
234
|
protocol,
|
|
@@ -246,8 +240,8 @@ const serializeAws_restJson1DeleteTagsCommand = async (input, context) => {
|
|
|
246
240
|
body,
|
|
247
241
|
});
|
|
248
242
|
};
|
|
249
|
-
exports.
|
|
250
|
-
const
|
|
243
|
+
exports.se_DeleteTagsCommand = se_DeleteTagsCommand;
|
|
244
|
+
const se_DescribeAccessPointsCommand = async (input, context) => {
|
|
251
245
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
252
246
|
const headers = {};
|
|
253
247
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/access-points";
|
|
@@ -269,8 +263,8 @@ const serializeAws_restJson1DescribeAccessPointsCommand = async (input, context)
|
|
|
269
263
|
body,
|
|
270
264
|
});
|
|
271
265
|
};
|
|
272
|
-
exports.
|
|
273
|
-
const
|
|
266
|
+
exports.se_DescribeAccessPointsCommand = se_DescribeAccessPointsCommand;
|
|
267
|
+
const se_DescribeAccountPreferencesCommand = async (input, context) => {
|
|
274
268
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
275
269
|
const headers = {
|
|
276
270
|
"content-type": "application/json",
|
|
@@ -291,8 +285,8 @@ const serializeAws_restJson1DescribeAccountPreferencesCommand = async (input, co
|
|
|
291
285
|
body,
|
|
292
286
|
});
|
|
293
287
|
};
|
|
294
|
-
exports.
|
|
295
|
-
const
|
|
288
|
+
exports.se_DescribeAccountPreferencesCommand = se_DescribeAccountPreferencesCommand;
|
|
289
|
+
const se_DescribeBackupPolicyCommand = 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,8 +303,8 @@ const serializeAws_restJson1DescribeBackupPolicyCommand = async (input, context)
|
|
|
309
303
|
body,
|
|
310
304
|
});
|
|
311
305
|
};
|
|
312
|
-
exports.
|
|
313
|
-
const
|
|
306
|
+
exports.se_DescribeBackupPolicyCommand = se_DescribeBackupPolicyCommand;
|
|
307
|
+
const se_DescribeFileSystemPolicyCommand = async (input, context) => {
|
|
314
308
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
315
309
|
const headers = {};
|
|
316
310
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -327,8 +321,8 @@ const serializeAws_restJson1DescribeFileSystemPolicyCommand = async (input, cont
|
|
|
327
321
|
body,
|
|
328
322
|
});
|
|
329
323
|
};
|
|
330
|
-
exports.
|
|
331
|
-
const
|
|
324
|
+
exports.se_DescribeFileSystemPolicyCommand = se_DescribeFileSystemPolicyCommand;
|
|
325
|
+
const se_DescribeFileSystemsCommand = async (input, context) => {
|
|
332
326
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
333
327
|
const headers = {};
|
|
334
328
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/file-systems";
|
|
@@ -350,8 +344,8 @@ const serializeAws_restJson1DescribeFileSystemsCommand = async (input, context)
|
|
|
350
344
|
body,
|
|
351
345
|
});
|
|
352
346
|
};
|
|
353
|
-
exports.
|
|
354
|
-
const
|
|
347
|
+
exports.se_DescribeFileSystemsCommand = se_DescribeFileSystemsCommand;
|
|
348
|
+
const se_DescribeLifecycleConfigurationCommand = async (input, context) => {
|
|
355
349
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
356
350
|
const headers = {};
|
|
357
351
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -368,8 +362,8 @@ const serializeAws_restJson1DescribeLifecycleConfigurationCommand = async (input
|
|
|
368
362
|
body,
|
|
369
363
|
});
|
|
370
364
|
};
|
|
371
|
-
exports.
|
|
372
|
-
const
|
|
365
|
+
exports.se_DescribeLifecycleConfigurationCommand = se_DescribeLifecycleConfigurationCommand;
|
|
366
|
+
const se_DescribeMountTargetsCommand = async (input, context) => {
|
|
373
367
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
374
368
|
const headers = {};
|
|
375
369
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/mount-targets";
|
|
@@ -392,8 +386,8 @@ const serializeAws_restJson1DescribeMountTargetsCommand = async (input, context)
|
|
|
392
386
|
body,
|
|
393
387
|
});
|
|
394
388
|
};
|
|
395
|
-
exports.
|
|
396
|
-
const
|
|
389
|
+
exports.se_DescribeMountTargetsCommand = se_DescribeMountTargetsCommand;
|
|
390
|
+
const se_DescribeMountTargetSecurityGroupsCommand = async (input, context) => {
|
|
397
391
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
398
392
|
const headers = {};
|
|
399
393
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -410,8 +404,8 @@ const serializeAws_restJson1DescribeMountTargetSecurityGroupsCommand = async (in
|
|
|
410
404
|
body,
|
|
411
405
|
});
|
|
412
406
|
};
|
|
413
|
-
exports.
|
|
414
|
-
const
|
|
407
|
+
exports.se_DescribeMountTargetSecurityGroupsCommand = se_DescribeMountTargetSecurityGroupsCommand;
|
|
408
|
+
const se_DescribeReplicationConfigurationsCommand = async (input, context) => {
|
|
415
409
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
416
410
|
const headers = {};
|
|
417
411
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -433,8 +427,8 @@ const serializeAws_restJson1DescribeReplicationConfigurationsCommand = async (in
|
|
|
433
427
|
body,
|
|
434
428
|
});
|
|
435
429
|
};
|
|
436
|
-
exports.
|
|
437
|
-
const
|
|
430
|
+
exports.se_DescribeReplicationConfigurationsCommand = se_DescribeReplicationConfigurationsCommand;
|
|
431
|
+
const se_DescribeTagsCommand = async (input, context) => {
|
|
438
432
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
439
433
|
const headers = {};
|
|
440
434
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/tags/{FileSystemId}";
|
|
@@ -455,8 +449,8 @@ const serializeAws_restJson1DescribeTagsCommand = async (input, context) => {
|
|
|
455
449
|
body,
|
|
456
450
|
});
|
|
457
451
|
};
|
|
458
|
-
exports.
|
|
459
|
-
const
|
|
452
|
+
exports.se_DescribeTagsCommand = se_DescribeTagsCommand;
|
|
453
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
460
454
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
461
455
|
const headers = {};
|
|
462
456
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/resource-tags/{ResourceId}";
|
|
@@ -477,8 +471,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
477
471
|
body,
|
|
478
472
|
});
|
|
479
473
|
};
|
|
480
|
-
exports.
|
|
481
|
-
const
|
|
474
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
475
|
+
const se_ModifyMountTargetSecurityGroupsCommand = async (input, context) => {
|
|
482
476
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
483
477
|
const headers = {
|
|
484
478
|
"content-type": "application/json",
|
|
@@ -488,9 +482,7 @@ const serializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = async (inpu
|
|
|
488
482
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MountTargetId", () => input.MountTargetId, "{MountTargetId}", false);
|
|
489
483
|
let body;
|
|
490
484
|
body = JSON.stringify({
|
|
491
|
-
...(input.SecurityGroups != null && {
|
|
492
|
-
SecurityGroups: serializeAws_restJson1SecurityGroups(input.SecurityGroups, context),
|
|
493
|
-
}),
|
|
485
|
+
...(input.SecurityGroups != null && { SecurityGroups: se_SecurityGroups(input.SecurityGroups, context) }),
|
|
494
486
|
});
|
|
495
487
|
return new protocol_http_1.HttpRequest({
|
|
496
488
|
protocol,
|
|
@@ -502,8 +494,8 @@ const serializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = async (inpu
|
|
|
502
494
|
body,
|
|
503
495
|
});
|
|
504
496
|
};
|
|
505
|
-
exports.
|
|
506
|
-
const
|
|
497
|
+
exports.se_ModifyMountTargetSecurityGroupsCommand = se_ModifyMountTargetSecurityGroupsCommand;
|
|
498
|
+
const se_PutAccountPreferencesCommand = async (input, context) => {
|
|
507
499
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
508
500
|
const headers = {
|
|
509
501
|
"content-type": "application/json",
|
|
@@ -523,8 +515,8 @@ const serializeAws_restJson1PutAccountPreferencesCommand = async (input, context
|
|
|
523
515
|
body,
|
|
524
516
|
});
|
|
525
517
|
};
|
|
526
|
-
exports.
|
|
527
|
-
const
|
|
518
|
+
exports.se_PutAccountPreferencesCommand = se_PutAccountPreferencesCommand;
|
|
519
|
+
const se_PutBackupPolicyCommand = async (input, context) => {
|
|
528
520
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
529
521
|
const headers = {
|
|
530
522
|
"content-type": "application/json",
|
|
@@ -534,9 +526,7 @@ const serializeAws_restJson1PutBackupPolicyCommand = async (input, context) => {
|
|
|
534
526
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
535
527
|
let body;
|
|
536
528
|
body = JSON.stringify({
|
|
537
|
-
...(input.BackupPolicy != null && {
|
|
538
|
-
BackupPolicy: serializeAws_restJson1BackupPolicy(input.BackupPolicy, context),
|
|
539
|
-
}),
|
|
529
|
+
...(input.BackupPolicy != null && { BackupPolicy: se_BackupPolicy(input.BackupPolicy, context) }),
|
|
540
530
|
});
|
|
541
531
|
return new protocol_http_1.HttpRequest({
|
|
542
532
|
protocol,
|
|
@@ -548,8 +538,8 @@ const serializeAws_restJson1PutBackupPolicyCommand = async (input, context) => {
|
|
|
548
538
|
body,
|
|
549
539
|
});
|
|
550
540
|
};
|
|
551
|
-
exports.
|
|
552
|
-
const
|
|
541
|
+
exports.se_PutBackupPolicyCommand = se_PutBackupPolicyCommand;
|
|
542
|
+
const se_PutFileSystemPolicyCommand = async (input, context) => {
|
|
553
543
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
554
544
|
const headers = {
|
|
555
545
|
"content-type": "application/json",
|
|
@@ -574,8 +564,8 @@ const serializeAws_restJson1PutFileSystemPolicyCommand = async (input, context)
|
|
|
574
564
|
body,
|
|
575
565
|
});
|
|
576
566
|
};
|
|
577
|
-
exports.
|
|
578
|
-
const
|
|
567
|
+
exports.se_PutFileSystemPolicyCommand = se_PutFileSystemPolicyCommand;
|
|
568
|
+
const se_PutLifecycleConfigurationCommand = async (input, context) => {
|
|
579
569
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
580
570
|
const headers = {
|
|
581
571
|
"content-type": "application/json",
|
|
@@ -586,7 +576,7 @@ const serializeAws_restJson1PutLifecycleConfigurationCommand = async (input, con
|
|
|
586
576
|
let body;
|
|
587
577
|
body = JSON.stringify({
|
|
588
578
|
...(input.LifecyclePolicies != null && {
|
|
589
|
-
LifecyclePolicies:
|
|
579
|
+
LifecyclePolicies: se_LifecyclePolicies(input.LifecyclePolicies, context),
|
|
590
580
|
}),
|
|
591
581
|
});
|
|
592
582
|
return new protocol_http_1.HttpRequest({
|
|
@@ -599,8 +589,8 @@ const serializeAws_restJson1PutLifecycleConfigurationCommand = async (input, con
|
|
|
599
589
|
body,
|
|
600
590
|
});
|
|
601
591
|
};
|
|
602
|
-
exports.
|
|
603
|
-
const
|
|
592
|
+
exports.se_PutLifecycleConfigurationCommand = se_PutLifecycleConfigurationCommand;
|
|
593
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
604
594
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
605
595
|
const headers = {
|
|
606
596
|
"content-type": "application/json",
|
|
@@ -609,7 +599,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
609
599
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
610
600
|
let body;
|
|
611
601
|
body = JSON.stringify({
|
|
612
|
-
...(input.Tags != null && { Tags:
|
|
602
|
+
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
613
603
|
});
|
|
614
604
|
return new protocol_http_1.HttpRequest({
|
|
615
605
|
protocol,
|
|
@@ -621,8 +611,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
621
611
|
body,
|
|
622
612
|
});
|
|
623
613
|
};
|
|
624
|
-
exports.
|
|
625
|
-
const
|
|
614
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
615
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
626
616
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
627
617
|
const headers = {};
|
|
628
618
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-02-01/resource-tags/{ResourceId}";
|
|
@@ -645,8 +635,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
645
635
|
body,
|
|
646
636
|
});
|
|
647
637
|
};
|
|
648
|
-
exports.
|
|
649
|
-
const
|
|
638
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
639
|
+
const se_UpdateFileSystemCommand = async (input, context) => {
|
|
650
640
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
651
641
|
const headers = {
|
|
652
642
|
"content-type": "application/json",
|
|
@@ -670,10 +660,10 @@ const serializeAws_restJson1UpdateFileSystemCommand = async (input, context) =>
|
|
|
670
660
|
body,
|
|
671
661
|
});
|
|
672
662
|
};
|
|
673
|
-
exports.
|
|
674
|
-
const
|
|
663
|
+
exports.se_UpdateFileSystemCommand = se_UpdateFileSystemCommand;
|
|
664
|
+
const de_CreateAccessPointCommand = async (output, context) => {
|
|
675
665
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
676
|
-
return
|
|
666
|
+
return de_CreateAccessPointCommandError(output, context);
|
|
677
667
|
}
|
|
678
668
|
const contents = map({
|
|
679
669
|
$metadata: deserializeMetadata(output),
|
|
@@ -701,18 +691,18 @@ const deserializeAws_restJson1CreateAccessPointCommand = async (output, context)
|
|
|
701
691
|
contents.OwnerId = (0, smithy_client_1.expectString)(data.OwnerId);
|
|
702
692
|
}
|
|
703
693
|
if (data.PosixUser != null) {
|
|
704
|
-
contents.PosixUser =
|
|
694
|
+
contents.PosixUser = de_PosixUser(data.PosixUser, context);
|
|
705
695
|
}
|
|
706
696
|
if (data.RootDirectory != null) {
|
|
707
|
-
contents.RootDirectory =
|
|
697
|
+
contents.RootDirectory = de_RootDirectory(data.RootDirectory, context);
|
|
708
698
|
}
|
|
709
699
|
if (data.Tags != null) {
|
|
710
|
-
contents.Tags =
|
|
700
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
711
701
|
}
|
|
712
702
|
return contents;
|
|
713
703
|
};
|
|
714
|
-
exports.
|
|
715
|
-
const
|
|
704
|
+
exports.de_CreateAccessPointCommand = de_CreateAccessPointCommand;
|
|
705
|
+
const de_CreateAccessPointCommandError = async (output, context) => {
|
|
716
706
|
const parsedOutput = {
|
|
717
707
|
...output,
|
|
718
708
|
body: await parseErrorBody(output.body, context),
|
|
@@ -721,25 +711,25 @@ const deserializeAws_restJson1CreateAccessPointCommandError = async (output, con
|
|
|
721
711
|
switch (errorCode) {
|
|
722
712
|
case "AccessPointAlreadyExists":
|
|
723
713
|
case "com.amazonaws.efs#AccessPointAlreadyExists":
|
|
724
|
-
throw await
|
|
714
|
+
throw await de_AccessPointAlreadyExistsRes(parsedOutput, context);
|
|
725
715
|
case "AccessPointLimitExceeded":
|
|
726
716
|
case "com.amazonaws.efs#AccessPointLimitExceeded":
|
|
727
|
-
throw await
|
|
717
|
+
throw await de_AccessPointLimitExceededRes(parsedOutput, context);
|
|
728
718
|
case "BadRequest":
|
|
729
719
|
case "com.amazonaws.efs#BadRequest":
|
|
730
|
-
throw await
|
|
720
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
731
721
|
case "FileSystemNotFound":
|
|
732
722
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
733
|
-
throw await
|
|
723
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
734
724
|
case "IncorrectFileSystemLifeCycleState":
|
|
735
725
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
736
|
-
throw await
|
|
726
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
737
727
|
case "InternalServerError":
|
|
738
728
|
case "com.amazonaws.efs#InternalServerError":
|
|
739
|
-
throw await
|
|
729
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
740
730
|
case "ThrottlingException":
|
|
741
731
|
case "com.amazonaws.efs#ThrottlingException":
|
|
742
|
-
throw await
|
|
732
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
743
733
|
default:
|
|
744
734
|
const parsedBody = parsedOutput.body;
|
|
745
735
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -750,9 +740,9 @@ const deserializeAws_restJson1CreateAccessPointCommandError = async (output, con
|
|
|
750
740
|
});
|
|
751
741
|
}
|
|
752
742
|
};
|
|
753
|
-
const
|
|
743
|
+
const de_CreateFileSystemCommand = async (output, context) => {
|
|
754
744
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
755
|
-
return
|
|
745
|
+
return de_CreateFileSystemCommandError(output, context);
|
|
756
746
|
}
|
|
757
747
|
const contents = map({
|
|
758
748
|
$metadata: deserializeMetadata(output),
|
|
@@ -801,18 +791,18 @@ const deserializeAws_restJson1CreateFileSystemCommand = async (output, context)
|
|
|
801
791
|
contents.ProvisionedThroughputInMibps = (0, smithy_client_1.limitedParseDouble)(data.ProvisionedThroughputInMibps);
|
|
802
792
|
}
|
|
803
793
|
if (data.SizeInBytes != null) {
|
|
804
|
-
contents.SizeInBytes =
|
|
794
|
+
contents.SizeInBytes = de_FileSystemSize(data.SizeInBytes, context);
|
|
805
795
|
}
|
|
806
796
|
if (data.Tags != null) {
|
|
807
|
-
contents.Tags =
|
|
797
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
808
798
|
}
|
|
809
799
|
if (data.ThroughputMode != null) {
|
|
810
800
|
contents.ThroughputMode = (0, smithy_client_1.expectString)(data.ThroughputMode);
|
|
811
801
|
}
|
|
812
802
|
return contents;
|
|
813
803
|
};
|
|
814
|
-
exports.
|
|
815
|
-
const
|
|
804
|
+
exports.de_CreateFileSystemCommand = de_CreateFileSystemCommand;
|
|
805
|
+
const de_CreateFileSystemCommandError = async (output, context) => {
|
|
816
806
|
const parsedOutput = {
|
|
817
807
|
...output,
|
|
818
808
|
body: await parseErrorBody(output.body, context),
|
|
@@ -821,25 +811,25 @@ const deserializeAws_restJson1CreateFileSystemCommandError = async (output, cont
|
|
|
821
811
|
switch (errorCode) {
|
|
822
812
|
case "BadRequest":
|
|
823
813
|
case "com.amazonaws.efs#BadRequest":
|
|
824
|
-
throw await
|
|
814
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
825
815
|
case "FileSystemAlreadyExists":
|
|
826
816
|
case "com.amazonaws.efs#FileSystemAlreadyExists":
|
|
827
|
-
throw await
|
|
817
|
+
throw await de_FileSystemAlreadyExistsRes(parsedOutput, context);
|
|
828
818
|
case "FileSystemLimitExceeded":
|
|
829
819
|
case "com.amazonaws.efs#FileSystemLimitExceeded":
|
|
830
|
-
throw await
|
|
820
|
+
throw await de_FileSystemLimitExceededRes(parsedOutput, context);
|
|
831
821
|
case "InsufficientThroughputCapacity":
|
|
832
822
|
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
833
|
-
throw await
|
|
823
|
+
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
834
824
|
case "InternalServerError":
|
|
835
825
|
case "com.amazonaws.efs#InternalServerError":
|
|
836
|
-
throw await
|
|
826
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
837
827
|
case "ThroughputLimitExceeded":
|
|
838
828
|
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
839
|
-
throw await
|
|
829
|
+
throw await de_ThroughputLimitExceededRes(parsedOutput, context);
|
|
840
830
|
case "UnsupportedAvailabilityZone":
|
|
841
831
|
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
842
|
-
throw await
|
|
832
|
+
throw await de_UnsupportedAvailabilityZoneRes(parsedOutput, context);
|
|
843
833
|
default:
|
|
844
834
|
const parsedBody = parsedOutput.body;
|
|
845
835
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -850,9 +840,9 @@ const deserializeAws_restJson1CreateFileSystemCommandError = async (output, cont
|
|
|
850
840
|
});
|
|
851
841
|
}
|
|
852
842
|
};
|
|
853
|
-
const
|
|
843
|
+
const de_CreateMountTargetCommand = async (output, context) => {
|
|
854
844
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
855
|
-
return
|
|
845
|
+
return de_CreateMountTargetCommandError(output, context);
|
|
856
846
|
}
|
|
857
847
|
const contents = map({
|
|
858
848
|
$metadata: deserializeMetadata(output),
|
|
@@ -890,8 +880,8 @@ const deserializeAws_restJson1CreateMountTargetCommand = async (output, context)
|
|
|
890
880
|
}
|
|
891
881
|
return contents;
|
|
892
882
|
};
|
|
893
|
-
exports.
|
|
894
|
-
const
|
|
883
|
+
exports.de_CreateMountTargetCommand = de_CreateMountTargetCommand;
|
|
884
|
+
const de_CreateMountTargetCommandError = async (output, context) => {
|
|
895
885
|
const parsedOutput = {
|
|
896
886
|
...output,
|
|
897
887
|
body: await parseErrorBody(output.body, context),
|
|
@@ -900,43 +890,43 @@ const deserializeAws_restJson1CreateMountTargetCommandError = async (output, con
|
|
|
900
890
|
switch (errorCode) {
|
|
901
891
|
case "AvailabilityZonesMismatch":
|
|
902
892
|
case "com.amazonaws.efs#AvailabilityZonesMismatch":
|
|
903
|
-
throw await
|
|
893
|
+
throw await de_AvailabilityZonesMismatchRes(parsedOutput, context);
|
|
904
894
|
case "BadRequest":
|
|
905
895
|
case "com.amazonaws.efs#BadRequest":
|
|
906
|
-
throw await
|
|
896
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
907
897
|
case "FileSystemNotFound":
|
|
908
898
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
909
|
-
throw await
|
|
899
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
910
900
|
case "IncorrectFileSystemLifeCycleState":
|
|
911
901
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
912
|
-
throw await
|
|
902
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
913
903
|
case "InternalServerError":
|
|
914
904
|
case "com.amazonaws.efs#InternalServerError":
|
|
915
|
-
throw await
|
|
905
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
916
906
|
case "IpAddressInUse":
|
|
917
907
|
case "com.amazonaws.efs#IpAddressInUse":
|
|
918
|
-
throw await
|
|
908
|
+
throw await de_IpAddressInUseRes(parsedOutput, context);
|
|
919
909
|
case "MountTargetConflict":
|
|
920
910
|
case "com.amazonaws.efs#MountTargetConflict":
|
|
921
|
-
throw await
|
|
911
|
+
throw await de_MountTargetConflictRes(parsedOutput, context);
|
|
922
912
|
case "NetworkInterfaceLimitExceeded":
|
|
923
913
|
case "com.amazonaws.efs#NetworkInterfaceLimitExceeded":
|
|
924
|
-
throw await
|
|
914
|
+
throw await de_NetworkInterfaceLimitExceededRes(parsedOutput, context);
|
|
925
915
|
case "NoFreeAddressesInSubnet":
|
|
926
916
|
case "com.amazonaws.efs#NoFreeAddressesInSubnet":
|
|
927
|
-
throw await
|
|
917
|
+
throw await de_NoFreeAddressesInSubnetRes(parsedOutput, context);
|
|
928
918
|
case "SecurityGroupLimitExceeded":
|
|
929
919
|
case "com.amazonaws.efs#SecurityGroupLimitExceeded":
|
|
930
|
-
throw await
|
|
920
|
+
throw await de_SecurityGroupLimitExceededRes(parsedOutput, context);
|
|
931
921
|
case "SecurityGroupNotFound":
|
|
932
922
|
case "com.amazonaws.efs#SecurityGroupNotFound":
|
|
933
|
-
throw await
|
|
923
|
+
throw await de_SecurityGroupNotFoundRes(parsedOutput, context);
|
|
934
924
|
case "SubnetNotFound":
|
|
935
925
|
case "com.amazonaws.efs#SubnetNotFound":
|
|
936
|
-
throw await
|
|
926
|
+
throw await de_SubnetNotFoundRes(parsedOutput, context);
|
|
937
927
|
case "UnsupportedAvailabilityZone":
|
|
938
928
|
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
939
|
-
throw await
|
|
929
|
+
throw await de_UnsupportedAvailabilityZoneRes(parsedOutput, context);
|
|
940
930
|
default:
|
|
941
931
|
const parsedBody = parsedOutput.body;
|
|
942
932
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -947,9 +937,9 @@ const deserializeAws_restJson1CreateMountTargetCommandError = async (output, con
|
|
|
947
937
|
});
|
|
948
938
|
}
|
|
949
939
|
};
|
|
950
|
-
const
|
|
940
|
+
const de_CreateReplicationConfigurationCommand = async (output, context) => {
|
|
951
941
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
952
|
-
return
|
|
942
|
+
return de_CreateReplicationConfigurationCommandError(output, context);
|
|
953
943
|
}
|
|
954
944
|
const contents = map({
|
|
955
945
|
$metadata: deserializeMetadata(output),
|
|
@@ -959,7 +949,7 @@ const deserializeAws_restJson1CreateReplicationConfigurationCommand = async (out
|
|
|
959
949
|
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
960
950
|
}
|
|
961
951
|
if (data.Destinations != null) {
|
|
962
|
-
contents.Destinations =
|
|
952
|
+
contents.Destinations = de_Destinations(data.Destinations, context);
|
|
963
953
|
}
|
|
964
954
|
if (data.OriginalSourceFileSystemArn != null) {
|
|
965
955
|
contents.OriginalSourceFileSystemArn = (0, smithy_client_1.expectString)(data.OriginalSourceFileSystemArn);
|
|
@@ -975,8 +965,8 @@ const deserializeAws_restJson1CreateReplicationConfigurationCommand = async (out
|
|
|
975
965
|
}
|
|
976
966
|
return contents;
|
|
977
967
|
};
|
|
978
|
-
exports.
|
|
979
|
-
const
|
|
968
|
+
exports.de_CreateReplicationConfigurationCommand = de_CreateReplicationConfigurationCommand;
|
|
969
|
+
const de_CreateReplicationConfigurationCommandError = async (output, context) => {
|
|
980
970
|
const parsedOutput = {
|
|
981
971
|
...output,
|
|
982
972
|
body: await parseErrorBody(output.body, context),
|
|
@@ -985,34 +975,34 @@ const deserializeAws_restJson1CreateReplicationConfigurationCommandError = async
|
|
|
985
975
|
switch (errorCode) {
|
|
986
976
|
case "BadRequest":
|
|
987
977
|
case "com.amazonaws.efs#BadRequest":
|
|
988
|
-
throw await
|
|
978
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
989
979
|
case "FileSystemLimitExceeded":
|
|
990
980
|
case "com.amazonaws.efs#FileSystemLimitExceeded":
|
|
991
|
-
throw await
|
|
981
|
+
throw await de_FileSystemLimitExceededRes(parsedOutput, context);
|
|
992
982
|
case "FileSystemNotFound":
|
|
993
983
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
994
|
-
throw await
|
|
984
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
995
985
|
case "IncorrectFileSystemLifeCycleState":
|
|
996
986
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
997
|
-
throw await
|
|
987
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
998
988
|
case "InsufficientThroughputCapacity":
|
|
999
989
|
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
1000
|
-
throw await
|
|
990
|
+
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
1001
991
|
case "InternalServerError":
|
|
1002
992
|
case "com.amazonaws.efs#InternalServerError":
|
|
1003
|
-
throw await
|
|
993
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1004
994
|
case "ReplicationNotFound":
|
|
1005
995
|
case "com.amazonaws.efs#ReplicationNotFound":
|
|
1006
|
-
throw await
|
|
996
|
+
throw await de_ReplicationNotFoundRes(parsedOutput, context);
|
|
1007
997
|
case "ThroughputLimitExceeded":
|
|
1008
998
|
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
1009
|
-
throw await
|
|
999
|
+
throw await de_ThroughputLimitExceededRes(parsedOutput, context);
|
|
1010
1000
|
case "UnsupportedAvailabilityZone":
|
|
1011
1001
|
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
1012
|
-
throw await
|
|
1002
|
+
throw await de_UnsupportedAvailabilityZoneRes(parsedOutput, context);
|
|
1013
1003
|
case "ValidationException":
|
|
1014
1004
|
case "com.amazonaws.efs#ValidationException":
|
|
1015
|
-
throw await
|
|
1005
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1016
1006
|
default:
|
|
1017
1007
|
const parsedBody = parsedOutput.body;
|
|
1018
1008
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1023,9 +1013,9 @@ const deserializeAws_restJson1CreateReplicationConfigurationCommandError = async
|
|
|
1023
1013
|
});
|
|
1024
1014
|
}
|
|
1025
1015
|
};
|
|
1026
|
-
const
|
|
1016
|
+
const de_CreateTagsCommand = async (output, context) => {
|
|
1027
1017
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1028
|
-
return
|
|
1018
|
+
return de_CreateTagsCommandError(output, context);
|
|
1029
1019
|
}
|
|
1030
1020
|
const contents = map({
|
|
1031
1021
|
$metadata: deserializeMetadata(output),
|
|
@@ -1033,8 +1023,8 @@ const deserializeAws_restJson1CreateTagsCommand = async (output, context) => {
|
|
|
1033
1023
|
await collectBody(output.body, context);
|
|
1034
1024
|
return contents;
|
|
1035
1025
|
};
|
|
1036
|
-
exports.
|
|
1037
|
-
const
|
|
1026
|
+
exports.de_CreateTagsCommand = de_CreateTagsCommand;
|
|
1027
|
+
const de_CreateTagsCommandError = async (output, context) => {
|
|
1038
1028
|
const parsedOutput = {
|
|
1039
1029
|
...output,
|
|
1040
1030
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1043,13 +1033,13 @@ const deserializeAws_restJson1CreateTagsCommandError = async (output, context) =
|
|
|
1043
1033
|
switch (errorCode) {
|
|
1044
1034
|
case "BadRequest":
|
|
1045
1035
|
case "com.amazonaws.efs#BadRequest":
|
|
1046
|
-
throw await
|
|
1036
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1047
1037
|
case "FileSystemNotFound":
|
|
1048
1038
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1049
|
-
throw await
|
|
1039
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1050
1040
|
case "InternalServerError":
|
|
1051
1041
|
case "com.amazonaws.efs#InternalServerError":
|
|
1052
|
-
throw await
|
|
1042
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1053
1043
|
default:
|
|
1054
1044
|
const parsedBody = parsedOutput.body;
|
|
1055
1045
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1060,9 +1050,9 @@ const deserializeAws_restJson1CreateTagsCommandError = async (output, context) =
|
|
|
1060
1050
|
});
|
|
1061
1051
|
}
|
|
1062
1052
|
};
|
|
1063
|
-
const
|
|
1053
|
+
const de_DeleteAccessPointCommand = async (output, context) => {
|
|
1064
1054
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1065
|
-
return
|
|
1055
|
+
return de_DeleteAccessPointCommandError(output, context);
|
|
1066
1056
|
}
|
|
1067
1057
|
const contents = map({
|
|
1068
1058
|
$metadata: deserializeMetadata(output),
|
|
@@ -1070,8 +1060,8 @@ const deserializeAws_restJson1DeleteAccessPointCommand = async (output, context)
|
|
|
1070
1060
|
await collectBody(output.body, context);
|
|
1071
1061
|
return contents;
|
|
1072
1062
|
};
|
|
1073
|
-
exports.
|
|
1074
|
-
const
|
|
1063
|
+
exports.de_DeleteAccessPointCommand = de_DeleteAccessPointCommand;
|
|
1064
|
+
const de_DeleteAccessPointCommandError = async (output, context) => {
|
|
1075
1065
|
const parsedOutput = {
|
|
1076
1066
|
...output,
|
|
1077
1067
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1080,13 +1070,13 @@ const deserializeAws_restJson1DeleteAccessPointCommandError = async (output, con
|
|
|
1080
1070
|
switch (errorCode) {
|
|
1081
1071
|
case "AccessPointNotFound":
|
|
1082
1072
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1083
|
-
throw await
|
|
1073
|
+
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1084
1074
|
case "BadRequest":
|
|
1085
1075
|
case "com.amazonaws.efs#BadRequest":
|
|
1086
|
-
throw await
|
|
1076
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1087
1077
|
case "InternalServerError":
|
|
1088
1078
|
case "com.amazonaws.efs#InternalServerError":
|
|
1089
|
-
throw await
|
|
1079
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1090
1080
|
default:
|
|
1091
1081
|
const parsedBody = parsedOutput.body;
|
|
1092
1082
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1097,9 +1087,9 @@ const deserializeAws_restJson1DeleteAccessPointCommandError = async (output, con
|
|
|
1097
1087
|
});
|
|
1098
1088
|
}
|
|
1099
1089
|
};
|
|
1100
|
-
const
|
|
1090
|
+
const de_DeleteFileSystemCommand = async (output, context) => {
|
|
1101
1091
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1102
|
-
return
|
|
1092
|
+
return de_DeleteFileSystemCommandError(output, context);
|
|
1103
1093
|
}
|
|
1104
1094
|
const contents = map({
|
|
1105
1095
|
$metadata: deserializeMetadata(output),
|
|
@@ -1107,8 +1097,8 @@ const deserializeAws_restJson1DeleteFileSystemCommand = async (output, context)
|
|
|
1107
1097
|
await collectBody(output.body, context);
|
|
1108
1098
|
return contents;
|
|
1109
1099
|
};
|
|
1110
|
-
exports.
|
|
1111
|
-
const
|
|
1100
|
+
exports.de_DeleteFileSystemCommand = de_DeleteFileSystemCommand;
|
|
1101
|
+
const de_DeleteFileSystemCommandError = async (output, context) => {
|
|
1112
1102
|
const parsedOutput = {
|
|
1113
1103
|
...output,
|
|
1114
1104
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1117,16 +1107,16 @@ const deserializeAws_restJson1DeleteFileSystemCommandError = async (output, cont
|
|
|
1117
1107
|
switch (errorCode) {
|
|
1118
1108
|
case "BadRequest":
|
|
1119
1109
|
case "com.amazonaws.efs#BadRequest":
|
|
1120
|
-
throw await
|
|
1110
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1121
1111
|
case "FileSystemInUse":
|
|
1122
1112
|
case "com.amazonaws.efs#FileSystemInUse":
|
|
1123
|
-
throw await
|
|
1113
|
+
throw await de_FileSystemInUseRes(parsedOutput, context);
|
|
1124
1114
|
case "FileSystemNotFound":
|
|
1125
1115
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1126
|
-
throw await
|
|
1116
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1127
1117
|
case "InternalServerError":
|
|
1128
1118
|
case "com.amazonaws.efs#InternalServerError":
|
|
1129
|
-
throw await
|
|
1119
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1130
1120
|
default:
|
|
1131
1121
|
const parsedBody = parsedOutput.body;
|
|
1132
1122
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1137,9 +1127,9 @@ const deserializeAws_restJson1DeleteFileSystemCommandError = async (output, cont
|
|
|
1137
1127
|
});
|
|
1138
1128
|
}
|
|
1139
1129
|
};
|
|
1140
|
-
const
|
|
1130
|
+
const de_DeleteFileSystemPolicyCommand = async (output, context) => {
|
|
1141
1131
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1142
|
-
return
|
|
1132
|
+
return de_DeleteFileSystemPolicyCommandError(output, context);
|
|
1143
1133
|
}
|
|
1144
1134
|
const contents = map({
|
|
1145
1135
|
$metadata: deserializeMetadata(output),
|
|
@@ -1147,8 +1137,8 @@ const deserializeAws_restJson1DeleteFileSystemPolicyCommand = async (output, con
|
|
|
1147
1137
|
await collectBody(output.body, context);
|
|
1148
1138
|
return contents;
|
|
1149
1139
|
};
|
|
1150
|
-
exports.
|
|
1151
|
-
const
|
|
1140
|
+
exports.de_DeleteFileSystemPolicyCommand = de_DeleteFileSystemPolicyCommand;
|
|
1141
|
+
const de_DeleteFileSystemPolicyCommandError = async (output, context) => {
|
|
1152
1142
|
const parsedOutput = {
|
|
1153
1143
|
...output,
|
|
1154
1144
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1157,16 +1147,16 @@ const deserializeAws_restJson1DeleteFileSystemPolicyCommandError = async (output
|
|
|
1157
1147
|
switch (errorCode) {
|
|
1158
1148
|
case "BadRequest":
|
|
1159
1149
|
case "com.amazonaws.efs#BadRequest":
|
|
1160
|
-
throw await
|
|
1150
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1161
1151
|
case "FileSystemNotFound":
|
|
1162
1152
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1163
|
-
throw await
|
|
1153
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1164
1154
|
case "IncorrectFileSystemLifeCycleState":
|
|
1165
1155
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1166
|
-
throw await
|
|
1156
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1167
1157
|
case "InternalServerError":
|
|
1168
1158
|
case "com.amazonaws.efs#InternalServerError":
|
|
1169
|
-
throw await
|
|
1159
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1170
1160
|
default:
|
|
1171
1161
|
const parsedBody = parsedOutput.body;
|
|
1172
1162
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1177,9 +1167,9 @@ const deserializeAws_restJson1DeleteFileSystemPolicyCommandError = async (output
|
|
|
1177
1167
|
});
|
|
1178
1168
|
}
|
|
1179
1169
|
};
|
|
1180
|
-
const
|
|
1170
|
+
const de_DeleteMountTargetCommand = async (output, context) => {
|
|
1181
1171
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1182
|
-
return
|
|
1172
|
+
return de_DeleteMountTargetCommandError(output, context);
|
|
1183
1173
|
}
|
|
1184
1174
|
const contents = map({
|
|
1185
1175
|
$metadata: deserializeMetadata(output),
|
|
@@ -1187,8 +1177,8 @@ const deserializeAws_restJson1DeleteMountTargetCommand = async (output, context)
|
|
|
1187
1177
|
await collectBody(output.body, context);
|
|
1188
1178
|
return contents;
|
|
1189
1179
|
};
|
|
1190
|
-
exports.
|
|
1191
|
-
const
|
|
1180
|
+
exports.de_DeleteMountTargetCommand = de_DeleteMountTargetCommand;
|
|
1181
|
+
const de_DeleteMountTargetCommandError = async (output, context) => {
|
|
1192
1182
|
const parsedOutput = {
|
|
1193
1183
|
...output,
|
|
1194
1184
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1197,16 +1187,16 @@ const deserializeAws_restJson1DeleteMountTargetCommandError = async (output, con
|
|
|
1197
1187
|
switch (errorCode) {
|
|
1198
1188
|
case "BadRequest":
|
|
1199
1189
|
case "com.amazonaws.efs#BadRequest":
|
|
1200
|
-
throw await
|
|
1190
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1201
1191
|
case "DependencyTimeout":
|
|
1202
1192
|
case "com.amazonaws.efs#DependencyTimeout":
|
|
1203
|
-
throw await
|
|
1193
|
+
throw await de_DependencyTimeoutRes(parsedOutput, context);
|
|
1204
1194
|
case "InternalServerError":
|
|
1205
1195
|
case "com.amazonaws.efs#InternalServerError":
|
|
1206
|
-
throw await
|
|
1196
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1207
1197
|
case "MountTargetNotFound":
|
|
1208
1198
|
case "com.amazonaws.efs#MountTargetNotFound":
|
|
1209
|
-
throw await
|
|
1199
|
+
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
1210
1200
|
default:
|
|
1211
1201
|
const parsedBody = parsedOutput.body;
|
|
1212
1202
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1217,9 +1207,9 @@ const deserializeAws_restJson1DeleteMountTargetCommandError = async (output, con
|
|
|
1217
1207
|
});
|
|
1218
1208
|
}
|
|
1219
1209
|
};
|
|
1220
|
-
const
|
|
1210
|
+
const de_DeleteReplicationConfigurationCommand = async (output, context) => {
|
|
1221
1211
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1222
|
-
return
|
|
1212
|
+
return de_DeleteReplicationConfigurationCommandError(output, context);
|
|
1223
1213
|
}
|
|
1224
1214
|
const contents = map({
|
|
1225
1215
|
$metadata: deserializeMetadata(output),
|
|
@@ -1227,8 +1217,8 @@ const deserializeAws_restJson1DeleteReplicationConfigurationCommand = async (out
|
|
|
1227
1217
|
await collectBody(output.body, context);
|
|
1228
1218
|
return contents;
|
|
1229
1219
|
};
|
|
1230
|
-
exports.
|
|
1231
|
-
const
|
|
1220
|
+
exports.de_DeleteReplicationConfigurationCommand = de_DeleteReplicationConfigurationCommand;
|
|
1221
|
+
const de_DeleteReplicationConfigurationCommandError = async (output, context) => {
|
|
1232
1222
|
const parsedOutput = {
|
|
1233
1223
|
...output,
|
|
1234
1224
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1237,16 +1227,16 @@ const deserializeAws_restJson1DeleteReplicationConfigurationCommandError = async
|
|
|
1237
1227
|
switch (errorCode) {
|
|
1238
1228
|
case "BadRequest":
|
|
1239
1229
|
case "com.amazonaws.efs#BadRequest":
|
|
1240
|
-
throw await
|
|
1230
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1241
1231
|
case "FileSystemNotFound":
|
|
1242
1232
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1243
|
-
throw await
|
|
1233
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1244
1234
|
case "InternalServerError":
|
|
1245
1235
|
case "com.amazonaws.efs#InternalServerError":
|
|
1246
|
-
throw await
|
|
1236
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1247
1237
|
case "ReplicationNotFound":
|
|
1248
1238
|
case "com.amazonaws.efs#ReplicationNotFound":
|
|
1249
|
-
throw await
|
|
1239
|
+
throw await de_ReplicationNotFoundRes(parsedOutput, context);
|
|
1250
1240
|
default:
|
|
1251
1241
|
const parsedBody = parsedOutput.body;
|
|
1252
1242
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1257,9 +1247,9 @@ const deserializeAws_restJson1DeleteReplicationConfigurationCommandError = async
|
|
|
1257
1247
|
});
|
|
1258
1248
|
}
|
|
1259
1249
|
};
|
|
1260
|
-
const
|
|
1250
|
+
const de_DeleteTagsCommand = async (output, context) => {
|
|
1261
1251
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1262
|
-
return
|
|
1252
|
+
return de_DeleteTagsCommandError(output, context);
|
|
1263
1253
|
}
|
|
1264
1254
|
const contents = map({
|
|
1265
1255
|
$metadata: deserializeMetadata(output),
|
|
@@ -1267,8 +1257,8 @@ const deserializeAws_restJson1DeleteTagsCommand = async (output, context) => {
|
|
|
1267
1257
|
await collectBody(output.body, context);
|
|
1268
1258
|
return contents;
|
|
1269
1259
|
};
|
|
1270
|
-
exports.
|
|
1271
|
-
const
|
|
1260
|
+
exports.de_DeleteTagsCommand = de_DeleteTagsCommand;
|
|
1261
|
+
const de_DeleteTagsCommandError = async (output, context) => {
|
|
1272
1262
|
const parsedOutput = {
|
|
1273
1263
|
...output,
|
|
1274
1264
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1277,13 +1267,13 @@ const deserializeAws_restJson1DeleteTagsCommandError = async (output, context) =
|
|
|
1277
1267
|
switch (errorCode) {
|
|
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
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1294,24 +1284,24 @@ const deserializeAws_restJson1DeleteTagsCommandError = async (output, context) =
|
|
|
1294
1284
|
});
|
|
1295
1285
|
}
|
|
1296
1286
|
};
|
|
1297
|
-
const
|
|
1287
|
+
const de_DescribeAccessPointsCommand = async (output, context) => {
|
|
1298
1288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1299
|
-
return
|
|
1289
|
+
return de_DescribeAccessPointsCommandError(output, context);
|
|
1300
1290
|
}
|
|
1301
1291
|
const contents = map({
|
|
1302
1292
|
$metadata: deserializeMetadata(output),
|
|
1303
1293
|
});
|
|
1304
1294
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1305
1295
|
if (data.AccessPoints != null) {
|
|
1306
|
-
contents.AccessPoints =
|
|
1296
|
+
contents.AccessPoints = de_AccessPointDescriptions(data.AccessPoints, context);
|
|
1307
1297
|
}
|
|
1308
1298
|
if (data.NextToken != null) {
|
|
1309
1299
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1310
1300
|
}
|
|
1311
1301
|
return contents;
|
|
1312
1302
|
};
|
|
1313
|
-
exports.
|
|
1314
|
-
const
|
|
1303
|
+
exports.de_DescribeAccessPointsCommand = de_DescribeAccessPointsCommand;
|
|
1304
|
+
const de_DescribeAccessPointsCommandError = async (output, context) => {
|
|
1315
1305
|
const parsedOutput = {
|
|
1316
1306
|
...output,
|
|
1317
1307
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1320,16 +1310,16 @@ const deserializeAws_restJson1DescribeAccessPointsCommandError = async (output,
|
|
|
1320
1310
|
switch (errorCode) {
|
|
1321
1311
|
case "AccessPointNotFound":
|
|
1322
1312
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1323
|
-
throw await
|
|
1313
|
+
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1324
1314
|
case "BadRequest":
|
|
1325
1315
|
case "com.amazonaws.efs#BadRequest":
|
|
1326
|
-
throw await
|
|
1316
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1327
1317
|
case "FileSystemNotFound":
|
|
1328
1318
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1329
|
-
throw await
|
|
1319
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1330
1320
|
case "InternalServerError":
|
|
1331
1321
|
case "com.amazonaws.efs#InternalServerError":
|
|
1332
|
-
throw await
|
|
1322
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1333
1323
|
default:
|
|
1334
1324
|
const parsedBody = parsedOutput.body;
|
|
1335
1325
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1340,9 +1330,9 @@ const deserializeAws_restJson1DescribeAccessPointsCommandError = async (output,
|
|
|
1340
1330
|
});
|
|
1341
1331
|
}
|
|
1342
1332
|
};
|
|
1343
|
-
const
|
|
1333
|
+
const de_DescribeAccountPreferencesCommand = async (output, context) => {
|
|
1344
1334
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1345
|
-
return
|
|
1335
|
+
return de_DescribeAccountPreferencesCommandError(output, context);
|
|
1346
1336
|
}
|
|
1347
1337
|
const contents = map({
|
|
1348
1338
|
$metadata: deserializeMetadata(output),
|
|
@@ -1352,12 +1342,12 @@ const deserializeAws_restJson1DescribeAccountPreferencesCommand = async (output,
|
|
|
1352
1342
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1353
1343
|
}
|
|
1354
1344
|
if (data.ResourceIdPreference != null) {
|
|
1355
|
-
contents.ResourceIdPreference =
|
|
1345
|
+
contents.ResourceIdPreference = de_ResourceIdPreference(data.ResourceIdPreference, context);
|
|
1356
1346
|
}
|
|
1357
1347
|
return contents;
|
|
1358
1348
|
};
|
|
1359
|
-
exports.
|
|
1360
|
-
const
|
|
1349
|
+
exports.de_DescribeAccountPreferencesCommand = de_DescribeAccountPreferencesCommand;
|
|
1350
|
+
const de_DescribeAccountPreferencesCommandError = async (output, context) => {
|
|
1361
1351
|
const parsedOutput = {
|
|
1362
1352
|
...output,
|
|
1363
1353
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1366,7 +1356,7 @@ const deserializeAws_restJson1DescribeAccountPreferencesCommandError = async (ou
|
|
|
1366
1356
|
switch (errorCode) {
|
|
1367
1357
|
case "InternalServerError":
|
|
1368
1358
|
case "com.amazonaws.efs#InternalServerError":
|
|
1369
|
-
throw await
|
|
1359
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1370
1360
|
default:
|
|
1371
1361
|
const parsedBody = parsedOutput.body;
|
|
1372
1362
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1377,21 +1367,21 @@ const deserializeAws_restJson1DescribeAccountPreferencesCommandError = async (ou
|
|
|
1377
1367
|
});
|
|
1378
1368
|
}
|
|
1379
1369
|
};
|
|
1380
|
-
const
|
|
1370
|
+
const de_DescribeBackupPolicyCommand = async (output, context) => {
|
|
1381
1371
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1382
|
-
return
|
|
1372
|
+
return de_DescribeBackupPolicyCommandError(output, context);
|
|
1383
1373
|
}
|
|
1384
1374
|
const contents = map({
|
|
1385
1375
|
$metadata: deserializeMetadata(output),
|
|
1386
1376
|
});
|
|
1387
1377
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1388
1378
|
if (data.BackupPolicy != null) {
|
|
1389
|
-
contents.BackupPolicy =
|
|
1379
|
+
contents.BackupPolicy = de_BackupPolicy(data.BackupPolicy, context);
|
|
1390
1380
|
}
|
|
1391
1381
|
return contents;
|
|
1392
1382
|
};
|
|
1393
|
-
exports.
|
|
1394
|
-
const
|
|
1383
|
+
exports.de_DescribeBackupPolicyCommand = de_DescribeBackupPolicyCommand;
|
|
1384
|
+
const de_DescribeBackupPolicyCommandError = async (output, context) => {
|
|
1395
1385
|
const parsedOutput = {
|
|
1396
1386
|
...output,
|
|
1397
1387
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1400,19 +1390,19 @@ const deserializeAws_restJson1DescribeBackupPolicyCommandError = async (output,
|
|
|
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
|
case "ValidationException":
|
|
1414
1404
|
case "com.amazonaws.efs#ValidationException":
|
|
1415
|
-
throw await
|
|
1405
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1416
1406
|
default:
|
|
1417
1407
|
const parsedBody = parsedOutput.body;
|
|
1418
1408
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1423,9 +1413,9 @@ const deserializeAws_restJson1DescribeBackupPolicyCommandError = async (output,
|
|
|
1423
1413
|
});
|
|
1424
1414
|
}
|
|
1425
1415
|
};
|
|
1426
|
-
const
|
|
1416
|
+
const de_DescribeFileSystemPolicyCommand = async (output, context) => {
|
|
1427
1417
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1428
|
-
return
|
|
1418
|
+
return de_DescribeFileSystemPolicyCommandError(output, context);
|
|
1429
1419
|
}
|
|
1430
1420
|
const contents = map({
|
|
1431
1421
|
$metadata: deserializeMetadata(output),
|
|
@@ -1439,8 +1429,8 @@ const deserializeAws_restJson1DescribeFileSystemPolicyCommand = async (output, c
|
|
|
1439
1429
|
}
|
|
1440
1430
|
return contents;
|
|
1441
1431
|
};
|
|
1442
|
-
exports.
|
|
1443
|
-
const
|
|
1432
|
+
exports.de_DescribeFileSystemPolicyCommand = de_DescribeFileSystemPolicyCommand;
|
|
1433
|
+
const de_DescribeFileSystemPolicyCommandError = async (output, context) => {
|
|
1444
1434
|
const parsedOutput = {
|
|
1445
1435
|
...output,
|
|
1446
1436
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1449,16 +1439,16 @@ const deserializeAws_restJson1DescribeFileSystemPolicyCommandError = async (outp
|
|
|
1449
1439
|
switch (errorCode) {
|
|
1450
1440
|
case "BadRequest":
|
|
1451
1441
|
case "com.amazonaws.efs#BadRequest":
|
|
1452
|
-
throw await
|
|
1442
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1453
1443
|
case "FileSystemNotFound":
|
|
1454
1444
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1455
|
-
throw await
|
|
1445
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1456
1446
|
case "InternalServerError":
|
|
1457
1447
|
case "com.amazonaws.efs#InternalServerError":
|
|
1458
|
-
throw await
|
|
1448
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1459
1449
|
case "PolicyNotFound":
|
|
1460
1450
|
case "com.amazonaws.efs#PolicyNotFound":
|
|
1461
|
-
throw await
|
|
1451
|
+
throw await de_PolicyNotFoundRes(parsedOutput, context);
|
|
1462
1452
|
default:
|
|
1463
1453
|
const parsedBody = parsedOutput.body;
|
|
1464
1454
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1469,16 +1459,16 @@ const deserializeAws_restJson1DescribeFileSystemPolicyCommandError = async (outp
|
|
|
1469
1459
|
});
|
|
1470
1460
|
}
|
|
1471
1461
|
};
|
|
1472
|
-
const
|
|
1462
|
+
const de_DescribeFileSystemsCommand = async (output, context) => {
|
|
1473
1463
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1474
|
-
return
|
|
1464
|
+
return de_DescribeFileSystemsCommandError(output, context);
|
|
1475
1465
|
}
|
|
1476
1466
|
const contents = map({
|
|
1477
1467
|
$metadata: deserializeMetadata(output),
|
|
1478
1468
|
});
|
|
1479
1469
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1480
1470
|
if (data.FileSystems != null) {
|
|
1481
|
-
contents.FileSystems =
|
|
1471
|
+
contents.FileSystems = de_FileSystemDescriptions(data.FileSystems, context);
|
|
1482
1472
|
}
|
|
1483
1473
|
if (data.Marker != null) {
|
|
1484
1474
|
contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
|
|
@@ -1488,8 +1478,8 @@ const deserializeAws_restJson1DescribeFileSystemsCommand = async (output, contex
|
|
|
1488
1478
|
}
|
|
1489
1479
|
return contents;
|
|
1490
1480
|
};
|
|
1491
|
-
exports.
|
|
1492
|
-
const
|
|
1481
|
+
exports.de_DescribeFileSystemsCommand = de_DescribeFileSystemsCommand;
|
|
1482
|
+
const de_DescribeFileSystemsCommandError = async (output, context) => {
|
|
1493
1483
|
const parsedOutput = {
|
|
1494
1484
|
...output,
|
|
1495
1485
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1498,13 +1488,13 @@ const deserializeAws_restJson1DescribeFileSystemsCommandError = async (output, c
|
|
|
1498
1488
|
switch (errorCode) {
|
|
1499
1489
|
case "BadRequest":
|
|
1500
1490
|
case "com.amazonaws.efs#BadRequest":
|
|
1501
|
-
throw await
|
|
1491
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1502
1492
|
case "FileSystemNotFound":
|
|
1503
1493
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1504
|
-
throw await
|
|
1494
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1505
1495
|
case "InternalServerError":
|
|
1506
1496
|
case "com.amazonaws.efs#InternalServerError":
|
|
1507
|
-
throw await
|
|
1497
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1508
1498
|
default:
|
|
1509
1499
|
const parsedBody = parsedOutput.body;
|
|
1510
1500
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1515,21 +1505,21 @@ const deserializeAws_restJson1DescribeFileSystemsCommandError = async (output, c
|
|
|
1515
1505
|
});
|
|
1516
1506
|
}
|
|
1517
1507
|
};
|
|
1518
|
-
const
|
|
1508
|
+
const de_DescribeLifecycleConfigurationCommand = async (output, context) => {
|
|
1519
1509
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1520
|
-
return
|
|
1510
|
+
return de_DescribeLifecycleConfigurationCommandError(output, context);
|
|
1521
1511
|
}
|
|
1522
1512
|
const contents = map({
|
|
1523
1513
|
$metadata: deserializeMetadata(output),
|
|
1524
1514
|
});
|
|
1525
1515
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1526
1516
|
if (data.LifecyclePolicies != null) {
|
|
1527
|
-
contents.LifecyclePolicies =
|
|
1517
|
+
contents.LifecyclePolicies = de_LifecyclePolicies(data.LifecyclePolicies, context);
|
|
1528
1518
|
}
|
|
1529
1519
|
return contents;
|
|
1530
1520
|
};
|
|
1531
|
-
exports.
|
|
1532
|
-
const
|
|
1521
|
+
exports.de_DescribeLifecycleConfigurationCommand = de_DescribeLifecycleConfigurationCommand;
|
|
1522
|
+
const de_DescribeLifecycleConfigurationCommandError = async (output, context) => {
|
|
1533
1523
|
const parsedOutput = {
|
|
1534
1524
|
...output,
|
|
1535
1525
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1538,13 +1528,13 @@ const deserializeAws_restJson1DescribeLifecycleConfigurationCommandError = async
|
|
|
1538
1528
|
switch (errorCode) {
|
|
1539
1529
|
case "BadRequest":
|
|
1540
1530
|
case "com.amazonaws.efs#BadRequest":
|
|
1541
|
-
throw await
|
|
1531
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1542
1532
|
case "FileSystemNotFound":
|
|
1543
1533
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1544
|
-
throw await
|
|
1534
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1545
1535
|
case "InternalServerError":
|
|
1546
1536
|
case "com.amazonaws.efs#InternalServerError":
|
|
1547
|
-
throw await
|
|
1537
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1548
1538
|
default:
|
|
1549
1539
|
const parsedBody = parsedOutput.body;
|
|
1550
1540
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1555,9 +1545,9 @@ const deserializeAws_restJson1DescribeLifecycleConfigurationCommandError = async
|
|
|
1555
1545
|
});
|
|
1556
1546
|
}
|
|
1557
1547
|
};
|
|
1558
|
-
const
|
|
1548
|
+
const de_DescribeMountTargetsCommand = async (output, context) => {
|
|
1559
1549
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1560
|
-
return
|
|
1550
|
+
return de_DescribeMountTargetsCommandError(output, context);
|
|
1561
1551
|
}
|
|
1562
1552
|
const contents = map({
|
|
1563
1553
|
$metadata: deserializeMetadata(output),
|
|
@@ -1567,15 +1557,15 @@ const deserializeAws_restJson1DescribeMountTargetsCommand = async (output, conte
|
|
|
1567
1557
|
contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
|
|
1568
1558
|
}
|
|
1569
1559
|
if (data.MountTargets != null) {
|
|
1570
|
-
contents.MountTargets =
|
|
1560
|
+
contents.MountTargets = de_MountTargetDescriptions(data.MountTargets, context);
|
|
1571
1561
|
}
|
|
1572
1562
|
if (data.NextMarker != null) {
|
|
1573
1563
|
contents.NextMarker = (0, smithy_client_1.expectString)(data.NextMarker);
|
|
1574
1564
|
}
|
|
1575
1565
|
return contents;
|
|
1576
1566
|
};
|
|
1577
|
-
exports.
|
|
1578
|
-
const
|
|
1567
|
+
exports.de_DescribeMountTargetsCommand = de_DescribeMountTargetsCommand;
|
|
1568
|
+
const de_DescribeMountTargetsCommandError = async (output, context) => {
|
|
1579
1569
|
const parsedOutput = {
|
|
1580
1570
|
...output,
|
|
1581
1571
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1584,19 +1574,19 @@ const deserializeAws_restJson1DescribeMountTargetsCommandError = async (output,
|
|
|
1584
1574
|
switch (errorCode) {
|
|
1585
1575
|
case "AccessPointNotFound":
|
|
1586
1576
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1587
|
-
throw await
|
|
1577
|
+
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1588
1578
|
case "BadRequest":
|
|
1589
1579
|
case "com.amazonaws.efs#BadRequest":
|
|
1590
|
-
throw await
|
|
1580
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1591
1581
|
case "FileSystemNotFound":
|
|
1592
1582
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1593
|
-
throw await
|
|
1583
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1594
1584
|
case "InternalServerError":
|
|
1595
1585
|
case "com.amazonaws.efs#InternalServerError":
|
|
1596
|
-
throw await
|
|
1586
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1597
1587
|
case "MountTargetNotFound":
|
|
1598
1588
|
case "com.amazonaws.efs#MountTargetNotFound":
|
|
1599
|
-
throw await
|
|
1589
|
+
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
1600
1590
|
default:
|
|
1601
1591
|
const parsedBody = parsedOutput.body;
|
|
1602
1592
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1607,21 +1597,21 @@ const deserializeAws_restJson1DescribeMountTargetsCommandError = async (output,
|
|
|
1607
1597
|
});
|
|
1608
1598
|
}
|
|
1609
1599
|
};
|
|
1610
|
-
const
|
|
1600
|
+
const de_DescribeMountTargetSecurityGroupsCommand = async (output, context) => {
|
|
1611
1601
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1612
|
-
return
|
|
1602
|
+
return de_DescribeMountTargetSecurityGroupsCommandError(output, context);
|
|
1613
1603
|
}
|
|
1614
1604
|
const contents = map({
|
|
1615
1605
|
$metadata: deserializeMetadata(output),
|
|
1616
1606
|
});
|
|
1617
1607
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1618
1608
|
if (data.SecurityGroups != null) {
|
|
1619
|
-
contents.SecurityGroups =
|
|
1609
|
+
contents.SecurityGroups = de_SecurityGroups(data.SecurityGroups, context);
|
|
1620
1610
|
}
|
|
1621
1611
|
return contents;
|
|
1622
1612
|
};
|
|
1623
|
-
exports.
|
|
1624
|
-
const
|
|
1613
|
+
exports.de_DescribeMountTargetSecurityGroupsCommand = de_DescribeMountTargetSecurityGroupsCommand;
|
|
1614
|
+
const de_DescribeMountTargetSecurityGroupsCommandError = async (output, context) => {
|
|
1625
1615
|
const parsedOutput = {
|
|
1626
1616
|
...output,
|
|
1627
1617
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1630,16 +1620,16 @@ const deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommandError = as
|
|
|
1630
1620
|
switch (errorCode) {
|
|
1631
1621
|
case "BadRequest":
|
|
1632
1622
|
case "com.amazonaws.efs#BadRequest":
|
|
1633
|
-
throw await
|
|
1623
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1634
1624
|
case "IncorrectMountTargetState":
|
|
1635
1625
|
case "com.amazonaws.efs#IncorrectMountTargetState":
|
|
1636
|
-
throw await
|
|
1626
|
+
throw await de_IncorrectMountTargetStateRes(parsedOutput, context);
|
|
1637
1627
|
case "InternalServerError":
|
|
1638
1628
|
case "com.amazonaws.efs#InternalServerError":
|
|
1639
|
-
throw await
|
|
1629
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1640
1630
|
case "MountTargetNotFound":
|
|
1641
1631
|
case "com.amazonaws.efs#MountTargetNotFound":
|
|
1642
|
-
throw await
|
|
1632
|
+
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
1643
1633
|
default:
|
|
1644
1634
|
const parsedBody = parsedOutput.body;
|
|
1645
1635
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1650,9 +1640,9 @@ const deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommandError = as
|
|
|
1650
1640
|
});
|
|
1651
1641
|
}
|
|
1652
1642
|
};
|
|
1653
|
-
const
|
|
1643
|
+
const de_DescribeReplicationConfigurationsCommand = async (output, context) => {
|
|
1654
1644
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1655
|
-
return
|
|
1645
|
+
return de_DescribeReplicationConfigurationsCommandError(output, context);
|
|
1656
1646
|
}
|
|
1657
1647
|
const contents = map({
|
|
1658
1648
|
$metadata: deserializeMetadata(output),
|
|
@@ -1662,12 +1652,12 @@ const deserializeAws_restJson1DescribeReplicationConfigurationsCommand = async (
|
|
|
1662
1652
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1663
1653
|
}
|
|
1664
1654
|
if (data.Replications != null) {
|
|
1665
|
-
contents.Replications =
|
|
1655
|
+
contents.Replications = de_ReplicationConfigurationDescriptions(data.Replications, context);
|
|
1666
1656
|
}
|
|
1667
1657
|
return contents;
|
|
1668
1658
|
};
|
|
1669
|
-
exports.
|
|
1670
|
-
const
|
|
1659
|
+
exports.de_DescribeReplicationConfigurationsCommand = de_DescribeReplicationConfigurationsCommand;
|
|
1660
|
+
const de_DescribeReplicationConfigurationsCommandError = async (output, context) => {
|
|
1671
1661
|
const parsedOutput = {
|
|
1672
1662
|
...output,
|
|
1673
1663
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1676,19 +1666,19 @@ const deserializeAws_restJson1DescribeReplicationConfigurationsCommandError = as
|
|
|
1676
1666
|
switch (errorCode) {
|
|
1677
1667
|
case "BadRequest":
|
|
1678
1668
|
case "com.amazonaws.efs#BadRequest":
|
|
1679
|
-
throw await
|
|
1669
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1680
1670
|
case "FileSystemNotFound":
|
|
1681
1671
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1682
|
-
throw await
|
|
1672
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1683
1673
|
case "InternalServerError":
|
|
1684
1674
|
case "com.amazonaws.efs#InternalServerError":
|
|
1685
|
-
throw await
|
|
1675
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1686
1676
|
case "ReplicationNotFound":
|
|
1687
1677
|
case "com.amazonaws.efs#ReplicationNotFound":
|
|
1688
|
-
throw await
|
|
1678
|
+
throw await de_ReplicationNotFoundRes(parsedOutput, context);
|
|
1689
1679
|
case "ValidationException":
|
|
1690
1680
|
case "com.amazonaws.efs#ValidationException":
|
|
1691
|
-
throw await
|
|
1681
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1692
1682
|
default:
|
|
1693
1683
|
const parsedBody = parsedOutput.body;
|
|
1694
1684
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1699,9 +1689,9 @@ const deserializeAws_restJson1DescribeReplicationConfigurationsCommandError = as
|
|
|
1699
1689
|
});
|
|
1700
1690
|
}
|
|
1701
1691
|
};
|
|
1702
|
-
const
|
|
1692
|
+
const de_DescribeTagsCommand = async (output, context) => {
|
|
1703
1693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1704
|
-
return
|
|
1694
|
+
return de_DescribeTagsCommandError(output, context);
|
|
1705
1695
|
}
|
|
1706
1696
|
const contents = map({
|
|
1707
1697
|
$metadata: deserializeMetadata(output),
|
|
@@ -1714,12 +1704,12 @@ const deserializeAws_restJson1DescribeTagsCommand = async (output, context) => {
|
|
|
1714
1704
|
contents.NextMarker = (0, smithy_client_1.expectString)(data.NextMarker);
|
|
1715
1705
|
}
|
|
1716
1706
|
if (data.Tags != null) {
|
|
1717
|
-
contents.Tags =
|
|
1707
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
1718
1708
|
}
|
|
1719
1709
|
return contents;
|
|
1720
1710
|
};
|
|
1721
|
-
exports.
|
|
1722
|
-
const
|
|
1711
|
+
exports.de_DescribeTagsCommand = de_DescribeTagsCommand;
|
|
1712
|
+
const de_DescribeTagsCommandError = async (output, context) => {
|
|
1723
1713
|
const parsedOutput = {
|
|
1724
1714
|
...output,
|
|
1725
1715
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1728,13 +1718,13 @@ const deserializeAws_restJson1DescribeTagsCommandError = async (output, context)
|
|
|
1728
1718
|
switch (errorCode) {
|
|
1729
1719
|
case "BadRequest":
|
|
1730
1720
|
case "com.amazonaws.efs#BadRequest":
|
|
1731
|
-
throw await
|
|
1721
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1732
1722
|
case "FileSystemNotFound":
|
|
1733
1723
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1734
|
-
throw await
|
|
1724
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1735
1725
|
case "InternalServerError":
|
|
1736
1726
|
case "com.amazonaws.efs#InternalServerError":
|
|
1737
|
-
throw await
|
|
1727
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1738
1728
|
default:
|
|
1739
1729
|
const parsedBody = parsedOutput.body;
|
|
1740
1730
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1745,9 +1735,9 @@ const deserializeAws_restJson1DescribeTagsCommandError = async (output, context)
|
|
|
1745
1735
|
});
|
|
1746
1736
|
}
|
|
1747
1737
|
};
|
|
1748
|
-
const
|
|
1738
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1749
1739
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1750
|
-
return
|
|
1740
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1751
1741
|
}
|
|
1752
1742
|
const contents = map({
|
|
1753
1743
|
$metadata: deserializeMetadata(output),
|
|
@@ -1757,12 +1747,12 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
1757
1747
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1758
1748
|
}
|
|
1759
1749
|
if (data.Tags != null) {
|
|
1760
|
-
contents.Tags =
|
|
1750
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
1761
1751
|
}
|
|
1762
1752
|
return contents;
|
|
1763
1753
|
};
|
|
1764
|
-
exports.
|
|
1765
|
-
const
|
|
1754
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1755
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1766
1756
|
const parsedOutput = {
|
|
1767
1757
|
...output,
|
|
1768
1758
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1771,16 +1761,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1771
1761
|
switch (errorCode) {
|
|
1772
1762
|
case "AccessPointNotFound":
|
|
1773
1763
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1774
|
-
throw await
|
|
1764
|
+
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1775
1765
|
case "BadRequest":
|
|
1776
1766
|
case "com.amazonaws.efs#BadRequest":
|
|
1777
|
-
throw await
|
|
1767
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1778
1768
|
case "FileSystemNotFound":
|
|
1779
1769
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1780
|
-
throw await
|
|
1770
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1781
1771
|
case "InternalServerError":
|
|
1782
1772
|
case "com.amazonaws.efs#InternalServerError":
|
|
1783
|
-
throw await
|
|
1773
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1784
1774
|
default:
|
|
1785
1775
|
const parsedBody = parsedOutput.body;
|
|
1786
1776
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1791,9 +1781,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1791
1781
|
});
|
|
1792
1782
|
}
|
|
1793
1783
|
};
|
|
1794
|
-
const
|
|
1784
|
+
const de_ModifyMountTargetSecurityGroupsCommand = async (output, context) => {
|
|
1795
1785
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1796
|
-
return
|
|
1786
|
+
return de_ModifyMountTargetSecurityGroupsCommandError(output, context);
|
|
1797
1787
|
}
|
|
1798
1788
|
const contents = map({
|
|
1799
1789
|
$metadata: deserializeMetadata(output),
|
|
@@ -1801,8 +1791,8 @@ const deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = async (ou
|
|
|
1801
1791
|
await collectBody(output.body, context);
|
|
1802
1792
|
return contents;
|
|
1803
1793
|
};
|
|
1804
|
-
exports.
|
|
1805
|
-
const
|
|
1794
|
+
exports.de_ModifyMountTargetSecurityGroupsCommand = de_ModifyMountTargetSecurityGroupsCommand;
|
|
1795
|
+
const de_ModifyMountTargetSecurityGroupsCommandError = async (output, context) => {
|
|
1806
1796
|
const parsedOutput = {
|
|
1807
1797
|
...output,
|
|
1808
1798
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1811,22 +1801,22 @@ const deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommandError = asyn
|
|
|
1811
1801
|
switch (errorCode) {
|
|
1812
1802
|
case "BadRequest":
|
|
1813
1803
|
case "com.amazonaws.efs#BadRequest":
|
|
1814
|
-
throw await
|
|
1804
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1815
1805
|
case "IncorrectMountTargetState":
|
|
1816
1806
|
case "com.amazonaws.efs#IncorrectMountTargetState":
|
|
1817
|
-
throw await
|
|
1807
|
+
throw await de_IncorrectMountTargetStateRes(parsedOutput, context);
|
|
1818
1808
|
case "InternalServerError":
|
|
1819
1809
|
case "com.amazonaws.efs#InternalServerError":
|
|
1820
|
-
throw await
|
|
1810
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1821
1811
|
case "MountTargetNotFound":
|
|
1822
1812
|
case "com.amazonaws.efs#MountTargetNotFound":
|
|
1823
|
-
throw await
|
|
1813
|
+
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
1824
1814
|
case "SecurityGroupLimitExceeded":
|
|
1825
1815
|
case "com.amazonaws.efs#SecurityGroupLimitExceeded":
|
|
1826
|
-
throw await
|
|
1816
|
+
throw await de_SecurityGroupLimitExceededRes(parsedOutput, context);
|
|
1827
1817
|
case "SecurityGroupNotFound":
|
|
1828
1818
|
case "com.amazonaws.efs#SecurityGroupNotFound":
|
|
1829
|
-
throw await
|
|
1819
|
+
throw await de_SecurityGroupNotFoundRes(parsedOutput, context);
|
|
1830
1820
|
default:
|
|
1831
1821
|
const parsedBody = parsedOutput.body;
|
|
1832
1822
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1837,21 +1827,21 @@ const deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommandError = asyn
|
|
|
1837
1827
|
});
|
|
1838
1828
|
}
|
|
1839
1829
|
};
|
|
1840
|
-
const
|
|
1830
|
+
const de_PutAccountPreferencesCommand = async (output, context) => {
|
|
1841
1831
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1842
|
-
return
|
|
1832
|
+
return de_PutAccountPreferencesCommandError(output, context);
|
|
1843
1833
|
}
|
|
1844
1834
|
const contents = map({
|
|
1845
1835
|
$metadata: deserializeMetadata(output),
|
|
1846
1836
|
});
|
|
1847
1837
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1848
1838
|
if (data.ResourceIdPreference != null) {
|
|
1849
|
-
contents.ResourceIdPreference =
|
|
1839
|
+
contents.ResourceIdPreference = de_ResourceIdPreference(data.ResourceIdPreference, context);
|
|
1850
1840
|
}
|
|
1851
1841
|
return contents;
|
|
1852
1842
|
};
|
|
1853
|
-
exports.
|
|
1854
|
-
const
|
|
1843
|
+
exports.de_PutAccountPreferencesCommand = de_PutAccountPreferencesCommand;
|
|
1844
|
+
const de_PutAccountPreferencesCommandError = async (output, context) => {
|
|
1855
1845
|
const parsedOutput = {
|
|
1856
1846
|
...output,
|
|
1857
1847
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1860,10 +1850,10 @@ const deserializeAws_restJson1PutAccountPreferencesCommandError = async (output,
|
|
|
1860
1850
|
switch (errorCode) {
|
|
1861
1851
|
case "BadRequest":
|
|
1862
1852
|
case "com.amazonaws.efs#BadRequest":
|
|
1863
|
-
throw await
|
|
1853
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1864
1854
|
case "InternalServerError":
|
|
1865
1855
|
case "com.amazonaws.efs#InternalServerError":
|
|
1866
|
-
throw await
|
|
1856
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1867
1857
|
default:
|
|
1868
1858
|
const parsedBody = parsedOutput.body;
|
|
1869
1859
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1874,21 +1864,21 @@ const deserializeAws_restJson1PutAccountPreferencesCommandError = async (output,
|
|
|
1874
1864
|
});
|
|
1875
1865
|
}
|
|
1876
1866
|
};
|
|
1877
|
-
const
|
|
1867
|
+
const de_PutBackupPolicyCommand = async (output, context) => {
|
|
1878
1868
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1879
|
-
return
|
|
1869
|
+
return de_PutBackupPolicyCommandError(output, context);
|
|
1880
1870
|
}
|
|
1881
1871
|
const contents = map({
|
|
1882
1872
|
$metadata: deserializeMetadata(output),
|
|
1883
1873
|
});
|
|
1884
1874
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1885
1875
|
if (data.BackupPolicy != null) {
|
|
1886
|
-
contents.BackupPolicy =
|
|
1876
|
+
contents.BackupPolicy = de_BackupPolicy(data.BackupPolicy, context);
|
|
1887
1877
|
}
|
|
1888
1878
|
return contents;
|
|
1889
1879
|
};
|
|
1890
|
-
exports.
|
|
1891
|
-
const
|
|
1880
|
+
exports.de_PutBackupPolicyCommand = de_PutBackupPolicyCommand;
|
|
1881
|
+
const de_PutBackupPolicyCommandError = async (output, context) => {
|
|
1892
1882
|
const parsedOutput = {
|
|
1893
1883
|
...output,
|
|
1894
1884
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1897,19 +1887,19 @@ const deserializeAws_restJson1PutBackupPolicyCommandError = async (output, conte
|
|
|
1897
1887
|
switch (errorCode) {
|
|
1898
1888
|
case "BadRequest":
|
|
1899
1889
|
case "com.amazonaws.efs#BadRequest":
|
|
1900
|
-
throw await
|
|
1890
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1901
1891
|
case "FileSystemNotFound":
|
|
1902
1892
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1903
|
-
throw await
|
|
1893
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1904
1894
|
case "IncorrectFileSystemLifeCycleState":
|
|
1905
1895
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1906
|
-
throw await
|
|
1896
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1907
1897
|
case "InternalServerError":
|
|
1908
1898
|
case "com.amazonaws.efs#InternalServerError":
|
|
1909
|
-
throw await
|
|
1899
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1910
1900
|
case "ValidationException":
|
|
1911
1901
|
case "com.amazonaws.efs#ValidationException":
|
|
1912
|
-
throw await
|
|
1902
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1913
1903
|
default:
|
|
1914
1904
|
const parsedBody = parsedOutput.body;
|
|
1915
1905
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1920,9 +1910,9 @@ const deserializeAws_restJson1PutBackupPolicyCommandError = async (output, conte
|
|
|
1920
1910
|
});
|
|
1921
1911
|
}
|
|
1922
1912
|
};
|
|
1923
|
-
const
|
|
1913
|
+
const de_PutFileSystemPolicyCommand = async (output, context) => {
|
|
1924
1914
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1925
|
-
return
|
|
1915
|
+
return de_PutFileSystemPolicyCommandError(output, context);
|
|
1926
1916
|
}
|
|
1927
1917
|
const contents = map({
|
|
1928
1918
|
$metadata: deserializeMetadata(output),
|
|
@@ -1936,8 +1926,8 @@ const deserializeAws_restJson1PutFileSystemPolicyCommand = async (output, contex
|
|
|
1936
1926
|
}
|
|
1937
1927
|
return contents;
|
|
1938
1928
|
};
|
|
1939
|
-
exports.
|
|
1940
|
-
const
|
|
1929
|
+
exports.de_PutFileSystemPolicyCommand = de_PutFileSystemPolicyCommand;
|
|
1930
|
+
const de_PutFileSystemPolicyCommandError = async (output, context) => {
|
|
1941
1931
|
const parsedOutput = {
|
|
1942
1932
|
...output,
|
|
1943
1933
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1946,19 +1936,19 @@ const deserializeAws_restJson1PutFileSystemPolicyCommandError = async (output, c
|
|
|
1946
1936
|
switch (errorCode) {
|
|
1947
1937
|
case "BadRequest":
|
|
1948
1938
|
case "com.amazonaws.efs#BadRequest":
|
|
1949
|
-
throw await
|
|
1939
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1950
1940
|
case "FileSystemNotFound":
|
|
1951
1941
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1952
|
-
throw await
|
|
1942
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1953
1943
|
case "IncorrectFileSystemLifeCycleState":
|
|
1954
1944
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1955
|
-
throw await
|
|
1945
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1956
1946
|
case "InternalServerError":
|
|
1957
1947
|
case "com.amazonaws.efs#InternalServerError":
|
|
1958
|
-
throw await
|
|
1948
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1959
1949
|
case "InvalidPolicyException":
|
|
1960
1950
|
case "com.amazonaws.efs#InvalidPolicyException":
|
|
1961
|
-
throw await
|
|
1951
|
+
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
1962
1952
|
default:
|
|
1963
1953
|
const parsedBody = parsedOutput.body;
|
|
1964
1954
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1969,21 +1959,21 @@ const deserializeAws_restJson1PutFileSystemPolicyCommandError = async (output, c
|
|
|
1969
1959
|
});
|
|
1970
1960
|
}
|
|
1971
1961
|
};
|
|
1972
|
-
const
|
|
1962
|
+
const de_PutLifecycleConfigurationCommand = async (output, context) => {
|
|
1973
1963
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1974
|
-
return
|
|
1964
|
+
return de_PutLifecycleConfigurationCommandError(output, context);
|
|
1975
1965
|
}
|
|
1976
1966
|
const contents = map({
|
|
1977
1967
|
$metadata: deserializeMetadata(output),
|
|
1978
1968
|
});
|
|
1979
1969
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1980
1970
|
if (data.LifecyclePolicies != null) {
|
|
1981
|
-
contents.LifecyclePolicies =
|
|
1971
|
+
contents.LifecyclePolicies = de_LifecyclePolicies(data.LifecyclePolicies, context);
|
|
1982
1972
|
}
|
|
1983
1973
|
return contents;
|
|
1984
1974
|
};
|
|
1985
|
-
exports.
|
|
1986
|
-
const
|
|
1975
|
+
exports.de_PutLifecycleConfigurationCommand = de_PutLifecycleConfigurationCommand;
|
|
1976
|
+
const de_PutLifecycleConfigurationCommandError = async (output, context) => {
|
|
1987
1977
|
const parsedOutput = {
|
|
1988
1978
|
...output,
|
|
1989
1979
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1992,16 +1982,16 @@ const deserializeAws_restJson1PutLifecycleConfigurationCommandError = async (out
|
|
|
1992
1982
|
switch (errorCode) {
|
|
1993
1983
|
case "BadRequest":
|
|
1994
1984
|
case "com.amazonaws.efs#BadRequest":
|
|
1995
|
-
throw await
|
|
1985
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
1996
1986
|
case "FileSystemNotFound":
|
|
1997
1987
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1998
|
-
throw await
|
|
1988
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1999
1989
|
case "IncorrectFileSystemLifeCycleState":
|
|
2000
1990
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
2001
|
-
throw await
|
|
1991
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
2002
1992
|
case "InternalServerError":
|
|
2003
1993
|
case "com.amazonaws.efs#InternalServerError":
|
|
2004
|
-
throw await
|
|
1994
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2005
1995
|
default:
|
|
2006
1996
|
const parsedBody = parsedOutput.body;
|
|
2007
1997
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2012,9 +2002,9 @@ const deserializeAws_restJson1PutLifecycleConfigurationCommandError = async (out
|
|
|
2012
2002
|
});
|
|
2013
2003
|
}
|
|
2014
2004
|
};
|
|
2015
|
-
const
|
|
2005
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
2016
2006
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2017
|
-
return
|
|
2007
|
+
return de_TagResourceCommandError(output, context);
|
|
2018
2008
|
}
|
|
2019
2009
|
const contents = map({
|
|
2020
2010
|
$metadata: deserializeMetadata(output),
|
|
@@ -2022,8 +2012,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
2022
2012
|
await collectBody(output.body, context);
|
|
2023
2013
|
return contents;
|
|
2024
2014
|
};
|
|
2025
|
-
exports.
|
|
2026
|
-
const
|
|
2015
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2016
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2027
2017
|
const parsedOutput = {
|
|
2028
2018
|
...output,
|
|
2029
2019
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2032,16 +2022,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2032
2022
|
switch (errorCode) {
|
|
2033
2023
|
case "AccessPointNotFound":
|
|
2034
2024
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
2035
|
-
throw await
|
|
2025
|
+
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
2036
2026
|
case "BadRequest":
|
|
2037
2027
|
case "com.amazonaws.efs#BadRequest":
|
|
2038
|
-
throw await
|
|
2028
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
2039
2029
|
case "FileSystemNotFound":
|
|
2040
2030
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2041
|
-
throw await
|
|
2031
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2042
2032
|
case "InternalServerError":
|
|
2043
2033
|
case "com.amazonaws.efs#InternalServerError":
|
|
2044
|
-
throw await
|
|
2034
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2045
2035
|
default:
|
|
2046
2036
|
const parsedBody = parsedOutput.body;
|
|
2047
2037
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2052,9 +2042,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2052
2042
|
});
|
|
2053
2043
|
}
|
|
2054
2044
|
};
|
|
2055
|
-
const
|
|
2045
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
2056
2046
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2057
|
-
return
|
|
2047
|
+
return de_UntagResourceCommandError(output, context);
|
|
2058
2048
|
}
|
|
2059
2049
|
const contents = map({
|
|
2060
2050
|
$metadata: deserializeMetadata(output),
|
|
@@ -2062,8 +2052,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
2062
2052
|
await collectBody(output.body, context);
|
|
2063
2053
|
return contents;
|
|
2064
2054
|
};
|
|
2065
|
-
exports.
|
|
2066
|
-
const
|
|
2055
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2056
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2067
2057
|
const parsedOutput = {
|
|
2068
2058
|
...output,
|
|
2069
2059
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2072,16 +2062,16 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2072
2062
|
switch (errorCode) {
|
|
2073
2063
|
case "AccessPointNotFound":
|
|
2074
2064
|
case "com.amazonaws.efs#AccessPointNotFound":
|
|
2075
|
-
throw await
|
|
2065
|
+
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
2076
2066
|
case "BadRequest":
|
|
2077
2067
|
case "com.amazonaws.efs#BadRequest":
|
|
2078
|
-
throw await
|
|
2068
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
2079
2069
|
case "FileSystemNotFound":
|
|
2080
2070
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2081
|
-
throw await
|
|
2071
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2082
2072
|
case "InternalServerError":
|
|
2083
2073
|
case "com.amazonaws.efs#InternalServerError":
|
|
2084
|
-
throw await
|
|
2074
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2085
2075
|
default:
|
|
2086
2076
|
const parsedBody = parsedOutput.body;
|
|
2087
2077
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2092,9 +2082,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2092
2082
|
});
|
|
2093
2083
|
}
|
|
2094
2084
|
};
|
|
2095
|
-
const
|
|
2085
|
+
const de_UpdateFileSystemCommand = async (output, context) => {
|
|
2096
2086
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2097
|
-
return
|
|
2087
|
+
return de_UpdateFileSystemCommandError(output, context);
|
|
2098
2088
|
}
|
|
2099
2089
|
const contents = map({
|
|
2100
2090
|
$metadata: deserializeMetadata(output),
|
|
@@ -2143,18 +2133,18 @@ const deserializeAws_restJson1UpdateFileSystemCommand = async (output, context)
|
|
|
2143
2133
|
contents.ProvisionedThroughputInMibps = (0, smithy_client_1.limitedParseDouble)(data.ProvisionedThroughputInMibps);
|
|
2144
2134
|
}
|
|
2145
2135
|
if (data.SizeInBytes != null) {
|
|
2146
|
-
contents.SizeInBytes =
|
|
2136
|
+
contents.SizeInBytes = de_FileSystemSize(data.SizeInBytes, context);
|
|
2147
2137
|
}
|
|
2148
2138
|
if (data.Tags != null) {
|
|
2149
|
-
contents.Tags =
|
|
2139
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
2150
2140
|
}
|
|
2151
2141
|
if (data.ThroughputMode != null) {
|
|
2152
2142
|
contents.ThroughputMode = (0, smithy_client_1.expectString)(data.ThroughputMode);
|
|
2153
2143
|
}
|
|
2154
2144
|
return contents;
|
|
2155
2145
|
};
|
|
2156
|
-
exports.
|
|
2157
|
-
const
|
|
2146
|
+
exports.de_UpdateFileSystemCommand = de_UpdateFileSystemCommand;
|
|
2147
|
+
const de_UpdateFileSystemCommandError = async (output, context) => {
|
|
2158
2148
|
const parsedOutput = {
|
|
2159
2149
|
...output,
|
|
2160
2150
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2163,25 +2153,25 @@ const deserializeAws_restJson1UpdateFileSystemCommandError = async (output, cont
|
|
|
2163
2153
|
switch (errorCode) {
|
|
2164
2154
|
case "BadRequest":
|
|
2165
2155
|
case "com.amazonaws.efs#BadRequest":
|
|
2166
|
-
throw await
|
|
2156
|
+
throw await de_BadRequestRes(parsedOutput, context);
|
|
2167
2157
|
case "FileSystemNotFound":
|
|
2168
2158
|
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2169
|
-
throw await
|
|
2159
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2170
2160
|
case "IncorrectFileSystemLifeCycleState":
|
|
2171
2161
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
2172
|
-
throw await
|
|
2162
|
+
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
2173
2163
|
case "InsufficientThroughputCapacity":
|
|
2174
2164
|
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
2175
|
-
throw await
|
|
2165
|
+
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
2176
2166
|
case "InternalServerError":
|
|
2177
2167
|
case "com.amazonaws.efs#InternalServerError":
|
|
2178
|
-
throw await
|
|
2168
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2179
2169
|
case "ThroughputLimitExceeded":
|
|
2180
2170
|
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
2181
|
-
throw await
|
|
2171
|
+
throw await de_ThroughputLimitExceededRes(parsedOutput, context);
|
|
2182
2172
|
case "TooManyRequests":
|
|
2183
2173
|
case "com.amazonaws.efs#TooManyRequests":
|
|
2184
|
-
throw await
|
|
2174
|
+
throw await de_TooManyRequestsRes(parsedOutput, context);
|
|
2185
2175
|
default:
|
|
2186
2176
|
const parsedBody = parsedOutput.body;
|
|
2187
2177
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2193,7 +2183,7 @@ const deserializeAws_restJson1UpdateFileSystemCommandError = async (output, cont
|
|
|
2193
2183
|
}
|
|
2194
2184
|
};
|
|
2195
2185
|
const map = smithy_client_1.map;
|
|
2196
|
-
const
|
|
2186
|
+
const de_AccessPointAlreadyExistsRes = async (parsedOutput, context) => {
|
|
2197
2187
|
const contents = map({});
|
|
2198
2188
|
const data = parsedOutput.body;
|
|
2199
2189
|
if (data.AccessPointId != null) {
|
|
@@ -2211,7 +2201,7 @@ const deserializeAws_restJson1AccessPointAlreadyExistsResponse = async (parsedOu
|
|
|
2211
2201
|
});
|
|
2212
2202
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2213
2203
|
};
|
|
2214
|
-
const
|
|
2204
|
+
const de_AccessPointLimitExceededRes = async (parsedOutput, context) => {
|
|
2215
2205
|
const contents = map({});
|
|
2216
2206
|
const data = parsedOutput.body;
|
|
2217
2207
|
if (data.ErrorCode != null) {
|
|
@@ -2226,7 +2216,7 @@ const deserializeAws_restJson1AccessPointLimitExceededResponse = async (parsedOu
|
|
|
2226
2216
|
});
|
|
2227
2217
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2228
2218
|
};
|
|
2229
|
-
const
|
|
2219
|
+
const de_AccessPointNotFoundRes = async (parsedOutput, context) => {
|
|
2230
2220
|
const contents = map({});
|
|
2231
2221
|
const data = parsedOutput.body;
|
|
2232
2222
|
if (data.ErrorCode != null) {
|
|
@@ -2241,7 +2231,7 @@ const deserializeAws_restJson1AccessPointNotFoundResponse = async (parsedOutput,
|
|
|
2241
2231
|
});
|
|
2242
2232
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2243
2233
|
};
|
|
2244
|
-
const
|
|
2234
|
+
const de_AvailabilityZonesMismatchRes = async (parsedOutput, context) => {
|
|
2245
2235
|
const contents = map({});
|
|
2246
2236
|
const data = parsedOutput.body;
|
|
2247
2237
|
if (data.ErrorCode != null) {
|
|
@@ -2256,7 +2246,7 @@ const deserializeAws_restJson1AvailabilityZonesMismatchResponse = async (parsedO
|
|
|
2256
2246
|
});
|
|
2257
2247
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2258
2248
|
};
|
|
2259
|
-
const
|
|
2249
|
+
const de_BadRequestRes = async (parsedOutput, context) => {
|
|
2260
2250
|
const contents = map({});
|
|
2261
2251
|
const data = parsedOutput.body;
|
|
2262
2252
|
if (data.ErrorCode != null) {
|
|
@@ -2271,7 +2261,7 @@ const deserializeAws_restJson1BadRequestResponse = async (parsedOutput, context)
|
|
|
2271
2261
|
});
|
|
2272
2262
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2273
2263
|
};
|
|
2274
|
-
const
|
|
2264
|
+
const de_DependencyTimeoutRes = async (parsedOutput, context) => {
|
|
2275
2265
|
const contents = map({});
|
|
2276
2266
|
const data = parsedOutput.body;
|
|
2277
2267
|
if (data.ErrorCode != null) {
|
|
@@ -2286,7 +2276,7 @@ const deserializeAws_restJson1DependencyTimeoutResponse = async (parsedOutput, c
|
|
|
2286
2276
|
});
|
|
2287
2277
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2288
2278
|
};
|
|
2289
|
-
const
|
|
2279
|
+
const de_FileSystemAlreadyExistsRes = async (parsedOutput, context) => {
|
|
2290
2280
|
const contents = map({});
|
|
2291
2281
|
const data = parsedOutput.body;
|
|
2292
2282
|
if (data.ErrorCode != null) {
|
|
@@ -2304,7 +2294,7 @@ const deserializeAws_restJson1FileSystemAlreadyExistsResponse = async (parsedOut
|
|
|
2304
2294
|
});
|
|
2305
2295
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2306
2296
|
};
|
|
2307
|
-
const
|
|
2297
|
+
const de_FileSystemInUseRes = async (parsedOutput, context) => {
|
|
2308
2298
|
const contents = map({});
|
|
2309
2299
|
const data = parsedOutput.body;
|
|
2310
2300
|
if (data.ErrorCode != null) {
|
|
@@ -2319,7 +2309,7 @@ const deserializeAws_restJson1FileSystemInUseResponse = async (parsedOutput, con
|
|
|
2319
2309
|
});
|
|
2320
2310
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2321
2311
|
};
|
|
2322
|
-
const
|
|
2312
|
+
const de_FileSystemLimitExceededRes = async (parsedOutput, context) => {
|
|
2323
2313
|
const contents = map({});
|
|
2324
2314
|
const data = parsedOutput.body;
|
|
2325
2315
|
if (data.ErrorCode != null) {
|
|
@@ -2334,7 +2324,7 @@ const deserializeAws_restJson1FileSystemLimitExceededResponse = async (parsedOut
|
|
|
2334
2324
|
});
|
|
2335
2325
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2336
2326
|
};
|
|
2337
|
-
const
|
|
2327
|
+
const de_FileSystemNotFoundRes = async (parsedOutput, context) => {
|
|
2338
2328
|
const contents = map({});
|
|
2339
2329
|
const data = parsedOutput.body;
|
|
2340
2330
|
if (data.ErrorCode != null) {
|
|
@@ -2349,7 +2339,7 @@ const deserializeAws_restJson1FileSystemNotFoundResponse = async (parsedOutput,
|
|
|
2349
2339
|
});
|
|
2350
2340
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2351
2341
|
};
|
|
2352
|
-
const
|
|
2342
|
+
const de_IncorrectFileSystemLifeCycleStateRes = async (parsedOutput, context) => {
|
|
2353
2343
|
const contents = map({});
|
|
2354
2344
|
const data = parsedOutput.body;
|
|
2355
2345
|
if (data.ErrorCode != null) {
|
|
@@ -2364,7 +2354,7 @@ const deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse = async
|
|
|
2364
2354
|
});
|
|
2365
2355
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2366
2356
|
};
|
|
2367
|
-
const
|
|
2357
|
+
const de_IncorrectMountTargetStateRes = async (parsedOutput, context) => {
|
|
2368
2358
|
const contents = map({});
|
|
2369
2359
|
const data = parsedOutput.body;
|
|
2370
2360
|
if (data.ErrorCode != null) {
|
|
@@ -2379,7 +2369,7 @@ const deserializeAws_restJson1IncorrectMountTargetStateResponse = async (parsedO
|
|
|
2379
2369
|
});
|
|
2380
2370
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2381
2371
|
};
|
|
2382
|
-
const
|
|
2372
|
+
const de_InsufficientThroughputCapacityRes = async (parsedOutput, context) => {
|
|
2383
2373
|
const contents = map({});
|
|
2384
2374
|
const data = parsedOutput.body;
|
|
2385
2375
|
if (data.ErrorCode != null) {
|
|
@@ -2394,7 +2384,7 @@ const deserializeAws_restJson1InsufficientThroughputCapacityResponse = async (pa
|
|
|
2394
2384
|
});
|
|
2395
2385
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2396
2386
|
};
|
|
2397
|
-
const
|
|
2387
|
+
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
2398
2388
|
const contents = map({});
|
|
2399
2389
|
const data = parsedOutput.body;
|
|
2400
2390
|
if (data.ErrorCode != null) {
|
|
@@ -2409,7 +2399,7 @@ const deserializeAws_restJson1InternalServerErrorResponse = async (parsedOutput,
|
|
|
2409
2399
|
});
|
|
2410
2400
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2411
2401
|
};
|
|
2412
|
-
const
|
|
2402
|
+
const de_InvalidPolicyExceptionRes = async (parsedOutput, context) => {
|
|
2413
2403
|
const contents = map({});
|
|
2414
2404
|
const data = parsedOutput.body;
|
|
2415
2405
|
if (data.ErrorCode != null) {
|
|
@@ -2424,7 +2414,7 @@ const deserializeAws_restJson1InvalidPolicyExceptionResponse = async (parsedOutp
|
|
|
2424
2414
|
});
|
|
2425
2415
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2426
2416
|
};
|
|
2427
|
-
const
|
|
2417
|
+
const de_IpAddressInUseRes = async (parsedOutput, context) => {
|
|
2428
2418
|
const contents = map({});
|
|
2429
2419
|
const data = parsedOutput.body;
|
|
2430
2420
|
if (data.ErrorCode != null) {
|
|
@@ -2439,7 +2429,7 @@ const deserializeAws_restJson1IpAddressInUseResponse = async (parsedOutput, cont
|
|
|
2439
2429
|
});
|
|
2440
2430
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2441
2431
|
};
|
|
2442
|
-
const
|
|
2432
|
+
const de_MountTargetConflictRes = async (parsedOutput, context) => {
|
|
2443
2433
|
const contents = map({});
|
|
2444
2434
|
const data = parsedOutput.body;
|
|
2445
2435
|
if (data.ErrorCode != null) {
|
|
@@ -2454,7 +2444,7 @@ const deserializeAws_restJson1MountTargetConflictResponse = async (parsedOutput,
|
|
|
2454
2444
|
});
|
|
2455
2445
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2456
2446
|
};
|
|
2457
|
-
const
|
|
2447
|
+
const de_MountTargetNotFoundRes = async (parsedOutput, context) => {
|
|
2458
2448
|
const contents = map({});
|
|
2459
2449
|
const data = parsedOutput.body;
|
|
2460
2450
|
if (data.ErrorCode != null) {
|
|
@@ -2469,7 +2459,7 @@ const deserializeAws_restJson1MountTargetNotFoundResponse = async (parsedOutput,
|
|
|
2469
2459
|
});
|
|
2470
2460
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2471
2461
|
};
|
|
2472
|
-
const
|
|
2462
|
+
const de_NetworkInterfaceLimitExceededRes = async (parsedOutput, context) => {
|
|
2473
2463
|
const contents = map({});
|
|
2474
2464
|
const data = parsedOutput.body;
|
|
2475
2465
|
if (data.ErrorCode != null) {
|
|
@@ -2484,7 +2474,7 @@ const deserializeAws_restJson1NetworkInterfaceLimitExceededResponse = async (par
|
|
|
2484
2474
|
});
|
|
2485
2475
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2486
2476
|
};
|
|
2487
|
-
const
|
|
2477
|
+
const de_NoFreeAddressesInSubnetRes = async (parsedOutput, context) => {
|
|
2488
2478
|
const contents = map({});
|
|
2489
2479
|
const data = parsedOutput.body;
|
|
2490
2480
|
if (data.ErrorCode != null) {
|
|
@@ -2499,7 +2489,7 @@ const deserializeAws_restJson1NoFreeAddressesInSubnetResponse = async (parsedOut
|
|
|
2499
2489
|
});
|
|
2500
2490
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2501
2491
|
};
|
|
2502
|
-
const
|
|
2492
|
+
const de_PolicyNotFoundRes = async (parsedOutput, context) => {
|
|
2503
2493
|
const contents = map({});
|
|
2504
2494
|
const data = parsedOutput.body;
|
|
2505
2495
|
if (data.ErrorCode != null) {
|
|
@@ -2514,7 +2504,7 @@ const deserializeAws_restJson1PolicyNotFoundResponse = async (parsedOutput, cont
|
|
|
2514
2504
|
});
|
|
2515
2505
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2516
2506
|
};
|
|
2517
|
-
const
|
|
2507
|
+
const de_ReplicationNotFoundRes = async (parsedOutput, context) => {
|
|
2518
2508
|
const contents = map({});
|
|
2519
2509
|
const data = parsedOutput.body;
|
|
2520
2510
|
if (data.ErrorCode != null) {
|
|
@@ -2529,7 +2519,7 @@ const deserializeAws_restJson1ReplicationNotFoundResponse = async (parsedOutput,
|
|
|
2529
2519
|
});
|
|
2530
2520
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2531
2521
|
};
|
|
2532
|
-
const
|
|
2522
|
+
const de_SecurityGroupLimitExceededRes = async (parsedOutput, context) => {
|
|
2533
2523
|
const contents = map({});
|
|
2534
2524
|
const data = parsedOutput.body;
|
|
2535
2525
|
if (data.ErrorCode != null) {
|
|
@@ -2544,7 +2534,7 @@ const deserializeAws_restJson1SecurityGroupLimitExceededResponse = async (parsed
|
|
|
2544
2534
|
});
|
|
2545
2535
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2546
2536
|
};
|
|
2547
|
-
const
|
|
2537
|
+
const de_SecurityGroupNotFoundRes = async (parsedOutput, context) => {
|
|
2548
2538
|
const contents = map({});
|
|
2549
2539
|
const data = parsedOutput.body;
|
|
2550
2540
|
if (data.ErrorCode != null) {
|
|
@@ -2559,7 +2549,7 @@ const deserializeAws_restJson1SecurityGroupNotFoundResponse = async (parsedOutpu
|
|
|
2559
2549
|
});
|
|
2560
2550
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2561
2551
|
};
|
|
2562
|
-
const
|
|
2552
|
+
const de_SubnetNotFoundRes = async (parsedOutput, context) => {
|
|
2563
2553
|
const contents = map({});
|
|
2564
2554
|
const data = parsedOutput.body;
|
|
2565
2555
|
if (data.ErrorCode != null) {
|
|
@@ -2574,7 +2564,7 @@ const deserializeAws_restJson1SubnetNotFoundResponse = async (parsedOutput, cont
|
|
|
2574
2564
|
});
|
|
2575
2565
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2576
2566
|
};
|
|
2577
|
-
const
|
|
2567
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2578
2568
|
const contents = map({});
|
|
2579
2569
|
const data = parsedOutput.body;
|
|
2580
2570
|
if (data.ErrorCode != null) {
|
|
@@ -2589,7 +2579,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2589
2579
|
});
|
|
2590
2580
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2591
2581
|
};
|
|
2592
|
-
const
|
|
2582
|
+
const de_ThroughputLimitExceededRes = async (parsedOutput, context) => {
|
|
2593
2583
|
const contents = map({});
|
|
2594
2584
|
const data = parsedOutput.body;
|
|
2595
2585
|
if (data.ErrorCode != null) {
|
|
@@ -2604,7 +2594,7 @@ const deserializeAws_restJson1ThroughputLimitExceededResponse = async (parsedOut
|
|
|
2604
2594
|
});
|
|
2605
2595
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2606
2596
|
};
|
|
2607
|
-
const
|
|
2597
|
+
const de_TooManyRequestsRes = async (parsedOutput, context) => {
|
|
2608
2598
|
const contents = map({});
|
|
2609
2599
|
const data = parsedOutput.body;
|
|
2610
2600
|
if (data.ErrorCode != null) {
|
|
@@ -2619,7 +2609,7 @@ const deserializeAws_restJson1TooManyRequestsResponse = async (parsedOutput, con
|
|
|
2619
2609
|
});
|
|
2620
2610
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2621
2611
|
};
|
|
2622
|
-
const
|
|
2612
|
+
const de_UnsupportedAvailabilityZoneRes = async (parsedOutput, context) => {
|
|
2623
2613
|
const contents = map({});
|
|
2624
2614
|
const data = parsedOutput.body;
|
|
2625
2615
|
if (data.ErrorCode != null) {
|
|
@@ -2634,7 +2624,7 @@ const deserializeAws_restJson1UnsupportedAvailabilityZoneResponse = async (parse
|
|
|
2634
2624
|
});
|
|
2635
2625
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2636
2626
|
};
|
|
2637
|
-
const
|
|
2627
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2638
2628
|
const contents = map({});
|
|
2639
2629
|
const data = parsedOutput.body;
|
|
2640
2630
|
if (data.ErrorCode != null) {
|
|
@@ -2649,40 +2639,40 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2649
2639
|
});
|
|
2650
2640
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2651
2641
|
};
|
|
2652
|
-
const
|
|
2642
|
+
const se_BackupPolicy = (input, context) => {
|
|
2653
2643
|
return {
|
|
2654
2644
|
...(input.Status != null && { Status: input.Status }),
|
|
2655
2645
|
};
|
|
2656
2646
|
};
|
|
2657
|
-
const
|
|
2647
|
+
const se_CreationInfo = (input, context) => {
|
|
2658
2648
|
return {
|
|
2659
2649
|
...(input.OwnerGid != null && { OwnerGid: input.OwnerGid }),
|
|
2660
2650
|
...(input.OwnerUid != null && { OwnerUid: input.OwnerUid }),
|
|
2661
2651
|
...(input.Permissions != null && { Permissions: input.Permissions }),
|
|
2662
2652
|
};
|
|
2663
2653
|
};
|
|
2664
|
-
const
|
|
2654
|
+
const se_DestinationsToCreate = (input, context) => {
|
|
2665
2655
|
return input
|
|
2666
2656
|
.filter((e) => e != null)
|
|
2667
2657
|
.map((entry) => {
|
|
2668
|
-
return
|
|
2658
|
+
return se_DestinationToCreate(entry, context);
|
|
2669
2659
|
});
|
|
2670
2660
|
};
|
|
2671
|
-
const
|
|
2661
|
+
const se_DestinationToCreate = (input, context) => {
|
|
2672
2662
|
return {
|
|
2673
2663
|
...(input.AvailabilityZoneName != null && { AvailabilityZoneName: input.AvailabilityZoneName }),
|
|
2674
2664
|
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
2675
2665
|
...(input.Region != null && { Region: input.Region }),
|
|
2676
2666
|
};
|
|
2677
2667
|
};
|
|
2678
|
-
const
|
|
2668
|
+
const se_LifecyclePolicies = (input, context) => {
|
|
2679
2669
|
return input
|
|
2680
2670
|
.filter((e) => e != null)
|
|
2681
2671
|
.map((entry) => {
|
|
2682
|
-
return
|
|
2672
|
+
return se_LifecyclePolicy(entry, context);
|
|
2683
2673
|
});
|
|
2684
2674
|
};
|
|
2685
|
-
const
|
|
2675
|
+
const se_LifecyclePolicy = (input, context) => {
|
|
2686
2676
|
return {
|
|
2687
2677
|
...(input.TransitionToIA != null && { TransitionToIA: input.TransitionToIA }),
|
|
2688
2678
|
...(input.TransitionToPrimaryStorageClass != null && {
|
|
@@ -2690,58 +2680,54 @@ const serializeAws_restJson1LifecyclePolicy = (input, context) => {
|
|
|
2690
2680
|
}),
|
|
2691
2681
|
};
|
|
2692
2682
|
};
|
|
2693
|
-
const
|
|
2683
|
+
const se_PosixUser = (input, context) => {
|
|
2694
2684
|
return {
|
|
2695
2685
|
...(input.Gid != null && { Gid: input.Gid }),
|
|
2696
|
-
...(input.SecondaryGids != null && {
|
|
2697
|
-
SecondaryGids: serializeAws_restJson1SecondaryGids(input.SecondaryGids, context),
|
|
2698
|
-
}),
|
|
2686
|
+
...(input.SecondaryGids != null && { SecondaryGids: se_SecondaryGids(input.SecondaryGids, context) }),
|
|
2699
2687
|
...(input.Uid != null && { Uid: input.Uid }),
|
|
2700
2688
|
};
|
|
2701
2689
|
};
|
|
2702
|
-
const
|
|
2690
|
+
const se_RootDirectory = (input, context) => {
|
|
2703
2691
|
return {
|
|
2704
|
-
...(input.CreationInfo != null && {
|
|
2705
|
-
CreationInfo: serializeAws_restJson1CreationInfo(input.CreationInfo, context),
|
|
2706
|
-
}),
|
|
2692
|
+
...(input.CreationInfo != null && { CreationInfo: se_CreationInfo(input.CreationInfo, context) }),
|
|
2707
2693
|
...(input.Path != null && { Path: input.Path }),
|
|
2708
2694
|
};
|
|
2709
2695
|
};
|
|
2710
|
-
const
|
|
2696
|
+
const se_SecondaryGids = (input, context) => {
|
|
2711
2697
|
return input
|
|
2712
2698
|
.filter((e) => e != null)
|
|
2713
2699
|
.map((entry) => {
|
|
2714
2700
|
return entry;
|
|
2715
2701
|
});
|
|
2716
2702
|
};
|
|
2717
|
-
const
|
|
2703
|
+
const se_SecurityGroups = (input, context) => {
|
|
2718
2704
|
return input
|
|
2719
2705
|
.filter((e) => e != null)
|
|
2720
2706
|
.map((entry) => {
|
|
2721
2707
|
return entry;
|
|
2722
2708
|
});
|
|
2723
2709
|
};
|
|
2724
|
-
const
|
|
2710
|
+
const se_Tag = (input, context) => {
|
|
2725
2711
|
return {
|
|
2726
2712
|
...(input.Key != null && { Key: input.Key }),
|
|
2727
2713
|
...(input.Value != null && { Value: input.Value }),
|
|
2728
2714
|
};
|
|
2729
2715
|
};
|
|
2730
|
-
const
|
|
2716
|
+
const se_TagKeys = (input, context) => {
|
|
2731
2717
|
return input
|
|
2732
2718
|
.filter((e) => e != null)
|
|
2733
2719
|
.map((entry) => {
|
|
2734
2720
|
return entry;
|
|
2735
2721
|
});
|
|
2736
2722
|
};
|
|
2737
|
-
const
|
|
2723
|
+
const se_Tags = (input, context) => {
|
|
2738
2724
|
return input
|
|
2739
2725
|
.filter((e) => e != null)
|
|
2740
2726
|
.map((entry) => {
|
|
2741
|
-
return
|
|
2727
|
+
return se_Tag(entry, context);
|
|
2742
2728
|
});
|
|
2743
2729
|
};
|
|
2744
|
-
const
|
|
2730
|
+
const de_AccessPointDescription = (output, context) => {
|
|
2745
2731
|
return {
|
|
2746
2732
|
AccessPointArn: (0, smithy_client_1.expectString)(output.AccessPointArn),
|
|
2747
2733
|
AccessPointId: (0, smithy_client_1.expectString)(output.AccessPointId),
|
|
@@ -2750,35 +2736,35 @@ const deserializeAws_restJson1AccessPointDescription = (output, context) => {
|
|
|
2750
2736
|
LifeCycleState: (0, smithy_client_1.expectString)(output.LifeCycleState),
|
|
2751
2737
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2752
2738
|
OwnerId: (0, smithy_client_1.expectString)(output.OwnerId),
|
|
2753
|
-
PosixUser: output.PosixUser != null ?
|
|
2754
|
-
RootDirectory: output.RootDirectory != null ?
|
|
2755
|
-
Tags: output.Tags != null ?
|
|
2739
|
+
PosixUser: output.PosixUser != null ? de_PosixUser(output.PosixUser, context) : undefined,
|
|
2740
|
+
RootDirectory: output.RootDirectory != null ? de_RootDirectory(output.RootDirectory, context) : undefined,
|
|
2741
|
+
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
2756
2742
|
};
|
|
2757
2743
|
};
|
|
2758
|
-
const
|
|
2744
|
+
const de_AccessPointDescriptions = (output, context) => {
|
|
2759
2745
|
const retVal = (output || [])
|
|
2760
2746
|
.filter((e) => e != null)
|
|
2761
2747
|
.map((entry) => {
|
|
2762
2748
|
if (entry === null) {
|
|
2763
2749
|
return null;
|
|
2764
2750
|
}
|
|
2765
|
-
return
|
|
2751
|
+
return de_AccessPointDescription(entry, context);
|
|
2766
2752
|
});
|
|
2767
2753
|
return retVal;
|
|
2768
2754
|
};
|
|
2769
|
-
const
|
|
2755
|
+
const de_BackupPolicy = (output, context) => {
|
|
2770
2756
|
return {
|
|
2771
2757
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2772
2758
|
};
|
|
2773
2759
|
};
|
|
2774
|
-
const
|
|
2760
|
+
const de_CreationInfo = (output, context) => {
|
|
2775
2761
|
return {
|
|
2776
2762
|
OwnerGid: (0, smithy_client_1.expectLong)(output.OwnerGid),
|
|
2777
2763
|
OwnerUid: (0, smithy_client_1.expectLong)(output.OwnerUid),
|
|
2778
2764
|
Permissions: (0, smithy_client_1.expectString)(output.Permissions),
|
|
2779
2765
|
};
|
|
2780
2766
|
};
|
|
2781
|
-
const
|
|
2767
|
+
const de_Destination = (output, context) => {
|
|
2782
2768
|
return {
|
|
2783
2769
|
FileSystemId: (0, smithy_client_1.expectString)(output.FileSystemId),
|
|
2784
2770
|
LastReplicatedTimestamp: output.LastReplicatedTimestamp != null
|
|
@@ -2788,18 +2774,18 @@ const deserializeAws_restJson1Destination = (output, context) => {
|
|
|
2788
2774
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2789
2775
|
};
|
|
2790
2776
|
};
|
|
2791
|
-
const
|
|
2777
|
+
const de_Destinations = (output, context) => {
|
|
2792
2778
|
const retVal = (output || [])
|
|
2793
2779
|
.filter((e) => e != null)
|
|
2794
2780
|
.map((entry) => {
|
|
2795
2781
|
if (entry === null) {
|
|
2796
2782
|
return null;
|
|
2797
2783
|
}
|
|
2798
|
-
return
|
|
2784
|
+
return de_Destination(entry, context);
|
|
2799
2785
|
});
|
|
2800
2786
|
return retVal;
|
|
2801
2787
|
};
|
|
2802
|
-
const
|
|
2788
|
+
const de_FileSystemDescription = (output, context) => {
|
|
2803
2789
|
return {
|
|
2804
2790
|
AvailabilityZoneId: (0, smithy_client_1.expectString)(output.AvailabilityZoneId),
|
|
2805
2791
|
AvailabilityZoneName: (0, smithy_client_1.expectString)(output.AvailabilityZoneName),
|
|
@@ -2817,23 +2803,23 @@ const deserializeAws_restJson1FileSystemDescription = (output, context) => {
|
|
|
2817
2803
|
OwnerId: (0, smithy_client_1.expectString)(output.OwnerId),
|
|
2818
2804
|
PerformanceMode: (0, smithy_client_1.expectString)(output.PerformanceMode),
|
|
2819
2805
|
ProvisionedThroughputInMibps: (0, smithy_client_1.limitedParseDouble)(output.ProvisionedThroughputInMibps),
|
|
2820
|
-
SizeInBytes: output.SizeInBytes != null ?
|
|
2821
|
-
Tags: output.Tags != null ?
|
|
2806
|
+
SizeInBytes: output.SizeInBytes != null ? de_FileSystemSize(output.SizeInBytes, context) : undefined,
|
|
2807
|
+
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
2822
2808
|
ThroughputMode: (0, smithy_client_1.expectString)(output.ThroughputMode),
|
|
2823
2809
|
};
|
|
2824
2810
|
};
|
|
2825
|
-
const
|
|
2811
|
+
const de_FileSystemDescriptions = (output, context) => {
|
|
2826
2812
|
const retVal = (output || [])
|
|
2827
2813
|
.filter((e) => e != null)
|
|
2828
2814
|
.map((entry) => {
|
|
2829
2815
|
if (entry === null) {
|
|
2830
2816
|
return null;
|
|
2831
2817
|
}
|
|
2832
|
-
return
|
|
2818
|
+
return de_FileSystemDescription(entry, context);
|
|
2833
2819
|
});
|
|
2834
2820
|
return retVal;
|
|
2835
2821
|
};
|
|
2836
|
-
const
|
|
2822
|
+
const de_FileSystemSize = (output, context) => {
|
|
2837
2823
|
return {
|
|
2838
2824
|
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
2839
2825
|
Value: (0, smithy_client_1.expectLong)(output.Value),
|
|
@@ -2841,24 +2827,24 @@ const deserializeAws_restJson1FileSystemSize = (output, context) => {
|
|
|
2841
2827
|
ValueInStandard: (0, smithy_client_1.expectLong)(output.ValueInStandard),
|
|
2842
2828
|
};
|
|
2843
2829
|
};
|
|
2844
|
-
const
|
|
2830
|
+
const de_LifecyclePolicies = (output, context) => {
|
|
2845
2831
|
const retVal = (output || [])
|
|
2846
2832
|
.filter((e) => e != null)
|
|
2847
2833
|
.map((entry) => {
|
|
2848
2834
|
if (entry === null) {
|
|
2849
2835
|
return null;
|
|
2850
2836
|
}
|
|
2851
|
-
return
|
|
2837
|
+
return de_LifecyclePolicy(entry, context);
|
|
2852
2838
|
});
|
|
2853
2839
|
return retVal;
|
|
2854
2840
|
};
|
|
2855
|
-
const
|
|
2841
|
+
const de_LifecyclePolicy = (output, context) => {
|
|
2856
2842
|
return {
|
|
2857
2843
|
TransitionToIA: (0, smithy_client_1.expectString)(output.TransitionToIA),
|
|
2858
2844
|
TransitionToPrimaryStorageClass: (0, smithy_client_1.expectString)(output.TransitionToPrimaryStorageClass),
|
|
2859
2845
|
};
|
|
2860
2846
|
};
|
|
2861
|
-
const
|
|
2847
|
+
const de_MountTargetDescription = (output, context) => {
|
|
2862
2848
|
return {
|
|
2863
2849
|
AvailabilityZoneId: (0, smithy_client_1.expectString)(output.AvailabilityZoneId),
|
|
2864
2850
|
AvailabilityZoneName: (0, smithy_client_1.expectString)(output.AvailabilityZoneName),
|
|
@@ -2872,54 +2858,54 @@ const deserializeAws_restJson1MountTargetDescription = (output, context) => {
|
|
|
2872
2858
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
2873
2859
|
};
|
|
2874
2860
|
};
|
|
2875
|
-
const
|
|
2861
|
+
const de_MountTargetDescriptions = (output, context) => {
|
|
2876
2862
|
const retVal = (output || [])
|
|
2877
2863
|
.filter((e) => e != null)
|
|
2878
2864
|
.map((entry) => {
|
|
2879
2865
|
if (entry === null) {
|
|
2880
2866
|
return null;
|
|
2881
2867
|
}
|
|
2882
|
-
return
|
|
2868
|
+
return de_MountTargetDescription(entry, context);
|
|
2883
2869
|
});
|
|
2884
2870
|
return retVal;
|
|
2885
2871
|
};
|
|
2886
|
-
const
|
|
2872
|
+
const de_PosixUser = (output, context) => {
|
|
2887
2873
|
return {
|
|
2888
2874
|
Gid: (0, smithy_client_1.expectLong)(output.Gid),
|
|
2889
|
-
SecondaryGids: output.SecondaryGids != null ?
|
|
2875
|
+
SecondaryGids: output.SecondaryGids != null ? de_SecondaryGids(output.SecondaryGids, context) : undefined,
|
|
2890
2876
|
Uid: (0, smithy_client_1.expectLong)(output.Uid),
|
|
2891
2877
|
};
|
|
2892
2878
|
};
|
|
2893
|
-
const
|
|
2879
|
+
const de_ReplicationConfigurationDescription = (output, context) => {
|
|
2894
2880
|
return {
|
|
2895
2881
|
CreationTime: output.CreationTime != null
|
|
2896
2882
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2897
2883
|
: undefined,
|
|
2898
|
-
Destinations: output.Destinations != null ?
|
|
2884
|
+
Destinations: output.Destinations != null ? de_Destinations(output.Destinations, context) : undefined,
|
|
2899
2885
|
OriginalSourceFileSystemArn: (0, smithy_client_1.expectString)(output.OriginalSourceFileSystemArn),
|
|
2900
2886
|
SourceFileSystemArn: (0, smithy_client_1.expectString)(output.SourceFileSystemArn),
|
|
2901
2887
|
SourceFileSystemId: (0, smithy_client_1.expectString)(output.SourceFileSystemId),
|
|
2902
2888
|
SourceFileSystemRegion: (0, smithy_client_1.expectString)(output.SourceFileSystemRegion),
|
|
2903
2889
|
};
|
|
2904
2890
|
};
|
|
2905
|
-
const
|
|
2891
|
+
const de_ReplicationConfigurationDescriptions = (output, context) => {
|
|
2906
2892
|
const retVal = (output || [])
|
|
2907
2893
|
.filter((e) => e != null)
|
|
2908
2894
|
.map((entry) => {
|
|
2909
2895
|
if (entry === null) {
|
|
2910
2896
|
return null;
|
|
2911
2897
|
}
|
|
2912
|
-
return
|
|
2898
|
+
return de_ReplicationConfigurationDescription(entry, context);
|
|
2913
2899
|
});
|
|
2914
2900
|
return retVal;
|
|
2915
2901
|
};
|
|
2916
|
-
const
|
|
2902
|
+
const de_ResourceIdPreference = (output, context) => {
|
|
2917
2903
|
return {
|
|
2918
2904
|
ResourceIdType: (0, smithy_client_1.expectString)(output.ResourceIdType),
|
|
2919
|
-
Resources: output.Resources != null ?
|
|
2905
|
+
Resources: output.Resources != null ? de_Resources(output.Resources, context) : undefined,
|
|
2920
2906
|
};
|
|
2921
2907
|
};
|
|
2922
|
-
const
|
|
2908
|
+
const de_Resources = (output, context) => {
|
|
2923
2909
|
const retVal = (output || [])
|
|
2924
2910
|
.filter((e) => e != null)
|
|
2925
2911
|
.map((entry) => {
|
|
@@ -2930,13 +2916,13 @@ const deserializeAws_restJson1Resources = (output, context) => {
|
|
|
2930
2916
|
});
|
|
2931
2917
|
return retVal;
|
|
2932
2918
|
};
|
|
2933
|
-
const
|
|
2919
|
+
const de_RootDirectory = (output, context) => {
|
|
2934
2920
|
return {
|
|
2935
|
-
CreationInfo: output.CreationInfo != null ?
|
|
2921
|
+
CreationInfo: output.CreationInfo != null ? de_CreationInfo(output.CreationInfo, context) : undefined,
|
|
2936
2922
|
Path: (0, smithy_client_1.expectString)(output.Path),
|
|
2937
2923
|
};
|
|
2938
2924
|
};
|
|
2939
|
-
const
|
|
2925
|
+
const de_SecondaryGids = (output, context) => {
|
|
2940
2926
|
const retVal = (output || [])
|
|
2941
2927
|
.filter((e) => e != null)
|
|
2942
2928
|
.map((entry) => {
|
|
@@ -2947,7 +2933,7 @@ const deserializeAws_restJson1SecondaryGids = (output, context) => {
|
|
|
2947
2933
|
});
|
|
2948
2934
|
return retVal;
|
|
2949
2935
|
};
|
|
2950
|
-
const
|
|
2936
|
+
const de_SecurityGroups = (output, context) => {
|
|
2951
2937
|
const retVal = (output || [])
|
|
2952
2938
|
.filter((e) => e != null)
|
|
2953
2939
|
.map((entry) => {
|
|
@@ -2958,20 +2944,20 @@ const deserializeAws_restJson1SecurityGroups = (output, context) => {
|
|
|
2958
2944
|
});
|
|
2959
2945
|
return retVal;
|
|
2960
2946
|
};
|
|
2961
|
-
const
|
|
2947
|
+
const de_Tag = (output, context) => {
|
|
2962
2948
|
return {
|
|
2963
2949
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2964
2950
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2965
2951
|
};
|
|
2966
2952
|
};
|
|
2967
|
-
const
|
|
2953
|
+
const de_Tags = (output, context) => {
|
|
2968
2954
|
const retVal = (output || [])
|
|
2969
2955
|
.filter((e) => e != null)
|
|
2970
2956
|
.map((entry) => {
|
|
2971
2957
|
if (entry === null) {
|
|
2972
2958
|
return null;
|
|
2973
2959
|
}
|
|
2974
|
-
return
|
|
2960
|
+
return de_Tag(entry, context);
|
|
2975
2961
|
});
|
|
2976
2962
|
return retVal;
|
|
2977
2963
|
};
|