func (handler *LambdaHandler) Invoke(ctx context.Context, payload []byte) ([]byte, error) {
	snsEvent := &events.SNSEvent{}
	err := json.Unmarshal(payload, snsEvent)
	if err != nil {
		return nil, err
	}

	err = handler.lambdaConsumer.HandleLambdaEvent(ctx, snsEvent)
	if err != nil {
		return nil, err
	}
	return []byte(""), nil
}
// Invoke is the function that is invoked when a Lambda executes
Invoke is the function that is invoked when a Lambda executes
// Invoke is the function that is invoked when a Lambda executes
func (handler *LambdaHandler) Invoke(ctx context.Context, payload []byte) ([]byte, error) {
	snsEvent := &events.SNSEvent{}
	err := json.Unmarshal(payload, snsEvent)
	if err != nil {
		return nil, err
	}
	err = handler.lambdaConsumer.HandleLambdaEvent(ctx, snsEvent)
	if err != nil {
		return nil, err
	}
	return []byte(""), nil
}
func ( handler * LambdaHandler ) Invoke ( ctx context . Context , payload [ ] byte ) ( [ ] byte , error ) { snsEvent := & events . SNSEvent { } err := json . Unmarshal ( payload , snsEvent ) if err != nil { return nil , err } err = handler . lambdaConsumer . HandleLambdaEvent ( ctx , snsEvent ) if err != nil { return nil , err } return [ ] byte ( " " ) , nil }
Invoke is the function that is invoked when a Lambda executes
Invoke is the function that is invoked when a Lambda executes