@aws-sdk/client-arc-zonal-shift 3.219.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.
Files changed (103) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +219 -0
  3. package/dist-cjs/ARCZonalShift.js +97 -0
  4. package/dist-cjs/ARCZonalShiftClient.js +40 -0
  5. package/dist-cjs/commands/CancelZonalShiftCommand.js +46 -0
  6. package/dist-cjs/commands/GetManagedResourceCommand.js +46 -0
  7. package/dist-cjs/commands/ListManagedResourcesCommand.js +46 -0
  8. package/dist-cjs/commands/ListZonalShiftsCommand.js +46 -0
  9. package/dist-cjs/commands/StartZonalShiftCommand.js +46 -0
  10. package/dist-cjs/commands/UpdateZonalShiftCommand.js +46 -0
  11. package/dist-cjs/commands/index.js +9 -0
  12. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  13. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  14. package/dist-cjs/endpoint/ruleset.js +312 -0
  15. package/dist-cjs/index.js +11 -0
  16. package/dist-cjs/models/ARCZonalShiftServiceException.js +11 -0
  17. package/dist-cjs/models/index.js +4 -0
  18. package/dist-cjs/models/models_0.js +164 -0
  19. package/dist-cjs/pagination/Interfaces.js +2 -0
  20. package/dist-cjs/pagination/ListManagedResourcesPaginator.js +36 -0
  21. package/dist-cjs/pagination/ListZonalShiftsPaginator.js +36 -0
  22. package/dist-cjs/pagination/index.js +6 -0
  23. package/dist-cjs/protocols/Aws_restJson1.js +703 -0
  24. package/dist-cjs/runtimeConfig.browser.js +42 -0
  25. package/dist-cjs/runtimeConfig.js +50 -0
  26. package/dist-cjs/runtimeConfig.native.js +15 -0
  27. package/dist-cjs/runtimeConfig.shared.js +18 -0
  28. package/dist-es/ARCZonalShift.js +93 -0
  29. package/dist-es/ARCZonalShiftClient.js +36 -0
  30. package/dist-es/commands/CancelZonalShiftCommand.js +42 -0
  31. package/dist-es/commands/GetManagedResourceCommand.js +42 -0
  32. package/dist-es/commands/ListManagedResourcesCommand.js +42 -0
  33. package/dist-es/commands/ListZonalShiftsCommand.js +42 -0
  34. package/dist-es/commands/StartZonalShiftCommand.js +42 -0
  35. package/dist-es/commands/UpdateZonalShiftCommand.js +42 -0
  36. package/dist-es/commands/index.js +6 -0
  37. package/dist-es/endpoint/EndpointParameters.js +8 -0
  38. package/dist-es/endpoint/endpointResolver.js +8 -0
  39. package/dist-es/endpoint/ruleset.js +309 -0
  40. package/dist-es/index.js +6 -0
  41. package/dist-es/models/ARCZonalShiftServiceException.js +7 -0
  42. package/dist-es/models/index.js +1 -0
  43. package/dist-es/models/models_0.js +142 -0
  44. package/dist-es/pagination/Interfaces.js +1 -0
  45. package/dist-es/pagination/ListManagedResourcesPaginator.js +32 -0
  46. package/dist-es/pagination/ListZonalShiftsPaginator.js +32 -0
  47. package/dist-es/pagination/index.js +3 -0
  48. package/dist-es/protocols/Aws_restJson1.js +688 -0
  49. package/dist-es/runtimeConfig.browser.js +37 -0
  50. package/dist-es/runtimeConfig.js +45 -0
  51. package/dist-es/runtimeConfig.native.js +11 -0
  52. package/dist-es/runtimeConfig.shared.js +14 -0
  53. package/dist-types/ARCZonalShift.d.ts +77 -0
  54. package/dist-types/ARCZonalShiftClient.d.ts +161 -0
  55. package/dist-types/commands/CancelZonalShiftCommand.d.ts +37 -0
  56. package/dist-types/commands/GetManagedResourceCommand.d.ts +39 -0
  57. package/dist-types/commands/ListManagedResourcesCommand.d.ts +39 -0
  58. package/dist-types/commands/ListZonalShiftsCommand.d.ts +37 -0
  59. package/dist-types/commands/StartZonalShiftCommand.d.ts +46 -0
  60. package/dist-types/commands/UpdateZonalShiftCommand.d.ts +38 -0
  61. package/dist-types/commands/index.d.ts +6 -0
  62. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  63. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  64. package/dist-types/endpoint/ruleset.d.ts +2 -0
  65. package/dist-types/index.d.ts +6 -0
  66. package/dist-types/models/ARCZonalShiftServiceException.d.ts +10 -0
  67. package/dist-types/models/index.d.ts +1 -0
  68. package/dist-types/models/models_0.d.ts +503 -0
  69. package/dist-types/pagination/Interfaces.d.ts +6 -0
  70. package/dist-types/pagination/ListManagedResourcesPaginator.d.ts +4 -0
  71. package/dist-types/pagination/ListZonalShiftsPaginator.d.ts +4 -0
  72. package/dist-types/pagination/index.d.ts +3 -0
  73. package/dist-types/protocols/Aws_restJson1.d.ts +20 -0
  74. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  75. package/dist-types/runtimeConfig.d.ts +42 -0
  76. package/dist-types/runtimeConfig.native.d.ts +41 -0
  77. package/dist-types/runtimeConfig.shared.d.ts +16 -0
  78. package/dist-types/ts3.4/ARCZonalShift.d.ts +106 -0
  79. package/dist-types/ts3.4/ARCZonalShiftClient.d.ts +148 -0
  80. package/dist-types/ts3.4/commands/CancelZonalShiftCommand.d.ts +34 -0
  81. package/dist-types/ts3.4/commands/GetManagedResourceCommand.d.ts +38 -0
  82. package/dist-types/ts3.4/commands/ListManagedResourcesCommand.d.ts +41 -0
  83. package/dist-types/ts3.4/commands/ListZonalShiftsCommand.d.ts +37 -0
  84. package/dist-types/ts3.4/commands/StartZonalShiftCommand.d.ts +34 -0
  85. package/dist-types/ts3.4/commands/UpdateZonalShiftCommand.d.ts +34 -0
  86. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  87. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
  88. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  89. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  90. package/dist-types/ts3.4/index.d.ts +6 -0
  91. package/dist-types/ts3.4/models/ARCZonalShiftServiceException.d.ts +7 -0
  92. package/dist-types/ts3.4/models/index.d.ts +1 -0
  93. package/dist-types/ts3.4/models/models_0.d.ts +177 -0
  94. package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
  95. package/dist-types/ts3.4/pagination/ListManagedResourcesPaginator.d.ts +11 -0
  96. package/dist-types/ts3.4/pagination/ListZonalShiftsPaginator.d.ts +11 -0
  97. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  98. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +77 -0
  99. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +88 -0
  100. package/dist-types/ts3.4/runtimeConfig.d.ts +88 -0
  101. package/dist-types/ts3.4/runtimeConfig.native.d.ts +77 -0
  102. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
  103. package/package.json +101 -0
