class ComparablePrincipal
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.IAM.ComparablePrincipal | 
|  Java | software.amazon.awscdk.services.iam.ComparablePrincipal | 
|  Python | aws_cdk.aws_iam.ComparablePrincipal | 
|  TypeScript (source) | @aws-cdk/aws-iam»ComparablePrincipal | 
Helper class for working with IComparablePrincipals.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as iam from '@aws-cdk/aws-iam';
const comparablePrincipal = new iam.ComparablePrincipal();
Initializer
new ComparablePrincipal()
Methods
| Name | Description | 
|---|---|
| static dedupe | Return the dedupeString of the given principal, if available. | 
| static is | Whether or not the given principal is a comparable principal. | 
static dedupeStringFor(x)  
public static dedupeStringFor(x: IPrincipal): string
Parameters
Returns
- string
Return the dedupeString of the given principal, if available.
static isComparablePrincipal(x)  
public static isComparablePrincipal(x: IPrincipal): boolean
Parameters
Returns
- boolean
Whether or not the given principal is a comparable principal.
