class TokenComparison
Language | Type name |
---|---|
.NET | Amazon.CDK.TokenComparison |
Go | github.com/aws/aws-cdk-go/awscdk/v2#TokenComparison |
Java | software.amazon.awscdk.TokenComparison |
Python | aws_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
Name | Type | Description |
---|---|---|
static BOTH_UNRESOLVED | Token | This means both components are Tokens. |
static DIFFERENT | Token | This means we're certain the two components are NOT Tokens, and different. |
static ONE_UNRESOLVED | Token | This means exactly one of the components is a Token. |
static SAME | Token | This means we're certain the two components are NOT Tokens, and identical. |
static BOTH_UNRESOLVED
Type:
Token
This means both components are Tokens.
static DIFFERENT
Type:
Token
This means we're certain the two components are NOT Tokens, and different.
static ONE_UNRESOLVED
Type:
Token
This means exactly one of the components is a Token.
static SAME
Type:
Token
This means we're certain the two components are NOT Tokens, and identical.