AWS SDK Version 2 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.

.NET Framework 3.5
 
Container for the parameters to the ModifySnapshotAttribute operation. Adds or removes permission settings for the specified snapshot. You may add or remove specified AWS account IDs from a snapshot's list of create volume permissions, but you cannot do both in a single API call. If you need to both add and remove account IDs for a snapshot, you must use multiple API calls.

For more information on modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide.

Snapshots with AWS Marketplace product codes cannot be made public.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.EC2.AmazonEC2Request
      Amazon.EC2.Model.ModifySnapshotAttributeRequest

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class ModifySnapshotAttributeRequest : AmazonEC2Request
         IRequestEvents

The ModifySnapshotAttributeRequest type exposes the following members

Constructors

NameDescription
Public Method ModifySnapshotAttributeRequest() Empty constructor used to set properties independently even when a simple constructor is available
Public Method ModifySnapshotAttributeRequest(string, SnapshotAttributeName, OperationType) Instantiates ModifySnapshotAttributeRequest with the parameterized properties

Properties

NameTypeDescription
Public Property Attribute Amazon.EC2.SnapshotAttributeName Gets and sets the property Attribute.

The snapshot attribute to modify.

Only volume creation permissions may be modified at the customer level.

Public Property CreateVolumePermission Amazon.EC2.Model.CreateVolumePermissionModifications Gets and sets the property CreateVolumePermission.

A JSON representation of the snapshot attribute modification.

Public Property GroupNames System.Collections.Generic.List<System.String> Gets and sets the property GroupNames.

The group to modify for the snapshot.

Public Property OperationType Amazon.EC2.OperationType Gets and sets the property OperationType.

The type of operation to perform to the attribute.

Public Property SnapshotId System.String Gets and sets the property SnapshotId.

The ID of the snapshot.

Public Property UserIds System.Collections.Generic.List<System.String> Gets and sets the property UserIds.

The account ID to modify for the snapshot.

Version Information

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

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8