Skip to content

EC2  >  Structures  >  ImageMetadata

ImageMetadata

Structure Class

ImageMetadata dataclass

Bases: _SerdeShape

Information about the AMI.

Attributes

creation_date class-attribute instance-attribute
creation_date: str | None = ...

The date and time the AMI was created.

deprecation_time class-attribute instance-attribute
deprecation_time: str | None = ...

The deprecation date and time of the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.

image_allowed class-attribute instance-attribute
image_allowed: bool | None = ...

If true, the AMI satisfies the criteria for Allowed AMIs and can be discovered and used in the account. If false, the AMI can't be discovered or used in the account.

For more information, see Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs in Amazon EC2 User Guide.

image_id class-attribute instance-attribute
image_id: str | None = ...

The ID of the AMI.

image_owner_alias class-attribute instance-attribute
image_owner_alias: str | None = ...

The alias of the AMI owner.

Valid values: amazon | aws-backup-vault | aws-marketplace

image_watermarks class-attribute instance-attribute
image_watermarks: list[ImageWatermark] | None = ...

The watermarks attached to the AMI.

is_public class-attribute instance-attribute
is_public: bool | None = ...

Indicates whether the AMI has public launch permissions. A value of true means this AMI has public launch permissions, while false means it has only implicit (AMI owner) or explicit (shared with your account) launch permissions.

name class-attribute instance-attribute
name: str | None = ...

The name of the AMI.

owner_id class-attribute instance-attribute
owner_id: str | None = ...

The ID of the Amazon Web Services account that owns the AMI.

state class-attribute instance-attribute
state: str | None = ...

The current state of the AMI. If the state is available, the AMI is successfully registered and can be used to launch an instance.