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.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 # 
Data DeleteRole Source # 

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 # 
Show DeleteRole Source # 
Generic DeleteRole Source # 

Associated Types

type Rep DeleteRole :: * -> * #

Hashable DeleteRole Source # 
NFData DeleteRole Source # 

Methods

rnf :: DeleteRole -> () #

AWSRequest DeleteRole Source # 
ToHeaders DeleteRole Source # 

Methods

toHeaders :: DeleteRole -> [Header] #

ToPath DeleteRole Source # 
ToQuery DeleteRole Source # 
type Rep DeleteRole Source # 
type Rep DeleteRole = D1 * (MetaData "DeleteRole" "Network.AWS.IAM.DeleteRole" "amazonka-iam-1.6.0-CI3f7XZIc4eD0Ehb04tNY7" True) (C1 * (MetaCons "DeleteRole'" PrefixI True) (S1 * (MetaSel (Just Symbol "_drRoleName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs DeleteRole Source # 

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

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 # 
Show DeleteRoleResponse Source # 
Generic DeleteRoleResponse Source # 
NFData DeleteRoleResponse Source # 

Methods

rnf :: DeleteRoleResponse -> () #

type Rep DeleteRoleResponse Source # 
type Rep DeleteRoleResponse = D1 * (MetaData "DeleteRoleResponse" "Network.AWS.IAM.DeleteRole" "amazonka-iam-1.6.0-CI3f7XZIc4eD0Ehb04tNY7" False) (C1 * (MetaCons "DeleteRoleResponse'" PrefixI False) (U1 *))