Skip to content

Commit

Permalink
feat(client-imagebuilder): This release adds the Image Workflows feat…
Browse files Browse the repository at this point in the history
…ure to give more flexibility and control over the image building and testing process.
  • Loading branch information
awstools committed Dec 12, 2023
1 parent b3df814 commit 5cea9af
Show file tree
Hide file tree
Showing 28 changed files with 4,827 additions and 146 deletions.
56 changes: 56 additions & 0 deletions clients/client-imagebuilder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,14 @@ CreateLifecyclePolicy

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/imagebuilder/command/CreateLifecyclePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/CreateLifecyclePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/CreateLifecyclePolicyCommandOutput/)

</details>
<details>
<summary>
CreateWorkflow
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/imagebuilder/command/CreateWorkflowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/CreateWorkflowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/CreateWorkflowCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -349,6 +357,14 @@ DeleteLifecyclePolicy

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/imagebuilder/command/DeleteLifecyclePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/DeleteLifecyclePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/DeleteLifecyclePolicyCommandOutput/)

</details>
<details>
<summary>
DeleteWorkflow
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/imagebuilder/command/DeleteWorkflowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/DeleteWorkflowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/DeleteWorkflowCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -453,6 +469,14 @@ GetLifecyclePolicy

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/imagebuilder/command/GetLifecyclePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/GetLifecyclePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/GetLifecyclePolicyCommandOutput/)

</details>
<details>
<summary>
GetWorkflow
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/imagebuilder/command/GetWorkflowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/GetWorkflowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/GetWorkflowCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -621,6 +645,22 @@ ListTagsForResource

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/imagebuilder/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/ListTagsForResourceCommandOutput/)

</details>
<details>
<summary>
ListWaitingWorkflowSteps
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/imagebuilder/command/ListWaitingWorkflowStepsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/ListWaitingWorkflowStepsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/ListWaitingWorkflowStepsCommandOutput/)

</details>
<details>
<summary>
ListWorkflowBuildVersions
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/imagebuilder/command/ListWorkflowBuildVersionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/ListWorkflowBuildVersionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/ListWorkflowBuildVersionsCommandOutput/)

</details>
<details>
<summary>
Expand All @@ -629,6 +669,14 @@ ListWorkflowExecutions

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/imagebuilder/command/ListWorkflowExecutionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/ListWorkflowExecutionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/ListWorkflowExecutionsCommandOutput/)

</details>
<details>
<summary>
ListWorkflows
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/imagebuilder/command/ListWorkflowsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/ListWorkflowsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/ListWorkflowsCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -669,6 +717,14 @@ PutImageRecipePolicy

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/imagebuilder/command/PutImageRecipePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/PutImageRecipePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/PutImageRecipePolicyCommandOutput/)

</details>
<details>
<summary>
SendWorkflowStepAction
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/imagebuilder/command/SendWorkflowStepActionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/SendWorkflowStepActionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-imagebuilder/Interface/SendWorkflowStepActionCommandOutput/)

