- class aws_cdk.aws_iam.IComparablePrincipal(*args, **kwargs)
Interface for principals that can be compared.
This only needs to be implemented for principals that could potentially be value-equal. Identity-equal principals will be handled correctly by default.
Add to the policy of this principal.
Return a string format of this principal which should be identical if the two principals are the same.
- Return type:
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.
The AWS account ID of this principal.
Can be undefined when the account is not known (for example, for service principals). Can be a Token - in that case, it’s assumed to be AWS::AccountId.