ImagePipelineProps
- class aws_cdk.aws_imagebuilder_alpha.ImagePipelineProps(*, recipe, description=None, distribution_configuration=None, enhanced_image_metadata_enabled=None, execution_role=None, image_log_group=None, image_pipeline_log_group=None, image_pipeline_name=None, image_scanning_ecr_repository=None, image_scanning_ecr_tags=None, image_scanning_enabled=None, image_tests_enabled=None, infrastructure_configuration=None, schedule=None, status=None, tags=None, workflows=None)
Bases:
object(experimental) Properties for creating an Image Pipeline resource.
- Parameters:
recipe (
IRecipeBase) – (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.description (
Optional[str]) – (experimental) The description of the image pipeline. Default: Nonedistribution_configuration (
Optional[IDistributionConfiguration]) – (experimental) The distribution configuration used for distributing the image. Default: Noneenhanced_image_metadata_enabled (
Optional[bool]) – (experimental) If enabled, collects additional information about the image being created, including the operating system (OS) version and package list for the AMI. Default: trueexecution_role (
Optional[IRole]) – (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 generatedimage_log_group (
Optional[ILogGroup]) – (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 createdimage_pipeline_log_group (
Optional[ILogGroup]) – (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 createdimage_pipeline_name (
Optional[str]) – (experimental) The name of the image pipeline. Default: - a name is generatedimage_scanning_ecr_repository (
Optional[IRepository]) – (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 namedimage-builder-image-scanning-repositoryfor vulnerability scanning. Default: - if scanning is enabled, a repository will be created by Image Builder if one is not providedimage_scanning_ecr_tags (
Optional[Sequence[str]]) – (experimental) The tags for Image Builder to apply to the output container image that Amazon Inspector scans. Default: Noneimage_scanning_enabled (
Optional[bool]) – (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: falseimage_tests_enabled (
Optional[bool]) – (experimental) Whether to run tests after building an image. Default: trueinfrastructure_configuration (
Optional[IInfrastructureConfiguration]) – (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 settingsschedule (
Union[ImagePipelineSchedule,Dict[str,Any],None]) – (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 createdstatus (
Optional[ImagePipelineStatus]) – (experimental) Indicates whether the pipeline is enabled to be triggered by the provided schedule. Default: ImagePipelineStatus.ENABLEDtags (
Optional[Mapping[str,str]]) – (experimental) The tags to apply to the image pipeline. Default: Noneworkflows (
Optional[Sequence[Union[WorkflowConfiguration,Dict[str,Any]]]]) – (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
- Stability:
experimental
- ExampleMetadata:
infused
Example:
workflow_pipeline = imagebuilder.ImagePipeline(self, "WorkflowPipeline", recipe=example_image_recipe, workflows=[imagebuilder.WorkflowConfiguration(workflow=imagebuilder.AwsManagedWorkflow.build_image(self, "BuildWorkflow")), imagebuilder.WorkflowConfiguration(workflow=imagebuilder.AwsManagedWorkflow.test_image(self, "TestWorkflow")) ] )
Attributes
- description
(experimental) The description of the image pipeline.
- Default:
None
- Stability:
experimental
- distribution_configuration
(experimental) The distribution configuration used for distributing the image.
- Default:
None
- Stability:
experimental
- enhanced_image_metadata_enabled
(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
- Stability:
experimental
- execution_role
(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
- Stability:
experimental
- image_log_group
(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
- Stability:
experimental
- image_pipeline_log_group
(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
- Stability:
experimental
- image_pipeline_name
(experimental) The name of the image pipeline.
- Default:
a name is generated
- Stability:
experimental
- image_scanning_ecr_repository
(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-repositoryfor vulnerability scanning.- Default:
if scanning is enabled, a repository will be created by Image Builder if one is not provided
- Stability:
experimental
- image_scanning_ecr_tags
(experimental) The tags for Image Builder to apply to the output container image that Amazon Inspector scans.
- Default:
None
- Stability:
experimental
- image_scanning_enabled
(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
- Stability:
experimental
- image_tests_enabled
(experimental) Whether to run tests after building an image.
- Default:
true
- Stability:
experimental
- infrastructure_configuration
(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
- Stability:
experimental
- recipe
(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.
- Stability:
experimental
- schedule
(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
- Stability:
experimental
- status
(experimental) Indicates whether the pipeline is enabled to be triggered by the provided schedule.
- Default:
ImagePipelineStatus.ENABLED
- Stability:
experimental
- tags
(experimental) The tags to apply to the image pipeline.
- Default:
None
- Stability:
experimental
- workflows
(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
- Stability:
experimental