Skip to content

Commit

Permalink
updated README with Ref docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bjinwright committed Oct 8, 2017
1 parent 975dbee commit 290d116
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,21 @@ ddb = SimpleTable('maintable',PrimaryKey={'Name':'_id','Type':'String'})

### Ref

This class represents a reference to
This class represents a reference

```python
import sammy as sm


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='sample.handler', Runtime='python3.6', CodeUri=sm.S3URI(
Bucket=sm.Ref(Ref='Bucket'),Key=sm.Ref(Ref='CodeZipKey'))))

```

0 comments on commit 290d116

Please sign in to comment.