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.DeleteRole

Contents

Description

Deletes the specified role. The role must not have any policies attached. For more information about roles, go to Working with Roles .

Important: Make sure that you do not have any Amazon EC2 instances running with the role you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.

Synopsis

Creating a Request

deleteRole Source #

Arguments

:: Text

drRoleName

-> DeleteRole 

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

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

  • drRoleName - The name of the role to delete. 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 DeleteRole Source #

See: deleteRole smart constructor.

Instances
Eq DeleteRole Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

Data DeleteRole Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

Methods

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

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

toConstr :: DeleteRole -> Constr #

dataTypeOf :: DeleteRole -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteRole Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

Show DeleteRole Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

Generic DeleteRole Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

Associated Types

type Rep DeleteRole :: Type -> Type #

Hashable DeleteRole Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

AWSRequest DeleteRole Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

Associated Types

type Rs DeleteRole :: Type #

ToHeaders DeleteRole Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

Methods

toHeaders :: DeleteRole -> [Header] #

ToPath DeleteRole Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

ToQuery DeleteRole Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

NFData DeleteRole Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

Methods

rnf :: DeleteRole -> () #

type Rep DeleteRole Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

type Rep DeleteRole = D1 (MetaData "DeleteRole" "Network.AWS.IAM.DeleteRole" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" True) (C1 (MetaCons "DeleteRole'" PrefixI True) (S1 (MetaSel (Just "_drRoleName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DeleteRole Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

Request Lenses

drRoleName :: Lens' DeleteRole Text Source #

The name of the role to delete. 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

deleteRoleResponse :: DeleteRoleResponse Source #

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

data DeleteRoleResponse Source #

See: deleteRoleResponse smart constructor.

Instances
Eq DeleteRoleResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

Data DeleteRoleResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

Methods

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

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

toConstr :: DeleteRoleResponse -> Constr #

dataTypeOf :: DeleteRoleResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteRoleResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

Show DeleteRoleResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

Generic DeleteRoleResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

Associated Types

type Rep DeleteRoleResponse :: Type -> Type #

NFData DeleteRoleResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

Methods

rnf :: DeleteRoleResponse -> () #

type Rep DeleteRoleResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRole

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