amazonka-iam-1.6.1: 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 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. 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 Source #

See: removeRoleFromInstanceProfile smart constructor.

Instances
Eq RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

Data RemoveRoleFromInstanceProfile Source # 
Instance details

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

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

Show RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

Generic RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

Associated Types

type Rep RemoveRoleFromInstanceProfile :: Type -> Type #

Hashable RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

AWSRequest RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

Associated Types

type Rs RemoveRoleFromInstanceProfile :: Type #

ToHeaders RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

ToPath RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

ToQuery RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

NFData RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

type Rep RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

type Rep RemoveRoleFromInstanceProfile = D1 (MetaData "RemoveRoleFromInstanceProfile" "Network.AWS.IAM.RemoveRoleFromInstanceProfile" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" False) (C1 (MetaCons "RemoveRoleFromInstanceProfile'" PrefixI True) (S1 (MetaSel (Just "_rrfipInstanceProfileName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_rrfipRoleName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

Request Lenses

rrfipInstanceProfileName :: Lens' RemoveRoleFromInstanceProfile Text Source #

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 Source #

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

data RemoveRoleFromInstanceProfileResponse Source #

Instances
Eq RemoveRoleFromInstanceProfileResponse Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

Data RemoveRoleFromInstanceProfileResponse Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

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

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

Show RemoveRoleFromInstanceProfileResponse Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

Generic RemoveRoleFromInstanceProfileResponse Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

NFData RemoveRoleFromInstanceProfileResponse Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

type Rep RemoveRoleFromInstanceProfileResponse Source # 
Instance details

Defined in Network.AWS.IAM.RemoveRoleFromInstanceProfile

type Rep RemoveRoleFromInstanceProfileResponse = D1 (MetaData "RemoveRoleFromInstanceProfileResponse" "Network.AWS.IAM.RemoveRoleFromInstanceProfile" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" False) (C1 (MetaCons "RemoveRoleFromInstanceProfileResponse'" PrefixI False) (U1 :: Type -> Type))