amazonka-iam-1.6.0: Amazon Identity and Access Management 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.IAM.RemoveRoleFromInstanceProfile

Contents

Description

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

Important: Make sure that 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 might 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 #

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. This parameter allows (per its regex pattern ) 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. This parameter allows (per its regex pattern ) 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 #

See: removeRoleFromInstanceProfile smart constructor.

Instances

Eq RemoveRoleFromInstanceProfile # 
Data RemoveRoleFromInstanceProfile # 

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 # 
Show RemoveRoleFromInstanceProfile # 
Generic RemoveRoleFromInstanceProfile # 
Hashable RemoveRoleFromInstanceProfile # 
NFData RemoveRoleFromInstanceProfile # 
AWSRequest RemoveRoleFromInstanceProfile # 
ToHeaders RemoveRoleFromInstanceProfile # 
ToPath RemoveRoleFromInstanceProfile # 
ToQuery RemoveRoleFromInstanceProfile # 
type Rep RemoveRoleFromInstanceProfile # 
type Rep RemoveRoleFromInstanceProfile = D1 * (MetaData "RemoveRoleFromInstanceProfile" "Network.AWS.IAM.RemoveRoleFromInstanceProfile" "amazonka-iam-1.6.0-1EzdHSXYgBWIEzsCXYmity" 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 # 

Request Lenses

rrfipInstanceProfileName :: Lens' RemoveRoleFromInstanceProfile Text #

The name of the instance profile to update. This parameter allows (per its regex pattern ) 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 #

The name of the role to remove. This parameter allows (per its regex pattern ) 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

removeRoleFromInstanceProfileResponse :: RemoveRoleFromInstanceProfileResponse #

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

data RemoveRoleFromInstanceProfileResponse #

Instances

Eq RemoveRoleFromInstanceProfileResponse # 
Data RemoveRoleFromInstanceProfileResponse # 

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 # 
Show RemoveRoleFromInstanceProfileResponse # 
Generic RemoveRoleFromInstanceProfileResponse # 
NFData RemoveRoleFromInstanceProfileResponse # 
type Rep RemoveRoleFromInstanceProfileResponse # 
type Rep RemoveRoleFromInstanceProfileResponse = D1 * (MetaData "RemoveRoleFromInstanceProfileResponse" "Network.AWS.IAM.RemoveRoleFromInstanceProfile" "amazonka-iam-1.6.0-1EzdHSXYgBWIEzsCXYmity" False) (C1 * (MetaCons "RemoveRoleFromInstanceProfileResponse'" PrefixI False) (U1 *))