AWS SDK for .NET Documentation
CreateRole Method (request)
AmazonAmazon.IdentityManagementAmazonIdentityManagementServiceClientCreateRole(CreateRoleRequest) Did this page help you?   Yes   No    Tell us about it...
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 Using AWS Identity and Access Management.

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

Declaration Syntax
public CreateRoleResponse CreateRole(
	CreateRoleRequest request
request (CreateRoleRequest)
Container for the necessary parameters to execute the CreateRole service method.
Return Value
The response from the CreateRole service method, as returned by IdentityManagementService.
EntityAlreadyExistsException The request was rejected because it attempted to create a resource that already exists.
LimitExceededException The request was rejected because it attempted to create resources beyond the current AWS account limits. The error message describes the limit exceeded.
MalformedPolicyDocumentException The request was rejected because the policy document was malformed. The error message describes the specific error.

Assembly: AWSSDK (Module: AWSSDK) Version: (