aws-cdk-lib.aws_iam.ComparablePrincipal

class ComparablePrincipal

LanguageType name
.NETAmazon.CDK.AWS.IAM.ComparablePrincipal
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiam#ComparablePrincipal
Javasoftware.amazon.awscdk.services.iam.ComparablePrincipal
Pythonaws_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

NameDescription
static dedupeStringFor(x)Return the dedupeString of the given principal, if available.
static isComparablePrincipal(x)Whether or not the given principal is a comparable principal.

static dedupeStringFor(x)

public static dedupeStringFor(x: IPrincipal): string

Parameters

  • x IPrincipal

Returns

  • string

Return the dedupeString of the given principal, if available.


static isComparablePrincipal(x)

public static isComparablePrincipal(x: IPrincipal): boolean

Parameters

  • x IPrincipal

Returns

  • boolean

Whether or not the given principal is a comparable principal.