@aws-sdk/client-imagebuilder 3.451.0 → 3.453.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 +80 -0
- package/dist-cjs/Imagebuilder.js +20 -0
- package/dist-cjs/commands/CancelLifecycleExecutionCommand.js +51 -0
- package/dist-cjs/commands/CreateLifecyclePolicyCommand.js +51 -0
- package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +51 -0
- package/dist-cjs/commands/GetLifecycleExecutionCommand.js +51 -0
- package/dist-cjs/commands/GetLifecyclePolicyCommand.js +51 -0
- package/dist-cjs/commands/ListLifecycleExecutionResourcesCommand.js +51 -0
- package/dist-cjs/commands/ListLifecycleExecutionsCommand.js +51 -0
- package/dist-cjs/commands/ListLifecyclePoliciesCommand.js +51 -0
- package/dist-cjs/commands/StartResourceStateUpdateCommand.js +51 -0
- package/dist-cjs/commands/UpdateLifecyclePolicyCommand.js +51 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/models/models_0.js +50 -1
- package/dist-cjs/pagination/ListLifecycleExecutionResourcesPaginator.js +29 -0
- package/dist-cjs/pagination/ListLifecycleExecutionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListLifecyclePoliciesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +907 -15
- package/dist-es/Imagebuilder.js +20 -0
- package/dist-es/commands/CancelLifecycleExecutionCommand.js +47 -0
- package/dist-es/commands/CreateLifecyclePolicyCommand.js +47 -0
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +47 -0
- package/dist-es/commands/GetLifecycleExecutionCommand.js +47 -0
- package/dist-es/commands/GetLifecyclePolicyCommand.js +47 -0
- package/dist-es/commands/ListLifecycleExecutionResourcesCommand.js +47 -0
- package/dist-es/commands/ListLifecycleExecutionsCommand.js +47 -0
- package/dist-es/commands/ListLifecyclePoliciesCommand.js +47 -0
- package/dist-es/commands/StartResourceStateUpdateCommand.js +47 -0
- package/dist-es/commands/UpdateLifecyclePolicyCommand.js +47 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/models_0.js +49 -0
- package/dist-es/pagination/ListLifecycleExecutionResourcesPaginator.js +25 -0
- package/dist-es/pagination/ListLifecycleExecutionsPaginator.js +25 -0
- package/dist-es/pagination/ListLifecyclePoliciesPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +885 -13
- package/dist-types/Imagebuilder.d.ts +70 -0
- package/dist-types/ImagebuilderClient.d.ts +12 -2
- package/dist-types/commands/CancelLifecycleExecutionCommand.d.ts +103 -0
- package/dist-types/commands/CreateLifecyclePolicyCommand.d.ts +165 -0
- package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +98 -0
- package/dist-types/commands/GetImageCommand.d.ts +4 -2
- package/dist-types/commands/GetLifecycleExecutionCommand.d.ts +106 -0
- package/dist-types/commands/GetLifecyclePolicyCommand.d.ts +153 -0
- package/dist-types/commands/ListImageBuildVersionsCommand.d.ts +4 -2
- package/dist-types/commands/ListImagePipelineImagesCommand.d.ts +4 -2
- package/dist-types/commands/ListLifecycleExecutionResourcesCommand.d.ts +132 -0
- package/dist-types/commands/ListLifecycleExecutionsCommand.d.ts +114 -0
- package/dist-types/commands/ListLifecyclePoliciesCommand.d.ts +122 -0
- package/dist-types/commands/StartResourceStateUpdateCommand.d.ts +136 -0
- package/dist-types/commands/UpdateLifecyclePolicyCommand.d.ts +159 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +1224 -114
- package/dist-types/pagination/ListLifecycleExecutionResourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListLifecycleExecutionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListLifecyclePoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
- package/dist-types/ts3.4/Imagebuilder.d.ts +170 -0
- package/dist-types/ts3.4/ImagebuilderClient.d.ts +62 -2
- package/dist-types/ts3.4/commands/CancelLifecycleExecutionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateLifecyclePolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetLifecycleExecutionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListLifecycleExecutionResourcesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListLifecycleExecutionsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListLifecyclePoliciesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartResourceStateUpdateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateLifecyclePolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +283 -0
- package/dist-types/ts3.4/pagination/ListLifecycleExecutionResourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListLifecycleExecutionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListLifecyclePoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ export const ImageStatus = {
|
|
|
6
6
|
CREATING: "CREATING",
|
|
7
7
|
DELETED: "DELETED",
|
|
8
8
|
DEPRECATED: "DEPRECATED",
|
|
9
|
+
DISABLED: "DISABLED",
|
|
9
10
|
DISTRIBUTING: "DISTRIBUTING",
|
|
10
11
|
FAILED: "FAILED",
|
|
11
12
|
INTEGRATING: "INTEGRATING",
|
|
@@ -203,6 +204,29 @@ export const PipelineStatus = {
|
|
|
203
204
|
DISABLED: "DISABLED",
|
|
204
205
|
ENABLED: "ENABLED",
|
|
205
206
|
};
|
|
207
|
+
export const LifecyclePolicyDetailActionType = {
|
|
208
|
+
DELETE: "DELETE",
|
|
209
|
+
DEPRECATE: "DEPRECATE",
|
|
210
|
+
DISABLE: "DISABLE",
|
|
211
|
+
};
|
|
212
|
+
export const LifecyclePolicyTimeUnit = {
|
|
213
|
+
DAYS: "DAYS",
|
|
214
|
+
MONTHS: "MONTHS",
|
|
215
|
+
WEEKS: "WEEKS",
|
|
216
|
+
YEARS: "YEARS",
|
|
217
|
+
};
|
|
218
|
+
export const LifecyclePolicyDetailFilterType = {
|
|
219
|
+
AGE: "AGE",
|
|
220
|
+
COUNT: "COUNT",
|
|
221
|
+
};
|
|
222
|
+
export const LifecyclePolicyResourceType = {
|
|
223
|
+
AMI_IMAGE: "AMI_IMAGE",
|
|
224
|
+
CONTAINER_IMAGE: "CONTAINER_IMAGE",
|
|
225
|
+
};
|
|
226
|
+
export const LifecyclePolicyStatus = {
|
|
227
|
+
DISABLED: "DISABLED",
|
|
228
|
+
ENABLED: "ENABLED",
|
|
229
|
+
};
|
|
206
230
|
export class ResourceDependencyException extends __BaseException {
|
|
207
231
|
constructor(opts) {
|
|
208
232
|
super({
|
|
@@ -246,6 +270,13 @@ export const ImageScanStatus = {
|
|
|
246
270
|
SCANNING: "SCANNING",
|
|
247
271
|
TIMED_OUT: "TIMED_OUT",
|
|
248
272
|
};
|
|
273
|
+
export const LifecycleExecutionStatus = {
|
|
274
|
+
CANCELLED: "CANCELLED",
|
|
275
|
+
CANCELLING: "CANCELLING",
|
|
276
|
+
FAILED: "FAILED",
|
|
277
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
278
|
+
SUCCESS: "SUCCESS",
|
|
279
|
+
};
|
|
249
280
|
export const WorkflowExecutionStatus = {
|
|
250
281
|
COMPLETED: "COMPLETED",
|
|
251
282
|
FAILED: "FAILED",
|
|
@@ -291,6 +322,18 @@ export const Ownership = {
|
|
|
291
322
|
SHARED: "Shared",
|
|
292
323
|
THIRDPARTY: "ThirdParty",
|
|
293
324
|
};
|
|
325
|
+
export const LifecycleExecutionResourceActionName = {
|
|
326
|
+
AVAILABLE: "AVAILABLE",
|
|
327
|
+
DELETE: "DELETE",
|
|
328
|
+
DEPRECATE: "DEPRECATE",
|
|
329
|
+
DISABLE: "DISABLE",
|
|
330
|
+
};
|
|
331
|
+
export const LifecycleExecutionResourceStatus = {
|
|
332
|
+
FAILED: "FAILED",
|
|
333
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
334
|
+
SKIPPED: "SKIPPED",
|
|
335
|
+
SUCCESS: "SUCCESS",
|
|
336
|
+
};
|
|
294
337
|
export class InvalidParameterException extends __BaseException {
|
|
295
338
|
constructor(opts) {
|
|
296
339
|
super({
|
|
@@ -315,3 +358,9 @@ export class InvalidParameterValueException extends __BaseException {
|
|
|
315
358
|
Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
|
|
316
359
|
}
|
|
317
360
|
}
|
|
361
|
+
export const ResourceStatus = {
|
|
362
|
+
AVAILABLE: "AVAILABLE",
|
|
363
|
+
DELETED: "DELETED",
|
|
364
|
+
DEPRECATED: "DEPRECATED",
|
|
365
|
+
DISABLED: "DISABLED",
|
|
366
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListLifecycleExecutionResourcesCommand, } from "../commands/ListLifecycleExecutionResourcesCommand";
|
|
2
|
+
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListLifecycleExecutionResourcesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListLifecycleExecutionResources(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 { ListLifecycleExecutionsCommand, } from "../commands/ListLifecycleExecutionsCommand";
|
|
2
|
+
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListLifecycleExecutionsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListLifecycleExecutions(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 { ListLifecyclePoliciesCommand, } from "../commands/ListLifecyclePoliciesCommand";
|
|
2
|
+
import { ImagebuilderClient } from "../ImagebuilderClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListLifecyclePoliciesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListLifecyclePolicies(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
|
+
}
|
|
@@ -12,5 +12,8 @@ export * from "./ListImageScanFindingAggregationsPaginator";
|
|
|
12
12
|
export * from "./ListImageScanFindingsPaginator";
|
|
13
13
|
export * from "./ListImagesPaginator";
|
|
14
14
|
export * from "./ListInfrastructureConfigurationsPaginator";
|
|
15
|
+
export * from "./ListLifecycleExecutionResourcesPaginator";
|
|
16
|
+
export * from "./ListLifecycleExecutionsPaginator";
|
|
17
|
+
export * from "./ListLifecyclePoliciesPaginator";
|
|
15
18
|
export * from "./ListWorkflowExecutionsPaginator";
|
|
16
19
|
export * from "./ListWorkflowStepExecutionsPaginator";
|