</details>
<details>
<summary>
Expand Down
139 changes: 139 additions & 0 deletions clients/client-imagebuilder/src/Imagebuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ import {
CreateLifecyclePolicyCommandInput,
CreateLifecyclePolicyCommandOutput,
} from "./commands/CreateLifecyclePolicyCommand";
import {
CreateWorkflowCommand,
CreateWorkflowCommandInput,
CreateWorkflowCommandOutput,
} from "./commands/CreateWorkflowCommand";
import {
DeleteComponentCommand,
DeleteComponentCommandInput,
Expand Down Expand Up @@ -84,6 +89,11 @@ import {
DeleteLifecyclePolicyCommandInput,
DeleteLifecyclePolicyCommandOutput,
} from "./commands/DeleteLifecyclePolicyCommand";
import {
DeleteWorkflowCommand,
DeleteWorkflowCommandInput,
DeleteWorkflowCommandOutput,
} from "./commands/DeleteWorkflowCommand";
import {
GetComponentCommand,
GetComponentCommandInput,
Expand Down Expand Up @@ -145,6 +155,7 @@ import {
GetLifecyclePolicyCommandInput,
GetLifecyclePolicyCommandOutput,
} from "./commands/GetLifecyclePolicyCommand";
import { GetWorkflowCommand, GetWorkflowCommandInput, GetWorkflowCommandOutput } from "./commands/GetWorkflowCommand";
import {
GetWorkflowExecutionCommand,
GetWorkflowExecutionCommandInput,
Expand Down Expand Up @@ -246,11 +257,26 @@ import {
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import {
ListWaitingWorkflowStepsCommand,
ListWaitingWorkflowStepsCommandInput,
ListWaitingWorkflowStepsCommandOutput,
} from "./commands/ListWaitingWorkflowStepsCommand";
import {
ListWorkflowBuildVersionsCommand,
ListWorkflowBuildVersionsCommandInput,
ListWorkflowBuildVersionsCommandOutput,
} from "./commands/ListWorkflowBuildVersionsCommand";
import {
ListWorkflowExecutionsCommand,
ListWorkflowExecutionsCommandInput,
ListWorkflowExecutionsCommandOutput,
} from "./commands/ListWorkflowExecutionsCommand";
import {
ListWorkflowsCommand,
ListWorkflowsCommandInput,
ListWorkflowsCommandOutput,
} from "./commands/ListWorkflowsCommand";
import {
ListWorkflowStepExecutionsCommand,
ListWorkflowStepExecutionsCommandInput,
Expand All @@ -276,6 +302,11 @@ import {
PutImageRecipePolicyCommandInput,
PutImageRecipePolicyCommandOutput,
} from "./commands/PutImageRecipePolicyCommand";
import {
SendWorkflowStepActionCommand,
SendWorkflowStepActionCommandInput,
SendWorkflowStepActionCommandOutput,
} from "./commands/SendWorkflowStepActionCommand";
import {
StartImagePipelineExecutionCommand,
StartImagePipelineExecutionCommandInput,
Expand Down Expand Up @@ -325,6 +356,7 @@ const commands = {
CreateImageRecipeCommand,
CreateInfrastructureConfigurationCommand,
CreateLifecyclePolicyCommand,
CreateWorkflowCommand,
DeleteComponentCommand,
DeleteContainerRecipeCommand,
DeleteDistributionConfigurationCommand,
Expand All @@ -333,6 +365,7 @@ const commands = {
DeleteImageRecipeCommand,
DeleteInfrastructureConfigurationCommand,
DeleteLifecyclePolicyCommand,
DeleteWorkflowCommand,
GetComponentCommand,
GetComponentPolicyCommand,
GetContainerRecipeCommand,
Expand All @@ -346,6 +379,7 @@ const commands = {
GetInfrastructureConfigurationCommand,
GetLifecycleExecutionCommand,
GetLifecyclePolicyCommand,
GetWorkflowCommand,
GetWorkflowExecutionCommand,
GetWorkflowStepExecutionCommand,
ImportComponentCommand,
Expand All @@ -367,12 +401,16 @@ const commands = {
ListLifecycleExecutionsCommand,
ListLifecyclePoliciesCommand,
ListTagsForResourceCommand,
ListWaitingWorkflowStepsCommand,
ListWorkflowBuildVersionsCommand,
ListWorkflowExecutionsCommand,
ListWorkflowsCommand,
ListWorkflowStepExecutionsCommand,
PutComponentPolicyCommand,
PutContainerRecipePolicyCommand,
PutImagePolicyCommand,
PutImageRecipePolicyCommand,
SendWorkflowStepActionCommand,
StartImagePipelineExecutionCommand,
StartResourceStateUpdateCommand,
TagResourceCommand,
Expand Down Expand Up @@ -545,6 +583,20 @@ export interface Imagebuilder {
cb: (err: any, data?: CreateLifecyclePolicyCommandOutput) => void
): void;

/**
* @see {@link CreateWorkflowCommand}
*/
createWorkflow(
args: CreateWorkflowCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateWorkflowCommandOutput>;
createWorkflow(args: CreateWorkflowCommandInput, cb: (err: any, data?: CreateWorkflowCommandOutput) => void): void;
createWorkflow(
args: CreateWorkflowCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateWorkflowCommandOutput) => void
): void;

/**
* @see {@link DeleteComponentCommand}
*/
Expand Down Expand Up @@ -672,6 +724,20 @@ export interface Imagebuilder {
cb: (err: any, data?: DeleteLifecyclePolicyCommandOutput) => void
): void;

/**
* @see {@link DeleteWorkflowCommand}
*/
deleteWorkflow(
args: DeleteWorkflowCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteWorkflowCommandOutput>;
deleteWorkflow(args: DeleteWorkflowCommandInput, cb: (err: any, data?: DeleteWorkflowCommandOutput) => void): void;
deleteWorkflow(
args: DeleteWorkflowCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteWorkflowCommandOutput) => void
): void;

/**
* @see {@link GetComponentCommand}
*/
Expand Down Expand Up @@ -875,6 +941,17 @@ export interface Imagebuilder {
cb: (err: any, data?: GetLifecyclePolicyCommandOutput) => void
): void;

/**
* @see {@link GetWorkflowCommand}
*/
getWorkflow(args: GetWorkflowCommandInput, options?: __HttpHandlerOptions): Promise<GetWorkflowCommandOutput>;
getWorkflow(args: GetWorkflowCommandInput, cb: (err: any, data?: GetWorkflowCommandOutput) => void): void;
getWorkflow(
args: GetWorkflowCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetWorkflowCommandOutput) => void
): void;

/**
* @see {@link GetWorkflowExecutionCommand}
*/
Expand Down Expand Up @@ -1214,6 +1291,40 @@ export interface Imagebuilder {
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
): void;

/**
* @see {@link ListWaitingWorkflowStepsCommand}
*/
listWaitingWorkflowSteps(
args: ListWaitingWorkflowStepsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListWaitingWorkflowStepsCommandOutput>;
listWaitingWorkflowSteps(
args: ListWaitingWorkflowStepsCommandInput,
cb: (err: any, data?: ListWaitingWorkflowStepsCommandOutput) => void
): void;
listWaitingWorkflowSteps(
args: ListWaitingWorkflowStepsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListWaitingWorkflowStepsCommandOutput) => void
): void;

/**
* @see {@link ListWorkflowBuildVersionsCommand}
*/
listWorkflowBuildVersions(
args: ListWorkflowBuildVersionsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListWorkflowBuildVersionsCommandOutput>;
listWorkflowBuildVersions(
args: ListWorkflowBuildVersionsCommandInput,
cb: (err: any, data?: ListWorkflowBuildVersionsCommandOutput) => void
): void;
listWorkflowBuildVersions(
args: ListWorkflowBuildVersionsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListWorkflowBuildVersionsCommandOutput) => void
): void;

/**
* @see {@link ListWorkflowExecutionsCommand}
*/
Expand All @@ -1231,6 +1342,17 @@ export interface Imagebuilder {
cb: (err: any, data?: ListWorkflowExecutionsCommandOutput) => void
): void;

/**
* @see {@link ListWorkflowsCommand}
*/
listWorkflows(args: ListWorkflowsCommandInput, options?: __HttpHandlerOptions): Promise<ListWorkflowsCommandOutput>;
listWorkflows(args: ListWorkflowsCommandInput, cb: (err: any, data?: ListWorkflowsCommandOutput) => void): void;
listWorkflows(
args: ListWorkflowsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListWorkflowsCommandOutput) => void
): void;

/**
* @see {@link ListWorkflowStepExecutionsCommand}
*/
Expand Down Expand Up @@ -1313,6 +1435,23 @@ export interface Imagebuilder {
cb: (err: any, data?: PutImageRecipePolicyCommandOutput) => void
): void;

/**
* @see {@link SendWorkflowStepActionCommand}
*/
sendWorkflowStepAction(
args: SendWorkflowStepActionCommandInput,
options?: __HttpHandlerOptions
): Promise<SendWorkflowStepActionCommandOutput>;
sendWorkflowStepAction(
args: SendWorkflowStepActionCommandInput,
cb: (err: any, data?: SendWorkflowStepActionCommandOutput) => void
): void;
sendWorkflowStepAction(
args: SendWorkflowStepActionCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: SendWorkflowStepActionCommandOutput) => void
): void;

/**
* @see {@link StartImagePipelineExecutionCommand}
*/
Expand Down
Loading

0 comments on commit 5cea9af

Please sign in to comment.