amazonka-iam-1.6.1: 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.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 # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

Data DetachRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.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 Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

Show DetachRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

Generic DetachRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

Associated Types

type Rep DetachRolePolicy :: Type -> Type #

Hashable DetachRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

AWSRequest DetachRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

Associated Types

type Rs DetachRolePolicy :: Type #

ToHeaders DetachRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

ToPath DetachRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

ToQuery DetachRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

NFData DetachRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

Methods

rnf :: DetachRolePolicy -> () #

type Rep DetachRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

type Rep DetachRolePolicy = D1 (MetaData "DetachRolePolicy" "Network.AWS.IAM.DetachRolePolicy" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" False) (C1 (MetaCons "DetachRolePolicy'" PrefixI True) (S1 (MetaSel (Just "_drpRoleName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_drpPolicyARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs DetachRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

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 # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

Data DetachRolePolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

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 # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

Show DetachRolePolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

Generic DetachRolePolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

Associated Types

type Rep DetachRolePolicyResponse :: Type -> Type #

NFData DetachRolePolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

type Rep DetachRolePolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DetachRolePolicy

type Rep DetachRolePolicyResponse = D1 (MetaData "DetachRolePolicyResponse" "Network.AWS.IAM.DetachRolePolicy" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" False) (C1 (MetaCons "DetachRolePolicyResponse'" PrefixI False) (U1 :: Type -> Type))