ComparablePrincipal Class
Helper class for working with IComparablePrincipals.
| Source | aws-iam/lib/principals.ts |
|---|---|
| Type last changed |
Example
ts
// 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();
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iam as iam
comparable_principal = iam.ComparablePrincipal()
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iam.*;
ComparablePrincipal comparablePrincipal = new ComparablePrincipal();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IAM;
var comparablePrincipal = new ComparablePrincipal();
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
comparablePrincipal := awscdk.Aws_iam.NewComparablePrincipal()
Initializer
ts
new ComparablePrincipal()
python
ComparablePrincipal()
java
new ComparablePrincipal()
csharp
new ComparablePrincipal()
go
NewComparablePrincipal()
Methods
dedupeStringFor(x: IPrincipal): string@staticmethod def dedupe_string_for(x: IPrincipal) -> strpublic static String dedupeStringFor(IPrincipal x)public static string DedupeStringFor(IPrincipal x)func DedupeStringFor(X IPrincipal) *string static #Return the dedupeString of the given principal, if available.
isComparablePrincipal(x: IPrincipal): boolean@staticmethod def is_comparable_principal(x: IPrincipal) -> boolpublic static Boolean isComparablePrincipal(IPrincipal x)public static bool IsComparablePrincipal(IPrincipal x)func IsComparablePrincipal(X IPrincipal) *bool static #Whether or not the given principal is a comparable principal.