Skip to content

/AWS1/CL_EC2LOCKSNAPSHOTRESULT

LockSnapshotResult

CONSTRUCTOR

IMPORTING

Optional arguments:

IV_SNAPSHOTID TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The ID of the snapshot

IV_LOCKSTATE TYPE /AWS1/EC2LOCKSTATE /AWS1/EC2LOCKSTATE

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.

IV_LOCKDURATION TYPE /AWS1/EC2RETPERIODRESPONSEDAYS /AWS1/EC2RETPERIODRESPONSEDAYS

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

IV_COOLOFFPERIOD TYPE /AWS1/EC2COOLOFFPERIODRSPHOURS /AWS1/EC2COOLOFFPERIODRSPHOURS

The compliance mode cooling-off period, in hours.

IV_COOLOFFPERIODEXPIRESON TYPE /AWS1/EC2MILLISECONDDATETIME /AWS1/EC2MILLISECONDDATETIME

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

IV_LOCKCREATEDON TYPE /AWS1/EC2MILLISECONDDATETIME /AWS1/EC2MILLISECONDDATETIME

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

IV_LOCKEXPIRESON TYPE /AWS1/EC2MILLISECONDDATETIME /AWS1/EC2MILLISECONDDATETIME

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

IV_LOCKDURATIONSTARTTIME TYPE /AWS1/EC2MILLISECONDDATETIME /AWS1/EC2MILLISECONDDATETIME

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


Queryable Attributes

SnapshotId

The ID of the snapshot

Accessible with the following methods

Method Description
GET_SNAPSHOTID() Getter for SNAPSHOTID, with configurable default
ASK_SNAPSHOTID() Getter for SNAPSHOTID w/ exceptions if field has no value
HAS_SNAPSHOTID() Determine if SNAPSHOTID has a value

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.

Accessible with the following methods

Method Description
GET_LOCKSTATE() Getter for LOCKSTATE, with configurable default
ASK_LOCKSTATE() Getter for LOCKSTATE w/ exceptions if field has no value
HAS_LOCKSTATE() Determine if LOCKSTATE has a value

LockDuration

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

Accessible with the following methods

Method Description
GET_LOCKDURATION() Getter for LOCKDURATION, with configurable default
ASK_LOCKDURATION() Getter for LOCKDURATION w/ exceptions if field has no value
HAS_LOCKDURATION() Determine if LOCKDURATION has a value

CoolOffPeriod

The compliance mode cooling-off period, in hours.

Accessible with the following methods

Method Description
GET_COOLOFFPERIOD() Getter for COOLOFFPERIOD, with configurable default
ASK_COOLOFFPERIOD() Getter for COOLOFFPERIOD w/ exceptions if field has no value
HAS_COOLOFFPERIOD() Determine if COOLOFFPERIOD has a value

CoolOffPeriodExpiresOn

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

Accessible with the following methods

Method Description
GET_COOLOFFPERIODEXPIRESON() Getter for COOLOFFPERIODEXPIRESON, with configurable default
ASK_COOLOFFPERIODEXPIRESON() Getter for COOLOFFPERIODEXPIRESON w/ exceptions if field has
HAS_COOLOFFPERIODEXPIRESON() Determine if COOLOFFPERIODEXPIRESON has a value

LockCreatedOn

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

Accessible with the following methods

Method Description
GET_LOCKCREATEDON() Getter for LOCKCREATEDON, with configurable default
ASK_LOCKCREATEDON() Getter for LOCKCREATEDON w/ exceptions if field has no value
HAS_LOCKCREATEDON() Determine if LOCKCREATEDON has a value

LockExpiresOn

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

Accessible with the following methods

Method Description
GET_LOCKEXPIRESON() Getter for LOCKEXPIRESON, with configurable default
ASK_LOCKEXPIRESON() Getter for LOCKEXPIRESON w/ exceptions if field has no value
HAS_LOCKEXPIRESON() Determine if LOCKEXPIRESON has a value

LockDurationStartTime

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

Accessible with the following methods

Method Description
GET_LOCKDURATIONSTARTTIME() Getter for LOCKDURATIONSTARTTIME, with configurable default
ASK_LOCKDURATIONSTARTTIME() Getter for LOCKDURATIONSTARTTIME w/ exceptions if field has
HAS_LOCKDURATIONSTARTTIME() Determine if LOCKDURATIONSTARTTIME has a value