@aws-sdk/client-s3outposts 3.183.0 → 3.186.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 +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/S3Outposts.js +25 -18
- package/dist-es/S3OutpostsClient.js +28 -22
- package/dist-es/commands/CreateEndpointCommand.js +28 -21
- package/dist-es/commands/DeleteEndpointCommand.js +29 -22
- package/dist-es/commands/ListEndpointsCommand.js +28 -21
- package/dist-es/commands/ListSharedEndpointsCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/S3OutpostsServiceException.js +10 -5
- package/dist-es/models/models_0.js +70 -87
- package/dist-es/pagination/ListEndpointsPaginator.js +68 -25
- package/dist-es/pagination/ListSharedEndpointsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +481 -341
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
|
@@ -1,104 +1,87 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
1
2
|
import { S3OutpostsServiceException as __BaseException } from "./S3OutpostsServiceException";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
-
this.Message = opts.Message;
|
|
3
|
+
var AccessDeniedException = (function (_super) {
|
|
4
|
+
__extends(AccessDeniedException, _super);
|
|
5
|
+
function AccessDeniedException(opts) {
|
|
6
|
+
var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
|
|
7
|
+
_this.name = "AccessDeniedException";
|
|
8
|
+
_this.$fault = "client";
|
|
9
|
+
Object.setPrototypeOf(_this, AccessDeniedException.prototype);
|
|
10
|
+
_this.Message = opts.Message;
|
|
11
|
+
return _this;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
13
|
+
return AccessDeniedException;
|
|
14
|
+
}(__BaseException));
|
|
15
|
+
export { AccessDeniedException };
|
|
16
|
+
var ConflictException = (function (_super) {
|
|
17
|
+
__extends(ConflictException, _super);
|
|
18
|
+
function ConflictException(opts) {
|
|
19
|
+
var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
|
|
20
|
+
_this.name = "ConflictException";
|
|
21
|
+
_this.$fault = "client";
|
|
22
|
+
Object.setPrototypeOf(_this, ConflictException.prototype);
|
|
23
|
+
_this.Message = opts.Message;
|
|
24
|
+
return _this;
|
|
26
25
|
}
|
|
27
|
-
|
|
26
|
+
return ConflictException;
|
|
27
|
+
}(__BaseException));
|
|
28
|
+
export { ConflictException };
|
|
28
29
|
export var EndpointAccessType;
|
|
29
30
|
(function (EndpointAccessType) {
|
|
30
31
|
EndpointAccessType["CUSTOMER_OWNED_IP"] = "CustomerOwnedIp";
|
|
31
32
|
EndpointAccessType["PRIVATE"] = "Private";
|
|
32
33
|
})(EndpointAccessType || (EndpointAccessType = {}));
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
43
|
-
this.Message = opts.Message;
|
|
34
|
+
var InternalServerException = (function (_super) {
|
|
35
|
+
__extends(InternalServerException, _super);
|
|
36
|
+
function InternalServerException(opts) {
|
|
37
|
+
var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
|
|
38
|
+
_this.name = "InternalServerException";
|
|
39
|
+
_this.$fault = "server";
|
|
40
|
+
Object.setPrototypeOf(_this, InternalServerException.prototype);
|
|
41
|
+
_this.Message = opts.Message;
|
|
42
|
+
return _this;
|
|
44
43
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
44
|
+
return InternalServerException;
|
|
45
|
+
}(__BaseException));
|
|
46
|
+
export { InternalServerException };
|
|
47
|
+
var ResourceNotFoundException = (function (_super) {
|
|
48
|
+
__extends(ResourceNotFoundException, _super);
|
|
49
|
+
function ResourceNotFoundException(opts) {
|
|
50
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
51
|
+
_this.name = "ResourceNotFoundException";
|
|
52
|
+
_this.$fault = "client";
|
|
53
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
54
|
+
_this.Message = opts.Message;
|
|
55
|
+
return _this;
|
|
57
56
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
57
|
+
return ResourceNotFoundException;
|
|
58
|
+
}(__BaseException));
|
|
59
|
+
export { ResourceNotFoundException };
|
|
60
|
+
var ValidationException = (function (_super) {
|
|
61
|
+
__extends(ValidationException, _super);
|
|
62
|
+
function ValidationException(opts) {
|
|
63
|
+
var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
|
|
64
|
+
_this.name = "ValidationException";
|
|
65
|
+
_this.$fault = "client";
|
|
66
|
+
Object.setPrototypeOf(_this, ValidationException.prototype);
|
|
67
|
+
_this.Message = opts.Message;
|
|
68
|
+
return _this;
|
|
70
69
|
}
|
|
71
|
-
|
|
70
|
+
return ValidationException;
|
|
71
|
+
}(__BaseException));
|
|
72
|
+
export { ValidationException };
|
|
72
73
|
export var EndpointStatus;
|
|
73
74
|
(function (EndpointStatus) {
|
|
74
75
|
EndpointStatus["AVAILABLE"] = "Available";
|
|
75
76
|
EndpointStatus["DELETING"] = "Deleting";
|
|
76
77
|
EndpointStatus["PENDING"] = "Pending";
|
|
77
78
|
})(EndpointStatus || (EndpointStatus = {}));
|
|
78
|
-
export
|
|
79
|
-
|
|
80
|
-
});
|
|
81
|
-
export
|
|
82
|
-
|
|
83
|
-
});
|
|
84
|
-
export
|
|
85
|
-
|
|
86
|
-
});
|
|
87
|
-
export const NetworkInterfaceFilterSensitiveLog = (obj) => ({
|
|
88
|
-
...obj,
|
|
89
|
-
});
|
|
90
|
-
export const EndpointFilterSensitiveLog = (obj) => ({
|
|
91
|
-
...obj,
|
|
92
|
-
});
|
|
93
|
-
export const ListEndpointsRequestFilterSensitiveLog = (obj) => ({
|
|
94
|
-
...obj,
|
|
95
|
-
});
|
|
96
|
-
export const ListEndpointsResultFilterSensitiveLog = (obj) => ({
|
|
97
|
-
...obj,
|
|
98
|
-
});
|
|
99
|
-
export const ListSharedEndpointsRequestFilterSensitiveLog = (obj) => ({
|
|
100
|
-
...obj,
|
|
101
|
-
});
|
|
102
|
-
export const ListSharedEndpointsResultFilterSensitiveLog = (obj) => ({
|
|
103
|
-
...obj,
|
|
104
|
-
});
|
|
79
|
+
export var CreateEndpointRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
80
|
+
export var CreateEndpointResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
81
|
+
export var DeleteEndpointRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
82
|
+
export var NetworkInterfaceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
83
|
+
export var EndpointFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
84
|
+
export var ListEndpointsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
85
|
+
export var ListEndpointsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
86
|
+
export var ListSharedEndpointsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
87
|
+
export var ListSharedEndpointsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListEndpointsCommand, } from "../commands/ListEndpointsCommand";
|
|
2
3
|
import { S3Outposts } from "../S3Outposts";
|
|
3
4
|
import { S3OutpostsClient } from "../S3OutpostsClient";
|
|
4
|
-
|
|
5
|
-
|
|
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 ListEndpointsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
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.listEndpoints.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof S3Outposts) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof S3OutpostsClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected S3Outposts | S3OutpostsClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListEndpoints(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListEndpoints_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
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
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListSharedEndpointsCommand, } from "../commands/ListSharedEndpointsCommand";
|
|
2
3
|
import { S3Outposts } from "../S3Outposts";
|
|
3
4
|
import { S3OutpostsClient } from "../S3OutpostsClient";
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
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
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof S3Outposts) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof S3OutpostsClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected S3Outposts | S3OutpostsClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListSharedEndpoints(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListSharedEndpoints_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
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
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|