TokenizedStringFragments

class aws_cdk.core.TokenizedStringFragments

Bases: object

Fragments of a concatenated string containing stringified Tokens.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.core as cdk

tokenized_string_fragments = cdk.TokenizedStringFragments()

Methods

add_intrinsic(value)
Parameters:

value (Any) –

Return type:

None

add_literal(lit)
Parameters:

lit (Any) –

Return type:

None

add_token(token)
Parameters:

token (IResolvable) –

Return type:

None

join(concat)

Combine the string fragments using the given joiner.

If there are any

Parameters:

concat (IFragmentConcatenator) –

Return type:

Any

map_tokens(mapper)

Apply a transformation function to all tokens in the string.

Parameters:

mapper (ITokenMapper) –

Return type:

TokenizedStringFragments

Attributes

first_token
first_value
length
tokens

Return all Tokens from this string.