@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.
@@ -36,10 +36,10 @@ class CreateEndpointCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1CreateEndpointCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_CreateEndpointCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1CreateEndpointCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_CreateEndpointCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.CreateEndpointCommand = CreateEndpointCommand;
@@ -36,10 +36,10 @@ class DeleteEndpointCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1DeleteEndpointCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_DeleteEndpointCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteEndpointCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_DeleteEndpointCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.DeleteEndpointCommand = DeleteEndpointCommand;
@@ -36,10 +36,10 @@ class ListEndpointsCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1ListEndpointsCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_ListEndpointsCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1ListEndpointsCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_ListEndpointsCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.ListEndpointsCommand = ListEndpointsCommand;
@@ -36,10 +36,10 @@ class ListOutpostsWithS3Command extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1ListOutpostsWithS3Command)(input, context);
39
+ return (0, Aws_restJson1_1.se_ListOutpostsWithS3Command)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1ListOutpostsWithS3Command)(output, context);
42
+ return (0, Aws_restJson1_1.de_ListOutpostsWithS3Command)(output, context);
43
43
  }
44
44
  }
45
45
  exports.ListOutpostsWithS3Command = ListOutpostsWithS3Command;
@@ -36,10 +36,10 @@ class ListSharedEndpointsCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1ListSharedEndpointsCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_ListSharedEndpointsCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1ListSharedEndpointsCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_ListSharedEndpointsCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.ListSharedEndpointsCommand = ListSharedEndpointsCommand;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1ListSharedEndpointsCommand = exports.deserializeAws_restJson1ListOutpostsWithS3Command = exports.deserializeAws_restJson1ListEndpointsCommand = exports.deserializeAws_restJson1DeleteEndpointCommand = exports.deserializeAws_restJson1CreateEndpointCommand = exports.serializeAws_restJson1ListSharedEndpointsCommand = exports.serializeAws_restJson1ListOutpostsWithS3Command = exports.serializeAws_restJson1ListEndpointsCommand = exports.serializeAws_restJson1DeleteEndpointCommand = exports.serializeAws_restJson1CreateEndpointCommand = void 0;
3
+ exports.de_ListSharedEndpointsCommand = exports.de_ListOutpostsWithS3Command = exports.de_ListEndpointsCommand = exports.de_DeleteEndpointCommand = exports.de_CreateEndpointCommand = exports.se_ListSharedEndpointsCommand = exports.se_ListOutpostsWithS3Command = exports.se_ListEndpointsCommand = exports.se_DeleteEndpointCommand = exports.se_CreateEndpointCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const S3OutpostsServiceException_1 = require("../models/S3OutpostsServiceException");
8
- const serializeAws_restJson1CreateEndpointCommand = async (input, context) => {
8
+ const se_CreateEndpointCommand = async (input, context) => {
9
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
10
  const headers = {
11
11
  "content-type": "application/json",
@@ -29,8 +29,8 @@ const serializeAws_restJson1CreateEndpointCommand = async (input, context) => {
29
29
  body,
30
30
  });
31
31
  };
32
- exports.serializeAws_restJson1CreateEndpointCommand = serializeAws_restJson1CreateEndpointCommand;
33
- const serializeAws_restJson1DeleteEndpointCommand = async (input, context) => {
32
+ exports.se_CreateEndpointCommand = se_CreateEndpointCommand;
33
+ const se_DeleteEndpointCommand = async (input, context) => {
34
34
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
35
  const headers = {};
36
36
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/DeleteEndpoint";
@@ -50,8 +50,8 @@ const serializeAws_restJson1DeleteEndpointCommand = async (input, context) => {
50
50
  body,
51
51
  });
52
52
  };
53
- exports.serializeAws_restJson1DeleteEndpointCommand = serializeAws_restJson1DeleteEndpointCommand;
54
- const serializeAws_restJson1ListEndpointsCommand = async (input, context) => {
53
+ exports.se_DeleteEndpointCommand = se_DeleteEndpointCommand;
54
+ const se_ListEndpointsCommand = async (input, context) => {
55
55
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
56
56
  const headers = {};
57
57
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListEndpoints";
@@ -71,8 +71,8 @@ const serializeAws_restJson1ListEndpointsCommand = async (input, context) => {
71
71
  body,
72
72
  });
73
73
  };
74
- exports.serializeAws_restJson1ListEndpointsCommand = serializeAws_restJson1ListEndpointsCommand;
75
- const serializeAws_restJson1ListOutpostsWithS3Command = async (input, context) => {
74
+ exports.se_ListEndpointsCommand = se_ListEndpointsCommand;
75
+ const se_ListOutpostsWithS3Command = async (input, context) => {
76
76
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
77
77
  const headers = {};
78
78
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListOutpostsWithS3";
@@ -92,8 +92,8 @@ const serializeAws_restJson1ListOutpostsWithS3Command = async (input, context) =
92
92
  body,
93
93
  });
94
94
  };
