amazonka-ec2-1.3.3.1: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.ModifyImageAttribute

Contents

Description

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.

See: AWS API Reference for ModifyImageAttribute.

Synopsis

Creating a Request

modifyImageAttribute Source

Creates a value of ModifyImageAttribute with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

miaAttribute :: Lens' ModifyImageAttribute (Maybe Text) Source

The name of the attribute to modify.

miaUserIds :: Lens' ModifyImageAttribute [Text] Source

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

miaUserGroups :: Lens' ModifyImageAttribute [Text] Source

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

miaValue :: Lens' ModifyImageAttribute (Maybe Text) Source

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

miaProductCodes :: Lens' ModifyImageAttribute [Text] Source

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.

miaDryRun :: Lens' ModifyImageAttribute (Maybe Bool) Source

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Destructuring the Response

modifyImageAttributeResponse :: ModifyImageAttributeResponse Source

Creates a value of ModifyImageAttributeResponse with the minimum fields required to make a request.