@aws-sdk/client-s3outposts 3.281.0 → 3.287.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/README.md +8 -0
- package/dist-cjs/S3Outposts.js +15 -0
- package/dist-cjs/commands/ListOutpostsWithS3Command.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +27 -1
- package/dist-cjs/pagination/ListEndpointsPaginator.js +1 -8
- package/dist-cjs/pagination/ListOutpostsWithS3Paginator.js +29 -0
- package/dist-cjs/pagination/ListSharedEndpointsPaginator.js +1 -8
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +111 -1
- package/dist-es/S3Outposts.js +15 -0
- package/dist-es/commands/ListOutpostsWithS3Command.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +22 -0
- package/dist-es/pagination/ListEndpointsPaginator.js +1 -8
- package/dist-es/pagination/ListOutpostsWithS3Paginator.js +25 -0
- package/dist-es/pagination/ListSharedEndpointsPaginator.js +1 -8
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +110 -2
- package/dist-types/S3Outposts.d.ts +25 -16
- package/dist-types/S3OutpostsClient.d.ts +3 -2
- package/dist-types/commands/CreateEndpointCommand.d.ts +4 -4
- package/dist-types/commands/DeleteEndpointCommand.d.ts +4 -4
- package/dist-types/commands/ListEndpointsCommand.d.ts +4 -4
- package/dist-types/commands/ListOutpostsWithS3Command.d.ts +45 -0
- package/dist-types/commands/ListSharedEndpointsCommand.d.ts +4 -4
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +80 -1
- package/dist-types/pagination/Interfaces.d.ts +1 -2
- package/dist-types/pagination/ListOutpostsWithS3Paginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/S3Outposts.d.ts +17 -0
- package/dist-types/ts3.4/S3OutpostsClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListOutpostsWithS3Command.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +29 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
- package/dist-types/ts3.4/pagination/ListOutpostsWithS3Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +19 -19
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { S3OutpostsServiceException as __BaseException } from "../models/S3OutpostsServiceException";
|
|
5
5
|
export const serializeAws_restJson1CreateEndpointCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -66,6 +66,26 @@ export const serializeAws_restJson1ListEndpointsCommand = async (input, context)
|
|
|
66
66
|
body,
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
|
+
export const serializeAws_restJson1ListOutpostsWithS3Command = async (input, context) => {
|
|
70
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
71
|
+
const headers = {};
|
|
72
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListOutpostsWithS3";
|
|
73
|
+
const query = map({
|
|
74
|
+
nextToken: [, input.NextToken],
|
|
75
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
76
|
+
});
|
|
77
|
+
let body;
|
|
78
|
+
return new __HttpRequest({
|
|
79
|
+
protocol,
|
|
80
|
+
hostname,
|
|
81
|
+
port,
|
|
82
|
+
method: "GET",
|
|
83
|
+
headers,
|
|
84
|
+
path: resolvedPath,
|
|
85
|
+
query,
|
|
86
|
+
body,
|
|
87
|
+
});
|
|
88
|
+
};
|
|
69
89
|
export const serializeAws_restJson1ListSharedEndpointsCommand = async (input, context) => {
|
|
70
90
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
71
91
|
const headers = {};
|
|
@@ -119,6 +139,9 @@ const deserializeAws_restJson1CreateEndpointCommandError = async (output, contex
|
|
|
119
139
|
case "ResourceNotFoundException":
|
|
120
140
|
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
121
141
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
142
|
+
case "ThrottlingException":
|
|
143
|
+
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
144
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
122
145
|
case "ValidationException":
|
|
123
146
|
case "com.amazonaws.s3outposts#ValidationException":
|
|
124
147
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
@@ -158,6 +181,9 @@ const deserializeAws_restJson1DeleteEndpointCommandError = async (output, contex
|
|
|
158
181
|
case "ResourceNotFoundException":
|
|
159
182
|
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
160
183
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
184
|
+
case "ThrottlingException":
|
|
185
|
+
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
186
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
161
187
|
case "ValidationException":
|
|
162
188
|
case "com.amazonaws.s3outposts#ValidationException":
|
|
163
189
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
@@ -203,6 +229,54 @@ const deserializeAws_restJson1ListEndpointsCommandError = async (output, context
|
|
|
203
229
|
case "ResourceNotFoundException":
|
|
204
230
|
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
205
231
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
232
|
+
case "ThrottlingException":
|
|
233
|
+
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
234
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
235
|
+
case "ValidationException":
|
|
236
|
+
case "com.amazonaws.s3outposts#ValidationException":
|
|
237
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
238
|
+
default:
|
|
239
|
+
const parsedBody = parsedOutput.body;
|
|
240
|
+
throwDefaultError({
|
|
241
|
+
output,
|
|
242
|
+
parsedBody,
|
|
243
|
+
exceptionCtor: __BaseException,
|
|
244
|
+
errorCode,
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
export const deserializeAws_restJson1ListOutpostsWithS3Command = async (output, context) => {
|
|
249
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
250
|
+
return deserializeAws_restJson1ListOutpostsWithS3CommandError(output, context);
|
|
251
|
+
}
|
|
252
|
+
const contents = map({
|
|
253
|
+
$metadata: deserializeMetadata(output),
|
|
254
|
+
});
|
|
255
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
256
|
+
if (data.NextToken != null) {
|
|
257
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
258
|
+
}
|
|
259
|
+
if (data.Outposts != null) {
|
|
260
|
+
contents.Outposts = deserializeAws_restJson1Outposts(data.Outposts, context);
|
|
261
|
+
}
|
|
262
|
+
return contents;
|
|
263
|
+
};
|
|
264
|
+
const deserializeAws_restJson1ListOutpostsWithS3CommandError = async (output, context) => {
|
|
265
|
+
const parsedOutput = {
|
|
266
|
+
...output,
|
|
267
|
+
body: await parseErrorBody(output.body, context),
|
|
268
|
+
};
|
|
269
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
270
|
+
switch (errorCode) {
|
|
271
|
+
case "AccessDeniedException":
|
|
272
|
+
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
273
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
274
|
+
case "InternalServerException":
|
|
275
|
+
case "com.amazonaws.s3outposts#InternalServerException":
|
|
276
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
277
|
+
case "ThrottlingException":
|
|
278
|
+
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
279
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
206
280
|
case "ValidationException":
|
|
207
281
|
case "com.amazonaws.s3outposts#ValidationException":
|
|
208
282
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
@@ -248,6 +322,9 @@ const deserializeAws_restJson1ListSharedEndpointsCommandError = async (output, c
|
|
|
248
322
|
case "ResourceNotFoundException":
|
|
249
323
|
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
250
324
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
325
|
+
case "ThrottlingException":
|
|
326
|
+
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
327
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
251
328
|
case "ValidationException":
|
|
252
329
|
case "com.amazonaws.s3outposts#ValidationException":
|
|
253
330
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
@@ -310,6 +387,18 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
310
387
|
});
|
|
311
388
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
312
389
|
};
|
|
390
|
+
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
391
|
+
const contents = map({});
|
|
392
|
+
const data = parsedOutput.body;
|
|
393
|
+
if (data.Message != null) {
|
|
394
|
+
contents.Message = __expectString(data.Message);
|
|
395
|
+
}
|
|
396
|
+
const exception = new ThrottlingException({
|
|
397
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
398
|
+
...contents,
|
|
399
|
+
});
|
|
400
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
401
|
+
};
|
|
313
402
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
314
403
|
const contents = map({});
|
|
315
404
|
const data = parsedOutput.body;
|
|
@@ -368,6 +457,25 @@ const deserializeAws_restJson1NetworkInterfaces = (output, context) => {
|
|
|
368
457
|
});
|
|
369
458
|
return retVal;
|
|
370
459
|
};
|
|
460
|
+
const deserializeAws_restJson1Outpost = (output, context) => {
|
|
461
|
+
return {
|
|
462
|
+
CapacityInBytes: __expectLong(output.CapacityInBytes),
|
|
463
|
+
OutpostArn: __expectString(output.OutpostArn),
|
|
464
|
+
OutpostId: __expectString(output.OutpostId),
|
|
465
|
+
OwnerId: __expectString(output.OwnerId),
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
const deserializeAws_restJson1Outposts = (output, context) => {
|
|
469
|
+
const retVal = (output || [])
|
|
470
|
+
.filter((e) => e != null)
|
|
471
|
+
.map((entry) => {
|
|
472
|
+
if (entry === null) {
|
|
473
|
+
return null;
|
|
474
|
+
}
|
|
475
|
+
return deserializeAws_restJson1Outpost(entry, context);
|
|
476
|
+
});
|
|
477
|
+
return retVal;
|
|
478
|
+
};
|
|
371
479
|
const deserializeMetadata = (output) => ({
|
|
372
480
|
httpStatusCode: output.statusCode,
|
|
373
481
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -2,6 +2,7 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
|
2
2
|
import { CreateEndpointCommandInput, CreateEndpointCommandOutput } from "./commands/CreateEndpointCommand";
|
|
3
3
|
import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "./commands/DeleteEndpointCommand";
|
|
4
4
|
import { ListEndpointsCommandInput, ListEndpointsCommandOutput } from "./commands/ListEndpointsCommand";
|
|
5
|
+
import { ListOutpostsWithS3CommandInput, ListOutpostsWithS3CommandOutput } from "./commands/ListOutpostsWithS3Command";
|
|
5
6
|
import { ListSharedEndpointsCommandInput, ListSharedEndpointsCommandOutput } from "./commands/ListSharedEndpointsCommand";
|
|
6
7
|
import { S3OutpostsClient } from "./S3OutpostsClient";
|
|
7
8
|
/**
|
|
@@ -10,12 +11,12 @@ import { S3OutpostsClient } from "./S3OutpostsClient";
|
|
|
10
11
|
export declare class S3Outposts extends S3OutpostsClient {
|
|
11
12
|
/**
|
|
12
13
|
* <p>Creates an endpoint and associates it with the specified Outpost.</p>
|
|
13
|
-
*
|
|
14
|
+
* <note>
|
|
14
15
|
* <p>It can take up to 5 minutes for this action to finish.</p>
|
|
15
16
|
* </note>
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* <p></p>
|
|
18
|
+
* <p>Related actions include:</p>
|
|
19
|
+
* <ul>
|
|
19
20
|
* <li>
|
|
20
21
|
* <p>
|
|
21
22
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
|
|
@@ -33,12 +34,12 @@ export declare class S3Outposts extends S3OutpostsClient {
|
|
|
33
34
|
createEndpoint(args: CreateEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEndpointCommandOutput) => void): void;
|
|
34
35
|
/**
|
|
35
36
|
* <p>Deletes an endpoint.</p>
|
|
36
|
-
*
|
|
37
|
+
* <note>
|
|
37
38
|
* <p>It can take up to 5 minutes for this action to finish.</p>
|
|
38
39
|
* </note>
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
40
|
+
* <p></p>
|
|
41
|
+
* <p>Related actions include:</p>
|
|
42
|
+
* <ul>
|
|
42
43
|
* <li>
|
|
43
44
|
* <p>
|
|
44
45
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
|
|
@@ -56,15 +57,15 @@ export declare class S3Outposts extends S3OutpostsClient {
|
|
|
56
57
|
deleteEndpoint(args: DeleteEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEndpointCommandOutput) => void): void;
|
|
57
58
|
/**
|
|
58
59
|
* <p>Lists endpoints associated with the specified Outpost. </p>
|
|
59
|
-
*
|
|
60
|
-
*
|
|
60
|
+
* <p>Related actions include:</p>
|
|
61
|
+
* <ul>
|
|
61
62
|
* <li>
|
|
62
|
-
*
|
|
63
|
+
* <p>
|
|
63
64
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
|
|
64
65
|
* </p>
|
|
65
66
|
* </li>
|
|
66
67
|
* <li>
|
|
67
|
-
*
|
|
68
|
+
* <p>
|
|
68
69
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
|
|
69
70
|
* </p>
|
|
70
71
|
* </li>
|
|
@@ -73,17 +74,25 @@ export declare class S3Outposts extends S3OutpostsClient {
|
|
|
73
74
|
listEndpoints(args: ListEndpointsCommandInput, options?: __HttpHandlerOptions): Promise<ListEndpointsCommandOutput>;
|
|
74
75
|
listEndpoints(args: ListEndpointsCommandInput, cb: (err: any, data?: ListEndpointsCommandOutput) => void): void;
|
|
75
76
|
listEndpoints(args: ListEndpointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEndpointsCommandOutput) => void): void;
|
|
77
|
+
/**
|
|
78
|
+
* <p>Lists the Outposts with S3 on Outposts capacity for your Amazon Web Services account.
|
|
79
|
+
* Includes S3 on Outposts that you have access to as the Outposts owner, or as a shared user
|
|
80
|
+
* from Resource Access Manager (RAM). </p>
|
|
81
|
+
*/
|
|
82
|
+
listOutpostsWithS3(args: ListOutpostsWithS3CommandInput, options?: __HttpHandlerOptions): Promise<ListOutpostsWithS3CommandOutput>;
|
|
83
|
+
listOutpostsWithS3(args: ListOutpostsWithS3CommandInput, cb: (err: any, data?: ListOutpostsWithS3CommandOutput) => void): void;
|
|
84
|
+
listOutpostsWithS3(args: ListOutpostsWithS3CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOutpostsWithS3CommandOutput) => void): void;
|
|
76
85
|
/**
|
|
77
86
|
* <p>Lists all endpoints associated with an Outpost that has been shared by Amazon Web Services Resource Access Manager (RAM).</p>
|
|
78
|
-
*
|
|
79
|
-
*
|
|
87
|
+
* <p>Related actions include:</p>
|
|
88
|
+
* <ul>
|
|
80
89
|
* <li>
|
|
81
|
-
*
|
|
90
|
+
* <p>
|
|
82
91
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
|
|
83
92
|
* </p>
|
|
84
93
|
* </li>
|
|
85
94
|
* <li>
|
|
86
|
-
*
|
|
95
|
+
* <p>
|
|
87
96
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
|
|
88
97
|
* </p>
|
|
89
98
|
* </li>
|
|
@@ -10,10 +10,11 @@ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as
|
|
|
10
10
|
import { CreateEndpointCommandInput, CreateEndpointCommandOutput } from "./commands/CreateEndpointCommand";
|
|
11
11
|
import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "./commands/DeleteEndpointCommand";
|
|
12
12
|
import { ListEndpointsCommandInput, ListEndpointsCommandOutput } from "./commands/ListEndpointsCommand";
|
|
13
|
+
import { ListOutpostsWithS3CommandInput, ListOutpostsWithS3CommandOutput } from "./commands/ListOutpostsWithS3Command";
|
|
13
14
|
import { ListSharedEndpointsCommandInput, ListSharedEndpointsCommandOutput } from "./commands/ListSharedEndpointsCommand";
|
|
14
15
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
15
|
-
export declare type ServiceInputTypes = CreateEndpointCommandInput | DeleteEndpointCommandInput | ListEndpointsCommandInput | ListSharedEndpointsCommandInput;
|
|
16
|
-
export declare type ServiceOutputTypes = CreateEndpointCommandOutput | DeleteEndpointCommandOutput | ListEndpointsCommandOutput | ListSharedEndpointsCommandOutput;
|
|
16
|
+
export declare type ServiceInputTypes = CreateEndpointCommandInput | DeleteEndpointCommandInput | ListEndpointsCommandInput | ListOutpostsWithS3CommandInput | ListSharedEndpointsCommandInput;
|
|
17
|
+
export declare type ServiceOutputTypes = CreateEndpointCommandOutput | DeleteEndpointCommandOutput | ListEndpointsCommandOutput | ListOutpostsWithS3CommandOutput | ListSharedEndpointsCommandOutput;
|
|
17
18
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
18
19
|
/**
|
|
19
20
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -15,12 +15,12 @@ export interface CreateEndpointCommandOutput extends CreateEndpointResult, __Met
|
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* <p>Creates an endpoint and associates it with the specified Outpost.</p>
|
|
18
|
-
*
|
|
18
|
+
* <note>
|
|
19
19
|
* <p>It can take up to 5 minutes for this action to finish.</p>
|
|
20
20
|
* </note>
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
21
|
+
* <p></p>
|
|
22
|
+
* <p>Related actions include:</p>
|
|
23
|
+
* <ul>
|
|
24
24
|
* <li>
|
|
25
25
|
* <p>
|
|
26
26
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
|
|
@@ -15,12 +15,12 @@ export interface DeleteEndpointCommandOutput extends __MetadataBearer {
|
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* <p>Deletes an endpoint.</p>
|
|
18
|
-
*
|
|
18
|
+
* <note>
|
|
19
19
|
* <p>It can take up to 5 minutes for this action to finish.</p>
|
|
20
20
|
* </note>
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
21
|
+
* <p></p>
|
|
22
|
+
* <p>Related actions include:</p>
|
|
23
|
+
* <ul>
|
|
24
24
|
* <li>
|
|
25
25
|
* <p>
|
|
26
26
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
|
|
@@ -15,15 +15,15 @@ export interface ListEndpointsCommandOutput extends ListEndpointsResult, __Metad
|
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* <p>Lists endpoints associated with the specified Outpost. </p>
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* <p>Related actions include:</p>
|
|
19
|
+
* <ul>
|
|
20
20
|
* <li>
|
|
21
|
-
*
|
|
21
|
+
* <p>
|
|
22
22
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
|
|
23
23
|
* </p>
|
|
24
24
|
* </li>
|
|
25
25
|
* <li>
|
|
26
|
-
*
|
|
26
|
+
* <p>
|
|
27
27
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
|
|
28
28
|
* </p>
|
|
29
29
|
* </li>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { ListOutpostsWithS3Request, ListOutpostsWithS3Result } from "../models/models_0";
|
|
5
|
+
import { S3OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3OutpostsClient";
|
|
6
|
+
/**
|
|
7
|
+
* The input for {@link ListOutpostsWithS3Command}.
|
|
8
|
+
*/
|
|
9
|
+
export interface ListOutpostsWithS3CommandInput extends ListOutpostsWithS3Request {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The output of {@link ListOutpostsWithS3Command}.
|
|
13
|
+
*/
|
|
14
|
+
export interface ListOutpostsWithS3CommandOutput extends ListOutpostsWithS3Result, __MetadataBearer {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* <p>Lists the Outposts with S3 on Outposts capacity for your Amazon Web Services account.
|
|
18
|
+
* Includes S3 on Outposts that you have access to as the Outposts owner, or as a shared user
|
|
19
|
+
* from Resource Access Manager (RAM). </p>
|
|
20
|
+
* @example
|
|
21
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
22
|
+
* ```javascript
|
|
23
|
+
* import { S3OutpostsClient, ListOutpostsWithS3Command } from "@aws-sdk/client-s3outposts"; // ES Modules import
|
|
24
|
+
* // const { S3OutpostsClient, ListOutpostsWithS3Command } = require("@aws-sdk/client-s3outposts"); // CommonJS import
|
|
25
|
+
* const client = new S3OutpostsClient(config);
|
|
26
|
+
* const command = new ListOutpostsWithS3Command(input);
|
|
27
|
+
* const response = await client.send(command);
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @see {@link ListOutpostsWithS3CommandInput} for command's `input` shape.
|
|
31
|
+
* @see {@link ListOutpostsWithS3CommandOutput} for command's `response` shape.
|
|
32
|
+
* @see {@link S3OutpostsClientResolvedConfig | config} for S3OutpostsClient's `config` shape.
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export declare class ListOutpostsWithS3Command extends $Command<ListOutpostsWithS3CommandInput, ListOutpostsWithS3CommandOutput, S3OutpostsClientResolvedConfig> {
|
|
36
|
+
readonly input: ListOutpostsWithS3CommandInput;
|
|
37
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
38
|
+
constructor(input: ListOutpostsWithS3CommandInput);
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3OutpostsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListOutpostsWithS3CommandInput, ListOutpostsWithS3CommandOutput>;
|
|
43
|
+
private serialize;
|
|
44
|
+
private deserialize;
|
|
45
|
+
}
|
|
@@ -15,15 +15,15 @@ export interface ListSharedEndpointsCommandOutput extends ListSharedEndpointsRes
|
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* <p>Lists all endpoints associated with an Outpost that has been shared by Amazon Web Services Resource Access Manager (RAM).</p>
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* <p>Related actions include:</p>
|
|
19
|
+
* <ul>
|
|
20
20
|
* <li>
|
|
21
|
-
*
|
|
21
|
+
* <p>
|
|
22
22
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
|
|
23
23
|
* </p>
|
|
24
24
|
* </li>
|
|
25
25
|
* <li>
|
|
26
|
-
*
|
|
26
|
+
* <p>
|
|
27
27
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
|
|
28
28
|
* </p>
|
|
29
29
|
* </li>
|
|
@@ -48,7 +48,7 @@ export interface CreateEndpointRequest {
|
|
|
48
48
|
* network, choose <code>CustomerOwnedIp</code>. If you choose
|
|
49
49
|
* <code>CustomerOwnedIp</code>, you must also provide the customer-owned IP address
|
|
50
50
|
* pool (CoIP pool).</p>
|
|
51
|
-
*
|
|
51
|
+
* <note>
|
|
52
52
|
* <p>
|
|
53
53
|
* <code>Private</code> is the default access type value.</p>
|
|
54
54
|
* </note>
|
|
@@ -90,6 +90,18 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
90
90
|
*/
|
|
91
91
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
92
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* <p>The request was denied due to request throttling.</p>
|
|
95
|
+
*/
|
|
96
|
+
export declare class ThrottlingException extends __BaseException {
|
|
97
|
+
readonly name: "ThrottlingException";
|
|
98
|
+
readonly $fault: "client";
|
|
99
|
+
Message?: string;
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
104
|
+
}
|
|
93
105
|
/**
|
|
94
106
|
* <p>There was an exception validating this data.</p>
|
|
95
107
|
*/
|
|
@@ -200,6 +212,61 @@ export interface ListEndpointsResult {
|
|
|
200
212
|
*/
|
|
201
213
|
NextToken?: string;
|
|
202
214
|
}
|
|
215
|
+
export interface ListOutpostsWithS3Request {
|
|
216
|
+
/**
|
|
217
|
+
* <p>When you can get additional results from the <code>ListOutpostsWithS3</code> call, a
|
|
218
|
+
* <code>NextToken</code> parameter is returned in the output. You can then pass in a
|
|
219
|
+
* subsequent command to the <code>NextToken</code> parameter to continue listing
|
|
220
|
+
* additional Outposts.</p>
|
|
221
|
+
*/
|
|
222
|
+
NextToken?: string;
|
|
223
|
+
/**
|
|
224
|
+
* <p>The maximum number of Outposts to return. The limit is 100.</p>
|
|
225
|
+
*/
|
|
226
|
+
MaxResults?: number;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* <p>Contains the details for the Outpost object.</p>
|
|
230
|
+
*/
|
|
231
|
+
export interface Outpost {
|
|
232
|
+
/**
|
|
233
|
+
* <p>Specifies the unique Amazon Resource Name (ARN) for the outpost.</p>
|
|
234
|
+
*/
|
|
235
|
+
OutpostArn?: string;
|
|
236
|
+
/**
|
|
237
|
+
* <p>Specifies the unique identifier for the outpost.</p>
|
|
238
|
+
*/
|
|
239
|
+
OutpostId?: string;
|
|
240
|
+
/**
|
|
241
|
+
* <p>Returns the Amazon Web Services account ID of the outpost owner. Useful for comparing owned versus shared outposts.</p>
|
|
242
|
+
*/
|
|
243
|
+
OwnerId?: string;
|
|
244
|
+
/**
|
|
245
|
+
* <p>The Amazon S3 capacity of the outpost in bytes.</p>
|
|
246
|
+
*/
|
|
247
|
+
CapacityInBytes?: number;
|
|
248
|
+
}
|
|
249
|
+
export interface ListOutpostsWithS3Result {
|
|
250
|
+
/**
|
|
251
|
+
* <p>Returns the list of Outposts that have the following characteristics:</p>
|
|
252
|
+
* <ul>
|
|
253
|
+
* <li>
|
|
254
|
+
* <p>outposts that have S3 provisioned</p>
|
|
255
|
+
* </li>
|
|
256
|
+
* <li>
|
|
257
|
+
* <p>outposts that are <code>Active</code> (not pending any provisioning nor decommissioned)</p>
|
|
258
|
+
* </li>
|
|
259
|
+
* <li>
|
|
260
|
+
* <p>outposts to which the the calling Amazon Web Services account has access</p>
|
|
261
|
+
* </li>
|
|
262
|
+
* </ul>
|
|
263
|
+
*/
|
|
264
|
+
Outposts?: Outpost[];
|
|
265
|
+
/**
|
|
266
|
+
* <p>Returns a token that you can use to call <code>ListOutpostsWithS3</code> again and receive additional results, if there are any.</p>
|
|
267
|
+
*/
|
|
268
|
+
NextToken?: string;
|
|
269
|
+
}
|
|
203
270
|
export interface ListSharedEndpointsRequest {
|
|
204
271
|
/**
|
|
205
272
|
* <p>If a previous response from this operation included a <code>NextToken</code> value, you
|
|
@@ -254,6 +321,18 @@ export declare const ListEndpointsRequestFilterSensitiveLog: (obj: ListEndpoints
|
|
|
254
321
|
* @internal
|
|
255
322
|
*/
|
|
256
323
|
export declare const ListEndpointsResultFilterSensitiveLog: (obj: ListEndpointsResult) => any;
|
|
324
|
+
/**
|
|
325
|
+
* @internal
|
|
326
|
+
*/
|
|
327
|
+
export declare const ListOutpostsWithS3RequestFilterSensitiveLog: (obj: ListOutpostsWithS3Request) => any;
|
|
328
|
+
/**
|
|
329
|
+
* @internal
|
|
330
|
+
*/
|
|
331
|
+
export declare const OutpostFilterSensitiveLog: (obj: Outpost) => any;
|
|
332
|
+
/**
|
|
333
|
+
* @internal
|
|
334
|
+
*/
|
|
335
|
+
export declare const ListOutpostsWithS3ResultFilterSensitiveLog: (obj: ListOutpostsWithS3Result) => any;
|
|
257
336
|
/**
|
|
258
337
|
* @internal
|
|
259
338
|
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
import { S3Outposts } from "../S3Outposts";
|
|
3
2
|
import { S3OutpostsClient } from "../S3OutpostsClient";
|
|
4
3
|
export interface S3OutpostsPaginationConfiguration extends PaginationConfiguration {
|
|
5
|
-
client:
|
|
4
|
+
client: S3OutpostsClient;
|
|
6
5
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
import { ListOutpostsWithS3CommandInput, ListOutpostsWithS3CommandOutput } from "../commands/ListOutpostsWithS3Command";
|
|
3
|
+
import { S3OutpostsPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
export declare function paginateListOutpostsWithS3(config: S3OutpostsPaginationConfiguration, input: ListOutpostsWithS3CommandInput, ...additionalArguments: any): Paginator<ListOutpostsWithS3CommandOutput>;
|
|
@@ -3,12 +3,15 @@ import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
|
3
3
|
import { CreateEndpointCommandInput, CreateEndpointCommandOutput } from "../commands/CreateEndpointCommand";
|
|
4
4
|
import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "../commands/DeleteEndpointCommand";
|
|
5
5
|
import { ListEndpointsCommandInput, ListEndpointsCommandOutput } from "../commands/ListEndpointsCommand";
|
|
6
|
+
import { ListOutpostsWithS3CommandInput, ListOutpostsWithS3CommandOutput } from "../commands/ListOutpostsWithS3Command";
|
|
6
7
|
import { ListSharedEndpointsCommandInput, ListSharedEndpointsCommandOutput } from "../commands/ListSharedEndpointsCommand";
|
|
7
8
|
export declare const serializeAws_restJson1CreateEndpointCommand: (input: CreateEndpointCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
8
9
|
export declare const serializeAws_restJson1DeleteEndpointCommand: (input: DeleteEndpointCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
9
10
|
export declare const serializeAws_restJson1ListEndpointsCommand: (input: ListEndpointsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
11
|
+
export declare const serializeAws_restJson1ListOutpostsWithS3Command: (input: ListOutpostsWithS3CommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
10
12
|
export declare const serializeAws_restJson1ListSharedEndpointsCommand: (input: ListSharedEndpointsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
11
13
|
export declare const deserializeAws_restJson1CreateEndpointCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateEndpointCommandOutput>;
|
|
12
14
|
export declare const deserializeAws_restJson1DeleteEndpointCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteEndpointCommandOutput>;
|
|
13
15
|
export declare const deserializeAws_restJson1ListEndpointsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListEndpointsCommandOutput>;
|
|
16
|
+
export declare const deserializeAws_restJson1ListOutpostsWithS3Command: (output: __HttpResponse, context: __SerdeContext) => Promise<ListOutpostsWithS3CommandOutput>;
|
|
14
17
|
export declare const deserializeAws_restJson1ListSharedEndpointsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListSharedEndpointsCommandOutput>;
|
|
@@ -11,6 +11,10 @@ import {
|
|
|
11
11
|
ListEndpointsCommandInput,
|
|
12
12
|
ListEndpointsCommandOutput,
|
|
13
13
|
} from "./commands/ListEndpointsCommand";
|
|
14
|
+
import {
|
|
15
|
+
ListOutpostsWithS3CommandInput,
|
|
16
|
+
ListOutpostsWithS3CommandOutput,
|
|
17
|
+
} from "./commands/ListOutpostsWithS3Command";
|
|
14
18
|
import {
|
|
15
19
|
ListSharedEndpointsCommandInput,
|
|
16
20
|
ListSharedEndpointsCommandOutput,
|
|
@@ -56,6 +60,19 @@ export declare class S3Outposts extends S3OutpostsClient {
|
|
|
56
60
|
options: __HttpHandlerOptions,
|
|
57
61
|
cb: (err: any, data?: ListEndpointsCommandOutput) => void
|
|
58
62
|
): void;
|
|
63
|
+
listOutpostsWithS3(
|
|
64
|
+
args: ListOutpostsWithS3CommandInput,
|
|
65
|
+
options?: __HttpHandlerOptions
|
|
66
|
+
): Promise<ListOutpostsWithS3CommandOutput>;
|
|
67
|
+
listOutpostsWithS3(
|
|
68
|
+
args: ListOutpostsWithS3CommandInput,
|
|
69
|
+
cb: (err: any, data?: ListOutpostsWithS3CommandOutput) => void
|
|
70
|
+
): void;
|
|
71
|
+
listOutpostsWithS3(
|
|
72
|
+
args: ListOutpostsWithS3CommandInput,
|
|
73
|
+
options: __HttpHandlerOptions,
|
|
74
|
+
cb: (err: any, data?: ListOutpostsWithS3CommandOutput) => void
|
|
75
|
+
): void;
|
|
59
76
|
listSharedEndpoints(
|
|
60
77
|
args: ListSharedEndpointsCommandInput,
|
|
61
78
|
options?: __HttpHandlerOptions
|
|
@@ -56,6 +56,10 @@ import {
|
|
|
56
56
|
ListEndpointsCommandInput,
|
|
57
57
|
ListEndpointsCommandOutput,
|
|
58
58
|
} from "./commands/ListEndpointsCommand";
|
|
59
|
+
import {
|
|
60
|
+
ListOutpostsWithS3CommandInput,
|
|
61
|
+
ListOutpostsWithS3CommandOutput,
|
|
62
|
+
} from "./commands/ListOutpostsWithS3Command";
|
|
59
63
|
import {
|
|
60
64
|
ListSharedEndpointsCommandInput,
|
|
61
65
|
ListSharedEndpointsCommandOutput,
|
|
@@ -69,11 +73,13 @@ export declare type ServiceInputTypes =
|
|
|
69
73
|
| CreateEndpointCommandInput
|
|
70
74
|
| DeleteEndpointCommandInput
|
|
71
75
|
| ListEndpointsCommandInput
|
|
76
|
+
| ListOutpostsWithS3CommandInput
|
|
72
77
|
| ListSharedEndpointsCommandInput;
|
|
73
78
|
export declare type ServiceOutputTypes =
|
|
74
79
|
| CreateEndpointCommandOutput
|
|
75
80
|
| DeleteEndpointCommandOutput
|
|
76
81
|
| ListEndpointsCommandOutput
|
|
82
|
+
| ListOutpostsWithS3CommandOutput
|
|
77
83
|
| ListSharedEndpointsCommandOutput;
|
|
78
84
|
export interface ClientDefaults
|
|
79
85
|
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
ListOutpostsWithS3Request,
|
|
11
|
+
ListOutpostsWithS3Result,
|
|
12
|
+
} from "../models/models_0";
|
|
13
|
+
import {
|
|
14
|
+
S3OutpostsClientResolvedConfig,
|
|
15
|
+
ServiceInputTypes,
|
|
16
|
+
ServiceOutputTypes,
|
|
17
|
+
} from "../S3OutpostsClient";
|
|
18
|
+
export interface ListOutpostsWithS3CommandInput
|
|
19
|
+
extends ListOutpostsWithS3Request {}
|
|
20
|
+
export interface ListOutpostsWithS3CommandOutput
|
|
21
|
+
extends ListOutpostsWithS3Result,
|
|
22
|
+
__MetadataBearer {}
|
|
23
|
+
export declare class ListOutpostsWithS3Command extends $Command<
|
|
24
|
+
ListOutpostsWithS3CommandInput,
|
|
25
|
+
ListOutpostsWithS3CommandOutput,
|
|
26
|
+
S3OutpostsClientResolvedConfig
|
|
27
|
+
> {
|
|
28
|
+
readonly input: ListOutpostsWithS3CommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: ListOutpostsWithS3CommandInput);
|
|
31
|
+
resolveMiddleware(
|
|
32
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
33
|
+
configuration: S3OutpostsClientResolvedConfig,
|
|
34
|
+
options?: __HttpHandlerOptions
|
|
35
|
+
): Handler<ListOutpostsWithS3CommandInput, ListOutpostsWithS3CommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|