Table of Contents

Interface IRole

Namespace
Amazon.CDK.AWS.IAM
Assembly
Amazon.CDK.AWS.IAM.dll

A Role object.

public interface IRole : IIdentity, IPrincipal, IGrantable, IResource, IConstruct, IConstruct, IDependable
Inherited Members

Properties

RoleArn

Returns the ARN of this role.

string RoleArn { get; }

Property Value

string

Remarks

Attribute: true

RoleName

Returns the name of this role.

string RoleName { get; }

Property Value

string

Remarks

Attribute: true

Methods

Grant(IPrincipal, params string[])

Grant the actions defined in actions to the identity Principal on this resource.

Grant Grant(IPrincipal grantee, params string[] actions)

Parameters

grantee IPrincipal
actions string[]

Returns

Grant

GrantAssumeRole(IPrincipal)

Grant permissions to the given principal to assume this role.

Grant GrantAssumeRole(IPrincipal grantee)

Parameters

grantee IPrincipal

Returns

Grant

GrantPassRole(IPrincipal)

Grant permissions to the given principal to pass this role.

Grant GrantPassRole(IPrincipal grantee)

Parameters

grantee IPrincipal

Returns

Grant