Class Tokenization

java.lang.Object
software.amazon.jsii.JsiiObject
com.hashicorp.cdktf.Tokenization
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.91.0 (build 1b1f239)", date="2023-12-07T11:27:10.096Z") @Stability(Experimental) public class Tokenization extends software.amazon.jsii.JsiiObject
(experimental) 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

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    Tokenization(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Tokenization(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Boolean
    (experimental) Return whether the given object is an IResolvable object.
    static Object
    resolve(Object obj, ResolveOptions options)
    (experimental) Resolves an object by evaluating all tokens and removing any undefined or empty objects or arrays.
    (experimental) Reverse any value into Resolvables, if possible.
    (experimental) Un-encode a Tokenized value from a list.
    reverseMap(Map<String,? extends Object> m)
    (experimental) Un-encode a Tokenized value from a map.
    (experimental) Un-encode a Tokenized value from a number.
    (experimental) Un-encode a Tokenized value from a list.
    (experimental) Un-encode a string potentially containing encoded tokens.
    static String
    (experimental) Stringify 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, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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)
    • Tokenization

      @Stability(Experimental) public Tokenization()
  • Method Details

    • isResolvable

      @Stability(Experimental) @NotNull public static Boolean isResolvable(@NotNull Object obj)
      (experimental) 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(Experimental) @NotNull public static Object resolve(@NotNull Object obj, @NotNull ResolveOptions options)
      (experimental) 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(Experimental) @NotNull public static List<IResolvable> reverse(@NotNull Object x)
      (experimental) Reverse any value into Resolvables, if possible.

      Parameters:
      x - This parameter is required.
    • reverseList

      @Stability(Experimental) @Nullable public static IResolvable reverseList(@NotNull List<String> l)
      (experimental) Un-encode a Tokenized value from a list.

      Parameters:
      l - This parameter is required.
    • reverseMap

      @Stability(Experimental) @Nullable public static IResolvable reverseMap(@NotNull Map<String,? extends Object> m)
      (experimental) Un-encode a Tokenized value from a map.

      Parameters:
      m - This parameter is required.
    • reverseNumber

      @Stability(Experimental) @Nullable public static IResolvable reverseNumber(@NotNull Number n)
      (experimental) Un-encode a Tokenized value from a number.

      Parameters:
      n - This parameter is required.
    • reverseNumberList

      @Stability(Experimental) @Nullable public static IResolvable reverseNumberList(@NotNull List<? extends Number> l)
      (experimental) Un-encode a Tokenized value from a list.

      Parameters:
      l - This parameter is required.
    • reverseString

      @Stability(Experimental) @NotNull public static TokenizedStringFragments reverseString(@NotNull String s)
      (experimental) Un-encode a string potentially containing encoded tokens.

      Parameters:
      s - This parameter is required.
    • stringifyNumber

      @Stability(Experimental) @NotNull public static String stringifyNumber(@NotNull Number x)
      (experimental) 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.