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 http://www.faqs.org/rfcs/rfc3986.html.
Declaration Syntax
C# |
public class CreateRoleRequest : AmazonWebServiceRequest
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
CreateRoleRequest()()()() | Initializes a new instance of the CreateRoleRequest class | |
AssumeRolePolicyDocument |
Gets and sets the property AssumeRolePolicyDocument.
The policy that grants an entity permission to assume the role. | |
Equals(Object) | (Inherited from Object.) | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
Path |
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 (/). | |
RoleName |
Gets and sets the property RoleName.
Name of the role to create. | |
ToString()()()() | 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
Object | ||
AmazonWebServiceRequest | ||
CreateRoleRequest |