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.ReplaceIAMInstanceProfileAssociation

Contents

Description

Replaces an IAM instance profile for the specified running instance. You can use this action to change the IAM instance profile that's associated with an instance without having to disassociate the existing IAM instance profile first.

Use DescribeIamInstanceProfileAssociations to get the association ID.

Synopsis

Creating a Request

replaceIAMInstanceProfileAssociation Source #

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

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

data ReplaceIAMInstanceProfileAssociation Source #

See: replaceIAMInstanceProfileAssociation smart constructor.

Instances

Eq ReplaceIAMInstanceProfileAssociation Source # 
Data ReplaceIAMInstanceProfileAssociation Source # 

Methods

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

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

toConstr :: ReplaceIAMInstanceProfileAssociation -> Constr #

dataTypeOf :: ReplaceIAMInstanceProfileAssociation -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ReplaceIAMInstanceProfileAssociation Source # 
Show ReplaceIAMInstanceProfileAssociation Source # 
Generic ReplaceIAMInstanceProfileAssociation Source # 
Hashable ReplaceIAMInstanceProfileAssociation Source # 
NFData ReplaceIAMInstanceProfileAssociation Source # 
AWSRequest ReplaceIAMInstanceProfileAssociation Source # 
ToHeaders ReplaceIAMInstanceProfileAssociation Source # 
ToPath ReplaceIAMInstanceProfileAssociation Source # 
ToQuery ReplaceIAMInstanceProfileAssociation Source # 
type Rep ReplaceIAMInstanceProfileAssociation Source # 
type Rep ReplaceIAMInstanceProfileAssociation = D1 * (MetaData "ReplaceIAMInstanceProfileAssociation" "Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "ReplaceIAMInstanceProfileAssociation'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_riapaIAMInstanceProfile") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * IAMInstanceProfileSpecification)) (S1 * (MetaSel (Just Symbol "_riapaAssociationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs ReplaceIAMInstanceProfileAssociation Source # 

Request Lenses

riapaAssociationId :: Lens' ReplaceIAMInstanceProfileAssociation Text Source #

The ID of the existing IAM instance profile association.

Destructuring the Response

replaceIAMInstanceProfileAssociationResponse Source #

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

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

data ReplaceIAMInstanceProfileAssociationResponse Source #

Instances

Eq ReplaceIAMInstanceProfileAssociationResponse Source # 
Data ReplaceIAMInstanceProfileAssociationResponse Source # 

Methods

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

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

toConstr :: ReplaceIAMInstanceProfileAssociationResponse -> Constr #

dataTypeOf :: ReplaceIAMInstanceProfileAssociationResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ReplaceIAMInstanceProfileAssociationResponse Source # 
Show ReplaceIAMInstanceProfileAssociationResponse Source # 
Generic ReplaceIAMInstanceProfileAssociationResponse Source # 
NFData ReplaceIAMInstanceProfileAssociationResponse Source # 
type Rep ReplaceIAMInstanceProfileAssociationResponse Source # 
type Rep ReplaceIAMInstanceProfileAssociationResponse = D1 * (MetaData "ReplaceIAMInstanceProfileAssociationResponse" "Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "ReplaceIAMInstanceProfileAssociationResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_riaparsIAMInstanceProfileAssociation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe IAMInstanceProfileAssociation))) (S1 * (MetaSel (Just Symbol "_riaparsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses