Package-level declarations

Types

Link copied to clipboard

EC2 Image Builder automates the creation, management, and deployment of customized, secure, and up-to-date server images. You can build Amazon Machine Images (AMIs) and container images that are pre-installed and pre-configured with software and settings to meet specific IT standards.

Properties

Link copied to clipboard
const val SdkVersion: String
Link copied to clipboard
Link copied to clipboard
const val ServiceId: String

Inherited functions

Link copied to clipboard

Cancels the creation of an image. This operation can only be used on images in a non-terminal state. Cancellation is asynchronous: the request returns immediately, then Image Builder stops the running build and moves the image to the CANCELLED state. Output resources that the build already created, such as AMIs and snapshots, aren't removed.

Link copied to clipboard

Cancels a lifecycle execution – a single run of lifecycle actions that a lifecycle policy or a StartResourceStateUpdate request started. You can only cancel an execution that hasn't reached a terminal state. Cancellation is asynchronous and doesn't undo completed lifecycle actions.

Link copied to clipboard

Creates a new component that can be used to build, validate, test, and assess your image. The component is based on a YAML document that you specify using exactly one of the following methods:

Link copied to clipboard

Creates a new container recipe. Container recipes define how images are configured, tested, and assessed.

Link copied to clipboard

Creates a new distribution configuration. Distribution configurations define and configure the outputs for your images, including the target Regions, accounts, and settings for each Region.

Link copied to clipboard

Creates a new image along with all configured output resources defined in the distribution configuration. You must specify exactly one recipe for your image, using either a containerRecipeArn or an imageRecipeArn.

Link copied to clipboard

Creates a new image pipeline. Use image pipelines to automate the creation and distribution of images. You must specify exactly one recipe for the pipeline, using either a containerRecipeArn or an imageRecipeArn.

Link copied to clipboard

Creates a new image recipe. Image recipes define how images are configured, tested, and assessed.

Link copied to clipboard

Creates a new infrastructure configuration. An infrastructure configuration defines the environment in which your image will be built and tested.

Link copied to clipboard

Creates a lifecycle policy resource.

Link copied to clipboard

Creates a new workflow or a new version of an existing workflow. If a workflow with the same name and semantic version already exists, and your request changes its configuration, Image Builder creates a new build version. If the configuration is identical to the latest build version, the request fails because that workflow configuration already exists.

Link copied to clipboard

Deletes a component build version. The request fails with ResourceDependencyException if an image recipe or container recipe references this component version. It also fails if the component build version is shared with other accounts.

Link copied to clipboard

Deletes a container recipe. The request fails with ResourceDependencyException if the recipe is shared with other accounts, or if an image pipeline references it.

Link copied to clipboard

Deletes a distribution configuration. You can't delete a configuration that an image pipeline still references. The request fails with ResourceDependencyException. Update or delete the referencing pipelines first.

Link copied to clipboard

Deletes an Image Builder image resource. This does not delete any EC2 AMIs or ECR container images that are created during the image build process. You must clean those up separately, using the appropriate Amazon EC2 or Amazon ECR console actions, or API or CLI commands.

Link copied to clipboard

Deletes an image pipeline. Images that the pipeline created aren't deleted - remove those separately with DeleteImage. You can delete a pipeline while a build that it started is still running. The build continues independently.

Link copied to clipboard

Deletes an image recipe.

Link copied to clipboard

Deletes an infrastructure configuration. You can't delete a configuration that an image pipeline still references. The request fails with ResourceDependencyException. Update or delete the referencing pipelines first.

Link copied to clipboard

Deletes the specified lifecycle policy resource. Deleting the policy removes its schedule, so no further lifecycle runs occur for that policy. If a lifecycle execution is in progress for the policy, Image Builder cancels it. Deletion doesn't revert actions that the policy already applied to your resources.

Link copied to clipboard

Deletes a specific workflow resource. You can't delete a workflow build version while an image pipeline references it. The request fails with ResourceDependencyException.

Link copied to clipboard

Distributes an existing AMI to target Regions and accounts without running the full image build process. This operation only runs the distribution phase on an image that has already been built.

Link copied to clipboard

Retrieves a component object.

Link copied to clipboard

Retrieves a component policy.

Link copied to clipboard

Retrieves a container recipe.

Link copied to clipboard

Retrieves the policy for a container recipe.

Link copied to clipboard

Retrieves a distribution configuration.

Link copied to clipboard
inline suspend fun ImagebuilderClient.getImage(crossinline block: GetImageRequest.Builder.() -> Unit): GetImageResponse

Retrieves an image.

Link copied to clipboard

Retrieves an image pipeline.

Link copied to clipboard

Retrieves an image policy.

Link copied to clipboard

Retrieves an image recipe.

Link copied to clipboard

Retrieves an image recipe policy.

Link copied to clipboard

Retrieves an infrastructure configuration.

Link copied to clipboard

Retrieves runtime information for a lifecycle execution – a single run of lifecycle actions that a lifecycle policy or a StartResourceStateUpdate request started.

Link copied to clipboard

Retrieves details for the specified image lifecycle policy.

Link copied to clipboard

Verifies the subscription and performs resource dependency checks on the requested Amazon Web Services Marketplace resource. The caller must be entitled to the resource. For Amazon Web Services Marketplace components, the response contains fields to download the components and their artifacts.

Link copied to clipboard

Retrieves a workflow resource object.

Link copied to clipboard

Retrieves runtime information for a specific runtime instance of the workflow.

Link copied to clipboard

Retrieves runtime information for a specific runtime instance of the workflow step.

Link copied to clipboard

Imports a component and transforms its data into a component document. For the SHELL format, Image Builder wraps your script in a component document with a single step that runs the script.

Link copied to clipboard

Imports a Windows operating system image from a verified Microsoft ISO disk file. The following disk images are supported:

Link copied to clipboard

Creates an Image Builder image resource from an Amazon EC2 VM import task. The response returns as soon as Image Builder creates the image resource in the PENDING state. Image Builder then monitors the import task asynchronously. When the task completes, Image Builder records the AMI that it produced as the new image's output resource and marks the image AVAILABLE. You can then use the imported image as the base image for your recipes.

Link copied to clipboard

Returns a list of component build versions for the specified component version ARN. You can only list build versions for components that your account owns. Deprecated build versions aren't included in the results.

Link copied to clipboard

Returns the list of components that you have access to. By default, the response doesn't include components in the DEPRECATED state. To list deprecated components, use the status filter with the value DEPRECATED.

Link copied to clipboard

Returns a list of container recipes.

Link copied to clipboard

Returns a list of distribution configurations.

Link copied to clipboard

Returns a list of image build versions.

Link copied to clipboard

Lists the packages that are associated with an image build version, as determined by Amazon Web Services Systems Manager Inventory at build time.

Link copied to clipboard

Returns a list of images created by the specified pipeline.

Link copied to clipboard

Returns a list of image pipelines.

Link copied to clipboard

Returns a list of image recipes.

Link copied to clipboard
inline suspend fun ImagebuilderClient.listImages(crossinline block: ListImagesRequest.Builder.() -> Unit): ListImagesResponse

Returns the list of images that you have access to.

Link copied to clipboard

Returns a list of image scan aggregations for your account. You can filter by the type of key that Image Builder uses to group results. For example, if you want to get a list of findings by severity level for one of your pipelines, you might specify your pipeline with the imagePipelineArn filter. If you don't specify a filter, Image Builder returns an aggregation for your account.

Link copied to clipboard

Returns a list of image scan findings for your account. Amazon Inspector generates the findings when it scans images that have scanning enabled.

Link copied to clipboard

Returns a list of infrastructure configurations.

Link copied to clipboard

Lists resources that the runtime instance of the image lifecycle identified for lifecycle actions.

Link copied to clipboard

Retrieves the lifecycle runtime history for the specified resource.

Link copied to clipboard

Retrieves a list of lifecycle policies in your Amazon Web Services account.

