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.DeleteRolePolicy

Contents

Description

Deletes the specified inline policy that is embedded in the specified IAM 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:

  • delRoleName - The name (friendly name, not ARN) identifying the role that the policy is embedded in. 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: _+=,.@-
  • delPolicyName - The name of the inline policy to delete from the specified IAM role. 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 DeleteRolePolicy Source #

See: deleteRolePolicy smart constructor.

Instances
Eq DeleteRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

Data DeleteRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

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

Defined in Network.AWS.IAM.DeleteRolePolicy

Show DeleteRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

Generic DeleteRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

Associated Types

type Rep DeleteRolePolicy :: Type -> Type #

Hashable DeleteRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

AWSRequest DeleteRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

Associated Types

type Rs DeleteRolePolicy :: Type #

ToHeaders DeleteRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

ToPath DeleteRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

ToQuery DeleteRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

NFData DeleteRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

Methods

rnf :: DeleteRolePolicy -> () #

type Rep DeleteRolePolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

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

Defined in Network.AWS.IAM.DeleteRolePolicy

Request Lenses

delRoleName :: Lens' DeleteRolePolicy Text Source #

The name (friendly name, not ARN) identifying the role that the policy is embedded in. 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: _+=,.@-

delPolicyName :: Lens' DeleteRolePolicy Text Source #

The name of the inline policy to delete from the specified IAM role. 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

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

Defined in Network.AWS.IAM.DeleteRolePolicy

Data DeleteRolePolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

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

Defined in Network.AWS.IAM.DeleteRolePolicy

Show DeleteRolePolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

Generic DeleteRolePolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

Associated Types

type Rep DeleteRolePolicyResponse :: Type -> Type #

NFData DeleteRolePolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

type Rep DeleteRolePolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteRolePolicy

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