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

Contents

Description

Resets an attribute of an AMI to its default value.

Synopsis

Creating a Request

resetImageAttribute #

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

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

  • resDryRun - 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 .
  • resAttribute - The attribute to reset (currently you can only reset the launch permission attribute).
  • resImageId - The ID of the AMI.

data ResetImageAttribute #

Contains the parameters for ResetImageAttribute.

See: resetImageAttribute smart constructor.

Instances
Eq ResetImageAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

Data ResetImageAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

Methods

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

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

toConstr :: ResetImageAttribute -> Constr #

dataTypeOf :: ResetImageAttribute -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ResetImageAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

Show ResetImageAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

Generic ResetImageAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

Associated Types

type Rep ResetImageAttribute :: Type -> Type #

Hashable ResetImageAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

AWSRequest ResetImageAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

Associated Types

type Rs ResetImageAttribute :: Type #

ToHeaders ResetImageAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

ToPath ResetImageAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

ToQuery ResetImageAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

NFData ResetImageAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

Methods

rnf :: ResetImageAttribute -> () #

type Rep ResetImageAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

type Rep ResetImageAttribute = D1 (MetaData "ResetImageAttribute" "Network.AWS.EC2.ResetImageAttribute" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "ResetImageAttribute'" PrefixI True) (S1 (MetaSel (Just "_resDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_resAttribute") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ResetImageAttributeName) :*: S1 (MetaSel (Just "_resImageId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ResetImageAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

Request Lenses

resDryRun :: Lens' ResetImageAttribute (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 .

resAttribute :: Lens' ResetImageAttribute ResetImageAttributeName #

The attribute to reset (currently you can only reset the launch permission attribute).

Destructuring the Response

resetImageAttributeResponse :: ResetImageAttributeResponse #

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

data ResetImageAttributeResponse #

See: resetImageAttributeResponse smart constructor.

Instances
Eq ResetImageAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

Data ResetImageAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

Methods

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

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

toConstr :: ResetImageAttributeResponse -> Constr #

dataTypeOf :: ResetImageAttributeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ResetImageAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

Show ResetImageAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

Generic ResetImageAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

Associated Types

type Rep ResetImageAttributeResponse :: Type -> Type #

NFData ResetImageAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

type Rep ResetImageAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ResetImageAttribute

type Rep ResetImageAttributeResponse = D1 (MetaData "ResetImageAttributeResponse" "Network.AWS.EC2.ResetImageAttribute" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "ResetImageAttributeResponse'" PrefixI False) (U1 :: Type -> Type))