Link copied to clipboard

Returns the list of tags for the specified resource.

Link copied to clipboard

Lists the workflow steps in your Amazon Web Services account that have paused at a WaitForAction step, and are waiting for you to respond. To send a response, call SendWorkflowStepAction.

Link copied to clipboard

Returns a list of build versions for a specific workflow resource.

Link copied to clipboard

Returns a list of workflow runtime instance metadata objects for a specific image build version.

Link copied to clipboard

Lists workflow versions based on filtering parameters. To list the build versions of a specific workflow version, call ListWorkflowBuildVersions.

Link copied to clipboard

Returns runtime data for each step in a runtime instance of the workflow that you specify in the request.

Link copied to clipboard

Applies a policy to a component. The preferred way to share resources is with the RAM API CreateResourceShare. If you use the PutComponentPolicy operation instead, you must also call the RAM API PromoteResourceShareCreatedFromPolicy. Otherwise, the resource isn't visible to the principals that it's shared with.

Link copied to clipboard

Applies a policy to a container recipe. The preferred way to share resources is with the RAM API CreateResourceShare. If you use the PutContainerRecipePolicy operation instead, you must also call the RAM API PromoteResourceShareCreatedFromPolicy. Otherwise, the resource isn't visible to the principals that it's shared with.

Link copied to clipboard

Applies a policy to an image. The preferred way to share resources is with the RAM API CreateResourceShare. If you use the PutImagePolicy operation instead, you must also call the RAM API PromoteResourceShareCreatedFromPolicy. Otherwise, the resource isn't visible to the principals that it's shared with.

Link copied to clipboard

Applies a policy to an image recipe. The preferred way to share resources is with the RAM API CreateResourceShare. If you use the PutImageRecipePolicy operation instead, you must also call the RAM API PromoteResourceShareCreatedFromPolicy. Otherwise, the resource isn't visible to the principals that it's shared with.

Link copied to clipboard
inline suspend fun ImagebuilderClient.retryImage(crossinline block: RetryImageRequest.Builder.() -> Unit): RetryImageResponse

Retries a failed or canceled image build without rebuilding the phases that already completed. The image re-runs asynchronously in place: the same build version returns to the test or distribution phase where it failed and continues from there. No new image build version is created. Retry is only supported for AMI-based images.

Link copied to clipboard

Sends an action to a workflow step that has paused at a WaitForAction step, so that image creation can continue. To find the steps that are waiting for an action, call ListWaitingWorkflowSteps.

Link copied to clipboard

Manually triggers a pipeline to create an image. You can start a build this way whether the pipeline is enabled or disabled. The response returns as soon as Image Builder creates the new image resource and queues the build. Use the returned imageBuildVersionArn with GetImage to track build progress.

Link copied to clipboard

Begins an ad-hoc state change for the specified image build version. This is a one-time operation - if you schedule the update, it runs only once. If the request includes underlying resources, or schedules the update far enough in the future, Image Builder runs the update as an asynchronous lifecycle execution and returns its identifier. Otherwise, for target states other than DELETED, the state change applies immediately. If a request that starts a lifecycle execution arrives while the image already has one in progress, Image Builder rejects it.

Link copied to clipboard

Adds a tag to a resource.

Link copied to clipboard

Removes a tag from a resource.

Link copied to clipboard

Updates a distribution configuration. Distribution configurations define and configure the outputs for your images, including the target Regions, accounts, and settings for each Region.

Link copied to clipboard

Updates an image pipeline. Use image pipelines to automate the creation and distribution of images. You must specify exactly one recipe for your image, using either a containerRecipeArn or an imageRecipeArn. The recipe must be the same type, image or container, as the pipeline's current recipe.

Link copied to clipboard

Updates an infrastructure configuration. An infrastructure configuration defines the environment in which Image Builder builds and tests your image.

Link copied to clipboard

Updates the specified lifecycle policy. The request replaces the existing policy configuration rather than merging changes, so re-specify every setting that you want to keep. The resourceType must match the existing policy's value.

Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.