/// <summary> /// Constructs an instance with a preconfigured S3 client. This can be used for testing the outside of the Lambda environment. /// </summary> /// <param name="s3Client"></param> public Function(IAmazonS3 s3Client) { this.s3Client = s3Client; this.filter = new AlwaysProcessS3PathFilter(); }
/// <summary> /// Default constructor. This constructor is used by Lambda to construct the instance. When invoked in a Lambda environment /// the AWS credentials will come from the IAM role associated with the function and the AWS region will be set to the /// region the Lambda function is executed in. /// </summary> public Function() { this.s3Client = new AmazonS3Client(); this.filter = new AlwaysProcessS3PathFilter(); }