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

Copyright(c) 2013-2017 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.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 Source #

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. 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: _+=,.@-
  • 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 Source #

See: detachRolePolicy smart constructor.

Instances

Eq DetachRolePolicy Source # 
Data DetachRolePolicy Source # 

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

Methods

rnf :: DetachRolePolicy -> () #

AWSRequest DetachRolePolicy Source # 
ToQuery DetachRolePolicy Source # 
ToPath DetachRolePolicy Source # 
ToHeaders DetachRolePolicy Source # 
type Rep DetachRolePolicy Source # 
type Rep DetachRolePolicy = D1 (MetaData "DetachRolePolicy" "Network.AWS.IAM.DetachRolePolicy" "amazonka-iam-1.5.0-2w4nVHAOrDgI2P1QVLKd9e" 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 Source # 

Request Lenses

drpRoleName :: Lens' DetachRolePolicy Text Source #

The name (friendly name, not ARN) of the IAM role to detach the policy from. 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: _+=,.@-

drpPolicyARN :: Lens' DetachRolePolicy Text Source #

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

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

data DetachRolePolicyResponse Source #

See: detachRolePolicyResponse smart constructor.

Instances

Eq DetachRolePolicyResponse Source # 
Data DetachRolePolicyResponse Source # 

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 Source # 
Show DetachRolePolicyResponse Source # 
Generic DetachRolePolicyResponse Source # 
NFData DetachRolePolicyResponse Source # 
type Rep DetachRolePolicyResponse Source # 
type Rep DetachRolePolicyResponse = D1 (MetaData "DetachRolePolicyResponse" "Network.AWS.IAM.DetachRolePolicy" "amazonka-iam-1.5.0-2w4nVHAOrDgI2P1QVLKd9e" False) (C1 (MetaCons "DetachRolePolicyResponse'" PrefixI False) U1)