public S3HealthCheck(S3BucketOptions bucketOptions)
 {
     if (bucketOptions == null)
     {
         throw new ArgumentNullException(nameof(bucketOptions));
     }
     if (bucketOptions.S3Config == null)
     {
         throw new ArgumentNullException(nameof(S3BucketOptions.S3Config));
     }
     _bucketOptions = bucketOptions;
 }
        public S3HealthCheck(S3BucketOptions bucketOptions)
        {
            if (string.IsNullOrEmpty(bucketOptions.AccessKey))
            {
                throw new ArgumentNullException(nameof(S3BucketOptions.AccessKey));
            }

            if (string.IsNullOrEmpty(bucketOptions.SecretKey))
            {
                throw new ArgumentNullException(nameof(S3BucketOptions.SecretKey));
            }

            if (bucketOptions.S3Config == null)
            {
                throw new ArgumentNullException(nameof(S3BucketOptions.S3Config));
            }

            _bucketOptions = bucketOptions;
        }