@aws-sdk/client-s3outposts 3.183.0 → 3.185.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.
@@ -1,104 +1,87 @@
1
+ import { __assign, __extends } from "tslib";
1
2
  import { S3OutpostsServiceException as __BaseException } from "./S3OutpostsServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- constructor(opts) {
4
- super({
5
- name: "AccessDeniedException",
6
- $fault: "client",
7
- ...opts,
8
- });
9
- this.name = "AccessDeniedException";
10
- this.$fault = "client";
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
- export class ConflictException extends __BaseException {
16
- constructor(opts) {
17
- super({
18
- name: "ConflictException",
19
- $fault: "client",
20
- ...opts,
21
- });
22
- this.name = "ConflictException";
23
- this.$fault = "client";
24
- Object.setPrototypeOf(this, ConflictException.prototype);
25
- this.Message = opts.Message;
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
- export class InternalServerException extends __BaseException {
34
- constructor(opts) {
35
- super({
36
- name: "InternalServerException",
37
- $fault: "server",
38
- ...opts,
39
- });
40
- this.name = "InternalServerException";
41
- this.$fault = "server";
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
- export class ResourceNotFoundException extends __BaseException {
47
- constructor(opts) {
48
- super({
49
- name: "ResourceNotFoundException",
50
- $fault: "client",
51
- ...opts,
52
- });
53
- this.name = "ResourceNotFoundException";
54
- this.$fault = "client";
55
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
56
- this.Message = opts.Message;
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
- export class ValidationException extends __BaseException {
60
- constructor(opts) {
61
- super({
62
- name: "ValidationException",
63
- $fault: "client",
64
- ...opts,
65
- });
66
- this.name = "ValidationException";
67
- this.$fault = "client";
68
- Object.setPrototypeOf(this, ValidationException.prototype);
69
- this.Message = opts.Message;
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 const CreateEndpointRequestFilterSensitiveLog = (obj) => ({
79
- ...obj,
80
- });
81
- export const CreateEndpointResultFilterSensitiveLog = (obj) => ({
82
- ...obj,
83
- });
84
- export const DeleteEndpointRequestFilterSensitiveLog = (obj) => ({
85
- ...obj,
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
- const makePagedClientRequest = async (client, input, ...args) => {
5
- return await client.send(new ListEndpointsCommand(input), ...args);
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
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listEndpoints(input, ...args);
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 async function* paginateListEndpoints(config, input, ...additionalArguments) {
11
- let token = config.startingToken || undefined;
12
- let hasNext = true;
13
- let page;
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 undefined;
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
- const makePagedClientRequest = async (client, input, ...args) => {
5
- return await client.send(new ListSharedEndpointsCommand(input), ...args);
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
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listSharedEndpoints(input, ...args);
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 async function* paginateListSharedEndpoints(config, input, ...additionalArguments) {
11
- let token = config.startingToken || undefined;
12
- let hasNext = true;
13
- let page;
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 undefined;
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
  }