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

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

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

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

Show ReplaceIAMInstanceProfileAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

Generic ReplaceIAMInstanceProfileAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

Associated Types

type Rep ReplaceIAMInstanceProfileAssociation :: * -> * #

Hashable ReplaceIAMInstanceProfileAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

AWSRequest ReplaceIAMInstanceProfileAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

Associated Types

type Rs ReplaceIAMInstanceProfileAssociation :: * #

ToHeaders ReplaceIAMInstanceProfileAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

ToPath ReplaceIAMInstanceProfileAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

ToQuery ReplaceIAMInstanceProfileAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

NFData ReplaceIAMInstanceProfileAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

type Rep ReplaceIAMInstanceProfileAssociation # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

type Rep ReplaceIAMInstanceProfileAssociation = D1 (MetaData "ReplaceIAMInstanceProfileAssociation" "Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" 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 # 
Instance details

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

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

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

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

Show ReplaceIAMInstanceProfileAssociationResponse # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

Generic ReplaceIAMInstanceProfileAssociationResponse # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

NFData ReplaceIAMInstanceProfileAssociationResponse # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

type Rep ReplaceIAMInstanceProfileAssociationResponse # 
Instance details

Defined in Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation

type Rep ReplaceIAMInstanceProfileAssociationResponse = D1 (MetaData "ReplaceIAMInstanceProfileAssociationResponse" "Network.AWS.EC2.ReplaceIAMInstanceProfileAssociation" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" 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