amazonka-iam-1.4.2: Amazon Identity and Access Management SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.IAM.DeleteRolePolicy

Contents

Description

Deletes the specified inline policy that is embedded in the specified role.

A role can also have managed policies attached to it. To detach a managed policy from a role, use DetachRolePolicy. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide.

Synopsis

Creating a Request

deleteRolePolicy Source #

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

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

data DeleteRolePolicy Source #

See: deleteRolePolicy smart constructor.

Instances

Eq DeleteRolePolicy Source # 
Data DeleteRolePolicy Source # 

Methods

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

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

toConstr :: DeleteRolePolicy -> Constr #

dataTypeOf :: DeleteRolePolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteRolePolicy Source # 
Show DeleteRolePolicy Source # 
Generic DeleteRolePolicy Source # 
Hashable DeleteRolePolicy Source # 
NFData DeleteRolePolicy Source # 

Methods

rnf :: DeleteRolePolicy -> () #

AWSRequest DeleteRolePolicy Source # 
ToQuery DeleteRolePolicy Source # 
ToPath DeleteRolePolicy Source # 
ToHeaders DeleteRolePolicy Source # 
type Rep DeleteRolePolicy Source # 
type Rep DeleteRolePolicy = D1 (MetaData "DeleteRolePolicy" "Network.AWS.IAM.DeleteRolePolicy" "amazonka-iam-1.4.2-IxxX1VashHkGLYx0CCJHht" False) (C1 (MetaCons "DeleteRolePolicy'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_delRoleName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_delPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DeleteRolePolicy Source # 

Request Lenses

delRoleName :: Lens' DeleteRolePolicy Text Source #

The name (friendly name, not ARN) identifying the role that the policy is embedded in.

delPolicyName :: Lens' DeleteRolePolicy Text Source #

The name identifying the policy document to delete.

Destructuring the Response

deleteRolePolicyResponse :: DeleteRolePolicyResponse Source #

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

data DeleteRolePolicyResponse Source #

See: deleteRolePolicyResponse smart constructor.

Instances

Eq DeleteRolePolicyResponse Source # 
Data DeleteRolePolicyResponse Source # 

Methods

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

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

toConstr :: DeleteRolePolicyResponse -> Constr #

dataTypeOf :: DeleteRolePolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteRolePolicyResponse Source # 
Show DeleteRolePolicyResponse Source # 
Generic DeleteRolePolicyResponse Source # 
NFData DeleteRolePolicyResponse Source # 
type Rep DeleteRolePolicyResponse Source # 
type Rep DeleteRolePolicyResponse = D1 (MetaData "DeleteRolePolicyResponse" "Network.AWS.IAM.DeleteRolePolicy" "amazonka-iam-1.4.2-IxxX1VashHkGLYx0CCJHht" False) (C1 (MetaCons "DeleteRolePolicyResponse'" PrefixI False) U1)