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 #

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 #

See: deleteRole smart constructor.

Instances

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

Associated Types

type Rep DeleteRole :: * -> * #

Hashable DeleteRole # 
NFData DeleteRole # 

Methods

rnf :: DeleteRole -> () #

AWSRequest DeleteRole # 
ToHeaders DeleteRole # 

Methods

toHeaders :: DeleteRole -> [Header] #

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

Request Lenses

drRoleName :: Lens' DeleteRole Text #

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 #

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

data DeleteRoleResponse #

See: deleteRoleResponse smart constructor.

Instances

Eq DeleteRoleResponse # 
Data DeleteRoleResponse # 

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

Methods

rnf :: DeleteRoleResponse -> () #

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