class ComparablePrincipal
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.IAM.ComparablePrincipal |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsiam#ComparablePrincipal |
![]() | software.amazon.awscdk.services.iam.ComparablePrincipal |
![]() | aws_cdk.aws_iam.ComparablePrincipal |
![]() | aws-cdk-lib » aws_iam » ComparablePrincipal |
Helper class for working with IComparablePrincipal
s.
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.