AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
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 the IAM User Guide.

Inheritance Hierarchy


Namespace: Amazon.IdentityManagement.Model
Assembly: AWSSDK.dll
Version: (assembly version)


public class CreateRoleRequest : AmazonIdentityManagementServiceRequest

The CreateRoleRequest type exposes the following members


Public Method CreateRoleRequest()


Public Property AssumeRolePolicyDocument System.String Gets and sets the property AssumeRolePolicyDocument.

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

Public Property Path System.String Gets and sets the property Path.

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 (/).

Public Property RoleName System.String Gets and sets the property RoleName.

The name of the role to create.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1