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(lambda): add a fromFunctionName() method #19076

Merged
merged 1 commit into from Feb 21, 2022

Commits on Feb 21, 2022

  1. feat(lambda): add a fromFunctionName() method

    After aws#18255 has been merged, the account and region of the Function's imported ARN is correctly recognized.
    Unfortunately, this has surfaced a few cases where that causes problems,
    like when using an imported Function as the target of a CodePipeline invoke Action
    (the pipeline construct needs to verify that the target Function is in the same account and region as the pipeline).
    
    Add a `Function.fromFunctionName()` method that allows you to import a Function in the same account and region.
    
    Fixes aws#19031
    skinny85 committed Feb 21, 2022
    Copy the full SHA
    ab8265d View commit details
    Browse the repository at this point in the history