95
- exports.serializeAws_restJson1ListOutpostsWithS3Command = serializeAws_restJson1ListOutpostsWithS3Command;
96
- const serializeAws_restJson1ListSharedEndpointsCommand = async (input, context) => {
95
+ exports.se_ListOutpostsWithS3Command = se_ListOutpostsWithS3Command;
96
+ const se_ListSharedEndpointsCommand = async (input, context) => {
97
97
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
98
98
  const headers = {};
99
99
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListSharedEndpoints";
@@ -114,10 +114,10 @@ const serializeAws_restJson1ListSharedEndpointsCommand = async (input, context)
114
114
  body,
115
115
  });
116
116
  };
117
- exports.serializeAws_restJson1ListSharedEndpointsCommand = serializeAws_restJson1ListSharedEndpointsCommand;
118
- const deserializeAws_restJson1CreateEndpointCommand = async (output, context) => {
117
+ exports.se_ListSharedEndpointsCommand = se_ListSharedEndpointsCommand;
118
+ const de_CreateEndpointCommand = async (output, context) => {
119
119
  if (output.statusCode !== 200 && output.statusCode >= 300) {
120
- return deserializeAws_restJson1CreateEndpointCommandError(output, context);
120
+ return de_CreateEndpointCommandError(output, context);
121
121
  }
122
122
  const contents = map({
123
123
  $metadata: deserializeMetadata(output),
@@ -128,8 +128,8 @@ const deserializeAws_restJson1CreateEndpointCommand = async (output, context) =>
128
128
  }
129
129
  return contents;
130
130
  };
131
- exports.deserializeAws_restJson1CreateEndpointCommand = deserializeAws_restJson1CreateEndpointCommand;
132
- const deserializeAws_restJson1CreateEndpointCommandError = async (output, context) => {
131
+ exports.de_CreateEndpointCommand = de_CreateEndpointCommand;
132
+ const de_CreateEndpointCommandError = async (output, context) => {
133
133
  const parsedOutput = {
134
134
  ...output,
135
135
  body: await parseErrorBody(output.body, context),
@@ -138,25 +138,25 @@ const deserializeAws_restJson1CreateEndpointCommandError = async (output, contex
138
138
  switch (errorCode) {
139
139
  case "AccessDeniedException":
140
140
  case "com.amazonaws.s3outposts#AccessDeniedException":
141
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
141
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
142
142
  case "ConflictException":
143
143
  case "com.amazonaws.s3outposts#ConflictException":
144
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
144
+ throw await de_ConflictExceptionRes(parsedOutput, context);
145
145
  case "InternalServerException":
146
146
  case "com.amazonaws.s3outposts#InternalServerException":
147
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
147
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
148
148
  case "OutpostOfflineException":
149
149
  case "com.amazonaws.s3outposts#OutpostOfflineException":
150
- throw await deserializeAws_restJson1OutpostOfflineExceptionResponse(parsedOutput, context);
150
+ throw await de_OutpostOfflineExceptionRes(parsedOutput, context);
151
151
  case "ResourceNotFoundException":
152
152
  case "com.amazonaws.s3outposts#ResourceNotFoundException":
153
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
153
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
154
154
  case "ThrottlingException":
155
155
  case "com.amazonaws.s3outposts#ThrottlingException":
156
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
156
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
157
157
  case "ValidationException":
158
158
  case "com.amazonaws.s3outposts#ValidationException":
159
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
159
+ throw await de_ValidationExceptionRes(parsedOutput, context);
160
160
  default:
161
161
  const parsedBody = parsedOutput.body;
162
162
  (0, smithy_client_1.throwDefaultError)({
@@ -167,9 +167,9 @@ const deserializeAws_restJson1CreateEndpointCommandError = async (output, contex
167
167
  });
168
168
  }
169
169
  };
170
- const deserializeAws_restJson1DeleteEndpointCommand = async (output, context) => {
170
+ const de_DeleteEndpointCommand = async (output, context) => {
171
171
  if (output.statusCode !== 200 && output.statusCode >= 300) {
172
- return deserializeAws_restJson1DeleteEndpointCommandError(output, context);
172
+ return de_DeleteEndpointCommandError(output, context);
173
173
  }
174
174
  const contents = map({
175
175
  $metadata: deserializeMetadata(output),
@@ -177,8 +177,8 @@ const deserializeAws_restJson1DeleteEndpointCommand = async (output, context) =>
177
177
  await collectBody(output.body, context);
178
178
  return contents;
179
179
  };
180
- exports.deserializeAws_restJson1DeleteEndpointCommand = deserializeAws_restJson1DeleteEndpointCommand;
181
- const deserializeAws_restJson1DeleteEndpointCommandError = async (output, context) => {
180
+ exports.de_DeleteEndpointCommand = de_DeleteEndpointCommand;
181
+ const de_DeleteEndpointCommandError = async (output, context) => {
182
182
  const parsedOutput = {
183
183
  ...output,
184
184
  body: await parseErrorBody(output.body, context),
@@ -187,22 +187,22 @@ const deserializeAws_restJson1DeleteEndpointCommandError = async (output, contex
187
187
  switch (errorCode) {
188
188
  case "AccessDeniedException":
189
189
  case "com.amazonaws.s3outposts#AccessDeniedException":
190
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
190
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
191
191
  case "InternalServerException":
192
192
  case "com.amazonaws.s3outposts#InternalServerException":
193
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
193
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
194
194
  case "OutpostOfflineException":
195
195
  case "com.amazonaws.s3outposts#OutpostOfflineException":
196
- throw await deserializeAws_restJson1OutpostOfflineExceptionResponse(parsedOutput, context);
196
+ throw await de_OutpostOfflineExceptionRes(parsedOutput, context);
197
197
  case "ResourceNotFoundException":
198
198
  case "com.amazonaws.s3outposts#ResourceNotFoundException":
199
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
199
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
200
200
  case "ThrottlingException":
201
201
  case "com.amazonaws.s3outposts#ThrottlingException":
202
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
202
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
203
203
  case "ValidationException":
204
204
  case "com.amazonaws.s3outposts#ValidationException":
205
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
205
+ throw await de_ValidationExceptionRes(parsedOutput, context);
206
206
  default:
207
207
  const parsedBody = parsedOutput.body;
208
208
  (0, smithy_client_1.throwDefaultError)({
@@ -213,24 +213,24 @@ const deserializeAws_restJson1DeleteEndpointCommandError = async (output, contex
213
213
  });
214
214
  }
215
215
  };
216
- const deserializeAws_restJson1ListEndpointsCommand = async (output, context) => {
216
+ const de_ListEndpointsCommand = async (output, context) => {
217
217
  if (output.statusCode !== 200 && output.statusCode >= 300) {
218
- return deserializeAws_restJson1ListEndpointsCommandError(output, context);
218
+ return de_ListEndpointsCommandError(output, context);
219
219
  }
220
220
  const contents = map({
221
221
  $metadata: deserializeMetadata(output),
222
222
  });
223
223
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
224
224
  if (data.Endpoints != null) {
225
- contents.Endpoints = deserializeAws_restJson1Endpoints(data.Endpoints, context);
225
+ contents.Endpoints = de_Endpoints(data.Endpoints, context);
226
226
  }
227
227
  if (data.NextToken != null) {
228
228
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
229
229
  }
230
230
  return contents;
231
231
  };
232
- exports.deserializeAws_restJson1ListEndpointsCommand = deserializeAws_restJson1ListEndpointsCommand;
233
- const deserializeAws_restJson1ListEndpointsCommandError = async (output, context) => {
232
+ exports.de_ListEndpointsCommand = de_ListEndpointsCommand;
233
+ const de_ListEndpointsCommandError = async (output, context) => {
234
234
  const parsedOutput = {
235
235
  ...output,
236
236
  body: await parseErrorBody(output.body, context),
@@ -239,19 +239,19 @@ const deserializeAws_restJson1ListEndpointsCommandError = async (output, context
239
239
  switch (errorCode) {
240
240
  case "AccessDeniedException":
241
241
  case "com.amazonaws.s3outposts#AccessDeniedException":
242
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
242
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
243
243
  case "InternalServerException":
244
244
  case "com.amazonaws.s3outposts#InternalServerException":
245
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
245
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
246
246
  case "ResourceNotFoundException":
247
247
  case "com.amazonaws.s3outposts#ResourceNotFoundException":
248
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
248
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
249
249
  case "ThrottlingException":
250
250
  case "com.amazonaws.s3outposts#ThrottlingException":
251
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
251
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
252
252
  case "ValidationException":
253
253
  case "com.amazonaws.s3outposts#ValidationException":
254
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
254
+ throw await de_ValidationExceptionRes(parsedOutput, context);
255
255
  default:
256
256
  const parsedBody = parsedOutput.body;
257
257
  (0, smithy_client_1.throwDefaultError)({
@@ -262,9 +262,9 @@ const deserializeAws_restJson1ListEndpointsCommandError = async (output, context
262
262
  });
263
263
  }
264
264
  };
265
- const deserializeAws_restJson1ListOutpostsWithS3Command = async (output, context) => {
265
+ const de_ListOutpostsWithS3Command = async (output, context) => {
266
266
  if (output.statusCode !== 200 && output.statusCode >= 300) {
267
- return deserializeAws_restJson1ListOutpostsWithS3CommandError(output, context);
267
+ return de_ListOutpostsWithS3CommandError(output, context);
268
268
  }
269
269
  const contents = map({
270
270
  $metadata: deserializeMetadata(output),
@@ -274,12 +274,12 @@ const deserializeAws_restJson1ListOutpostsWithS3Command = async (output, context
274
274
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
275
275
  }
276
276
  if (data.Outposts != null) {
277
- contents.Outposts = deserializeAws_restJson1Outposts(data.Outposts, context);
277
+ contents.Outposts = de_Outposts(data.Outposts, context);
278
278
  }
279
279
  return contents;
280
280
  };
281
- exports.deserializeAws_restJson1ListOutpostsWithS3Command = deserializeAws_restJson1ListOutpostsWithS3Command;
282
- const deserializeAws_restJson1ListOutpostsWithS3CommandError = async (output, context) => {
281
+ exports.de_ListOutpostsWithS3Command = de_ListOutpostsWithS3Command;
282
+ const de_ListOutpostsWithS3CommandError = async (output, context) => {
283
283
  const parsedOutput = {
284
284
  ...output,
285
285
  body: await parseErrorBody(output.body, context),
@@ -288,16 +288,16 @@ const deserializeAws_restJson1ListOutpostsWithS3CommandError = async (output, co
288
288
  switch (errorCode) {
289
289
  case "AccessDeniedException":
290
290
  case "com.amazonaws.s3outposts#AccessDeniedException":
291
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
291
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
292
292
  case "InternalServerException":
293
293
  case "com.amazonaws.s3outposts#InternalServerException":
294
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
294
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
295
295
  case "ThrottlingException":
296
296
  case "com.amazonaws.s3outposts#ThrottlingException":
297
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
297
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
298
298
  case "ValidationException":
299
299
  case "com.amazonaws.s3outposts#ValidationException":
300
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
300
+ throw await de_ValidationExceptionRes(parsedOutput, context);
301
301
  default:
302
302
  const parsedBody = parsedOutput.body;
303
303
  (0, smithy_client_1.throwDefaultError)({
@@ -308,24 +308,24 @@ const deserializeAws_restJson1ListOutpostsWithS3CommandError = async (output, co
308
308
  });
309
309
  }
310
310
  };
311
- const deserializeAws_restJson1ListSharedEndpointsCommand = async (output, context) => {
311
+ const de_ListSharedEndpointsCommand = async (output, context) => {
312
312
  if (output.statusCode !== 200 && output.statusCode >= 300) {
313
- return deserializeAws_restJson1ListSharedEndpointsCommandError(output, context);
313
+ return de_ListSharedEndpointsCommandError(output, context);
314
314
  }
315
315
  const contents = map({
316
316
  $metadata: deserializeMetadata(output),
317
317
  });
318
318
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
319
319
  if (data.Endpoints != null) {
320
- contents.Endpoints = deserializeAws_restJson1Endpoints(data.Endpoints, context);
320
+ contents.Endpoints = de_Endpoints(data.Endpoints, context);
321
321
  }
322
322
  if (data.NextToken != null) {
323
323
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
324
324
  }
325
325
  return contents;
326
326
  };
327
- exports.deserializeAws_restJson1ListSharedEndpointsCommand = deserializeAws_restJson1ListSharedEndpointsCommand;
328
- const deserializeAws_restJson1ListSharedEndpointsCommandError = async (output, context) => {
327
+ exports.de_ListSharedEndpointsCommand = de_ListSharedEndpointsCommand;
328
+ const de_ListSharedEndpointsCommandError = async (output, context) => {
329
329
  const parsedOutput = {
330
330
  ...output,
331
331
  body: await parseErrorBody(output.body, context),
@@ -334,19 +334,19 @@ const deserializeAws_restJson1ListSharedEndpointsCommandError = async (output, c
334
334
  switch (errorCode) {
335
335
  case "AccessDeniedException":
336
336
  case "com.amazonaws.s3outposts#AccessDeniedException":
337
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
337
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
338
338
  case "InternalServerException":
339
339
  case "com.amazonaws.s3outposts#InternalServerException":
340
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
340
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
341
341
  case "ResourceNotFoundException":
342
342
  case "com.amazonaws.s3outposts#ResourceNotFoundException":
343
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
343
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
344
344
  case "ThrottlingException":
345
345
  case "com.amazonaws.s3outposts#ThrottlingException":
346
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
346
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
347
347
  case "ValidationException":
348
348
  case "com.amazonaws.s3outposts#ValidationException":
349
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
349
+ throw await de_ValidationExceptionRes(parsedOutput, context);
350
350
  default:
351
351
  const parsedBody = parsedOutput.body;
352
352
  (0, smithy_client_1.throwDefaultError)({
@@ -358,7 +358,7 @@ const deserializeAws_restJson1ListSharedEndpointsCommandError = async (output, c
358
358
  }
359
359
  };
360
360
  const map = smithy_client_1.map;
361
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
361
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
362
362
  const contents = map({});
363
363
  const data = parsedOutput.body;
364
364
  if (data.Message != null) {
@@ -370,7 +370,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
370
370
  });
371
371
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
372
372
  };
373
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
373
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
374
374
  const contents = map({});
375
375
  const data = parsedOutput.body;
376
376
  if (data.Message != null) {
@@ -382,7 +382,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
382
382
  });
383
383
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
384
384
  };
385
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
385
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
386
386
  const contents = map({});
387
387
  const data = parsedOutput.body;
388
388
  if (data.Message != null) {
@@ -394,7 +394,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
394
394
  });
395
395
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
396
396
  };
397
- const deserializeAws_restJson1OutpostOfflineExceptionResponse = async (parsedOutput, context) => {
397
+ const de_OutpostOfflineExceptionRes = async (parsedOutput, context) => {
398
398
  const contents = map({});
399
399
  const data = parsedOutput.body;
400
400
  if (data.Message != null) {
@@ -406,7 +406,7 @@ const deserializeAws_restJson1OutpostOfflineExceptionResponse = async (parsedOut
406
406
  });
407
407
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
408
408
  };
409
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
409
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
410
410
  const contents = map({});
411
411
  const data = parsedOutput.body;
412
412
  if (data.Message != null) {
@@ -418,7 +418,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
418
418
  });
419
419
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
420
420
  };
421
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
421
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
422
422
  const contents = map({});
423
423
  const data = parsedOutput.body;
424
424
  if (data.Message != null) {
@@ -430,7 +430,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
430
430
  });
431
431
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
432
432
  };
433
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
433
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
434
434
  const contents = map({});
435
435
  const data = parsedOutput.body;
436
436
  if (data.Message != null) {
@@ -442,7 +442,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
442
442
  });
443
443
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
444
444
  };
445
- const deserializeAws_restJson1Endpoint = (output, context) => {
445
+ const de_Endpoint = (output, context) => {
446
446
  return {
447
447
  AccessType: (0, smithy_client_1.expectString)(output.AccessType),
448
448
  CidrBlock: (0, smithy_client_1.expectString)(output.CidrBlock),
@@ -451,10 +451,8 @@ const deserializeAws_restJson1Endpoint = (output, context) => {
451
451
  : undefined,
452
452
  CustomerOwnedIpv4Pool: (0, smithy_client_1.expectString)(output.CustomerOwnedIpv4Pool),
453
453
  EndpointArn: (0, smithy_client_1.expectString)(output.EndpointArn),
454
- FailedReason: output.FailedReason != null ? deserializeAws_restJson1FailedReason(output.FailedReason, context) : undefined,
455
- NetworkInterfaces: output.NetworkInterfaces != null
456
- ? deserializeAws_restJson1NetworkInterfaces(output.NetworkInterfaces, context)
457
- : undefined,
454
+ FailedReason: output.FailedReason != null ? de_FailedReason(output.FailedReason, context) : undefined,
455
+ NetworkInterfaces: output.NetworkInterfaces != null ? de_NetworkInterfaces(output.NetworkInterfaces, context) : undefined,
458
456
  OutpostsId: (0, smithy_client_1.expectString)(output.OutpostsId),
459
457
  SecurityGroupId: (0, smithy_client_1.expectString)(output.SecurityGroupId),
460
458
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -462,40 +460,40 @@ const deserializeAws_restJson1Endpoint = (output, context) => {
462
460
  VpcId: (0, smithy_client_1.expectString)(output.VpcId),
463
461
  };
464
462
  };
465
- const deserializeAws_restJson1Endpoints = (output, context) => {
463
+ const de_Endpoints = (output, context) => {
466
464
  const retVal = (output || [])
467
465
  .filter((e) => e != null)
468
466
  .map((entry) => {
469
467
  if (entry === null) {
470
468
  return null;
471
469
  }
472
- return deserializeAws_restJson1Endpoint(entry, context);
470
+ return de_Endpoint(entry, context);
473
471
  });
474
472
  return retVal;
475
473
  };
476
- const deserializeAws_restJson1FailedReason = (output, context) => {
474
+ const de_FailedReason = (output, context) => {
477
475
  return {
478
476
  ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
479
477
  Message: (0, smithy_client_1.expectString)(output.Message),
480
478
  };
481
479
  };
482
- const deserializeAws_restJson1NetworkInterface = (output, context) => {
480
+ const de_NetworkInterface = (output, context) => {
483
481
  return {
484
482
  NetworkInterfaceId: (0, smithy_client_1.expectString)(output.NetworkInterfaceId),
485
483
  };
486
484
  };
487
- const deserializeAws_restJson1NetworkInterfaces = (output, context) => {
485
+ const de_NetworkInterfaces = (output, context) => {
488
486
  const retVal = (output || [])
489
487
  .filter((e) => e != null)
490
488
  .map((entry) => {
491
489
  if (entry === null) {
492
490
  return null;
493
491
  }
494
- return deserializeAws_restJson1NetworkInterface(entry, context);
492
+ return de_NetworkInterface(entry, context);
495
493
  });
496
494
  return retVal;
497
495
  };
498
- const deserializeAws_restJson1Outpost = (output, context) => {
496
+ const de_Outpost = (output, context) => {
499
497
  return {
500
498
  CapacityInBytes: (0, smithy_client_1.expectLong)(output.CapacityInBytes),
501
499
  OutpostArn: (0, smithy_client_1.expectString)(output.OutpostArn),
@@ -503,14 +501,14 @@ const deserializeAws_restJson1Outpost = (output, context) => {
503
501
  OwnerId: (0, smithy_client_1.expectString)(output.OwnerId),
504
502
  };
505
503
  };
506
- const deserializeAws_restJson1Outposts = (output, context) => {
504
+ const de_Outposts = (output, context) => {
507
505
  const retVal = (output || [])
508
506
  .filter((e) => e != null)
509
507
  .map((entry) => {
510
508
  if (entry === null) {
511
509
  return null;
512
510
  }
513
- return deserializeAws_restJson1Outpost(entry, context);
511
+ return de_Outpost(entry, context);
514
512
  });
515
513
  return retVal;
516
514
  };
@@ -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 { deserializeAws_restJson1CreateEndpointCommand, serializeAws_restJson1CreateEndpointCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_CreateEndpointCommand, se_CreateEndpointCommand } from "../protocols/Aws_restJson1";
5
5
  export class CreateEndpointCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class CreateEndpointCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1CreateEndpointCommand(input, context);
36
+ return se_CreateEndpointCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1CreateEndpointCommand(output, context);
39
+ return de_CreateEndpointCommand(output, context);
40
40
  }
41
41
  }
@@ -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 { deserializeAws_restJson1DeleteEndpointCommand, serializeAws_restJson1DeleteEndpointCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_DeleteEndpointCommand, se_DeleteEndpointCommand } from "../protocols/Aws_restJson1";
5
5
  export class DeleteEndpointCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class DeleteEndpointCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1DeleteEndpointCommand(input, context);
36
+ return se_DeleteEndpointCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1DeleteEndpointCommand(output, context);
39
+ return de_DeleteEndpointCommand(output, context);
40
40
  }
41
41
  }
@@ -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 { deserializeAws_restJson1ListEndpointsCommand, serializeAws_restJson1ListEndpointsCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_ListEndpointsCommand, se_ListEndpointsCommand } from "../protocols/Aws_restJson1";
5
5
  export class ListEndpointsCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class ListEndpointsCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1ListEndpointsCommand(input, context);
36
+ return se_ListEndpointsCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1ListEndpointsCommand(output, context);
39
+ return de_ListEndpointsCommand(output, context);
40
40
  }
41
41
  }
@@ -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 { deserializeAws_restJson1ListOutpostsWithS3Command, serializeAws_restJson1ListOutpostsWithS3Command, } from "../protocols/Aws_restJson1";
4
+ import { de_ListOutpostsWithS3Command, se_ListOutpostsWithS3Command } from "../protocols/Aws_restJson1";
5
5
  export class ListOutpostsWithS3Command extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class ListOutpostsWithS3Command extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1ListOutpostsWithS3Command(input, context);
36
+ return se_ListOutpostsWithS3Command(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1ListOutpostsWithS3Command(output, context);
39
+ return de_ListOutpostsWithS3Command(output, context);
40
40
  }
41
41
  }