amazonka-iam-1.4.5: Amazon Identity and Access Management SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.IAM.RemoveRoleFromInstanceProfile

Contents

Description

Removes the specified IAM role from the specified EC2 instance profile.

Important: Make sure you do not have any Amazon EC2 instances running with the role you are about to remove from the instance profile. Removing a role from an instance profile that is associated with a running instance break any applications running on the instance.

For more information about IAM roles, go to Working with Roles . For more information about instance profiles, go to About Instance Profiles .

Synopsis

Creating a Request

removeRoleFromInstanceProfile Source #

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

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

  • rrfipInstanceProfileName - The name of the instance profile to update. The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
  • rrfipRoleName - The name of the role to remove. The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

data RemoveRoleFromInstanceProfile Source #

See: removeRoleFromInstanceProfile smart constructor.

Instances

Eq RemoveRoleFromInstanceProfile Source # 
Data RemoveRoleFromInstanceProfile Source # 

Methods

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

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

toConstr :: RemoveRoleFromInstanceProfile -> Constr #

dataTypeOf :: RemoveRoleFromInstanceProfile -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RemoveRoleFromInstanceProfile Source # 
Show RemoveRoleFromInstanceProfile Source # 
Generic RemoveRoleFromInstanceProfile Source # 
Hashable RemoveRoleFromInstanceProfile Source # 
NFData RemoveRoleFromInstanceProfile Source # 
AWSRequest RemoveRoleFromInstanceProfile Source # 
ToPath RemoveRoleFromInstanceProfile Source # 
ToHeaders RemoveRoleFromInstanceProfile Source # 
ToQuery RemoveRoleFromInstanceProfile Source # 
type Rep RemoveRoleFromInstanceProfile Source # 
type Rep RemoveRoleFromInstanceProfile = D1 (MetaData "RemoveRoleFromInstanceProfile" "Network.AWS.IAM.RemoveRoleFromInstanceProfile" "amazonka-iam-1.4.5-tAuuyG7nyKEp3j6LBO0rr" False) (C1 (MetaCons "RemoveRoleFromInstanceProfile'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rrfipInstanceProfileName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_rrfipRoleName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs RemoveRoleFromInstanceProfile Source # 

Request Lenses

rrfipInstanceProfileName :: Lens' RemoveRoleFromInstanceProfile Text Source #

The name of the instance profile to update. The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

rrfipRoleName :: Lens' RemoveRoleFromInstanceProfile Text Source #

The name of the role to remove. The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

Destructuring the Response

data RemoveRoleFromInstanceProfileResponse Source #

Instances

Eq RemoveRoleFromInstanceProfileResponse Source # 
Data RemoveRoleFromInstanceProfileResponse Source # 

Methods

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

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

toConstr :: RemoveRoleFromInstanceProfileResponse -> Constr #

dataTypeOf :: RemoveRoleFromInstanceProfileResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RemoveRoleFromInstanceProfileResponse Source # 
Show RemoveRoleFromInstanceProfileResponse Source # 
Generic RemoveRoleFromInstanceProfileResponse Source # 
NFData RemoveRoleFromInstanceProfileResponse Source # 
type Rep RemoveRoleFromInstanceProfileResponse Source # 
type Rep RemoveRoleFromInstanceProfileResponse = D1 (MetaData "RemoveRoleFromInstanceProfileResponse" "Network.AWS.IAM.RemoveRoleFromInstanceProfile" "amazonka-iam-1.4.5-tAuuyG7nyKEp3j6LBO0rr" False) (C1 (MetaCons "RemoveRoleFromInstanceProfileResponse'" PrefixI False) U1)