amazonka-iam-0.1.4: Amazon Identity and Access Management SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.IAM.PutRolePolicy

Contents

Description

Adds (or updates) a policy document associated with the specified role. For information about policies, go to Overview of Policies in the Using IAM guide.

For information about limits on the policies you can associate with a role, see Limitations on IAM Entities in the Using IAM guide.

Because policy documents can be large, you should use POST rather than GET when calling PutRolePolicy. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWSGeneral Reference. For general information about using the Query API with IAM, go to Making Query Requests in the Using IAM guide.

http://docs.aws.amazon.com/IAM/latest/APIReference/API_PutRolePolicy.html

Synopsis

Request

Request constructor

putRolePolicy Source

PutRolePolicy constructor.

The fields accessible through corresponding lenses are:

Request lenses

prpPolicyName :: Lens' PutRolePolicy Text Source

The name of the policy document.

prpRoleName :: Lens' PutRolePolicy Text Source

The name of the role to associate the policy with.

Response

Response constructor