amazonka-ec2-1.4.5: 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.

Synopsis

Creating a Request

modifyImageAttribute #

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:

  • miaAttribute - The name of the attribute to modify.
  • miaUserIds - One or more AWS account IDs. This is only valid when modifying the launchPermission attribute.
  • miaUserGroups - One or more user groups. This is only valid when modifying the launchPermission attribute.
  • miaValue - The value of the attribute being modified. This is only valid when modifying the description attribute.
  • miaLaunchPermission - A launch permission modification.
  • miaOperationType - The operation type.
  • miaProductCodes - 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.
  • miaDescription - A description for the AMI.
  • miaDryRun - 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 .
  • miaImageId - The ID of the AMI.

data ModifyImageAttribute #

Contains the parameters for ModifyImageAttribute.

See: modifyImageAttribute smart constructor.

Instances

Eq ModifyImageAttribute # 
Data ModifyImageAttribute # 

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 # 
Show ModifyImageAttribute # 
Generic ModifyImageAttribute # 
Hashable ModifyImageAttribute # 
NFData ModifyImageAttribute # 

Methods

rnf :: ModifyImageAttribute -> () #

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

Request Lenses

miaAttribute :: Lens' ModifyImageAttribute (Maybe Text) #

The name of the attribute to modify.

miaUserIds :: Lens' ModifyImageAttribute [Text] #

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

miaUserGroups :: Lens' ModifyImageAttribute [Text] #

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

miaValue :: Lens' ModifyImageAttribute (Maybe Text) #

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

miaProductCodes :: Lens' ModifyImageAttribute [Text] #

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) #

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 #

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

data ModifyImageAttributeResponse #

See: modifyImageAttributeResponse smart constructor.

Instances

Eq ModifyImageAttributeResponse # 
Data ModifyImageAttributeResponse # 

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 # 
Show ModifyImageAttributeResponse # 
Generic ModifyImageAttributeResponse # 
NFData ModifyImageAttributeResponse # 
type Rep ModifyImageAttributeResponse # 
type Rep ModifyImageAttributeResponse = D1 (MetaData "ModifyImageAttributeResponse" "Network.AWS.EC2.ModifyImageAttribute" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "ModifyImageAttributeResponse'" PrefixI False) U1)