Skip to content

EC2  >  Structures  >  InstanceSpecification

InstanceSpecification

Structure Class

InstanceSpecification dataclass

Bases: _SerdeShape

The instance details to specify which volumes should be snapshotted.

Attributes

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

Excludes the root volume from being snapshotted.

exclude_data_volume_ids class-attribute instance-attribute
exclude_data_volume_ids: list[str] | None = ...

The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. If you specify the ID of the root volume, the request fails. To exclude the root volume, use ExcludeBootVolume.

You can specify up to 40 volume IDs per request.

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

The instance to specify which volumes should be snapshotted.