in transcodelauncher/main.go [59:72]
func WriteOutputs(awsConfig aws.Config, tableName string, content []*common.Encoding) {
client := dynamodb.NewFromConfig(awsConfig)
for _, entry := range content {
toWrite := entry.ToDynamoDB()
_, err := client.PutItem(context.Background(), &dynamodb.PutItemInput{
Item: toWrite,
TableName: &tableName,
})
if err != nil {
log.Fatal("Could not write item: ", err)
}
}
}