kinesalite
Version:
An implementation of Amazon's Kinesis built on LevelDB
37 lines (36 loc) • 836 B
JavaScript
exports.types = {
Records: {
type: 'List',
notNull: true,
lengthGreaterThanOrEqual: 1,
lengthLessThanOrEqual: 500,
memberStr: 'com.amazonaws.kinesis.v20131202.PutRecordsRequestEntry@c965e310',
children: {
type: 'Structure',
children: {
PartitionKey: {
type: 'String',
notNull: true,
lengthGreaterThanOrEqual: 1,
lengthLessThanOrEqual: 256,
},
ExplicitHashKey: {
type: 'String',
regex: '0|([1-9]\\d{0,38})',
},
Data: {
type: 'Blob',
notNull: true,
lengthLessThanOrEqual: 1048576,
},
},
},
},
StreamName: {
type: 'String',
notNull: true,
regex: '[a-zA-Z0-9_.-]+',
lengthGreaterThanOrEqual: 1,
lengthLessThanOrEqual: 128,
},
}