@aws-sdk/client-s3outposts 3.54.1 → 3.58.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/S3Outposts.js +15 -0
- package/dist-cjs/S3OutpostsClient.js +13 -13
- package/dist-cjs/commands/CreateEndpointCommand.js +3 -3
- package/dist-cjs/commands/DeleteEndpointCommand.js +3 -3
- package/dist-cjs/commands/ListEndpointsCommand.js +3 -3
- package/dist-cjs/commands/ListSharedEndpointsCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/models/models_0.js +13 -1
- package/dist-cjs/pagination/ListSharedEndpointsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +101 -29
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/S3Outposts.js +18 -3
- package/dist-es/commands/ListSharedEndpointsCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/pagination/ListEndpointsPaginator.js +4 -4
- package/dist-es/pagination/ListSharedEndpointsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +98 -3
- package/dist-types/S3Outposts.d.ts +27 -21
- package/dist-types/S3OutpostsClient.d.ts +3 -2
- package/dist-types/commands/CreateEndpointCommand.d.ts +2 -6
- package/dist-types/commands/DeleteEndpointCommand.d.ts +2 -6
- package/dist-types/commands/ListEndpointsCommand.d.ts +3 -9
- package/dist-types/commands/ListSharedEndpointsCommand.d.ts +48 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +64 -18
- package/dist-types/pagination/ListSharedEndpointsPaginator.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/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/S3Outposts.d.ts +5 -0
- package/dist-types/ts3.4/S3OutpostsClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/ListSharedEndpointsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -0
- package/dist-types/ts3.4/pagination/ListSharedEndpointsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
package/dist-es/S3Outposts.js
CHANGED
|
@@ -2,6 +2,7 @@ import { __extends } from "tslib";
|
|
|
2
2
|
import { CreateEndpointCommand, } from "./commands/CreateEndpointCommand";
|
|
3
3
|
import { DeleteEndpointCommand, } from "./commands/DeleteEndpointCommand";
|
|
4
4
|
import { ListEndpointsCommand, } from "./commands/ListEndpointsCommand";
|
|
5
|
+
import { ListSharedEndpointsCommand, } from "./commands/ListSharedEndpointsCommand";
|
|
5
6
|
import { S3OutpostsClient } from "./S3OutpostsClient";
|
|
6
7
|
var S3Outposts = (function (_super) {
|
|
7
8
|
__extends(S3Outposts, _super);
|
|
@@ -15,7 +16,7 @@ var S3Outposts = (function (_super) {
|
|
|
15
16
|
}
|
|
16
17
|
else if (typeof cb === "function") {
|
|
17
18
|
if (typeof optionsOrCb !== "object")
|
|
18
|
-
throw new Error("Expect http options but get "
|
|
19
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
19
20
|
this.send(command, optionsOrCb || {}, cb);
|
|
20
21
|
}
|
|
21
22
|
else {
|
|
@@ -29,7 +30,7 @@ var S3Outposts = (function (_super) {
|
|
|
29
30
|
}
|
|
30
31
|
else if (typeof cb === "function") {
|
|
31
32
|
if (typeof optionsOrCb !== "object")
|
|
32
|
-
throw new Error("Expect http options but get "
|
|
33
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
33
34
|
this.send(command, optionsOrCb || {}, cb);
|
|
34
35
|
}
|
|
35
36
|
else {
|
|
@@ -43,7 +44,21 @@ var S3Outposts = (function (_super) {
|
|
|
43
44
|
}
|
|
44
45
|
else if (typeof cb === "function") {
|
|
45
46
|
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error("Expect http options but get "
|
|
47
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
48
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
return this.send(command, optionsOrCb);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
S3Outposts.prototype.listSharedEndpoints = function (args, optionsOrCb, cb) {
|
|
55
|
+
var command = new ListSharedEndpointsCommand(args);
|
|
56
|
+
if (typeof optionsOrCb === "function") {
|
|
57
|
+
this.send(command, optionsOrCb);
|
|
58
|
+
}
|
|
59
|
+
else if (typeof cb === "function") {
|
|
60
|
+
if (typeof optionsOrCb !== "object")
|
|
61
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
47
62
|
this.send(command, optionsOrCb || {}, cb);
|
|
48
63
|
}
|
|
49
64
|
else {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListSharedEndpointsRequest, ListSharedEndpointsResult } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListSharedEndpointsCommand, serializeAws_restJson1ListSharedEndpointsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListSharedEndpointsCommand = (function (_super) {
|
|
7
|
+
__extends(ListSharedEndpointsCommand, _super);
|
|
8
|
+
function ListSharedEndpointsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListSharedEndpointsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "S3OutpostsClient";
|
|
18
|
+
var commandName = "ListSharedEndpointsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListSharedEndpointsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListSharedEndpointsResult.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListSharedEndpointsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListSharedEndpointsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListSharedEndpointsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListSharedEndpointsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListSharedEndpointsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListSharedEndpointsCommand };
|
|
@@ -104,3 +104,11 @@ export var ListEndpointsResult;
|
|
|
104
104
|
(function (ListEndpointsResult) {
|
|
105
105
|
ListEndpointsResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
106
106
|
})(ListEndpointsResult || (ListEndpointsResult = {}));
|
|
107
|
+
export var ListSharedEndpointsRequest;
|
|
108
|
+
(function (ListSharedEndpointsRequest) {
|
|
109
|
+
ListSharedEndpointsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
110
|
+
})(ListSharedEndpointsRequest || (ListSharedEndpointsRequest = {}));
|
|
111
|
+
export var ListSharedEndpointsResult;
|
|
112
|
+
(function (ListSharedEndpointsResult) {
|
|
113
|
+
ListSharedEndpointsResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
114
|
+
})(ListSharedEndpointsResult || (ListSharedEndpointsResult = {}));
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListEndpointsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListEndpointsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listEndpoints.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listEndpoints.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListEndpoints(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof S3Outposts)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof S3OutpostsClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListSharedEndpointsCommand, } from "../commands/ListSharedEndpointsCommand";
|
|
3
|
+
import { S3Outposts } from "../S3Outposts";
|
|
4
|
+
import { S3OutpostsClient } from "../S3OutpostsClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListSharedEndpointsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listSharedEndpoints.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListSharedEndpoints(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListSharedEndpoints_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof S3Outposts)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof S3OutpostsClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected S3Outposts | S3OutpostsClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.NextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -13,7 +13,7 @@ export var serializeAws_restJson1CreateEndpointCommand = function (input, contex
|
|
|
13
13
|
headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
resolvedPath = ""
|
|
16
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/S3Outposts/CreateEndpoint";
|
|
17
17
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccessType !== undefined && input.AccessType !== null && { AccessType: input.AccessType })), (input.CustomerOwnedIpv4Pool !== undefined &&
|
|
18
18
|
input.CustomerOwnedIpv4Pool !== null && { CustomerOwnedIpv4Pool: input.CustomerOwnedIpv4Pool })), (input.OutpostId !== undefined && input.OutpostId !== null && { OutpostId: input.OutpostId })), (input.SecurityGroupId !== undefined &&
|
|
19
19
|
input.SecurityGroupId !== null && { SecurityGroupId: input.SecurityGroupId })), (input.SubnetId !== undefined && input.SubnetId !== null && { SubnetId: input.SubnetId })));
|
|
@@ -37,7 +37,7 @@ export var serializeAws_restJson1DeleteEndpointCommand = function (input, contex
|
|
|
37
37
|
case 1:
|
|
38
38
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
39
39
|
headers = {};
|
|
40
|
-
resolvedPath = ""
|
|
40
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/S3Outposts/DeleteEndpoint";
|
|
41
41
|
query = __assign(__assign({}, (input.EndpointId !== undefined && { endpointId: input.EndpointId })), (input.OutpostId !== undefined && { outpostId: input.OutpostId }));
|
|
42
42
|
return [2, new __HttpRequest({
|
|
43
43
|
protocol: protocol,
|
|
@@ -60,7 +60,7 @@ export var serializeAws_restJson1ListEndpointsCommand = function (input, context
|
|
|
60
60
|
case 1:
|
|
61
61
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
62
62
|
headers = {};
|
|
63
|
-
resolvedPath = ""
|
|
63
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/S3Outposts/ListEndpoints";
|
|
64
64
|
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
65
65
|
return [2, new __HttpRequest({
|
|
66
66
|
protocol: protocol,
|
|
@@ -75,6 +75,29 @@ export var serializeAws_restJson1ListEndpointsCommand = function (input, context
|
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
}); };
|
|
78
|
+
export var serializeAws_restJson1ListSharedEndpointsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
79
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
80
|
+
return __generator(this, function (_c) {
|
|
81
|
+
switch (_c.label) {
|
|
82
|
+
case 0: return [4, context.endpoint()];
|
|
83
|
+
case 1:
|
|
84
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
85
|
+
headers = {};
|
|
86
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/S3Outposts/ListSharedEndpoints";
|
|
87
|
+
query = __assign(__assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.OutpostId !== undefined && { outpostId: input.OutpostId }));
|
|
88
|
+
return [2, new __HttpRequest({
|
|
89
|
+
protocol: protocol,
|
|
90
|
+
hostname: hostname,
|
|
91
|
+
port: port,
|
|
92
|
+
method: "GET",
|
|
93
|
+
headers: headers,
|
|
94
|
+
path: resolvedPath,
|
|
95
|
+
query: query,
|
|
96
|
+
body: body,
|
|
97
|
+
})];
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}); };
|
|
78
101
|
export var deserializeAws_restJson1CreateEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
79
102
|
var contents, data, _a, _b;
|
|
80
103
|
return __generator(this, function (_c) {
|
|
@@ -281,6 +304,78 @@ var deserializeAws_restJson1ListEndpointsCommandError = function (output, contex
|
|
|
281
304
|
}
|
|
282
305
|
});
|
|
283
306
|
}); };
|
|
307
|
+
export var deserializeAws_restJson1ListSharedEndpointsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
308
|
+
var contents, data, _a, _b;
|
|
309
|
+
return __generator(this, function (_c) {
|
|
310
|
+
switch (_c.label) {
|
|
311
|
+
case 0:
|
|
312
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
313
|
+
return [2, deserializeAws_restJson1ListSharedEndpointsCommandError(output, context)];
|
|
314
|
+
}
|
|
315
|
+
contents = {
|
|
316
|
+
$metadata: deserializeMetadata(output),
|
|
317
|
+
Endpoints: undefined,
|
|
318
|
+
NextToken: undefined,
|
|
319
|
+
};
|
|
320
|
+
_a = __expectNonNull;
|
|
321
|
+
_b = __expectObject;
|
|
322
|
+
return [4, parseBody(output.body, context)];
|
|
323
|
+
case 1:
|
|
324
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
325
|
+
if (data.Endpoints !== undefined && data.Endpoints !== null) {
|
|
326
|
+
contents.Endpoints = deserializeAws_restJson1Endpoints(data.Endpoints, context);
|
|
327
|
+
}
|
|
328
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
329
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
330
|
+
}
|
|
331
|
+
return [2, Promise.resolve(contents)];
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
}); };
|
|
335
|
+
var deserializeAws_restJson1ListSharedEndpointsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
336
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
337
|
+
var _c;
|
|
338
|
+
return __generator(this, function (_d) {
|
|
339
|
+
switch (_d.label) {
|
|
340
|
+
case 0:
|
|
341
|
+
_a = [__assign({}, output)];
|
|
342
|
+
_c = {};
|
|
343
|
+
return [4, parseBody(output.body, context)];
|
|
344
|
+
case 1:
|
|
345
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
346
|
+
errorCode = "UnknownError";
|
|
347
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
348
|
+
_b = errorCode;
|
|
349
|
+
switch (_b) {
|
|
350
|
+
case "AccessDeniedException": return [3, 2];
|
|
351
|
+
case "com.amazonaws.s3outposts#AccessDeniedException": return [3, 2];
|
|
352
|
+
case "InternalServerException": return [3, 4];
|
|
353
|
+
case "com.amazonaws.s3outposts#InternalServerException": return [3, 4];
|
|
354
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
355
|
+
case "com.amazonaws.s3outposts#ResourceNotFoundException": return [3, 6];
|
|
356
|
+
case "ValidationException": return [3, 8];
|
|
357
|
+
case "com.amazonaws.s3outposts#ValidationException": return [3, 8];
|
|
358
|
+
}
|
|
359
|
+
return [3, 10];
|
|
360
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
361
|
+
case 3: throw _d.sent();
|
|
362
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
363
|
+
case 5: throw _d.sent();
|
|
364
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
365
|
+
case 7: throw _d.sent();
|
|
366
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
367
|
+
case 9: throw _d.sent();
|
|
368
|
+
case 10:
|
|
369
|
+
parsedBody = parsedOutput.body;
|
|
370
|
+
response = new __BaseException({
|
|
371
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
372
|
+
$fault: "client",
|
|
373
|
+
$metadata: deserializeMetadata(output),
|
|
374
|
+
});
|
|
375
|
+
throw __decorateServiceException(response, parsedBody);
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
}); };
|
|
284
379
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
285
380
|
var contents, data, exception;
|
|
286
381
|
return __generator(this, function (_a) {
|
|
@@ -2,19 +2,16 @@ 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 { ListSharedEndpointsCommandInput, ListSharedEndpointsCommandOutput } from "./commands/ListSharedEndpointsCommand";
|
|
5
6
|
import { S3OutpostsClient } from "./S3OutpostsClient";
|
|
6
7
|
/**
|
|
7
8
|
* <p>Amazon S3 on Outposts provides access to S3 on Outposts operations.</p>
|
|
8
9
|
*/
|
|
9
10
|
export declare class S3Outposts extends S3OutpostsClient {
|
|
10
11
|
/**
|
|
11
|
-
* <p>
|
|
12
|
-
* S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your
|
|
13
|
-
* virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html">
|
|
14
|
-
* Accessing S3 on Outposts using VPC only access points</a>.</p>
|
|
15
|
-
* <p>This action creates an endpoint and associates it with the specified Outposts.</p>
|
|
12
|
+
* <p>Creates an endpoint and associates it with the specified Outpost.</p>
|
|
16
13
|
* <note>
|
|
17
|
-
* <p>It can take up to 5 minutes for this action to
|
|
14
|
+
* <p>It can take up to 5 minutes for this action to finish.</p>
|
|
18
15
|
* </note>
|
|
19
16
|
* <p></p>
|
|
20
17
|
* <p>Related actions include:</p>
|
|
@@ -35,13 +32,9 @@ export declare class S3Outposts extends S3OutpostsClient {
|
|
|
35
32
|
createEndpoint(args: CreateEndpointCommandInput, cb: (err: any, data?: CreateEndpointCommandOutput) => void): void;
|
|
36
33
|
createEndpoint(args: CreateEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEndpointCommandOutput) => void): void;
|
|
37
34
|
/**
|
|
38
|
-
* <p>
|
|
39
|
-
* S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your
|
|
40
|
-
* virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html">
|
|
41
|
-
* Accessing S3 on Outposts using VPC only access points</a>.</p>
|
|
42
|
-
* <p>This action deletes an endpoint.</p>
|
|
35
|
+
* <p>Deletes an endpoint.</p>
|
|
43
36
|
* <note>
|
|
44
|
-
* <p>It can take up to 5 minutes for this action to
|
|
37
|
+
* <p>It can take up to 5 minutes for this action to finish.</p>
|
|
45
38
|
* </note>
|
|
46
39
|
* <p></p>
|
|
47
40
|
* <p>Related actions include:</p>
|
|
@@ -62,22 +55,16 @@ export declare class S3Outposts extends S3OutpostsClient {
|
|
|
62
55
|
deleteEndpoint(args: DeleteEndpointCommandInput, cb: (err: any, data?: DeleteEndpointCommandOutput) => void): void;
|
|
63
56
|
deleteEndpoint(args: DeleteEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEndpointCommandOutput) => void): void;
|
|
64
57
|
/**
|
|
65
|
-
* <p>
|
|
66
|
-
* S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your
|
|
67
|
-
* virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html">
|
|
68
|
-
* Accessing S3 on Outposts using VPC only access points</a>.</p>
|
|
69
|
-
* <p>This action lists endpoints associated with the Outposts.
|
|
70
|
-
* </p>
|
|
71
|
-
* <p></p>
|
|
58
|
+
* <p>Lists endpoints associated with the specified Outpost. </p>
|
|
72
59
|
* <p>Related actions include:</p>
|
|
73
60
|
* <ul>
|
|
74
61
|
* <li>
|
|
75
|
-
*
|
|
62
|
+
* <p>
|
|
76
63
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
|
|
77
64
|
* </p>
|
|
78
65
|
* </li>
|
|
79
66
|
* <li>
|
|
80
|
-
*
|
|
67
|
+
* <p>
|
|
81
68
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
|
|
82
69
|
* </p>
|
|
83
70
|
* </li>
|
|
@@ -86,4 +73,23 @@ export declare class S3Outposts extends S3OutpostsClient {
|
|
|
86
73
|
listEndpoints(args: ListEndpointsCommandInput, options?: __HttpHandlerOptions): Promise<ListEndpointsCommandOutput>;
|
|
87
74
|
listEndpoints(args: ListEndpointsCommandInput, cb: (err: any, data?: ListEndpointsCommandOutput) => void): void;
|
|
88
75
|
listEndpoints(args: ListEndpointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEndpointsCommandOutput) => void): void;
|
|
76
|
+
/**
|
|
77
|
+
* <p>Lists all endpoints associated with an Outpost that has been shared by Amazon Web Services Resource Access Manager (RAM).</p>
|
|
78
|
+
* <p>Related actions include:</p>
|
|
79
|
+
* <ul>
|
|
80
|
+
* <li>
|
|
81
|
+
* <p>
|
|
82
|
+
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
|
|
83
|
+
* </p>
|
|
84
|
+
* </li>
|
|
85
|
+
* <li>
|
|
86
|
+
* <p>
|
|
87
|
+
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
|
|
88
|
+
* </p>
|
|
89
|
+
* </li>
|
|
90
|
+
* </ul>
|
|
91
|
+
*/
|
|
92
|
+
listSharedEndpoints(args: ListSharedEndpointsCommandInput, options?: __HttpHandlerOptions): Promise<ListSharedEndpointsCommandOutput>;
|
|
93
|
+
listSharedEndpoints(args: ListSharedEndpointsCommandInput, cb: (err: any, data?: ListSharedEndpointsCommandOutput) => void): void;
|
|
94
|
+
listSharedEndpoints(args: ListSharedEndpointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSharedEndpointsCommandOutput) => void): void;
|
|
89
95
|
}
|
|
@@ -9,8 +9,9 @@ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Creden
|
|
|
9
9
|
import { CreateEndpointCommandInput, CreateEndpointCommandOutput } from "./commands/CreateEndpointCommand";
|
|
10
10
|
import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "./commands/DeleteEndpointCommand";
|
|
11
11
|
import { ListEndpointsCommandInput, ListEndpointsCommandOutput } from "./commands/ListEndpointsCommand";
|
|
12
|
-
|
|
13
|
-
export declare type
|
|
12
|
+
import { ListSharedEndpointsCommandInput, ListSharedEndpointsCommandOutput } from "./commands/ListSharedEndpointsCommand";
|
|
13
|
+
export declare type ServiceInputTypes = CreateEndpointCommandInput | DeleteEndpointCommandInput | ListEndpointsCommandInput | ListSharedEndpointsCommandInput;
|
|
14
|
+
export declare type ServiceOutputTypes = CreateEndpointCommandOutput | DeleteEndpointCommandOutput | ListEndpointsCommandOutput | ListSharedEndpointsCommandOutput;
|
|
14
15
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
15
16
|
/**
|
|
16
17
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -7,13 +7,9 @@ export interface CreateEndpointCommandInput extends CreateEndpointRequest {
|
|
|
7
7
|
export interface CreateEndpointCommandOutput extends CreateEndpointResult, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>
|
|
11
|
-
* S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your
|
|
12
|
-
* virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html">
|
|
13
|
-
* Accessing S3 on Outposts using VPC only access points</a>.</p>
|
|
14
|
-
* <p>This action creates an endpoint and associates it with the specified Outposts.</p>
|
|
10
|
+
* <p>Creates an endpoint and associates it with the specified Outpost.</p>
|
|
15
11
|
* <note>
|
|
16
|
-
* <p>It can take up to 5 minutes for this action to
|
|
12
|
+
* <p>It can take up to 5 minutes for this action to finish.</p>
|
|
17
13
|
* </note>
|
|
18
14
|
* <p></p>
|
|
19
15
|
* <p>Related actions include:</p>
|
|
@@ -7,13 +7,9 @@ export interface DeleteEndpointCommandInput extends DeleteEndpointRequest {
|
|
|
7
7
|
export interface DeleteEndpointCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>
|
|
11
|
-
* S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your
|
|
12
|
-
* virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html">
|
|
13
|
-
* Accessing S3 on Outposts using VPC only access points</a>.</p>
|
|
14
|
-
* <p>This action deletes an endpoint.</p>
|
|
10
|
+
* <p>Deletes an endpoint.</p>
|
|
15
11
|
* <note>
|
|
16
|
-
* <p>It can take up to 5 minutes for this action to
|
|
12
|
+
* <p>It can take up to 5 minutes for this action to finish.</p>
|
|
17
13
|
* </note>
|
|
18
14
|
* <p></p>
|
|
19
15
|
* <p>Related actions include:</p>
|
|
@@ -7,22 +7,16 @@ export interface ListEndpointsCommandInput extends ListEndpointsRequest {
|
|
|
7
7
|
export interface ListEndpointsCommandOutput extends ListEndpointsResult, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>
|
|
11
|
-
* S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your
|
|
12
|
-
* virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html">
|
|
13
|
-
* Accessing S3 on Outposts using VPC only access points</a>.</p>
|
|
14
|
-
* <p>This action lists endpoints associated with the Outposts.
|
|
15
|
-
* </p>
|
|
16
|
-
* <p></p>
|
|
10
|
+
* <p>Lists endpoints associated with the specified Outpost. </p>
|
|
17
11
|
* <p>Related actions include:</p>
|
|
18
12
|
* <ul>
|
|
19
13
|
* <li>
|
|
20
|
-
*
|
|
14
|
+
* <p>
|
|
21
15
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
|
|
22
16
|
* </p>
|
|
23
17
|
* </li>
|
|
24
18
|
* <li>
|
|
25
|
-
*
|
|
19
|
+
* <p>
|
|
26
20
|
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
|
|
27
21
|
* </p>
|
|
28
22
|
* </li>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { ListSharedEndpointsRequest, ListSharedEndpointsResult } from "../models/models_0";
|
|
4
|
+
import { S3OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3OutpostsClient";
|
|
5
|
+
export interface ListSharedEndpointsCommandInput extends ListSharedEndpointsRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface ListSharedEndpointsCommandOutput extends ListSharedEndpointsResult, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Lists all endpoints associated with an Outpost that has been shared by Amazon Web Services Resource Access Manager (RAM).</p>
|
|
11
|
+
* <p>Related actions include:</p>
|
|
12
|
+
* <ul>
|
|
13
|
+
* <li>
|
|
14
|
+
* <p>
|
|
15
|
+
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
|
|
16
|
+
* </p>
|
|
17
|
+
* </li>
|
|
18
|
+
* <li>
|
|
19
|
+
* <p>
|
|
20
|
+
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
|
|
21
|
+
* </p>
|
|
22
|
+
* </li>
|
|
23
|
+
* </ul>
|
|
24
|
+
* @example
|
|
25
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
26
|
+
* ```javascript
|
|
27
|
+
* import { S3OutpostsClient, ListSharedEndpointsCommand } from "@aws-sdk/client-s3outposts"; // ES Modules import
|
|
28
|
+
* // const { S3OutpostsClient, ListSharedEndpointsCommand } = require("@aws-sdk/client-s3outposts"); // CommonJS import
|
|
29
|
+
* const client = new S3OutpostsClient(config);
|
|
30
|
+
* const command = new ListSharedEndpointsCommand(input);
|
|
31
|
+
* const response = await client.send(command);
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @see {@link ListSharedEndpointsCommandInput} for command's `input` shape.
|
|
35
|
+
* @see {@link ListSharedEndpointsCommandOutput} for command's `response` shape.
|
|
36
|
+
* @see {@link S3OutpostsClientResolvedConfig | config} for S3OutpostsClient's `config` shape.
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
export declare class ListSharedEndpointsCommand extends $Command<ListSharedEndpointsCommandInput, ListSharedEndpointsCommandOutput, S3OutpostsClientResolvedConfig> {
|
|
40
|
+
readonly input: ListSharedEndpointsCommandInput;
|
|
41
|
+
constructor(input: ListSharedEndpointsCommandInput);
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3OutpostsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListSharedEndpointsCommandInput, ListSharedEndpointsCommandOutput>;
|
|
46
|
+
private serialize;
|
|
47
|
+
private deserialize;
|
|
48
|
+
}
|