@aws-sdk/client-s3outposts 3.51.0 → 3.54.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/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/S3OutpostsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +72 -1
- package/dist-cjs/protocols/Aws_restJson1.js +61 -145
- package/dist-es/index.js +1 -0
- package/dist-es/models/S3OutpostsServiceException.js +12 -0
- package/dist-es/models/models_0.js +67 -1
- package/dist-es/protocols/Aws_restJson1.js +89 -163
- package/dist-types/S3OutpostsClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/S3OutpostsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +37 -16
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/S3OutpostsClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/S3OutpostsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +27 -16
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
5
|
+
import { S3OutpostsServiceException as __BaseException } from "../models/S3OutpostsServiceException";
|
|
4
6
|
export var serializeAws_restJson1CreateEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -98,16 +100,16 @@ export var deserializeAws_restJson1CreateEndpointCommand = function (output, con
|
|
|
98
100
|
});
|
|
99
101
|
}); };
|
|
100
102
|
var deserializeAws_restJson1CreateEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
101
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
102
|
-
var
|
|
103
|
-
return __generator(this, function (
|
|
104
|
-
switch (
|
|
103
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
104
|
+
var _c;
|
|
105
|
+
return __generator(this, function (_d) {
|
|
106
|
+
switch (_d.label) {
|
|
105
107
|
case 0:
|
|
106
108
|
_a = [__assign({}, output)];
|
|
107
|
-
|
|
109
|
+
_c = {};
|
|
108
110
|
return [4, parseBody(output.body, context)];
|
|
109
111
|
case 1:
|
|
110
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
112
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
111
113
|
errorCode = "UnknownError";
|
|
112
114
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
113
115
|
_b = errorCode;
|
|
@@ -124,46 +126,24 @@ var deserializeAws_restJson1CreateEndpointCommandError = function (output, conte
|
|
|
124
126
|
case "com.amazonaws.s3outposts#ValidationException": return [3, 10];
|
|
125
127
|
}
|
|
126
128
|
return [3, 12];
|
|
127
|
-
case 2:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
case
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
case 4
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
case
|
|
137
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
138
|
-
return [3, 13];
|
|
139
|
-
case 6:
|
|
140
|
-
_e = [{}];
|
|
141
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
142
|
-
case 7:
|
|
143
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
144
|
-
return [3, 13];
|
|
145
|
-
case 8:
|
|
146
|
-
_f = [{}];
|
|
147
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
148
|
-
case 9:
|
|
149
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
150
|
-
return [3, 13];
|
|
151
|
-
case 10:
|
|
152
|
-
_g = [{}];
|
|
153
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
154
|
-
case 11:
|
|
155
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
156
|
-
return [3, 13];
|
|
129
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
130
|
+
case 3: throw _d.sent();
|
|
131
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
132
|
+
case 5: throw _d.sent();
|
|
133
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
134
|
+
case 7: throw _d.sent();
|
|
135
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
136
|
+
case 9: throw _d.sent();
|
|
137
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
138
|
+
case 11: throw _d.sent();
|
|
157
139
|
case 12:
|
|
158
140
|
parsedBody = parsedOutput.body;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
response
|
|
165
|
-
delete response.Message;
|
|
166
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
141
|
+
response = new __BaseException({
|
|
142
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
143
|
+
$fault: "client",
|
|
144
|
+
$metadata: deserializeMetadata(output),
|
|
145
|
+
});
|
|
146
|
+
throw __decorateServiceException(response, parsedBody);
|
|
167
147
|
}
|
|
168
148
|
});
|
|
169
149
|
}); };
|
|
@@ -186,16 +166,16 @@ export var deserializeAws_restJson1DeleteEndpointCommand = function (output, con
|
|
|
186
166
|
});
|
|
187
167
|
}); };
|
|
188
168
|
var deserializeAws_restJson1DeleteEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
189
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
190
|
-
var
|
|
191
|
-
return __generator(this, function (
|
|
192
|
-
switch (
|
|
169
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
170
|
+
var _c;
|
|
171
|
+
return __generator(this, function (_d) {
|
|
172
|
+
switch (_d.label) {
|
|
193
173
|
case 0:
|
|
194
174
|
_a = [__assign({}, output)];
|
|
195
|
-
|
|
175
|
+
_c = {};
|
|
196
176
|
return [4, parseBody(output.body, context)];
|
|
197
177
|
case 1:
|
|
198
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
178
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
199
179
|
errorCode = "UnknownError";
|
|
200
180
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
201
181
|
_b = errorCode;
|
|
@@ -210,40 +190,22 @@ var deserializeAws_restJson1DeleteEndpointCommandError = function (output, conte
|
|
|
210
190
|
case "com.amazonaws.s3outposts#ValidationException": return [3, 8];
|
|
211
191
|
}
|
|
212
192
|
return [3, 10];
|
|
213
|
-
case 2:
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
case
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
case 4
|
|
220
|
-
|
|
221
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
222
|
-
case 5:
|
|
223
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
224
|
-
return [3, 11];
|
|
225
|
-
case 6:
|
|
226
|
-
_e = [{}];
|
|
227
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
228
|
-
case 7:
|
|
229
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
230
|
-
return [3, 11];
|
|
231
|
-
case 8:
|
|
232
|
-
_f = [{}];
|
|
233
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
234
|
-
case 9:
|
|
235
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
236
|
-
return [3, 11];
|
|
193
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
194
|
+
case 3: throw _d.sent();
|
|
195
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
196
|
+
case 5: throw _d.sent();
|
|
197
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
198
|
+
case 7: throw _d.sent();
|
|
199
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
200
|
+
case 9: throw _d.sent();
|
|
237
201
|
case 10:
|
|
238
202
|
parsedBody = parsedOutput.body;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
response
|
|
245
|
-
delete response.Message;
|
|
246
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
203
|
+
response = new __BaseException({
|
|
204
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
205
|
+
$fault: "client",
|
|
206
|
+
$metadata: deserializeMetadata(output),
|
|
207
|
+
});
|
|
208
|
+
throw __decorateServiceException(response, parsedBody);
|
|
247
209
|
}
|
|
248
210
|
});
|
|
249
211
|
}); };
|
|
@@ -276,16 +238,16 @@ export var deserializeAws_restJson1ListEndpointsCommand = function (output, cont
|
|
|
276
238
|
});
|
|
277
239
|
}); };
|
|
278
240
|
var deserializeAws_restJson1ListEndpointsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
279
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
280
|
-
var
|
|
281
|
-
return __generator(this, function (
|
|
282
|
-
switch (
|
|
241
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
242
|
+
var _c;
|
|
243
|
+
return __generator(this, function (_d) {
|
|
244
|
+
switch (_d.label) {
|
|
283
245
|
case 0:
|
|
284
246
|
_a = [__assign({}, output)];
|
|
285
|
-
|
|
247
|
+
_c = {};
|
|
286
248
|
return [4, parseBody(output.body, context)];
|
|
287
249
|
case 1:
|
|
288
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
250
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
289
251
|
errorCode = "UnknownError";
|
|
290
252
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
291
253
|
_b = errorCode;
|
|
@@ -300,121 +262,83 @@ var deserializeAws_restJson1ListEndpointsCommandError = function (output, contex
|
|
|
300
262
|
case "com.amazonaws.s3outposts#ValidationException": return [3, 8];
|
|
301
263
|
}
|
|
302
264
|
return [3, 10];
|
|
303
|
-
case 2:
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
case
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
case 4
|
|
310
|
-
|
|
311
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
312
|
-
case 5:
|
|
313
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
314
|
-
return [3, 11];
|
|
315
|
-
case 6:
|
|
316
|
-
_e = [{}];
|
|
317
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
318
|
-
case 7:
|
|
319
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
320
|
-
return [3, 11];
|
|
321
|
-
case 8:
|
|
322
|
-
_f = [{}];
|
|
323
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
324
|
-
case 9:
|
|
325
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
326
|
-
return [3, 11];
|
|
265
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
266
|
+
case 3: throw _d.sent();
|
|
267
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
268
|
+
case 5: throw _d.sent();
|
|
269
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
270
|
+
case 7: throw _d.sent();
|
|
271
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
272
|
+
case 9: throw _d.sent();
|
|
327
273
|
case 10:
|
|
328
274
|
parsedBody = parsedOutput.body;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
response
|
|
335
|
-
delete response.Message;
|
|
336
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
275
|
+
response = new __BaseException({
|
|
276
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
277
|
+
$fault: "client",
|
|
278
|
+
$metadata: deserializeMetadata(output),
|
|
279
|
+
});
|
|
280
|
+
throw __decorateServiceException(response, parsedBody);
|
|
337
281
|
}
|
|
338
282
|
});
|
|
339
283
|
}); };
|
|
340
284
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
341
|
-
var contents, data;
|
|
285
|
+
var contents, data, exception;
|
|
342
286
|
return __generator(this, function (_a) {
|
|
343
|
-
contents = {
|
|
344
|
-
name: "AccessDeniedException",
|
|
345
|
-
$fault: "client",
|
|
346
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
347
|
-
Message: undefined,
|
|
348
|
-
};
|
|
287
|
+
contents = {};
|
|
349
288
|
data = parsedOutput.body;
|
|
350
289
|
if (data.Message !== undefined && data.Message !== null) {
|
|
351
290
|
contents.Message = __expectString(data.Message);
|
|
352
291
|
}
|
|
353
|
-
|
|
292
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
293
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
354
294
|
});
|
|
355
295
|
}); };
|
|
356
296
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
357
|
-
var contents, data;
|
|
297
|
+
var contents, data, exception;
|
|
358
298
|
return __generator(this, function (_a) {
|
|
359
|
-
contents = {
|
|
360
|
-
name: "ConflictException",
|
|
361
|
-
$fault: "client",
|
|
362
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
363
|
-
Message: undefined,
|
|
364
|
-
};
|
|
299
|
+
contents = {};
|
|
365
300
|
data = parsedOutput.body;
|
|
366
301
|
if (data.Message !== undefined && data.Message !== null) {
|
|
367
302
|
contents.Message = __expectString(data.Message);
|
|
368
303
|
}
|
|
369
|
-
|
|
304
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
305
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
370
306
|
});
|
|
371
307
|
}); };
|
|
372
308
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
373
|
-
var contents, data;
|
|
309
|
+
var contents, data, exception;
|
|
374
310
|
return __generator(this, function (_a) {
|
|
375
|
-
contents = {
|
|
376
|
-
name: "InternalServerException",
|
|
377
|
-
$fault: "server",
|
|
378
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
379
|
-
Message: undefined,
|
|
380
|
-
};
|
|
311
|
+
contents = {};
|
|
381
312
|
data = parsedOutput.body;
|
|
382
313
|
if (data.Message !== undefined && data.Message !== null) {
|
|
383
314
|
contents.Message = __expectString(data.Message);
|
|
384
315
|
}
|
|
385
|
-
|
|
316
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
317
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
386
318
|
});
|
|
387
319
|
}); };
|
|
388
320
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
389
|
-
var contents, data;
|
|
321
|
+
var contents, data, exception;
|
|
390
322
|
return __generator(this, function (_a) {
|
|
391
|
-
contents = {
|
|
392
|
-
name: "ResourceNotFoundException",
|
|
393
|
-
$fault: "client",
|
|
394
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
395
|
-
Message: undefined,
|
|
396
|
-
};
|
|
323
|
+
contents = {};
|
|
397
324
|
data = parsedOutput.body;
|
|
398
325
|
if (data.Message !== undefined && data.Message !== null) {
|
|
399
326
|
contents.Message = __expectString(data.Message);
|
|
400
327
|
}
|
|
401
|
-
|
|
328
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
329
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
402
330
|
});
|
|
403
331
|
}); };
|
|
404
332
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
405
|
-
var contents, data;
|
|
333
|
+
var contents, data, exception;
|
|
406
334
|
return __generator(this, function (_a) {
|
|
407
|
-
contents = {
|
|
408
|
-
name: "ValidationException",
|
|
409
|
-
$fault: "client",
|
|
410
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
411
|
-
Message: undefined,
|
|
412
|
-
};
|
|
335
|
+
contents = {};
|
|
413
336
|
data = parsedOutput.body;
|
|
414
337
|
if (data.Message !== undefined && data.Message !== null) {
|
|
415
338
|
contents.Message = __expectString(data.Message);
|
|
416
339
|
}
|
|
417
|
-
|
|
340
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
341
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
418
342
|
});
|
|
419
343
|
}); };
|
|
420
344
|
var deserializeAws_restJson1Endpoint = function (output, context) {
|
|
@@ -437,7 +361,7 @@ var deserializeAws_restJson1Endpoint = function (output, context) {
|
|
|
437
361
|
};
|
|
438
362
|
};
|
|
439
363
|
var deserializeAws_restJson1Endpoints = function (output, context) {
|
|
440
|
-
|
|
364
|
+
var retVal = (output || [])
|
|
441
365
|
.filter(function (e) { return e != null; })
|
|
442
366
|
.map(function (entry) {
|
|
443
367
|
if (entry === null) {
|
|
@@ -445,6 +369,7 @@ var deserializeAws_restJson1Endpoints = function (output, context) {
|
|
|
445
369
|
}
|
|
446
370
|
return deserializeAws_restJson1Endpoint(entry, context);
|
|
447
371
|
});
|
|
372
|
+
return retVal;
|
|
448
373
|
};
|
|
449
374
|
var deserializeAws_restJson1NetworkInterface = function (output, context) {
|
|
450
375
|
return {
|
|
@@ -452,7 +377,7 @@ var deserializeAws_restJson1NetworkInterface = function (output, context) {
|
|
|
452
377
|
};
|
|
453
378
|
};
|
|
454
379
|
var deserializeAws_restJson1NetworkInterfaces = function (output, context) {
|
|
455
|
-
|
|
380
|
+
var retVal = (output || [])
|
|
456
381
|
.filter(function (e) { return e != null; })
|
|
457
382
|
.map(function (entry) {
|
|
458
383
|
if (entry === null) {
|
|
@@ -460,6 +385,7 @@ var deserializeAws_restJson1NetworkInterfaces = function (output, context) {
|
|
|
460
385
|
}
|
|
461
386
|
return deserializeAws_restJson1NetworkInterface(entry, context);
|
|
462
387
|
});
|
|
388
|
+
return retVal;
|
|
463
389
|
};
|
|
464
390
|
var deserializeMetadata = function (output) {
|
|
465
391
|
var _a;
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { CreateEndpointCommandInput, CreateEndpointCommandOutput } from "./commands/CreateEndpointCommand";
|
|
10
10
|
import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "./commands/DeleteEndpointCommand";
|
|
11
11
|
import { ListEndpointsCommandInput, ListEndpointsCommandOutput } from "./commands/ListEndpointsCommand";
|
|
@@ -31,7 +31,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
31
31
|
* A function that can calculate the length of a request body.
|
|
32
32
|
* @internal
|
|
33
33
|
*/
|
|
34
|
-
bodyLengthChecker?:
|
|
34
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
35
35
|
/**
|
|
36
36
|
* A function that converts a stream into an array of bytes.
|
|
37
37
|
* @internal
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from S3Outposts service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class S3OutpostsServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { S3OutpostsServiceException as __BaseException } from "./S3OutpostsServiceException";
|
|
2
3
|
/**
|
|
3
4
|
* <p>Access was denied for this action.</p>
|
|
4
5
|
*/
|
|
5
|
-
export
|
|
6
|
-
name: "AccessDeniedException";
|
|
7
|
-
$fault: "client";
|
|
6
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
7
|
+
readonly name: "AccessDeniedException";
|
|
8
|
+
readonly $fault: "client";
|
|
8
9
|
Message?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
9
14
|
}
|
|
10
15
|
/**
|
|
11
16
|
* <p>There was a conflict with this action, and it could not be completed.</p>
|
|
12
17
|
*/
|
|
13
|
-
export
|
|
14
|
-
name: "ConflictException";
|
|
15
|
-
$fault: "client";
|
|
18
|
+
export declare class ConflictException extends __BaseException {
|
|
19
|
+
readonly name: "ConflictException";
|
|
20
|
+
readonly $fault: "client";
|
|
16
21
|
Message?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
17
26
|
}
|
|
18
27
|
export declare enum EndpointAccessType {
|
|
19
28
|
CUSTOMER_OWNED_IP = "CustomerOwnedIp",
|
|
@@ -66,26 +75,38 @@ export declare namespace CreateEndpointResult {
|
|
|
66
75
|
/**
|
|
67
76
|
* <p>There was an exception with the internal server.</p>
|
|
68
77
|
*/
|
|
69
|
-
export
|
|
70
|
-
name: "InternalServerException";
|
|
71
|
-
$fault: "server";
|
|
78
|
+
export declare class InternalServerException extends __BaseException {
|
|
79
|
+
readonly name: "InternalServerException";
|
|
80
|
+
readonly $fault: "server";
|
|
72
81
|
Message?: string;
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
73
86
|
}
|
|
74
87
|
/**
|
|
75
88
|
* <p>The requested resource was not found.</p>
|
|
76
89
|
*/
|
|
77
|
-
export
|
|
78
|
-
name: "ResourceNotFoundException";
|
|
79
|
-
$fault: "client";
|
|
90
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
91
|
+
readonly name: "ResourceNotFoundException";
|
|
92
|
+
readonly $fault: "client";
|
|
80
93
|
Message?: string;
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
81
98
|
}
|
|
82
99
|
/**
|
|
83
100
|
* <p>There was an exception validating this data.</p>
|
|
84
101
|
*/
|
|
85
|
-
export
|
|
86
|
-
name: "ValidationException";
|
|
87
|
-
$fault: "client";
|
|
102
|
+
export declare class ValidationException extends __BaseException {
|
|
103
|
+
readonly name: "ValidationException";
|
|
104
|
+
readonly $fault: "client";
|
|
88
105
|
Message?: string;
|
|
106
|
+
/**
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
89
110
|
}
|
|
90
111
|
export interface DeleteEndpointRequest {
|
|
91
112
|
/**
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: S3OutpostsClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: S3OutpostsClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: S3OutpostsClientConfig) => {
|
|
|
8
8
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
9
|
apiVersion: string;
|
|
10
10
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
13
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
14
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { CreateEndpointCommandInput, CreateEndpointCommandOutput } from "./commands/CreateEndpointCommand";
|
|
10
10
|
import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "./commands/DeleteEndpointCommand";
|
|
11
11
|
import { ListEndpointsCommandInput, ListEndpointsCommandOutput } from "./commands/ListEndpointsCommand";
|
|
@@ -19,7 +19,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
19
19
|
|
|
20
20
|
urlParser?: __UrlParser;
|
|
21
21
|
|
|
22
|
-
bodyLengthChecker?:
|
|
22
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
23
23
|
|
|
24
24
|
streamCollector?: __StreamCollector;
|
|
25
25
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
|
|
3
|
+
export declare class S3OutpostsServiceException extends __ServiceException {
|
|
4
|
+
|
|
5
|
+
constructor(options: __ServiceExceptionOptions);
|
|
6
|
+
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { S3OutpostsServiceException as __BaseException } from "./S3OutpostsServiceException";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
name: "AccessDeniedException";
|
|
5
|
-
$fault: "client";
|
|
4
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
5
|
+
readonly name: "AccessDeniedException";
|
|
6
|
+
readonly $fault: "client";
|
|
6
7
|
Message?: string;
|
|
8
|
+
|
|
9
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
7
10
|
}
|
|
8
11
|
|
|
9
|
-
export
|
|
10
|
-
name: "ConflictException";
|
|
11
|
-
$fault: "client";
|
|
12
|
+
export declare class ConflictException extends __BaseException {
|
|
13
|
+
readonly name: "ConflictException";
|
|
14
|
+
readonly $fault: "client";
|
|
12
15
|
Message?: string;
|
|
16
|
+
|
|
17
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
13
18
|
}
|
|
14
19
|
export declare enum EndpointAccessType {
|
|
15
20
|
CUSTOMER_OWNED_IP = "CustomerOwnedIp",
|
|
@@ -40,22 +45,28 @@ export declare namespace CreateEndpointResult {
|
|
|
40
45
|
const filterSensitiveLog: (obj: CreateEndpointResult) => any;
|
|
41
46
|
}
|
|
42
47
|
|
|
43
|
-
export
|
|
44
|
-
name: "InternalServerException";
|
|
45
|
-
$fault: "server";
|
|
48
|
+
export declare class InternalServerException extends __BaseException {
|
|
49
|
+
readonly name: "InternalServerException";
|
|
50
|
+
readonly $fault: "server";
|
|
46
51
|
Message?: string;
|
|
52
|
+
|
|
53
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
47
54
|
}
|
|
48
55
|
|
|
49
|
-
export
|
|
50
|
-
name: "ResourceNotFoundException";
|
|
51
|
-
$fault: "client";
|
|
56
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
57
|
+
readonly name: "ResourceNotFoundException";
|
|
58
|
+
readonly $fault: "client";
|
|
52
59
|
Message?: string;
|
|
60
|
+
|
|
61
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
53
62
|
}
|
|
54
63
|
|
|
55
|
-
export
|
|
56
|
-
name: "ValidationException";
|
|
57
|
-
$fault: "client";
|
|
64
|
+
export declare class ValidationException extends __BaseException {
|
|
65
|
+
readonly name: "ValidationException";
|
|
66
|
+
readonly $fault: "client";
|
|
58
67
|
Message?: string;
|
|
68
|
+
|
|
69
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
59
70
|
}
|
|
60
71
|
export interface DeleteEndpointRequest {
|
|
61
72
|
|