Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cdk): allow Tokens to be encoded as lists #1144

Merged
merged 2 commits into from
Nov 12, 2018
Merged

Commits on Nov 12, 2018

  1. feat(cdk): allow Tokens to be encoded as lists

    Add the ability for Tokens to be encoded into lists using the
    `token.toList()` method.
    
    This is useful for Tokens that intrinsically represent lists of strings,
    so we can pass them around in the type system as `string[]` (and
    interchange them with literal `string[]` values).
    
    The encoding is reversible just like string encodings are reversible.
    Contrary to strings encodings, concatenation operations are not
    allowed (they cannot be applied after decoding since CloudFormation
    does not have any list concatenation operators).
    
    This change does not change any CloudFormation resources yet to
    take advantage of the new encoding.
    
    Implements the most important remaining part of #744.
    rix0rrr committed Nov 12, 2018
    Configuration menu
    Copy the full SHA
    4ad13e0 View commit details
    Browse the repository at this point in the history
  2. Update some docs

    rix0rrr committed Nov 12, 2018
    Configuration menu
    Copy the full SHA
    0e97f45 View commit details
    Browse the repository at this point in the history