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

Contents

Description

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

An IAM 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, see 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 .

Synopsis

Creating a Request

putUserPolicy #

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:

  • pupUserName - The name of the user to associate the policy with. 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: =,.@-
  • pupPolicyName - The name of the policy document. 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: =,.@-
  • pupPolicyDocument - The policy document. The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range (u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).

data PutUserPolicy #

See: putUserPolicy smart constructor.

Instances

Eq PutUserPolicy # 
Data PutUserPolicy # 

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 # 
Show PutUserPolicy # 
Generic PutUserPolicy # 

Associated Types

type Rep PutUserPolicy :: * -> * #

Hashable PutUserPolicy # 
NFData PutUserPolicy # 

Methods

rnf :: PutUserPolicy -> () #

AWSRequest PutUserPolicy # 
ToQuery PutUserPolicy # 
ToPath PutUserPolicy # 
ToHeaders PutUserPolicy # 
type Rep PutUserPolicy # 
type Rep PutUserPolicy = D1 (MetaData "PutUserPolicy" "Network.AWS.IAM.PutUserPolicy" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" 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 # 

Request Lenses

pupUserName :: Lens' PutUserPolicy Text #

The name of the user to associate the policy with. 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: =,.@-

pupPolicyName :: Lens' PutUserPolicy Text #

The name of the policy document. 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: =,.@-

pupPolicyDocument :: Lens' PutUserPolicy Text #

The policy document. The regex pattern for this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range (u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).

Destructuring the Response

putUserPolicyResponse :: PutUserPolicyResponse #

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

data PutUserPolicyResponse #

See: putUserPolicyResponse smart constructor.

Instances

Eq PutUserPolicyResponse # 
Data PutUserPolicyResponse # 

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 # 
Show PutUserPolicyResponse # 
Generic PutUserPolicyResponse # 
NFData PutUserPolicyResponse # 

Methods

rnf :: PutUserPolicyResponse -> () #

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