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 #

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 #

See: replaceIAMInstanceProfileAssociation smart constructor.

Instances

Eq ReplaceIAMInstanceProfileAssociation # 
Data ReplaceIAMInstanceProfileAssociation # 

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 # 
Show ReplaceIAMInstanceProfileAssociation # 
Generic ReplaceIAMInstanceProfileAssociation # 
Hashable ReplaceIAMInstanceProfileAssociation # 
NFData ReplaceIAMInstanceProfileAssociation # 
AWSRequest ReplaceIAMInstanceProfileAssociation # 
ToHeaders ReplaceIAMInstanceProfileAssociation # 
ToPath ReplaceIAMInstanceProfileAssociation # 
ToQuery ReplaceIAMInstanceProfileAssociation # 
type Rep ReplaceIAMInstanceProfileAssociation # 
type Rep ReplaceIAMInstanceProfileAssociation = D1 * (MetaData "ReplaceIAMInstanceProfileAssociation" "Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" 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 # 

Request Lenses

riapaAssociationId :: Lens' ReplaceIAMInstanceProfileAssociation Text #

The ID of the existing IAM instance profile association.

Destructuring the Response

replaceIAMInstanceProfileAssociationResponse #

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 #

Instances

Eq ReplaceIAMInstanceProfileAssociationResponse # 
Data ReplaceIAMInstanceProfileAssociationResponse # 

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 # 
Show ReplaceIAMInstanceProfileAssociationResponse # 
Generic ReplaceIAMInstanceProfileAssociationResponse # 
NFData ReplaceIAMInstanceProfileAssociationResponse # 
type Rep ReplaceIAMInstanceProfileAssociationResponse # 
type Rep ReplaceIAMInstanceProfileAssociationResponse = D1 * (MetaData "ReplaceIAMInstanceProfileAssociationResponse" "Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" 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