@aws-sdk/client-efs 3.474.0 → 3.477.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/protocols/Aws_restJson1.js +179 -406
- package/dist-es/protocols/Aws_restJson1.js +180 -407
- package/package.json +5 -4
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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
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
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const EFSServiceException_1 = require("../models/EFSServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const se_CreateAccessPointCommand = async (input, context) => {
|
|
11
|
-
const
|
|
11
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
b.bp("/2015-02-01/access-points");
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
18
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -21,23 +21,16 @@ const se_CreateAccessPointCommand = async (input, context) => {
|
|
|
21
21
|
RootDirectory: (_) => (0, smithy_client_1._json)(_),
|
|
22
22
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
23
23
|
}));
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
hostname,
|
|
27
|
-
port,
|
|
28
|
-
method: "POST",
|
|
29
|
-
headers,
|
|
30
|
-
path: resolvedPath,
|
|
31
|
-
body,
|
|
32
|
-
});
|
|
24
|
+
b.m("POST").h(headers).b(body);
|
|
25
|
+
return b.build();
|
|
33
26
|
};
|
|
34
27
|
exports.se_CreateAccessPointCommand = se_CreateAccessPointCommand;
|
|
35
28
|
const se_CreateFileSystemCommand = async (input, context) => {
|
|
36
|
-
const
|
|
29
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
37
30
|
const headers = {
|
|
38
31
|
"content-type": "application/json",
|
|
39
32
|
};
|
|
40
|
-
|
|
33
|
+
b.bp("/2015-02-01/file-systems");
|
|
41
34
|
let body;
|
|
42
35
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
43
36
|
AvailabilityZoneName: [],
|
|
@@ -50,23 +43,16 @@ const se_CreateFileSystemCommand = async (input, context) => {
|
|
|
50
43
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
51
44
|
ThroughputMode: [],
|
|
52
45
|
}));
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
hostname,
|
|
56
|
-
port,
|
|
57
|
-
method: "POST",
|
|
58
|
-
headers,
|
|
59
|
-
path: resolvedPath,
|
|
60
|
-
body,
|
|
61
|
-
});
|
|
46
|
+
b.m("POST").h(headers).b(body);
|
|
47
|
+
return b.build();
|
|
62
48
|
};
|
|
63
49
|
exports.se_CreateFileSystemCommand = se_CreateFileSystemCommand;
|
|
64
50
|
const se_CreateMountTargetCommand = async (input, context) => {
|
|
65
|
-
const
|
|
51
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
66
52
|
const headers = {
|
|
67
53
|
"content-type": "application/json",
|
|
68
54
|
};
|
|
69
|
-
|
|
55
|
+
b.bp("/2015-02-01/mount-targets");
|
|
70
56
|
let body;
|
|
71
57
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
72
58
|
FileSystemId: [],
|
|
@@ -74,606 +60,383 @@ const se_CreateMountTargetCommand = async (input, context) => {
|
|
|
74
60
|
SecurityGroups: (_) => (0, smithy_client_1._json)(_),
|
|
75
61
|
SubnetId: [],
|
|
76
62
|
}));
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
hostname,
|
|
80
|
-
port,
|
|
81
|
-
method: "POST",
|
|
82
|
-
headers,
|
|
83
|
-
path: resolvedPath,
|
|
84
|
-
body,
|
|
85
|
-
});
|
|
63
|
+
b.m("POST").h(headers).b(body);
|
|
64
|
+
return b.build();
|
|
86
65
|
};
|
|
87
66
|
exports.se_CreateMountTargetCommand = se_CreateMountTargetCommand;
|
|
88
67
|
const se_CreateReplicationConfigurationCommand = async (input, context) => {
|
|
89
|
-
const
|
|
68
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
90
69
|
const headers = {
|
|
91
70
|
"content-type": "application/json",
|
|
92
71
|
};
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceFileSystemId", () => input.SourceFileSystemId, "{SourceFileSystemId}", false);
|
|
72
|
+
b.bp("/2015-02-01/file-systems/{SourceFileSystemId}/replication-configuration");
|
|
73
|
+
b.p("SourceFileSystemId", () => input.SourceFileSystemId, "{SourceFileSystemId}", false);
|
|
96
74
|
let body;
|
|
97
75
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
98
76
|
Destinations: (_) => (0, smithy_client_1._json)(_),
|
|
99
77
|
}));
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
hostname,
|
|
103
|
-
port,
|
|
104
|
-
method: "POST",
|
|
105
|
-
headers,
|
|
106
|
-
path: resolvedPath,
|
|
107
|
-
body,
|
|
108
|
-
});
|
|
78
|
+
b.m("POST").h(headers).b(body);
|
|
79
|
+
return b.build();
|
|
109
80
|
};
|
|
110
81
|
exports.se_CreateReplicationConfigurationCommand = se_CreateReplicationConfigurationCommand;
|
|
111
82
|
const se_CreateTagsCommand = async (input, context) => {
|
|
112
|
-
const
|
|
83
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
113
84
|
const headers = {
|
|
114
85
|
"content-type": "application/json",
|
|
115
86
|
};
|
|
116
|
-
|
|
117
|
-
|
|
87
|
+
b.bp("/2015-02-01/create-tags/{FileSystemId}");
|
|
88
|
+
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
118
89
|
let body;
|
|
119
90
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
120
91
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
121
92
|
}));
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
hostname,
|
|
125
|
-
port,
|
|
126
|
-
method: "POST",
|
|
127
|
-
headers,
|
|
128
|
-
path: resolvedPath,
|
|
129
|
-
body,
|
|
130
|
-
});
|
|
93
|
+
b.m("POST").h(headers).b(body);
|
|
94
|
+
return b.build();
|
|
131
95
|
};
|
|
132
96
|
exports.se_CreateTagsCommand = se_CreateTagsCommand;
|
|
133
97
|
const se_DeleteAccessPointCommand = async (input, context) => {
|
|
134
|
-
const
|
|
98
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
135
99
|
const headers = {};
|
|
136
|
-
|
|
137
|
-
|
|
100
|
+
b.bp("/2015-02-01/access-points/{AccessPointId}");
|
|
101
|
+
b.p("AccessPointId", () => input.AccessPointId, "{AccessPointId}", false);
|
|
138
102
|
let body;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
hostname,
|
|
142
|
-
port,
|
|
143
|
-
method: "DELETE",
|
|
144
|
-
headers,
|
|
145
|
-
path: resolvedPath,
|
|
146
|
-
body,
|
|
147
|
-
});
|
|
103
|
+
b.m("DELETE").h(headers).b(body);
|
|
104
|
+
return b.build();
|
|
148
105
|
};
|
|
149
106
|
exports.se_DeleteAccessPointCommand = se_DeleteAccessPointCommand;
|
|
150
107
|
const se_DeleteFileSystemCommand = async (input, context) => {
|
|
151
|
-
const
|
|
108
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
152
109
|
const headers = {};
|
|
153
|
-
|
|
154
|
-
|
|
110
|
+
b.bp("/2015-02-01/file-systems/{FileSystemId}");
|
|
111
|
+
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
155
112
|
let body;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
hostname,
|
|
159
|
-
port,
|
|
160
|
-
method: "DELETE",
|
|
161
|
-
headers,
|
|
162
|
-
path: resolvedPath,
|
|
163
|
-
body,
|
|
164
|
-
});
|
|
113
|
+
b.m("DELETE").h(headers).b(body);
|
|
114
|
+
return b.build();
|
|
165
115
|
};
|
|
166
116
|
exports.se_DeleteFileSystemCommand = se_DeleteFileSystemCommand;
|
|
167
117
|
const se_DeleteFileSystemPolicyCommand = async (input, context) => {
|
|
168
|
-
const
|
|
118
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
169
119
|
const headers = {};
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
120
|
+
b.bp("/2015-02-01/file-systems/{FileSystemId}/policy");
|
|
121
|
+
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
173
122
|
let body;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
hostname,
|
|
177
|
-
port,
|
|
178
|
-
method: "DELETE",
|
|
179
|
-
headers,
|
|
180
|
-
path: resolvedPath,
|
|
181
|
-
body,
|
|
182
|
-
});
|
|
123
|
+
b.m("DELETE").h(headers).b(body);
|
|
124
|
+
return b.build();
|
|
183
125
|
};
|
|
184
126
|
exports.se_DeleteFileSystemPolicyCommand = se_DeleteFileSystemPolicyCommand;
|
|
185
127
|
const se_DeleteMountTargetCommand = async (input, context) => {
|
|
186
|
-
const
|
|
128
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
187
129
|
const headers = {};
|
|
188
|
-
|
|
189
|
-
|
|
130
|
+
b.bp("/2015-02-01/mount-targets/{MountTargetId}");
|
|
131
|
+
b.p("MountTargetId", () => input.MountTargetId, "{MountTargetId}", false);
|
|
190
132
|
let body;
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
hostname,
|
|
194
|
-
port,
|
|
195
|
-
method: "DELETE",
|
|
196
|
-
headers,
|
|
197
|
-
path: resolvedPath,
|
|
198
|
-
body,
|
|
199
|
-
});
|
|
133
|
+
b.m("DELETE").h(headers).b(body);
|
|
134
|
+
return b.build();
|
|
200
135
|
};
|
|
201
136
|
exports.se_DeleteMountTargetCommand = se_DeleteMountTargetCommand;
|
|
202
137
|
const se_DeleteReplicationConfigurationCommand = async (input, context) => {
|
|
203
|
-
const
|
|
138
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
204
139
|
const headers = {};
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceFileSystemId", () => input.SourceFileSystemId, "{SourceFileSystemId}", false);
|
|
140
|
+
b.bp("/2015-02-01/file-systems/{SourceFileSystemId}/replication-configuration");
|
|
141
|
+
b.p("SourceFileSystemId", () => input.SourceFileSystemId, "{SourceFileSystemId}", false);
|
|
208
142
|
let body;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
hostname,
|
|
212
|
-
port,
|
|
213
|
-
method: "DELETE",
|
|
214
|
-
headers,
|
|
215
|
-
path: resolvedPath,
|
|
216
|
-
body,
|
|
217
|
-
});
|
|
143
|
+
b.m("DELETE").h(headers).b(body);
|
|
144
|
+
return b.build();
|
|
218
145
|
};
|
|
219
146
|
exports.se_DeleteReplicationConfigurationCommand = se_DeleteReplicationConfigurationCommand;
|
|
220
147
|
const se_DeleteTagsCommand = async (input, context) => {
|
|
221
|
-
const
|
|
148
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
222
149
|
const headers = {
|
|
223
150
|
"content-type": "application/json",
|
|
224
151
|
};
|
|
225
|
-
|
|
226
|
-
|
|
152
|
+
b.bp("/2015-02-01/delete-tags/{FileSystemId}");
|
|
153
|
+
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
227
154
|
let body;
|
|
228
155
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
229
156
|
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
230
157
|
}));
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
hostname,
|
|
234
|
-
port,
|
|
235
|
-
method: "POST",
|
|
236
|
-
headers,
|
|
237
|
-
path: resolvedPath,
|
|
238
|
-
body,
|
|
239
|
-
});
|
|
158
|
+
b.m("POST").h(headers).b(body);
|
|
159
|
+
return b.build();
|
|
240
160
|
};
|
|
241
161
|
exports.se_DeleteTagsCommand = se_DeleteTagsCommand;
|
|
242
162
|
const se_DescribeAccessPointsCommand = async (input, context) => {
|
|
243
|
-
const
|
|
163
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
244
164
|
const headers = {};
|
|
245
|
-
|
|
165
|
+
b.bp("/2015-02-01/access-points");
|
|
246
166
|
const query = (0, smithy_client_1.map)({
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
167
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
168
|
+
[_NT]: [, input[_NT]],
|
|
169
|
+
[_API]: [, input[_API]],
|
|
170
|
+
[_FSI]: [, input[_FSI]],
|
|
251
171
|
});
|
|
252
172
|
let body;
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
hostname,
|
|
256
|
-
port,
|
|
257
|
-
method: "GET",
|
|
258
|
-
headers,
|
|
259
|
-
path: resolvedPath,
|
|
260
|
-
query,
|
|
261
|
-
body,
|
|
262
|
-
});
|
|
173
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
174
|
+
return b.build();
|
|
263
175
|
};
|
|
264
176
|
exports.se_DescribeAccessPointsCommand = se_DescribeAccessPointsCommand;
|
|
265
177
|
const se_DescribeAccountPreferencesCommand = async (input, context) => {
|
|
266
|
-
const
|
|
178
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
267
179
|
const headers = {
|
|
268
180
|
"content-type": "application/json",
|
|
269
181
|
};
|
|
270
|
-
|
|
182
|
+
b.bp("/2015-02-01/account-preferences");
|
|
271
183
|
let body;
|
|
272
184
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
273
185
|
MaxResults: [],
|
|
274
186
|
NextToken: [],
|
|
275
187
|
}));
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
hostname,
|
|
279
|
-
port,
|
|
280
|
-
method: "GET",
|
|
281
|
-
headers,
|
|
282
|
-
path: resolvedPath,
|
|
283
|
-
body,
|
|
284
|
-
});
|
|
188
|
+
b.m("GET").h(headers).b(body);
|
|
189
|
+
return b.build();
|
|
285
190
|
};
|
|
286
191
|
exports.se_DescribeAccountPreferencesCommand = se_DescribeAccountPreferencesCommand;
|
|
287
192
|
const se_DescribeBackupPolicyCommand = async (input, context) => {
|
|
288
|
-
const
|
|
193
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
289
194
|
const headers = {};
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
195
|
+
b.bp("/2015-02-01/file-systems/{FileSystemId}/backup-policy");
|
|
196
|
+
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
293
197
|
let body;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
hostname,
|
|
297
|
-
port,
|
|
298
|
-
method: "GET",
|
|
299
|
-
headers,
|
|
300
|
-
path: resolvedPath,
|
|
301
|
-
body,
|
|
302
|
-
});
|
|
198
|
+
b.m("GET").h(headers).b(body);
|
|
199
|
+
return b.build();
|
|
303
200
|
};
|
|
304
201
|
exports.se_DescribeBackupPolicyCommand = se_DescribeBackupPolicyCommand;
|
|
305
202
|
const se_DescribeFileSystemPolicyCommand = async (input, context) => {
|
|
306
|
-
const
|
|
203
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
307
204
|
const headers = {};
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
205
|
+
b.bp("/2015-02-01/file-systems/{FileSystemId}/policy");
|
|
206
|
+
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
311
207
|
let body;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
hostname,
|
|
315
|
-
port,
|
|
316
|
-
method: "GET",
|
|
317
|
-
headers,
|
|
318
|
-
path: resolvedPath,
|
|
319
|
-
body,
|
|
320
|
-
});
|
|
208
|
+
b.m("GET").h(headers).b(body);
|
|
209
|
+
return b.build();
|
|
321
210
|
};
|
|
322
211
|
exports.se_DescribeFileSystemPolicyCommand = se_DescribeFileSystemPolicyCommand;
|
|
323
212
|
const se_DescribeFileSystemsCommand = async (input, context) => {
|
|
324
|
-
const
|
|
213
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
325
214
|
const headers = {};
|
|
326
|
-
|
|
215
|
+
b.bp("/2015-02-01/file-systems");
|
|
327
216
|
const query = (0, smithy_client_1.map)({
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
217
|
+
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
218
|
+
[_M]: [, input[_M]],
|
|
219
|
+
[_CT]: [, input[_CT]],
|
|
220
|
+
[_FSI]: [, input[_FSI]],
|
|
332
221
|
});
|
|
333
222
|
let body;
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
hostname,
|
|
337
|
-
port,
|
|
338
|
-
method: "GET",
|
|
339
|
-
headers,
|
|
340
|
-
path: resolvedPath,
|
|
341
|
-
query,
|
|
342
|
-
body,
|
|
343
|
-
});
|
|
223
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
224
|
+
return b.build();
|
|
344
225
|
};
|
|
345
226
|
exports.se_DescribeFileSystemsCommand = se_DescribeFileSystemsCommand;
|
|
346
227
|
const se_DescribeLifecycleConfigurationCommand = async (input, context) => {
|
|
347
|
-
const
|
|
228
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
348
229
|
const headers = {};
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
230
|
+
b.bp("/2015-02-01/file-systems/{FileSystemId}/lifecycle-configuration");
|
|
231
|
+
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
352
232
|
let body;
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
hostname,
|
|
356
|
-
port,
|
|
357
|
-
method: "GET",
|
|
358
|
-
headers,
|
|
359
|
-
path: resolvedPath,
|
|
360
|
-
body,
|
|
361
|
-
});
|
|
233
|
+
b.m("GET").h(headers).b(body);
|
|
234
|
+
return b.build();
|
|
362
235
|
};
|
|
363
236
|
exports.se_DescribeLifecycleConfigurationCommand = se_DescribeLifecycleConfigurationCommand;
|
|
364
237
|
const se_DescribeMountTargetsCommand = async (input, context) => {
|
|
365
|
-
const
|
|
238
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
366
239
|
const headers = {};
|
|
367
|
-
|
|
240
|
+
b.bp("/2015-02-01/mount-targets");
|
|
368
241
|
const query = (0, smithy_client_1.map)({
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
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]],
|
|
374
247
|
});
|
|
375
248
|
let body;
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
hostname,
|
|
379
|
-
port,
|
|
380
|
-
method: "GET",
|
|
381
|
-
headers,
|
|
382
|
-
path: resolvedPath,
|
|
383
|
-
query,
|
|
384
|
-
body,
|
|
385
|
-
});
|
|
249
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
250
|
+
return b.build();
|
|
386
251
|
};
|
|
387
252
|
exports.se_DescribeMountTargetsCommand = se_DescribeMountTargetsCommand;
|
|
388
253
|
const se_DescribeMountTargetSecurityGroupsCommand = async (input, context) => {
|
|
389
|
-
const
|
|
254
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
390
255
|
const headers = {};
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MountTargetId", () => input.MountTargetId, "{MountTargetId}", false);
|
|
256
|
+
b.bp("/2015-02-01/mount-targets/{MountTargetId}/security-groups");
|
|
257
|
+
b.p("MountTargetId", () => input.MountTargetId, "{MountTargetId}", false);
|
|
394
258
|
let body;
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
hostname,
|
|
398
|
-
port,
|
|
399
|
-
method: "GET",
|
|
400
|
-
headers,
|
|
401
|
-
path: resolvedPath,
|
|
402
|
-
body,
|
|
403
|
-
});
|
|
259
|
+
b.m("GET").h(headers).b(body);
|
|
260
|
+
return b.build();
|
|
404
261
|
};
|
|
405
262
|
exports.se_DescribeMountTargetSecurityGroupsCommand = se_DescribeMountTargetSecurityGroupsCommand;
|
|
406
263
|
const se_DescribeReplicationConfigurationsCommand = async (input, context) => {
|
|
407
|
-
const
|
|
264
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
408
265
|
const headers = {};
|
|
409
|
-
|
|
410
|
-
"/2015-02-01/file-systems/replication-configurations";
|
|
266
|
+
b.bp("/2015-02-01/file-systems/replication-configurations");
|
|
411
267
|
const query = (0, smithy_client_1.map)({
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
268
|
+
[_FSI]: [, input[_FSI]],
|
|
269
|
+
[_NT]: [, input[_NT]],
|
|
270
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
415
271
|
});
|
|
416
272
|
let body;
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
hostname,
|
|
420
|
-
port,
|
|
421
|
-
method: "GET",
|
|
422
|
-
headers,
|
|
423
|
-
path: resolvedPath,
|
|
424
|
-
query,
|
|
425
|
-
body,
|
|
426
|
-
});
|
|
273
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
274
|
+
return b.build();
|
|
427
275
|
};
|
|
428
276
|
exports.se_DescribeReplicationConfigurationsCommand = se_DescribeReplicationConfigurationsCommand;
|
|
429
277
|
const se_DescribeTagsCommand = async (input, context) => {
|
|
430
|
-
const
|
|
278
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
431
279
|
const headers = {};
|
|
432
|
-
|
|
433
|
-
|
|
280
|
+
b.bp("/2015-02-01/tags/{FileSystemId}");
|
|
281
|
+
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
434
282
|
const query = (0, smithy_client_1.map)({
|
|
435
|
-
|
|
436
|
-
|
|
283
|
+
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
284
|
+
[_M]: [, input[_M]],
|
|
437
285
|
});
|
|
438
286
|
let body;
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
hostname,
|
|
442
|
-
port,
|
|
443
|
-
method: "GET",
|
|
444
|
-
headers,
|
|
445
|
-
path: resolvedPath,
|
|
446
|
-
query,
|
|
447
|
-
body,
|
|
448
|
-
});
|
|
287
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
288
|
+
return b.build();
|
|
449
289
|
};
|
|
450
290
|
exports.se_DescribeTagsCommand = se_DescribeTagsCommand;
|
|
451
291
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
452
|
-
const
|
|
292
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
453
293
|
const headers = {};
|
|
454
|
-
|
|
455
|
-
|
|
294
|
+
b.bp("/2015-02-01/resource-tags/{ResourceId}");
|
|
295
|
+
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
456
296
|
const query = (0, smithy_client_1.map)({
|
|
457
|
-
|
|
458
|
-
|
|
297
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
298
|
+
[_NT]: [, input[_NT]],
|
|
459
299
|
});
|
|
460
300
|
let body;
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
hostname,
|
|
464
|
-
port,
|
|
465
|
-
method: "GET",
|
|
466
|
-
headers,
|
|
467
|
-
path: resolvedPath,
|
|
468
|
-
query,
|
|
469
|
-
body,
|
|
470
|
-
});
|
|
301
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
302
|
+
return b.build();
|
|
471
303
|
};
|
|
472
304
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
473
305
|
const se_ModifyMountTargetSecurityGroupsCommand = async (input, context) => {
|
|
474
|
-
const
|
|
306
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
475
307
|
const headers = {
|
|
476
308
|
"content-type": "application/json",
|
|
477
309
|
};
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MountTargetId", () => input.MountTargetId, "{MountTargetId}", false);
|
|
310
|
+
b.bp("/2015-02-01/mount-targets/{MountTargetId}/security-groups");
|
|
311
|
+
b.p("MountTargetId", () => input.MountTargetId, "{MountTargetId}", false);
|
|
481
312
|
let body;
|
|
482
313
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
483
314
|
SecurityGroups: (_) => (0, smithy_client_1._json)(_),
|
|
484
315
|
}));
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
hostname,
|
|
488
|
-
port,
|
|
489
|
-
method: "PUT",
|
|
490
|
-
headers,
|
|
491
|
-
path: resolvedPath,
|
|
492
|
-
body,
|
|
493
|
-
});
|
|
316
|
+
b.m("PUT").h(headers).b(body);
|
|
317
|
+
return b.build();
|
|
494
318
|
};
|
|
495
319
|
exports.se_ModifyMountTargetSecurityGroupsCommand = se_ModifyMountTargetSecurityGroupsCommand;
|
|
496
320
|
const se_PutAccountPreferencesCommand = async (input, context) => {
|
|
497
|
-
const
|
|
321
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
498
322
|
const headers = {
|
|
499
323
|
"content-type": "application/json",
|
|
500
324
|
};
|
|
501
|
-
|
|
325
|
+
b.bp("/2015-02-01/account-preferences");
|
|
502
326
|
let body;
|
|
503
327
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
504
328
|
ResourceIdType: [],
|
|
505
329
|
}));
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
hostname,
|
|
509
|
-
port,
|
|
510
|
-
method: "PUT",
|
|
511
|
-
headers,
|
|
512
|
-
path: resolvedPath,
|
|
513
|
-
body,
|
|
514
|
-
});
|
|
330
|
+
b.m("PUT").h(headers).b(body);
|
|
331
|
+
return b.build();
|
|
515
332
|
};
|
|
516
333
|
exports.se_PutAccountPreferencesCommand = se_PutAccountPreferencesCommand;
|
|
517
334
|
const se_PutBackupPolicyCommand = async (input, context) => {
|
|
518
|
-
const
|
|
335
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
519
336
|
const headers = {
|
|
520
337
|
"content-type": "application/json",
|
|
521
338
|
};
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
339
|
+
b.bp("/2015-02-01/file-systems/{FileSystemId}/backup-policy");
|
|
340
|
+
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
525
341
|
let body;
|
|
526
342
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
527
343
|
BackupPolicy: (_) => (0, smithy_client_1._json)(_),
|
|
528
344
|
}));
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
hostname,
|
|
532
|
-
port,
|
|
533
|
-
method: "PUT",
|
|
534
|
-
headers,
|
|
535
|
-
path: resolvedPath,
|
|
536
|
-
body,
|
|
537
|
-
});
|
|
345
|
+
b.m("PUT").h(headers).b(body);
|
|
346
|
+
return b.build();
|
|
538
347
|
};
|
|
539
348
|
exports.se_PutBackupPolicyCommand = se_PutBackupPolicyCommand;
|
|
540
349
|
const se_PutFileSystemPolicyCommand = async (input, context) => {
|
|
541
|
-
const
|
|
350
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
542
351
|
const headers = {
|
|
543
352
|
"content-type": "application/json",
|
|
544
353
|
};
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
354
|
+
b.bp("/2015-02-01/file-systems/{FileSystemId}/policy");
|
|
355
|
+
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
548
356
|
let body;
|
|
549
357
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
550
358
|
BypassPolicyLockoutSafetyCheck: [],
|
|
551
359
|
Policy: [],
|
|
552
360
|
}));
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
hostname,
|
|
556
|
-
port,
|
|
557
|
-
method: "PUT",
|
|
558
|
-
headers,
|
|
559
|
-
path: resolvedPath,
|
|
560
|
-
body,
|
|
561
|
-
});
|
|
361
|
+
b.m("PUT").h(headers).b(body);
|
|
362
|
+
return b.build();
|
|
562
363
|
};
|
|
563
364
|
exports.se_PutFileSystemPolicyCommand = se_PutFileSystemPolicyCommand;
|
|
564
365
|
const se_PutLifecycleConfigurationCommand = async (input, context) => {
|
|
565
|
-
const
|
|
366
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
566
367
|
const headers = {
|
|
567
368
|
"content-type": "application/json",
|
|
568
369
|
};
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
370
|
+
b.bp("/2015-02-01/file-systems/{FileSystemId}/lifecycle-configuration");
|
|
371
|
+
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
572
372
|
let body;
|
|
573
373
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
574
374
|
LifecyclePolicies: (_) => (0, smithy_client_1._json)(_),
|
|
575
375
|
}));
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
hostname,
|
|
579
|
-
port,
|
|
580
|
-
method: "PUT",
|
|
581
|
-
headers,
|
|
582
|
-
path: resolvedPath,
|
|
583
|
-
body,
|
|
584
|
-
});
|
|
376
|
+
b.m("PUT").h(headers).b(body);
|
|
377
|
+
return b.build();
|
|
585
378
|
};
|
|
586
379
|
exports.se_PutLifecycleConfigurationCommand = se_PutLifecycleConfigurationCommand;
|
|
587
380
|
const se_TagResourceCommand = async (input, context) => {
|
|
588
|
-
const
|
|
381
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
589
382
|
const headers = {
|
|
590
383
|
"content-type": "application/json",
|
|
591
384
|
};
|
|
592
|
-
|
|
593
|
-
|
|
385
|
+
b.bp("/2015-02-01/resource-tags/{ResourceId}");
|
|
386
|
+
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
594
387
|
let body;
|
|
595
388
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
596
389
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
597
390
|
}));
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
hostname,
|
|
601
|
-
port,
|
|
602
|
-
method: "POST",
|
|
603
|
-
headers,
|
|
604
|
-
path: resolvedPath,
|
|
605
|
-
body,
|
|
606
|
-
});
|
|
391
|
+
b.m("POST").h(headers).b(body);
|
|
392
|
+
return b.build();
|
|
607
393
|
};
|
|
608
394
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
609
395
|
const se_UntagResourceCommand = async (input, context) => {
|
|
610
|
-
const
|
|
396
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
611
397
|
const headers = {};
|
|
612
|
-
|
|
613
|
-
|
|
398
|
+
b.bp("/2015-02-01/resource-tags/{ResourceId}");
|
|
399
|
+
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
614
400
|
const query = (0, smithy_client_1.map)({
|
|
615
|
-
|
|
401
|
+
[_tK]: [
|
|
616
402
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
617
|
-
() => (input
|
|
403
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
618
404
|
],
|
|
619
405
|
});
|
|
620
406
|
let body;
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
hostname,
|
|
624
|
-
port,
|
|
625
|
-
method: "DELETE",
|
|
626
|
-
headers,
|
|
627
|
-
path: resolvedPath,
|
|
628
|
-
query,
|
|
629
|
-
body,
|
|
630
|
-
});
|
|
407
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
408
|
+
return b.build();
|
|
631
409
|
};
|
|
632
410
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
633
411
|
const se_UpdateFileSystemCommand = async (input, context) => {
|
|
634
|
-
const
|
|
412
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
635
413
|
const headers = {
|
|
636
414
|
"content-type": "application/json",
|
|
637
415
|
};
|
|
638
|
-
|
|
639
|
-
|
|
416
|
+
b.bp("/2015-02-01/file-systems/{FileSystemId}");
|
|
417
|
+
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
640
418
|
let body;
|
|
641
419
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
642
420
|
ProvisionedThroughputInMibps: (_) => (0, smithy_client_1.serializeFloat)(_),
|
|
643
421
|
ThroughputMode: [],
|
|
644
422
|
}));
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
hostname,
|
|
648
|
-
port,
|
|
649
|
-
method: "PUT",
|
|
650
|
-
headers,
|
|
651
|
-
path: resolvedPath,
|
|
652
|
-
body,
|
|
653
|
-
});
|
|
423
|
+
b.m("PUT").h(headers).b(body);
|
|
424
|
+
return b.build();
|
|
654
425
|
};
|
|
655
426
|
exports.se_UpdateFileSystemCommand = se_UpdateFileSystemCommand;
|
|
656
427
|
const se_UpdateFileSystemProtectionCommand = async (input, context) => {
|
|
657
|
-
const
|
|
428
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
658
429
|
const headers = {
|
|
659
430
|
"content-type": "application/json",
|
|
660
431
|
};
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
432
|
+
b.bp("/2015-02-01/file-systems/{FileSystemId}/protection");
|
|
433
|
+
b.p("FileSystemId", () => input.FileSystemId, "{FileSystemId}", false);
|
|
664
434
|
let body;
|
|
665
435
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
666
436
|
ReplicationOverwriteProtection: [],
|
|
667
437
|
}));
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
hostname,
|
|
671
|
-
port,
|
|
672
|
-
method: "PUT",
|
|
673
|
-
headers,
|
|
674
|
-
path: resolvedPath,
|
|
675
|
-
body,
|
|
676
|
-
});
|
|
438
|
+
b.m("PUT").h(headers).b(body);
|
|
439
|
+
return b.build();
|
|
677
440
|
};
|
|
678
441
|
exports.se_UpdateFileSystemProtectionCommand = se_UpdateFileSystemProtectionCommand;
|
|
679
442
|
const de_CreateAccessPointCommand = async (output, context) => {
|
|
@@ -2649,6 +2412,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
2649
2412
|
value !== "" &&
|
|
2650
2413
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2651
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";
|
|
2652
2425
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2653
2426
|
if (encoded.length) {
|
|
2654
2427
|
return JSON.parse(encoded);
|