AWS SDK for .NET Documentation
CreateRoleRequest Class
AmazonAmazon.IdentityManagement.ModelCreateRoleRequest Did this page help you?   Yes   No    Tell us about it...
Container for the parameters to the CreateRole operation. 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 class CreateRoleRequest : AmazonWebServiceRequest
All MembersConstructorsMethodsProperties

Initializes a new instance of the CreateRoleRequest class

Gets and sets the property AssumeRolePolicyDocument.

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

Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Serves as a hash function for a particular type.
(Inherited from Object.)
Gets the type of the current instance.
(Inherited from Object.)
Gets and sets the property Path.

The path to the role. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

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

Gets and sets the property RoleName.

Name of the role to create.

Returns a string that represents the current object.
(Inherited from Object.)
WithAssumeRolePolicyDocument(String) Obsolete.
Sets the AssumeRolePolicyDocument property

WithPath(String) Obsolete.
Sets the Path property

WithRoleName(String) Obsolete.
Sets the RoleName property

Inheritance Hierarchy

Assembly: AWSSDK (Module: AWSSDK) Version: (