class ComparablePrincipal
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.IAM.ComparablePrincipal |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiam#ComparablePrincipal |
Java | software.amazon.awscdk.services.iam.ComparablePrincipal |
Python | aws_cdk.aws_iam.ComparablePrincipal |
TypeScript (source) | aws-cdk-lib » 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 { aws_iam as iam } from 'aws-cdk-lib';
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.

.NET
Go
Java
Python
TypeScript (