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

Add intrinsic support for Serverless::Function.DeploymentPreference.Enabled #1196

Merged
merged 1 commit into from
Oct 22, 2019
Merged

Conversation

eddiecho
Copy link
Contributor

@eddiecho eddiecho commented Oct 13, 2019

Add intrinsic support for Serverless::Function.DeploymentPreference.Enabled

Issue #, if available:

Description of changes:
Added intrinsics for Serverless::Function.DeploymentPreferences.Enabled. It now supports Fn::If, Fn::FindInMap, !Ref, etc.

Description of how you validated changes:
Wrote/updated unit tests validating the changes. Tested changes with a production template to verify changes manually.

Checklist:

  • Write/update tests
  • make pr passes
  • Update documentation
  • Verify transformed template deploys and application functions as expected
  • Add/update example to examples/2016-10-31

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-io
Copy link

codecov-io commented Oct 13, 2019

Codecov Report

Merging #1196 into master will decrease coverage by 0.14%.
The diff coverage is 64.7%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1196      +/-   ##
==========================================
- Coverage   94.36%   94.22%   -0.15%     
==========================================
  Files          71       71              
  Lines        3621     3635      +14     
  Branches      713      717       +4     
==========================================
+ Hits         3417     3425       +8     
- Misses        104      108       +4     
- Partials      100      102       +2
Impacted Files Coverage Δ
samtranslator/translator/arn_generator.py 76.92% <0%> (-10.04%) ⬇️
samtranslator/model/sam_resources.py 95.51% <100%> (+0.01%) ⬆️
samtranslator/sdk/parameter.py 88% <70%> (-12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5bd587c...30eb3a0. Read the comment docs.

@keetonian keetonian self-assigned this Oct 15, 2019
@keetonian keetonian changed the base branch from master to develop October 17, 2019 21:16
Serverless::Function.DeploymentPreference.Enabled
Copy link

@ShreyaGangishetty ShreyaGangishetty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eddiecho Thank you for contributing this! This looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants