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

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

Network.AWS.EC2.ModifyFpgaImageAttribute

Contents

Description

Modifies the specified attribute of the specified Amazon FPGA Image (AFI).

Synopsis

Creating a Request

modifyFpgaImageAttribute #

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

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

  • mfiaAttribute - The name of the attribute.
  • mfiaUserIds - One or more AWS account IDs. This parameter is valid only when modifying the loadPermission attribute.
  • mfiaUserGroups - One or more user groups. This parameter is valid only when modifying the loadPermission attribute.
  • mfiaLoadPermission - The load permission for the AFI.
  • mfiaName - A name for the AFI.
  • mfiaOperationType - The operation type.
  • mfiaProductCodes - One or more product codes. After you add a product code to an AFI, it can't be removed. This parameter is valid only when modifying the productCodes attribute.
  • mfiaDescription - A description for the AFI.
  • mfiaDryRun - 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 .
  • mfiaFpgaImageId - The ID of the AFI.

data ModifyFpgaImageAttribute #

See: modifyFpgaImageAttribute smart constructor.

Instances

Eq ModifyFpgaImageAttribute # 
Data ModifyFpgaImageAttribute # 

Methods

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

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

toConstr :: ModifyFpgaImageAttribute -> Constr #

dataTypeOf :: ModifyFpgaImageAttribute -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyFpgaImageAttribute # 
Show ModifyFpgaImageAttribute # 
Generic ModifyFpgaImageAttribute # 
Hashable ModifyFpgaImageAttribute # 
NFData ModifyFpgaImageAttribute # 
AWSRequest ModifyFpgaImageAttribute # 
ToHeaders ModifyFpgaImageAttribute # 
ToPath ModifyFpgaImageAttribute # 
ToQuery ModifyFpgaImageAttribute # 
type Rep ModifyFpgaImageAttribute # 
type Rep ModifyFpgaImageAttribute = D1 * (MetaData "ModifyFpgaImageAttribute" "Network.AWS.EC2.ModifyFpgaImageAttribute" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "ModifyFpgaImageAttribute'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_mfiaAttribute") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe FpgaImageAttributeName))) (S1 * (MetaSel (Just Symbol "_mfiaUserIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text])))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mfiaUserGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mfiaLoadPermission") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe LoadPermissionModifications))) (S1 * (MetaSel (Just Symbol "_mfiaName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_mfiaOperationType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe OperationType))) (S1 * (MetaSel (Just Symbol "_mfiaProductCodes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text])))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mfiaDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mfiaDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_mfiaFpgaImageId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))))
type Rs ModifyFpgaImageAttribute # 

Request Lenses

mfiaUserIds :: Lens' ModifyFpgaImageAttribute [Text] #

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

mfiaUserGroups :: Lens' ModifyFpgaImageAttribute [Text] #

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

mfiaProductCodes :: Lens' ModifyFpgaImageAttribute [Text] #

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

mfiaDescription :: Lens' ModifyFpgaImageAttribute (Maybe Text) #

A description for the AFI.

mfiaDryRun :: Lens' ModifyFpgaImageAttribute (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

modifyFpgaImageAttributeResponse #

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

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

data ModifyFpgaImageAttributeResponse #

See: modifyFpgaImageAttributeResponse smart constructor.

Instances

Eq ModifyFpgaImageAttributeResponse # 
Data ModifyFpgaImageAttributeResponse # 

Methods

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

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

toConstr :: ModifyFpgaImageAttributeResponse -> Constr #

dataTypeOf :: ModifyFpgaImageAttributeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyFpgaImageAttributeResponse # 
Show ModifyFpgaImageAttributeResponse # 
Generic ModifyFpgaImageAttributeResponse # 
NFData ModifyFpgaImageAttributeResponse # 
type Rep ModifyFpgaImageAttributeResponse # 
type Rep ModifyFpgaImageAttributeResponse = D1 * (MetaData "ModifyFpgaImageAttributeResponse" "Network.AWS.EC2.ModifyFpgaImageAttribute" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "ModifyFpgaImageAttributeResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_mfiarsFpgaImageAttribute") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe FpgaImageAttribute))) (S1 * (MetaSel (Just Symbol "_mfiarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses