amazonka-iam-1.6.0: 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.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 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:

  • pupUserName - The name of the user to associate the policy with. 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: _+=,.@-
  • pupPolicyName - The name of the policy document. 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: _+=,.@-
  • pupPolicyDocument - The policy document. The regex pattern used to validate this parameter is a string of characters consisting of the following: * Any printable ASCII character ranging from the space character (u0020) through the end of the ASCII character range * The printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF) * The special characters tab (u0009), line feed (u000A), and carriage return (u000D)

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 # 
ToHeaders PutUserPolicy Source # 
ToPath PutUserPolicy Source # 
ToQuery PutUserPolicy Source # 
type Rep PutUserPolicy Source # 
type Rep PutUserPolicy = D1 * (MetaData "PutUserPolicy" "Network.AWS.IAM.PutUserPolicy" "amazonka-iam-1.6.0-CI3f7XZIc4eD0Ehb04tNY7" 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. 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: _+=,.@-

pupPolicyName :: Lens' PutUserPolicy Text Source #

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

pupPolicyDocument :: Lens' PutUserPolicy Text Source #

The policy document. The regex pattern used to validate this parameter is a string of characters consisting of the following: * Any printable ASCII character ranging from the space character (u0020) through the end of the ASCII character range * The printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF) * The special characters tab (u0009), line feed (u000A), and carriage return (u000D)

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.6.0-CI3f7XZIc4eD0Ehb04tNY7" False) (C1 * (MetaCons "PutUserPolicyResponse'" PrefixI False) (U1 *))