AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

This is the response object from the LockSnapshot operation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.EC2.Model.LockSnapshotResponse

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public class LockSnapshotResponse : AmazonWebServiceResponse

The LockSnapshotResponse type exposes the following members

Constructors

NameDescription
Public Method LockSnapshotResponse()

Properties

NameTypeDescription
Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property CoolOffPeriod System.Int32

Gets and sets the property CoolOffPeriod.

The compliance mode cooling-off period, in hours.

Public Property CoolOffPeriodExpiresOn System.DateTime

Gets and sets the property 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).

Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property LockCreatedOn System.DateTime

Gets and sets the property LockCreatedOn.

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

Public Property LockDuration System.Int32

Gets and sets the property LockDuration.

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

Public Property LockDurationStartTime System.DateTime

Gets and sets the property LockDurationStartTime.

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

Public Property LockExpiresOn System.DateTime

Gets and sets the property LockExpiresOn.

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

Public Property LockState Amazon.EC2.LockState

Gets and sets the property 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.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property SnapshotId System.String

Gets and sets the property SnapshotId.

The ID of the snapshot

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5