Skip to content

EC2  >  Structures  >  LockedSnapshotsInfo

LockedSnapshotsInfo

Structure Class

LockedSnapshotsInfo dataclass

Bases: _SerdeShape

Information about a locked snapshot.

Attributes

cool_off_period class-attribute instance-attribute
cool_off_period: int | None = ...

The compliance mode cooling-off period, in hours.

cool_off_period_expires_on class-attribute instance-attribute
cool_off_period_expires_on: datetime | None = ...

The date and time at which the compliance mode cooling-off period expires, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ).

lock_created_on class-attribute instance-attribute
lock_created_on: datetime | None = ...

The date and time at which the snapshot was locked, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ).

lock_duration class-attribute instance-attribute
lock_duration: int | None = ...

The period of time for which the snapshot is locked, in days.

lock_duration_start_time class-attribute instance-attribute
lock_duration_start_time: datetime | None = ...

The date and time at which the lock duration started, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ).

If you lock a snapshot that is in the pending state, the lock duration starts only once the snapshot enters the completed state.

lock_expires_on class-attribute instance-attribute
lock_expires_on: datetime | None = ...

The date and time at which the lock will expire, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ).

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

The state of the snapshot lock. Valid states include:

  • compliance-cooloff - The snapshot has been locked in compliance mode but it is still within the cooling-off period. The snapshot can't be deleted, but it can be unlocked and the lock settings can be modified by users with appropriate permissions.

  • governance - The snapshot is locked in governance mode. The snapshot can't be deleted, but it can be unlocked and the lock settings can be modified by users with appropriate permissions.

  • compliance - The snapshot is locked in compliance mode and the cooling-off period has expired. The snapshot can't be unlocked or deleted. The lock duration can only be increased by users with appropriate permissions.

  • expired - The snapshot was locked in compliance or governance mode but the lock duration has expired. The snapshot is not locked and can be deleted.

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

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

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

The ID of the snapshot.