Class TokenComparison
An enum-like class that represents the result of comparing two Tokens.
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TokenComparison : DeputyBase
Syntax (vb)
Public Class TokenComparison Inherits DeputyBase
Remarks
The return type of Token.compareStrings.
ExampleMetadata: fixture=_generated
Examples
// 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;
Synopsis
Properties
| BOTH_UNRESOLVED | This means both components are Tokens. |
| DIFFERENT | This means we're certain the two components are NOT Tokens, and different. |
| ONE_UNRESOLVED | This means exactly one of the components is a Token. |
| SAME | This means we're certain the two components are NOT Tokens, and identical. |
Properties
BOTH_UNRESOLVED
This means both components are Tokens.
public static TokenComparison BOTH_UNRESOLVED { get; }
Property Value
Remarks
The return type of Token.compareStrings.
ExampleMetadata: fixture=_generated
DIFFERENT
This means we're certain the two components are NOT Tokens, and different.
public static TokenComparison DIFFERENT { get; }
Property Value
Remarks
The return type of Token.compareStrings.
ExampleMetadata: fixture=_generated
ONE_UNRESOLVED
This means exactly one of the components is a Token.
public static TokenComparison ONE_UNRESOLVED { get; }
Property Value
Remarks
The return type of Token.compareStrings.
ExampleMetadata: fixture=_generated
SAME
This means we're certain the two components are NOT Tokens, and identical.
public static TokenComparison SAME { get; }
Property Value
Remarks
The return type of Token.compareStrings.
ExampleMetadata: fixture=_generated