A principal for use in resources that need to have a role but it's unknown.
Some resources have roles associated with them which they assume, such as Lambda Functions, CodeBuild projects, StepFunctions machines, etc.
When those resources are imported, their actual roles are not always imported with them. When that happens, we use an instance of this class instead, which will add user warnings when statements are attempted to be added to it.
new UnknownPrincipal(props: UnknownPrincipalProps)
|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: PolicyStatement): boolean
Add to the policy of this principal.