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

Safe HaskellNone
LanguageHaskell2010

Network.AWS.IAM.CreateRole

Contents

Description

Creates a new role for your AWS account. For more information about roles, go to Working with Roles. For information about limitations on role names and the number of roles you can create, go to Limitations on IAM Entities in the Using IAM guide.

The example policy grants permission to an EC2 instance to assume the role. The policy is URL-encoded according to RFC 3986. For more information about RFC 3986, go to http://www.faqs.org/rfcs/rfc3986.html.

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

Synopsis

Request

Request constructor

createRole Source

CreateRole constructor.

The fields accessible through corresponding lenses are:

Request lenses

crAssumeRolePolicyDocument :: Lens' CreateRole Text Source

The policy that grants an entity permission to assume the role.

crPath :: Lens' CreateRole (Maybe Text) Source

The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

crRoleName :: Lens' CreateRole Text Source

The name of the role to create.

Response

Response constructor

createRoleResponse Source

CreateRoleResponse constructor.

The fields accessible through corresponding lenses are:

Response lenses

crrRole :: Lens' CreateRoleResponse Role Source

Information about the role.