Skip to content

IPrincipal

Represents a logical RAM principal.

An IPrincipal describes a logical entity that can perform ACS API calls against sets of resources, optionally under certain conditions.

Examples of principals are RAM objects that you create, such as Users, Roles or Groups.

Methods

Name Description
AddToPolicy Add to the policy of this principal.

AddToPolicy

private ManagedPolicy AddToPolicy(PolicyDocumentProperty PolicyDocument)

Add to the policy of this principal.

PolicyDocumentRequired


Properties

Name Type Description
GrantPrincipal IPrincipal The principal to grant permissions to.
PrincipalName object The principal to grant permissions to.
PrincipalType string The principal type, such as 'Group', 'Role', 'User'.

GrantPrincipalRequired

public IPrincipal GrantPrincipal { get; }

The principal to grant permissions to.


PrincipalNameRequired

public object PrincipalName { get; }
  • Type: object

The principal to grant permissions to.


PrincipalTypeRequired

public string PrincipalType { get; }
  • Type: string

The principal type, such as 'Group', 'Role', 'User'.