-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added more test, the ability to use parameters and ref (references), …
…added custom valley properties
- Loading branch information
1 parent
1326851
commit 975dbee
Showing
14 changed files
with
147 additions
and
379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ __pycache__/ | |
|
||
# C extensions | ||
*.so | ||
|
||
*.ipynb | ||
*.idea/ | ||
# Distribution / packaging | ||
.Python | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import sammy as sm | ||
|
||
|
||
sam = sm.SAM(Description='A hello world application.') | ||
sam = sm.SAM(Description='A hello world application.',render_type='yaml') | ||
|
||
sam.add_parameter(sm.Parameter(name='Bucket',Type='String')) | ||
|
||
sam.add_parameter(sm.Parameter(name='CodeZipKey',Type='String')) | ||
|
||
sam.add_resource( | ||
sm.Function(name='HelloWorldFunction', | ||
Handler='index.handler', Runtime='nodejs4.3', CodeURI=sm.CodeURI( | ||
Bucket='!Bucket',Key='!CodeZipKey'))) | ||
Handler='sample.handler', Runtime='python3.6', CodeUri=sm.S3URI( | ||
Bucket=sm.Ref(Ref='Bucket'),Key=sm.Ref(Ref='CodeZipKey')))) |
Oops, something went wrong.