@aws-sdk/client-ebs 3.181.0 → 3.183.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,4 +1,3 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
2
  import { EBSServiceException as __BaseException } from "./EBSServiceException";
4
3
  export var AccessDeniedExceptionReason;
@@ -6,20 +5,20 @@ export var AccessDeniedExceptionReason;
6
5
  AccessDeniedExceptionReason["DEPENDENCY_ACCESS_DENIED"] = "DEPENDENCY_ACCESS_DENIED";
7
6
  AccessDeniedExceptionReason["UNAUTHORIZED_ACCOUNT"] = "UNAUTHORIZED_ACCOUNT";
8
7
  })(AccessDeniedExceptionReason || (AccessDeniedExceptionReason = {}));
9
- var AccessDeniedException = (function (_super) {
10
- __extends(AccessDeniedException, _super);
11
- function AccessDeniedException(opts) {
12
- var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
13
- _this.name = "AccessDeniedException";
14
- _this.$fault = "client";
15
- Object.setPrototypeOf(_this, AccessDeniedException.prototype);
16
- _this.Message = opts.Message;
17
- _this.Reason = opts.Reason;
18
- return _this;
8
+ export class AccessDeniedException extends __BaseException {
9
+ constructor(opts) {
10
+ super({
11
+ name: "AccessDeniedException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ this.name = "AccessDeniedException";
16
+ this.$fault = "client";
17
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
18
+ this.Message = opts.Message;
19
+ this.Reason = opts.Reason;
19
20
  }
20
- return AccessDeniedException;
21
- }(__BaseException));
22
- export { AccessDeniedException };
21
+ }
23
22
  export var ChecksumAggregationMethod;
24
23
  (function (ChecksumAggregationMethod) {
25
24
  ChecksumAggregationMethod["CHECKSUM_AGGREGATION_LINEAR"] = "LINEAR";
@@ -34,76 +33,76 @@ export var Status;
34
33
  Status["ERROR"] = "error";
35
34
  Status["PENDING"] = "pending";
36
35
  })(Status || (Status = {}));
37
- var InternalServerException = (function (_super) {
38
- __extends(InternalServerException, _super);
39
- function InternalServerException(opts) {
40
- var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
41
- _this.name = "InternalServerException";
42
- _this.$fault = "server";
43
- Object.setPrototypeOf(_this, InternalServerException.prototype);
44
- _this.Message = opts.Message;
45
- return _this;
36
+ export class InternalServerException extends __BaseException {
37
+ constructor(opts) {
38
+ super({
39
+ name: "InternalServerException",
40
+ $fault: "server",
41
+ ...opts,
42
+ });
43
+ this.name = "InternalServerException";
44
+ this.$fault = "server";
45
+ Object.setPrototypeOf(this, InternalServerException.prototype);
46
+ this.Message = opts.Message;
46
47
  }
47
- return InternalServerException;
48
- }(__BaseException));
49
- export { InternalServerException };
48
+ }
50
49
  export var RequestThrottledExceptionReason;
51
50
  (function (RequestThrottledExceptionReason) {
52
51
  RequestThrottledExceptionReason["ACCOUNT_THROTTLED"] = "ACCOUNT_THROTTLED";
53
52
  RequestThrottledExceptionReason["DEPENDENCY_REQUEST_THROTTLED"] = "DEPENDENCY_REQUEST_THROTTLED";
54
53
  RequestThrottledExceptionReason["RESOURCE_LEVEL_THROTTLE"] = "RESOURCE_LEVEL_THROTTLE";
55
54
  })(RequestThrottledExceptionReason || (RequestThrottledExceptionReason = {}));
56
- var RequestThrottledException = (function (_super) {
57
- __extends(RequestThrottledException, _super);
58
- function RequestThrottledException(opts) {
59
- var _this = _super.call(this, __assign({ name: "RequestThrottledException", $fault: "client" }, opts)) || this;
60
- _this.name = "RequestThrottledException";
61
- _this.$fault = "client";
62
- Object.setPrototypeOf(_this, RequestThrottledException.prototype);
63
- _this.Message = opts.Message;
64
- _this.Reason = opts.Reason;
65
- return _this;
55
+ export class RequestThrottledException extends __BaseException {
56
+ constructor(opts) {
57
+ super({
58
+ name: "RequestThrottledException",
59
+ $fault: "client",
60
+ ...opts,
61
+ });
62
+ this.name = "RequestThrottledException";
63
+ this.$fault = "client";
64
+ Object.setPrototypeOf(this, RequestThrottledException.prototype);
65
+ this.Message = opts.Message;
66
+ this.Reason = opts.Reason;
66
67
  }
67
- return RequestThrottledException;
68
- }(__BaseException));
69
- export { RequestThrottledException };
68
+ }
70
69
  export var ResourceNotFoundExceptionReason;
71
70
  (function (ResourceNotFoundExceptionReason) {
72
71
  ResourceNotFoundExceptionReason["DEPENDENCY_RESOURCE_NOT_FOUND"] = "DEPENDENCY_RESOURCE_NOT_FOUND";
73
72
  ResourceNotFoundExceptionReason["SNAPSHOT_NOT_FOUND"] = "SNAPSHOT_NOT_FOUND";
74
73
  })(ResourceNotFoundExceptionReason || (ResourceNotFoundExceptionReason = {}));
75
- var ResourceNotFoundException = (function (_super) {
76
- __extends(ResourceNotFoundException, _super);
77
- function ResourceNotFoundException(opts) {
78
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
79
- _this.name = "ResourceNotFoundException";
80
- _this.$fault = "client";
81
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
82
- _this.Message = opts.Message;
83
- _this.Reason = opts.Reason;
84
- return _this;
74
+ export class ResourceNotFoundException extends __BaseException {
75
+ constructor(opts) {
76
+ super({
77
+ name: "ResourceNotFoundException",
78
+ $fault: "client",
79
+ ...opts,
80
+ });
81
+ this.name = "ResourceNotFoundException";
82
+ this.$fault = "client";
83
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
84
+ this.Message = opts.Message;
85
+ this.Reason = opts.Reason;
85
86
  }
86
- return ResourceNotFoundException;
87
- }(__BaseException));
88
- export { ResourceNotFoundException };
87
+ }
89
88
  export var ServiceQuotaExceededExceptionReason;
90
89
  (function (ServiceQuotaExceededExceptionReason) {
91
90
  ServiceQuotaExceededExceptionReason["DEPENDENCY_SERVICE_QUOTA_EXCEEDED"] = "DEPENDENCY_SERVICE_QUOTA_EXCEEDED";
92
91
  })(ServiceQuotaExceededExceptionReason || (ServiceQuotaExceededExceptionReason = {}));
93
- var ServiceQuotaExceededException = (function (_super) {
94
- __extends(ServiceQuotaExceededException, _super);
95
- function ServiceQuotaExceededException(opts) {
96
- var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
97
- _this.name = "ServiceQuotaExceededException";
98
- _this.$fault = "client";
99
- Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
100
- _this.Message = opts.Message;
101
- _this.Reason = opts.Reason;
102
- return _this;
92
+ export class ServiceQuotaExceededException extends __BaseException {
93
+ constructor(opts) {
94
+ super({
95
+ name: "ServiceQuotaExceededException",
96
+ $fault: "client",
97
+ ...opts,
98
+ });
99
+ this.name = "ServiceQuotaExceededException";
100
+ this.$fault = "client";
101
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
102
+ this.Message = opts.Message;
103
+ this.Reason = opts.Reason;
103
104
  }
104
- return ServiceQuotaExceededException;
105
- }(__BaseException));
106
- export { ServiceQuotaExceededException };
105
+ }
107
106
  export var ValidationExceptionReason;
108
107
  (function (ValidationExceptionReason) {
109
108
  ValidationExceptionReason["CONFLICTING_BLOCK_UPDATE"] = "CONFLICTING_BLOCK_UPDATE";
@@ -119,58 +118,94 @@ export var ValidationExceptionReason;
119
118
  ValidationExceptionReason["INVALID_VOLUME_SIZE"] = "INVALID_VOLUME_SIZE";
120
119
  ValidationExceptionReason["UNRELATED_SNAPSHOTS"] = "UNRELATED_SNAPSHOTS";
121
120
  })(ValidationExceptionReason || (ValidationExceptionReason = {}));
122
- var ValidationException = (function (_super) {
123
- __extends(ValidationException, _super);
124
- function ValidationException(opts) {
125
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
126
- _this.name = "ValidationException";
127
- _this.$fault = "client";
128
- Object.setPrototypeOf(_this, ValidationException.prototype);
129
- _this.Message = opts.Message;
130
- _this.Reason = opts.Reason;
131
- return _this;
121
+ export class ValidationException extends __BaseException {
122
+ constructor(opts) {
123
+ super({
124
+ name: "ValidationException",
125
+ $fault: "client",
126
+ ...opts,
127
+ });
128
+ this.name = "ValidationException";
129
+ this.$fault = "client";
130
+ Object.setPrototypeOf(this, ValidationException.prototype);
131
+ this.Message = opts.Message;
132
+ this.Reason = opts.Reason;
132
133
  }
133
- return ValidationException;
134
- }(__BaseException));
135
- export { ValidationException };
136
- var ConcurrentLimitExceededException = (function (_super) {
137
- __extends(ConcurrentLimitExceededException, _super);
138
- function ConcurrentLimitExceededException(opts) {
139
- var _this = _super.call(this, __assign({ name: "ConcurrentLimitExceededException", $fault: "client" }, opts)) || this;
140
- _this.name = "ConcurrentLimitExceededException";
141
- _this.$fault = "client";
142
- Object.setPrototypeOf(_this, ConcurrentLimitExceededException.prototype);
143
- _this.Message = opts.Message;
144
- return _this;
134
+ }
135
+ export class ConcurrentLimitExceededException extends __BaseException {
136
+ constructor(opts) {
137
+ super({
138
+ name: "ConcurrentLimitExceededException",
139
+ $fault: "client",
140
+ ...opts,
141
+ });
142
+ this.name = "ConcurrentLimitExceededException";
143
+ this.$fault = "client";
144
+ Object.setPrototypeOf(this, ConcurrentLimitExceededException.prototype);
145
+ this.Message = opts.Message;
145
146
  }
146
- return ConcurrentLimitExceededException;
147
- }(__BaseException));
148
- export { ConcurrentLimitExceededException };
149
- var ConflictException = (function (_super) {
150
- __extends(ConflictException, _super);
151
- function ConflictException(opts) {
152
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
153
- _this.name = "ConflictException";
154
- _this.$fault = "client";
155
- Object.setPrototypeOf(_this, ConflictException.prototype);
156
- _this.Message = opts.Message;
157
- return _this;
147
+ }
148
+ export class ConflictException extends __BaseException {
149
+ constructor(opts) {
150
+ super({
151
+ name: "ConflictException",
152
+ $fault: "client",
153
+ ...opts,
154
+ });
155
+ this.name = "ConflictException";
156
+ this.$fault = "client";
157
+ Object.setPrototypeOf(this, ConflictException.prototype);
158
+ this.Message = opts.Message;
158
159
  }
159
- return ConflictException;
160
- }(__BaseException));
161
- export { ConflictException };
162
- export var BlockFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
163
- export var ChangedBlockFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
164
- export var CompleteSnapshotRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
165
- export var CompleteSnapshotResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
166
- export var GetSnapshotBlockRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
167
- export var GetSnapshotBlockResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.BlockData && { BlockData: SENSITIVE_STRING }))); };
168
- export var ListChangedBlocksRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
169
- export var ListChangedBlocksResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ChangedBlocks && { ChangedBlocks: SENSITIVE_STRING }))); };
170
- export var ListSnapshotBlocksRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
171
- export var ListSnapshotBlocksResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Blocks && { Blocks: SENSITIVE_STRING }))); };
172
- export var PutSnapshotBlockRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.BlockData && { BlockData: SENSITIVE_STRING }))); };
173
- export var PutSnapshotBlockResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
174
- export var TagFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
175
- export var StartSnapshotRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.KmsKeyArn && { KmsKeyArn: SENSITIVE_STRING }))); };
176
- export var StartSnapshotResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.KmsKeyArn && { KmsKeyArn: SENSITIVE_STRING }))); };
160
+ }
161
+ export const BlockFilterSensitiveLog = (obj) => ({
162
+ ...obj,
163
+ });
164
+ export const ChangedBlockFilterSensitiveLog = (obj) => ({
165
+ ...obj,
166
+ });
167
+ export const CompleteSnapshotRequestFilterSensitiveLog = (obj) => ({
168
+ ...obj,
169
+ });
170
+ export const CompleteSnapshotResponseFilterSensitiveLog = (obj) => ({
171
+ ...obj,
172
+ });
173
+ export const GetSnapshotBlockRequestFilterSensitiveLog = (obj) => ({
174
+ ...obj,
175
+ });
176
+ export const GetSnapshotBlockResponseFilterSensitiveLog = (obj) => ({
177
+ ...obj,
178
+ ...(obj.BlockData && { BlockData: SENSITIVE_STRING }),
179
+ });
180
+ export const ListChangedBlocksRequestFilterSensitiveLog = (obj) => ({
181
+ ...obj,
182
+ });
183
+ export const ListChangedBlocksResponseFilterSensitiveLog = (obj) => ({
184
+ ...obj,
185
+ ...(obj.ChangedBlocks && { ChangedBlocks: SENSITIVE_STRING }),
186
+ });
187
+ export const ListSnapshotBlocksRequestFilterSensitiveLog = (obj) => ({
188
+ ...obj,
189
+ });
190
+ export const ListSnapshotBlocksResponseFilterSensitiveLog = (obj) => ({
191
+ ...obj,
192
+ ...(obj.Blocks && { Blocks: SENSITIVE_STRING }),
193
+ });
194
+ export const PutSnapshotBlockRequestFilterSensitiveLog = (obj) => ({
195
+ ...obj,
196
+ ...(obj.BlockData && { BlockData: SENSITIVE_STRING }),
197
+ });
198
+ export const PutSnapshotBlockResponseFilterSensitiveLog = (obj) => ({
199
+ ...obj,
200
+ });
201
+ export const TagFilterSensitiveLog = (obj) => ({
202
+ ...obj,
203
+ });
204
+ export const StartSnapshotRequestFilterSensitiveLog = (obj) => ({
205
+ ...obj,
206
+ ...(obj.KmsKeyArn && { KmsKeyArn: SENSITIVE_STRING }),
207
+ });
208
+ export const StartSnapshotResponseFilterSensitiveLog = (obj) => ({
209
+ ...obj,
210
+ ...(obj.KmsKeyArn && { KmsKeyArn: SENSITIVE_STRING }),
211
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListChangedBlocksCommand, } from "../commands/ListChangedBlocksCommand";
3
2
  import { EBS } from "../EBS";
4
3
  import { EBSClient } from "../EBSClient";
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 ListChangedBlocksCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListChangedBlocksCommand(input), ...args);
18
6
  };
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.listChangedBlocks.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listChangedBlocks(input, ...args);
32
9
  };
33
- export function paginateListChangedBlocks(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListChangedBlocks(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 EBS) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof EBSClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected EBS | EBSClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListChangedBlocks_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 EBS)) 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 EBSClient)) 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 EBS | EBSClient");
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
- });
31
+ return undefined;
75
32
  }
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListSnapshotBlocksCommand, } from "../commands/ListSnapshotBlocksCommand";
3
2
  import { EBS } from "../EBS";
4
3
  import { EBSClient } from "../EBSClient";
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 ListSnapshotBlocksCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListSnapshotBlocksCommand(input), ...args);
18
6
  };
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.listSnapshotBlocks.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listSnapshotBlocks(input, ...args);
32
9
  };
33
- export function paginateListSnapshotBlocks(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListSnapshotBlocks(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 EBS) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof EBSClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected EBS | EBSClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListSnapshotBlocks_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 EBS)) 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 EBSClient)) 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 EBS | EBSClient");
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
- });
31
+ return undefined;
75
32
  }