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.

Locks an Amazon EBS snapshot in either governance or compliance mode to protect it against accidental or malicious deletions for a specific duration. A locked snapshot can't be deleted.

You can also use this action to modify the lock settings for a snapshot that is already locked. The allowed modifications depend on the lock mode and lock state:

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to LockSnapshotAsync.

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

Syntax

C#
public virtual LockSnapshotResponse LockSnapshot(
         LockSnapshotRequest request
)

Parameters

request
Type: Amazon.EC2.Model.LockSnapshotRequest

Container for the necessary parameters to execute the LockSnapshot service method.

Return Value


The response from the LockSnapshot service method, as returned by EC2.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

See Also