func NewCloudWatchBackend(name string, config CloudWatchConfig) (*CloudWatchBackend, error) {
	// create the cloudwatch client
	sess := session.Must(session.NewSession(&aws.Config{
		Region: aws.String(config.Region),
	}))
	svc := cloudwatch.New(sess)

	backend := &CloudWatchBackend{}
	backend.Name = name
	backend.Config = config
	backend.Connection = svc

	return backend, nil
}
// NewCloudWatchBackend will create a new CloudWatch Client
NewCloudWatchBackend will create a new CloudWatch Client
// NewCloudWatchBackend will create a new CloudWatch Client
func NewCloudWatchBackend(name string, config CloudWatchConfig) (*CloudWatchBackend, error) {
	sess := session.Must(session.NewSession(&aws.Config{
		Region: aws.String(config.Region),
	}))
	svc := cloudwatch.New(sess)
	backend := &CloudWatchBackend{}
	backend.Name = name
	backend.Config = config
	backend.Connection = svc
	return backend, nil
}
func NewCloudWatchBackend ( name string , config CloudWatchConfig ) ( * CloudWatchBackend , error ) { sess := session . Must ( session . NewSession ( & aws . Config { Region : aws . String ( config . Region ) , } ) ) svc := cloudwatch . New ( sess ) backend := & CloudWatchBackend { } backend . Name = name backend . Config = config backend . Connection = svc return backend , nil }
NewCloudWatchBackend will create a new CloudWatch Client
NewCloudWatchBackend will create a new CloudWatch Client
// create the cloudwatch client