@aws-sdk/client-s3outposts 3.489.0 → 3.495.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/S3Outposts.js +1 -21
- package/dist-cjs/S3OutpostsClient.js +1 -43
- package/dist-cjs/commands/CreateEndpointCommand.js +1 -28
- package/dist-cjs/commands/DeleteEndpointCommand.js +1 -28
- package/dist-cjs/commands/ListEndpointsCommand.js +1 -28
- package/dist-cjs/commands/ListOutpostsWithS3Command.js +1 -28
- package/dist-cjs/commands/ListSharedEndpointsCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -8
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +899 -11
- package/dist-cjs/models/S3OutpostsServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -113
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListEndpointsPaginator.js +1 -7
- package/dist-cjs/pagination/ListOutpostsWithS3Paginator.js +1 -7
- package/dist-cjs/pagination/ListSharedEndpointsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_restJson1.js +1 -489
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,900 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
ConflictException: () => ConflictException,
|
|
26
|
+
CreateEndpointCommand: () => CreateEndpointCommand,
|
|
27
|
+
DeleteEndpointCommand: () => DeleteEndpointCommand,
|
|
28
|
+
EndpointAccessType: () => EndpointAccessType,
|
|
29
|
+
EndpointStatus: () => EndpointStatus,
|
|
30
|
+
InternalServerException: () => InternalServerException,
|
|
31
|
+
ListEndpointsCommand: () => ListEndpointsCommand,
|
|
32
|
+
ListOutpostsWithS3Command: () => ListOutpostsWithS3Command,
|
|
33
|
+
ListSharedEndpointsCommand: () => ListSharedEndpointsCommand,
|
|
34
|
+
OutpostOfflineException: () => OutpostOfflineException,
|
|
35
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
36
|
+
S3Outposts: () => S3Outposts,
|
|
37
|
+
S3OutpostsClient: () => S3OutpostsClient,
|
|
38
|
+
S3OutpostsServiceException: () => S3OutpostsServiceException,
|
|
39
|
+
ThrottlingException: () => ThrottlingException,
|
|
40
|
+
ValidationException: () => ValidationException,
|
|
41
|
+
__Client: () => import_smithy_client.Client,
|
|
42
|
+
paginateListEndpoints: () => paginateListEndpoints,
|
|
43
|
+
paginateListOutpostsWithS3: () => paginateListOutpostsWithS3,
|
|
44
|
+
paginateListSharedEndpoints: () => paginateListSharedEndpoints
|
|
45
|
+
});
|
|
46
|
+
module.exports = __toCommonJS(src_exports);
|
|
47
|
+
|
|
48
|
+
// src/S3OutpostsClient.ts
|
|
49
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
50
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
51
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
52
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
53
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
54
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
55
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
56
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
57
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
// src/endpoint/EndpointParameters.ts
|
|
61
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
62
|
+
return {
|
|
63
|
+
...options,
|
|
64
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
65
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
66
|
+
defaultSigningName: "s3-outposts"
|
|
67
|
+
};
|
|
68
|
+
}, "resolveClientEndpointParameters");
|
|
69
|
+
var commonParams = {
|
|
70
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
71
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
72
|
+
Region: { type: "builtInParams", name: "region" },
|
|
73
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
// src/S3OutpostsClient.ts
|
|
77
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
78
|
+
|
|
79
|
+
// src/runtimeExtensions.ts
|
|
80
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
81
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
82
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
83
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
84
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
85
|
+
const extensionConfiguration = {
|
|
86
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
87
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
88
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
89
|
+
};
|
|
90
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
91
|
+
return {
|
|
92
|
+
...runtimeConfig,
|
|
93
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
94
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
95
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
96
|
+
};
|
|
97
|
+
}, "resolveRuntimeExtensions");
|
|
98
|
+
|
|
99
|
+
// src/S3OutpostsClient.ts
|
|
100
|
+
var _S3OutpostsClient = class _S3OutpostsClient extends import_smithy_client.Client {
|
|
101
|
+
constructor(...[configuration]) {
|
|
102
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
103
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
104
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
105
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
106
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
107
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
108
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
109
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
110
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
111
|
+
super(_config_8);
|
|
112
|
+
this.config = _config_8;
|
|
113
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
114
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
115
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
116
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
117
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
118
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
119
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
123
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
124
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
125
|
+
*/
|
|
126
|
+
destroy() {
|
|
127
|
+
super.destroy();
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
__name(_S3OutpostsClient, "S3OutpostsClient");
|
|
131
|
+
var S3OutpostsClient = _S3OutpostsClient;
|
|
132
|
+
|
|
133
|
+
// src/S3Outposts.ts
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
// src/commands/CreateEndpointCommand.ts
|
|
137
|
+
|
|
138
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
139
|
+
|
|
140
|
+
var import_types = require("@smithy/types");
|
|
141
|
+
|
|
142
|
+
// src/protocols/Aws_restJson1.ts
|
|
143
|
+
var import_core = require("@smithy/core");
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
// src/models/S3OutpostsServiceException.ts
|
|
147
|
+
|
|
148
|
+
var _S3OutpostsServiceException = class _S3OutpostsServiceException extends import_smithy_client.ServiceException {
|
|
149
|
+
/**
|
|
150
|
+
* @internal
|
|
151
|
+
*/
|
|
152
|
+
constructor(options) {
|
|
153
|
+
super(options);
|
|
154
|
+
Object.setPrototypeOf(this, _S3OutpostsServiceException.prototype);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
__name(_S3OutpostsServiceException, "S3OutpostsServiceException");
|
|
158
|
+
var S3OutpostsServiceException = _S3OutpostsServiceException;
|
|
159
|
+
|
|
160
|
+
// src/models/models_0.ts
|
|
161
|
+
var _AccessDeniedException = class _AccessDeniedException extends S3OutpostsServiceException {
|
|
162
|
+
/**
|
|
163
|
+
* @internal
|
|
164
|
+
*/
|
|
165
|
+
constructor(opts) {
|
|
166
|
+
super({
|
|
167
|
+
name: "AccessDeniedException",
|
|
168
|
+
$fault: "client",
|
|
169
|
+
...opts
|
|
170
|
+
});
|
|
171
|
+
this.name = "AccessDeniedException";
|
|
172
|
+
this.$fault = "client";
|
|
173
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
174
|
+
this.Message = opts.Message;
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
178
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
179
|
+
var _ConflictException = class _ConflictException extends S3OutpostsServiceException {
|
|
180
|
+
/**
|
|
181
|
+
* @internal
|
|
182
|
+
*/
|
|
183
|
+
constructor(opts) {
|
|
184
|
+
super({
|
|
185
|
+
name: "ConflictException",
|
|
186
|
+
$fault: "client",
|
|
187
|
+
...opts
|
|
188
|
+
});
|
|
189
|
+
this.name = "ConflictException";
|
|
190
|
+
this.$fault = "client";
|
|
191
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
192
|
+
this.Message = opts.Message;
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
__name(_ConflictException, "ConflictException");
|
|
196
|
+
var ConflictException = _ConflictException;
|
|
197
|
+
var EndpointAccessType = {
|
|
198
|
+
CUSTOMER_OWNED_IP: "CustomerOwnedIp",
|
|
199
|
+
PRIVATE: "Private"
|
|
200
|
+
};
|
|
201
|
+
var _InternalServerException = class _InternalServerException extends S3OutpostsServiceException {
|
|
202
|
+
/**
|
|
203
|
+
* @internal
|
|
204
|
+
*/
|
|
205
|
+
constructor(opts) {
|
|
206
|
+
super({
|
|
207
|
+
name: "InternalServerException",
|
|
208
|
+
$fault: "server",
|
|
209
|
+
...opts
|
|
210
|
+
});
|
|
211
|
+
this.name = "InternalServerException";
|
|
212
|
+
this.$fault = "server";
|
|
213
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
214
|
+
this.Message = opts.Message;
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
__name(_InternalServerException, "InternalServerException");
|
|
218
|
+
var InternalServerException = _InternalServerException;
|
|
219
|
+
var _OutpostOfflineException = class _OutpostOfflineException extends S3OutpostsServiceException {
|
|
220
|
+
/**
|
|
221
|
+
* @internal
|
|
222
|
+
*/
|
|
223
|
+
constructor(opts) {
|
|
224
|
+
super({
|
|
225
|
+
name: "OutpostOfflineException",
|
|
226
|
+
$fault: "client",
|
|
227
|
+
...opts
|
|
228
|
+
});
|
|
229
|
+
this.name = "OutpostOfflineException";
|
|
230
|
+
this.$fault = "client";
|
|
231
|
+
Object.setPrototypeOf(this, _OutpostOfflineException.prototype);
|
|
232
|
+
this.Message = opts.Message;
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
__name(_OutpostOfflineException, "OutpostOfflineException");
|
|
236
|
+
var OutpostOfflineException = _OutpostOfflineException;
|
|
237
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends S3OutpostsServiceException {
|
|
238
|
+
/**
|
|
239
|
+
* @internal
|
|
240
|
+
*/
|
|
241
|
+
constructor(opts) {
|
|
242
|
+
super({
|
|
243
|
+
name: "ResourceNotFoundException",
|
|
244
|
+
$fault: "client",
|
|
245
|
+
...opts
|
|
246
|
+
});
|
|
247
|
+
this.name = "ResourceNotFoundException";
|
|
248
|
+
this.$fault = "client";
|
|
249
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
250
|
+
this.Message = opts.Message;
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
254
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
255
|
+
var _ThrottlingException = class _ThrottlingException extends S3OutpostsServiceException {
|
|
256
|
+
/**
|
|
257
|
+
* @internal
|
|
258
|
+
*/
|
|
259
|
+
constructor(opts) {
|
|
260
|
+
super({
|
|
261
|
+
name: "ThrottlingException",
|
|
262
|
+
$fault: "client",
|
|
263
|
+
...opts
|
|
264
|
+
});
|
|
265
|
+
this.name = "ThrottlingException";
|
|
266
|
+
this.$fault = "client";
|
|
267
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
268
|
+
this.Message = opts.Message;
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
272
|
+
var ThrottlingException = _ThrottlingException;
|
|
273
|
+
var _ValidationException = class _ValidationException extends S3OutpostsServiceException {
|
|
274
|
+
/**
|
|
275
|
+
* @internal
|
|
276
|
+
*/
|
|
277
|
+
constructor(opts) {
|
|
278
|
+
super({
|
|
279
|
+
name: "ValidationException",
|
|
280
|
+
$fault: "client",
|
|
281
|
+
...opts
|
|
282
|
+
});
|
|
283
|
+
this.name = "ValidationException";
|
|
284
|
+
this.$fault = "client";
|
|
285
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
286
|
+
this.Message = opts.Message;
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
__name(_ValidationException, "ValidationException");
|
|
290
|
+
var ValidationException = _ValidationException;
|
|
291
|
+
var EndpointStatus = {
|
|
292
|
+
AVAILABLE: "Available",
|
|
293
|
+
CREATE_FAILED: "Create_Failed",
|
|
294
|
+
DELETE_FAILED: "Delete_Failed",
|
|
295
|
+
DELETING: "Deleting",
|
|
296
|
+
PENDING: "Pending"
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
// src/protocols/Aws_restJson1.ts
|
|
300
|
+
var se_CreateEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
301
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
302
|
+
const headers = {
|
|
303
|
+
"content-type": "application/json"
|
|
304
|
+
};
|
|
305
|
+
b.bp("/S3Outposts/CreateEndpoint");
|
|
306
|
+
let body;
|
|
307
|
+
body = JSON.stringify(
|
|
308
|
+
(0, import_smithy_client.take)(input, {
|
|
309
|
+
AccessType: [],
|
|
310
|
+
CustomerOwnedIpv4Pool: [],
|
|
311
|
+
OutpostId: [],
|
|
312
|
+
SecurityGroupId: [],
|
|
313
|
+
SubnetId: []
|
|
314
|
+
})
|
|
315
|
+
);
|
|
316
|
+
b.m("POST").h(headers).b(body);
|
|
317
|
+
return b.build();
|
|
318
|
+
}, "se_CreateEndpointCommand");
|
|
319
|
+
var se_DeleteEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
320
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
321
|
+
const headers = {};
|
|
322
|
+
b.bp("/S3Outposts/DeleteEndpoint");
|
|
323
|
+
const query = (0, import_smithy_client.map)({
|
|
324
|
+
[_eI]: [, (0, import_smithy_client.expectNonNull)(input[_EI], `EndpointId`)],
|
|
325
|
+
[_oI]: [, (0, import_smithy_client.expectNonNull)(input[_OI], `OutpostId`)]
|
|
326
|
+
});
|
|
327
|
+
let body;
|
|
328
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
329
|
+
return b.build();
|
|
330
|
+
}, "se_DeleteEndpointCommand");
|
|
331
|
+
var se_ListEndpointsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
332
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
333
|
+
const headers = {};
|
|
334
|
+
b.bp("/S3Outposts/ListEndpoints");
|
|
335
|
+
const query = (0, import_smithy_client.map)({
|
|
336
|
+
[_nT]: [, input[_NT]],
|
|
337
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
|
|
338
|
+
});
|
|
339
|
+
let body;
|
|
340
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
341
|
+
return b.build();
|
|
342
|
+
}, "se_ListEndpointsCommand");
|
|
343
|
+
var se_ListOutpostsWithS3Command = /* @__PURE__ */ __name(async (input, context) => {
|
|
344
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
345
|
+
const headers = {};
|
|
346
|
+
b.bp("/S3Outposts/ListOutpostsWithS3");
|
|
347
|
+
const query = (0, import_smithy_client.map)({
|
|
348
|
+
[_nT]: [, input[_NT]],
|
|
349
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
|
|
350
|
+
});
|
|
351
|
+
let body;
|
|
352
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
353
|
+
return b.build();
|
|
354
|
+
}, "se_ListOutpostsWithS3Command");
|
|
355
|
+
var se_ListSharedEndpointsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
356
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
357
|
+
const headers = {};
|
|
358
|
+
b.bp("/S3Outposts/ListSharedEndpoints");
|
|
359
|
+
const query = (0, import_smithy_client.map)({
|
|
360
|
+
[_nT]: [, input[_NT]],
|
|
361
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
362
|
+
[_oI]: [, (0, import_smithy_client.expectNonNull)(input[_OI], `OutpostId`)]
|
|
363
|
+
});
|
|
364
|
+
let body;
|
|
365
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
366
|
+
return b.build();
|
|
367
|
+
}, "se_ListSharedEndpointsCommand");
|
|
368
|
+
var de_CreateEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
369
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
370
|
+
return de_CreateEndpointCommandError(output, context);
|
|
371
|
+
}
|
|
372
|
+
const contents = (0, import_smithy_client.map)({
|
|
373
|
+
$metadata: deserializeMetadata(output)
|
|
374
|
+
});
|
|
375
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
376
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
377
|
+
EndpointArn: import_smithy_client.expectString
|
|
378
|
+
});
|
|
379
|
+
Object.assign(contents, doc);
|
|
380
|
+
return contents;
|
|
381
|
+
}, "de_CreateEndpointCommand");
|
|
382
|
+
var de_CreateEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
383
|
+
const parsedOutput = {
|
|
384
|
+
...output,
|
|
385
|
+
body: await parseErrorBody(output.body, context)
|
|
386
|
+
};
|
|
387
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
388
|
+
switch (errorCode) {
|
|
389
|
+
case "AccessDeniedException":
|
|
390
|
+
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
391
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
392
|
+
case "ConflictException":
|
|
393
|
+
case "com.amazonaws.s3outposts#ConflictException":
|
|
394
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
395
|
+
case "InternalServerException":
|
|
396
|
+
case "com.amazonaws.s3outposts#InternalServerException":
|
|
397
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
398
|
+
case "OutpostOfflineException":
|
|
399
|
+
case "com.amazonaws.s3outposts#OutpostOfflineException":
|
|
400
|
+
throw await de_OutpostOfflineExceptionRes(parsedOutput, context);
|
|
401
|
+
case "ResourceNotFoundException":
|
|
402
|
+
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
403
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
404
|
+
case "ThrottlingException":
|
|
405
|
+
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
406
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
407
|
+
case "ValidationException":
|
|
408
|
+
case "com.amazonaws.s3outposts#ValidationException":
|
|
409
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
410
|
+
default:
|
|
411
|
+
const parsedBody = parsedOutput.body;
|
|
412
|
+
return throwDefaultError({
|
|
413
|
+
output,
|
|
414
|
+
parsedBody,
|
|
415
|
+
errorCode
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
}, "de_CreateEndpointCommandError");
|
|
419
|
+
var de_DeleteEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
420
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
421
|
+
return de_DeleteEndpointCommandError(output, context);
|
|
422
|
+
}
|
|
423
|
+
const contents = (0, import_smithy_client.map)({
|
|
424
|
+
$metadata: deserializeMetadata(output)
|
|
425
|
+
});
|
|
426
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
427
|
+
return contents;
|
|
428
|
+
}, "de_DeleteEndpointCommand");
|
|
429
|
+
var de_DeleteEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
430
|
+
const parsedOutput = {
|
|
431
|
+
...output,
|
|
432
|
+
body: await parseErrorBody(output.body, context)
|
|
433
|
+
};
|
|
434
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
435
|
+
switch (errorCode) {
|
|
436
|
+
case "AccessDeniedException":
|
|
437
|
+
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
438
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
439
|
+
case "InternalServerException":
|
|
440
|
+
case "com.amazonaws.s3outposts#InternalServerException":
|
|
441
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
442
|
+
case "OutpostOfflineException":
|
|
443
|
+
case "com.amazonaws.s3outposts#OutpostOfflineException":
|
|
444
|
+
throw await de_OutpostOfflineExceptionRes(parsedOutput, context);
|
|
445
|
+
case "ResourceNotFoundException":
|
|
446
|
+
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
447
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
448
|
+
case "ThrottlingException":
|
|
449
|
+
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
450
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
451
|
+
case "ValidationException":
|
|
452
|
+
case "com.amazonaws.s3outposts#ValidationException":
|
|
453
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
454
|
+
default:
|
|
455
|
+
const parsedBody = parsedOutput.body;
|
|
456
|
+
return throwDefaultError({
|
|
457
|
+
output,
|
|
458
|
+
parsedBody,
|
|
459
|
+
errorCode
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
}, "de_DeleteEndpointCommandError");
|
|
463
|
+
var de_ListEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
464
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
465
|
+
return de_ListEndpointsCommandError(output, context);
|
|
466
|
+
}
|
|
467
|
+
const contents = (0, import_smithy_client.map)({
|
|
468
|
+
$metadata: deserializeMetadata(output)
|
|
469
|
+
});
|
|
470
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
471
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
472
|
+
Endpoints: (_) => de_Endpoints(_, context),
|
|
473
|
+
NextToken: import_smithy_client.expectString
|
|
474
|
+
});
|
|
475
|
+
Object.assign(contents, doc);
|
|
476
|
+
return contents;
|
|
477
|
+
}, "de_ListEndpointsCommand");
|
|
478
|
+
var de_ListEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
479
|
+
const parsedOutput = {
|
|
480
|
+
...output,
|
|
481
|
+
body: await parseErrorBody(output.body, context)
|
|
482
|
+
};
|
|
483
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
484
|
+
switch (errorCode) {
|
|
485
|
+
case "AccessDeniedException":
|
|
486
|
+
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
487
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
488
|
+
case "InternalServerException":
|
|
489
|
+
case "com.amazonaws.s3outposts#InternalServerException":
|
|
490
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
491
|
+
case "ResourceNotFoundException":
|
|
492
|
+
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
493
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
494
|
+
case "ThrottlingException":
|
|
495
|
+
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
496
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
497
|
+
case "ValidationException":
|
|
498
|
+
case "com.amazonaws.s3outposts#ValidationException":
|
|
499
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
500
|
+
default:
|
|
501
|
+
const parsedBody = parsedOutput.body;
|
|
502
|
+
return throwDefaultError({
|
|
503
|
+
output,
|
|
504
|
+
parsedBody,
|
|
505
|
+
errorCode
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
}, "de_ListEndpointsCommandError");
|
|
509
|
+
var de_ListOutpostsWithS3Command = /* @__PURE__ */ __name(async (output, context) => {
|
|
510
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
511
|
+
return de_ListOutpostsWithS3CommandError(output, context);
|
|
512
|
+
}
|
|
513
|
+
const contents = (0, import_smithy_client.map)({
|
|
514
|
+
$metadata: deserializeMetadata(output)
|
|
515
|
+
});
|
|
516
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
517
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
518
|
+
NextToken: import_smithy_client.expectString,
|
|
519
|
+
Outposts: import_smithy_client._json
|
|
520
|
+
});
|
|
521
|
+
Object.assign(contents, doc);
|
|
522
|
+
return contents;
|
|
523
|
+
}, "de_ListOutpostsWithS3Command");
|
|
524
|
+
var de_ListOutpostsWithS3CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
525
|
+
const parsedOutput = {
|
|
526
|
+
...output,
|
|
527
|
+
body: await parseErrorBody(output.body, context)
|
|
528
|
+
};
|
|
529
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
530
|
+
switch (errorCode) {
|
|
531
|
+
case "AccessDeniedException":
|
|
532
|
+
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
533
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
534
|
+
case "InternalServerException":
|
|
535
|
+
case "com.amazonaws.s3outposts#InternalServerException":
|
|
536
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
537
|
+
case "ThrottlingException":
|
|
538
|
+
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
539
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
540
|
+
case "ValidationException":
|
|
541
|
+
case "com.amazonaws.s3outposts#ValidationException":
|
|
542
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
543
|
+
default:
|
|
544
|
+
const parsedBody = parsedOutput.body;
|
|
545
|
+
return throwDefaultError({
|
|
546
|
+
output,
|
|
547
|
+
parsedBody,
|
|
548
|
+
errorCode
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
}, "de_ListOutpostsWithS3CommandError");
|
|
552
|
+
var de_ListSharedEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
553
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
554
|
+
return de_ListSharedEndpointsCommandError(output, context);
|
|
555
|
+
}
|
|
556
|
+
const contents = (0, import_smithy_client.map)({
|
|
557
|
+
$metadata: deserializeMetadata(output)
|
|
558
|
+
});
|
|
559
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
560
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
561
|
+
Endpoints: (_) => de_Endpoints(_, context),
|
|
562
|
+
NextToken: import_smithy_client.expectString
|
|
563
|
+
});
|
|
564
|
+
Object.assign(contents, doc);
|
|
565
|
+
return contents;
|
|
566
|
+
}, "de_ListSharedEndpointsCommand");
|
|
567
|
+
var de_ListSharedEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
568
|
+
const parsedOutput = {
|
|
569
|
+
...output,
|
|
570
|
+
body: await parseErrorBody(output.body, context)
|
|
571
|
+
};
|
|
572
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
573
|
+
switch (errorCode) {
|
|
574
|
+
case "AccessDeniedException":
|
|
575
|
+
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
576
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
577
|
+
case "InternalServerException":
|
|
578
|
+
case "com.amazonaws.s3outposts#InternalServerException":
|
|
579
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
580
|
+
case "ResourceNotFoundException":
|
|
581
|
+
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
582
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
583
|
+
case "ThrottlingException":
|
|
584
|
+
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
585
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
586
|
+
case "ValidationException":
|
|
587
|
+
case "com.amazonaws.s3outposts#ValidationException":
|
|
588
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
589
|
+
default:
|
|
590
|
+
const parsedBody = parsedOutput.body;
|
|
591
|
+
return throwDefaultError({
|
|
592
|
+
output,
|
|
593
|
+
parsedBody,
|
|
594
|
+
errorCode
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
}, "de_ListSharedEndpointsCommandError");
|
|
598
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(S3OutpostsServiceException);
|
|
599
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
600
|
+
const contents = (0, import_smithy_client.map)({});
|
|
601
|
+
const data = parsedOutput.body;
|
|
602
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
603
|
+
Message: import_smithy_client.expectString
|
|
604
|
+
});
|
|
605
|
+
Object.assign(contents, doc);
|
|
606
|
+
const exception = new AccessDeniedException({
|
|
607
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
608
|
+
...contents
|
|
609
|
+
});
|
|
610
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
611
|
+
}, "de_AccessDeniedExceptionRes");
|
|
612
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
613
|
+
const contents = (0, import_smithy_client.map)({});
|
|
614
|
+
const data = parsedOutput.body;
|
|
615
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
616
|
+
Message: import_smithy_client.expectString
|
|
617
|
+
});
|
|
618
|
+
Object.assign(contents, doc);
|
|
619
|
+
const exception = new ConflictException({
|
|
620
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
621
|
+
...contents
|
|
622
|
+
});
|
|
623
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
624
|
+
}, "de_ConflictExceptionRes");
|
|
625
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
626
|
+
const contents = (0, import_smithy_client.map)({});
|
|
627
|
+
const data = parsedOutput.body;
|
|
628
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
629
|
+
Message: import_smithy_client.expectString
|
|
630
|
+
});
|
|
631
|
+
Object.assign(contents, doc);
|
|
632
|
+
const exception = new InternalServerException({
|
|
633
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
634
|
+
...contents
|
|
635
|
+
});
|
|
636
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
637
|
+
}, "de_InternalServerExceptionRes");
|
|
638
|
+
var de_OutpostOfflineExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
639
|
+
const contents = (0, import_smithy_client.map)({});
|
|
640
|
+
const data = parsedOutput.body;
|
|
641
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
642
|
+
Message: import_smithy_client.expectString
|
|
643
|
+
});
|
|
644
|
+
Object.assign(contents, doc);
|
|
645
|
+
const exception = new OutpostOfflineException({
|
|
646
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
647
|
+
...contents
|
|
648
|
+
});
|
|
649
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
650
|
+
}, "de_OutpostOfflineExceptionRes");
|
|
651
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
652
|
+
const contents = (0, import_smithy_client.map)({});
|
|
653
|
+
const data = parsedOutput.body;
|
|
654
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
655
|
+
Message: import_smithy_client.expectString
|
|
656
|
+
});
|
|
657
|
+
Object.assign(contents, doc);
|
|
658
|
+
const exception = new ResourceNotFoundException({
|
|
659
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
660
|
+
...contents
|
|
661
|
+
});
|
|
662
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
663
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
664
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
665
|
+
const contents = (0, import_smithy_client.map)({});
|
|
666
|
+
const data = parsedOutput.body;
|
|
667
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
668
|
+
Message: import_smithy_client.expectString
|
|
669
|
+
});
|
|
670
|
+
Object.assign(contents, doc);
|
|
671
|
+
const exception = new ThrottlingException({
|
|
672
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
673
|
+
...contents
|
|
674
|
+
});
|
|
675
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
676
|
+
}, "de_ThrottlingExceptionRes");
|
|
677
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
678
|
+
const contents = (0, import_smithy_client.map)({});
|
|
679
|
+
const data = parsedOutput.body;
|
|
680
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
681
|
+
Message: import_smithy_client.expectString
|
|
682
|
+
});
|
|
683
|
+
Object.assign(contents, doc);
|
|
684
|
+
const exception = new ValidationException({
|
|
685
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
686
|
+
...contents
|
|
687
|
+
});
|
|
688
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
689
|
+
}, "de_ValidationExceptionRes");
|
|
690
|
+
var de_Endpoint = /* @__PURE__ */ __name((output, context) => {
|
|
691
|
+
return (0, import_smithy_client.take)(output, {
|
|
692
|
+
AccessType: import_smithy_client.expectString,
|
|
693
|
+
CidrBlock: import_smithy_client.expectString,
|
|
694
|
+
CreationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
695
|
+
CustomerOwnedIpv4Pool: import_smithy_client.expectString,
|
|
696
|
+
EndpointArn: import_smithy_client.expectString,
|
|
697
|
+
FailedReason: import_smithy_client._json,
|
|
698
|
+
NetworkInterfaces: import_smithy_client._json,
|
|
699
|
+
OutpostsId: import_smithy_client.expectString,
|
|
700
|
+
SecurityGroupId: import_smithy_client.expectString,
|
|
701
|
+
Status: import_smithy_client.expectString,
|
|
702
|
+
SubnetId: import_smithy_client.expectString,
|
|
703
|
+
VpcId: import_smithy_client.expectString
|
|
704
|
+
});
|
|
705
|
+
}, "de_Endpoint");
|
|
706
|
+
var de_Endpoints = /* @__PURE__ */ __name((output, context) => {
|
|
707
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
708
|
+
return de_Endpoint(entry, context);
|
|
709
|
+
});
|
|
710
|
+
return retVal;
|
|
711
|
+
}, "de_Endpoints");
|
|
712
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
713
|
+
httpStatusCode: output.statusCode,
|
|
714
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
715
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
716
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
717
|
+
}), "deserializeMetadata");
|
|
718
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
719
|
+
var _EI = "EndpointId";
|
|
720
|
+
var _MR = "MaxResults";
|
|
721
|
+
var _NT = "NextToken";
|
|
722
|
+
var _OI = "OutpostId";
|
|
723
|
+
var _eI = "endpointId";
|
|
724
|
+
var _mR = "maxResults";
|
|
725
|
+
var _nT = "nextToken";
|
|
726
|
+
var _oI = "outpostId";
|
|
727
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
728
|
+
if (encoded.length) {
|
|
729
|
+
return JSON.parse(encoded);
|
|
730
|
+
}
|
|
731
|
+
return {};
|
|
732
|
+
}), "parseBody");
|
|
733
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
734
|
+
const value = await parseBody(errorBody, context);
|
|
735
|
+
value.message = value.message ?? value.Message;
|
|
736
|
+
return value;
|
|
737
|
+
}, "parseErrorBody");
|
|
738
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
739
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
740
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
741
|
+
let cleanValue = rawValue;
|
|
742
|
+
if (typeof cleanValue === "number") {
|
|
743
|
+
cleanValue = cleanValue.toString();
|
|
744
|
+
}
|
|
745
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
746
|
+
cleanValue = cleanValue.split(",")[0];
|
|
747
|
+
}
|
|
748
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
749
|
+
cleanValue = cleanValue.split(":")[0];
|
|
750
|
+
}
|
|
751
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
752
|
+
cleanValue = cleanValue.split("#")[1];
|
|
753
|
+
}
|
|
754
|
+
return cleanValue;
|
|
755
|
+
}, "sanitizeErrorCode");
|
|
756
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
757
|
+
if (headerKey !== void 0) {
|
|
758
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
759
|
+
}
|
|
760
|
+
if (data.code !== void 0) {
|
|
761
|
+
return sanitizeErrorCode(data.code);
|
|
762
|
+
}
|
|
763
|
+
if (data["__type"] !== void 0) {
|
|
764
|
+
return sanitizeErrorCode(data["__type"]);
|
|
765
|
+
}
|
|
766
|
+
}, "loadRestJsonErrorCode");
|
|
767
|
+
|
|
768
|
+
// src/commands/CreateEndpointCommand.ts
|
|
769
|
+
var _CreateEndpointCommand = class _CreateEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
770
|
+
...commonParams
|
|
771
|
+
}).m(function(Command, cs, config, o) {
|
|
772
|
+
return [
|
|
773
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
774
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
775
|
+
];
|
|
776
|
+
}).s("S3Outposts", "CreateEndpoint", {}).n("S3OutpostsClient", "CreateEndpointCommand").f(void 0, void 0).ser(se_CreateEndpointCommand).de(de_CreateEndpointCommand).build() {
|
|
777
|
+
};
|
|
778
|
+
__name(_CreateEndpointCommand, "CreateEndpointCommand");
|
|
779
|
+
var CreateEndpointCommand = _CreateEndpointCommand;
|
|
780
|
+
|
|
781
|
+
// src/commands/DeleteEndpointCommand.ts
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
var _DeleteEndpointCommand = class _DeleteEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
787
|
+
...commonParams
|
|
788
|
+
}).m(function(Command, cs, config, o) {
|
|
789
|
+
return [
|
|
790
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
791
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
792
|
+
];
|
|
793
|
+
}).s("S3Outposts", "DeleteEndpoint", {}).n("S3OutpostsClient", "DeleteEndpointCommand").f(void 0, void 0).ser(se_DeleteEndpointCommand).de(de_DeleteEndpointCommand).build() {
|
|
794
|
+
};
|
|
795
|
+
__name(_DeleteEndpointCommand, "DeleteEndpointCommand");
|
|
796
|
+
var DeleteEndpointCommand = _DeleteEndpointCommand;
|
|
797
|
+
|
|
798
|
+
// src/commands/ListEndpointsCommand.ts
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
var _ListEndpointsCommand = class _ListEndpointsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
804
|
+
...commonParams
|
|
805
|
+
}).m(function(Command, cs, config, o) {
|
|
806
|
+
return [
|
|
807
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
808
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
809
|
+
];
|
|
810
|
+
}).s("S3Outposts", "ListEndpoints", {}).n("S3OutpostsClient", "ListEndpointsCommand").f(void 0, void 0).ser(se_ListEndpointsCommand).de(de_ListEndpointsCommand).build() {
|
|
811
|
+
};
|
|
812
|
+
__name(_ListEndpointsCommand, "ListEndpointsCommand");
|
|
813
|
+
var ListEndpointsCommand = _ListEndpointsCommand;
|
|
814
|
+
|
|
815
|
+
// src/commands/ListOutpostsWithS3Command.ts
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
var _ListOutpostsWithS3Command = class _ListOutpostsWithS3Command extends import_smithy_client.Command.classBuilder().ep({
|
|
821
|
+
...commonParams
|
|
822
|
+
}).m(function(Command, cs, config, o) {
|
|
823
|
+
return [
|
|
824
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
825
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
826
|
+
];
|
|
827
|
+
}).s("S3Outposts", "ListOutpostsWithS3", {}).n("S3OutpostsClient", "ListOutpostsWithS3Command").f(void 0, void 0).ser(se_ListOutpostsWithS3Command).de(de_ListOutpostsWithS3Command).build() {
|
|
828
|
+
};
|
|
829
|
+
__name(_ListOutpostsWithS3Command, "ListOutpostsWithS3Command");
|
|
830
|
+
var ListOutpostsWithS3Command = _ListOutpostsWithS3Command;
|
|
831
|
+
|
|
832
|
+
// src/commands/ListSharedEndpointsCommand.ts
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
var _ListSharedEndpointsCommand = class _ListSharedEndpointsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
838
|
+
...commonParams
|
|
839
|
+
}).m(function(Command, cs, config, o) {
|
|
840
|
+
return [
|
|
841
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
842
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
843
|
+
];
|
|
844
|
+
}).s("S3Outposts", "ListSharedEndpoints", {}).n("S3OutpostsClient", "ListSharedEndpointsCommand").f(void 0, void 0).ser(se_ListSharedEndpointsCommand).de(de_ListSharedEndpointsCommand).build() {
|
|
845
|
+
};
|
|
846
|
+
__name(_ListSharedEndpointsCommand, "ListSharedEndpointsCommand");
|
|
847
|
+
var ListSharedEndpointsCommand = _ListSharedEndpointsCommand;
|
|
848
|
+
|
|
849
|
+
// src/S3Outposts.ts
|
|
850
|
+
var commands = {
|
|
851
|
+
CreateEndpointCommand,
|
|
852
|
+
DeleteEndpointCommand,
|
|
853
|
+
ListEndpointsCommand,
|
|
854
|
+
ListOutpostsWithS3Command,
|
|
855
|
+
ListSharedEndpointsCommand
|
|
856
|
+
};
|
|
857
|
+
var _S3Outposts = class _S3Outposts extends S3OutpostsClient {
|
|
858
|
+
};
|
|
859
|
+
__name(_S3Outposts, "S3Outposts");
|
|
860
|
+
var S3Outposts = _S3Outposts;
|
|
861
|
+
(0, import_smithy_client.createAggregatedClient)(commands, S3Outposts);
|
|
862
|
+
|
|
863
|
+
// src/pagination/ListEndpointsPaginator.ts
|
|
864
|
+
|
|
865
|
+
var paginateListEndpoints = (0, import_core.createPaginator)(S3OutpostsClient, ListEndpointsCommand, "NextToken", "NextToken", "MaxResults");
|
|
866
|
+
|
|
867
|
+
// src/pagination/ListOutpostsWithS3Paginator.ts
|
|
868
|
+
|
|
869
|
+
var paginateListOutpostsWithS3 = (0, import_core.createPaginator)(S3OutpostsClient, ListOutpostsWithS3Command, "NextToken", "NextToken", "MaxResults");
|
|
870
|
+
|
|
871
|
+
// src/pagination/ListSharedEndpointsPaginator.ts
|
|
872
|
+
|
|
873
|
+
var paginateListSharedEndpoints = (0, import_core.createPaginator)(S3OutpostsClient, ListSharedEndpointsCommand, "NextToken", "NextToken", "MaxResults");
|
|
874
|
+
|
|
875
|
+
// src/index.ts
|
|
876
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
877
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
878
|
+
0 && (module.exports = {
|
|
879
|
+
AccessDeniedException,
|
|
880
|
+
ConflictException,
|
|
881
|
+
CreateEndpointCommand,
|
|
882
|
+
DeleteEndpointCommand,
|
|
883
|
+
EndpointAccessType,
|
|
884
|
+
EndpointStatus,
|
|
885
|
+
InternalServerException,
|
|
886
|
+
ListEndpointsCommand,
|
|
887
|
+
ListOutpostsWithS3Command,
|
|
888
|
+
ListSharedEndpointsCommand,
|
|
889
|
+
OutpostOfflineException,
|
|
890
|
+
ResourceNotFoundException,
|
|
891
|
+
S3Outposts,
|
|
892
|
+
S3OutpostsClient,
|
|
893
|
+
S3OutpostsServiceException,
|
|
894
|
+
ThrottlingException,
|
|
895
|
+
ValidationException,
|
|
896
|
+
__Client,
|
|
897
|
+
paginateListEndpoints,
|
|
898
|
+
paginateListOutpostsWithS3,
|
|
899
|
+
paginateListSharedEndpoints
|
|
900
|
+
});
|