Interface ImagePipelineProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ImagePipelineProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)", date="2025-12-05T22:26:50.060Z") @Stability(Experimental) public interface ImagePipelineProps extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for creating an Image Pipeline resource.

Example:

 ImagePipeline workflowPipeline = ImagePipeline.Builder.create(this, "WorkflowPipeline")
         .recipe(exampleImageRecipe)
         .workflows(List.of(WorkflowConfiguration.builder().workflow(AwsManagedWorkflow.buildImage(this, "BuildWorkflow")).build(), WorkflowConfiguration.builder().workflow(AwsManagedWorkflow.testImage(this, "TestWorkflow")).build()))
         .build();
 
  • Method Details

    • getRecipe

      @Stability(Experimental) @NotNull IRecipeBase getRecipe()
      (experimental) The recipe that defines the base image, components, and customizations used to build the image.

      This can either be an image recipe, or a container recipe.

    • getDescription

      @Stability(Experimental) @Nullable default String getDescription()
      (experimental) The description of the image pipeline.

      Default: None

    • getDistributionConfiguration

      @Stability(Experimental) @Nullable default IDistributionConfiguration getDistributionConfiguration()
      (experimental) The distribution configuration used for distributing the image.

      Default: None

    • getEnhancedImageMetadataEnabled

      @Stability(Experimental) @Nullable default Boolean getEnhancedImageMetadataEnabled()
      (experimental) If enabled, collects additional information about the image being created, including the operating system (OS) version and package list for the AMI.

      Default: true

    • getExecutionRole

      @Stability(Experimental) @Nullable default IRole getExecutionRole()
      (experimental) The execution role used to perform workflow actions to build this image.

      By default, the Image Builder Service Linked Role (SLR) will be created automatically and used as the execution role. However, when providing a custom set of image workflows for the pipeline, an execution role will be generated with the minimal permissions needed to execute the workflows.

      Default: - Image Builder will use the SLR if possible. Otherwise, an execution role will be generated

    • getImageLogGroup

      @Stability(Experimental) @Nullable default ILogGroup getImageLogGroup()
      (experimental) The log group to use for images created from the image pipeline.

      By default, a log group will be created with the format /aws/imagebuilder/<image-name>.

      Default: - a log group will be created

    • getImagePipelineLogGroup

      @Stability(Experimental) @Nullable default ILogGroup getImagePipelineLogGroup()
      (experimental) The log group to use for the image pipeline.

      By default, a log group will be created with the format /aws/imagebuilder/pipeline/<pipeline-name>

      Default: - a log group will be created

    • getImagePipelineName

      @Stability(Experimental) @Nullable default String getImagePipelineName()
      (experimental) The name of the image pipeline.

      Default: - a name is generated

    • getImageScanningEcrRepository

      @Stability(Experimental) @Nullable default IRepository getImageScanningEcrRepository()
      (experimental) The container repository that Amazon Inspector scans to identify findings for your container images.

      If a repository is not provided, Image Builder creates a repository named image-builder-image-scanning-repository for vulnerability scanning.

      Default: - if scanning is enabled, a repository will be created by Image Builder if one is not provided

    • getImageScanningEcrTags

      @Stability(Experimental) @Nullable default List<String> getImageScanningEcrTags()
      (experimental) The tags for Image Builder to apply to the output container image that Amazon Inspector scans.

      Default: None

    • getImageScanningEnabled

      @Stability(Experimental) @Nullable default Boolean getImageScanningEnabled()
      (experimental) Indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.

      Default: false

    • getImageTestsEnabled

      @Stability(Experimental) @Nullable default Boolean getImageTestsEnabled()
      (experimental) Whether to run tests after building an image.

      Default: true

    • getInfrastructureConfiguration

      @Stability(Experimental) @Nullable default IInfrastructureConfiguration getInfrastructureConfiguration()
      (experimental) The infrastructure configuration used for building the image.

      A default infrastructure configuration will be used if one is not provided.

      The default configuration will create an instance profile and role with minimal permissions needed to build the image, attached to the EC2 instance.

      Default: - an infrastructure configuration will be created with the default settings

    • getSchedule

      @Stability(Experimental) @Nullable default ImagePipelineSchedule getSchedule()
      (experimental) The schedule of the image pipeline.

      This configures how often and when a pipeline automatically creates a new image.

      Default: - none, a manual image pipeline will be created

    • getStatus

      @Stability(Experimental) @Nullable default ImagePipelineStatus getStatus()
      (experimental) Indicates whether the pipeline is enabled to be triggered by the provided schedule.

      Default: ImagePipelineStatus.ENABLED

    • getTags

      @Stability(Experimental) @Nullable default Map<String,String> getTags()
      (experimental) The tags to apply to the image pipeline.

      Default: None

    • getWorkflows

      @Stability(Experimental) @Nullable default List<WorkflowConfiguration> getWorkflows()
      (experimental) The list of workflow configurations used to build the image.

      Default: - Image Builder will use a default set of workflows for the build to build, test, and distribute the image

    • builder

      @Stability(Experimental) static ImagePipelineProps.Builder builder()
      Returns:
      a ImagePipelineProps.Builder of ImagePipelineProps