Image
¶
Source code in docs_src/capo_imagebuilder/types/image.py
arn
instance-attribute
¶
arn: NotRequired[ImageBuilderArn]
The Amazon Resource Name (ARN) of the image.
Semantic versioning is included in each object's Amazon Resource Name (ARN), at the level that applies to that object as follows:
-
Versionless ARNs and Name ARNs do not include specific values in any of the nodes. The nodes are either left off entirely, or they are specified as wildcards, for example: x.x.x.
-
Version ARNs have only the first three nodes:
. . -
Build version ARNs have all four nodes, and point to a specific build for a specific version of an object.
build_type
instance-attribute
¶
build_type: NotRequired[BuildType]
Indicates the type of build that created this image. The build can be initiated in the following ways:
-
USER_INITIATED – A manual pipeline build request.
-
SCHEDULED – A pipeline build initiated by a cron expression in the Image Builder pipeline, or from EventBridge.
-
IMPORT – A VM import created the image to use as the base image for the recipe.
-
IMPORT_ISO – An ISO disk import created the image.
container_recipe
instance-attribute
¶
container_recipe: NotRequired[ContainerRecipe]
For container images, this is the container recipe that Image Builder used to create the image. For images that distribute an AMI, this is empty.
date_created
instance-attribute
¶
date_created: NotRequired[DateTime]
The date on which Image Builder created this image.
deprecation_time
instance-attribute
¶
deprecation_time: NotRequired[DateTimeTimestamp]
The time when deprecation occurs for an image resource. This can be a past or future date.
distribution_configuration
instance-attribute
¶
distribution_configuration: NotRequired[DistributionConfiguration]
The distribution configuration that Image Builder used to create this image.
enhanced_image_metadata_enabled
instance-attribute
¶
enhanced_image_metadata_enabled: NotRequired[NullableBoolean]
Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.
execution_role
instance-attribute
¶
execution_role: NotRequired[RoleNameOrArn]
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.
image_recipe
instance-attribute
¶
image_recipe: NotRequired[ImageRecipe]
For images that distribute an AMI, this is the image recipe that Image Builder used to create the image. For container images, this is empty.
image_scanning_configuration
instance-attribute
¶
image_scanning_configuration: NotRequired[ImageScanningConfiguration]
Settings for the vulnerability scans that Amazon Inspector runs for this image. For AMI output, Amazon Inspector scans the test instance during image creation. For container output, Amazon Inspector scans the container image in its Amazon ECR repository.
image_source
instance-attribute
¶
image_source: NotRequired[ImageSource]
The origin of the base image that Image Builder used to build this image.
image_tests_configuration
instance-attribute
¶
image_tests_configuration: NotRequired[ImageTestsConfiguration]
The image test settings that Image Builder used when it created this image.
infrastructure_configuration
instance-attribute
¶
infrastructure_configuration: NotRequired[InfrastructureConfiguration]
The infrastructure that Image Builder used to create this image.
lifecycle_execution_id
instance-attribute
¶
lifecycle_execution_id: NotRequired[LifecycleExecutionId]
Identifies the last runtime instance of the lifecycle policy to take action on the image.
logging_configuration
instance-attribute
¶
logging_configuration: NotRequired[ImageLoggingConfiguration]
The logging configuration that's defined for the image. Image Builder uses the defined settings to direct execution log output during image creation.
os_version
instance-attribute
¶
os_version: NotRequired[OsVersion]
The operating system version for instances that launch from this image. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.
output_resources
instance-attribute
¶
output_resources: NotRequired[OutputResources]
The output resources that Image Builder produces for this image.
platform
instance-attribute
¶
platform: NotRequired[Platform]
The image operating system platform, such as Linux or Windows.
scan_state
instance-attribute
¶
scan_state: NotRequired[ImageScanState]
Contains information about the current state of scans for this image.
source_pipeline_arn
instance-attribute
¶
source_pipeline_arn: NotRequired[Arn]
The Amazon Resource Name (ARN) of the image pipeline that created this image. This field is only present for images that a pipeline execution created.
source_pipeline_name
instance-attribute
¶
source_pipeline_name: NotRequired[ResourceName]
The name of the image pipeline that created this image. Image Builder doesn't return this field for new images. Use sourcePipelineArn instead.
type
instance-attribute
¶
type: NotRequired[ImageType]
Specifies whether this image produces an AMI or a container image.
version
instance-attribute
¶
version: NotRequired[VersionNumberWithBuild]
The semantic version of the image.
The semantic version has four nodes:
Assignment: For the first three nodes, you can assign any positive integer value, including zero. The upper limit is 2^30-1, or 1073741823, for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
Filtering: You can use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.
workflows
instance-attribute
¶
workflows: NotRequired[WorkflowConfigurationList]
The build, test, and distribution workflow configurations that are associated with the image.