aws-cdk-lib.TokenComparison

class TokenComparison

LanguageType name
.NETAmazon.CDK.TokenComparison
Gogithub.com/aws/aws-cdk-go/awscdk/v2#TokenComparison
Javasoftware.amazon.awscdk.TokenComparison
Pythonaws_cdk.TokenComparison
TypeScript (source)aws-cdk-lib » TokenComparison

An enum-like class that represents the result of comparing two Tokens.

The return type of Token.compareStrings.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const tokenComparison = cdk.TokenComparison.BOTH_UNRESOLVED;

Properties

NameTypeDescription
static BOTH_UNRESOLVEDTokenComparisonThis means both components are Tokens.
static DIFFERENTTokenComparisonThis means we're certain the two components are NOT Tokens, and different.
static ONE_UNRESOLVEDTokenComparisonThis means exactly one of the components is a Token.
static SAMETokenComparisonThis means we're certain the two components are NOT Tokens, and identical.

static BOTH_UNRESOLVED

Type: TokenComparison

This means both components are Tokens.


static DIFFERENT

Type: TokenComparison

This means we're certain the two components are NOT Tokens, and different.


static ONE_UNRESOLVED

Type: TokenComparison

This means exactly one of the components is a Token.


static SAME

Type: TokenComparison

This means we're certain the two components are NOT Tokens, and identical.