func NewYandexClient(config *types.Configuration, stats *types.Statistics, promStats *types.PromStatistics, statsdClient, dogstatsdClient *statsd.Client) (*Client, error) {
	sess, err := session.NewSession(&aws.Config{
		Region:      aws.String(config.Yandex.Region),
		Endpoint:    aws.String(config.Yandex.S3.Endpoint),
		Credentials: credentials.NewStaticCredentials(config.Yandex.AccessKeyID, config.Yandex.SecretAccessKey, ""),
	})
	if err != nil {
		log.Printf("[ERROR] : Yandex - %v\n", "Error while creating Yandex Session")
		return nil, errors.New("Error while creating Yandex Session")
	}
	log.Printf("[INFO] : Yandex Session has been configured successfully")
	return &Client{
		OutputType:      "Yandex",
		Config:          config,
		AWSSession:      sess,
		Stats:           stats,
		PromStats:       promStats,
		StatsdClient:    statsdClient,
		DogstatsdClient: dogstatsdClient,
	}, nil
}
NewYandexClient returns a new output.Client for accessing the Yandex API.
package outputs
import (
	"bytes"
	"encoding/json"
	"errors"
	"fmt"
	"log"
	"time"
	"github.com/DataDog/datadog-go/statsd"
	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/s3"
	"github.com/aws/aws-sdk-go/aws/credentials"
	"github.com/falcosecurity/falcosidekick/types"
)