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

func AddToPolicy(policyDocument PolicyDocumentProperty) ManagedPolicy

Add to the policy of this principal.

policyDocumentRequired


Properties

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

GrantPrincipalRequired

func GrantPrincipal() IPrincipal

The principal to grant permissions to.


PrincipalNameRequired

func PrincipalName() interface{}
  • Type: interface{}

The principal to grant permissions to.


PrincipalTypeRequired

func PrincipalType() *string
  • Type: *string

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