@aws-sdk/client-efs 3.489.0 → 3.495.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/EFS.js +1 -73
- package/dist-cjs/EFSClient.js +1 -43
- package/dist-cjs/commands/CreateAccessPointCommand.js +1 -28
- package/dist-cjs/commands/CreateFileSystemCommand.js +1 -28
- package/dist-cjs/commands/CreateMountTargetCommand.js +1 -28
- package/dist-cjs/commands/CreateReplicationConfigurationCommand.js +1 -28
- package/dist-cjs/commands/CreateTagsCommand.js +1 -28
- package/dist-cjs/commands/DeleteAccessPointCommand.js +1 -28
- package/dist-cjs/commands/DeleteFileSystemCommand.js +1 -28
- package/dist-cjs/commands/DeleteFileSystemPolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteMountTargetCommand.js +1 -28
- package/dist-cjs/commands/DeleteReplicationConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeleteTagsCommand.js +1 -28
- package/dist-cjs/commands/DescribeAccessPointsCommand.js +1 -28
- package/dist-cjs/commands/DescribeAccountPreferencesCommand.js +1 -28
- package/dist-cjs/commands/DescribeBackupPolicyCommand.js +1 -28
- package/dist-cjs/commands/DescribeFileSystemPolicyCommand.js +1 -28
- package/dist-cjs/commands/DescribeFileSystemsCommand.js +1 -28
- package/dist-cjs/commands/DescribeLifecycleConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DescribeMountTargetSecurityGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeMountTargetsCommand.js +1 -28
- package/dist-cjs/commands/DescribeReplicationConfigurationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeTagsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ModifyMountTargetSecurityGroupsCommand.js +1 -28
- package/dist-cjs/commands/PutAccountPreferencesCommand.js +1 -28
- package/dist-cjs/commands/PutBackupPolicyCommand.js +1 -28
- package/dist-cjs/commands/PutFileSystemPolicyCommand.js +1 -28
- package/dist-cjs/commands/PutLifecycleConfigurationCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateFileSystemCommand.js +1 -28
- package/dist-cjs/commands/UpdateFileSystemProtectionCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -34
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3993 -11
- package/dist-cjs/models/EFSServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -555
- package/dist-cjs/pagination/DescribeAccessPointsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeFileSystemsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeMountTargetsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeReplicationConfigurationsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeTagsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -10
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2464
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2464 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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_UpdateFileSystemProtectionCommand = 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_UpdateFileSystemProtectionCommand = 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 = exports.de_DescribeReplicationConfigurationsCommand = void 0;
|
|
5
|
-
const core_1 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const uuid_1 = require("uuid");
|
|
8
|
-
const EFSServiceException_1 = require("../models/EFSServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_CreateAccessPointCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
"content-type": "application/json",
|
|
14
|
-
};
|
|
15
|
-
b.bp("/2015-02-01/access-points");
|
|
16
|
-
let body;
|
|
17
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
19
|
-
FileSystemId: [],
|
|
20
|
-
PosixUser: (_) => (0, smithy_client_1._json)(_),
|
|
21
|
-
RootDirectory: (_) => (0, smithy_client_1._json)(_),
|
|
22
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
23
|
-
}));
|
|
24
|
-
b.m("POST").h(headers).b(body);
|
|
25
|
-
return b.build();
|
|
26
|
-
};
|
|
27
|
-
exports.se_CreateAccessPointCommand = se_CreateAccessPointCommand;
|
|
28
|
-
const se_CreateFileSystemCommand = async (input, context) => {
|
|
29
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
30
|
-
const headers = {
|
|
31
|
-
"content-type": "application/json",
|
|
32
|
-
};
|
|
33
|
-
b.bp("/2015-02-01/file-systems");
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
36
|
-
AvailabilityZoneName: [],
|
|
37
|
-
Backup: [],
|
|
38
|
-
CreationToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
39
|
-
Encrypted: [],
|
|
40
|
-
KmsKeyId: [],
|
|
41
|
-
PerformanceMode: [],
|
|
42
|
-
ProvisionedThroughputInMibps: (_) => (0, smithy_client_1.serializeFloat)(_),
|
|
43
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
44
|
-
ThroughputMode: [],
|
|
45
|
-
}));
|
|
46
|
-
b.m("POST").h(headers).b(body);
|
|
47
|
-
return b.build();
|
|
48
|
-
};
|
|
49
|
-
exports.se_CreateFileSystemCommand = se_CreateFileSystemCommand;
|
|
50
|
-
const se_CreateMountTargetCommand = async (input, context) => {
|
|
51
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
52
|
-
const headers = {
|
|
53
|
-
"content-type": "application/json",
|
|
54
|
-
};
|
|
55
|
-
b.bp("/2015-02-01/mount-targets");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
58
|
-
FileSystemId: [],
|
|
59
|
-
IpAddress: [],
|
|
60
|
-
SecurityGroups: (_) => (0, smithy_client_1._json)(_),
|
|
61
|
-
SubnetId: [],
|
|
62
|
-
}));
|
|
63
|
-
b.m("POST").h(headers).b(body);
|
|
64
|
-
return b.build();
|
|
65
|
-
};
|
|
66
|
-
exports.se_CreateMountTargetCommand = se_CreateMountTargetCommand;
|
|
67
|
-
const se_CreateReplicationConfigurationCommand = async (input, context) => {
|
|
68
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
69
|
-
const headers = {
|
|
70
|
-
"content-type": "application/json",
|
|
71
|
-
};
|
|
72
|
-
b.bp("/2015-02-01/file-systems/{SourceFileSystemId}/replication-configuration");
|
|
73
|
-
b.p("SourceFileSystemId", () => input.SourceFileSystemId, "{SourceFileSystemId}", false);
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
76
|
-
Destinations: (_) => (0, smithy_client_1._json)(_),
|
|
77
|
-
}));
|
|
78
|
-
b.m("POST").h(headers).b(body);
|
|
79
|
-
return b.build();
|
|
80
|
-
};
|
|
81
|
-
exports.se_CreateReplicationConfigurationCommand = se_CreateReplicationConfigurationCommand;
|
|
82
|
-
const se_CreateTagsCommand = async (input, context) => {
|
|
83
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
84
|
-
const headers = {
|
|
85
|
-
"content-type": "application/json",
|
|
86
|
-
};
|
|
87
|
-
b.bp("/2015-02-01/create-tags/{FileSystemId}");
|
|
88
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
89
|
-
let body;
|
|
90
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
91
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
92
|
-
}));
|
|
93
|
-
b.m("POST").h(headers).b(body);
|
|
94
|
-
return b.build();
|
|
95
|
-
};
|
|
96
|
-
exports.se_CreateTagsCommand = se_CreateTagsCommand;
|
|
97
|
-
const se_DeleteAccessPointCommand = async (input, context) => {
|
|
98
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
99
|
-
const headers = {};
|
|
100
|
-
b.bp("/2015-02-01/access-points/{AccessPointId}");
|
|
101
|
-
b.p("AccessPointId", () => input.AccessPointId, "{AccessPointId}", false);
|
|
102
|
-
let body;
|
|
103
|
-
b.m("DELETE").h(headers).b(body);
|
|
104
|
-
return b.build();
|
|
105
|
-
};
|
|
106
|
-
exports.se_DeleteAccessPointCommand = se_DeleteAccessPointCommand;
|
|
107
|
-
const se_DeleteFileSystemCommand = async (input, context) => {
|
|
108
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
109
|
-
const headers = {};
|
|
110
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}");
|
|
111
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
112
|
-
let body;
|
|
113
|
-
b.m("DELETE").h(headers).b(body);
|
|
114
|
-
return b.build();
|
|
115
|
-
};
|
|
116
|
-
exports.se_DeleteFileSystemCommand = se_DeleteFileSystemCommand;
|
|
117
|
-
const se_DeleteFileSystemPolicyCommand = async (input, context) => {
|
|
118
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
119
|
-
const headers = {};
|
|
120
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/policy");
|
|
121
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
122
|
-
let body;
|
|
123
|
-
b.m("DELETE").h(headers).b(body);
|
|
124
|
-
return b.build();
|
|
125
|
-
};
|
|
126
|
-
exports.se_DeleteFileSystemPolicyCommand = se_DeleteFileSystemPolicyCommand;
|
|
127
|
-
const se_DeleteMountTargetCommand = async (input, context) => {
|
|
128
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
129
|
-
const headers = {};
|
|
130
|
-
b.bp("/2015-02-01/mount-targets/{MountTargetId}");
|
|
131
|
-
b.p("MountTargetId", () => input.MountTargetId, "{MountTargetId}", false);
|
|
132
|
-
let body;
|
|
133
|
-
b.m("DELETE").h(headers).b(body);
|
|
134
|
-
return b.build();
|
|
135
|
-
};
|
|
136
|
-
exports.se_DeleteMountTargetCommand = se_DeleteMountTargetCommand;
|
|
137
|
-
const se_DeleteReplicationConfigurationCommand = async (input, context) => {
|
|
138
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
139
|
-
const headers = {};
|
|
140
|
-
b.bp("/2015-02-01/file-systems/{SourceFileSystemId}/replication-configuration");
|
|
141
|
-
b.p("SourceFileSystemId", () => input.SourceFileSystemId, "{SourceFileSystemId}", false);
|
|
142
|
-
let body;
|
|
143
|
-
b.m("DELETE").h(headers).b(body);
|
|
144
|
-
return b.build();
|
|
145
|
-
};
|
|
146
|
-
exports.se_DeleteReplicationConfigurationCommand = se_DeleteReplicationConfigurationCommand;
|
|
147
|
-
const se_DeleteTagsCommand = async (input, context) => {
|
|
148
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
149
|
-
const headers = {
|
|
150
|
-
"content-type": "application/json",
|
|
151
|
-
};
|
|
152
|
-
b.bp("/2015-02-01/delete-tags/{FileSystemId}");
|
|
153
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
154
|
-
let body;
|
|
155
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
156
|
-
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
157
|
-
}));
|
|
158
|
-
b.m("POST").h(headers).b(body);
|
|
159
|
-
return b.build();
|
|
160
|
-
};
|
|
161
|
-
exports.se_DeleteTagsCommand = se_DeleteTagsCommand;
|
|
162
|
-
const se_DescribeAccessPointsCommand = async (input, context) => {
|
|
163
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
164
|
-
const headers = {};
|
|
165
|
-
b.bp("/2015-02-01/access-points");
|
|
166
|
-
const query = (0, smithy_client_1.map)({
|
|
167
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
168
|
-
[_NT]: [, input[_NT]],
|
|
169
|
-
[_API]: [, input[_API]],
|
|
170
|
-
[_FSI]: [, input[_FSI]],
|
|
171
|
-
});
|
|
172
|
-
let body;
|
|
173
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
174
|
-
return b.build();
|
|
175
|
-
};
|
|
176
|
-
exports.se_DescribeAccessPointsCommand = se_DescribeAccessPointsCommand;
|
|
177
|
-
const se_DescribeAccountPreferencesCommand = async (input, context) => {
|
|
178
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
179
|
-
const headers = {
|
|
180
|
-
"content-type": "application/json",
|
|
181
|
-
};
|
|
182
|
-
b.bp("/2015-02-01/account-preferences");
|
|
183
|
-
let body;
|
|
184
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
185
|
-
MaxResults: [],
|
|
186
|
-
NextToken: [],
|
|
187
|
-
}));
|
|
188
|
-
b.m("GET").h(headers).b(body);
|
|
189
|
-
return b.build();
|
|
190
|
-
};
|
|
191
|
-
exports.se_DescribeAccountPreferencesCommand = se_DescribeAccountPreferencesCommand;
|
|
192
|
-
const se_DescribeBackupPolicyCommand = async (input, context) => {
|
|
193
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
194
|
-
const headers = {};
|
|
195
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/backup-policy");
|
|
196
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
197
|
-
let body;
|
|
198
|
-
b.m("GET").h(headers).b(body);
|
|
199
|
-
return b.build();
|
|
200
|
-
};
|
|
201
|
-
exports.se_DescribeBackupPolicyCommand = se_DescribeBackupPolicyCommand;
|
|
202
|
-
const se_DescribeFileSystemPolicyCommand = async (input, context) => {
|
|
203
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
204
|
-
const headers = {};
|
|
205
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/policy");
|
|
206
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
207
|
-
let body;
|
|
208
|
-
b.m("GET").h(headers).b(body);
|
|
209
|
-
return b.build();
|
|
210
|
-
};
|
|
211
|
-
exports.se_DescribeFileSystemPolicyCommand = se_DescribeFileSystemPolicyCommand;
|
|
212
|
-
const se_DescribeFileSystemsCommand = async (input, context) => {
|
|
213
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
214
|
-
const headers = {};
|
|
215
|
-
b.bp("/2015-02-01/file-systems");
|
|
216
|
-
const query = (0, smithy_client_1.map)({
|
|
217
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
218
|
-
[_M]: [, input[_M]],
|
|
219
|
-
[_CT]: [, input[_CT]],
|
|
220
|
-
[_FSI]: [, input[_FSI]],
|
|
221
|
-
});
|
|
222
|
-
let body;
|
|
223
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
224
|
-
return b.build();
|
|
225
|
-
};
|
|
226
|
-
exports.se_DescribeFileSystemsCommand = se_DescribeFileSystemsCommand;
|
|
227
|
-
const se_DescribeLifecycleConfigurationCommand = async (input, context) => {
|
|
228
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
229
|
-
const headers = {};
|
|
230
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/lifecycle-configuration");
|
|
231
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
232
|
-
let body;
|
|
233
|
-
b.m("GET").h(headers).b(body);
|
|
234
|
-
return b.build();
|
|
235
|
-
};
|
|
236
|
-
exports.se_DescribeLifecycleConfigurationCommand = se_DescribeLifecycleConfigurationCommand;
|
|
237
|
-
const se_DescribeMountTargetsCommand = async (input, context) => {
|
|
238
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
239
|
-
const headers = {};
|
|
240
|
-
b.bp("/2015-02-01/mount-targets");
|
|
241
|
-
const query = (0, smithy_client_1.map)({
|
|
242
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
243
|
-
[_M]: [, input[_M]],
|
|
244
|
-
[_FSI]: [, input[_FSI]],
|
|
245
|
-
[_MTI]: [, input[_MTI]],
|
|
246
|
-
[_API]: [, input[_API]],
|
|
247
|
-
});
|
|
248
|
-
let body;
|
|
249
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
250
|
-
return b.build();
|
|
251
|
-
};
|
|
252
|
-
exports.se_DescribeMountTargetsCommand = se_DescribeMountTargetsCommand;
|
|
253
|
-
const se_DescribeMountTargetSecurityGroupsCommand = async (input, context) => {
|
|
254
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
255
|
-
const headers = {};
|
|
256
|
-
b.bp("/2015-02-01/mount-targets/{MountTargetId}/security-groups");
|
|
257
|
-
b.p("MountTargetId", () => input.MountTargetId, "{MountTargetId}", false);
|
|
258
|
-
let body;
|
|
259
|
-
b.m("GET").h(headers).b(body);
|
|
260
|
-
return b.build();
|
|
261
|
-
};
|
|
262
|
-
exports.se_DescribeMountTargetSecurityGroupsCommand = se_DescribeMountTargetSecurityGroupsCommand;
|
|
263
|
-
const se_DescribeReplicationConfigurationsCommand = async (input, context) => {
|
|
264
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
265
|
-
const headers = {};
|
|
266
|
-
b.bp("/2015-02-01/file-systems/replication-configurations");
|
|
267
|
-
const query = (0, smithy_client_1.map)({
|
|
268
|
-
[_FSI]: [, input[_FSI]],
|
|
269
|
-
[_NT]: [, input[_NT]],
|
|
270
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
271
|
-
});
|
|
272
|
-
let body;
|
|
273
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
274
|
-
return b.build();
|
|
275
|
-
};
|
|
276
|
-
exports.se_DescribeReplicationConfigurationsCommand = se_DescribeReplicationConfigurationsCommand;
|
|
277
|
-
const se_DescribeTagsCommand = async (input, context) => {
|
|
278
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
279
|
-
const headers = {};
|
|
280
|
-
b.bp("/2015-02-01/tags/{FileSystemId}");
|
|
281
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
282
|
-
const query = (0, smithy_client_1.map)({
|
|
283
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
284
|
-
[_M]: [, input[_M]],
|
|
285
|
-
});
|
|
286
|
-
let body;
|
|
287
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
288
|
-
return b.build();
|
|
289
|
-
};
|
|
290
|
-
exports.se_DescribeTagsCommand = se_DescribeTagsCommand;
|
|
291
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
292
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
293
|
-
const headers = {};
|
|
294
|
-
b.bp("/2015-02-01/resource-tags/{ResourceId}");
|
|
295
|
-
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
296
|
-
const query = (0, smithy_client_1.map)({
|
|
297
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
298
|
-
[_NT]: [, input[_NT]],
|
|
299
|
-
});
|
|
300
|
-
let body;
|
|
301
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
302
|
-
return b.build();
|
|
303
|
-
};
|
|
304
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
305
|
-
const se_ModifyMountTargetSecurityGroupsCommand = async (input, context) => {
|
|
306
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
307
|
-
const headers = {
|
|
308
|
-
"content-type": "application/json",
|
|
309
|
-
};
|
|
310
|
-
b.bp("/2015-02-01/mount-targets/{MountTargetId}/security-groups");
|
|
311
|
-
b.p("MountTargetId", () => input.MountTargetId, "{MountTargetId}", false);
|
|
312
|
-
let body;
|
|
313
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
314
|
-
SecurityGroups: (_) => (0, smithy_client_1._json)(_),
|
|
315
|
-
}));
|
|
316
|
-
b.m("PUT").h(headers).b(body);
|
|
317
|
-
return b.build();
|
|
318
|
-
};
|
|
319
|
-
exports.se_ModifyMountTargetSecurityGroupsCommand = se_ModifyMountTargetSecurityGroupsCommand;
|
|
320
|
-
const se_PutAccountPreferencesCommand = async (input, context) => {
|
|
321
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
322
|
-
const headers = {
|
|
323
|
-
"content-type": "application/json",
|
|
324
|
-
};
|
|
325
|
-
b.bp("/2015-02-01/account-preferences");
|
|
326
|
-
let body;
|
|
327
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
328
|
-
ResourceIdType: [],
|
|
329
|
-
}));
|
|
330
|
-
b.m("PUT").h(headers).b(body);
|
|
331
|
-
return b.build();
|
|
332
|
-
};
|
|
333
|
-
exports.se_PutAccountPreferencesCommand = se_PutAccountPreferencesCommand;
|
|
334
|
-
const se_PutBackupPolicyCommand = async (input, context) => {
|
|
335
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
336
|
-
const headers = {
|
|
337
|
-
"content-type": "application/json",
|
|
338
|
-
};
|
|
339
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/backup-policy");
|
|
340
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
341
|
-
let body;
|
|
342
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
343
|
-
BackupPolicy: (_) => (0, smithy_client_1._json)(_),
|
|
344
|
-
}));
|
|
345
|
-
b.m("PUT").h(headers).b(body);
|
|
346
|
-
return b.build();
|
|
347
|
-
};
|
|
348
|
-
exports.se_PutBackupPolicyCommand = se_PutBackupPolicyCommand;
|
|
349
|
-
const se_PutFileSystemPolicyCommand = async (input, context) => {
|
|
350
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
351
|
-
const headers = {
|
|
352
|
-
"content-type": "application/json",
|
|
353
|
-
};
|
|
354
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/policy");
|
|
355
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
358
|
-
BypassPolicyLockoutSafetyCheck: [],
|
|
359
|
-
Policy: [],
|
|
360
|
-
}));
|
|
361
|
-
b.m("PUT").h(headers).b(body);
|
|
362
|
-
return b.build();
|
|
363
|
-
};
|
|
364
|
-
exports.se_PutFileSystemPolicyCommand = se_PutFileSystemPolicyCommand;
|
|
365
|
-
const se_PutLifecycleConfigurationCommand = async (input, context) => {
|
|
366
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
367
|
-
const headers = {
|
|
368
|
-
"content-type": "application/json",
|
|
369
|
-
};
|
|
370
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/lifecycle-configuration");
|
|
371
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
372
|
-
let body;
|
|
373
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
374
|
-
LifecyclePolicies: (_) => (0, smithy_client_1._json)(_),
|
|
375
|
-
}));
|
|
376
|
-
b.m("PUT").h(headers).b(body);
|
|
377
|
-
return b.build();
|
|
378
|
-
};
|
|
379
|
-
exports.se_PutLifecycleConfigurationCommand = se_PutLifecycleConfigurationCommand;
|
|
380
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
381
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
382
|
-
const headers = {
|
|
383
|
-
"content-type": "application/json",
|
|
384
|
-
};
|
|
385
|
-
b.bp("/2015-02-01/resource-tags/{ResourceId}");
|
|
386
|
-
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
387
|
-
let body;
|
|
388
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
389
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
390
|
-
}));
|
|
391
|
-
b.m("POST").h(headers).b(body);
|
|
392
|
-
return b.build();
|
|
393
|
-
};
|
|
394
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
395
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
396
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
397
|
-
const headers = {};
|
|
398
|
-
b.bp("/2015-02-01/resource-tags/{ResourceId}");
|
|
399
|
-
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
400
|
-
const query = (0, smithy_client_1.map)({
|
|
401
|
-
[_tK]: [
|
|
402
|
-
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
403
|
-
() => (input[_TK] || []).map((_entry) => _entry),
|
|
404
|
-
],
|
|
405
|
-
});
|
|
406
|
-
let body;
|
|
407
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
408
|
-
return b.build();
|
|
409
|
-
};
|
|
410
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
411
|
-
const se_UpdateFileSystemCommand = async (input, context) => {
|
|
412
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
413
|
-
const headers = {
|
|
414
|
-
"content-type": "application/json",
|
|
415
|
-
};
|
|
416
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}");
|
|
417
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
418
|
-
let body;
|
|
419
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
420
|
-
ProvisionedThroughputInMibps: (_) => (0, smithy_client_1.serializeFloat)(_),
|
|
421
|
-
ThroughputMode: [],
|
|
422
|
-
}));
|
|
423
|
-
b.m("PUT").h(headers).b(body);
|
|
424
|
-
return b.build();
|
|
425
|
-
};
|
|
426
|
-
exports.se_UpdateFileSystemCommand = se_UpdateFileSystemCommand;
|
|
427
|
-
const se_UpdateFileSystemProtectionCommand = async (input, context) => {
|
|
428
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
429
|
-
const headers = {
|
|
430
|
-
"content-type": "application/json",
|
|
431
|
-
};
|
|
432
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/protection");
|
|
433
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
434
|
-
let body;
|
|
435
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
436
|
-
ReplicationOverwriteProtection: [],
|
|
437
|
-
}));
|
|
438
|
-
b.m("PUT").h(headers).b(body);
|
|
439
|
-
return b.build();
|
|
440
|
-
};
|
|
441
|
-
exports.se_UpdateFileSystemProtectionCommand = se_UpdateFileSystemProtectionCommand;
|
|
442
|
-
const de_CreateAccessPointCommand = async (output, context) => {
|
|
443
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
444
|
-
return de_CreateAccessPointCommandError(output, context);
|
|
445
|
-
}
|
|
446
|
-
const contents = (0, smithy_client_1.map)({
|
|
447
|
-
$metadata: deserializeMetadata(output),
|
|
448
|
-
});
|
|
449
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
450
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
451
|
-
AccessPointArn: smithy_client_1.expectString,
|
|
452
|
-
AccessPointId: smithy_client_1.expectString,
|
|
453
|
-
ClientToken: smithy_client_1.expectString,
|
|
454
|
-
FileSystemId: smithy_client_1.expectString,
|
|
455
|
-
LifeCycleState: smithy_client_1.expectString,
|
|
456
|
-
Name: smithy_client_1.expectString,
|
|
457
|
-
OwnerId: smithy_client_1.expectString,
|
|
458
|
-
PosixUser: smithy_client_1._json,
|
|
459
|
-
RootDirectory: smithy_client_1._json,
|
|
460
|
-
Tags: smithy_client_1._json,
|
|
461
|
-
});
|
|
462
|
-
Object.assign(contents, doc);
|
|
463
|
-
return contents;
|
|
464
|
-
};
|
|
465
|
-
exports.de_CreateAccessPointCommand = de_CreateAccessPointCommand;
|
|
466
|
-
const de_CreateAccessPointCommandError = async (output, context) => {
|
|
467
|
-
const parsedOutput = {
|
|
468
|
-
...output,
|
|
469
|
-
body: await parseErrorBody(output.body, context),
|
|
470
|
-
};
|
|
471
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
472
|
-
switch (errorCode) {
|
|
473
|
-
case "AccessPointAlreadyExists":
|
|
474
|
-
case "com.amazonaws.efs#AccessPointAlreadyExists":
|
|
475
|
-
throw await de_AccessPointAlreadyExistsRes(parsedOutput, context);
|
|
476
|
-
case "AccessPointLimitExceeded":
|
|
477
|
-
case "com.amazonaws.efs#AccessPointLimitExceeded":
|
|
478
|
-
throw await de_AccessPointLimitExceededRes(parsedOutput, context);
|
|
479
|
-
case "BadRequest":
|
|
480
|
-
case "com.amazonaws.efs#BadRequest":
|
|
481
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
482
|
-
case "FileSystemNotFound":
|
|
483
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
484
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
485
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
486
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
487
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
488
|
-
case "InternalServerError":
|
|
489
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
490
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
491
|
-
case "ThrottlingException":
|
|
492
|
-
case "com.amazonaws.efs#ThrottlingException":
|
|
493
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
494
|
-
default:
|
|
495
|
-
const parsedBody = parsedOutput.body;
|
|
496
|
-
return throwDefaultError({
|
|
497
|
-
output,
|
|
498
|
-
parsedBody,
|
|
499
|
-
errorCode,
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
};
|
|
503
|
-
const de_CreateFileSystemCommand = async (output, context) => {
|
|
504
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
505
|
-
return de_CreateFileSystemCommandError(output, context);
|
|
506
|
-
}
|
|
507
|
-
const contents = (0, smithy_client_1.map)({
|
|
508
|
-
$metadata: deserializeMetadata(output),
|
|
509
|
-
});
|
|
510
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
511
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
512
|
-
AvailabilityZoneId: smithy_client_1.expectString,
|
|
513
|
-
AvailabilityZoneName: smithy_client_1.expectString,
|
|
514
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
515
|
-
CreationToken: smithy_client_1.expectString,
|
|
516
|
-
Encrypted: smithy_client_1.expectBoolean,
|
|
517
|
-
FileSystemArn: smithy_client_1.expectString,
|
|
518
|
-
FileSystemId: smithy_client_1.expectString,
|
|
519
|
-
FileSystemProtection: smithy_client_1._json,
|
|
520
|
-
KmsKeyId: smithy_client_1.expectString,
|
|
521
|
-
LifeCycleState: smithy_client_1.expectString,
|
|
522
|
-
Name: smithy_client_1.expectString,
|
|
523
|
-
NumberOfMountTargets: smithy_client_1.expectInt32,
|
|
524
|
-
OwnerId: smithy_client_1.expectString,
|
|
525
|
-
PerformanceMode: smithy_client_1.expectString,
|
|
526
|
-
ProvisionedThroughputInMibps: smithy_client_1.limitedParseDouble,
|
|
527
|
-
SizeInBytes: (_) => de_FileSystemSize(_, context),
|
|
528
|
-
Tags: smithy_client_1._json,
|
|
529
|
-
ThroughputMode: smithy_client_1.expectString,
|
|
530
|
-
});
|
|
531
|
-
Object.assign(contents, doc);
|
|
532
|
-
return contents;
|
|
533
|
-
};
|
|
534
|
-
exports.de_CreateFileSystemCommand = de_CreateFileSystemCommand;
|
|
535
|
-
const de_CreateFileSystemCommandError = async (output, context) => {
|
|
536
|
-
const parsedOutput = {
|
|
537
|
-
...output,
|
|
538
|
-
body: await parseErrorBody(output.body, context),
|
|
539
|
-
};
|
|
540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
|
-
switch (errorCode) {
|
|
542
|
-
case "BadRequest":
|
|
543
|
-
case "com.amazonaws.efs#BadRequest":
|
|
544
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
545
|
-
case "FileSystemAlreadyExists":
|
|
546
|
-
case "com.amazonaws.efs#FileSystemAlreadyExists":
|
|
547
|
-
throw await de_FileSystemAlreadyExistsRes(parsedOutput, context);
|
|
548
|
-
case "FileSystemLimitExceeded":
|
|
549
|
-
case "com.amazonaws.efs#FileSystemLimitExceeded":
|
|
550
|
-
throw await de_FileSystemLimitExceededRes(parsedOutput, context);
|
|
551
|
-
case "InsufficientThroughputCapacity":
|
|
552
|
-
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
553
|
-
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
554
|
-
case "InternalServerError":
|
|
555
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
556
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
557
|
-
case "ThroughputLimitExceeded":
|
|
558
|
-
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
559
|
-
throw await de_ThroughputLimitExceededRes(parsedOutput, context);
|
|
560
|
-
case "UnsupportedAvailabilityZone":
|
|
561
|
-
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
562
|
-
throw await de_UnsupportedAvailabilityZoneRes(parsedOutput, context);
|
|
563
|
-
default:
|
|
564
|
-
const parsedBody = parsedOutput.body;
|
|
565
|
-
return throwDefaultError({
|
|
566
|
-
output,
|
|
567
|
-
parsedBody,
|
|
568
|
-
errorCode,
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
|
-
};
|
|
572
|
-
const de_CreateMountTargetCommand = async (output, context) => {
|
|
573
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
574
|
-
return de_CreateMountTargetCommandError(output, context);
|
|
575
|
-
}
|
|
576
|
-
const contents = (0, smithy_client_1.map)({
|
|
577
|
-
$metadata: deserializeMetadata(output),
|
|
578
|
-
});
|
|
579
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
580
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
581
|
-
AvailabilityZoneId: smithy_client_1.expectString,
|
|
582
|
-
AvailabilityZoneName: smithy_client_1.expectString,
|
|
583
|
-
FileSystemId: smithy_client_1.expectString,
|
|
584
|
-
IpAddress: smithy_client_1.expectString,
|
|
585
|
-
LifeCycleState: smithy_client_1.expectString,
|
|
586
|
-
MountTargetId: smithy_client_1.expectString,
|
|
587
|
-
NetworkInterfaceId: smithy_client_1.expectString,
|
|
588
|
-
OwnerId: smithy_client_1.expectString,
|
|
589
|
-
SubnetId: smithy_client_1.expectString,
|
|
590
|
-
VpcId: smithy_client_1.expectString,
|
|
591
|
-
});
|
|
592
|
-
Object.assign(contents, doc);
|
|
593
|
-
return contents;
|
|
594
|
-
};
|
|
595
|
-
exports.de_CreateMountTargetCommand = de_CreateMountTargetCommand;
|
|
596
|
-
const de_CreateMountTargetCommandError = async (output, context) => {
|
|
597
|
-
const parsedOutput = {
|
|
598
|
-
...output,
|
|
599
|
-
body: await parseErrorBody(output.body, context),
|
|
600
|
-
};
|
|
601
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
|
-
switch (errorCode) {
|
|
603
|
-
case "AvailabilityZonesMismatch":
|
|
604
|
-
case "com.amazonaws.efs#AvailabilityZonesMismatch":
|
|
605
|
-
throw await de_AvailabilityZonesMismatchRes(parsedOutput, context);
|
|
606
|
-
case "BadRequest":
|
|
607
|
-
case "com.amazonaws.efs#BadRequest":
|
|
608
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
609
|
-
case "FileSystemNotFound":
|
|
610
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
611
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
612
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
613
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
614
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
615
|
-
case "InternalServerError":
|
|
616
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
617
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
618
|
-
case "IpAddressInUse":
|
|
619
|
-
case "com.amazonaws.efs#IpAddressInUse":
|
|
620
|
-
throw await de_IpAddressInUseRes(parsedOutput, context);
|
|
621
|
-
case "MountTargetConflict":
|
|
622
|
-
case "com.amazonaws.efs#MountTargetConflict":
|
|
623
|
-
throw await de_MountTargetConflictRes(parsedOutput, context);
|
|
624
|
-
case "NetworkInterfaceLimitExceeded":
|
|
625
|
-
case "com.amazonaws.efs#NetworkInterfaceLimitExceeded":
|
|
626
|
-
throw await de_NetworkInterfaceLimitExceededRes(parsedOutput, context);
|
|
627
|
-
case "NoFreeAddressesInSubnet":
|
|
628
|
-
case "com.amazonaws.efs#NoFreeAddressesInSubnet":
|
|
629
|
-
throw await de_NoFreeAddressesInSubnetRes(parsedOutput, context);
|
|
630
|
-
case "SecurityGroupLimitExceeded":
|
|
631
|
-
case "com.amazonaws.efs#SecurityGroupLimitExceeded":
|
|
632
|
-
throw await de_SecurityGroupLimitExceededRes(parsedOutput, context);
|
|
633
|
-
case "SecurityGroupNotFound":
|
|
634
|
-
case "com.amazonaws.efs#SecurityGroupNotFound":
|
|
635
|
-
throw await de_SecurityGroupNotFoundRes(parsedOutput, context);
|
|
636
|
-
case "SubnetNotFound":
|
|
637
|
-
case "com.amazonaws.efs#SubnetNotFound":
|
|
638
|
-
throw await de_SubnetNotFoundRes(parsedOutput, context);
|
|
639
|
-
case "UnsupportedAvailabilityZone":
|
|
640
|
-
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
641
|
-
throw await de_UnsupportedAvailabilityZoneRes(parsedOutput, context);
|
|
642
|
-
default:
|
|
643
|
-
const parsedBody = parsedOutput.body;
|
|
644
|
-
return throwDefaultError({
|
|
645
|
-
output,
|
|
646
|
-
parsedBody,
|
|
647
|
-
errorCode,
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
};
|
|
651
|
-
const de_CreateReplicationConfigurationCommand = async (output, context) => {
|
|
652
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
653
|
-
return de_CreateReplicationConfigurationCommandError(output, context);
|
|
654
|
-
}
|
|
655
|
-
const contents = (0, smithy_client_1.map)({
|
|
656
|
-
$metadata: deserializeMetadata(output),
|
|
657
|
-
});
|
|
658
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
659
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
660
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
661
|
-
Destinations: (_) => de_Destinations(_, context),
|
|
662
|
-
OriginalSourceFileSystemArn: smithy_client_1.expectString,
|
|
663
|
-
SourceFileSystemArn: smithy_client_1.expectString,
|
|
664
|
-
SourceFileSystemId: smithy_client_1.expectString,
|
|
665
|
-
SourceFileSystemRegion: smithy_client_1.expectString,
|
|
666
|
-
});
|
|
667
|
-
Object.assign(contents, doc);
|
|
668
|
-
return contents;
|
|
669
|
-
};
|
|
670
|
-
exports.de_CreateReplicationConfigurationCommand = de_CreateReplicationConfigurationCommand;
|
|
671
|
-
const de_CreateReplicationConfigurationCommandError = async (output, context) => {
|
|
672
|
-
const parsedOutput = {
|
|
673
|
-
...output,
|
|
674
|
-
body: await parseErrorBody(output.body, context),
|
|
675
|
-
};
|
|
676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
677
|
-
switch (errorCode) {
|
|
678
|
-
case "BadRequest":
|
|
679
|
-
case "com.amazonaws.efs#BadRequest":
|
|
680
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
681
|
-
case "ConflictException":
|
|
682
|
-
case "com.amazonaws.efs#ConflictException":
|
|
683
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
684
|
-
case "FileSystemLimitExceeded":
|
|
685
|
-
case "com.amazonaws.efs#FileSystemLimitExceeded":
|
|
686
|
-
throw await de_FileSystemLimitExceededRes(parsedOutput, context);
|
|
687
|
-
case "FileSystemNotFound":
|
|
688
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
689
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
690
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
691
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
692
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
693
|
-
case "InsufficientThroughputCapacity":
|
|
694
|
-
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
695
|
-
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
696
|
-
case "InternalServerError":
|
|
697
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
698
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
699
|
-
case "ReplicationNotFound":
|
|
700
|
-
case "com.amazonaws.efs#ReplicationNotFound":
|
|
701
|
-
throw await de_ReplicationNotFoundRes(parsedOutput, context);
|
|
702
|
-
case "ThroughputLimitExceeded":
|
|
703
|
-
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
704
|
-
throw await de_ThroughputLimitExceededRes(parsedOutput, context);
|
|
705
|
-
case "UnsupportedAvailabilityZone":
|
|
706
|
-
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
707
|
-
throw await de_UnsupportedAvailabilityZoneRes(parsedOutput, context);
|
|
708
|
-
case "ValidationException":
|
|
709
|
-
case "com.amazonaws.efs#ValidationException":
|
|
710
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
711
|
-
default:
|
|
712
|
-
const parsedBody = parsedOutput.body;
|
|
713
|
-
return throwDefaultError({
|
|
714
|
-
output,
|
|
715
|
-
parsedBody,
|
|
716
|
-
errorCode,
|
|
717
|
-
});
|
|
718
|
-
}
|
|
719
|
-
};
|
|
720
|
-
const de_CreateTagsCommand = async (output, context) => {
|
|
721
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
722
|
-
return de_CreateTagsCommandError(output, context);
|
|
723
|
-
}
|
|
724
|
-
const contents = (0, smithy_client_1.map)({
|
|
725
|
-
$metadata: deserializeMetadata(output),
|
|
726
|
-
});
|
|
727
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
728
|
-
return contents;
|
|
729
|
-
};
|
|
730
|
-
exports.de_CreateTagsCommand = de_CreateTagsCommand;
|
|
731
|
-
const de_CreateTagsCommandError = async (output, context) => {
|
|
732
|
-
const parsedOutput = {
|
|
733
|
-
...output,
|
|
734
|
-
body: await parseErrorBody(output.body, context),
|
|
735
|
-
};
|
|
736
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
|
-
switch (errorCode) {
|
|
738
|
-
case "BadRequest":
|
|
739
|
-
case "com.amazonaws.efs#BadRequest":
|
|
740
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
741
|
-
case "FileSystemNotFound":
|
|
742
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
743
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
744
|
-
case "InternalServerError":
|
|
745
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
746
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
747
|
-
default:
|
|
748
|
-
const parsedBody = parsedOutput.body;
|
|
749
|
-
return throwDefaultError({
|
|
750
|
-
output,
|
|
751
|
-
parsedBody,
|
|
752
|
-
errorCode,
|
|
753
|
-
});
|
|
754
|
-
}
|
|
755
|
-
};
|
|
756
|
-
const de_DeleteAccessPointCommand = async (output, context) => {
|
|
757
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
758
|
-
return de_DeleteAccessPointCommandError(output, context);
|
|
759
|
-
}
|
|
760
|
-
const contents = (0, smithy_client_1.map)({
|
|
761
|
-
$metadata: deserializeMetadata(output),
|
|
762
|
-
});
|
|
763
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
764
|
-
return contents;
|
|
765
|
-
};
|
|
766
|
-
exports.de_DeleteAccessPointCommand = de_DeleteAccessPointCommand;
|
|
767
|
-
const de_DeleteAccessPointCommandError = async (output, context) => {
|
|
768
|
-
const parsedOutput = {
|
|
769
|
-
...output,
|
|
770
|
-
body: await parseErrorBody(output.body, context),
|
|
771
|
-
};
|
|
772
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
773
|
-
switch (errorCode) {
|
|
774
|
-
case "AccessPointNotFound":
|
|
775
|
-
case "com.amazonaws.efs#AccessPointNotFound":
|
|
776
|
-
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
777
|
-
case "BadRequest":
|
|
778
|
-
case "com.amazonaws.efs#BadRequest":
|
|
779
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
780
|
-
case "InternalServerError":
|
|
781
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
782
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
783
|
-
default:
|
|
784
|
-
const parsedBody = parsedOutput.body;
|
|
785
|
-
return throwDefaultError({
|
|
786
|
-
output,
|
|
787
|
-
parsedBody,
|
|
788
|
-
errorCode,
|
|
789
|
-
});
|
|
790
|
-
}
|
|
791
|
-
};
|
|
792
|
-
const de_DeleteFileSystemCommand = async (output, context) => {
|
|
793
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
794
|
-
return de_DeleteFileSystemCommandError(output, context);
|
|
795
|
-
}
|
|
796
|
-
const contents = (0, smithy_client_1.map)({
|
|
797
|
-
$metadata: deserializeMetadata(output),
|
|
798
|
-
});
|
|
799
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
800
|
-
return contents;
|
|
801
|
-
};
|
|
802
|
-
exports.de_DeleteFileSystemCommand = de_DeleteFileSystemCommand;
|
|
803
|
-
const de_DeleteFileSystemCommandError = async (output, context) => {
|
|
804
|
-
const parsedOutput = {
|
|
805
|
-
...output,
|
|
806
|
-
body: await parseErrorBody(output.body, context),
|
|
807
|
-
};
|
|
808
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
|
-
switch (errorCode) {
|
|
810
|
-
case "BadRequest":
|
|
811
|
-
case "com.amazonaws.efs#BadRequest":
|
|
812
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
813
|
-
case "FileSystemInUse":
|
|
814
|
-
case "com.amazonaws.efs#FileSystemInUse":
|
|
815
|
-
throw await de_FileSystemInUseRes(parsedOutput, context);
|
|
816
|
-
case "FileSystemNotFound":
|
|
817
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
818
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
819
|
-
case "InternalServerError":
|
|
820
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
821
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
822
|
-
default:
|
|
823
|
-
const parsedBody = parsedOutput.body;
|
|
824
|
-
return throwDefaultError({
|
|
825
|
-
output,
|
|
826
|
-
parsedBody,
|
|
827
|
-
errorCode,
|
|
828
|
-
});
|
|
829
|
-
}
|
|
830
|
-
};
|
|
831
|
-
const de_DeleteFileSystemPolicyCommand = async (output, context) => {
|
|
832
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
833
|
-
return de_DeleteFileSystemPolicyCommandError(output, context);
|
|
834
|
-
}
|
|
835
|
-
const contents = (0, smithy_client_1.map)({
|
|
836
|
-
$metadata: deserializeMetadata(output),
|
|
837
|
-
});
|
|
838
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
839
|
-
return contents;
|
|
840
|
-
};
|
|
841
|
-
exports.de_DeleteFileSystemPolicyCommand = de_DeleteFileSystemPolicyCommand;
|
|
842
|
-
const de_DeleteFileSystemPolicyCommandError = async (output, context) => {
|
|
843
|
-
const parsedOutput = {
|
|
844
|
-
...output,
|
|
845
|
-
body: await parseErrorBody(output.body, context),
|
|
846
|
-
};
|
|
847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
-
switch (errorCode) {
|
|
849
|
-
case "BadRequest":
|
|
850
|
-
case "com.amazonaws.efs#BadRequest":
|
|
851
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
852
|
-
case "FileSystemNotFound":
|
|
853
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
854
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
855
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
856
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
857
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
858
|
-
case "InternalServerError":
|
|
859
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
860
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
861
|
-
default:
|
|
862
|
-
const parsedBody = parsedOutput.body;
|
|
863
|
-
return throwDefaultError({
|
|
864
|
-
output,
|
|
865
|
-
parsedBody,
|
|
866
|
-
errorCode,
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
};
|
|
870
|
-
const de_DeleteMountTargetCommand = async (output, context) => {
|
|
871
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
872
|
-
return de_DeleteMountTargetCommandError(output, context);
|
|
873
|
-
}
|
|
874
|
-
const contents = (0, smithy_client_1.map)({
|
|
875
|
-
$metadata: deserializeMetadata(output),
|
|
876
|
-
});
|
|
877
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
878
|
-
return contents;
|
|
879
|
-
};
|
|
880
|
-
exports.de_DeleteMountTargetCommand = de_DeleteMountTargetCommand;
|
|
881
|
-
const de_DeleteMountTargetCommandError = async (output, context) => {
|
|
882
|
-
const parsedOutput = {
|
|
883
|
-
...output,
|
|
884
|
-
body: await parseErrorBody(output.body, context),
|
|
885
|
-
};
|
|
886
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
887
|
-
switch (errorCode) {
|
|
888
|
-
case "BadRequest":
|
|
889
|
-
case "com.amazonaws.efs#BadRequest":
|
|
890
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
891
|
-
case "DependencyTimeout":
|
|
892
|
-
case "com.amazonaws.efs#DependencyTimeout":
|
|
893
|
-
throw await de_DependencyTimeoutRes(parsedOutput, context);
|
|
894
|
-
case "InternalServerError":
|
|
895
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
896
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
897
|
-
case "MountTargetNotFound":
|
|
898
|
-
case "com.amazonaws.efs#MountTargetNotFound":
|
|
899
|
-
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
900
|
-
default:
|
|
901
|
-
const parsedBody = parsedOutput.body;
|
|
902
|
-
return throwDefaultError({
|
|
903
|
-
output,
|
|
904
|
-
parsedBody,
|
|
905
|
-
errorCode,
|
|
906
|
-
});
|
|
907
|
-
}
|
|
908
|
-
};
|
|
909
|
-
const de_DeleteReplicationConfigurationCommand = async (output, context) => {
|
|
910
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
911
|
-
return de_DeleteReplicationConfigurationCommandError(output, context);
|
|
912
|
-
}
|
|
913
|
-
const contents = (0, smithy_client_1.map)({
|
|
914
|
-
$metadata: deserializeMetadata(output),
|
|
915
|
-
});
|
|
916
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
917
|
-
return contents;
|
|
918
|
-
};
|
|
919
|
-
exports.de_DeleteReplicationConfigurationCommand = de_DeleteReplicationConfigurationCommand;
|
|
920
|
-
const de_DeleteReplicationConfigurationCommandError = async (output, context) => {
|
|
921
|
-
const parsedOutput = {
|
|
922
|
-
...output,
|
|
923
|
-
body: await parseErrorBody(output.body, context),
|
|
924
|
-
};
|
|
925
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
926
|
-
switch (errorCode) {
|
|
927
|
-
case "BadRequest":
|
|
928
|
-
case "com.amazonaws.efs#BadRequest":
|
|
929
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
930
|
-
case "FileSystemNotFound":
|
|
931
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
932
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
933
|
-
case "InternalServerError":
|
|
934
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
935
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
936
|
-
case "ReplicationNotFound":
|
|
937
|
-
case "com.amazonaws.efs#ReplicationNotFound":
|
|
938
|
-
throw await de_ReplicationNotFoundRes(parsedOutput, context);
|
|
939
|
-
default:
|
|
940
|
-
const parsedBody = parsedOutput.body;
|
|
941
|
-
return throwDefaultError({
|
|
942
|
-
output,
|
|
943
|
-
parsedBody,
|
|
944
|
-
errorCode,
|
|
945
|
-
});
|
|
946
|
-
}
|
|
947
|
-
};
|
|
948
|
-
const de_DeleteTagsCommand = async (output, context) => {
|
|
949
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
950
|
-
return de_DeleteTagsCommandError(output, context);
|
|
951
|
-
}
|
|
952
|
-
const contents = (0, smithy_client_1.map)({
|
|
953
|
-
$metadata: deserializeMetadata(output),
|
|
954
|
-
});
|
|
955
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
956
|
-
return contents;
|
|
957
|
-
};
|
|
958
|
-
exports.de_DeleteTagsCommand = de_DeleteTagsCommand;
|
|
959
|
-
const de_DeleteTagsCommandError = async (output, context) => {
|
|
960
|
-
const parsedOutput = {
|
|
961
|
-
...output,
|
|
962
|
-
body: await parseErrorBody(output.body, context),
|
|
963
|
-
};
|
|
964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
|
-
switch (errorCode) {
|
|
966
|
-
case "BadRequest":
|
|
967
|
-
case "com.amazonaws.efs#BadRequest":
|
|
968
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
969
|
-
case "FileSystemNotFound":
|
|
970
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
971
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
972
|
-
case "InternalServerError":
|
|
973
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
974
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
975
|
-
default:
|
|
976
|
-
const parsedBody = parsedOutput.body;
|
|
977
|
-
return throwDefaultError({
|
|
978
|
-
output,
|
|
979
|
-
parsedBody,
|
|
980
|
-
errorCode,
|
|
981
|
-
});
|
|
982
|
-
}
|
|
983
|
-
};
|
|
984
|
-
const de_DescribeAccessPointsCommand = async (output, context) => {
|
|
985
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
986
|
-
return de_DescribeAccessPointsCommandError(output, context);
|
|
987
|
-
}
|
|
988
|
-
const contents = (0, smithy_client_1.map)({
|
|
989
|
-
$metadata: deserializeMetadata(output),
|
|
990
|
-
});
|
|
991
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
992
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
993
|
-
AccessPoints: smithy_client_1._json,
|
|
994
|
-
NextToken: smithy_client_1.expectString,
|
|
995
|
-
});
|
|
996
|
-
Object.assign(contents, doc);
|
|
997
|
-
return contents;
|
|
998
|
-
};
|
|
999
|
-
exports.de_DescribeAccessPointsCommand = de_DescribeAccessPointsCommand;
|
|
1000
|
-
const de_DescribeAccessPointsCommandError = async (output, context) => {
|
|
1001
|
-
const parsedOutput = {
|
|
1002
|
-
...output,
|
|
1003
|
-
body: await parseErrorBody(output.body, context),
|
|
1004
|
-
};
|
|
1005
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
|
-
switch (errorCode) {
|
|
1007
|
-
case "AccessPointNotFound":
|
|
1008
|
-
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1009
|
-
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1010
|
-
case "BadRequest":
|
|
1011
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1012
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1013
|
-
case "FileSystemNotFound":
|
|
1014
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1015
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1016
|
-
case "InternalServerError":
|
|
1017
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1018
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1019
|
-
default:
|
|
1020
|
-
const parsedBody = parsedOutput.body;
|
|
1021
|
-
return throwDefaultError({
|
|
1022
|
-
output,
|
|
1023
|
-
parsedBody,
|
|
1024
|
-
errorCode,
|
|
1025
|
-
});
|
|
1026
|
-
}
|
|
1027
|
-
};
|
|
1028
|
-
const de_DescribeAccountPreferencesCommand = async (output, context) => {
|
|
1029
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1030
|
-
return de_DescribeAccountPreferencesCommandError(output, context);
|
|
1031
|
-
}
|
|
1032
|
-
const contents = (0, smithy_client_1.map)({
|
|
1033
|
-
$metadata: deserializeMetadata(output),
|
|
1034
|
-
});
|
|
1035
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1036
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1037
|
-
NextToken: smithy_client_1.expectString,
|
|
1038
|
-
ResourceIdPreference: smithy_client_1._json,
|
|
1039
|
-
});
|
|
1040
|
-
Object.assign(contents, doc);
|
|
1041
|
-
return contents;
|
|
1042
|
-
};
|
|
1043
|
-
exports.de_DescribeAccountPreferencesCommand = de_DescribeAccountPreferencesCommand;
|
|
1044
|
-
const de_DescribeAccountPreferencesCommandError = async (output, context) => {
|
|
1045
|
-
const parsedOutput = {
|
|
1046
|
-
...output,
|
|
1047
|
-
body: await parseErrorBody(output.body, context),
|
|
1048
|
-
};
|
|
1049
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1050
|
-
switch (errorCode) {
|
|
1051
|
-
case "InternalServerError":
|
|
1052
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1053
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1054
|
-
default:
|
|
1055
|
-
const parsedBody = parsedOutput.body;
|
|
1056
|
-
return throwDefaultError({
|
|
1057
|
-
output,
|
|
1058
|
-
parsedBody,
|
|
1059
|
-
errorCode,
|
|
1060
|
-
});
|
|
1061
|
-
}
|
|
1062
|
-
};
|
|
1063
|
-
const de_DescribeBackupPolicyCommand = async (output, context) => {
|
|
1064
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1065
|
-
return de_DescribeBackupPolicyCommandError(output, context);
|
|
1066
|
-
}
|
|
1067
|
-
const contents = (0, smithy_client_1.map)({
|
|
1068
|
-
$metadata: deserializeMetadata(output),
|
|
1069
|
-
});
|
|
1070
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1071
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1072
|
-
BackupPolicy: smithy_client_1._json,
|
|
1073
|
-
});
|
|
1074
|
-
Object.assign(contents, doc);
|
|
1075
|
-
return contents;
|
|
1076
|
-
};
|
|
1077
|
-
exports.de_DescribeBackupPolicyCommand = de_DescribeBackupPolicyCommand;
|
|
1078
|
-
const de_DescribeBackupPolicyCommandError = async (output, context) => {
|
|
1079
|
-
const parsedOutput = {
|
|
1080
|
-
...output,
|
|
1081
|
-
body: await parseErrorBody(output.body, context),
|
|
1082
|
-
};
|
|
1083
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1084
|
-
switch (errorCode) {
|
|
1085
|
-
case "BadRequest":
|
|
1086
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1087
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1088
|
-
case "FileSystemNotFound":
|
|
1089
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1090
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1091
|
-
case "InternalServerError":
|
|
1092
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1093
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1094
|
-
case "PolicyNotFound":
|
|
1095
|
-
case "com.amazonaws.efs#PolicyNotFound":
|
|
1096
|
-
throw await de_PolicyNotFoundRes(parsedOutput, context);
|
|
1097
|
-
case "ValidationException":
|
|
1098
|
-
case "com.amazonaws.efs#ValidationException":
|
|
1099
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1100
|
-
default:
|
|
1101
|
-
const parsedBody = parsedOutput.body;
|
|
1102
|
-
return throwDefaultError({
|
|
1103
|
-
output,
|
|
1104
|
-
parsedBody,
|
|
1105
|
-
errorCode,
|
|
1106
|
-
});
|
|
1107
|
-
}
|
|
1108
|
-
};
|
|
1109
|
-
const de_DescribeFileSystemPolicyCommand = async (output, context) => {
|
|
1110
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1111
|
-
return de_DescribeFileSystemPolicyCommandError(output, context);
|
|
1112
|
-
}
|
|
1113
|
-
const contents = (0, smithy_client_1.map)({
|
|
1114
|
-
$metadata: deserializeMetadata(output),
|
|
1115
|
-
});
|
|
1116
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1117
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1118
|
-
FileSystemId: smithy_client_1.expectString,
|
|
1119
|
-
Policy: smithy_client_1.expectString,
|
|
1120
|
-
});
|
|
1121
|
-
Object.assign(contents, doc);
|
|
1122
|
-
return contents;
|
|
1123
|
-
};
|
|
1124
|
-
exports.de_DescribeFileSystemPolicyCommand = de_DescribeFileSystemPolicyCommand;
|
|
1125
|
-
const de_DescribeFileSystemPolicyCommandError = async (output, context) => {
|
|
1126
|
-
const parsedOutput = {
|
|
1127
|
-
...output,
|
|
1128
|
-
body: await parseErrorBody(output.body, context),
|
|
1129
|
-
};
|
|
1130
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
|
-
switch (errorCode) {
|
|
1132
|
-
case "BadRequest":
|
|
1133
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1134
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1135
|
-
case "FileSystemNotFound":
|
|
1136
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1137
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1138
|
-
case "InternalServerError":
|
|
1139
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1140
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1141
|
-
case "PolicyNotFound":
|
|
1142
|
-
case "com.amazonaws.efs#PolicyNotFound":
|
|
1143
|
-
throw await de_PolicyNotFoundRes(parsedOutput, context);
|
|
1144
|
-
default:
|
|
1145
|
-
const parsedBody = parsedOutput.body;
|
|
1146
|
-
return throwDefaultError({
|
|
1147
|
-
output,
|
|
1148
|
-
parsedBody,
|
|
1149
|
-
errorCode,
|
|
1150
|
-
});
|
|
1151
|
-
}
|
|
1152
|
-
};
|
|
1153
|
-
const de_DescribeFileSystemsCommand = async (output, context) => {
|
|
1154
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1155
|
-
return de_DescribeFileSystemsCommandError(output, context);
|
|
1156
|
-
}
|
|
1157
|
-
const contents = (0, smithy_client_1.map)({
|
|
1158
|
-
$metadata: deserializeMetadata(output),
|
|
1159
|
-
});
|
|
1160
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1161
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1162
|
-
FileSystems: (_) => de_FileSystemDescriptions(_, context),
|
|
1163
|
-
Marker: smithy_client_1.expectString,
|
|
1164
|
-
NextMarker: smithy_client_1.expectString,
|
|
1165
|
-
});
|
|
1166
|
-
Object.assign(contents, doc);
|
|
1167
|
-
return contents;
|
|
1168
|
-
};
|
|
1169
|
-
exports.de_DescribeFileSystemsCommand = de_DescribeFileSystemsCommand;
|
|
1170
|
-
const de_DescribeFileSystemsCommandError = async (output, context) => {
|
|
1171
|
-
const parsedOutput = {
|
|
1172
|
-
...output,
|
|
1173
|
-
body: await parseErrorBody(output.body, context),
|
|
1174
|
-
};
|
|
1175
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1176
|
-
switch (errorCode) {
|
|
1177
|
-
case "BadRequest":
|
|
1178
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1179
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1180
|
-
case "FileSystemNotFound":
|
|
1181
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1182
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1183
|
-
case "InternalServerError":
|
|
1184
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1185
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1186
|
-
default:
|
|
1187
|
-
const parsedBody = parsedOutput.body;
|
|
1188
|
-
return throwDefaultError({
|
|
1189
|
-
output,
|
|
1190
|
-
parsedBody,
|
|
1191
|
-
errorCode,
|
|
1192
|
-
});
|
|
1193
|
-
}
|
|
1194
|
-
};
|
|
1195
|
-
const de_DescribeLifecycleConfigurationCommand = async (output, context) => {
|
|
1196
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1197
|
-
return de_DescribeLifecycleConfigurationCommandError(output, context);
|
|
1198
|
-
}
|
|
1199
|
-
const contents = (0, smithy_client_1.map)({
|
|
1200
|
-
$metadata: deserializeMetadata(output),
|
|
1201
|
-
});
|
|
1202
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1203
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1204
|
-
LifecyclePolicies: smithy_client_1._json,
|
|
1205
|
-
});
|
|
1206
|
-
Object.assign(contents, doc);
|
|
1207
|
-
return contents;
|
|
1208
|
-
};
|
|
1209
|
-
exports.de_DescribeLifecycleConfigurationCommand = de_DescribeLifecycleConfigurationCommand;
|
|
1210
|
-
const de_DescribeLifecycleConfigurationCommandError = async (output, context) => {
|
|
1211
|
-
const parsedOutput = {
|
|
1212
|
-
...output,
|
|
1213
|
-
body: await parseErrorBody(output.body, context),
|
|
1214
|
-
};
|
|
1215
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
|
-
switch (errorCode) {
|
|
1217
|
-
case "BadRequest":
|
|
1218
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1219
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1220
|
-
case "FileSystemNotFound":
|
|
1221
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1222
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1223
|
-
case "InternalServerError":
|
|
1224
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1225
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1226
|
-
default:
|
|
1227
|
-
const parsedBody = parsedOutput.body;
|
|
1228
|
-
return throwDefaultError({
|
|
1229
|
-
output,
|
|
1230
|
-
parsedBody,
|
|
1231
|
-
errorCode,
|
|
1232
|
-
});
|
|
1233
|
-
}
|
|
1234
|
-
};
|
|
1235
|
-
const de_DescribeMountTargetsCommand = async (output, context) => {
|
|
1236
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1237
|
-
return de_DescribeMountTargetsCommandError(output, context);
|
|
1238
|
-
}
|
|
1239
|
-
const contents = (0, smithy_client_1.map)({
|
|
1240
|
-
$metadata: deserializeMetadata(output),
|
|
1241
|
-
});
|
|
1242
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1243
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1244
|
-
Marker: smithy_client_1.expectString,
|
|
1245
|
-
MountTargets: smithy_client_1._json,
|
|
1246
|
-
NextMarker: smithy_client_1.expectString,
|
|
1247
|
-
});
|
|
1248
|
-
Object.assign(contents, doc);
|
|
1249
|
-
return contents;
|
|
1250
|
-
};
|
|
1251
|
-
exports.de_DescribeMountTargetsCommand = de_DescribeMountTargetsCommand;
|
|
1252
|
-
const de_DescribeMountTargetsCommandError = async (output, context) => {
|
|
1253
|
-
const parsedOutput = {
|
|
1254
|
-
...output,
|
|
1255
|
-
body: await parseErrorBody(output.body, context),
|
|
1256
|
-
};
|
|
1257
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1258
|
-
switch (errorCode) {
|
|
1259
|
-
case "AccessPointNotFound":
|
|
1260
|
-
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1261
|
-
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1262
|
-
case "BadRequest":
|
|
1263
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1264
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1265
|
-
case "FileSystemNotFound":
|
|
1266
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1267
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1268
|
-
case "InternalServerError":
|
|
1269
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1270
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1271
|
-
case "MountTargetNotFound":
|
|
1272
|
-
case "com.amazonaws.efs#MountTargetNotFound":
|
|
1273
|
-
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
1274
|
-
default:
|
|
1275
|
-
const parsedBody = parsedOutput.body;
|
|
1276
|
-
return throwDefaultError({
|
|
1277
|
-
output,
|
|
1278
|
-
parsedBody,
|
|
1279
|
-
errorCode,
|
|
1280
|
-
});
|
|
1281
|
-
}
|
|
1282
|
-
};
|
|
1283
|
-
const de_DescribeMountTargetSecurityGroupsCommand = async (output, context) => {
|
|
1284
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1285
|
-
return de_DescribeMountTargetSecurityGroupsCommandError(output, context);
|
|
1286
|
-
}
|
|
1287
|
-
const contents = (0, smithy_client_1.map)({
|
|
1288
|
-
$metadata: deserializeMetadata(output),
|
|
1289
|
-
});
|
|
1290
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1291
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1292
|
-
SecurityGroups: smithy_client_1._json,
|
|
1293
|
-
});
|
|
1294
|
-
Object.assign(contents, doc);
|
|
1295
|
-
return contents;
|
|
1296
|
-
};
|
|
1297
|
-
exports.de_DescribeMountTargetSecurityGroupsCommand = de_DescribeMountTargetSecurityGroupsCommand;
|
|
1298
|
-
const de_DescribeMountTargetSecurityGroupsCommandError = async (output, context) => {
|
|
1299
|
-
const parsedOutput = {
|
|
1300
|
-
...output,
|
|
1301
|
-
body: await parseErrorBody(output.body, context),
|
|
1302
|
-
};
|
|
1303
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1304
|
-
switch (errorCode) {
|
|
1305
|
-
case "BadRequest":
|
|
1306
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1307
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1308
|
-
case "IncorrectMountTargetState":
|
|
1309
|
-
case "com.amazonaws.efs#IncorrectMountTargetState":
|
|
1310
|
-
throw await de_IncorrectMountTargetStateRes(parsedOutput, context);
|
|
1311
|
-
case "InternalServerError":
|
|
1312
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1313
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1314
|
-
case "MountTargetNotFound":
|
|
1315
|
-
case "com.amazonaws.efs#MountTargetNotFound":
|
|
1316
|
-
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
1317
|
-
default:
|
|
1318
|
-
const parsedBody = parsedOutput.body;
|
|
1319
|
-
return throwDefaultError({
|
|
1320
|
-
output,
|
|
1321
|
-
parsedBody,
|
|
1322
|
-
errorCode,
|
|
1323
|
-
});
|
|
1324
|
-
}
|
|
1325
|
-
};
|
|
1326
|
-
const de_DescribeReplicationConfigurationsCommand = async (output, context) => {
|
|
1327
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1328
|
-
return de_DescribeReplicationConfigurationsCommandError(output, context);
|
|
1329
|
-
}
|
|
1330
|
-
const contents = (0, smithy_client_1.map)({
|
|
1331
|
-
$metadata: deserializeMetadata(output),
|
|
1332
|
-
});
|
|
1333
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1334
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1335
|
-
NextToken: smithy_client_1.expectString,
|
|
1336
|
-
Replications: (_) => de_ReplicationConfigurationDescriptions(_, context),
|
|
1337
|
-
});
|
|
1338
|
-
Object.assign(contents, doc);
|
|
1339
|
-
return contents;
|
|
1340
|
-
};
|
|
1341
|
-
exports.de_DescribeReplicationConfigurationsCommand = de_DescribeReplicationConfigurationsCommand;
|
|
1342
|
-
const de_DescribeReplicationConfigurationsCommandError = async (output, context) => {
|
|
1343
|
-
const parsedOutput = {
|
|
1344
|
-
...output,
|
|
1345
|
-
body: await parseErrorBody(output.body, context),
|
|
1346
|
-
};
|
|
1347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1348
|
-
switch (errorCode) {
|
|
1349
|
-
case "BadRequest":
|
|
1350
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1351
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1352
|
-
case "FileSystemNotFound":
|
|
1353
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1354
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1355
|
-
case "InternalServerError":
|
|
1356
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1357
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1358
|
-
case "ReplicationNotFound":
|
|
1359
|
-
case "com.amazonaws.efs#ReplicationNotFound":
|
|
1360
|
-
throw await de_ReplicationNotFoundRes(parsedOutput, context);
|
|
1361
|
-
case "ValidationException":
|
|
1362
|
-
case "com.amazonaws.efs#ValidationException":
|
|
1363
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1364
|
-
default:
|
|
1365
|
-
const parsedBody = parsedOutput.body;
|
|
1366
|
-
return throwDefaultError({
|
|
1367
|
-
output,
|
|
1368
|
-
parsedBody,
|
|
1369
|
-
errorCode,
|
|
1370
|
-
});
|
|
1371
|
-
}
|
|
1372
|
-
};
|
|
1373
|
-
const de_DescribeTagsCommand = async (output, context) => {
|
|
1374
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1375
|
-
return de_DescribeTagsCommandError(output, context);
|
|
1376
|
-
}
|
|
1377
|
-
const contents = (0, smithy_client_1.map)({
|
|
1378
|
-
$metadata: deserializeMetadata(output),
|
|
1379
|
-
});
|
|
1380
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1381
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1382
|
-
Marker: smithy_client_1.expectString,
|
|
1383
|
-
NextMarker: smithy_client_1.expectString,
|
|
1384
|
-
Tags: smithy_client_1._json,
|
|
1385
|
-
});
|
|
1386
|
-
Object.assign(contents, doc);
|
|
1387
|
-
return contents;
|
|
1388
|
-
};
|
|
1389
|
-
exports.de_DescribeTagsCommand = de_DescribeTagsCommand;
|
|
1390
|
-
const de_DescribeTagsCommandError = async (output, context) => {
|
|
1391
|
-
const parsedOutput = {
|
|
1392
|
-
...output,
|
|
1393
|
-
body: await parseErrorBody(output.body, context),
|
|
1394
|
-
};
|
|
1395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1396
|
-
switch (errorCode) {
|
|
1397
|
-
case "BadRequest":
|
|
1398
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1399
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1400
|
-
case "FileSystemNotFound":
|
|
1401
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1402
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1403
|
-
case "InternalServerError":
|
|
1404
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1405
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1406
|
-
default:
|
|
1407
|
-
const parsedBody = parsedOutput.body;
|
|
1408
|
-
return throwDefaultError({
|
|
1409
|
-
output,
|
|
1410
|
-
parsedBody,
|
|
1411
|
-
errorCode,
|
|
1412
|
-
});
|
|
1413
|
-
}
|
|
1414
|
-
};
|
|
1415
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1416
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1417
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1418
|
-
}
|
|
1419
|
-
const contents = (0, smithy_client_1.map)({
|
|
1420
|
-
$metadata: deserializeMetadata(output),
|
|
1421
|
-
});
|
|
1422
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1423
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1424
|
-
NextToken: smithy_client_1.expectString,
|
|
1425
|
-
Tags: smithy_client_1._json,
|
|
1426
|
-
});
|
|
1427
|
-
Object.assign(contents, doc);
|
|
1428
|
-
return contents;
|
|
1429
|
-
};
|
|
1430
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1431
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1432
|
-
const parsedOutput = {
|
|
1433
|
-
...output,
|
|
1434
|
-
body: await parseErrorBody(output.body, context),
|
|
1435
|
-
};
|
|
1436
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1437
|
-
switch (errorCode) {
|
|
1438
|
-
case "AccessPointNotFound":
|
|
1439
|
-
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1440
|
-
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1441
|
-
case "BadRequest":
|
|
1442
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1443
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1444
|
-
case "FileSystemNotFound":
|
|
1445
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1446
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1447
|
-
case "InternalServerError":
|
|
1448
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1449
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1450
|
-
default:
|
|
1451
|
-
const parsedBody = parsedOutput.body;
|
|
1452
|
-
return throwDefaultError({
|
|
1453
|
-
output,
|
|
1454
|
-
parsedBody,
|
|
1455
|
-
errorCode,
|
|
1456
|
-
});
|
|
1457
|
-
}
|
|
1458
|
-
};
|
|
1459
|
-
const de_ModifyMountTargetSecurityGroupsCommand = async (output, context) => {
|
|
1460
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1461
|
-
return de_ModifyMountTargetSecurityGroupsCommandError(output, context);
|
|
1462
|
-
}
|
|
1463
|
-
const contents = (0, smithy_client_1.map)({
|
|
1464
|
-
$metadata: deserializeMetadata(output),
|
|
1465
|
-
});
|
|
1466
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1467
|
-
return contents;
|
|
1468
|
-
};
|
|
1469
|
-
exports.de_ModifyMountTargetSecurityGroupsCommand = de_ModifyMountTargetSecurityGroupsCommand;
|
|
1470
|
-
const de_ModifyMountTargetSecurityGroupsCommandError = async (output, context) => {
|
|
1471
|
-
const parsedOutput = {
|
|
1472
|
-
...output,
|
|
1473
|
-
body: await parseErrorBody(output.body, context),
|
|
1474
|
-
};
|
|
1475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1476
|
-
switch (errorCode) {
|
|
1477
|
-
case "BadRequest":
|
|
1478
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1479
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1480
|
-
case "IncorrectMountTargetState":
|
|
1481
|
-
case "com.amazonaws.efs#IncorrectMountTargetState":
|
|
1482
|
-
throw await de_IncorrectMountTargetStateRes(parsedOutput, context);
|
|
1483
|
-
case "InternalServerError":
|
|
1484
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1485
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1486
|
-
case "MountTargetNotFound":
|
|
1487
|
-
case "com.amazonaws.efs#MountTargetNotFound":
|
|
1488
|
-
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
1489
|
-
case "SecurityGroupLimitExceeded":
|
|
1490
|
-
case "com.amazonaws.efs#SecurityGroupLimitExceeded":
|
|
1491
|
-
throw await de_SecurityGroupLimitExceededRes(parsedOutput, context);
|
|
1492
|
-
case "SecurityGroupNotFound":
|
|
1493
|
-
case "com.amazonaws.efs#SecurityGroupNotFound":
|
|
1494
|
-
throw await de_SecurityGroupNotFoundRes(parsedOutput, context);
|
|
1495
|
-
default:
|
|
1496
|
-
const parsedBody = parsedOutput.body;
|
|
1497
|
-
return throwDefaultError({
|
|
1498
|
-
output,
|
|
1499
|
-
parsedBody,
|
|
1500
|
-
errorCode,
|
|
1501
|
-
});
|
|
1502
|
-
}
|
|
1503
|
-
};
|
|
1504
|
-
const de_PutAccountPreferencesCommand = async (output, context) => {
|
|
1505
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1506
|
-
return de_PutAccountPreferencesCommandError(output, context);
|
|
1507
|
-
}
|
|
1508
|
-
const contents = (0, smithy_client_1.map)({
|
|
1509
|
-
$metadata: deserializeMetadata(output),
|
|
1510
|
-
});
|
|
1511
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1512
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1513
|
-
ResourceIdPreference: smithy_client_1._json,
|
|
1514
|
-
});
|
|
1515
|
-
Object.assign(contents, doc);
|
|
1516
|
-
return contents;
|
|
1517
|
-
};
|
|
1518
|
-
exports.de_PutAccountPreferencesCommand = de_PutAccountPreferencesCommand;
|
|
1519
|
-
const de_PutAccountPreferencesCommandError = async (output, context) => {
|
|
1520
|
-
const parsedOutput = {
|
|
1521
|
-
...output,
|
|
1522
|
-
body: await parseErrorBody(output.body, context),
|
|
1523
|
-
};
|
|
1524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
|
-
switch (errorCode) {
|
|
1526
|
-
case "BadRequest":
|
|
1527
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1528
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1529
|
-
case "InternalServerError":
|
|
1530
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1531
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1532
|
-
default:
|
|
1533
|
-
const parsedBody = parsedOutput.body;
|
|
1534
|
-
return throwDefaultError({
|
|
1535
|
-
output,
|
|
1536
|
-
parsedBody,
|
|
1537
|
-
errorCode,
|
|
1538
|
-
});
|
|
1539
|
-
}
|
|
1540
|
-
};
|
|
1541
|
-
const de_PutBackupPolicyCommand = async (output, context) => {
|
|
1542
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1543
|
-
return de_PutBackupPolicyCommandError(output, context);
|
|
1544
|
-
}
|
|
1545
|
-
const contents = (0, smithy_client_1.map)({
|
|
1546
|
-
$metadata: deserializeMetadata(output),
|
|
1547
|
-
});
|
|
1548
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1549
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1550
|
-
BackupPolicy: smithy_client_1._json,
|
|
1551
|
-
});
|
|
1552
|
-
Object.assign(contents, doc);
|
|
1553
|
-
return contents;
|
|
1554
|
-
};
|
|
1555
|
-
exports.de_PutBackupPolicyCommand = de_PutBackupPolicyCommand;
|
|
1556
|
-
const de_PutBackupPolicyCommandError = async (output, context) => {
|
|
1557
|
-
const parsedOutput = {
|
|
1558
|
-
...output,
|
|
1559
|
-
body: await parseErrorBody(output.body, context),
|
|
1560
|
-
};
|
|
1561
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1562
|
-
switch (errorCode) {
|
|
1563
|
-
case "BadRequest":
|
|
1564
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1565
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1566
|
-
case "FileSystemNotFound":
|
|
1567
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1568
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1569
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
1570
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1571
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1572
|
-
case "InternalServerError":
|
|
1573
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1574
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1575
|
-
case "ValidationException":
|
|
1576
|
-
case "com.amazonaws.efs#ValidationException":
|
|
1577
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1578
|
-
default:
|
|
1579
|
-
const parsedBody = parsedOutput.body;
|
|
1580
|
-
return throwDefaultError({
|
|
1581
|
-
output,
|
|
1582
|
-
parsedBody,
|
|
1583
|
-
errorCode,
|
|
1584
|
-
});
|
|
1585
|
-
}
|
|
1586
|
-
};
|
|
1587
|
-
const de_PutFileSystemPolicyCommand = async (output, context) => {
|
|
1588
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1589
|
-
return de_PutFileSystemPolicyCommandError(output, context);
|
|
1590
|
-
}
|
|
1591
|
-
const contents = (0, smithy_client_1.map)({
|
|
1592
|
-
$metadata: deserializeMetadata(output),
|
|
1593
|
-
});
|
|
1594
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1595
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1596
|
-
FileSystemId: smithy_client_1.expectString,
|
|
1597
|
-
Policy: smithy_client_1.expectString,
|
|
1598
|
-
});
|
|
1599
|
-
Object.assign(contents, doc);
|
|
1600
|
-
return contents;
|
|
1601
|
-
};
|
|
1602
|
-
exports.de_PutFileSystemPolicyCommand = de_PutFileSystemPolicyCommand;
|
|
1603
|
-
const de_PutFileSystemPolicyCommandError = async (output, context) => {
|
|
1604
|
-
const parsedOutput = {
|
|
1605
|
-
...output,
|
|
1606
|
-
body: await parseErrorBody(output.body, context),
|
|
1607
|
-
};
|
|
1608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
|
-
switch (errorCode) {
|
|
1610
|
-
case "BadRequest":
|
|
1611
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1612
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1613
|
-
case "FileSystemNotFound":
|
|
1614
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1615
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1616
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
1617
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1618
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1619
|
-
case "InternalServerError":
|
|
1620
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1621
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1622
|
-
case "InvalidPolicyException":
|
|
1623
|
-
case "com.amazonaws.efs#InvalidPolicyException":
|
|
1624
|
-
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
1625
|
-
default:
|
|
1626
|
-
const parsedBody = parsedOutput.body;
|
|
1627
|
-
return throwDefaultError({
|
|
1628
|
-
output,
|
|
1629
|
-
parsedBody,
|
|
1630
|
-
errorCode,
|
|
1631
|
-
});
|
|
1632
|
-
}
|
|
1633
|
-
};
|
|
1634
|
-
const de_PutLifecycleConfigurationCommand = async (output, context) => {
|
|
1635
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1636
|
-
return de_PutLifecycleConfigurationCommandError(output, context);
|
|
1637
|
-
}
|
|
1638
|
-
const contents = (0, smithy_client_1.map)({
|
|
1639
|
-
$metadata: deserializeMetadata(output),
|
|
1640
|
-
});
|
|
1641
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1642
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1643
|
-
LifecyclePolicies: smithy_client_1._json,
|
|
1644
|
-
});
|
|
1645
|
-
Object.assign(contents, doc);
|
|
1646
|
-
return contents;
|
|
1647
|
-
};
|
|
1648
|
-
exports.de_PutLifecycleConfigurationCommand = de_PutLifecycleConfigurationCommand;
|
|
1649
|
-
const de_PutLifecycleConfigurationCommandError = async (output, context) => {
|
|
1650
|
-
const parsedOutput = {
|
|
1651
|
-
...output,
|
|
1652
|
-
body: await parseErrorBody(output.body, context),
|
|
1653
|
-
};
|
|
1654
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1655
|
-
switch (errorCode) {
|
|
1656
|
-
case "BadRequest":
|
|
1657
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1658
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1659
|
-
case "FileSystemNotFound":
|
|
1660
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1661
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1662
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
1663
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1664
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1665
|
-
case "InternalServerError":
|
|
1666
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1667
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1668
|
-
default:
|
|
1669
|
-
const parsedBody = parsedOutput.body;
|
|
1670
|
-
return throwDefaultError({
|
|
1671
|
-
output,
|
|
1672
|
-
parsedBody,
|
|
1673
|
-
errorCode,
|
|
1674
|
-
});
|
|
1675
|
-
}
|
|
1676
|
-
};
|
|
1677
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1678
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1679
|
-
return de_TagResourceCommandError(output, context);
|
|
1680
|
-
}
|
|
1681
|
-
const contents = (0, smithy_client_1.map)({
|
|
1682
|
-
$metadata: deserializeMetadata(output),
|
|
1683
|
-
});
|
|
1684
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1685
|
-
return contents;
|
|
1686
|
-
};
|
|
1687
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1688
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1689
|
-
const parsedOutput = {
|
|
1690
|
-
...output,
|
|
1691
|
-
body: await parseErrorBody(output.body, context),
|
|
1692
|
-
};
|
|
1693
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
|
-
switch (errorCode) {
|
|
1695
|
-
case "AccessPointNotFound":
|
|
1696
|
-
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1697
|
-
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1698
|
-
case "BadRequest":
|
|
1699
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1700
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1701
|
-
case "FileSystemNotFound":
|
|
1702
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1703
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1704
|
-
case "InternalServerError":
|
|
1705
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1706
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1707
|
-
default:
|
|
1708
|
-
const parsedBody = parsedOutput.body;
|
|
1709
|
-
return throwDefaultError({
|
|
1710
|
-
output,
|
|
1711
|
-
parsedBody,
|
|
1712
|
-
errorCode,
|
|
1713
|
-
});
|
|
1714
|
-
}
|
|
1715
|
-
};
|
|
1716
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1717
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1718
|
-
return de_UntagResourceCommandError(output, context);
|
|
1719
|
-
}
|
|
1720
|
-
const contents = (0, smithy_client_1.map)({
|
|
1721
|
-
$metadata: deserializeMetadata(output),
|
|
1722
|
-
});
|
|
1723
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1724
|
-
return contents;
|
|
1725
|
-
};
|
|
1726
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1727
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1728
|
-
const parsedOutput = {
|
|
1729
|
-
...output,
|
|
1730
|
-
body: await parseErrorBody(output.body, context),
|
|
1731
|
-
};
|
|
1732
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1733
|
-
switch (errorCode) {
|
|
1734
|
-
case "AccessPointNotFound":
|
|
1735
|
-
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1736
|
-
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1737
|
-
case "BadRequest":
|
|
1738
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1739
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1740
|
-
case "FileSystemNotFound":
|
|
1741
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1742
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1743
|
-
case "InternalServerError":
|
|
1744
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1745
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1746
|
-
default:
|
|
1747
|
-
const parsedBody = parsedOutput.body;
|
|
1748
|
-
return throwDefaultError({
|
|
1749
|
-
output,
|
|
1750
|
-
parsedBody,
|
|
1751
|
-
errorCode,
|
|
1752
|
-
});
|
|
1753
|
-
}
|
|
1754
|
-
};
|
|
1755
|
-
const de_UpdateFileSystemCommand = async (output, context) => {
|
|
1756
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1757
|
-
return de_UpdateFileSystemCommandError(output, context);
|
|
1758
|
-
}
|
|
1759
|
-
const contents = (0, smithy_client_1.map)({
|
|
1760
|
-
$metadata: deserializeMetadata(output),
|
|
1761
|
-
});
|
|
1762
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1763
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1764
|
-
AvailabilityZoneId: smithy_client_1.expectString,
|
|
1765
|
-
AvailabilityZoneName: smithy_client_1.expectString,
|
|
1766
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1767
|
-
CreationToken: smithy_client_1.expectString,
|
|
1768
|
-
Encrypted: smithy_client_1.expectBoolean,
|
|
1769
|
-
FileSystemArn: smithy_client_1.expectString,
|
|
1770
|
-
FileSystemId: smithy_client_1.expectString,
|
|
1771
|
-
FileSystemProtection: smithy_client_1._json,
|
|
1772
|
-
KmsKeyId: smithy_client_1.expectString,
|
|
1773
|
-
LifeCycleState: smithy_client_1.expectString,
|
|
1774
|
-
Name: smithy_client_1.expectString,
|
|
1775
|
-
NumberOfMountTargets: smithy_client_1.expectInt32,
|
|
1776
|
-
OwnerId: smithy_client_1.expectString,
|
|
1777
|
-
PerformanceMode: smithy_client_1.expectString,
|
|
1778
|
-
ProvisionedThroughputInMibps: smithy_client_1.limitedParseDouble,
|
|
1779
|
-
SizeInBytes: (_) => de_FileSystemSize(_, context),
|
|
1780
|
-
Tags: smithy_client_1._json,
|
|
1781
|
-
ThroughputMode: smithy_client_1.expectString,
|
|
1782
|
-
});
|
|
1783
|
-
Object.assign(contents, doc);
|
|
1784
|
-
return contents;
|
|
1785
|
-
};
|
|
1786
|
-
exports.de_UpdateFileSystemCommand = de_UpdateFileSystemCommand;
|
|
1787
|
-
const de_UpdateFileSystemCommandError = async (output, context) => {
|
|
1788
|
-
const parsedOutput = {
|
|
1789
|
-
...output,
|
|
1790
|
-
body: await parseErrorBody(output.body, context),
|
|
1791
|
-
};
|
|
1792
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
|
-
switch (errorCode) {
|
|
1794
|
-
case "BadRequest":
|
|
1795
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1796
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1797
|
-
case "FileSystemNotFound":
|
|
1798
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1799
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1800
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
1801
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1802
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1803
|
-
case "InsufficientThroughputCapacity":
|
|
1804
|
-
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
1805
|
-
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
1806
|
-
case "InternalServerError":
|
|
1807
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1808
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1809
|
-
case "ThroughputLimitExceeded":
|
|
1810
|
-
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
1811
|
-
throw await de_ThroughputLimitExceededRes(parsedOutput, context);
|
|
1812
|
-
case "TooManyRequests":
|
|
1813
|
-
case "com.amazonaws.efs#TooManyRequests":
|
|
1814
|
-
throw await de_TooManyRequestsRes(parsedOutput, context);
|
|
1815
|
-
default:
|
|
1816
|
-
const parsedBody = parsedOutput.body;
|
|
1817
|
-
return throwDefaultError({
|
|
1818
|
-
output,
|
|
1819
|
-
parsedBody,
|
|
1820
|
-
errorCode,
|
|
1821
|
-
});
|
|
1822
|
-
}
|
|
1823
|
-
};
|
|
1824
|
-
const de_UpdateFileSystemProtectionCommand = async (output, context) => {
|
|
1825
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1826
|
-
return de_UpdateFileSystemProtectionCommandError(output, context);
|
|
1827
|
-
}
|
|
1828
|
-
const contents = (0, smithy_client_1.map)({
|
|
1829
|
-
$metadata: deserializeMetadata(output),
|
|
1830
|
-
});
|
|
1831
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1832
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1833
|
-
ReplicationOverwriteProtection: smithy_client_1.expectString,
|
|
1834
|
-
});
|
|
1835
|
-
Object.assign(contents, doc);
|
|
1836
|
-
return contents;
|
|
1837
|
-
};
|
|
1838
|
-
exports.de_UpdateFileSystemProtectionCommand = de_UpdateFileSystemProtectionCommand;
|
|
1839
|
-
const de_UpdateFileSystemProtectionCommandError = async (output, context) => {
|
|
1840
|
-
const parsedOutput = {
|
|
1841
|
-
...output,
|
|
1842
|
-
body: await parseErrorBody(output.body, context),
|
|
1843
|
-
};
|
|
1844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
-
switch (errorCode) {
|
|
1846
|
-
case "BadRequest":
|
|
1847
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1848
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1849
|
-
case "FileSystemNotFound":
|
|
1850
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1851
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1852
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
1853
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1854
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1855
|
-
case "InsufficientThroughputCapacity":
|
|
1856
|
-
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
1857
|
-
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
1858
|
-
case "InternalServerError":
|
|
1859
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1860
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1861
|
-
case "ReplicationAlreadyExists":
|
|
1862
|
-
case "com.amazonaws.efs#ReplicationAlreadyExists":
|
|
1863
|
-
throw await de_ReplicationAlreadyExistsRes(parsedOutput, context);
|
|
1864
|
-
case "ThroughputLimitExceeded":
|
|
1865
|
-
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
1866
|
-
throw await de_ThroughputLimitExceededRes(parsedOutput, context);
|
|
1867
|
-
case "TooManyRequests":
|
|
1868
|
-
case "com.amazonaws.efs#TooManyRequests":
|
|
1869
|
-
throw await de_TooManyRequestsRes(parsedOutput, context);
|
|
1870
|
-
default:
|
|
1871
|
-
const parsedBody = parsedOutput.body;
|
|
1872
|
-
return throwDefaultError({
|
|
1873
|
-
output,
|
|
1874
|
-
parsedBody,
|
|
1875
|
-
errorCode,
|
|
1876
|
-
});
|
|
1877
|
-
}
|
|
1878
|
-
};
|
|
1879
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(EFSServiceException_1.EFSServiceException);
|
|
1880
|
-
const de_AccessPointAlreadyExistsRes = async (parsedOutput, context) => {
|
|
1881
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1882
|
-
const data = parsedOutput.body;
|
|
1883
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1884
|
-
AccessPointId: smithy_client_1.expectString,
|
|
1885
|
-
ErrorCode: smithy_client_1.expectString,
|
|
1886
|
-
Message: smithy_client_1.expectString,
|
|
1887
|
-
});
|
|
1888
|
-
Object.assign(contents, doc);
|
|
1889
|
-
const exception = new models_0_1.AccessPointAlreadyExists({
|
|
1890
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1891
|
-
...contents,
|
|
1892
|
-
});
|
|
1893
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1894
|
-
};
|
|
1895
|
-
const de_AccessPointLimitExceededRes = async (parsedOutput, context) => {
|
|
1896
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1897
|
-
const data = parsedOutput.body;
|
|
1898
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1899
|
-
ErrorCode: smithy_client_1.expectString,
|
|
1900
|
-
Message: smithy_client_1.expectString,
|
|
1901
|
-
});
|
|
1902
|
-
Object.assign(contents, doc);
|
|
1903
|
-
const exception = new models_0_1.AccessPointLimitExceeded({
|
|
1904
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1905
|
-
...contents,
|
|
1906
|
-
});
|
|
1907
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1908
|
-
};
|
|
1909
|
-
const de_AccessPointNotFoundRes = async (parsedOutput, context) => {
|
|
1910
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1911
|
-
const data = parsedOutput.body;
|
|
1912
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1913
|
-
ErrorCode: smithy_client_1.expectString,
|
|
1914
|
-
Message: smithy_client_1.expectString,
|
|
1915
|
-
});
|
|
1916
|
-
Object.assign(contents, doc);
|
|
1917
|
-
const exception = new models_0_1.AccessPointNotFound({
|
|
1918
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1919
|
-
...contents,
|
|
1920
|
-
});
|
|
1921
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1922
|
-
};
|
|
1923
|
-
const de_AvailabilityZonesMismatchRes = async (parsedOutput, context) => {
|
|
1924
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1925
|
-
const data = parsedOutput.body;
|
|
1926
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1927
|
-
ErrorCode: smithy_client_1.expectString,
|
|
1928
|
-
Message: smithy_client_1.expectString,
|
|
1929
|
-
});
|
|
1930
|
-
Object.assign(contents, doc);
|
|
1931
|
-
const exception = new models_0_1.AvailabilityZonesMismatch({
|
|
1932
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1933
|
-
...contents,
|
|
1934
|
-
});
|
|
1935
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1936
|
-
};
|
|
1937
|
-
const de_BadRequestRes = async (parsedOutput, context) => {
|
|
1938
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1939
|
-
const data = parsedOutput.body;
|
|
1940
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1941
|
-
ErrorCode: smithy_client_1.expectString,
|
|
1942
|
-
Message: smithy_client_1.expectString,
|
|
1943
|
-
});
|
|
1944
|
-
Object.assign(contents, doc);
|
|
1945
|
-
const exception = new models_0_1.BadRequest({
|
|
1946
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1947
|
-
...contents,
|
|
1948
|
-
});
|
|
1949
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1950
|
-
};
|
|
1951
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1952
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1953
|
-
const data = parsedOutput.body;
|
|
1954
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1955
|
-
ErrorCode: smithy_client_1.expectString,
|
|
1956
|
-
Message: smithy_client_1.expectString,
|
|
1957
|
-
});
|
|
1958
|
-
Object.assign(contents, doc);
|
|
1959
|
-
const exception = new models_0_1.ConflictException({
|
|
1960
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1961
|
-
...contents,
|
|
1962
|
-
});
|
|
1963
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1964
|
-
};
|
|
1965
|
-
const de_DependencyTimeoutRes = async (parsedOutput, context) => {
|
|
1966
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1967
|
-
const data = parsedOutput.body;
|
|
1968
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1969
|
-
ErrorCode: smithy_client_1.expectString,
|
|
1970
|
-
Message: smithy_client_1.expectString,
|
|
1971
|
-
});
|
|
1972
|
-
Object.assign(contents, doc);
|
|
1973
|
-
const exception = new models_0_1.DependencyTimeout({
|
|
1974
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1975
|
-
...contents,
|
|
1976
|
-
});
|
|
1977
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1978
|
-
};
|
|
1979
|
-
const de_FileSystemAlreadyExistsRes = async (parsedOutput, context) => {
|
|
1980
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1981
|
-
const data = parsedOutput.body;
|
|
1982
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1983
|
-
ErrorCode: smithy_client_1.expectString,
|
|
1984
|
-
FileSystemId: smithy_client_1.expectString,
|
|
1985
|
-
Message: smithy_client_1.expectString,
|
|
1986
|
-
});
|
|
1987
|
-
Object.assign(contents, doc);
|
|
1988
|
-
const exception = new models_0_1.FileSystemAlreadyExists({
|
|
1989
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1990
|
-
...contents,
|
|
1991
|
-
});
|
|
1992
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1993
|
-
};
|
|
1994
|
-
const de_FileSystemInUseRes = async (parsedOutput, context) => {
|
|
1995
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1996
|
-
const data = parsedOutput.body;
|
|
1997
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1998
|
-
ErrorCode: smithy_client_1.expectString,
|
|
1999
|
-
Message: smithy_client_1.expectString,
|
|
2000
|
-
});
|
|
2001
|
-
Object.assign(contents, doc);
|
|
2002
|
-
const exception = new models_0_1.FileSystemInUse({
|
|
2003
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2004
|
-
...contents,
|
|
2005
|
-
});
|
|
2006
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2007
|
-
};
|
|
2008
|
-
const de_FileSystemLimitExceededRes = async (parsedOutput, context) => {
|
|
2009
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2010
|
-
const data = parsedOutput.body;
|
|
2011
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2012
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2013
|
-
Message: smithy_client_1.expectString,
|
|
2014
|
-
});
|
|
2015
|
-
Object.assign(contents, doc);
|
|
2016
|
-
const exception = new models_0_1.FileSystemLimitExceeded({
|
|
2017
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2018
|
-
...contents,
|
|
2019
|
-
});
|
|
2020
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2021
|
-
};
|
|
2022
|
-
const de_FileSystemNotFoundRes = async (parsedOutput, context) => {
|
|
2023
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2024
|
-
const data = parsedOutput.body;
|
|
2025
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2026
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2027
|
-
Message: smithy_client_1.expectString,
|
|
2028
|
-
});
|
|
2029
|
-
Object.assign(contents, doc);
|
|
2030
|
-
const exception = new models_0_1.FileSystemNotFound({
|
|
2031
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2032
|
-
...contents,
|
|
2033
|
-
});
|
|
2034
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2035
|
-
};
|
|
2036
|
-
const de_IncorrectFileSystemLifeCycleStateRes = async (parsedOutput, context) => {
|
|
2037
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2038
|
-
const data = parsedOutput.body;
|
|
2039
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2040
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2041
|
-
Message: smithy_client_1.expectString,
|
|
2042
|
-
});
|
|
2043
|
-
Object.assign(contents, doc);
|
|
2044
|
-
const exception = new models_0_1.IncorrectFileSystemLifeCycleState({
|
|
2045
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2046
|
-
...contents,
|
|
2047
|
-
});
|
|
2048
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2049
|
-
};
|
|
2050
|
-
const de_IncorrectMountTargetStateRes = async (parsedOutput, context) => {
|
|
2051
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2052
|
-
const data = parsedOutput.body;
|
|
2053
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2054
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2055
|
-
Message: smithy_client_1.expectString,
|
|
2056
|
-
});
|
|
2057
|
-
Object.assign(contents, doc);
|
|
2058
|
-
const exception = new models_0_1.IncorrectMountTargetState({
|
|
2059
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2060
|
-
...contents,
|
|
2061
|
-
});
|
|
2062
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2063
|
-
};
|
|
2064
|
-
const de_InsufficientThroughputCapacityRes = async (parsedOutput, context) => {
|
|
2065
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2066
|
-
const data = parsedOutput.body;
|
|
2067
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2068
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2069
|
-
Message: smithy_client_1.expectString,
|
|
2070
|
-
});
|
|
2071
|
-
Object.assign(contents, doc);
|
|
2072
|
-
const exception = new models_0_1.InsufficientThroughputCapacity({
|
|
2073
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2074
|
-
...contents,
|
|
2075
|
-
});
|
|
2076
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2077
|
-
};
|
|
2078
|
-
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
2079
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2080
|
-
const data = parsedOutput.body;
|
|
2081
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2082
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2083
|
-
Message: smithy_client_1.expectString,
|
|
2084
|
-
});
|
|
2085
|
-
Object.assign(contents, doc);
|
|
2086
|
-
const exception = new models_0_1.InternalServerError({
|
|
2087
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2088
|
-
...contents,
|
|
2089
|
-
});
|
|
2090
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2091
|
-
};
|
|
2092
|
-
const de_InvalidPolicyExceptionRes = async (parsedOutput, context) => {
|
|
2093
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2094
|
-
const data = parsedOutput.body;
|
|
2095
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2096
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2097
|
-
Message: smithy_client_1.expectString,
|
|
2098
|
-
});
|
|
2099
|
-
Object.assign(contents, doc);
|
|
2100
|
-
const exception = new models_0_1.InvalidPolicyException({
|
|
2101
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2102
|
-
...contents,
|
|
2103
|
-
});
|
|
2104
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2105
|
-
};
|
|
2106
|
-
const de_IpAddressInUseRes = async (parsedOutput, context) => {
|
|
2107
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2108
|
-
const data = parsedOutput.body;
|
|
2109
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2110
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2111
|
-
Message: smithy_client_1.expectString,
|
|
2112
|
-
});
|
|
2113
|
-
Object.assign(contents, doc);
|
|
2114
|
-
const exception = new models_0_1.IpAddressInUse({
|
|
2115
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2116
|
-
...contents,
|
|
2117
|
-
});
|
|
2118
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2119
|
-
};
|
|
2120
|
-
const de_MountTargetConflictRes = async (parsedOutput, context) => {
|
|
2121
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2122
|
-
const data = parsedOutput.body;
|
|
2123
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2124
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2125
|
-
Message: smithy_client_1.expectString,
|
|
2126
|
-
});
|
|
2127
|
-
Object.assign(contents, doc);
|
|
2128
|
-
const exception = new models_0_1.MountTargetConflict({
|
|
2129
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2130
|
-
...contents,
|
|
2131
|
-
});
|
|
2132
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2133
|
-
};
|
|
2134
|
-
const de_MountTargetNotFoundRes = async (parsedOutput, context) => {
|
|
2135
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2136
|
-
const data = parsedOutput.body;
|
|
2137
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2138
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2139
|
-
Message: smithy_client_1.expectString,
|
|
2140
|
-
});
|
|
2141
|
-
Object.assign(contents, doc);
|
|
2142
|
-
const exception = new models_0_1.MountTargetNotFound({
|
|
2143
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2144
|
-
...contents,
|
|
2145
|
-
});
|
|
2146
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2147
|
-
};
|
|
2148
|
-
const de_NetworkInterfaceLimitExceededRes = async (parsedOutput, context) => {
|
|
2149
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2150
|
-
const data = parsedOutput.body;
|
|
2151
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2152
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2153
|
-
Message: smithy_client_1.expectString,
|
|
2154
|
-
});
|
|
2155
|
-
Object.assign(contents, doc);
|
|
2156
|
-
const exception = new models_0_1.NetworkInterfaceLimitExceeded({
|
|
2157
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2158
|
-
...contents,
|
|
2159
|
-
});
|
|
2160
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2161
|
-
};
|
|
2162
|
-
const de_NoFreeAddressesInSubnetRes = async (parsedOutput, context) => {
|
|
2163
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2164
|
-
const data = parsedOutput.body;
|
|
2165
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2166
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2167
|
-
Message: smithy_client_1.expectString,
|
|
2168
|
-
});
|
|
2169
|
-
Object.assign(contents, doc);
|
|
2170
|
-
const exception = new models_0_1.NoFreeAddressesInSubnet({
|
|
2171
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2172
|
-
...contents,
|
|
2173
|
-
});
|
|
2174
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2175
|
-
};
|
|
2176
|
-
const de_PolicyNotFoundRes = async (parsedOutput, context) => {
|
|
2177
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2178
|
-
const data = parsedOutput.body;
|
|
2179
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2180
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2181
|
-
Message: smithy_client_1.expectString,
|
|
2182
|
-
});
|
|
2183
|
-
Object.assign(contents, doc);
|
|
2184
|
-
const exception = new models_0_1.PolicyNotFound({
|
|
2185
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2186
|
-
...contents,
|
|
2187
|
-
});
|
|
2188
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2189
|
-
};
|
|
2190
|
-
const de_ReplicationAlreadyExistsRes = async (parsedOutput, context) => {
|
|
2191
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2192
|
-
const data = parsedOutput.body;
|
|
2193
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2194
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2195
|
-
Message: smithy_client_1.expectString,
|
|
2196
|
-
});
|
|
2197
|
-
Object.assign(contents, doc);
|
|
2198
|
-
const exception = new models_0_1.ReplicationAlreadyExists({
|
|
2199
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2200
|
-
...contents,
|
|
2201
|
-
});
|
|
2202
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2203
|
-
};
|
|
2204
|
-
const de_ReplicationNotFoundRes = async (parsedOutput, context) => {
|
|
2205
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2206
|
-
const data = parsedOutput.body;
|
|
2207
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2208
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2209
|
-
Message: smithy_client_1.expectString,
|
|
2210
|
-
});
|
|
2211
|
-
Object.assign(contents, doc);
|
|
2212
|
-
const exception = new models_0_1.ReplicationNotFound({
|
|
2213
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2214
|
-
...contents,
|
|
2215
|
-
});
|
|
2216
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2217
|
-
};
|
|
2218
|
-
const de_SecurityGroupLimitExceededRes = async (parsedOutput, context) => {
|
|
2219
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2220
|
-
const data = parsedOutput.body;
|
|
2221
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2222
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2223
|
-
Message: smithy_client_1.expectString,
|
|
2224
|
-
});
|
|
2225
|
-
Object.assign(contents, doc);
|
|
2226
|
-
const exception = new models_0_1.SecurityGroupLimitExceeded({
|
|
2227
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2228
|
-
...contents,
|
|
2229
|
-
});
|
|
2230
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2231
|
-
};
|
|
2232
|
-
const de_SecurityGroupNotFoundRes = async (parsedOutput, context) => {
|
|
2233
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2234
|
-
const data = parsedOutput.body;
|
|
2235
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2236
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2237
|
-
Message: smithy_client_1.expectString,
|
|
2238
|
-
});
|
|
2239
|
-
Object.assign(contents, doc);
|
|
2240
|
-
const exception = new models_0_1.SecurityGroupNotFound({
|
|
2241
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2242
|
-
...contents,
|
|
2243
|
-
});
|
|
2244
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2245
|
-
};
|
|
2246
|
-
const de_SubnetNotFoundRes = async (parsedOutput, context) => {
|
|
2247
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2248
|
-
const data = parsedOutput.body;
|
|
2249
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2250
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2251
|
-
Message: smithy_client_1.expectString,
|
|
2252
|
-
});
|
|
2253
|
-
Object.assign(contents, doc);
|
|
2254
|
-
const exception = new models_0_1.SubnetNotFound({
|
|
2255
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2256
|
-
...contents,
|
|
2257
|
-
});
|
|
2258
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2259
|
-
};
|
|
2260
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2261
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2262
|
-
const data = parsedOutput.body;
|
|
2263
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2264
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2265
|
-
Message: smithy_client_1.expectString,
|
|
2266
|
-
});
|
|
2267
|
-
Object.assign(contents, doc);
|
|
2268
|
-
const exception = new models_0_1.ThrottlingException({
|
|
2269
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2270
|
-
...contents,
|
|
2271
|
-
});
|
|
2272
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2273
|
-
};
|
|
2274
|
-
const de_ThroughputLimitExceededRes = async (parsedOutput, context) => {
|
|
2275
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2276
|
-
const data = parsedOutput.body;
|
|
2277
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2278
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2279
|
-
Message: smithy_client_1.expectString,
|
|
2280
|
-
});
|
|
2281
|
-
Object.assign(contents, doc);
|
|
2282
|
-
const exception = new models_0_1.ThroughputLimitExceeded({
|
|
2283
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2284
|
-
...contents,
|
|
2285
|
-
});
|
|
2286
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2287
|
-
};
|
|
2288
|
-
const de_TooManyRequestsRes = async (parsedOutput, context) => {
|
|
2289
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2290
|
-
const data = parsedOutput.body;
|
|
2291
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2292
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2293
|
-
Message: smithy_client_1.expectString,
|
|
2294
|
-
});
|
|
2295
|
-
Object.assign(contents, doc);
|
|
2296
|
-
const exception = new models_0_1.TooManyRequests({
|
|
2297
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2298
|
-
...contents,
|
|
2299
|
-
});
|
|
2300
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2301
|
-
};
|
|
2302
|
-
const de_UnsupportedAvailabilityZoneRes = async (parsedOutput, context) => {
|
|
2303
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2304
|
-
const data = parsedOutput.body;
|
|
2305
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2306
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2307
|
-
Message: smithy_client_1.expectString,
|
|
2308
|
-
});
|
|
2309
|
-
Object.assign(contents, doc);
|
|
2310
|
-
const exception = new models_0_1.UnsupportedAvailabilityZone({
|
|
2311
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2312
|
-
...contents,
|
|
2313
|
-
});
|
|
2314
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2315
|
-
};
|
|
2316
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2317
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2318
|
-
const data = parsedOutput.body;
|
|
2319
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2320
|
-
ErrorCode: smithy_client_1.expectString,
|
|
2321
|
-
Message: smithy_client_1.expectString,
|
|
2322
|
-
});
|
|
2323
|
-
Object.assign(contents, doc);
|
|
2324
|
-
const exception = new models_0_1.ValidationException({
|
|
2325
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2326
|
-
...contents,
|
|
2327
|
-
});
|
|
2328
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2329
|
-
};
|
|
2330
|
-
const de_Destination = (output, context) => {
|
|
2331
|
-
return (0, smithy_client_1.take)(output, {
|
|
2332
|
-
FileSystemId: smithy_client_1.expectString,
|
|
2333
|
-
LastReplicatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2334
|
-
Region: smithy_client_1.expectString,
|
|
2335
|
-
Status: smithy_client_1.expectString,
|
|
2336
|
-
});
|
|
2337
|
-
};
|
|
2338
|
-
const de_Destinations = (output, context) => {
|
|
2339
|
-
const retVal = (output || [])
|
|
2340
|
-
.filter((e) => e != null)
|
|
2341
|
-
.map((entry) => {
|
|
2342
|
-
return de_Destination(entry, context);
|
|
2343
|
-
});
|
|
2344
|
-
return retVal;
|
|
2345
|
-
};
|
|
2346
|
-
const de_FileSystemDescription = (output, context) => {
|
|
2347
|
-
return (0, smithy_client_1.take)(output, {
|
|
2348
|
-
AvailabilityZoneId: smithy_client_1.expectString,
|
|
2349
|
-
AvailabilityZoneName: smithy_client_1.expectString,
|
|
2350
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2351
|
-
CreationToken: smithy_client_1.expectString,
|
|
2352
|
-
Encrypted: smithy_client_1.expectBoolean,
|
|
2353
|
-
FileSystemArn: smithy_client_1.expectString,
|
|
2354
|
-
FileSystemId: smithy_client_1.expectString,
|
|
2355
|
-
FileSystemProtection: smithy_client_1._json,
|
|
2356
|
-
KmsKeyId: smithy_client_1.expectString,
|
|
2357
|
-
LifeCycleState: smithy_client_1.expectString,
|
|
2358
|
-
Name: smithy_client_1.expectString,
|
|
2359
|
-
NumberOfMountTargets: smithy_client_1.expectInt32,
|
|
2360
|
-
OwnerId: smithy_client_1.expectString,
|
|
2361
|
-
PerformanceMode: smithy_client_1.expectString,
|
|
2362
|
-
ProvisionedThroughputInMibps: smithy_client_1.limitedParseDouble,
|
|
2363
|
-
SizeInBytes: (_) => de_FileSystemSize(_, context),
|
|
2364
|
-
Tags: smithy_client_1._json,
|
|
2365
|
-
ThroughputMode: smithy_client_1.expectString,
|
|
2366
|
-
});
|
|
2367
|
-
};
|
|
2368
|
-
const de_FileSystemDescriptions = (output, context) => {
|
|
2369
|
-
const retVal = (output || [])
|
|
2370
|
-
.filter((e) => e != null)
|
|
2371
|
-
.map((entry) => {
|
|
2372
|
-
return de_FileSystemDescription(entry, context);
|
|
2373
|
-
});
|
|
2374
|
-
return retVal;
|
|
2375
|
-
};
|
|
2376
|
-
const de_FileSystemSize = (output, context) => {
|
|
2377
|
-
return (0, smithy_client_1.take)(output, {
|
|
2378
|
-
Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2379
|
-
Value: smithy_client_1.expectLong,
|
|
2380
|
-
ValueInArchive: smithy_client_1.expectLong,
|
|
2381
|
-
ValueInIA: smithy_client_1.expectLong,
|
|
2382
|
-
ValueInStandard: smithy_client_1.expectLong,
|
|
2383
|
-
});
|
|
2384
|
-
};
|
|
2385
|
-
const de_ReplicationConfigurationDescription = (output, context) => {
|
|
2386
|
-
return (0, smithy_client_1.take)(output, {
|
|
2387
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2388
|
-
Destinations: (_) => de_Destinations(_, context),
|
|
2389
|
-
OriginalSourceFileSystemArn: smithy_client_1.expectString,
|
|
2390
|
-
SourceFileSystemArn: smithy_client_1.expectString,
|
|
2391
|
-
SourceFileSystemId: smithy_client_1.expectString,
|
|
2392
|
-
SourceFileSystemRegion: smithy_client_1.expectString,
|
|
2393
|
-
});
|
|
2394
|
-
};
|
|
2395
|
-
const de_ReplicationConfigurationDescriptions = (output, context) => {
|
|
2396
|
-
const retVal = (output || [])
|
|
2397
|
-
.filter((e) => e != null)
|
|
2398
|
-
.map((entry) => {
|
|
2399
|
-
return de_ReplicationConfigurationDescription(entry, context);
|
|
2400
|
-
});
|
|
2401
|
-
return retVal;
|
|
2402
|
-
};
|
|
2403
|
-
const deserializeMetadata = (output) => ({
|
|
2404
|
-
httpStatusCode: output.statusCode,
|
|
2405
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2406
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2407
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2408
|
-
});
|
|
2409
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2410
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2411
|
-
value !== null &&
|
|
2412
|
-
value !== "" &&
|
|
2413
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2414
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2415
|
-
const _API = "AccessPointId";
|
|
2416
|
-
const _CT = "CreationToken";
|
|
2417
|
-
const _FSI = "FileSystemId";
|
|
2418
|
-
const _M = "Marker";
|
|
2419
|
-
const _MI = "MaxItems";
|
|
2420
|
-
const _MR = "MaxResults";
|
|
2421
|
-
const _MTI = "MountTargetId";
|
|
2422
|
-
const _NT = "NextToken";
|
|
2423
|
-
const _TK = "TagKeys";
|
|
2424
|
-
const _tK = "tagKeys";
|
|
2425
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2426
|
-
if (encoded.length) {
|
|
2427
|
-
return JSON.parse(encoded);
|
|
2428
|
-
}
|
|
2429
|
-
return {};
|
|
2430
|
-
});
|
|
2431
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2432
|
-
const value = await parseBody(errorBody, context);
|
|
2433
|
-
value.message = value.message ?? value.Message;
|
|
2434
|
-
return value;
|
|
2435
|
-
};
|
|
2436
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2437
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2438
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2439
|
-
let cleanValue = rawValue;
|
|
2440
|
-
if (typeof cleanValue === "number") {
|
|
2441
|
-
cleanValue = cleanValue.toString();
|
|
2442
|
-
}
|
|
2443
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2444
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2445
|
-
}
|
|
2446
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2447
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2448
|
-
}
|
|
2449
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2450
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2451
|
-
}
|
|
2452
|
-
return cleanValue;
|
|
2453
|
-
};
|
|
2454
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2455
|
-
if (headerKey !== undefined) {
|
|
2456
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2457
|
-
}
|
|
2458
|
-
if (data.code !== undefined) {
|
|
2459
|
-
return sanitizeErrorCode(data.code);
|
|
2460
|
-
}
|
|
2461
|
-
if (data["__type"] !== undefined) {
|
|
2462
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2463
|
-
}
|
|
2464
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|