You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//# On initialization of a Single Key Store, the caller MUST provide:
709
709
//# - [Beacon Key Id](#beacon-key-id)
710
710
//# - [cacheTTL](#cachettl)
711
+
//# - [cache](#key-store-cache)
712
+
//# - [partition-id](#partition-id)
711
713
712
714
@javadoc("The configuration for using a single Beacon Key.")
713
715
structureSingleKeyStore {
@@ -717,14 +719,19 @@ structure SingleKeyStore {
717
719
@required
718
720
@javadoc("How long (in seconds) the beacon key material is cached locally before it is re-retrieved from DynamoDB and re-authed with AWS KMS.")
719
721
cacheTTL: Integer,
722
+
@documentation("Which type of local cache to use. Please see the [spec](https://github.com/aws/aws-database-encryption-sdk-dynamodb/blob/main/specification/searchable-encryption/search-config.md#key-store-cache) on how to provide a cache for a SingleKeyStore.")
723
+
cache : CacheType,
724
+
@documentation("Partition ID to distinguish Beacon Key Sources writing to a Shared cache. If the Partition ID is the same for two Beacon Key Sources, they can share the same cache entries in the Shared cache.")
//# On initialization of a Multi Key Store, the caller MUST provide:
725
731
//# - [Beacon Key Field Name](#beacon-key-field-name)
726
732
//# - [cacheTTL](#cachettl)
727
-
//# - [max cache size](#max-cache-size)
733
+
//# - [cache](#key-store-cache)
734
+
//# - [partition-id](#partition-id)
728
735
729
736
@javadoc("The configuration for using multiple Beacon Keys.")
730
737
structureMultiKeyStore {
@@ -735,7 +742,9 @@ structure MultiKeyStore {
735
742
@javadoc("How long (in seconds) the beacon key material is cached locally before it is re-retrieved from DynamoDB and re-authed with AWS KMS.")
736
743
cacheTTL: Integer,
737
744
@javadoc("Which type of local cache to use.")
738
-
cache : CacheType
745
+
cache : CacheType,
746
+
@documentation("Partition ID to distinguish Beacon Key Sources writing to a Shared cache. If the Partition ID is the same for two Beacon Key Sources, they can share the same cache entries in the Shared cache.")
//# For a [Single Key Store](#single-key-store-initialization) the [Entry Capacity](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#entry-capacity)
144
-
//# MUST be 1
145
-
//# For a [Multi Key Store](#multi-key-store-initialization) the [Entry Capacity](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#entry-capacity)
146
-
//# MUST be key store's max cache size.
151
+
//# For a Beacon Key Source a [CMC](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md)
152
+
//# MUST be created.
153
+
//# For a [Single Key Store](#single-key-store-initialization), either the user provides a cache, or we create a cache that has [Entry Capacity](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#entry-capacity)
154
+
//# equal to 1.
155
+
//# For a [Multi Key Store](#multi-key-store-initialization), either the user provides a cache, or we create a cache that has [Entry Capacity](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#entry-capacity)
0 commit comments