forked from SixLabors/ImageSharp.Web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAWSS3StorageImageProviderOptions.cs
More file actions
47 lines (36 loc) · 1.31 KB
/
AWSS3StorageImageProviderOptions.cs
File metadata and controls
47 lines (36 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
using Amazon.S3;
namespace SixLabors.ImageSharp.Web.Providers.AWS;
/// <summary>
/// Configuration options for the <see cref="AWSS3StorageImageProviderOptions"/> provider.
/// </summary>
public class AWSS3StorageImageProviderOptions
{
/// <summary>
/// Gets or sets the collection of blob container client options.
/// </summary>
public ICollection<AWSS3BucketClientOptions> S3Buckets { get; set; } = new HashSet<AWSS3BucketClientOptions>();
}
/// <summary>
/// Configuration options for the <see cref="AWSS3StorageImageProvider"/> provider.
/// </summary>
public class AWSS3BucketClientOptions : IAWSS3BucketClientOptions
{
/// <inheritdoc/>
public Func<IAWSS3BucketClientOptions, IServiceProvider, AmazonS3Client>? S3ClientProvider { get; set; } = null!;
/// <inheritdoc/>
public string? Region { get; set; }
/// <inheritdoc/>
public string BucketName { get; set; } = null!;
/// <inheritdoc/>
public string? AccessKey { get; set; }
/// <inheritdoc/>
public string? AccessSecret { get; set; }
/// <inheritdoc/>
public string? Endpoint { get; set; }
/// <inheritdoc/>
public bool UseAccelerateEndpoint { get; set; }
/// <inheritdoc/>
public TimeSpan? Timeout { get; set; }
}