add CloudFormation model for Kinesis streams
This commit is contained in:
parent
074ff68bf1
commit
115b9cee3e
3 changed files with 37 additions and 1 deletions
|
|
@ -172,6 +172,13 @@ class Stream(BaseModel):
|
|||
}
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def create_from_cloudformation_json(cls, resource_name, cloudformation_json, region_name):
|
||||
properties = cloudformation_json['Properties']
|
||||
region = properties.get('Region', 'us-east-1')
|
||||
shard_count = properties.get('ShardCount', 1)
|
||||
return Stream(properties['Name'], shard_count, region)
|
||||
|
||||
|
||||
class FirehoseRecord(BaseModel):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue