amazonka-iam-1.4.5: 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.DetachRolePolicy

Contents

Description

Removes the specified managed policy from the specified role.

A role can also have inline policies embedded with it. To delete an inline policy, use the DeleteRolePolicy API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide .

Synopsis

Creating a Request

detachRolePolicy #

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

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

  • drpRoleName - The name (friendly name, not ARN) of the IAM role to detach the policy from. The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
  • drpPolicyARN - The Amazon Resource Name (ARN) of the IAM policy you want to detach. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .

data DetachRolePolicy #

See: detachRolePolicy smart constructor.

Instances

Eq DetachRolePolicy # 
Data DetachRolePolicy # 

Methods

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

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

toConstr :: DetachRolePolicy -> Constr #

dataTypeOf :: DetachRolePolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachRolePolicy # 
Show DetachRolePolicy # 
Generic DetachRolePolicy # 
Hashable DetachRolePolicy # 
NFData DetachRolePolicy # 

Methods

rnf :: DetachRolePolicy -> () #

AWSRequest DetachRolePolicy # 
ToQuery DetachRolePolicy # 
ToPath DetachRolePolicy # 
ToHeaders DetachRolePolicy # 
type Rep DetachRolePolicy # 
type Rep DetachRolePolicy = D1 (MetaData "DetachRolePolicy" "Network.AWS.IAM.DetachRolePolicy" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" False) (C1 (MetaCons "DetachRolePolicy'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_drpRoleName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_drpPolicyARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DetachRolePolicy # 

Request Lenses

drpRoleName :: Lens' DetachRolePolicy Text #

The name (friendly name, not ARN) of the IAM role to detach the policy from. The regex pattern for this parameter is a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

drpPolicyARN :: Lens' DetachRolePolicy Text #

The Amazon Resource Name (ARN) of the IAM policy you want to detach. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .

Destructuring the Response

detachRolePolicyResponse :: DetachRolePolicyResponse #

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

data DetachRolePolicyResponse #

See: detachRolePolicyResponse smart constructor.

Instances

Eq DetachRolePolicyResponse # 
Data DetachRolePolicyResponse # 

Methods

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

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

toConstr :: DetachRolePolicyResponse -> Constr #

dataTypeOf :: DetachRolePolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachRolePolicyResponse # 
Show DetachRolePolicyResponse # 
Generic DetachRolePolicyResponse # 
NFData DetachRolePolicyResponse # 
type Rep DetachRolePolicyResponse # 
type Rep DetachRolePolicyResponse = D1 (MetaData "DetachRolePolicyResponse" "Network.AWS.IAM.DetachRolePolicy" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" False) (C1 (MetaCons "DetachRolePolicyResponse'" PrefixI False) U1)