-
Notifications
You must be signed in to change notification settings - Fork 2k
/
DynamoDBClusteringOptions.cs
55 lines (46 loc) · 1.56 KB
/
DynamoDBClusteringOptions.cs
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
48
49
50
51
52
53
54
55
using Orleans.Clustering.DynamoDB;
namespace Orleans.Configuration
{
public class DynamoDBClusteringOptions
{
/// <summary>
/// AccessKey string for DynamoDB Storage
/// </summary>
[Redact]
public string AccessKey { get; set; }
/// <summary>
/// Secret key for DynamoDB storage
/// </summary>
[Redact]
public string SecretKey { get; set; }
/// <summary>
/// DynamoDB Service name
/// </summary>
public string Service { get; set; }
/// <summary>
/// Read capacity unit for DynamoDB storage
/// </summary>
public int ReadCapacityUnits { get; set; } = DynamoDBStorage.DefaultReadCapacityUnits;
/// <summary>
/// Write capacity unit for DynamoDB storage
/// </summary>
public int WriteCapacityUnits { get; set; } = DynamoDBStorage.DefaultWriteCapacityUnits;
/// <summary>
/// Use Provisioned Throughput for tables
/// </summary>
public bool UseProvisionedThroughput { get; set; } = true;
/// <summary>
/// Create the table if it doesn't exist
/// </summary>
public bool CreateIfNotExists { get; set; } = true;
/// <summary>
/// Update the table if it exists
/// </summary>
public bool UpdateIfExists { get; set; } = true;
/// <summary>
/// DynamoDB table name.
/// Defaults to 'OrleansSilos'.
/// </summary>
public string TableName { get; set; } = "OrleansSilos";
}
}