@aws-sdk/client-efs 3.927.0 → 3.929.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/index.js +1480 -1835
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/EFSClient.js +2 -0
- package/dist-es/commands/CreateAccessPointCommand.js +3 -9
- package/dist-es/commands/CreateFileSystemCommand.js +3 -9
- package/dist-es/commands/CreateMountTargetCommand.js +3 -9
- package/dist-es/commands/CreateReplicationConfigurationCommand.js +3 -9
- package/dist-es/commands/CreateTagsCommand.js +3 -9
- package/dist-es/commands/DeleteAccessPointCommand.js +3 -9
- package/dist-es/commands/DeleteFileSystemCommand.js +3 -9
- package/dist-es/commands/DeleteFileSystemPolicyCommand.js +3 -9
- package/dist-es/commands/DeleteMountTargetCommand.js +3 -9
- package/dist-es/commands/DeleteReplicationConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteTagsCommand.js +3 -9
- package/dist-es/commands/DescribeAccessPointsCommand.js +3 -9
- package/dist-es/commands/DescribeAccountPreferencesCommand.js +3 -9
- package/dist-es/commands/DescribeBackupPolicyCommand.js +3 -9
- package/dist-es/commands/DescribeFileSystemPolicyCommand.js +3 -9
- package/dist-es/commands/DescribeFileSystemsCommand.js +3 -9
- package/dist-es/commands/DescribeLifecycleConfigurationCommand.js +3 -9
- package/dist-es/commands/DescribeMountTargetSecurityGroupsCommand.js +3 -9
- package/dist-es/commands/DescribeMountTargetsCommand.js +3 -9
- package/dist-es/commands/DescribeReplicationConfigurationsCommand.js +3 -9
- package/dist-es/commands/DescribeTagsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ModifyMountTargetSecurityGroupsCommand.js +3 -9
- package/dist-es/commands/PutAccountPreferencesCommand.js +3 -9
- package/dist-es/commands/PutBackupPolicyCommand.js +3 -9
- package/dist-es/commands/PutFileSystemPolicyCommand.js +3 -9
- package/dist-es/commands/PutLifecycleConfigurationCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateFileSystemCommand.js +3 -9
- package/dist-es/commands/UpdateFileSystemProtectionCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1334 -0
- package/dist-types/EFSClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +136 -0
- package/dist-types/ts3.4/EFSClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +141 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_restJson1.js +0 -1533
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -281
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -377
|
@@ -1,1533 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { EFSServiceException as __BaseException } from "../models/EFSServiceException";
|
|
6
|
-
import { AccessPointAlreadyExists, AccessPointLimitExceeded, AccessPointNotFound, AvailabilityZonesMismatch, BadRequest, ConflictException, DependencyTimeout, FileSystemAlreadyExists, FileSystemInUse, FileSystemLimitExceeded, FileSystemNotFound, IncorrectFileSystemLifeCycleState, IncorrectMountTargetState, InsufficientThroughputCapacity, InternalServerError, InvalidPolicyException, IpAddressInUse, MountTargetConflict, MountTargetNotFound, NetworkInterfaceLimitExceeded, NoFreeAddressesInSubnet, PolicyNotFound, ReplicationAlreadyExists, ReplicationNotFound, SecurityGroupLimitExceeded, SecurityGroupNotFound, SubnetNotFound, ThrottlingException, ThroughputLimitExceeded, TooManyRequests, UnsupportedAvailabilityZone, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_CreateAccessPointCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/2015-02-01/access-points");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
16
|
-
FileSystemId: [],
|
|
17
|
-
PosixUser: (_) => _json(_),
|
|
18
|
-
RootDirectory: (_) => _json(_),
|
|
19
|
-
Tags: (_) => _json(_),
|
|
20
|
-
}));
|
|
21
|
-
b.m("POST").h(headers).b(body);
|
|
22
|
-
return b.build();
|
|
23
|
-
};
|
|
24
|
-
export const se_CreateFileSystemCommand = async (input, context) => {
|
|
25
|
-
const b = rb(input, context);
|
|
26
|
-
const headers = {
|
|
27
|
-
"content-type": "application/json",
|
|
28
|
-
};
|
|
29
|
-
b.bp("/2015-02-01/file-systems");
|
|
30
|
-
let body;
|
|
31
|
-
body = JSON.stringify(take(input, {
|
|
32
|
-
AvailabilityZoneName: [],
|
|
33
|
-
Backup: [],
|
|
34
|
-
CreationToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
35
|
-
Encrypted: [],
|
|
36
|
-
KmsKeyId: [],
|
|
37
|
-
PerformanceMode: [],
|
|
38
|
-
ProvisionedThroughputInMibps: (_) => __serializeFloat(_),
|
|
39
|
-
Tags: (_) => _json(_),
|
|
40
|
-
ThroughputMode: [],
|
|
41
|
-
}));
|
|
42
|
-
b.m("POST").h(headers).b(body);
|
|
43
|
-
return b.build();
|
|
44
|
-
};
|
|
45
|
-
export const se_CreateMountTargetCommand = async (input, context) => {
|
|
46
|
-
const b = rb(input, context);
|
|
47
|
-
const headers = {
|
|
48
|
-
"content-type": "application/json",
|
|
49
|
-
};
|
|
50
|
-
b.bp("/2015-02-01/mount-targets");
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify(take(input, {
|
|
53
|
-
FileSystemId: [],
|
|
54
|
-
IpAddress: [],
|
|
55
|
-
IpAddressType: [],
|
|
56
|
-
Ipv6Address: [],
|
|
57
|
-
SecurityGroups: (_) => _json(_),
|
|
58
|
-
SubnetId: [],
|
|
59
|
-
}));
|
|
60
|
-
b.m("POST").h(headers).b(body);
|
|
61
|
-
return b.build();
|
|
62
|
-
};
|
|
63
|
-
export const se_CreateReplicationConfigurationCommand = async (input, context) => {
|
|
64
|
-
const b = rb(input, context);
|
|
65
|
-
const headers = {
|
|
66
|
-
"content-type": "application/json",
|
|
67
|
-
};
|
|
68
|
-
b.bp("/2015-02-01/file-systems/{SourceFileSystemId}/replication-configuration");
|
|
69
|
-
b.p("SourceFileSystemId", () => input.SourceFileSystemId, "{SourceFileSystemId}", false);
|
|
70
|
-
let body;
|
|
71
|
-
body = JSON.stringify(take(input, {
|
|
72
|
-
Destinations: (_) => _json(_),
|
|
73
|
-
}));
|
|
74
|
-
b.m("POST").h(headers).b(body);
|
|
75
|
-
return b.build();
|
|
76
|
-
};
|
|
77
|
-
export const se_CreateTagsCommand = async (input, context) => {
|
|
78
|
-
const b = rb(input, context);
|
|
79
|
-
const headers = {
|
|
80
|
-
"content-type": "application/json",
|
|
81
|
-
};
|
|
82
|
-
b.bp("/2015-02-01/create-tags/{FileSystemId}");
|
|
83
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
84
|
-
let body;
|
|
85
|
-
body = JSON.stringify(take(input, {
|
|
86
|
-
Tags: (_) => _json(_),
|
|
87
|
-
}));
|
|
88
|
-
b.m("POST").h(headers).b(body);
|
|
89
|
-
return b.build();
|
|
90
|
-
};
|
|
91
|
-
export const se_DeleteAccessPointCommand = async (input, context) => {
|
|
92
|
-
const b = rb(input, context);
|
|
93
|
-
const headers = {};
|
|
94
|
-
b.bp("/2015-02-01/access-points/{AccessPointId}");
|
|
95
|
-
b.p("AccessPointId", () => input.AccessPointId, "{AccessPointId}", false);
|
|
96
|
-
let body;
|
|
97
|
-
b.m("DELETE").h(headers).b(body);
|
|
98
|
-
return b.build();
|
|
99
|
-
};
|
|
100
|
-
export const se_DeleteFileSystemCommand = async (input, context) => {
|
|
101
|
-
const b = rb(input, context);
|
|
102
|
-
const headers = {};
|
|
103
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}");
|
|
104
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
105
|
-
let body;
|
|
106
|
-
b.m("DELETE").h(headers).b(body);
|
|
107
|
-
return b.build();
|
|
108
|
-
};
|
|
109
|
-
export const se_DeleteFileSystemPolicyCommand = async (input, context) => {
|
|
110
|
-
const b = rb(input, context);
|
|
111
|
-
const headers = {};
|
|
112
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/policy");
|
|
113
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
114
|
-
let body;
|
|
115
|
-
b.m("DELETE").h(headers).b(body);
|
|
116
|
-
return b.build();
|
|
117
|
-
};
|
|
118
|
-
export const se_DeleteMountTargetCommand = async (input, context) => {
|
|
119
|
-
const b = rb(input, context);
|
|
120
|
-
const headers = {};
|
|
121
|
-
b.bp("/2015-02-01/mount-targets/{MountTargetId}");
|
|
122
|
-
b.p("MountTargetId", () => input.MountTargetId, "{MountTargetId}", false);
|
|
123
|
-
let body;
|
|
124
|
-
b.m("DELETE").h(headers).b(body);
|
|
125
|
-
return b.build();
|
|
126
|
-
};
|
|
127
|
-
export const se_DeleteReplicationConfigurationCommand = async (input, context) => {
|
|
128
|
-
const b = rb(input, context);
|
|
129
|
-
const headers = {};
|
|
130
|
-
b.bp("/2015-02-01/file-systems/{SourceFileSystemId}/replication-configuration");
|
|
131
|
-
b.p("SourceFileSystemId", () => input.SourceFileSystemId, "{SourceFileSystemId}", false);
|
|
132
|
-
const query = map({
|
|
133
|
-
[_dM]: [, input[_DM]],
|
|
134
|
-
});
|
|
135
|
-
let body;
|
|
136
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
137
|
-
return b.build();
|
|
138
|
-
};
|
|
139
|
-
export const se_DeleteTagsCommand = async (input, context) => {
|
|
140
|
-
const b = rb(input, context);
|
|
141
|
-
const headers = {
|
|
142
|
-
"content-type": "application/json",
|
|
143
|
-
};
|
|
144
|
-
b.bp("/2015-02-01/delete-tags/{FileSystemId}");
|
|
145
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(take(input, {
|
|
148
|
-
TagKeys: (_) => _json(_),
|
|
149
|
-
}));
|
|
150
|
-
b.m("POST").h(headers).b(body);
|
|
151
|
-
return b.build();
|
|
152
|
-
};
|
|
153
|
-
export const se_DescribeAccessPointsCommand = async (input, context) => {
|
|
154
|
-
const b = rb(input, context);
|
|
155
|
-
const headers = {};
|
|
156
|
-
b.bp("/2015-02-01/access-points");
|
|
157
|
-
const query = map({
|
|
158
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
159
|
-
[_NT]: [, input[_NT]],
|
|
160
|
-
[_API]: [, input[_API]],
|
|
161
|
-
[_FSI]: [, input[_FSI]],
|
|
162
|
-
});
|
|
163
|
-
let body;
|
|
164
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
165
|
-
return b.build();
|
|
166
|
-
};
|
|
167
|
-
export const se_DescribeAccountPreferencesCommand = async (input, context) => {
|
|
168
|
-
const b = rb(input, context);
|
|
169
|
-
const headers = {
|
|
170
|
-
"content-type": "application/json",
|
|
171
|
-
};
|
|
172
|
-
b.bp("/2015-02-01/account-preferences");
|
|
173
|
-
let body;
|
|
174
|
-
body = JSON.stringify(take(input, {
|
|
175
|
-
MaxResults: [],
|
|
176
|
-
NextToken: [],
|
|
177
|
-
}));
|
|
178
|
-
b.m("GET").h(headers).b(body);
|
|
179
|
-
return b.build();
|
|
180
|
-
};
|
|
181
|
-
export const se_DescribeBackupPolicyCommand = async (input, context) => {
|
|
182
|
-
const b = rb(input, context);
|
|
183
|
-
const headers = {};
|
|
184
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/backup-policy");
|
|
185
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
186
|
-
let body;
|
|
187
|
-
b.m("GET").h(headers).b(body);
|
|
188
|
-
return b.build();
|
|
189
|
-
};
|
|
190
|
-
export const se_DescribeFileSystemPolicyCommand = async (input, context) => {
|
|
191
|
-
const b = rb(input, context);
|
|
192
|
-
const headers = {};
|
|
193
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/policy");
|
|
194
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
195
|
-
let body;
|
|
196
|
-
b.m("GET").h(headers).b(body);
|
|
197
|
-
return b.build();
|
|
198
|
-
};
|
|
199
|
-
export const se_DescribeFileSystemsCommand = async (input, context) => {
|
|
200
|
-
const b = rb(input, context);
|
|
201
|
-
const headers = {};
|
|
202
|
-
b.bp("/2015-02-01/file-systems");
|
|
203
|
-
const query = map({
|
|
204
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
205
|
-
[_M]: [, input[_M]],
|
|
206
|
-
[_CT]: [, input[_CT]],
|
|
207
|
-
[_FSI]: [, input[_FSI]],
|
|
208
|
-
});
|
|
209
|
-
let body;
|
|
210
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
211
|
-
return b.build();
|
|
212
|
-
};
|
|
213
|
-
export const se_DescribeLifecycleConfigurationCommand = async (input, context) => {
|
|
214
|
-
const b = rb(input, context);
|
|
215
|
-
const headers = {};
|
|
216
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/lifecycle-configuration");
|
|
217
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
218
|
-
let body;
|
|
219
|
-
b.m("GET").h(headers).b(body);
|
|
220
|
-
return b.build();
|
|
221
|
-
};
|
|
222
|
-
export const se_DescribeMountTargetsCommand = async (input, context) => {
|
|
223
|
-
const b = rb(input, context);
|
|
224
|
-
const headers = {};
|
|
225
|
-
b.bp("/2015-02-01/mount-targets");
|
|
226
|
-
const query = map({
|
|
227
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
228
|
-
[_M]: [, input[_M]],
|
|
229
|
-
[_FSI]: [, input[_FSI]],
|
|
230
|
-
[_MTI]: [, input[_MTI]],
|
|
231
|
-
[_API]: [, input[_API]],
|
|
232
|
-
});
|
|
233
|
-
let body;
|
|
234
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
235
|
-
return b.build();
|
|
236
|
-
};
|
|
237
|
-
export const se_DescribeMountTargetSecurityGroupsCommand = async (input, context) => {
|
|
238
|
-
const b = rb(input, context);
|
|
239
|
-
const headers = {};
|
|
240
|
-
b.bp("/2015-02-01/mount-targets/{MountTargetId}/security-groups");
|
|
241
|
-
b.p("MountTargetId", () => input.MountTargetId, "{MountTargetId}", false);
|
|
242
|
-
let body;
|
|
243
|
-
b.m("GET").h(headers).b(body);
|
|
244
|
-
return b.build();
|
|
245
|
-
};
|
|
246
|
-
export const se_DescribeReplicationConfigurationsCommand = async (input, context) => {
|
|
247
|
-
const b = rb(input, context);
|
|
248
|
-
const headers = {};
|
|
249
|
-
b.bp("/2015-02-01/file-systems/replication-configurations");
|
|
250
|
-
const query = map({
|
|
251
|
-
[_FSI]: [, input[_FSI]],
|
|
252
|
-
[_NT]: [, input[_NT]],
|
|
253
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
254
|
-
});
|
|
255
|
-
let body;
|
|
256
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
257
|
-
return b.build();
|
|
258
|
-
};
|
|
259
|
-
export const se_DescribeTagsCommand = async (input, context) => {
|
|
260
|
-
const b = rb(input, context);
|
|
261
|
-
const headers = {};
|
|
262
|
-
b.bp("/2015-02-01/tags/{FileSystemId}");
|
|
263
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
264
|
-
const query = map({
|
|
265
|
-
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
266
|
-
[_M]: [, input[_M]],
|
|
267
|
-
});
|
|
268
|
-
let body;
|
|
269
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
270
|
-
return b.build();
|
|
271
|
-
};
|
|
272
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
273
|
-
const b = rb(input, context);
|
|
274
|
-
const headers = {};
|
|
275
|
-
b.bp("/2015-02-01/resource-tags/{ResourceId}");
|
|
276
|
-
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
277
|
-
const query = map({
|
|
278
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
279
|
-
[_NT]: [, input[_NT]],
|
|
280
|
-
});
|
|
281
|
-
let body;
|
|
282
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
283
|
-
return b.build();
|
|
284
|
-
};
|
|
285
|
-
export const se_ModifyMountTargetSecurityGroupsCommand = async (input, context) => {
|
|
286
|
-
const b = rb(input, context);
|
|
287
|
-
const headers = {
|
|
288
|
-
"content-type": "application/json",
|
|
289
|
-
};
|
|
290
|
-
b.bp("/2015-02-01/mount-targets/{MountTargetId}/security-groups");
|
|
291
|
-
b.p("MountTargetId", () => input.MountTargetId, "{MountTargetId}", false);
|
|
292
|
-
let body;
|
|
293
|
-
body = JSON.stringify(take(input, {
|
|
294
|
-
SecurityGroups: (_) => _json(_),
|
|
295
|
-
}));
|
|
296
|
-
b.m("PUT").h(headers).b(body);
|
|
297
|
-
return b.build();
|
|
298
|
-
};
|
|
299
|
-
export const se_PutAccountPreferencesCommand = async (input, context) => {
|
|
300
|
-
const b = rb(input, context);
|
|
301
|
-
const headers = {
|
|
302
|
-
"content-type": "application/json",
|
|
303
|
-
};
|
|
304
|
-
b.bp("/2015-02-01/account-preferences");
|
|
305
|
-
let body;
|
|
306
|
-
body = JSON.stringify(take(input, {
|
|
307
|
-
ResourceIdType: [],
|
|
308
|
-
}));
|
|
309
|
-
b.m("PUT").h(headers).b(body);
|
|
310
|
-
return b.build();
|
|
311
|
-
};
|
|
312
|
-
export const se_PutBackupPolicyCommand = async (input, context) => {
|
|
313
|
-
const b = rb(input, context);
|
|
314
|
-
const headers = {
|
|
315
|
-
"content-type": "application/json",
|
|
316
|
-
};
|
|
317
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/backup-policy");
|
|
318
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
319
|
-
let body;
|
|
320
|
-
body = JSON.stringify(take(input, {
|
|
321
|
-
BackupPolicy: (_) => _json(_),
|
|
322
|
-
}));
|
|
323
|
-
b.m("PUT").h(headers).b(body);
|
|
324
|
-
return b.build();
|
|
325
|
-
};
|
|
326
|
-
export const se_PutFileSystemPolicyCommand = async (input, context) => {
|
|
327
|
-
const b = rb(input, context);
|
|
328
|
-
const headers = {
|
|
329
|
-
"content-type": "application/json",
|
|
330
|
-
};
|
|
331
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/policy");
|
|
332
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
333
|
-
let body;
|
|
334
|
-
body = JSON.stringify(take(input, {
|
|
335
|
-
BypassPolicyLockoutSafetyCheck: [],
|
|
336
|
-
Policy: [],
|
|
337
|
-
}));
|
|
338
|
-
b.m("PUT").h(headers).b(body);
|
|
339
|
-
return b.build();
|
|
340
|
-
};
|
|
341
|
-
export const se_PutLifecycleConfigurationCommand = async (input, context) => {
|
|
342
|
-
const b = rb(input, context);
|
|
343
|
-
const headers = {
|
|
344
|
-
"content-type": "application/json",
|
|
345
|
-
};
|
|
346
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/lifecycle-configuration");
|
|
347
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
348
|
-
let body;
|
|
349
|
-
body = JSON.stringify(take(input, {
|
|
350
|
-
LifecyclePolicies: (_) => _json(_),
|
|
351
|
-
}));
|
|
352
|
-
b.m("PUT").h(headers).b(body);
|
|
353
|
-
return b.build();
|
|
354
|
-
};
|
|
355
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
356
|
-
const b = rb(input, context);
|
|
357
|
-
const headers = {
|
|
358
|
-
"content-type": "application/json",
|
|
359
|
-
};
|
|
360
|
-
b.bp("/2015-02-01/resource-tags/{ResourceId}");
|
|
361
|
-
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
362
|
-
let body;
|
|
363
|
-
body = JSON.stringify(take(input, {
|
|
364
|
-
Tags: (_) => _json(_),
|
|
365
|
-
}));
|
|
366
|
-
b.m("POST").h(headers).b(body);
|
|
367
|
-
return b.build();
|
|
368
|
-
};
|
|
369
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
370
|
-
const b = rb(input, context);
|
|
371
|
-
const headers = {};
|
|
372
|
-
b.bp("/2015-02-01/resource-tags/{ResourceId}");
|
|
373
|
-
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
374
|
-
const query = map({
|
|
375
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
376
|
-
});
|
|
377
|
-
let body;
|
|
378
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
379
|
-
return b.build();
|
|
380
|
-
};
|
|
381
|
-
export const se_UpdateFileSystemCommand = async (input, context) => {
|
|
382
|
-
const b = rb(input, context);
|
|
383
|
-
const headers = {
|
|
384
|
-
"content-type": "application/json",
|
|
385
|
-
};
|
|
386
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}");
|
|
387
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
388
|
-
let body;
|
|
389
|
-
body = JSON.stringify(take(input, {
|
|
390
|
-
ProvisionedThroughputInMibps: (_) => __serializeFloat(_),
|
|
391
|
-
ThroughputMode: [],
|
|
392
|
-
}));
|
|
393
|
-
b.m("PUT").h(headers).b(body);
|
|
394
|
-
return b.build();
|
|
395
|
-
};
|
|
396
|
-
export const se_UpdateFileSystemProtectionCommand = async (input, context) => {
|
|
397
|
-
const b = rb(input, context);
|
|
398
|
-
const headers = {
|
|
399
|
-
"content-type": "application/json",
|
|
400
|
-
};
|
|
401
|
-
b.bp("/2015-02-01/file-systems/{FileSystemId}/protection");
|
|
402
|
-
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
403
|
-
let body;
|
|
404
|
-
body = JSON.stringify(take(input, {
|
|
405
|
-
ReplicationOverwriteProtection: [],
|
|
406
|
-
}));
|
|
407
|
-
b.m("PUT").h(headers).b(body);
|
|
408
|
-
return b.build();
|
|
409
|
-
};
|
|
410
|
-
export const de_CreateAccessPointCommand = async (output, context) => {
|
|
411
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
412
|
-
return de_CommandError(output, context);
|
|
413
|
-
}
|
|
414
|
-
const contents = map({
|
|
415
|
-
$metadata: deserializeMetadata(output),
|
|
416
|
-
});
|
|
417
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
418
|
-
const doc = take(data, {
|
|
419
|
-
AccessPointArn: __expectString,
|
|
420
|
-
AccessPointId: __expectString,
|
|
421
|
-
ClientToken: __expectString,
|
|
422
|
-
FileSystemId: __expectString,
|
|
423
|
-
LifeCycleState: __expectString,
|
|
424
|
-
Name: __expectString,
|
|
425
|
-
OwnerId: __expectString,
|
|
426
|
-
PosixUser: _json,
|
|
427
|
-
RootDirectory: _json,
|
|
428
|
-
Tags: _json,
|
|
429
|
-
});
|
|
430
|
-
Object.assign(contents, doc);
|
|
431
|
-
return contents;
|
|
432
|
-
};
|
|
433
|
-
export const de_CreateFileSystemCommand = async (output, context) => {
|
|
434
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
435
|
-
return de_CommandError(output, context);
|
|
436
|
-
}
|
|
437
|
-
const contents = map({
|
|
438
|
-
$metadata: deserializeMetadata(output),
|
|
439
|
-
});
|
|
440
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
441
|
-
const doc = take(data, {
|
|
442
|
-
AvailabilityZoneId: __expectString,
|
|
443
|
-
AvailabilityZoneName: __expectString,
|
|
444
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
445
|
-
CreationToken: __expectString,
|
|
446
|
-
Encrypted: __expectBoolean,
|
|
447
|
-
FileSystemArn: __expectString,
|
|
448
|
-
FileSystemId: __expectString,
|
|
449
|
-
FileSystemProtection: _json,
|
|
450
|
-
KmsKeyId: __expectString,
|
|
451
|
-
LifeCycleState: __expectString,
|
|
452
|
-
Name: __expectString,
|
|
453
|
-
NumberOfMountTargets: __expectInt32,
|
|
454
|
-
OwnerId: __expectString,
|
|
455
|
-
PerformanceMode: __expectString,
|
|
456
|
-
ProvisionedThroughputInMibps: __limitedParseDouble,
|
|
457
|
-
SizeInBytes: (_) => de_FileSystemSize(_, context),
|
|
458
|
-
Tags: _json,
|
|
459
|
-
ThroughputMode: __expectString,
|
|
460
|
-
});
|
|
461
|
-
Object.assign(contents, doc);
|
|
462
|
-
return contents;
|
|
463
|
-
};
|
|
464
|
-
export const de_CreateMountTargetCommand = async (output, context) => {
|
|
465
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
466
|
-
return de_CommandError(output, context);
|
|
467
|
-
}
|
|
468
|
-
const contents = map({
|
|
469
|
-
$metadata: deserializeMetadata(output),
|
|
470
|
-
});
|
|
471
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
472
|
-
const doc = take(data, {
|
|
473
|
-
AvailabilityZoneId: __expectString,
|
|
474
|
-
AvailabilityZoneName: __expectString,
|
|
475
|
-
FileSystemId: __expectString,
|
|
476
|
-
IpAddress: __expectString,
|
|
477
|
-
Ipv6Address: __expectString,
|
|
478
|
-
LifeCycleState: __expectString,
|
|
479
|
-
MountTargetId: __expectString,
|
|
480
|
-
NetworkInterfaceId: __expectString,
|
|
481
|
-
OwnerId: __expectString,
|
|
482
|
-
SubnetId: __expectString,
|
|
483
|
-
VpcId: __expectString,
|
|
484
|
-
});
|
|
485
|
-
Object.assign(contents, doc);
|
|
486
|
-
return contents;
|
|
487
|
-
};
|
|
488
|
-
export const de_CreateReplicationConfigurationCommand = async (output, context) => {
|
|
489
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
490
|
-
return de_CommandError(output, context);
|
|
491
|
-
}
|
|
492
|
-
const contents = map({
|
|
493
|
-
$metadata: deserializeMetadata(output),
|
|
494
|
-
});
|
|
495
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
496
|
-
const doc = take(data, {
|
|
497
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
498
|
-
Destinations: (_) => de_Destinations(_, context),
|
|
499
|
-
OriginalSourceFileSystemArn: __expectString,
|
|
500
|
-
SourceFileSystemArn: __expectString,
|
|
501
|
-
SourceFileSystemId: __expectString,
|
|
502
|
-
SourceFileSystemOwnerId: __expectString,
|
|
503
|
-
SourceFileSystemRegion: __expectString,
|
|
504
|
-
});
|
|
505
|
-
Object.assign(contents, doc);
|
|
506
|
-
return contents;
|
|
507
|
-
};
|
|
508
|
-
export const de_CreateTagsCommand = async (output, context) => {
|
|
509
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
510
|
-
return de_CommandError(output, context);
|
|
511
|
-
}
|
|
512
|
-
const contents = map({
|
|
513
|
-
$metadata: deserializeMetadata(output),
|
|
514
|
-
});
|
|
515
|
-
await collectBody(output.body, context);
|
|
516
|
-
return contents;
|
|
517
|
-
};
|
|
518
|
-
export const de_DeleteAccessPointCommand = async (output, context) => {
|
|
519
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
520
|
-
return de_CommandError(output, context);
|
|
521
|
-
}
|
|
522
|
-
const contents = map({
|
|
523
|
-
$metadata: deserializeMetadata(output),
|
|
524
|
-
});
|
|
525
|
-
await collectBody(output.body, context);
|
|
526
|
-
return contents;
|
|
527
|
-
};
|
|
528
|
-
export const de_DeleteFileSystemCommand = async (output, context) => {
|
|
529
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
530
|
-
return de_CommandError(output, context);
|
|
531
|
-
}
|
|
532
|
-
const contents = map({
|
|
533
|
-
$metadata: deserializeMetadata(output),
|
|
534
|
-
});
|
|
535
|
-
await collectBody(output.body, context);
|
|
536
|
-
return contents;
|
|
537
|
-
};
|
|
538
|
-
export const de_DeleteFileSystemPolicyCommand = async (output, context) => {
|
|
539
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
540
|
-
return de_CommandError(output, context);
|
|
541
|
-
}
|
|
542
|
-
const contents = map({
|
|
543
|
-
$metadata: deserializeMetadata(output),
|
|
544
|
-
});
|
|
545
|
-
await collectBody(output.body, context);
|
|
546
|
-
return contents;
|
|
547
|
-
};
|
|
548
|
-
export const de_DeleteMountTargetCommand = async (output, context) => {
|
|
549
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
550
|
-
return de_CommandError(output, context);
|
|
551
|
-
}
|
|
552
|
-
const contents = map({
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
554
|
-
});
|
|
555
|
-
await collectBody(output.body, context);
|
|
556
|
-
return contents;
|
|
557
|
-
};
|
|
558
|
-
export const de_DeleteReplicationConfigurationCommand = async (output, context) => {
|
|
559
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
560
|
-
return de_CommandError(output, context);
|
|
561
|
-
}
|
|
562
|
-
const contents = map({
|
|
563
|
-
$metadata: deserializeMetadata(output),
|
|
564
|
-
});
|
|
565
|
-
await collectBody(output.body, context);
|
|
566
|
-
return contents;
|
|
567
|
-
};
|
|
568
|
-
export const de_DeleteTagsCommand = async (output, context) => {
|
|
569
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
570
|
-
return de_CommandError(output, context);
|
|
571
|
-
}
|
|
572
|
-
const contents = map({
|
|
573
|
-
$metadata: deserializeMetadata(output),
|
|
574
|
-
});
|
|
575
|
-
await collectBody(output.body, context);
|
|
576
|
-
return contents;
|
|
577
|
-
};
|
|
578
|
-
export const de_DescribeAccessPointsCommand = async (output, context) => {
|
|
579
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
580
|
-
return de_CommandError(output, context);
|
|
581
|
-
}
|
|
582
|
-
const contents = map({
|
|
583
|
-
$metadata: deserializeMetadata(output),
|
|
584
|
-
});
|
|
585
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
586
|
-
const doc = take(data, {
|
|
587
|
-
AccessPoints: _json,
|
|
588
|
-
NextToken: __expectString,
|
|
589
|
-
});
|
|
590
|
-
Object.assign(contents, doc);
|
|
591
|
-
return contents;
|
|
592
|
-
};
|
|
593
|
-
export const de_DescribeAccountPreferencesCommand = async (output, context) => {
|
|
594
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
595
|
-
return de_CommandError(output, context);
|
|
596
|
-
}
|
|
597
|
-
const contents = map({
|
|
598
|
-
$metadata: deserializeMetadata(output),
|
|
599
|
-
});
|
|
600
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
601
|
-
const doc = take(data, {
|
|
602
|
-
NextToken: __expectString,
|
|
603
|
-
ResourceIdPreference: _json,
|
|
604
|
-
});
|
|
605
|
-
Object.assign(contents, doc);
|
|
606
|
-
return contents;
|
|
607
|
-
};
|
|
608
|
-
export const de_DescribeBackupPolicyCommand = async (output, context) => {
|
|
609
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
610
|
-
return de_CommandError(output, context);
|
|
611
|
-
}
|
|
612
|
-
const contents = map({
|
|
613
|
-
$metadata: deserializeMetadata(output),
|
|
614
|
-
});
|
|
615
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
616
|
-
const doc = take(data, {
|
|
617
|
-
BackupPolicy: _json,
|
|
618
|
-
});
|
|
619
|
-
Object.assign(contents, doc);
|
|
620
|
-
return contents;
|
|
621
|
-
};
|
|
622
|
-
export const de_DescribeFileSystemPolicyCommand = async (output, context) => {
|
|
623
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
624
|
-
return de_CommandError(output, context);
|
|
625
|
-
}
|
|
626
|
-
const contents = map({
|
|
627
|
-
$metadata: deserializeMetadata(output),
|
|
628
|
-
});
|
|
629
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
630
|
-
const doc = take(data, {
|
|
631
|
-
FileSystemId: __expectString,
|
|
632
|
-
Policy: __expectString,
|
|
633
|
-
});
|
|
634
|
-
Object.assign(contents, doc);
|
|
635
|
-
return contents;
|
|
636
|
-
};
|
|
637
|
-
export const de_DescribeFileSystemsCommand = async (output, context) => {
|
|
638
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
639
|
-
return de_CommandError(output, context);
|
|
640
|
-
}
|
|
641
|
-
const contents = map({
|
|
642
|
-
$metadata: deserializeMetadata(output),
|
|
643
|
-
});
|
|
644
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
645
|
-
const doc = take(data, {
|
|
646
|
-
FileSystems: (_) => de_FileSystemDescriptions(_, context),
|
|
647
|
-
Marker: __expectString,
|
|
648
|
-
NextMarker: __expectString,
|
|
649
|
-
});
|
|
650
|
-
Object.assign(contents, doc);
|
|
651
|
-
return contents;
|
|
652
|
-
};
|
|
653
|
-
export const de_DescribeLifecycleConfigurationCommand = async (output, context) => {
|
|
654
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
655
|
-
return de_CommandError(output, context);
|
|
656
|
-
}
|
|
657
|
-
const contents = map({
|
|
658
|
-
$metadata: deserializeMetadata(output),
|
|
659
|
-
});
|
|
660
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
661
|
-
const doc = take(data, {
|
|
662
|
-
LifecyclePolicies: _json,
|
|
663
|
-
});
|
|
664
|
-
Object.assign(contents, doc);
|
|
665
|
-
return contents;
|
|
666
|
-
};
|
|
667
|
-
export const de_DescribeMountTargetsCommand = async (output, context) => {
|
|
668
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
669
|
-
return de_CommandError(output, context);
|
|
670
|
-
}
|
|
671
|
-
const contents = map({
|
|
672
|
-
$metadata: deserializeMetadata(output),
|
|
673
|
-
});
|
|
674
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
675
|
-
const doc = take(data, {
|
|
676
|
-
Marker: __expectString,
|
|
677
|
-
MountTargets: _json,
|
|
678
|
-
NextMarker: __expectString,
|
|
679
|
-
});
|
|
680
|
-
Object.assign(contents, doc);
|
|
681
|
-
return contents;
|
|
682
|
-
};
|
|
683
|
-
export const de_DescribeMountTargetSecurityGroupsCommand = async (output, context) => {
|
|
684
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
685
|
-
return de_CommandError(output, context);
|
|
686
|
-
}
|
|
687
|
-
const contents = map({
|
|
688
|
-
$metadata: deserializeMetadata(output),
|
|
689
|
-
});
|
|
690
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
691
|
-
const doc = take(data, {
|
|
692
|
-
SecurityGroups: _json,
|
|
693
|
-
});
|
|
694
|
-
Object.assign(contents, doc);
|
|
695
|
-
return contents;
|
|
696
|
-
};
|
|
697
|
-
export const de_DescribeReplicationConfigurationsCommand = async (output, context) => {
|
|
698
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
699
|
-
return de_CommandError(output, context);
|
|
700
|
-
}
|
|
701
|
-
const contents = map({
|
|
702
|
-
$metadata: deserializeMetadata(output),
|
|
703
|
-
});
|
|
704
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
705
|
-
const doc = take(data, {
|
|
706
|
-
NextToken: __expectString,
|
|
707
|
-
Replications: (_) => de_ReplicationConfigurationDescriptions(_, context),
|
|
708
|
-
});
|
|
709
|
-
Object.assign(contents, doc);
|
|
710
|
-
return contents;
|
|
711
|
-
};
|
|
712
|
-
export const de_DescribeTagsCommand = async (output, context) => {
|
|
713
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
714
|
-
return de_CommandError(output, context);
|
|
715
|
-
}
|
|
716
|
-
const contents = map({
|
|
717
|
-
$metadata: deserializeMetadata(output),
|
|
718
|
-
});
|
|
719
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
720
|
-
const doc = take(data, {
|
|
721
|
-
Marker: __expectString,
|
|
722
|
-
NextMarker: __expectString,
|
|
723
|
-
Tags: _json,
|
|
724
|
-
});
|
|
725
|
-
Object.assign(contents, doc);
|
|
726
|
-
return contents;
|
|
727
|
-
};
|
|
728
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
729
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
730
|
-
return de_CommandError(output, context);
|
|
731
|
-
}
|
|
732
|
-
const contents = map({
|
|
733
|
-
$metadata: deserializeMetadata(output),
|
|
734
|
-
});
|
|
735
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
736
|
-
const doc = take(data, {
|
|
737
|
-
NextToken: __expectString,
|
|
738
|
-
Tags: _json,
|
|
739
|
-
});
|
|
740
|
-
Object.assign(contents, doc);
|
|
741
|
-
return contents;
|
|
742
|
-
};
|
|
743
|
-
export const de_ModifyMountTargetSecurityGroupsCommand = async (output, context) => {
|
|
744
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
745
|
-
return de_CommandError(output, context);
|
|
746
|
-
}
|
|
747
|
-
const contents = map({
|
|
748
|
-
$metadata: deserializeMetadata(output),
|
|
749
|
-
});
|
|
750
|
-
await collectBody(output.body, context);
|
|
751
|
-
return contents;
|
|
752
|
-
};
|
|
753
|
-
export const de_PutAccountPreferencesCommand = async (output, context) => {
|
|
754
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
|
-
return de_CommandError(output, context);
|
|
756
|
-
}
|
|
757
|
-
const contents = map({
|
|
758
|
-
$metadata: deserializeMetadata(output),
|
|
759
|
-
});
|
|
760
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
761
|
-
const doc = take(data, {
|
|
762
|
-
ResourceIdPreference: _json,
|
|
763
|
-
});
|
|
764
|
-
Object.assign(contents, doc);
|
|
765
|
-
return contents;
|
|
766
|
-
};
|
|
767
|
-
export const de_PutBackupPolicyCommand = async (output, context) => {
|
|
768
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
769
|
-
return de_CommandError(output, context);
|
|
770
|
-
}
|
|
771
|
-
const contents = map({
|
|
772
|
-
$metadata: deserializeMetadata(output),
|
|
773
|
-
});
|
|
774
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
775
|
-
const doc = take(data, {
|
|
776
|
-
BackupPolicy: _json,
|
|
777
|
-
});
|
|
778
|
-
Object.assign(contents, doc);
|
|
779
|
-
return contents;
|
|
780
|
-
};
|
|
781
|
-
export const de_PutFileSystemPolicyCommand = async (output, context) => {
|
|
782
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
783
|
-
return de_CommandError(output, context);
|
|
784
|
-
}
|
|
785
|
-
const contents = map({
|
|
786
|
-
$metadata: deserializeMetadata(output),
|
|
787
|
-
});
|
|
788
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
789
|
-
const doc = take(data, {
|
|
790
|
-
FileSystemId: __expectString,
|
|
791
|
-
Policy: __expectString,
|
|
792
|
-
});
|
|
793
|
-
Object.assign(contents, doc);
|
|
794
|
-
return contents;
|
|
795
|
-
};
|
|
796
|
-
export const de_PutLifecycleConfigurationCommand = async (output, context) => {
|
|
797
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
798
|
-
return de_CommandError(output, context);
|
|
799
|
-
}
|
|
800
|
-
const contents = map({
|
|
801
|
-
$metadata: deserializeMetadata(output),
|
|
802
|
-
});
|
|
803
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
804
|
-
const doc = take(data, {
|
|
805
|
-
LifecyclePolicies: _json,
|
|
806
|
-
});
|
|
807
|
-
Object.assign(contents, doc);
|
|
808
|
-
return contents;
|
|
809
|
-
};
|
|
810
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
811
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
812
|
-
return de_CommandError(output, context);
|
|
813
|
-
}
|
|
814
|
-
const contents = map({
|
|
815
|
-
$metadata: deserializeMetadata(output),
|
|
816
|
-
});
|
|
817
|
-
await collectBody(output.body, context);
|
|
818
|
-
return contents;
|
|
819
|
-
};
|
|
820
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
821
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
822
|
-
return de_CommandError(output, context);
|
|
823
|
-
}
|
|
824
|
-
const contents = map({
|
|
825
|
-
$metadata: deserializeMetadata(output),
|
|
826
|
-
});
|
|
827
|
-
await collectBody(output.body, context);
|
|
828
|
-
return contents;
|
|
829
|
-
};
|
|
830
|
-
export const de_UpdateFileSystemCommand = async (output, context) => {
|
|
831
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
832
|
-
return de_CommandError(output, context);
|
|
833
|
-
}
|
|
834
|
-
const contents = map({
|
|
835
|
-
$metadata: deserializeMetadata(output),
|
|
836
|
-
});
|
|
837
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
838
|
-
const doc = take(data, {
|
|
839
|
-
AvailabilityZoneId: __expectString,
|
|
840
|
-
AvailabilityZoneName: __expectString,
|
|
841
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
842
|
-
CreationToken: __expectString,
|
|
843
|
-
Encrypted: __expectBoolean,
|
|
844
|
-
FileSystemArn: __expectString,
|
|
845
|
-
FileSystemId: __expectString,
|
|
846
|
-
FileSystemProtection: _json,
|
|
847
|
-
KmsKeyId: __expectString,
|
|
848
|
-
LifeCycleState: __expectString,
|
|
849
|
-
Name: __expectString,
|
|
850
|
-
NumberOfMountTargets: __expectInt32,
|
|
851
|
-
OwnerId: __expectString,
|
|
852
|
-
PerformanceMode: __expectString,
|
|
853
|
-
ProvisionedThroughputInMibps: __limitedParseDouble,
|
|
854
|
-
SizeInBytes: (_) => de_FileSystemSize(_, context),
|
|
855
|
-
Tags: _json,
|
|
856
|
-
ThroughputMode: __expectString,
|
|
857
|
-
});
|
|
858
|
-
Object.assign(contents, doc);
|
|
859
|
-
return contents;
|
|
860
|
-
};
|
|
861
|
-
export const de_UpdateFileSystemProtectionCommand = async (output, context) => {
|
|
862
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
863
|
-
return de_CommandError(output, context);
|
|
864
|
-
}
|
|
865
|
-
const contents = map({
|
|
866
|
-
$metadata: deserializeMetadata(output),
|
|
867
|
-
});
|
|
868
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
869
|
-
const doc = take(data, {
|
|
870
|
-
ReplicationOverwriteProtection: __expectString,
|
|
871
|
-
});
|
|
872
|
-
Object.assign(contents, doc);
|
|
873
|
-
return contents;
|
|
874
|
-
};
|
|
875
|
-
const de_CommandError = async (output, context) => {
|
|
876
|
-
const parsedOutput = {
|
|
877
|
-
...output,
|
|
878
|
-
body: await parseErrorBody(output.body, context),
|
|
879
|
-
};
|
|
880
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
881
|
-
switch (errorCode) {
|
|
882
|
-
case "AccessPointAlreadyExists":
|
|
883
|
-
case "com.amazonaws.efs#AccessPointAlreadyExists":
|
|
884
|
-
throw await de_AccessPointAlreadyExistsRes(parsedOutput, context);
|
|
885
|
-
case "AccessPointLimitExceeded":
|
|
886
|
-
case "com.amazonaws.efs#AccessPointLimitExceeded":
|
|
887
|
-
throw await de_AccessPointLimitExceededRes(parsedOutput, context);
|
|
888
|
-
case "BadRequest":
|
|
889
|
-
case "com.amazonaws.efs#BadRequest":
|
|
890
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
891
|
-
case "FileSystemNotFound":
|
|
892
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
893
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
894
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
895
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
896
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
897
|
-
case "InternalServerError":
|
|
898
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
899
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
900
|
-
case "ThrottlingException":
|
|
901
|
-
case "com.amazonaws.efs#ThrottlingException":
|
|
902
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
903
|
-
case "FileSystemAlreadyExists":
|
|
904
|
-
case "com.amazonaws.efs#FileSystemAlreadyExists":
|
|
905
|
-
throw await de_FileSystemAlreadyExistsRes(parsedOutput, context);
|
|
906
|
-
case "FileSystemLimitExceeded":
|
|
907
|
-
case "com.amazonaws.efs#FileSystemLimitExceeded":
|
|
908
|
-
throw await de_FileSystemLimitExceededRes(parsedOutput, context);
|
|
909
|
-
case "InsufficientThroughputCapacity":
|
|
910
|
-
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
911
|
-
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
912
|
-
case "ThroughputLimitExceeded":
|
|
913
|
-
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
914
|
-
throw await de_ThroughputLimitExceededRes(parsedOutput, context);
|
|
915
|
-
case "UnsupportedAvailabilityZone":
|
|
916
|
-
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
917
|
-
throw await de_UnsupportedAvailabilityZoneRes(parsedOutput, context);
|
|
918
|
-
case "AvailabilityZonesMismatch":
|
|
919
|
-
case "com.amazonaws.efs#AvailabilityZonesMismatch":
|
|
920
|
-
throw await de_AvailabilityZonesMismatchRes(parsedOutput, context);
|
|
921
|
-
case "IpAddressInUse":
|
|
922
|
-
case "com.amazonaws.efs#IpAddressInUse":
|
|
923
|
-
throw await de_IpAddressInUseRes(parsedOutput, context);
|
|
924
|
-
case "MountTargetConflict":
|
|
925
|
-
case "com.amazonaws.efs#MountTargetConflict":
|
|
926
|
-
throw await de_MountTargetConflictRes(parsedOutput, context);
|
|
927
|
-
case "NetworkInterfaceLimitExceeded":
|
|
928
|
-
case "com.amazonaws.efs#NetworkInterfaceLimitExceeded":
|
|
929
|
-
throw await de_NetworkInterfaceLimitExceededRes(parsedOutput, context);
|
|
930
|
-
case "NoFreeAddressesInSubnet":
|
|
931
|
-
case "com.amazonaws.efs#NoFreeAddressesInSubnet":
|
|
932
|
-
throw await de_NoFreeAddressesInSubnetRes(parsedOutput, context);
|
|
933
|
-
case "SecurityGroupLimitExceeded":
|
|
934
|
-
case "com.amazonaws.efs#SecurityGroupLimitExceeded":
|
|
935
|
-
throw await de_SecurityGroupLimitExceededRes(parsedOutput, context);
|
|
936
|
-
case "SecurityGroupNotFound":
|
|
937
|
-
case "com.amazonaws.efs#SecurityGroupNotFound":
|
|
938
|
-
throw await de_SecurityGroupNotFoundRes(parsedOutput, context);
|
|
939
|
-
case "SubnetNotFound":
|
|
940
|
-
case "com.amazonaws.efs#SubnetNotFound":
|
|
941
|
-
throw await de_SubnetNotFoundRes(parsedOutput, context);
|
|
942
|
-
case "ConflictException":
|
|
943
|
-
case "com.amazonaws.efs#ConflictException":
|
|
944
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
945
|
-
case "ReplicationNotFound":
|
|
946
|
-
case "com.amazonaws.efs#ReplicationNotFound":
|
|
947
|
-
throw await de_ReplicationNotFoundRes(parsedOutput, context);
|
|
948
|
-
case "ValidationException":
|
|
949
|
-
case "com.amazonaws.efs#ValidationException":
|
|
950
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
951
|
-
case "AccessPointNotFound":
|
|
952
|
-
case "com.amazonaws.efs#AccessPointNotFound":
|
|
953
|
-
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
954
|
-
case "FileSystemInUse":
|
|
955
|
-
case "com.amazonaws.efs#FileSystemInUse":
|
|
956
|
-
throw await de_FileSystemInUseRes(parsedOutput, context);
|
|
957
|
-
case "DependencyTimeout":
|
|
958
|
-
case "com.amazonaws.efs#DependencyTimeout":
|
|
959
|
-
throw await de_DependencyTimeoutRes(parsedOutput, context);
|
|
960
|
-
case "MountTargetNotFound":
|
|
961
|
-
case "com.amazonaws.efs#MountTargetNotFound":
|
|
962
|
-
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
963
|
-
case "PolicyNotFound":
|
|
964
|
-
case "com.amazonaws.efs#PolicyNotFound":
|
|
965
|
-
throw await de_PolicyNotFoundRes(parsedOutput, context);
|
|
966
|
-
case "IncorrectMountTargetState":
|
|
967
|
-
case "com.amazonaws.efs#IncorrectMountTargetState":
|
|
968
|
-
throw await de_IncorrectMountTargetStateRes(parsedOutput, context);
|
|
969
|
-
case "InvalidPolicyException":
|
|
970
|
-
case "com.amazonaws.efs#InvalidPolicyException":
|
|
971
|
-
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
972
|
-
case "TooManyRequests":
|
|
973
|
-
case "com.amazonaws.efs#TooManyRequests":
|
|
974
|
-
throw await de_TooManyRequestsRes(parsedOutput, context);
|
|
975
|
-
case "ReplicationAlreadyExists":
|
|
976
|
-
case "com.amazonaws.efs#ReplicationAlreadyExists":
|
|
977
|
-
throw await de_ReplicationAlreadyExistsRes(parsedOutput, context);
|
|
978
|
-
default:
|
|
979
|
-
const parsedBody = parsedOutput.body;
|
|
980
|
-
return throwDefaultError({
|
|
981
|
-
output,
|
|
982
|
-
parsedBody,
|
|
983
|
-
errorCode,
|
|
984
|
-
});
|
|
985
|
-
}
|
|
986
|
-
};
|
|
987
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
988
|
-
const de_AccessPointAlreadyExistsRes = async (parsedOutput, context) => {
|
|
989
|
-
const contents = map({});
|
|
990
|
-
const data = parsedOutput.body;
|
|
991
|
-
const doc = take(data, {
|
|
992
|
-
AccessPointId: __expectString,
|
|
993
|
-
ErrorCode: __expectString,
|
|
994
|
-
Message: __expectString,
|
|
995
|
-
});
|
|
996
|
-
Object.assign(contents, doc);
|
|
997
|
-
const exception = new AccessPointAlreadyExists({
|
|
998
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
999
|
-
...contents,
|
|
1000
|
-
});
|
|
1001
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1002
|
-
};
|
|
1003
|
-
const de_AccessPointLimitExceededRes = async (parsedOutput, context) => {
|
|
1004
|
-
const contents = map({});
|
|
1005
|
-
const data = parsedOutput.body;
|
|
1006
|
-
const doc = take(data, {
|
|
1007
|
-
ErrorCode: __expectString,
|
|
1008
|
-
Message: __expectString,
|
|
1009
|
-
});
|
|
1010
|
-
Object.assign(contents, doc);
|
|
1011
|
-
const exception = new AccessPointLimitExceeded({
|
|
1012
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1013
|
-
...contents,
|
|
1014
|
-
});
|
|
1015
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1016
|
-
};
|
|
1017
|
-
const de_AccessPointNotFoundRes = async (parsedOutput, context) => {
|
|
1018
|
-
const contents = map({});
|
|
1019
|
-
const data = parsedOutput.body;
|
|
1020
|
-
const doc = take(data, {
|
|
1021
|
-
ErrorCode: __expectString,
|
|
1022
|
-
Message: __expectString,
|
|
1023
|
-
});
|
|
1024
|
-
Object.assign(contents, doc);
|
|
1025
|
-
const exception = new AccessPointNotFound({
|
|
1026
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1027
|
-
...contents,
|
|
1028
|
-
});
|
|
1029
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1030
|
-
};
|
|
1031
|
-
const de_AvailabilityZonesMismatchRes = async (parsedOutput, context) => {
|
|
1032
|
-
const contents = map({});
|
|
1033
|
-
const data = parsedOutput.body;
|
|
1034
|
-
const doc = take(data, {
|
|
1035
|
-
ErrorCode: __expectString,
|
|
1036
|
-
Message: __expectString,
|
|
1037
|
-
});
|
|
1038
|
-
Object.assign(contents, doc);
|
|
1039
|
-
const exception = new AvailabilityZonesMismatch({
|
|
1040
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1041
|
-
...contents,
|
|
1042
|
-
});
|
|
1043
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1044
|
-
};
|
|
1045
|
-
const de_BadRequestRes = async (parsedOutput, context) => {
|
|
1046
|
-
const contents = map({});
|
|
1047
|
-
const data = parsedOutput.body;
|
|
1048
|
-
const doc = take(data, {
|
|
1049
|
-
ErrorCode: __expectString,
|
|
1050
|
-
Message: __expectString,
|
|
1051
|
-
});
|
|
1052
|
-
Object.assign(contents, doc);
|
|
1053
|
-
const exception = new BadRequest({
|
|
1054
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1055
|
-
...contents,
|
|
1056
|
-
});
|
|
1057
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1058
|
-
};
|
|
1059
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1060
|
-
const contents = map({});
|
|
1061
|
-
const data = parsedOutput.body;
|
|
1062
|
-
const doc = take(data, {
|
|
1063
|
-
ErrorCode: __expectString,
|
|
1064
|
-
Message: __expectString,
|
|
1065
|
-
});
|
|
1066
|
-
Object.assign(contents, doc);
|
|
1067
|
-
const exception = new ConflictException({
|
|
1068
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1069
|
-
...contents,
|
|
1070
|
-
});
|
|
1071
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1072
|
-
};
|
|
1073
|
-
const de_DependencyTimeoutRes = async (parsedOutput, context) => {
|
|
1074
|
-
const contents = map({});
|
|
1075
|
-
const data = parsedOutput.body;
|
|
1076
|
-
const doc = take(data, {
|
|
1077
|
-
ErrorCode: __expectString,
|
|
1078
|
-
Message: __expectString,
|
|
1079
|
-
});
|
|
1080
|
-
Object.assign(contents, doc);
|
|
1081
|
-
const exception = new DependencyTimeout({
|
|
1082
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1083
|
-
...contents,
|
|
1084
|
-
});
|
|
1085
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1086
|
-
};
|
|
1087
|
-
const de_FileSystemAlreadyExistsRes = async (parsedOutput, context) => {
|
|
1088
|
-
const contents = map({});
|
|
1089
|
-
const data = parsedOutput.body;
|
|
1090
|
-
const doc = take(data, {
|
|
1091
|
-
ErrorCode: __expectString,
|
|
1092
|
-
FileSystemId: __expectString,
|
|
1093
|
-
Message: __expectString,
|
|
1094
|
-
});
|
|
1095
|
-
Object.assign(contents, doc);
|
|
1096
|
-
const exception = new FileSystemAlreadyExists({
|
|
1097
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1098
|
-
...contents,
|
|
1099
|
-
});
|
|
1100
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1101
|
-
};
|
|
1102
|
-
const de_FileSystemInUseRes = async (parsedOutput, context) => {
|
|
1103
|
-
const contents = map({});
|
|
1104
|
-
const data = parsedOutput.body;
|
|
1105
|
-
const doc = take(data, {
|
|
1106
|
-
ErrorCode: __expectString,
|
|
1107
|
-
Message: __expectString,
|
|
1108
|
-
});
|
|
1109
|
-
Object.assign(contents, doc);
|
|
1110
|
-
const exception = new FileSystemInUse({
|
|
1111
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1112
|
-
...contents,
|
|
1113
|
-
});
|
|
1114
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1115
|
-
};
|
|
1116
|
-
const de_FileSystemLimitExceededRes = async (parsedOutput, context) => {
|
|
1117
|
-
const contents = map({});
|
|
1118
|
-
const data = parsedOutput.body;
|
|
1119
|
-
const doc = take(data, {
|
|
1120
|
-
ErrorCode: __expectString,
|
|
1121
|
-
Message: __expectString,
|
|
1122
|
-
});
|
|
1123
|
-
Object.assign(contents, doc);
|
|
1124
|
-
const exception = new FileSystemLimitExceeded({
|
|
1125
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1126
|
-
...contents,
|
|
1127
|
-
});
|
|
1128
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1129
|
-
};
|
|
1130
|
-
const de_FileSystemNotFoundRes = async (parsedOutput, context) => {
|
|
1131
|
-
const contents = map({});
|
|
1132
|
-
const data = parsedOutput.body;
|
|
1133
|
-
const doc = take(data, {
|
|
1134
|
-
ErrorCode: __expectString,
|
|
1135
|
-
Message: __expectString,
|
|
1136
|
-
});
|
|
1137
|
-
Object.assign(contents, doc);
|
|
1138
|
-
const exception = new FileSystemNotFound({
|
|
1139
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1140
|
-
...contents,
|
|
1141
|
-
});
|
|
1142
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1143
|
-
};
|
|
1144
|
-
const de_IncorrectFileSystemLifeCycleStateRes = async (parsedOutput, context) => {
|
|
1145
|
-
const contents = map({});
|
|
1146
|
-
const data = parsedOutput.body;
|
|
1147
|
-
const doc = take(data, {
|
|
1148
|
-
ErrorCode: __expectString,
|
|
1149
|
-
Message: __expectString,
|
|
1150
|
-
});
|
|
1151
|
-
Object.assign(contents, doc);
|
|
1152
|
-
const exception = new IncorrectFileSystemLifeCycleState({
|
|
1153
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1154
|
-
...contents,
|
|
1155
|
-
});
|
|
1156
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1157
|
-
};
|
|
1158
|
-
const de_IncorrectMountTargetStateRes = async (parsedOutput, context) => {
|
|
1159
|
-
const contents = map({});
|
|
1160
|
-
const data = parsedOutput.body;
|
|
1161
|
-
const doc = take(data, {
|
|
1162
|
-
ErrorCode: __expectString,
|
|
1163
|
-
Message: __expectString,
|
|
1164
|
-
});
|
|
1165
|
-
Object.assign(contents, doc);
|
|
1166
|
-
const exception = new IncorrectMountTargetState({
|
|
1167
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1168
|
-
...contents,
|
|
1169
|
-
});
|
|
1170
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1171
|
-
};
|
|
1172
|
-
const de_InsufficientThroughputCapacityRes = async (parsedOutput, context) => {
|
|
1173
|
-
const contents = map({});
|
|
1174
|
-
const data = parsedOutput.body;
|
|
1175
|
-
const doc = take(data, {
|
|
1176
|
-
ErrorCode: __expectString,
|
|
1177
|
-
Message: __expectString,
|
|
1178
|
-
});
|
|
1179
|
-
Object.assign(contents, doc);
|
|
1180
|
-
const exception = new InsufficientThroughputCapacity({
|
|
1181
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1182
|
-
...contents,
|
|
1183
|
-
});
|
|
1184
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1185
|
-
};
|
|
1186
|
-
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
1187
|
-
const contents = map({});
|
|
1188
|
-
const data = parsedOutput.body;
|
|
1189
|
-
const doc = take(data, {
|
|
1190
|
-
ErrorCode: __expectString,
|
|
1191
|
-
Message: __expectString,
|
|
1192
|
-
});
|
|
1193
|
-
Object.assign(contents, doc);
|
|
1194
|
-
const exception = new InternalServerError({
|
|
1195
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1196
|
-
...contents,
|
|
1197
|
-
});
|
|
1198
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1199
|
-
};
|
|
1200
|
-
const de_InvalidPolicyExceptionRes = async (parsedOutput, context) => {
|
|
1201
|
-
const contents = map({});
|
|
1202
|
-
const data = parsedOutput.body;
|
|
1203
|
-
const doc = take(data, {
|
|
1204
|
-
ErrorCode: __expectString,
|
|
1205
|
-
Message: __expectString,
|
|
1206
|
-
});
|
|
1207
|
-
Object.assign(contents, doc);
|
|
1208
|
-
const exception = new InvalidPolicyException({
|
|
1209
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1210
|
-
...contents,
|
|
1211
|
-
});
|
|
1212
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1213
|
-
};
|
|
1214
|
-
const de_IpAddressInUseRes = async (parsedOutput, context) => {
|
|
1215
|
-
const contents = map({});
|
|
1216
|
-
const data = parsedOutput.body;
|
|
1217
|
-
const doc = take(data, {
|
|
1218
|
-
ErrorCode: __expectString,
|
|
1219
|
-
Message: __expectString,
|
|
1220
|
-
});
|
|
1221
|
-
Object.assign(contents, doc);
|
|
1222
|
-
const exception = new IpAddressInUse({
|
|
1223
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1224
|
-
...contents,
|
|
1225
|
-
});
|
|
1226
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1227
|
-
};
|
|
1228
|
-
const de_MountTargetConflictRes = async (parsedOutput, context) => {
|
|
1229
|
-
const contents = map({});
|
|
1230
|
-
const data = parsedOutput.body;
|
|
1231
|
-
const doc = take(data, {
|
|
1232
|
-
ErrorCode: __expectString,
|
|
1233
|
-
Message: __expectString,
|
|
1234
|
-
});
|
|
1235
|
-
Object.assign(contents, doc);
|
|
1236
|
-
const exception = new MountTargetConflict({
|
|
1237
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1238
|
-
...contents,
|
|
1239
|
-
});
|
|
1240
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1241
|
-
};
|
|
1242
|
-
const de_MountTargetNotFoundRes = async (parsedOutput, context) => {
|
|
1243
|
-
const contents = map({});
|
|
1244
|
-
const data = parsedOutput.body;
|
|
1245
|
-
const doc = take(data, {
|
|
1246
|
-
ErrorCode: __expectString,
|
|
1247
|
-
Message: __expectString,
|
|
1248
|
-
});
|
|
1249
|
-
Object.assign(contents, doc);
|
|
1250
|
-
const exception = new MountTargetNotFound({
|
|
1251
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1252
|
-
...contents,
|
|
1253
|
-
});
|
|
1254
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1255
|
-
};
|
|
1256
|
-
const de_NetworkInterfaceLimitExceededRes = async (parsedOutput, context) => {
|
|
1257
|
-
const contents = map({});
|
|
1258
|
-
const data = parsedOutput.body;
|
|
1259
|
-
const doc = take(data, {
|
|
1260
|
-
ErrorCode: __expectString,
|
|
1261
|
-
Message: __expectString,
|
|
1262
|
-
});
|
|
1263
|
-
Object.assign(contents, doc);
|
|
1264
|
-
const exception = new NetworkInterfaceLimitExceeded({
|
|
1265
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1266
|
-
...contents,
|
|
1267
|
-
});
|
|
1268
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1269
|
-
};
|
|
1270
|
-
const de_NoFreeAddressesInSubnetRes = async (parsedOutput, context) => {
|
|
1271
|
-
const contents = map({});
|
|
1272
|
-
const data = parsedOutput.body;
|
|
1273
|
-
const doc = take(data, {
|
|
1274
|
-
ErrorCode: __expectString,
|
|
1275
|
-
Message: __expectString,
|
|
1276
|
-
});
|
|
1277
|
-
Object.assign(contents, doc);
|
|
1278
|
-
const exception = new NoFreeAddressesInSubnet({
|
|
1279
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1280
|
-
...contents,
|
|
1281
|
-
});
|
|
1282
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1283
|
-
};
|
|
1284
|
-
const de_PolicyNotFoundRes = async (parsedOutput, context) => {
|
|
1285
|
-
const contents = map({});
|
|
1286
|
-
const data = parsedOutput.body;
|
|
1287
|
-
const doc = take(data, {
|
|
1288
|
-
ErrorCode: __expectString,
|
|
1289
|
-
Message: __expectString,
|
|
1290
|
-
});
|
|
1291
|
-
Object.assign(contents, doc);
|
|
1292
|
-
const exception = new PolicyNotFound({
|
|
1293
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1294
|
-
...contents,
|
|
1295
|
-
});
|
|
1296
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1297
|
-
};
|
|
1298
|
-
const de_ReplicationAlreadyExistsRes = async (parsedOutput, context) => {
|
|
1299
|
-
const contents = map({});
|
|
1300
|
-
const data = parsedOutput.body;
|
|
1301
|
-
const doc = take(data, {
|
|
1302
|
-
ErrorCode: __expectString,
|
|
1303
|
-
Message: __expectString,
|
|
1304
|
-
});
|
|
1305
|
-
Object.assign(contents, doc);
|
|
1306
|
-
const exception = new ReplicationAlreadyExists({
|
|
1307
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1308
|
-
...contents,
|
|
1309
|
-
});
|
|
1310
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1311
|
-
};
|
|
1312
|
-
const de_ReplicationNotFoundRes = async (parsedOutput, context) => {
|
|
1313
|
-
const contents = map({});
|
|
1314
|
-
const data = parsedOutput.body;
|
|
1315
|
-
const doc = take(data, {
|
|
1316
|
-
ErrorCode: __expectString,
|
|
1317
|
-
Message: __expectString,
|
|
1318
|
-
});
|
|
1319
|
-
Object.assign(contents, doc);
|
|
1320
|
-
const exception = new ReplicationNotFound({
|
|
1321
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1322
|
-
...contents,
|
|
1323
|
-
});
|
|
1324
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1325
|
-
};
|
|
1326
|
-
const de_SecurityGroupLimitExceededRes = async (parsedOutput, context) => {
|
|
1327
|
-
const contents = map({});
|
|
1328
|
-
const data = parsedOutput.body;
|
|
1329
|
-
const doc = take(data, {
|
|
1330
|
-
ErrorCode: __expectString,
|
|
1331
|
-
Message: __expectString,
|
|
1332
|
-
});
|
|
1333
|
-
Object.assign(contents, doc);
|
|
1334
|
-
const exception = new SecurityGroupLimitExceeded({
|
|
1335
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1336
|
-
...contents,
|
|
1337
|
-
});
|
|
1338
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1339
|
-
};
|
|
1340
|
-
const de_SecurityGroupNotFoundRes = async (parsedOutput, context) => {
|
|
1341
|
-
const contents = map({});
|
|
1342
|
-
const data = parsedOutput.body;
|
|
1343
|
-
const doc = take(data, {
|
|
1344
|
-
ErrorCode: __expectString,
|
|
1345
|
-
Message: __expectString,
|
|
1346
|
-
});
|
|
1347
|
-
Object.assign(contents, doc);
|
|
1348
|
-
const exception = new SecurityGroupNotFound({
|
|
1349
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1350
|
-
...contents,
|
|
1351
|
-
});
|
|
1352
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1353
|
-
};
|
|
1354
|
-
const de_SubnetNotFoundRes = async (parsedOutput, context) => {
|
|
1355
|
-
const contents = map({});
|
|
1356
|
-
const data = parsedOutput.body;
|
|
1357
|
-
const doc = take(data, {
|
|
1358
|
-
ErrorCode: __expectString,
|
|
1359
|
-
Message: __expectString,
|
|
1360
|
-
});
|
|
1361
|
-
Object.assign(contents, doc);
|
|
1362
|
-
const exception = new SubnetNotFound({
|
|
1363
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1364
|
-
...contents,
|
|
1365
|
-
});
|
|
1366
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1367
|
-
};
|
|
1368
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1369
|
-
const contents = map({});
|
|
1370
|
-
const data = parsedOutput.body;
|
|
1371
|
-
const doc = take(data, {
|
|
1372
|
-
ErrorCode: __expectString,
|
|
1373
|
-
Message: __expectString,
|
|
1374
|
-
});
|
|
1375
|
-
Object.assign(contents, doc);
|
|
1376
|
-
const exception = new ThrottlingException({
|
|
1377
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1378
|
-
...contents,
|
|
1379
|
-
});
|
|
1380
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1381
|
-
};
|
|
1382
|
-
const de_ThroughputLimitExceededRes = async (parsedOutput, context) => {
|
|
1383
|
-
const contents = map({});
|
|
1384
|
-
const data = parsedOutput.body;
|
|
1385
|
-
const doc = take(data, {
|
|
1386
|
-
ErrorCode: __expectString,
|
|
1387
|
-
Message: __expectString,
|
|
1388
|
-
});
|
|
1389
|
-
Object.assign(contents, doc);
|
|
1390
|
-
const exception = new ThroughputLimitExceeded({
|
|
1391
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1392
|
-
...contents,
|
|
1393
|
-
});
|
|
1394
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1395
|
-
};
|
|
1396
|
-
const de_TooManyRequestsRes = async (parsedOutput, context) => {
|
|
1397
|
-
const contents = map({});
|
|
1398
|
-
const data = parsedOutput.body;
|
|
1399
|
-
const doc = take(data, {
|
|
1400
|
-
ErrorCode: __expectString,
|
|
1401
|
-
Message: __expectString,
|
|
1402
|
-
});
|
|
1403
|
-
Object.assign(contents, doc);
|
|
1404
|
-
const exception = new TooManyRequests({
|
|
1405
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1406
|
-
...contents,
|
|
1407
|
-
});
|
|
1408
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1409
|
-
};
|
|
1410
|
-
const de_UnsupportedAvailabilityZoneRes = async (parsedOutput, context) => {
|
|
1411
|
-
const contents = map({});
|
|
1412
|
-
const data = parsedOutput.body;
|
|
1413
|
-
const doc = take(data, {
|
|
1414
|
-
ErrorCode: __expectString,
|
|
1415
|
-
Message: __expectString,
|
|
1416
|
-
});
|
|
1417
|
-
Object.assign(contents, doc);
|
|
1418
|
-
const exception = new UnsupportedAvailabilityZone({
|
|
1419
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1420
|
-
...contents,
|
|
1421
|
-
});
|
|
1422
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1423
|
-
};
|
|
1424
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1425
|
-
const contents = map({});
|
|
1426
|
-
const data = parsedOutput.body;
|
|
1427
|
-
const doc = take(data, {
|
|
1428
|
-
ErrorCode: __expectString,
|
|
1429
|
-
Message: __expectString,
|
|
1430
|
-
});
|
|
1431
|
-
Object.assign(contents, doc);
|
|
1432
|
-
const exception = new ValidationException({
|
|
1433
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1434
|
-
...contents,
|
|
1435
|
-
});
|
|
1436
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1437
|
-
};
|
|
1438
|
-
const de_Destination = (output, context) => {
|
|
1439
|
-
return take(output, {
|
|
1440
|
-
FileSystemId: __expectString,
|
|
1441
|
-
LastReplicatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1442
|
-
OwnerId: __expectString,
|
|
1443
|
-
Region: __expectString,
|
|
1444
|
-
RoleArn: __expectString,
|
|
1445
|
-
Status: __expectString,
|
|
1446
|
-
StatusMessage: __expectString,
|
|
1447
|
-
});
|
|
1448
|
-
};
|
|
1449
|
-
const de_Destinations = (output, context) => {
|
|
1450
|
-
const retVal = (output || [])
|
|
1451
|
-
.filter((e) => e != null)
|
|
1452
|
-
.map((entry) => {
|
|
1453
|
-
return de_Destination(entry, context);
|
|
1454
|
-
});
|
|
1455
|
-
return retVal;
|
|
1456
|
-
};
|
|
1457
|
-
const de_FileSystemDescription = (output, context) => {
|
|
1458
|
-
return take(output, {
|
|
1459
|
-
AvailabilityZoneId: __expectString,
|
|
1460
|
-
AvailabilityZoneName: __expectString,
|
|
1461
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1462
|
-
CreationToken: __expectString,
|
|
1463
|
-
Encrypted: __expectBoolean,
|
|
1464
|
-
FileSystemArn: __expectString,
|
|
1465
|
-
FileSystemId: __expectString,
|
|
1466
|
-
FileSystemProtection: _json,
|
|
1467
|
-
KmsKeyId: __expectString,
|
|
1468
|
-
LifeCycleState: __expectString,
|
|
1469
|
-
Name: __expectString,
|
|
1470
|
-
NumberOfMountTargets: __expectInt32,
|
|
1471
|
-
OwnerId: __expectString,
|
|
1472
|
-
PerformanceMode: __expectString,
|
|
1473
|
-
ProvisionedThroughputInMibps: __limitedParseDouble,
|
|
1474
|
-
SizeInBytes: (_) => de_FileSystemSize(_, context),
|
|
1475
|
-
Tags: _json,
|
|
1476
|
-
ThroughputMode: __expectString,
|
|
1477
|
-
});
|
|
1478
|
-
};
|
|
1479
|
-
const de_FileSystemDescriptions = (output, context) => {
|
|
1480
|
-
const retVal = (output || [])
|
|
1481
|
-
.filter((e) => e != null)
|
|
1482
|
-
.map((entry) => {
|
|
1483
|
-
return de_FileSystemDescription(entry, context);
|
|
1484
|
-
});
|
|
1485
|
-
return retVal;
|
|
1486
|
-
};
|
|
1487
|
-
const de_FileSystemSize = (output, context) => {
|
|
1488
|
-
return take(output, {
|
|
1489
|
-
Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1490
|
-
Value: __expectLong,
|
|
1491
|
-
ValueInArchive: __expectLong,
|
|
1492
|
-
ValueInIA: __expectLong,
|
|
1493
|
-
ValueInStandard: __expectLong,
|
|
1494
|
-
});
|
|
1495
|
-
};
|
|
1496
|
-
const de_ReplicationConfigurationDescription = (output, context) => {
|
|
1497
|
-
return take(output, {
|
|
1498
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1499
|
-
Destinations: (_) => de_Destinations(_, context),
|
|
1500
|
-
OriginalSourceFileSystemArn: __expectString,
|
|
1501
|
-
SourceFileSystemArn: __expectString,
|
|
1502
|
-
SourceFileSystemId: __expectString,
|
|
1503
|
-
SourceFileSystemOwnerId: __expectString,
|
|
1504
|
-
SourceFileSystemRegion: __expectString,
|
|
1505
|
-
});
|
|
1506
|
-
};
|
|
1507
|
-
const de_ReplicationConfigurationDescriptions = (output, context) => {
|
|
1508
|
-
const retVal = (output || [])
|
|
1509
|
-
.filter((e) => e != null)
|
|
1510
|
-
.map((entry) => {
|
|
1511
|
-
return de_ReplicationConfigurationDescription(entry, context);
|
|
1512
|
-
});
|
|
1513
|
-
return retVal;
|
|
1514
|
-
};
|
|
1515
|
-
const deserializeMetadata = (output) => ({
|
|
1516
|
-
httpStatusCode: output.statusCode,
|
|
1517
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1518
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1519
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1520
|
-
});
|
|
1521
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1522
|
-
const _API = "AccessPointId";
|
|
1523
|
-
const _CT = "CreationToken";
|
|
1524
|
-
const _DM = "DeletionMode";
|
|
1525
|
-
const _FSI = "FileSystemId";
|
|
1526
|
-
const _M = "Marker";
|
|
1527
|
-
const _MI = "MaxItems";
|
|
1528
|
-
const _MR = "MaxResults";
|
|
1529
|
-
const _MTI = "MountTargetId";
|
|
1530
|
-
const _NT = "NextToken";
|
|
1531
|
-
const _TK = "TagKeys";
|
|
1532
|
-
const _dM = "deletionMode";
|
|
1533
|
-
const _tK = "tagKeys";
|