Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
Request
data CreateRole Source
Request constructor
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
data CreateRoleResponse Source
Response constructor
CreateRoleResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
crrRole :: Lens' CreateRoleResponse Role Source
Information about the role.