@aws-sdk/client-s3outposts 3.303.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/CreateEndpointCommand.js +2 -2
- package/dist-cjs/commands/DeleteEndpointCommand.js +2 -2
- package/dist-cjs/commands/ListEndpointsCommand.js +2 -2
- package/dist-cjs/commands/ListOutpostsWithS3Command.js +2 -2
- package/dist-cjs/commands/ListSharedEndpointsCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +80 -82
- package/dist-es/commands/CreateEndpointCommand.js +3 -3
- package/dist-es/commands/DeleteEndpointCommand.js +3 -3
- package/dist-es/commands/ListEndpointsCommand.js +3 -3
- package/dist-es/commands/ListOutpostsWithS3Command.js +3 -3
- package/dist-es/commands/ListSharedEndpointsCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +69 -71
- package/dist-types/protocols/Aws_restJson1.d.ts +40 -10
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +10 -10
- package/package.json +29 -29
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_ListSharedEndpointsCommand, se_ListSharedEndpointsCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class ListSharedEndpointsCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class ListSharedEndpointsCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_ListSharedEndpointsCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_ListSharedEndpointsCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AccessDeniedException, ConflictException, InternalServerException, OutpostOfflineException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { S3OutpostsServiceException as __BaseException } from "../models/S3OutpostsServiceException";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CreateEndpointCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
@@ -26,7 +26,7 @@ export const serializeAws_restJson1CreateEndpointCommand = async (input, context
|
|
|
26
26
|
body,
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
export const
|
|
29
|
+
export const se_DeleteEndpointCommand = async (input, context) => {
|
|
30
30
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
31
31
|
const headers = {};
|
|
32
32
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/DeleteEndpoint";
|
|
@@ -46,7 +46,7 @@ export const serializeAws_restJson1DeleteEndpointCommand = async (input, context
|
|
|
46
46
|
body,
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
export const
|
|
49
|
+
export const se_ListEndpointsCommand = async (input, context) => {
|
|
50
50
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
51
51
|
const headers = {};
|
|
52
52
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListEndpoints";
|
|
@@ -66,7 +66,7 @@ export const serializeAws_restJson1ListEndpointsCommand = async (input, context)
|
|
|
66
66
|
body,
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
|
-
export const
|
|
69
|
+
export const se_ListOutpostsWithS3Command = async (input, context) => {
|
|
70
70
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
71
71
|
const headers = {};
|
|
72
72
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListOutpostsWithS3";
|
|
@@ -86,7 +86,7 @@ export const serializeAws_restJson1ListOutpostsWithS3Command = async (input, con
|
|
|
86
86
|
body,
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
|
-
export const
|
|
89
|
+
export const se_ListSharedEndpointsCommand = async (input, context) => {
|
|
90
90
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
91
91
|
const headers = {};
|
|
92
92
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListSharedEndpoints";
|
|
@@ -107,9 +107,9 @@ export const serializeAws_restJson1ListSharedEndpointsCommand = async (input, co
|
|
|
107
107
|
body,
|
|
108
108
|
});
|
|
109
109
|
};
|
|
110
|
-
export const
|
|
110
|
+
export const de_CreateEndpointCommand = async (output, context) => {
|
|
111
111
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
112
|
-
return
|
|
112
|
+
return de_CreateEndpointCommandError(output, context);
|
|
113
113
|
}
|
|
114
114
|
const contents = map({
|
|
115
115
|
$metadata: deserializeMetadata(output),
|
|
@@ -120,7 +120,7 @@ export const deserializeAws_restJson1CreateEndpointCommand = async (output, cont
|
|
|
120
120
|
}
|
|
121
121
|
return contents;
|
|
122
122
|
};
|
|
123
|
-
const
|
|
123
|
+
const de_CreateEndpointCommandError = async (output, context) => {
|
|
124
124
|
const parsedOutput = {
|
|
125
125
|
...output,
|
|
126
126
|
body: await parseErrorBody(output.body, context),
|
|
@@ -129,25 +129,25 @@ const deserializeAws_restJson1CreateEndpointCommandError = async (output, contex
|
|
|
129
129
|
switch (errorCode) {
|
|
130
130
|
case "AccessDeniedException":
|
|
131
131
|
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
132
|
-
throw await
|
|
132
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
133
133
|
case "ConflictException":
|
|
134
134
|
case "com.amazonaws.s3outposts#ConflictException":
|
|
135
|
-
throw await
|
|
135
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
136
136
|
case "InternalServerException":
|
|
137
137
|
case "com.amazonaws.s3outposts#InternalServerException":
|
|
138
|
-
throw await
|
|
138
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
139
139
|
case "OutpostOfflineException":
|
|
140
140
|
case "com.amazonaws.s3outposts#OutpostOfflineException":
|
|
141
|
-
throw await
|
|
141
|
+
throw await de_OutpostOfflineExceptionRes(parsedOutput, context);
|
|
142
142
|
case "ResourceNotFoundException":
|
|
143
143
|
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
144
|
-
throw await
|
|
144
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
145
145
|
case "ThrottlingException":
|
|
146
146
|
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
147
|
-
throw await
|
|
147
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
148
148
|
case "ValidationException":
|
|
149
149
|
case "com.amazonaws.s3outposts#ValidationException":
|
|
150
|
-
throw await
|
|
150
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
151
151
|
default:
|
|
152
152
|
const parsedBody = parsedOutput.body;
|
|
153
153
|
throwDefaultError({
|
|
@@ -158,9 +158,9 @@ const deserializeAws_restJson1CreateEndpointCommandError = async (output, contex
|
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
|
-
export const
|
|
161
|
+
export const de_DeleteEndpointCommand = async (output, context) => {
|
|
162
162
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
163
|
-
return
|
|
163
|
+
return de_DeleteEndpointCommandError(output, context);
|
|
164
164
|
}
|
|
165
165
|
const contents = map({
|
|
166
166
|
$metadata: deserializeMetadata(output),
|
|
@@ -168,7 +168,7 @@ export const deserializeAws_restJson1DeleteEndpointCommand = async (output, cont
|
|
|
168
168
|
await collectBody(output.body, context);
|
|
169
169
|
return contents;
|
|
170
170
|
};
|
|
171
|
-
const
|
|
171
|
+
const de_DeleteEndpointCommandError = async (output, context) => {
|
|
172
172
|
const parsedOutput = {
|
|
173
173
|
...output,
|
|
174
174
|
body: await parseErrorBody(output.body, context),
|
|
@@ -177,22 +177,22 @@ const deserializeAws_restJson1DeleteEndpointCommandError = async (output, contex
|
|
|
177
177
|
switch (errorCode) {
|
|
178
178
|
case "AccessDeniedException":
|
|
179
179
|
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
180
|
-
throw await
|
|
180
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
181
181
|
case "InternalServerException":
|
|
182
182
|
case "com.amazonaws.s3outposts#InternalServerException":
|
|
183
|
-
throw await
|
|
183
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
184
184
|
case "OutpostOfflineException":
|
|
185
185
|
case "com.amazonaws.s3outposts#OutpostOfflineException":
|
|
186
|
-
throw await
|
|
186
|
+
throw await de_OutpostOfflineExceptionRes(parsedOutput, context);
|
|
187
187
|
case "ResourceNotFoundException":
|
|
188
188
|
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
189
|
-
throw await
|
|
189
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
190
190
|
case "ThrottlingException":
|
|
191
191
|
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
192
|
-
throw await
|
|
192
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
193
193
|
case "ValidationException":
|
|
194
194
|
case "com.amazonaws.s3outposts#ValidationException":
|
|
195
|
-
throw await
|
|
195
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
196
196
|
default:
|
|
197
197
|
const parsedBody = parsedOutput.body;
|
|
198
198
|
throwDefaultError({
|
|
@@ -203,23 +203,23 @@ const deserializeAws_restJson1DeleteEndpointCommandError = async (output, contex
|
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
|
-
export const
|
|
206
|
+
export const de_ListEndpointsCommand = async (output, context) => {
|
|
207
207
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
208
|
-
return
|
|
208
|
+
return de_ListEndpointsCommandError(output, context);
|
|
209
209
|
}
|
|
210
210
|
const contents = map({
|
|
211
211
|
$metadata: deserializeMetadata(output),
|
|
212
212
|
});
|
|
213
213
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
214
214
|
if (data.Endpoints != null) {
|
|
215
|
-
contents.Endpoints =
|
|
215
|
+
contents.Endpoints = de_Endpoints(data.Endpoints, context);
|
|
216
216
|
}
|
|
217
217
|
if (data.NextToken != null) {
|
|
218
218
|
contents.NextToken = __expectString(data.NextToken);
|
|
219
219
|
}
|
|
220
220
|
return contents;
|
|
221
221
|
};
|
|
222
|
-
const
|
|
222
|
+
const de_ListEndpointsCommandError = async (output, context) => {
|
|
223
223
|
const parsedOutput = {
|
|
224
224
|
...output,
|
|
225
225
|
body: await parseErrorBody(output.body, context),
|
|
@@ -228,19 +228,19 @@ const deserializeAws_restJson1ListEndpointsCommandError = async (output, context
|
|
|
228
228
|
switch (errorCode) {
|
|
229
229
|
case "AccessDeniedException":
|
|
230
230
|
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
231
|
-
throw await
|
|
231
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
232
232
|
case "InternalServerException":
|
|
233
233
|
case "com.amazonaws.s3outposts#InternalServerException":
|
|
234
|
-
throw await
|
|
234
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
235
235
|
case "ResourceNotFoundException":
|
|
236
236
|
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
237
|
-
throw await
|
|
237
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
238
238
|
case "ThrottlingException":
|
|
239
239
|
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
240
|
-
throw await
|
|
240
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
241
241
|
case "ValidationException":
|
|
242
242
|
case "com.amazonaws.s3outposts#ValidationException":
|
|
243
|
-
throw await
|
|
243
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
244
244
|
default:
|
|
245
245
|
const parsedBody = parsedOutput.body;
|
|
246
246
|
throwDefaultError({
|
|
@@ -251,9 +251,9 @@ const deserializeAws_restJson1ListEndpointsCommandError = async (output, context
|
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
|
-
export const
|
|
254
|
+
export const de_ListOutpostsWithS3Command = async (output, context) => {
|
|
255
255
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
256
|
-
return
|
|
256
|
+
return de_ListOutpostsWithS3CommandError(output, context);
|
|
257
257
|
}
|
|
258
258
|
const contents = map({
|
|
259
259
|
$metadata: deserializeMetadata(output),
|
|
@@ -263,11 +263,11 @@ export const deserializeAws_restJson1ListOutpostsWithS3Command = async (output,
|
|
|
263
263
|
contents.NextToken = __expectString(data.NextToken);
|
|
264
264
|
}
|
|
265
265
|
if (data.Outposts != null) {
|
|
266
|
-
contents.Outposts =
|
|
266
|
+
contents.Outposts = de_Outposts(data.Outposts, context);
|
|
267
267
|
}
|
|
268
268
|
return contents;
|
|
269
269
|
};
|
|
270
|
-
const
|
|
270
|
+
const de_ListOutpostsWithS3CommandError = async (output, context) => {
|
|
271
271
|
const parsedOutput = {
|
|
272
272
|
...output,
|
|
273
273
|
body: await parseErrorBody(output.body, context),
|
|
@@ -276,16 +276,16 @@ const deserializeAws_restJson1ListOutpostsWithS3CommandError = async (output, co
|
|
|
276
276
|
switch (errorCode) {
|
|
277
277
|
case "AccessDeniedException":
|
|
278
278
|
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
279
|
-
throw await
|
|
279
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
280
280
|
case "InternalServerException":
|
|
281
281
|
case "com.amazonaws.s3outposts#InternalServerException":
|
|
282
|
-
throw await
|
|
282
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
283
283
|
case "ThrottlingException":
|
|
284
284
|
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
285
|
-
throw await
|
|
285
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
286
286
|
case "ValidationException":
|
|
287
287
|
case "com.amazonaws.s3outposts#ValidationException":
|
|
288
|
-
throw await
|
|
288
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
289
289
|
default:
|
|
290
290
|
const parsedBody = parsedOutput.body;
|
|
291
291
|
throwDefaultError({
|
|
@@ -296,23 +296,23 @@ const deserializeAws_restJson1ListOutpostsWithS3CommandError = async (output, co
|
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
298
|
};
|
|
299
|
-
export const
|
|
299
|
+
export const de_ListSharedEndpointsCommand = async (output, context) => {
|
|
300
300
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
301
|
-
return
|
|
301
|
+
return de_ListSharedEndpointsCommandError(output, context);
|
|
302
302
|
}
|
|
303
303
|
const contents = map({
|
|
304
304
|
$metadata: deserializeMetadata(output),
|
|
305
305
|
});
|
|
306
306
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
307
307
|
if (data.Endpoints != null) {
|
|
308
|
-
contents.Endpoints =
|
|
308
|
+
contents.Endpoints = de_Endpoints(data.Endpoints, context);
|
|
309
309
|
}
|
|
310
310
|
if (data.NextToken != null) {
|
|
311
311
|
contents.NextToken = __expectString(data.NextToken);
|
|
312
312
|
}
|
|
313
313
|
return contents;
|
|
314
314
|
};
|
|
315
|
-
const
|
|
315
|
+
const de_ListSharedEndpointsCommandError = async (output, context) => {
|
|
316
316
|
const parsedOutput = {
|
|
317
317
|
...output,
|
|
318
318
|
body: await parseErrorBody(output.body, context),
|
|
@@ -321,19 +321,19 @@ const deserializeAws_restJson1ListSharedEndpointsCommandError = async (output, c
|
|
|
321
321
|
switch (errorCode) {
|
|
322
322
|
case "AccessDeniedException":
|
|
323
323
|
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
324
|
-
throw await
|
|
324
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
325
325
|
case "InternalServerException":
|
|
326
326
|
case "com.amazonaws.s3outposts#InternalServerException":
|
|
327
|
-
throw await
|
|
327
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
328
328
|
case "ResourceNotFoundException":
|
|
329
329
|
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
330
|
-
throw await
|
|
330
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
331
331
|
case "ThrottlingException":
|
|
332
332
|
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
333
|
-
throw await
|
|
333
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
334
334
|
case "ValidationException":
|
|
335
335
|
case "com.amazonaws.s3outposts#ValidationException":
|
|
336
|
-
throw await
|
|
336
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
337
337
|
default:
|
|
338
338
|
const parsedBody = parsedOutput.body;
|
|
339
339
|
throwDefaultError({
|
|
@@ -345,7 +345,7 @@ const deserializeAws_restJson1ListSharedEndpointsCommandError = async (output, c
|
|
|
345
345
|
}
|
|
346
346
|
};
|
|
347
347
|
const map = __map;
|
|
348
|
-
const
|
|
348
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
349
349
|
const contents = map({});
|
|
350
350
|
const data = parsedOutput.body;
|
|
351
351
|
if (data.Message != null) {
|
|
@@ -357,7 +357,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
357
357
|
});
|
|
358
358
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
359
359
|
};
|
|
360
|
-
const
|
|
360
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
361
361
|
const contents = map({});
|
|
362
362
|
const data = parsedOutput.body;
|
|
363
363
|
if (data.Message != null) {
|
|
@@ -369,7 +369,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
369
369
|
});
|
|
370
370
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
371
371
|
};
|
|
372
|
-
const
|
|
372
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
373
373
|
const contents = map({});
|
|
374
374
|
const data = parsedOutput.body;
|
|
375
375
|
if (data.Message != null) {
|
|
@@ -381,7 +381,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
381
381
|
});
|
|
382
382
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
383
383
|
};
|
|
384
|
-
const
|
|
384
|
+
const de_OutpostOfflineExceptionRes = async (parsedOutput, context) => {
|
|
385
385
|
const contents = map({});
|
|
386
386
|
const data = parsedOutput.body;
|
|
387
387
|
if (data.Message != null) {
|
|
@@ -393,7 +393,7 @@ const deserializeAws_restJson1OutpostOfflineExceptionResponse = async (parsedOut
|
|
|
393
393
|
});
|
|
394
394
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
395
395
|
};
|
|
396
|
-
const
|
|
396
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
397
397
|
const contents = map({});
|
|
398
398
|
const data = parsedOutput.body;
|
|
399
399
|
if (data.Message != null) {
|
|
@@ -405,7 +405,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
405
405
|
});
|
|
406
406
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
407
407
|
};
|
|
408
|
-
const
|
|
408
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
409
409
|
const contents = map({});
|
|
410
410
|
const data = parsedOutput.body;
|
|
411
411
|
if (data.Message != null) {
|
|
@@ -417,7 +417,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
417
417
|
});
|
|
418
418
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
419
419
|
};
|
|
420
|
-
const
|
|
420
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
421
421
|
const contents = map({});
|
|
422
422
|
const data = parsedOutput.body;
|
|
423
423
|
if (data.Message != null) {
|
|
@@ -429,7 +429,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
429
429
|
});
|
|
430
430
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
431
431
|
};
|
|
432
|
-
const
|
|
432
|
+
const de_Endpoint = (output, context) => {
|
|
433
433
|
return {
|
|
434
434
|
AccessType: __expectString(output.AccessType),
|
|
435
435
|
CidrBlock: __expectString(output.CidrBlock),
|
|
@@ -438,10 +438,8 @@ const deserializeAws_restJson1Endpoint = (output, context) => {
|
|
|
438
438
|
: undefined,
|
|
439
439
|
CustomerOwnedIpv4Pool: __expectString(output.CustomerOwnedIpv4Pool),
|
|
440
440
|
EndpointArn: __expectString(output.EndpointArn),
|
|
441
|
-
FailedReason: output.FailedReason != null ?
|
|
442
|
-
NetworkInterfaces: output.NetworkInterfaces != null
|
|
443
|
-
? deserializeAws_restJson1NetworkInterfaces(output.NetworkInterfaces, context)
|
|
444
|
-
: undefined,
|
|
441
|
+
FailedReason: output.FailedReason != null ? de_FailedReason(output.FailedReason, context) : undefined,
|
|
442
|
+
NetworkInterfaces: output.NetworkInterfaces != null ? de_NetworkInterfaces(output.NetworkInterfaces, context) : undefined,
|
|
445
443
|
OutpostsId: __expectString(output.OutpostsId),
|
|
446
444
|
SecurityGroupId: __expectString(output.SecurityGroupId),
|
|
447
445
|
Status: __expectString(output.Status),
|
|
@@ -449,40 +447,40 @@ const deserializeAws_restJson1Endpoint = (output, context) => {
|
|
|
449
447
|
VpcId: __expectString(output.VpcId),
|
|
450
448
|
};
|
|
451
449
|
};
|
|
452
|
-
const
|
|
450
|
+
const de_Endpoints = (output, context) => {
|
|
453
451
|
const retVal = (output || [])
|
|
454
452
|
.filter((e) => e != null)
|
|
455
453
|
.map((entry) => {
|
|
456
454
|
if (entry === null) {
|
|
457
455
|
return null;
|
|
458
456
|
}
|
|
459
|
-
return
|
|
457
|
+
return de_Endpoint(entry, context);
|
|
460
458
|
});
|
|
461
459
|
return retVal;
|
|
462
460
|
};
|
|
463
|
-
const
|
|
461
|
+
const de_FailedReason = (output, context) => {
|
|
464
462
|
return {
|
|
465
463
|
ErrorCode: __expectString(output.ErrorCode),
|
|
466
464
|
Message: __expectString(output.Message),
|
|
467
465
|
};
|
|
468
466
|
};
|
|
469
|
-
const
|
|
467
|
+
const de_NetworkInterface = (output, context) => {
|
|
470
468
|
return {
|
|
471
469
|
NetworkInterfaceId: __expectString(output.NetworkInterfaceId),
|
|
472
470
|
};
|
|
473
471
|
};
|
|
474
|
-
const
|
|
472
|
+
const de_NetworkInterfaces = (output, context) => {
|
|
475
473
|
const retVal = (output || [])
|
|
476
474
|
.filter((e) => e != null)
|
|
477
475
|
.map((entry) => {
|
|
478
476
|
if (entry === null) {
|
|
479
477
|
return null;
|
|
480
478
|
}
|
|
481
|
-
return
|
|
479
|
+
return de_NetworkInterface(entry, context);
|
|
482
480
|
});
|
|
483
481
|
return retVal;
|
|
484
482
|
};
|
|
485
|
-
const
|
|
483
|
+
const de_Outpost = (output, context) => {
|
|
486
484
|
return {
|
|
487
485
|
CapacityInBytes: __expectLong(output.CapacityInBytes),
|
|
488
486
|
OutpostArn: __expectString(output.OutpostArn),
|
|
@@ -490,14 +488,14 @@ const deserializeAws_restJson1Outpost = (output, context) => {
|
|
|
490
488
|
OwnerId: __expectString(output.OwnerId),
|
|
491
489
|
};
|
|
492
490
|
};
|
|
493
|
-
const
|
|
491
|
+
const de_Outposts = (output, context) => {
|
|
494
492
|
const retVal = (output || [])
|
|
495
493
|
.filter((e) => e != null)
|
|
496
494
|
.map((entry) => {
|
|
497
495
|
if (entry === null) {
|
|
498
496
|
return null;
|
|
499
497
|
}
|
|
500
|
-
return
|
|
498
|
+
return de_Outpost(entry, context);
|
|
501
499
|
});
|
|
502
500
|
return retVal;
|
|
503
501
|
};
|
|
@@ -5,13 +5,43 @@ import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "../comm
|
|
|
5
5
|
import { ListEndpointsCommandInput, ListEndpointsCommandOutput } from "../commands/ListEndpointsCommand";
|
|
6
6
|
import { ListOutpostsWithS3CommandInput, ListOutpostsWithS3CommandOutput } from "../commands/ListOutpostsWithS3Command";
|
|
7
7
|
import { ListSharedEndpointsCommandInput, ListSharedEndpointsCommandOutput } from "../commands/ListSharedEndpointsCommand";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export declare const
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
/**
|
|
9
|
+
* serializeAws_restJson1CreateEndpointCommand
|
|
10
|
+
*/
|
|
11
|
+
export declare const se_CreateEndpointCommand: (input: CreateEndpointCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
12
|
+
/**
|
|
13
|
+
* serializeAws_restJson1DeleteEndpointCommand
|
|
14
|
+
*/
|
|
15
|
+
export declare const se_DeleteEndpointCommand: (input: DeleteEndpointCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
16
|
+
/**
|
|
17
|
+
* serializeAws_restJson1ListEndpointsCommand
|
|
18
|
+
*/
|
|
19
|
+
export declare const se_ListEndpointsCommand: (input: ListEndpointsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
20
|
+
/**
|
|
21
|
+
* serializeAws_restJson1ListOutpostsWithS3Command
|
|
22
|
+
*/
|
|
23
|
+
export declare const se_ListOutpostsWithS3Command: (input: ListOutpostsWithS3CommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
24
|
+
/**
|
|
25
|
+
* serializeAws_restJson1ListSharedEndpointsCommand
|
|
26
|
+
*/
|
|
27
|
+
export declare const se_ListSharedEndpointsCommand: (input: ListSharedEndpointsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
28
|
+
/**
|
|
29
|
+
* deserializeAws_restJson1CreateEndpointCommand
|
|
30
|
+
*/
|
|
31
|
+
export declare const de_CreateEndpointCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateEndpointCommandOutput>;
|
|
32
|
+
/**
|
|
33
|
+
* deserializeAws_restJson1DeleteEndpointCommand
|
|
34
|
+
*/
|
|
35
|
+
export declare const de_DeleteEndpointCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteEndpointCommandOutput>;
|
|
36
|
+
/**
|
|
37
|
+
* deserializeAws_restJson1ListEndpointsCommand
|
|
38
|
+
*/
|
|
39
|
+
export declare const de_ListEndpointsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListEndpointsCommandOutput>;
|
|
40
|
+
/**
|
|
41
|
+
* deserializeAws_restJson1ListOutpostsWithS3Command
|
|
42
|
+
*/
|
|
43
|
+
export declare const de_ListOutpostsWithS3Command: (output: __HttpResponse, context: __SerdeContext) => Promise<ListOutpostsWithS3CommandOutput>;
|
|
44
|
+
/**
|
|
45
|
+
* deserializeAws_restJson1ListSharedEndpointsCommand
|
|
46
|
+
*/
|
|
47
|
+
export declare const de_ListSharedEndpointsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListSharedEndpointsCommandOutput>;
|
|
@@ -23,43 +23,43 @@ import {
|
|
|
23
23
|
ListSharedEndpointsCommandInput,
|
|
24
24
|
ListSharedEndpointsCommandOutput,
|
|
25
25
|
} from "../commands/ListSharedEndpointsCommand";
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const se_CreateEndpointCommand: (
|
|
27
27
|
input: CreateEndpointCommandInput,
|
|
28
28
|
context: __SerdeContext
|
|
29
29
|
) => Promise<__HttpRequest>;
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const se_DeleteEndpointCommand: (
|
|
31
31
|
input: DeleteEndpointCommandInput,
|
|
32
32
|
context: __SerdeContext
|
|
33
33
|
) => Promise<__HttpRequest>;
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const se_ListEndpointsCommand: (
|
|
35
35
|
input: ListEndpointsCommandInput,
|
|
36
36
|
context: __SerdeContext
|
|
37
37
|
) => Promise<__HttpRequest>;
|
|
38
|
-
export declare const
|
|
38
|
+
export declare const se_ListOutpostsWithS3Command: (
|
|
39
39
|
input: ListOutpostsWithS3CommandInput,
|
|
40
40
|
context: __SerdeContext
|
|
41
41
|
) => Promise<__HttpRequest>;
|
|
42
|
-
export declare const
|
|
42
|
+
export declare const se_ListSharedEndpointsCommand: (
|
|
43
43
|
input: ListSharedEndpointsCommandInput,
|
|
44
44
|
context: __SerdeContext
|
|
45
45
|
) => Promise<__HttpRequest>;
|
|
46
|
-
export declare const
|
|
46
|
+
export declare const de_CreateEndpointCommand: (
|
|
47
47
|
output: __HttpResponse,
|
|
48
48
|
context: __SerdeContext
|
|
49
49
|
) => Promise<CreateEndpointCommandOutput>;
|
|
50
|
-
export declare const
|
|
50
|
+
export declare const de_DeleteEndpointCommand: (
|
|
51
51
|
output: __HttpResponse,
|
|
52
52
|
context: __SerdeContext
|
|
53
53
|
) => Promise<DeleteEndpointCommandOutput>;
|
|
54
|
-
export declare const
|
|
54
|
+
export declare const de_ListEndpointsCommand: (
|
|
55
55
|
output: __HttpResponse,
|
|
56
56
|
context: __SerdeContext
|
|
57
57
|
) => Promise<ListEndpointsCommandOutput>;
|
|
58
|
-
export declare const
|
|
58
|
+
export declare const de_ListOutpostsWithS3Command: (
|
|
59
59
|
output: __HttpResponse,
|
|
60
60
|
context: __SerdeContext
|
|
61
61
|
) => Promise<ListOutpostsWithS3CommandOutput>;
|
|
62
|
-
export declare const
|
|
62
|
+
export declare const de_ListSharedEndpointsCommand: (
|
|
63
63
|
output: __HttpResponse,
|
|
64
64
|
context: __SerdeContext
|
|
65
65
|
) => Promise<ListSharedEndpointsCommandOutput>;
|