TokenComparison Class
An enum-like class that represents the result of comparing two Tokens.
The return type of Token.compareStrings.
Example
ts
// 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;
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
token_comparison = cdk.TokenComparison.BOTH_UNRESOLVED
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
TokenComparison tokenComparison = TokenComparison.BOTH_UNRESOLVED;
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;
var tokenComparison = TokenComparison.BOTH_UNRESOLVED;
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 cdk "github.com/aws/aws-cdk-go/awscdk"
tokenComparison := cdk.TokenComparison_BOTH_UNRESOLVED()
Properties
BOTH_UNRESOLVEDTokenComparisonboth_unresolvedTokenComparisonBOTH_UNRESOLVEDTokenComparisonBOTH_UNRESOLVEDTokenComparisonBOTH_UNRESOLVEDTokenComparisonstatic#This means both components are Tokens.
DIFFERENTTokenComparisondifferentTokenComparisonDIFFERENTTokenComparisonDIFFERENTTokenComparisonDIFFERENTTokenComparisonstatic#This means we're certain the two components are NOT Tokens, and different.
ONE_UNRESOLVEDTokenComparisonone_unresolvedTokenComparisonONE_UNRESOLVEDTokenComparisonONE_UNRESOLVEDTokenComparisonONE_UNRESOLVEDTokenComparisonstatic#This means exactly one of the components is a Token.
SAMETokenComparisonsameTokenComparisonSAMETokenComparisonSAMETokenComparisonSAMETokenComparisonstatic#This means we're certain the two components are NOT Tokens, and identical.