Documentation ¶
Index ¶
Constants ¶
View Source
const Category = "DynamoDBEventRecord"
View Source
const EnvConfigSourceDynamoDB = "CONFIG_SWARM_SOURCE_DYNAMODB"
Environment variable to config event source
View Source
const Version = "broker/eventddb/v0.20.2"
Variables ¶
This section is empty.
Functions ¶
func Source ¶ added in v0.20.0
func Source(q *kernel.Dequeuer) ( <-chan swarm.Msg[*events.DynamoDBEventRecord], chan<- swarm.Msg[*events.DynamoDBEventRecord], )
The broker produces only events.DynamoDBEventRecord, the function is helper.
Types ¶
type Broker ¶
type Broker struct { constructs.Construct Table awsdynamodb.ITable // contains filtered or unexported fields }
func NewBroker ¶
func NewBroker(scope constructs.Construct, id *string, props *BrokerProps) *Broker
func (*Broker) NewTable ¶
func (broker *Broker) NewTable(props *awsdynamodb.TablePropsV2) awsdynamodb.ITable
type BrokerProps ¶
type BrokerProps struct {
System string
}
type DynamoDBEvent ¶
type DynamoDBEvent struct {
Records []json.RawMessage `json:"Records"`
}
Note: events.DynamoDBEvent decodes all records, the swarm kernel protocol requires bytes.
type SinkProps ¶
type SinkProps struct { Table awsdynamodb.ITable Function scud.FunctionProps EventSource *awslambdaeventsources.DynamoEventSourceProps }
Click to show internal directories.
Click to hide internal directories.