@aws-sdk/client-imagebuilder 3.301.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 +8 -7
- package/dist-types/commands/CreateComponentCommand.d.ts +16 -13
- package/dist-types/commands/CreateContainerRecipeCommand.d.ts +13 -9
- package/dist-types/commands/CreateDistributionConfigurationCommand.d.ts +15 -12
- package/dist-types/commands/CreateImageCommand.d.ts +23 -10
- package/dist-types/commands/CreateImagePipelineCommand.d.ts +21 -9
- package/dist-types/commands/CreateImageRecipeCommand.d.ts +13 -10
- package/dist-types/commands/CreateInfrastructureConfigurationCommand.d.ts +13 -10
- package/dist-types/commands/DeleteComponentCommand.d.ts +9 -8
- package/dist-types/commands/DeleteContainerRecipeCommand.d.ts +8 -7
- package/dist-types/commands/DeleteDistributionConfigurationCommand.d.ts +9 -8
- package/dist-types/commands/DeleteImageCommand.d.ts +16 -14
- package/dist-types/commands/DeleteImagePipelineCommand.d.ts +9 -8
- package/dist-types/commands/DeleteImageRecipeCommand.d.ts +9 -8
- package/dist-types/commands/DeleteInfrastructureConfigurationCommand.d.ts +9 -8
- package/dist-types/commands/GetComponentCommand.d.ts +7 -6
- package/dist-types/commands/GetComponentPolicyCommand.d.ts +4 -3
- package/dist-types/commands/GetContainerRecipeCommand.d.ts +6 -5
- package/dist-types/commands/GetContainerRecipePolicyCommand.d.ts +3 -2
- package/dist-types/commands/GetDistributionConfigurationCommand.d.ts +7 -6
- package/dist-types/commands/GetImageCommand.d.ts +7 -6
- package/dist-types/commands/GetImagePipelineCommand.d.ts +7 -6
- package/dist-types/commands/GetImagePolicyCommand.d.ts +4 -3
- package/dist-types/commands/GetImageRecipeCommand.d.ts +7 -6
- package/dist-types/commands/GetImageRecipePolicyCommand.d.ts +4 -3
- package/dist-types/commands/GetInfrastructureConfigurationCommand.d.ts +7 -6
- 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 +10 -9
- package/dist-types/commands/ImportVmImageCommand.d.ts +12 -12
- package/dist-types/commands/ListComponentBuildVersionsCommand.d.ts +8 -6
- package/dist-types/commands/ListComponentsCommand.d.ts +9 -8
- package/dist-types/commands/ListContainerRecipesCommand.d.ts +6 -5
- package/dist-types/commands/ListDistributionConfigurationsCommand.d.ts +6 -5
- package/dist-types/commands/ListImageBuildVersionsCommand.d.ts +7 -6
- package/dist-types/commands/ListImagePackagesCommand.d.ts +8 -6
- package/dist-types/commands/ListImagePipelineImagesCommand.d.ts +6 -5
- package/dist-types/commands/ListImagePipelinesCommand.d.ts +6 -5
- package/dist-types/commands/ListImageRecipesCommand.d.ts +7 -6
- 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 +8 -7
- package/dist-types/commands/ListInfrastructureConfigurationsCommand.d.ts +7 -6
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -2
- 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 +9 -8
- package/dist-types/commands/PutContainerRecipePolicyCommand.d.ts +14 -6
- package/dist-types/commands/PutImagePolicyCommand.d.ts +8 -7
- package/dist-types/commands/PutImageRecipePolicyCommand.d.ts +9 -8
- package/dist-types/commands/StartImagePipelineExecutionCommand.d.ts +9 -8
- package/dist-types/commands/TagResourceCommand.d.ts +3 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +3 -2
- package/dist-types/commands/UpdateDistributionConfigurationCommand.d.ts +11 -10
- package/dist-types/commands/UpdateImagePipelineCommand.d.ts +21 -11
- package/dist-types/commands/UpdateInfrastructureConfigurationCommand.d.ts +10 -9
- 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,27 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvalidParameterValueException = exports.InvalidParameterException = exports.Ownership = exports.InvalidPaginationTokenException = exports.ImageSource = exports.ImageType = exports.ResourceNotFoundException = exports.ResourceDependencyException = exports.PipelineStatus = exports.PipelineExecutionStartCondition = exports.DiskImageFormat = exports.ResourceAlreadyExistsException = exports.ServiceQuotaExceededException = exports.InvalidVersionNumberException = exports.InvalidParameterCombinationException = exports.EbsVolumeType = exports.ContainerType = exports.ContainerRepositoryService = exports.ComponentFormat = exports.ComponentType = exports.ComponentStatus = exports.Platform = exports.ServiceUnavailableException = exports.ServiceException = exports.ResourceInUseException = exports.InvalidRequestException = exports.IdempotentParameterMismatchException = exports.ForbiddenException = exports.ClientException = exports.CallRateLimitExceededException = exports.BuildType = exports.ImageStatus = void 0;
|
|
3
|
+
exports.InvalidParameterValueException = exports.InvalidParameterException = exports.Ownership = exports.InvalidPaginationTokenException = exports.WorkflowStepExecutionStatus = exports.WorkflowStepExecutionRollbackStatus = exports.WorkflowType = exports.WorkflowExecutionStatus = exports.ImageScanStatus = exports.ImageSource = exports.ImageType = exports.ResourceNotFoundException = exports.ResourceDependencyException = exports.PipelineStatus = exports.PipelineExecutionStartCondition = exports.DiskImageFormat = exports.ResourceAlreadyExistsException = exports.ServiceQuotaExceededException = exports.InvalidVersionNumberException = exports.InvalidParameterCombinationException = exports.EbsVolumeType = exports.ContainerType = exports.ContainerRepositoryService = exports.ComponentFormat = exports.ComponentType = exports.ComponentStatus = exports.Platform = exports.ServiceUnavailableException = exports.ServiceException = exports.ResourceInUseException = exports.InvalidRequestException = exports.IdempotentParameterMismatchException = exports.ForbiddenException = exports.ClientException = exports.CallRateLimitExceededException = exports.BuildType = exports.ImageStatus = void 0;
|
|
4
4
|
const ImagebuilderServiceException_1 = require("./ImagebuilderServiceException");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
BuildType["USER_INITIATED"] = "USER_INITIATED";
|
|
24
|
-
})(BuildType = exports.BuildType || (exports.BuildType = {}));
|
|
5
|
+
exports.ImageStatus = {
|
|
6
|
+
AVAILABLE: "AVAILABLE",
|
|
7
|
+
BUILDING: "BUILDING",
|
|
8
|
+
CANCELLED: "CANCELLED",
|
|
9
|
+
CREATING: "CREATING",
|
|
10
|
+
DELETED: "DELETED",
|
|
11
|
+
DEPRECATED: "DEPRECATED",
|
|
12
|
+
DISTRIBUTING: "DISTRIBUTING",
|
|
13
|
+
FAILED: "FAILED",
|
|
14
|
+
INTEGRATING: "INTEGRATING",
|
|
15
|
+
PENDING: "PENDING",
|
|
16
|
+
TESTING: "TESTING",
|
|
17
|
+
};
|
|
18
|
+
exports.BuildType = {
|
|
19
|
+
IMPORT: "IMPORT",
|
|
20
|
+
SCHEDULED: "SCHEDULED",
|
|
21
|
+
USER_INITIATED: "USER_INITIATED",
|
|
22
|
+
};
|
|
25
23
|
class CallRateLimitExceededException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
|
|
26
24
|
constructor(opts) {
|
|
27
25
|
super({
|
|
@@ -126,42 +124,35 @@ class ServiceUnavailableException extends ImagebuilderServiceException_1.Imagebu
|
|
|
126
124
|
}
|
|
127
125
|
}
|
|
128
126
|
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
EbsVolumeType["GP3"] = "gp3";
|
|
159
|
-
EbsVolumeType["IO1"] = "io1";
|
|
160
|
-
EbsVolumeType["IO2"] = "io2";
|
|
161
|
-
EbsVolumeType["SC1"] = "sc1";
|
|
162
|
-
EbsVolumeType["ST1"] = "st1";
|
|
163
|
-
EbsVolumeType["STANDARD"] = "standard";
|
|
164
|
-
})(EbsVolumeType = exports.EbsVolumeType || (exports.EbsVolumeType = {}));
|
|
127
|
+
exports.Platform = {
|
|
128
|
+
LINUX: "Linux",
|
|
129
|
+
WINDOWS: "Windows",
|
|
130
|
+
};
|
|
131
|
+
exports.ComponentStatus = {
|
|
132
|
+
DEPRECATED: "DEPRECATED",
|
|
133
|
+
};
|
|
134
|
+
exports.ComponentType = {
|
|
135
|
+
BUILD: "BUILD",
|
|
136
|
+
TEST: "TEST",
|
|
137
|
+
};
|
|
138
|
+
exports.ComponentFormat = {
|
|
139
|
+
SHELL: "SHELL",
|
|
140
|
+
};
|
|
141
|
+
exports.ContainerRepositoryService = {
|
|
142
|
+
ECR: "ECR",
|
|
143
|
+
};
|
|
144
|
+
exports.ContainerType = {
|
|
145
|
+
DOCKER: "DOCKER",
|
|
146
|
+
};
|
|
147
|
+
exports.EbsVolumeType = {
|
|
148
|
+
GP2: "gp2",
|
|
149
|
+
GP3: "gp3",
|
|
150
|
+
IO1: "io1",
|
|
151
|
+
IO2: "io2",
|
|
152
|
+
SC1: "sc1",
|
|
153
|
+
ST1: "st1",
|
|
154
|
+
STANDARD: "standard",
|
|
155
|
+
};
|
|
165
156
|
class InvalidParameterCombinationException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
|
|
166
157
|
constructor(opts) {
|
|
167
158
|
super({
|
|
@@ -214,22 +205,19 @@ class ResourceAlreadyExistsException extends ImagebuilderServiceException_1.Imag
|
|
|
214
205
|
}
|
|
215
206
|
}
|
|
216
207
|
exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
PipelineStatus["DISABLED"] = "DISABLED";
|
|
231
|
-
PipelineStatus["ENABLED"] = "ENABLED";
|
|
232
|
-
})(PipelineStatus = exports.PipelineStatus || (exports.PipelineStatus = {}));
|
|
208
|
+
exports.DiskImageFormat = {
|
|
209
|
+
RAW: "RAW",
|
|
210
|
+
VHD: "VHD",
|
|
211
|
+
VMDK: "VMDK",
|
|
212
|
+
};
|
|
213
|
+
exports.PipelineExecutionStartCondition = {
|
|
214
|
+
EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE: "EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE",
|
|
215
|
+
EXPRESSION_MATCH_ONLY: "EXPRESSION_MATCH_ONLY",
|
|
216
|
+
};
|
|
217
|
+
exports.PipelineStatus = {
|
|
218
|
+
DISABLED: "DISABLED",
|
|
219
|
+
ENABLED: "ENABLED",
|
|
220
|
+
};
|
|
233
221
|
class ResourceDependencyException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
|
|
234
222
|
constructor(opts) {
|
|
235
223
|
super({
|
|
@@ -256,18 +244,52 @@ class ResourceNotFoundException extends ImagebuilderServiceException_1.Imagebuil
|
|
|
256
244
|
}
|
|
257
245
|
}
|
|
258
246
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
247
|
+
exports.ImageType = {
|
|
248
|
+
AMI: "AMI",
|
|
249
|
+
DOCKER: "DOCKER",
|
|
250
|
+
};
|
|
251
|
+
exports.ImageSource = {
|
|
252
|
+
AMAZON_MANAGED: "AMAZON_MANAGED",
|
|
253
|
+
AWS_MARKETPLACE: "AWS_MARKETPLACE",
|
|
254
|
+
CUSTOM: "CUSTOM",
|
|
255
|
+
IMPORTED: "IMPORTED",
|
|
256
|
+
};
|
|
257
|
+
exports.ImageScanStatus = {
|
|
258
|
+
ABANDONED: "ABANDONED",
|
|
259
|
+
COLLECTING: "COLLECTING",
|
|
260
|
+
COMPLETED: "COMPLETED",
|
|
261
|
+
FAILED: "FAILED",
|
|
262
|
+
PENDING: "PENDING",
|
|
263
|
+
SCANNING: "SCANNING",
|
|
264
|
+
TIMED_OUT: "TIMED_OUT",
|
|
265
|
+
};
|
|
266
|
+
exports.WorkflowExecutionStatus = {
|
|
267
|
+
COMPLETED: "COMPLETED",
|
|
268
|
+
FAILED: "FAILED",
|
|
269
|
+
PENDING: "PENDING",
|
|
270
|
+
ROLLBACK_COMPLETED: "ROLLBACK_COMPLETED",
|
|
271
|
+
ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
|
|
272
|
+
RUNNING: "RUNNING",
|
|
273
|
+
SKIPPED: "SKIPPED",
|
|
274
|
+
};
|
|
275
|
+
exports.WorkflowType = {
|
|
276
|
+
BUILD: "BUILD",
|
|
277
|
+
DISTRIBUTION: "DISTRIBUTION",
|
|
278
|
+
TEST: "TEST",
|
|
279
|
+
};
|
|
280
|
+
exports.WorkflowStepExecutionRollbackStatus = {
|
|
281
|
+
COMPLETED: "COMPLETED",
|
|
282
|
+
FAILED: "FAILED",
|
|
283
|
+
RUNNING: "RUNNING",
|
|
284
|
+
SKIPPED: "SKIPPED",
|
|
285
|
+
};
|
|
286
|
+
exports.WorkflowStepExecutionStatus = {
|
|
287
|
+
COMPLETED: "COMPLETED",
|
|
288
|
+
FAILED: "FAILED",
|
|
289
|
+
PENDING: "PENDING",
|
|
290
|
+
RUNNING: "RUNNING",
|
|
291
|
+
SKIPPED: "SKIPPED",
|
|
292
|
+
};
|
|
271
293
|
class InvalidPaginationTokenException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
|
|
272
294
|
constructor(opts) {
|
|
273
295
|
super({
|
|
@@ -281,13 +303,12 @@ class InvalidPaginationTokenException extends ImagebuilderServiceException_1.Ima
|
|
|
281
303
|
}
|
|
282
304
|
}
|
|
283
305
|
exports.InvalidPaginationTokenException = InvalidPaginationTokenException;
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
})(Ownership = exports.Ownership || (exports.Ownership = {}));
|
|
306
|
+
exports.Ownership = {
|
|
307
|
+
AMAZON: "Amazon",
|
|
308
|
+
SELF: "Self",
|
|
309
|
+
SHARED: "Shared",
|
|
310
|
+
THIRDPARTY: "ThirdParty",
|
|
311
|
+
};
|
|
291
312
|
class InvalidParameterException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
|
|
292
313
|
constructor(opts) {
|
|
293
314
|
super({
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListImageScanFindingAggregations = void 0;
|
|
4
|
+
const ListImageScanFindingAggregationsCommand_1 = require("../commands/ListImageScanFindingAggregationsCommand");
|
|
5
|
+
const ImagebuilderClient_1 = require("../ImagebuilderClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListImageScanFindingAggregationsCommand_1.ListImageScanFindingAggregationsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListImageScanFindingAggregations(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
if (config.client instanceof ImagebuilderClient_1.ImagebuilderClient) {
|
|
16
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
20
|
+
}
|
|
21
|
+
yield page;
|
|
22
|
+
const prevToken = token;
|
|
23
|
+
token = page.nextToken;
|
|
24
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
+
}
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
exports.paginateListImageScanFindingAggregations = paginateListImageScanFindingAggregations;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListImageScanFindings = void 0;
|
|
4
|
+
const ListImageScanFindingsCommand_1 = require("../commands/ListImageScanFindingsCommand");
|
|
5
|
+
const ImagebuilderClient_1 = require("../ImagebuilderClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListImageScanFindingsCommand_1.ListImageScanFindingsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListImageScanFindings(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof ImagebuilderClient_1.ImagebuilderClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListImageScanFindings = paginateListImageScanFindings;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListWorkflowExecutions = void 0;
|
|
4
|
+
const ListWorkflowExecutionsCommand_1 = require("../commands/ListWorkflowExecutionsCommand");
|
|
5
|
+
const ImagebuilderClient_1 = require("../ImagebuilderClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListWorkflowExecutionsCommand_1.ListWorkflowExecutionsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListWorkflowExecutions(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof ImagebuilderClient_1.ImagebuilderClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListWorkflowExecutions = paginateListWorkflowExecutions;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListWorkflowStepExecutions = void 0;
|
|
4
|
+
const ListWorkflowStepExecutionsCommand_1 = require("../commands/ListWorkflowStepExecutionsCommand");
|
|
5
|
+
const ImagebuilderClient_1 = require("../ImagebuilderClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListWorkflowStepExecutionsCommand_1.ListWorkflowStepExecutionsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListWorkflowStepExecutions(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof ImagebuilderClient_1.ImagebuilderClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListWorkflowStepExecutions = paginateListWorkflowStepExecutions;
|
|
@@ -11,5 +11,9 @@ tslib_1.__exportStar(require("./ListImagePackagesPaginator"), exports);
|
|
|
11
11
|
tslib_1.__exportStar(require("./ListImagePipelineImagesPaginator"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./ListImagePipelinesPaginator"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./ListImageRecipesPaginator"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./ListImageScanFindingAggregationsPaginator"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./ListImageScanFindingsPaginator"), exports);
|
|
14
16
|
tslib_1.__exportStar(require("./ListImagesPaginator"), exports);
|
|
15
17
|
tslib_1.__exportStar(require("./ListInfrastructureConfigurationsPaginator"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./ListWorkflowExecutionsPaginator"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./ListWorkflowStepExecutionsPaginator"), exports);
|