TokenizedStringFragments

class aws_cdk.core.TokenizedStringFragments

Bases: object

Fragments of a concatenated string containing stringified Tokens.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Return type

None

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
Return type

Optional[IResolvable]

first_value
Return type

Any

length
Return type

Union[int, float]

tokens

Return all Tokens from this string.

Return type

List[IResolvable]