Represents a logical IAM principal.
An IPrincipal describes a logical entity that can perform AWS API calls against sets of resources, optionally under certain conditions.
Examples of simple principals are IAM objects that you create, such as Users or Roles.
An example of a more complex principals is a
ServicePrincipal (such as
new ServicePrincipal("sns.amazonaws.com"), which represents the Simple
A single logical Principal may also map to a set of physical principals.
new OrganizationPrincipal('o-1234') represents all
identities that are part of the given AWS Organization.
|assume||When this Principal is used in an AssumeRole policy, the action to use.|
|grant||The principal to grant permissions to.|
|policy||Return the policy fragment that identifies this principal in a Policy.|
When this Principal is used in an AssumeRole policy, the action to use.
The principal to grant permissions to.
Return the policy fragment that identifies this principal in a Policy.
|add||Add to the policy of this principal.|
public addToPolicy(statement: Policy<wbr>Statement): boolean
Add to the policy of this principal.