@finalclass ImageVersionOne image version as ListMicrovmImageVersions or UpdateMicrovmImageVersion reads it
back: its build state, whether RunMicrovm launches it, and what it was built with.
Constructor
Section titled “Constructor”ImageVersion declares no __new__ or __init__, so it is not constructed directly: an instance comes back from another call in this package.
Properties
Section titled “Properties”additional_os_capabilities
Section titled “additional_os_capabilities”additional_os_capabilities: list[str] | Nonebase_image_arn
Section titled “base_image_arn”base_image_arn: strbase_image_version
Section titled “base_image_version”base_image_version: str | NoneThe base version the build used, as the service spells it ("1.0" where the managed
base lists "1"). A record of the build, not a value to pass back as a pin.
build_role_arn
Section titled “build_role_arn”build_role_arn: strcode_artifact_uri
Section titled “code_artifact_uri”code_artifact_uri: strcodeArtifact.uri: the artifact the version was built from.
created_at
Section titled “created_at”created_at: floatUnix seconds.
description
Section titled “description”description: str | Noneegress_network_connectors
Section titled “egress_network_connectors”egress_network_connectors: list[str] | Noneenvironment_variables
Section titled “environment_variables”environment_variables: dict[str, str] | Noneimage_arn
Section titled “image_arn”image_arn: strimage_version
Section titled “image_version”image_version: stris_active
Section titled “is_active”is_active: boolWhether RunMicrovm launches this version.
minimum_memory_mib
Section titled “minimum_memory_mib”minimum_memory_mib: int | Noneresources[0].minimumMemoryInMiB, the list’s one member: the size class the version
was built for, and the only place a built image reports it.
state: strThe version’s build state, as the service spells it.
state_reason
Section titled “state_reason”state_reason: str | NoneWhy the version is in this state, when the service said. A failed build’s reason is on
its build (list_image_builds), and this one is usually absent.
status
Section titled “status”status: str"ACTIVE" (RunMicrovm launches it) or "INACTIVE" (it refuses; running VMs keep
running).
tags: dict[str, str] | Noneupdated_at
Section titled “updated_at”updated_at: float | NoneUnix seconds, when the service reported it.
Special methods
Section titled “Special methods”__repr__
Section titled “__repr__”def __repr__() -> strProvenance
Section titled “Provenance”This page is generated from bindings/microvms-py/microvms.pyi by Griffe 2.3.0, run from site/scripts/gen-reference.mjs on every pnpm run sync, so an edit made here is overwritten by the next run.
To change the page, change the doc comment in the binding’s Rust source, then regenerate the declarations with mise run stubs. mise run stubs:check fails when the committed file no longer matches the source.