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.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 # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

Data ReplaceIAMInstanceProfileAssociation Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

Show ReplaceIAMInstanceProfileAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

Generic ReplaceIAMInstanceProfileAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

Hashable ReplaceIAMInstanceProfileAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

AWSRequest ReplaceIAMInstanceProfileAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

ToHeaders ReplaceIAMInstanceProfileAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

ToPath ReplaceIAMInstanceProfileAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

ToQuery ReplaceIAMInstanceProfileAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

NFData ReplaceIAMInstanceProfileAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

type Rep ReplaceIAMInstanceProfileAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

type Rep ReplaceIAMInstanceProfileAssociation = D1 (MetaData "ReplaceIAMInstanceProfileAssociation" "Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ReplaceIAMInstanceProfileAssociation'" PrefixI True) (S1 (MetaSel (Just "_riapaIAMInstanceProfile") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 IAMInstanceProfileSpecification) :*: S1 (MetaSel (Just "_riapaAssociationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs ReplaceIAMInstanceProfileAssociation Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

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 # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

Data ReplaceIAMInstanceProfileAssociationResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

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 # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

Show ReplaceIAMInstanceProfileAssociationResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

Generic ReplaceIAMInstanceProfileAssociationResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

NFData ReplaceIAMInstanceProfileAssociationResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

type Rep ReplaceIAMInstanceProfileAssociationResponse Source # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

type Rep ReplaceIAMInstanceProfileAssociationResponse = D1 (MetaData "ReplaceIAMInstanceProfileAssociationResponse" "Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ReplaceIAMInstanceProfileAssociationResponse'" PrefixI True) (S1 (MetaSel (Just "_riaparsIAMInstanceProfileAssociation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe IAMInstanceProfileAssociation)) :*: S1 (MetaSel (Just "_riaparsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses