Dependency injection of dynamodb object