@@ -0,0 +1,309 @@
1
+ export const ruleSet = {
2
+ version: "1.0",
3
+ parameters: {
4
+ Region: {
5
+ builtIn: "AWS::Region",
6
+ required: true,
7
+ documentation: "The AWS region used to dispatch the request.",
8
+ type: "String",
9
+ },
10
+ UseDualStack: {
11
+ builtIn: "AWS::UseDualStack",
12
+ required: true,
13
+ default: false,
14
+ documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
15
+ type: "Boolean",
16
+ },
17
+ UseFIPS: {
18
+ builtIn: "AWS::UseFIPS",
19
+ required: true,
20
+ default: false,
21
+ documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
22
+ type: "Boolean",
23
+ },
24
+ Endpoint: {
25
+ builtIn: "SDK::Endpoint",
26
+ required: false,
27
+ documentation: "Override the endpoint used to send this request",
28
+ type: "String",
29
+ },
30
+ },
31
+ rules: [
32
+ {
33
+ conditions: [
34
+ {
35
+ fn: "aws.partition",
36
+ argv: [
37
+ {
38
+ ref: "Region",
39
+ },
40
+ ],
41
+ assign: "PartitionResult",
42
+ },
43
+ ],
44
+ type: "tree",
45
+ rules: [
46
+ {
47
+ conditions: [
48
+ {
49
+ fn: "isSet",
50
+ argv: [
51
+ {
52
+ ref: "Endpoint",
53
+ },
54
+ ],
55
+ },
56
+ {
57
+ fn: "parseURL",
58
+ argv: [
59
+ {
60
+ ref: "Endpoint",
61
+ },
62
+ ],
63
+ assign: "url",
64
+ },
65
+ ],
66
+ type: "tree",
67
+ rules: [
68
+ {
69
+ conditions: [
70
+ {
71
+ fn: "booleanEquals",
72
+ argv: [
73
+ {
74
+ ref: "UseFIPS",
75
+ },
76
+ true,
77
+ ],
78
+ },
79
+ ],
80
+ error: "Invalid Configuration: FIPS and custom endpoint are not supported",
81
+ type: "error",
82
+ },
83
+ {
84
+ conditions: [],
85
+ type: "tree",
86
+ rules: [
87
+ {
88
+ conditions: [
89
+ {
90
+ fn: "booleanEquals",
91
+ argv: [
92
+ {
93
+ ref: "UseDualStack",
94
+ },
95
+ true,
96
+ ],
97
+ },
98
+ ],
99
+ error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
100
+ type: "error",
101
+ },
102
+ {
103
+ conditions: [],
104
+ endpoint: {
105
+ url: {
106
+ ref: "Endpoint",
107
+ },
108
+ properties: {},
109
+ headers: {},
110
+ },
111
+ type: "endpoint",
112
+ },
113
+ ],
114
+ },
115
+ ],
116
+ },
117
+ {
118
+ conditions: [
119
+ {
120
+ fn: "booleanEquals",
121
+ argv: [
122
+ {
123
+ ref: "UseFIPS",
124
+ },
125
+ true,
126
+ ],
127
+ },
128
+ {
129
+ fn: "booleanEquals",
130
+ argv: [
131
+ {
132
+ ref: "UseDualStack",
133
+ },
134
+ true,
135
+ ],
136
+ },
137
+ ],
138
+ type: "tree",
139
+ rules: [
140
+ {
141
+ conditions: [
142
+ {
143
+ fn: "booleanEquals",
144
+ argv: [
145
+ true,
146
+ {
147
+ fn: "getAttr",
148
+ argv: [
149
+ {
150
+ ref: "PartitionResult",
151
+ },
152
+ "supportsFIPS",
153
+ ],
154
+ },
155
+ ],
156
+ },
157
+ {
158
+ fn: "booleanEquals",
159
+ argv: [
160
+ true,
161
+ {
162
+ fn: "getAttr",
163
+ argv: [
164
+ {
165
+ ref: "PartitionResult",
166
+ },
167
+ "supportsDualStack",
168
+ ],
169
+ },
170
+ ],
171
+ },
172
+ ],
173
+ type: "tree",
174
+ rules: [
175
+ {
176
+ conditions: [],
177
+ endpoint: {
178
+ url: "https://arc-zonal-shift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
179
+ properties: {},
180
+ headers: {},
181
+ },
182
+ type: "endpoint",
183
+ },
184
+ ],
185
+ },
186
+ {
187
+ conditions: [],
188
+ error: "FIPS and DualStack are enabled, but this partition does not support one or both",
189
+ type: "error",
190
+ },
191
+ ],
192
+ },
193
+ {
194
+ conditions: [
195
+ {
196
+ fn: "booleanEquals",
197
+ argv: [
198
+ {
199
+ ref: "UseFIPS",
200
+ },
201
+ true,
202
+ ],
203
+ },
204
+ ],
205
+ type: "tree",
206
+ rules: [
207
+ {
208
+ conditions: [
209
+ {
210
+ fn: "booleanEquals",
211
+ argv: [
212
+ true,
213
+ {
214
+ fn: "getAttr",
215
+ argv: [
216
+ {
217
+ ref: "PartitionResult",
218
+ },
219
+ "supportsFIPS",
220
+ ],
221
+ },
222
+ ],
223
+ },
224
+ ],
225
+ type: "tree",
226
+ rules: [
227
+ {
228
+ conditions: [],
229
+ endpoint: {
230
+ url: "https://arc-zonal-shift-fips.{Region}.{PartitionResult#dnsSuffix}",
231
+ properties: {},
232
+ headers: {},
233
+ },
234
+ type: "endpoint",
235
+ },
236
+ ],
237
+ },
238
+ {
239
+ conditions: [],
240
+ error: "FIPS is enabled but this partition does not support FIPS",
241
+ type: "error",
242
+ },
243
+ ],
244
+ },
245
+ {
246
+ conditions: [
247
+ {
248
+ fn: "booleanEquals",
249
+ argv: [
250
+ {
251
+ ref: "UseDualStack",
252
+ },
253
+ true,
254
+ ],
255
+ },
256
+ ],
257
+ type: "tree",
258
+ rules: [
259
+ {
260
+ conditions: [
261
+ {
262
+ fn: "booleanEquals",
263
+ argv: [
264
+ true,
265
+ {
266
+ fn: "getAttr",
267
+ argv: [
268
+ {
269
+ ref: "PartitionResult",
270
+ },
271
+ "supportsDualStack",
272
+ ],
273
+ },
274
+ ],
275
+ },
276
+ ],
277
+ type: "tree",
278
+ rules: [
279
+ {
280
+ conditions: [],
281
+ endpoint: {
282
+ url: "https://arc-zonal-shift.{Region}.{PartitionResult#dualStackDnsSuffix}",
283
+ properties: {},
284
+ headers: {},
285
+ },
286
+ type: "endpoint",
287
+ },
288
+ ],
289
+ },
290
+ {
291
+ conditions: [],
292
+ error: "DualStack is enabled but this partition does not support DualStack",
293
+ type: "error",
294
+ },
295
+ ],
296
+ },
297
+ {
298
+ conditions: [],
299
+ endpoint: {
300
+ url: "https://arc-zonal-shift.{Region}.{PartitionResult#dnsSuffix}",
301
+ properties: {},
302
+ headers: {},
303
+ },
304
+ type: "endpoint",
305
+ },
306
+ ],
307
+ },
308
+ ],
309
+ };
@@ -0,0 +1,6 @@
1
+ export * from "./ARCZonalShift";
2
+ export * from "./ARCZonalShiftClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export { ARCZonalShiftServiceException } from "./models/ARCZonalShiftServiceException";
@@ -0,0 +1,7 @@
1
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
+ export class ARCZonalShiftServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, ARCZonalShiftServiceException.prototype);
6
+ }
7
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,142 @@
1
+ import { ARCZonalShiftServiceException as __BaseException } from "./ARCZonalShiftServiceException";
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
+ }
13
+ }
14
+ export var AppliedStatus;
15
+ (function (AppliedStatus) {
16
+ AppliedStatus["APPLIED"] = "APPLIED";
17
+ AppliedStatus["NOT_APPLIED"] = "NOT_APPLIED";
18
+ })(AppliedStatus || (AppliedStatus = {}));
19
+ export var ConflictExceptionReason;
20
+ (function (ConflictExceptionReason) {
21
+ ConflictExceptionReason["SIMULTANEOUS_ZONAL_SHIFTS_CONFLICT"] = "SimultaneousZonalShiftsConflict";
22
+ ConflictExceptionReason["ZONAL_SHIFT_ALREADY_EXISTS"] = "ZonalShiftAlreadyExists";
23
+ ConflictExceptionReason["ZONAL_SHIFT_STATUS_NOT_ACTIVE"] = "ZonalShiftStatusNotActive";
24
+ })(ConflictExceptionReason || (ConflictExceptionReason = {}));
25
+ export class ConflictException extends __BaseException {
26
+ constructor(opts) {
27
+ super({
28
+ name: "ConflictException",
29
+ $fault: "client",
30
+ ...opts,
31
+ });
32
+ this.name = "ConflictException";
33
+ this.$fault = "client";
34
+ Object.setPrototypeOf(this, ConflictException.prototype);
35
+ this.reason = opts.reason;
36
+ this.zonalShiftId = opts.zonalShiftId;
37
+ }
38
+ }
39
+ export class InternalServerException extends __BaseException {
40
+ constructor(opts) {
41
+ super({
42
+ name: "InternalServerException",
43
+ $fault: "server",
44
+ ...opts,
45
+ });
46
+ this.name = "InternalServerException";
47
+ this.$fault = "server";
48
+ Object.setPrototypeOf(this, InternalServerException.prototype);
49
+ }
50
+ }
51
+ export class ResourceNotFoundException extends __BaseException {
52
+ constructor(opts) {
53
+ super({
54
+ name: "ResourceNotFoundException",
55
+ $fault: "client",
56
+ ...opts,
57
+ });
58
+ this.name = "ResourceNotFoundException";
59
+ this.$fault = "client";
60
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
61
+ }
62
+ }
63
+ export class ThrottlingException extends __BaseException {
64
+ constructor(opts) {
65
+ super({
66
+ name: "ThrottlingException",
67
+ $fault: "client",
68
+ ...opts,
69
+ });
70
+ this.name = "ThrottlingException";
71
+ this.$fault = "client";
72
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
73
+ }
74
+ }
75
+ export var ValidationExceptionReason;
76
+ (function (ValidationExceptionReason) {
77
+ ValidationExceptionReason["INVALID_AZ"] = "InvalidAz";
78
+ ValidationExceptionReason["INVALID_EXPIRES_IN"] = "InvalidExpiresIn";
79
+ ValidationExceptionReason["INVALID_RESOURCE_IDENTIFIER"] = "InvalidResourceIdentifier";
80
+ ValidationExceptionReason["INVALID_STATUS"] = "InvalidStatus";
81
+ ValidationExceptionReason["INVALID_TOKEN"] = "InvalidToken";
82
+ ValidationExceptionReason["MISSING_VALUE"] = "MissingValue";
83
+ ValidationExceptionReason["UNSUPPORTED_AZ"] = "UnsupportedAz";
84
+ })(ValidationExceptionReason || (ValidationExceptionReason = {}));
85
+ export class ValidationException extends __BaseException {
86
+ constructor(opts) {
87
+ super({
88
+ name: "ValidationException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ this.name = "ValidationException";
93
+ this.$fault = "client";
94
+ Object.setPrototypeOf(this, ValidationException.prototype);
95
+ this.reason = opts.reason;
96
+ }
97
+ }
98
+ export var ZonalShiftStatus;
99
+ (function (ZonalShiftStatus) {
100
+ ZonalShiftStatus["ACTIVE"] = "ACTIVE";
101
+ ZonalShiftStatus["CANCELED"] = "CANCELED";
102
+ ZonalShiftStatus["EXPIRED"] = "EXPIRED";
103
+ })(ZonalShiftStatus || (ZonalShiftStatus = {}));
104
+ export const CancelZonalShiftRequestFilterSensitiveLog = (obj) => ({
105
+ ...obj,
106
+ });
107
+ export const ZonalShiftFilterSensitiveLog = (obj) => ({
108
+ ...obj,
109
+ });
110
+ export const GetManagedResourceRequestFilterSensitiveLog = (obj) => ({
111
+ ...obj,
112
+ });
113
+ export const ZonalShiftInResourceFilterSensitiveLog = (obj) => ({
114
+ ...obj,
115
+ });
116
+ export const GetManagedResourceResponseFilterSensitiveLog = (obj) => ({
117
+ ...obj,
118
+ });
119
+ export const ListManagedResourcesRequestFilterSensitiveLog = (obj) => ({
120
+ ...obj,
121
+ });
122
+ export const ManagedResourceSummaryFilterSensitiveLog = (obj) => ({
123
+ ...obj,
124
+ });
125
+ export const ListManagedResourcesResponseFilterSensitiveLog = (obj) => ({
126
+ ...obj,
127
+ });
128
+ export const ListZonalShiftsRequestFilterSensitiveLog = (obj) => ({
129
+ ...obj,
130
+ });
131
+ export const ZonalShiftSummaryFilterSensitiveLog = (obj) => ({
132
+ ...obj,
133
+ });
134
+ export const ListZonalShiftsResponseFilterSensitiveLog = (obj) => ({
135
+ ...obj,
136
+ });
137
+ export const UpdateZonalShiftRequestFilterSensitiveLog = (obj) => ({
138
+ ...obj,
139
+ });
140
+ export const StartZonalShiftRequestFilterSensitiveLog = (obj) => ({
141
+ ...obj,
142
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,32 @@
1
+ import { ARCZonalShift } from "../ARCZonalShift";
2
+ import { ARCZonalShiftClient } from "../ARCZonalShiftClient";
3
+ import { ListManagedResourcesCommand, } from "../commands/ListManagedResourcesCommand";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListManagedResourcesCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listManagedResources(input, ...args);
9
+ };
10
+ export async function* paginateListManagedResources(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 ARCZonalShift) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof ARCZonalShiftClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected ARCZonalShift | ARCZonalShiftClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { ARCZonalShift } from "../ARCZonalShift";
2
+ import { ARCZonalShiftClient } from "../ARCZonalShiftClient";
3
+ import { ListZonalShiftsCommand, } from "../commands/ListZonalShiftsCommand";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListZonalShiftsCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listZonalShifts(input, ...args);
9
+ };
10
+ export async function* paginateListZonalShifts(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 ARCZonalShift) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof ARCZonalShiftClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected ARCZonalShift | ARCZonalShiftClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListManagedResourcesPaginator";
3
+ export * from "./ListZonalShiftsPaginator";