Skip to content

ImageScanState

Source code in docs_src/capo_imagebuilder/types/image_scan_state.py
class ImageScanState(TypedDict, closed=True):
    status: NotRequired["capo_imagebuilder.types.image_scan_status.ImageScanStatus"]
    """<p>The current state of vulnerability scans for the image. The scan starts as <code>PENDING</code> and moves through <code>SCANNING</code> and <code>COLLECTING</code> to <code>COMPLETED</code>. Image Builder sets the status to <code>ABANDONED</code> if the image reaches a terminal state before the scan finding collection completes. A scan can also end as <code>FAILED</code> or <code>TIMED_OUT</code>.</p>"""
    reason: NotRequired["capo_imagebuilder.types.non_empty_string.NonEmptyString"]
    """<p>The reason for the scan status for the image.</p>"""

reason instance-attribute

reason: NotRequired[NonEmptyString]

The reason for the scan status for the image.

status instance-attribute

status: NotRequired[ImageScanStatus]

The current state of vulnerability scans for the image. The scan starts as PENDING and moves through SCANNING and COLLECTING to COMPLETED. Image Builder sets the status to ABANDONED if the image reaches a terminal state before the scan finding collection completes. A scan can also end as FAILED or TIMED_OUT.