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

Contents

Description

Adds (or updates) an inline policy document that is embedded in the specified user.

A user can also have a managed policy attached to it. To attach a managed policy to a user, use AttachUserPolicy. To create a new managed policy, use CreatePolicy. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide.

For information about limits on the number of inline policies that you can embed in a user, see Limitations on IAM Entities in the IAM User Guide.

Because policy documents can be large, you should use POST rather than GET when calling PutUserPolicy. For general information about using the Query API with IAM, go to Making Query Requests in the Using IAM guide.

Synopsis

Creating a Request

putUserPolicy Source #

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

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

data PutUserPolicy Source #

See: putUserPolicy smart constructor.

Instances

Eq PutUserPolicy Source # 
Data PutUserPolicy Source # 

Methods

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

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

toConstr :: PutUserPolicy -> Constr #

dataTypeOf :: PutUserPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutUserPolicy Source # 
Show PutUserPolicy Source # 
Generic PutUserPolicy Source # 

Associated Types

type Rep PutUserPolicy :: * -> * #

Hashable PutUserPolicy Source # 
NFData PutUserPolicy Source # 

Methods

rnf :: PutUserPolicy -> () #

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

Request Lenses

pupUserName :: Lens' PutUserPolicy Text Source #

The name of the user to associate the policy with.

pupPolicyName :: Lens' PutUserPolicy Text Source #

The name of the policy document.

Destructuring the Response

putUserPolicyResponse :: PutUserPolicyResponse Source #

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

data PutUserPolicyResponse Source #

See: putUserPolicyResponse smart constructor.

Instances

Eq PutUserPolicyResponse Source # 
Data PutUserPolicyResponse Source # 

Methods

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

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

toConstr :: PutUserPolicyResponse -> Constr #

dataTypeOf :: PutUserPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutUserPolicyResponse Source # 
Show PutUserPolicyResponse Source # 
Generic PutUserPolicyResponse Source # 
NFData PutUserPolicyResponse Source # 

Methods

rnf :: PutUserPolicyResponse -> () #

type Rep PutUserPolicyResponse Source # 
type Rep PutUserPolicyResponse = D1 (MetaData "PutUserPolicyResponse" "Network.AWS.IAM.PutUserPolicy" "amazonka-iam-1.4.2-IxxX1VashHkGLYx0CCJHht" False) (C1 (MetaCons "PutUserPolicyResponse'" PrefixI False) U1)