Interface IIdentity
A construct that represents an IAM principal, such as a user, group or role.
public interface IIdentity : IPrincipal, IGrantable, IResource, IConstruct, IConstruct, IDependable
- Inherited Members
Methods
AddManagedPolicy(IManagedPolicy)
Attaches a managed policy to this principal.
void AddManagedPolicy(IManagedPolicy policy)
Parameters
policy
IManagedPolicyThe managed policy.
AttachInlinePolicy(Policy)
Attaches an inline policy to this principal.
void AttachInlinePolicy(Policy policy)
Parameters
policy
PolicyThe policy resource to attach to this principal [disable-awslint:ref-via-interface].
Remarks
This is the same as calling policy.addToXxx(principal)
.