Show / Hide Table of Contents

Interface IRole

A Role object.

Inherited Members
IIdentity.AddManagedPolicy(IManagedPolicy)
IIdentity.AttachInlinePolicy(Policy)
IPrincipal.AddToPrincipalPolicy(PolicyStatement)
IPrincipal.AssumeRoleAction
IPrincipal.PolicyFragment
IPrincipal.PrincipalAccount
IGrantable.GrantPrincipal
IResource.ApplyRemovalPolicy(RemovalPolicy)
IResource.Env
IResource.Stack
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IRole : IIdentity, IPrincipal, IGrantable, IResource, IConstruct, IDependable
Syntax (vb)
Public Interface IRole
    Inherits IIdentity, IPrincipal, IGrantable, IResource, IConstruct, IDependable

Synopsis

Properties

RoleArn

Returns the ARN of this role.

RoleName

Returns the name of this role.

Methods

Grant(IPrincipal, String[])

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

GrantAssumeRole(IPrincipal)

Grant permissions to the given principal to assume this role.

GrantPassRole(IPrincipal)

Grant permissions to the given principal to pass this role.

Properties

RoleArn

Returns the ARN of this role.

string RoleArn { get; }
Property Value

System.String

Remarks

Attribute: true

RoleName

Returns the name of this role.

string RoleName { get; }
Property Value

System.String

Remarks

Attribute: true

Methods

Grant(IPrincipal, 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 System.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

Back to top Generated by DocFX