Package software.amazon.awscdk
Class Tokenization
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Tokenization
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:31.106Z")
@Stability(Stable)
public class Tokenization
extends software.amazon.jsii.JsiiObject
Less oft-needed functions to manipulate Tokens.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTokenization(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedTokenization(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanisResolvable(Object obj) Return whether the given object is an IResolvable object.static Objectresolve(Object obj, ResolveOptions options) Resolves an object by evaluating all tokens and removing any undefined or empty objects or arrays.static IResolvableReverse any value into a Resolvable, if possible.static IResolvablereverse(Object x, ReverseOptions options) Reverse any value into a Resolvable, if possible.static IResolvableUn-encode a string which is either a complete encoded token, or doesn't contain tokens at all.static IResolvablereverseList(List<String> l) Un-encode a Tokenized value from a list.static IResolvableUn-encode a Tokenized value from a number.static TokenizedStringFragmentsUn-encode a string potentially containing encoded tokens.static StringStringify a number directly or lazily if it's a Token.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Tokenization
protected Tokenization(software.amazon.jsii.JsiiObjectRef objRef) -
Tokenization
protected Tokenization(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
isResolvable
Return whether the given object is an IResolvable object.This is different from Token.isUnresolved() which will also check for encoded Tokens, whereas this method will only do a type check on the given object.
- Parameters:
obj- This parameter is required.
-
resolve
@Stability(Stable) @NotNull public static Object resolve(@NotNull Object obj, @NotNull ResolveOptions options) Resolves an object by evaluating all tokens and removing any undefined or empty objects or arrays.Values can only be primitives, arrays or tokens. Other objects (i.e. with methods) will be rejected.
- Parameters:
obj- The object to resolve. This parameter is required.options- Prefix key path components for diagnostics. This parameter is required.
-
reverse
@Stability(Stable) @Nullable public static IResolvable reverse(@NotNull Object x, @Nullable ReverseOptions options) Reverse any value into a Resolvable, if possible.In case of a string, the string must not be a concatenation.
- Parameters:
x- This parameter is required.options-
-
reverse
Reverse any value into a Resolvable, if possible.In case of a string, the string must not be a concatenation.
- Parameters:
x- This parameter is required.
-
reverseCompleteString
Un-encode a string which is either a complete encoded token, or doesn't contain tokens at all.It's illegal for the string to be a concatenation of an encoded token and something else.
- Parameters:
s- This parameter is required.
-
reverseList
Un-encode a Tokenized value from a list.- Parameters:
l- This parameter is required.
-
reverseNumber
Un-encode a Tokenized value from a number.- Parameters:
n- This parameter is required.
-
reverseString
Un-encode a string potentially containing encoded tokens.- Parameters:
s- This parameter is required.
-
stringifyNumber
Stringify a number directly or lazily if it's a Token.If it is an object (i.e., { Ref: 'SomeLogicalId' }), return it as-is.
- Parameters:
x- This parameter is required.
-