Skip to content

Image

Source code in docs_src/capo_imagebuilder/types/image.py
class Image(TypedDict, closed=True):
    arn: NotRequired["capo_imagebuilder.types.image_builder_arn.ImageBuilderArn"]
    """<p>The Amazon Resource Name (ARN) of the image.</p> <note> <p>Semantic versioning is included in each object's Amazon Resource Name (ARN), at the level that applies to that object as follows:</p> <ol> <li> <p>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.</p> </li> <li> <p>Version ARNs have only the first three nodes: <major>.<minor>.<patch></p> </li> <li> <p>Build version ARNs have all four nodes, and point to a specific build for a specific version of an object.</p> </li> </ol> </note>"""
    type: NotRequired["capo_imagebuilder.types.image_type.ImageType"]
    """<p>Specifies whether this image produces an AMI or a container image.</p>"""
    name: NotRequired["capo_imagebuilder.types.resource_name.ResourceName"]
    """<p>The name of the image.</p>"""
    version: NotRequired[
        "capo_imagebuilder.types.version_number_with_build.VersionNumberWithBuild"
    ]
    """<p>The semantic version of the image.</p> <note> <p>The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them.</p> <p> <b>Assignment:</b> 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.</p> <p> <b>Patterns:</b> 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.</p> <p> <b>Filtering:</b> 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.</p> </note>"""
    platform: NotRequired["capo_imagebuilder.types.platform.Platform"]
    """<p>The image operating system platform, such as Linux or Windows.</p>"""
    enhanced_image_metadata_enabled: NotRequired[
        "capo_imagebuilder.types.nullable_boolean.NullableBoolean"
    ]
    """<p>Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.</p>"""
    os_version: NotRequired["capo_imagebuilder.types.os_version.OsVersion"]
    """<p>The operating system version for instances that launch from this image. For example, Amazon Linux 2, Ubuntu 18, or Microsoft Windows Server 2019.</p>"""
    state: NotRequired["capo_imagebuilder.types.image_state.ImageState"]
    """<p>The state of the image.</p>"""
    image_recipe: NotRequired["capo_imagebuilder.types.image_recipe.ImageRecipe"]
    """<p>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.</p>"""
    container_recipe: NotRequired[
        "capo_imagebuilder.types.container_recipe.ContainerRecipe"
    ]
    """<p>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.</p>"""
    source_pipeline_name: NotRequired[
        "capo_imagebuilder.types.resource_name.ResourceName"
    ]
    """<p>The name of the image pipeline that created this image. Image Builder doesn't return this field for new images. Use <code>sourcePipelineArn</code> instead.</p>"""
    source_pipeline_arn: NotRequired["capo_imagebuilder.types.arn.Arn"]
    """<p>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.</p>"""
    infrastructure_configuration: NotRequired[
        "capo_imagebuilder.types.infrastructure_configuration.InfrastructureConfiguration"
    ]
    """<p>The infrastructure that Image Builder used to create this image.</p>"""
    distribution_configuration: NotRequired[
        "capo_imagebuilder.types.distribution_configuration.DistributionConfiguration"
    ]
    """<p>The distribution configuration that Image Builder used to create this image.</p>"""
    image_tests_configuration: NotRequired[
        "capo_imagebuilder.types.image_tests_configuration.ImageTestsConfiguration"
    ]
    """<p>The image test settings that Image Builder used when it created this image.</p>"""
    date_created: NotRequired["capo_imagebuilder.types.date_time.DateTime"]
    """<p>The date on which Image Builder created this image.</p>"""
    output_resources: NotRequired[
        "capo_imagebuilder.types.output_resources.OutputResources"
    ]
    """<p>The output resources that Image Builder produces for this image.</p>"""
    tags: NotRequired["capo_imagebuilder.types.tag_map.TagMap"]
    """<p>The tags that apply to this image.</p>"""
    build_type: NotRequired["capo_imagebuilder.types.build_type.BuildType"]
    """<p>Indicates the type of build that created this image. The build can be initiated in the following ways:</p> <ul> <li> <p> <b>USER_INITIATED</b> – A manual pipeline build request.</p> </li> <li> <p> <b>SCHEDULED</b> – A pipeline build initiated by a cron expression in the Image Builder pipeline, or from EventBridge.</p> </li> <li> <p> <b>IMPORT</b> – A VM import created the image to use as the base image for the recipe.</p> </li> <li> <p> <b>IMPORT_ISO</b> – An ISO disk import created the image.</p> </li> </ul>"""
    image_source: NotRequired["capo_imagebuilder.types.image_source.ImageSource"]
    """<p>The origin of the base image that Image Builder used to build this image.</p>"""
    scan_state: NotRequired["capo_imagebuilder.types.image_scan_state.ImageScanState"]
    """<p>Contains information about the current state of scans for this image.</p>"""
    image_scanning_configuration: NotRequired[
        "capo_imagebuilder.types.image_scanning_configuration.ImageScanningConfiguration"
    ]
    """<p>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.</p>"""
    deprecation_time: NotRequired[
        "capo_imagebuilder.types.date_time_timestamp.DateTimeTimestamp"
    ]
    """<p>The time when deprecation occurs for an image resource. This can be a past or future date.</p>"""
    lifecycle_execution_id: NotRequired[
        "capo_imagebuilder.types.lifecycle_execution_id.LifecycleExecutionId"
    ]
    """<p>Identifies the last runtime instance of the lifecycle policy to take action on the image.</p>"""
    execution_role: NotRequired[
        "capo_imagebuilder.types.role_name_or_arn.RoleNameOrArn"
    ]
    """<p>The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.</p>"""
    workflows: NotRequired[
        "capo_imagebuilder.types.workflow_configuration_list.WorkflowConfigurationList"
    ]
    """<p>The build, test, and distribution workflow configurations that are associated with the image.</p>"""
    logging_configuration: NotRequired[
        "capo_imagebuilder.types.image_logging_configuration.ImageLoggingConfiguration"
    ]
    """<p>The logging configuration that's defined for the image. Image Builder uses the defined settings to direct execution log output during image creation.</p>"""

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:

  1. 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.

  2. Version ARNs have only the first three nodes: ..

  3. 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.

name instance-attribute

name: NotRequired[ResourceName]

The name of the image.

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.

state instance-attribute

state: NotRequired[ImageState]

The state of the image.

tags instance-attribute

tags: NotRequired[TagMap]

The tags that apply to this image.

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: ../. You can assign values for the first three, and can filter on all of them.

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.