@aws-sdk/client-imagebuilder 3.300.0 → 3.303.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/README.md +51 -3
- package/dist-cjs/Imagebuilder.js +90 -0
- package/dist-cjs/commands/GetWorkflowExecutionCommand.js +45 -0
- package/dist-cjs/commands/GetWorkflowStepExecutionCommand.js +45 -0
- package/dist-cjs/commands/ListImageScanFindingAggregationsCommand.js +45 -0
- package/dist-cjs/commands/ListImageScanFindingsCommand.js +45 -0
- package/dist-cjs/commands/ListWorkflowExecutionsCommand.js +45 -0
- package/dist-cjs/commands/ListWorkflowStepExecutionsCommand.js +45 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +113 -92
- package/dist-cjs/pagination/ListImageScanFindingAggregationsPaginator.js +28 -0
- package/dist-cjs/pagination/ListImageScanFindingsPaginator.js +29 -0
- package/dist-cjs/pagination/ListWorkflowExecutionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListWorkflowStepExecutionsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_restJson1.js +945 -13
- package/dist-es/Imagebuilder.js +90 -0
- package/dist-es/commands/GetWorkflowExecutionCommand.js +41 -0
- package/dist-es/commands/GetWorkflowStepExecutionCommand.js +41 -0
- package/dist-es/commands/ListImageScanFindingAggregationsCommand.js +41 -0
- package/dist-es/commands/ListImageScanFindingsCommand.js +41 -0
- package/dist-es/commands/ListWorkflowExecutionsCommand.js +41 -0
- package/dist-es/commands/ListWorkflowStepExecutionsCommand.js +41 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +112 -91
- package/dist-es/pagination/ListImageScanFindingAggregationsPaginator.js +24 -0
- package/dist-es/pagination/ListImageScanFindingsPaginator.js +25 -0
- package/dist-es/pagination/ListWorkflowExecutionsPaginator.js +25 -0
- package/dist-es/pagination/ListWorkflowStepExecutionsPaginator.js +25 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +931 -12
- package/dist-types/Imagebuilder.d.ts +165 -75
- package/dist-types/ImagebuilderClient.d.ts +11 -5
- package/dist-types/commands/CancelImageCreationCommand.d.ts +9 -8
- package/dist-types/commands/CreateComponentCommand.d.ts +19 -16
- package/dist-types/commands/CreateContainerRecipeCommand.d.ts +25 -21
- package/dist-types/commands/CreateDistributionConfigurationCommand.d.ts +35 -32
- package/dist-types/commands/CreateImageCommand.d.ts +26 -13
- package/dist-types/commands/CreateImagePipelineCommand.d.ts +25 -13
- package/dist-types/commands/CreateImageRecipeCommand.d.ts +25 -22
- package/dist-types/commands/CreateInfrastructureConfigurationCommand.d.ts +21 -18
- package/dist-types/commands/DeleteComponentCommand.d.ts +10 -9
- package/dist-types/commands/DeleteContainerRecipeCommand.d.ts +9 -8
- package/dist-types/commands/DeleteDistributionConfigurationCommand.d.ts +10 -9
- package/dist-types/commands/DeleteImageCommand.d.ts +17 -15
- package/dist-types/commands/DeleteImagePipelineCommand.d.ts +10 -9
- package/dist-types/commands/DeleteImageRecipeCommand.d.ts +10 -9
- package/dist-types/commands/DeleteInfrastructureConfigurationCommand.d.ts +10 -9
- package/dist-types/commands/GetComponentCommand.d.ts +8 -7
- package/dist-types/commands/GetComponentPolicyCommand.d.ts +5 -4
- package/dist-types/commands/GetContainerRecipeCommand.d.ts +7 -6
- package/dist-types/commands/GetContainerRecipePolicyCommand.d.ts +4 -3
- package/dist-types/commands/GetDistributionConfigurationCommand.d.ts +8 -7
- package/dist-types/commands/GetImageCommand.d.ts +8 -7
- package/dist-types/commands/GetImagePipelineCommand.d.ts +8 -7
- package/dist-types/commands/GetImagePolicyCommand.d.ts +5 -4
- package/dist-types/commands/GetImageRecipeCommand.d.ts +8 -7
- package/dist-types/commands/GetImageRecipePolicyCommand.d.ts +5 -4
- package/dist-types/commands/GetInfrastructureConfigurationCommand.d.ts +8 -7
- package/dist-types/commands/GetWorkflowExecutionCommand.d.ts +85 -0
- package/dist-types/commands/GetWorkflowStepExecutionCommand.d.ts +85 -0
- package/dist-types/commands/ImportComponentCommand.d.ts +12 -11
- package/dist-types/commands/ImportVmImageCommand.d.ts +14 -14
- package/dist-types/commands/ListComponentBuildVersionsCommand.d.ts +9 -7
- package/dist-types/commands/ListComponentsCommand.d.ts +13 -12
- package/dist-types/commands/ListContainerRecipesCommand.d.ts +10 -9
- package/dist-types/commands/ListDistributionConfigurationsCommand.d.ts +10 -9
- package/dist-types/commands/ListImageBuildVersionsCommand.d.ts +11 -10
- package/dist-types/commands/ListImagePackagesCommand.d.ts +9 -7
- package/dist-types/commands/ListImagePipelineImagesCommand.d.ts +10 -9
- package/dist-types/commands/ListImagePipelinesCommand.d.ts +10 -9
- package/dist-types/commands/ListImageRecipesCommand.d.ts +11 -10
- package/dist-types/commands/ListImageScanFindingAggregationsCommand.d.ts +120 -0
- package/dist-types/commands/ListImageScanFindingsCommand.d.ts +96 -0
- package/dist-types/commands/ListImagesCommand.d.ts +12 -11
- package/dist-types/commands/ListInfrastructureConfigurationsCommand.d.ts +11 -10
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -3
- package/dist-types/commands/ListWorkflowExecutionsCommand.d.ts +90 -0
- package/dist-types/commands/ListWorkflowStepExecutionsCommand.d.ts +90 -0
- package/dist-types/commands/PutComponentPolicyCommand.d.ts +10 -9
- package/dist-types/commands/PutContainerRecipePolicyCommand.d.ts +15 -7
- package/dist-types/commands/PutImagePolicyCommand.d.ts +9 -8
- package/dist-types/commands/PutImageRecipePolicyCommand.d.ts +10 -9
- package/dist-types/commands/StartImagePipelineExecutionCommand.d.ts +10 -9
- package/dist-types/commands/TagResourceCommand.d.ts +5 -4
- package/dist-types/commands/UntagResourceCommand.d.ts +5 -4
- package/dist-types/commands/UpdateDistributionConfigurationCommand.d.ts +31 -30
- package/dist-types/commands/UpdateImagePipelineCommand.d.ts +24 -14
- package/dist-types/commands/UpdateInfrastructureConfigurationCommand.d.ts +17 -16
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1712 -524
- package/dist-types/pagination/ListImageScanFindingAggregationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListImageScanFindingsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWorkflowExecutionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWorkflowStepExecutionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Imagebuilder.d.ts +102 -0
- package/dist-types/ts3.4/ImagebuilderClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetWorkflowExecutionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetWorkflowStepExecutionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListImageScanFindingAggregationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListImageScanFindingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListWorkflowExecutionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListWorkflowStepExecutionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +372 -76
- package/dist-types/ts3.4/pagination/ListImageScanFindingAggregationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListImageScanFindingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkflowExecutionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkflowStepExecutionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +34 -34
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import { ImagebuilderServiceException as __BaseException } from "./ImagebuilderServiceException";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
BuildType["USER_INITIATED"] = "USER_INITIATED";
|
|
21
|
-
})(BuildType || (BuildType = {}));
|
|
2
|
+
export const ImageStatus = {
|
|
3
|
+
AVAILABLE: "AVAILABLE",
|
|
4
|
+
BUILDING: "BUILDING",
|
|
5
|
+
CANCELLED: "CANCELLED",
|
|
6
|
+
CREATING: "CREATING",
|
|
7
|
+
DELETED: "DELETED",
|
|
8
|
+
DEPRECATED: "DEPRECATED",
|
|
9
|
+
DISTRIBUTING: "DISTRIBUTING",
|
|
10
|
+
FAILED: "FAILED",
|
|
11
|
+
INTEGRATING: "INTEGRATING",
|
|
12
|
+
PENDING: "PENDING",
|
|
13
|
+
TESTING: "TESTING",
|
|
14
|
+
};
|
|
15
|
+
export const BuildType = {
|
|
16
|
+
IMPORT: "IMPORT",
|
|
17
|
+
SCHEDULED: "SCHEDULED",
|
|
18
|
+
USER_INITIATED: "USER_INITIATED",
|
|
19
|
+
};
|
|
22
20
|
export class CallRateLimitExceededException extends __BaseException {
|
|
23
21
|
constructor(opts) {
|
|
24
22
|
super({
|
|
@@ -115,42 +113,35 @@ export class ServiceUnavailableException extends __BaseException {
|
|
|
115
113
|
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
116
114
|
}
|
|
117
115
|
}
|
|
118
|
-
export
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
export
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
EbsVolumeType["GP3"] = "gp3";
|
|
148
|
-
EbsVolumeType["IO1"] = "io1";
|
|
149
|
-
EbsVolumeType["IO2"] = "io2";
|
|
150
|
-
EbsVolumeType["SC1"] = "sc1";
|
|
151
|
-
EbsVolumeType["ST1"] = "st1";
|
|
152
|
-
EbsVolumeType["STANDARD"] = "standard";
|
|
153
|
-
})(EbsVolumeType || (EbsVolumeType = {}));
|
|
116
|
+
export const Platform = {
|
|
117
|
+
LINUX: "Linux",
|
|
118
|
+
WINDOWS: "Windows",
|
|
119
|
+
};
|
|
120
|
+
export const ComponentStatus = {
|
|
121
|
+
DEPRECATED: "DEPRECATED",
|
|
122
|
+
};
|
|
123
|
+
export const ComponentType = {
|
|
124
|
+
BUILD: "BUILD",
|
|
125
|
+
TEST: "TEST",
|
|
126
|
+
};
|
|
127
|
+
export const ComponentFormat = {
|
|
128
|
+
SHELL: "SHELL",
|
|
129
|
+
};
|
|
130
|
+
export const ContainerRepositoryService = {
|
|
131
|
+
ECR: "ECR",
|
|
132
|
+
};
|
|
133
|
+
export const ContainerType = {
|
|
134
|
+
DOCKER: "DOCKER",
|
|
135
|
+
};
|
|
136
|
+
export const EbsVolumeType = {
|
|
137
|
+
GP2: "gp2",
|
|
138
|
+
GP3: "gp3",
|
|
139
|
+
IO1: "io1",
|
|
140
|
+
IO2: "io2",
|
|
141
|
+
SC1: "sc1",
|
|
142
|
+
ST1: "st1",
|
|
143
|
+
STANDARD: "standard",
|
|
144
|
+
};
|
|
154
145
|
export class InvalidParameterCombinationException extends __BaseException {
|
|
155
146
|
constructor(opts) {
|
|
156
147
|
super({
|
|
@@ -199,22 +190,19 @@ export class ResourceAlreadyExistsException extends __BaseException {
|
|
|
199
190
|
Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
|
|
200
191
|
}
|
|
201
192
|
}
|
|
202
|
-
export
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
PipelineStatus["DISABLED"] = "DISABLED";
|
|
216
|
-
PipelineStatus["ENABLED"] = "ENABLED";
|
|
217
|
-
})(PipelineStatus || (PipelineStatus = {}));
|
|
193
|
+
export const DiskImageFormat = {
|
|
194
|
+
RAW: "RAW",
|
|
195
|
+
VHD: "VHD",
|
|
196
|
+
VMDK: "VMDK",
|
|
197
|
+
};
|
|
198
|
+
export const PipelineExecutionStartCondition = {
|
|
199
|
+
EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE: "EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE",
|
|
200
|
+
EXPRESSION_MATCH_ONLY: "EXPRESSION_MATCH_ONLY",
|
|
201
|
+
};
|
|
202
|
+
export const PipelineStatus = {
|
|
203
|
+
DISABLED: "DISABLED",
|
|
204
|
+
ENABLED: "ENABLED",
|
|
205
|
+
};
|
|
218
206
|
export class ResourceDependencyException extends __BaseException {
|
|
219
207
|
constructor(opts) {
|
|
220
208
|
super({
|
|
@@ -239,18 +227,52 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
239
227
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
240
228
|
}
|
|
241
229
|
}
|
|
242
|
-
export
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
230
|
+
export const ImageType = {
|
|
231
|
+
AMI: "AMI",
|
|
232
|
+
DOCKER: "DOCKER",
|
|
233
|
+
};
|
|
234
|
+
export const ImageSource = {
|
|
235
|
+
AMAZON_MANAGED: "AMAZON_MANAGED",
|
|
236
|
+
AWS_MARKETPLACE: "AWS_MARKETPLACE",
|
|
237
|
+
CUSTOM: "CUSTOM",
|
|
238
|
+
IMPORTED: "IMPORTED",
|
|
239
|
+
};
|
|
240
|
+
export const ImageScanStatus = {
|
|
241
|
+
ABANDONED: "ABANDONED",
|
|
242
|
+
COLLECTING: "COLLECTING",
|
|
243
|
+
COMPLETED: "COMPLETED",
|
|
244
|
+
FAILED: "FAILED",
|
|
245
|
+
PENDING: "PENDING",
|
|
246
|
+
SCANNING: "SCANNING",
|
|
247
|
+
TIMED_OUT: "TIMED_OUT",
|
|
248
|
+
};
|
|
249
|
+
export const WorkflowExecutionStatus = {
|
|
250
|
+
COMPLETED: "COMPLETED",
|
|
251
|
+
FAILED: "FAILED",
|
|
252
|
+
PENDING: "PENDING",
|
|
253
|
+
ROLLBACK_COMPLETED: "ROLLBACK_COMPLETED",
|
|
254
|
+
ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
|
|
255
|
+
RUNNING: "RUNNING",
|
|
256
|
+
SKIPPED: "SKIPPED",
|
|
257
|
+
};
|
|
258
|
+
export const WorkflowType = {
|
|
259
|
+
BUILD: "BUILD",
|
|
260
|
+
DISTRIBUTION: "DISTRIBUTION",
|
|
261
|
+
TEST: "TEST",
|
|
262
|
+
};
|
|
263
|
+
export const WorkflowStepExecutionRollbackStatus = {
|
|
264
|
+
COMPLETED: "COMPLETED",
|
|
265
|
+
FAILED: "FAILED",
|
|
266
|
+
RUNNING: "RUNNING",
|
|
267
|
+
SKIPPED: "SKIPPED",
|
|
268
|
+
};
|
|
269
|
+
export const WorkflowStepExecutionStatus = {
|
|
270
|
+
COMPLETED: "COMPLETED",
|
|
271
|
+
FAILED: "FAILED",
|
|
272
|
+
PENDING: "PENDING",
|
|
273
|
+
RUNNING: "RUNNING",
|
|
274
|
+
SKIPPED: "SKIPPED",
|
|
275
|
+
};
|
|
254
276
|
export class InvalidPaginationTokenException extends __BaseException {
|
|
255
277
|
constructor(opts) {
|
|
256
278
|
super({
|
|
@@ -263,13 +285,12 @@ export class InvalidPaginationTokenException extends __BaseException {
|
|
|
263
285
|
Object.setPrototypeOf(this, InvalidPaginationTokenException.prototype);
|
|
264
286
|
}
|
|
265
287
|
}
|
|
266
|
-
export
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
})(Ownership || (Ownership = {}));
|
|
288
|
+
export const Ownership = {
|
|
289
|
+
AMAZON: "Amazon",
|
|
290
|
+
SELF: "Self",
|
|
291
|
+
SHARED: "Shared",
|
|
292
|
+
THIRDPARTY: "ThirdParty",
|
|
293
|
+
};
|
|
273
294
|
export class InvalidParameterException extends __BaseException {
|
|
274
295
|
constructor(opts) {
|
|
275
296
|
super({
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ListImageScanFindingAggregationsCommand, } from "../commands/ListImageScanFindingAggregationsCommand";
|
|
2
|
+
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListImageScanFindingAggregationsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListImageScanFindingAggregations(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
if (config.client instanceof ImagebuilderClient) {
|
|
13
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
17
|
+
}
|
|
18
|
+
yield page;
|
|
19
|
+
const prevToken = token;
|
|
20
|
+
token = page.nextToken;
|
|
21
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
+
}
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListImageScanFindingsCommand, } from "../commands/ListImageScanFindingsCommand";
|
|
2
|
+
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListImageScanFindingsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListImageScanFindings(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ImagebuilderClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListWorkflowExecutionsCommand, } from "../commands/ListWorkflowExecutionsCommand";
|
|
2
|
+
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListWorkflowExecutionsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListWorkflowExecutions(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ImagebuilderClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListWorkflowStepExecutionsCommand, } from "../commands/ListWorkflowStepExecutionsCommand";
|
|
2
|
+
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListWorkflowStepExecutionsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListWorkflowStepExecutions(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ImagebuilderClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -8,5 +8,9 @@ export * from "./ListImagePackagesPaginator";
|
|
|
8
8
|
export * from "./ListImagePipelineImagesPaginator";
|
|
9
9
|
export * from "./ListImagePipelinesPaginator";
|
|
10
10
|
export * from "./ListImageRecipesPaginator";
|
|
11
|
+
export * from "./ListImageScanFindingAggregationsPaginator";
|
|
12
|
+
export * from "./ListImageScanFindingsPaginator";
|
|
11
13
|
export * from "./ListImagesPaginator";
|
|
12
14
|
export * from "./ListInfrastructureConfigurationsPaginator";
|
|
15
|
+
export * from "./ListWorkflowExecutionsPaginator";
|
|
16
|
+
export * from "./ListWorkflowStepExecutionsPaginator";
|