func GetAlbLogStream(client s3iface.S3API, bucket, key string) (io.ReadCloser, error) {
	if !fileRegex.MatchString(key) {
		return nil, errors.New("Key does not look like an alb log")
	}

	output, err := client.GetObject(&s3.GetObjectInput{Bucket: aws.String(bucket), Key: aws.String(key)})

	if err != nil {
		return nil, err
	}

	return output.Body, nil
}
// GetAlbLogStream returns a stream to the log file in S3. It will return an error
// if the path does not look like a log file, for whatever reason
GetAlbLogStream returns a stream to the log file in S3. It will return an error
if the path does not look like a log file, for whatever reason
// GetAlbLogStream returns a stream to the log file in S3 . It will return an error // if the path does not look like a log file for whatever reason
func GetAlbLogStream(client s3iface.S3API, bucket, key string) (io.ReadCloser, error) {
	if !fileRegex.MatchString(key) {
		return nil, errors.New("Key does not look like an alb log")
	}
	output, err := client.GetObject(&s3.GetObjectInput{Bucket: aws.String(bucket), Key: aws.String(key)})
	if err != nil {
		return nil, err
	}
	return output.Body, nil
}
func GetAlbLogStream ( client s3iface . S3API , bucket , key string ) ( io . ReadCloser , error ) { if ! fileRegex . MatchString ( key ) { return nil , errors . New ( " " ) } output , err := client . GetObject ( & s3 . GetObjectInput { Bucket : aws . String ( bucket ) , Key : aws . String ( key ) } ) if err != nil { return nil , err } return output . Body , nil }
GetAlbLogStream returns a stream to the log file in S3.
GetAlbLogStream returns a stream to the log file in S3 .