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

Copyright(c) 2013-2016 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.

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:

data ModifyImageAttribute Source #

Contains the parameters for ModifyImageAttribute.

See: modifyImageAttribute smart constructor.

Instances

Eq ModifyImageAttribute Source # 
Data ModifyImageAttribute Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ModifyImageAttribute -> c ModifyImageAttribute #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ModifyImageAttribute #

toConstr :: ModifyImageAttribute -> Constr #

dataTypeOf :: ModifyImageAttribute -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ModifyImageAttribute) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ModifyImageAttribute) #

gmapT :: (forall b. Data b => b -> b) -> ModifyImageAttribute -> ModifyImageAttribute #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ModifyImageAttribute -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ModifyImageAttribute -> r #

gmapQ :: (forall d. Data d => d -> u) -> ModifyImageAttribute -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ModifyImageAttribute -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ModifyImageAttribute -> m ModifyImageAttribute #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyImageAttribute -> m ModifyImageAttribute #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyImageAttribute -> m ModifyImageAttribute #

Read ModifyImageAttribute Source # 
Show ModifyImageAttribute Source # 
Generic ModifyImageAttribute Source # 
Hashable ModifyImageAttribute Source # 
NFData ModifyImageAttribute Source # 

Methods

rnf :: ModifyImageAttribute -> () #

AWSRequest ModifyImageAttribute Source # 
ToQuery ModifyImageAttribute Source # 
ToPath ModifyImageAttribute Source # 
ToHeaders ModifyImageAttribute Source # 
type Rep ModifyImageAttribute Source # 
type Rs ModifyImageAttribute Source # 

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.

data ModifyImageAttributeResponse Source #

See: modifyImageAttributeResponse smart constructor.

Instances

Eq ModifyImageAttributeResponse Source # 
Data ModifyImageAttributeResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ModifyImageAttributeResponse -> c ModifyImageAttributeResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ModifyImageAttributeResponse #

toConstr :: ModifyImageAttributeResponse -> Constr #

dataTypeOf :: ModifyImageAttributeResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ModifyImageAttributeResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ModifyImageAttributeResponse) #

gmapT :: (forall b. Data b => b -> b) -> ModifyImageAttributeResponse -> ModifyImageAttributeResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ModifyImageAttributeResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ModifyImageAttributeResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ModifyImageAttributeResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ModifyImageAttributeResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ModifyImageAttributeResponse -> m ModifyImageAttributeResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyImageAttributeResponse -> m ModifyImageAttributeResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyImageAttributeResponse -> m ModifyImageAttributeResponse #

Read ModifyImageAttributeResponse Source # 
Show ModifyImageAttributeResponse Source # 
Generic ModifyImageAttributeResponse Source # 
NFData ModifyImageAttributeResponse Source # 
type Rep ModifyImageAttributeResponse Source # 
type Rep ModifyImageAttributeResponse = D1 (MetaData "ModifyImageAttributeResponse" "Network.AWS.EC2.ModifyImageAttribute" "amazonka-ec2-1.4.1-5DlWz6no0BoLQhxZVyzMyd" False) (C1 (MetaCons "ModifyImageAttributeResponse'" PrefixI False) U1)