Skip to content

LockedSnapshotsInfo

Source code in docs_src/capo_ec2/types/locked_snapshots_info.py
class LockedSnapshotsInfo(TypedDict, closed=True):
    owner_id: NotRequired["capo_ec2.types.string.String"]
    """<p>The account ID of the Amazon Web Services account that owns the snapshot.</p>"""
    snapshot_id: NotRequired["capo_ec2.types.string.String"]
    """<p>The ID of the snapshot.</p>"""
    lock_state: NotRequired["capo_ec2.types.lock_state.LockState"]
    """<p>The state of the snapshot lock. Valid states include:</p> <ul> <li> <p> <code>compliance-cooloff</code> - 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.</p> </li> <li> <p> <code>governance</code> - 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.</p> </li> <li> <p> <code>compliance</code> - 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.</p> </li> <li> <p> <code>expired</code> - The snapshot was locked in compliance or governance mode but the lock duration has expired. The snapshot is not locked and can be deleted.</p> </li> </ul>"""
    lock_duration: NotRequired[
        "capo_ec2.types.retention_period_response_days.RetentionPeriodResponseDays"
    ]
    """<p>The period of time for which the snapshot is locked, in days.</p>"""
    cool_off_period: NotRequired[
        "capo_ec2.types.cool_off_period_response_hours.CoolOffPeriodResponseHours"
    ]
    """<p>The compliance mode cooling-off period, in hours.</p>"""
    cool_off_period_expires_on: NotRequired[
        "capo_ec2.types.millisecond_date_time.MillisecondDateTime"
    ]
    """<p>The date and time at which the compliance mode cooling-off period expires, in the UTC time zone (<code>YYYY-MM-DDThh:mm:ss.sssZ</code>).</p>"""
    lock_created_on: NotRequired[
        "capo_ec2.types.millisecond_date_time.MillisecondDateTime"
    ]
    """<p>The date and time at which the snapshot was locked, in the UTC time zone (<code>YYYY-MM-DDThh:mm:ss.sssZ</code>).</p>"""
    lock_duration_start_time: NotRequired[
        "capo_ec2.types.millisecond_date_time.MillisecondDateTime"
    ]
    """<p>The date and time at which the lock duration started, in the UTC time zone (<code>YYYY-MM-DDThh:mm:ss.sssZ</code>).</p> <p>If you lock a snapshot that is in the <code>pending</code> state, the lock duration starts only once the snapshot enters the <code>completed</code> state.</p>"""
    lock_expires_on: NotRequired[
        "capo_ec2.types.millisecond_date_time.MillisecondDateTime"
    ]
    """<p>The date and time at which the lock will expire, in the UTC time zone (<code>YYYY-MM-DDThh:mm:ss.sssZ</code>).</p>"""

cool_off_period instance-attribute

cool_off_period: NotRequired[CoolOffPeriodResponseHours]

The compliance mode cooling-off period, in hours.

cool_off_period_expires_on instance-attribute

cool_off_period_expires_on: NotRequired[MillisecondDateTime]

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 instance-attribute

lock_created_on: NotRequired[MillisecondDateTime]

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

lock_duration instance-attribute

lock_duration: NotRequired[RetentionPeriodResponseDays]

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

lock_duration_start_time instance-attribute

lock_duration_start_time: NotRequired[MillisecondDateTime]

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 instance-attribute

lock_expires_on: NotRequired[MillisecondDateTime]

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

lock_state instance-attribute

lock_state: NotRequired[LockState]

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 instance-attribute

owner_id: NotRequired[String]

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

snapshot_id instance-attribute

snapshot_id: NotRequired[String]

The ID of the snapshot.