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.

Container for the parameters to the ModifyImageAttribute operation. Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time.

AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace product code cannot be made public.

The SriovNetSupport enhanced networking attribute cannot be changed using this command. Instead, enable SriovNetSupport on an instance and create an AMI from the instance. This will result in an image with SriovNetSupport enabled.

Inheritance Hierarchy

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

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

Syntax

C#
public class ModifyImageAttributeRequest : AmazonEC2Request
         IAmazonWebServiceRequest

The ModifyImageAttributeRequest type exposes the following members

Constructors

NameDescription
Public Method ModifyImageAttributeRequest()

Empty constructor used to set properties independently even when a simple constructor is available

Public Method ModifyImageAttributeRequest(string, string)

Instantiates ModifyImageAttributeRequest with the parameterized properties

Properties

NameTypeDescription
Public Property Attribute System.String

Gets and sets the property Attribute.

The name of the attribute to modify.

Public Property Description System.String

Gets and sets the property Description.

A description for the AMI.

Public Property ImageId System.String

Gets and sets the property ImageId.

The ID of the AMI.

Public Property LaunchPermission Amazon.EC2.Model.LaunchPermissionModifications

Gets and sets the property LaunchPermission.

A launch permission modification.

Public Property OperationType Amazon.EC2.OperationType

Gets and sets the property OperationType.

The operation type.

Public Property ProductCodes System.Collections.Generic.List<System.String>

Gets and sets the property ProductCodes.

One or more product codes. After you add a product code to an AMI, it can't be removed. This is only valid when modifying the productCodes attribute.

Public Property UserGroups System.Collections.Generic.List<System.String>

Gets and sets the property UserGroups.

One or more user groups. This is only valid when modifying the launchPermission attribute.

Public Property UserIds System.Collections.Generic.List<System.String>

Gets and sets the property UserIds.

One or more AWS account IDs. This is only valid when modifying the launchPermission attribute.

Public Property Value System.String

Gets and sets the property Value.

The value of the attribute being modified. This is only valid when modifying the description attribute.

Version Information

.NET Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms