jackye1995 commented on code in PR #4695:
URL: https://github.com/apache/iceberg/pull/4695#discussion_r969031806


##########
aws/src/main/java/org/apache/iceberg/aws/AwsProperties.java:
##########
@@ -410,6 +410,32 @@ public class AwsProperties implements Serializable {
    */
   public static final String LAKE_FORMATION_DB_NAME = "lakeformation.db-name";
 
+  /**
+   * Used by {@link LakeFormationAwsClientFactory}. The maximum size of the 
lakeformation
+   * credentials cache, default to 100.
+   */
+  public static final String LAKE_FORMATION_CACHE_MAX_SIZE = 
"lakeformation.cache.max-size";
+
+  public static final int LAKE_FORMATION_CACHE_MAX_SIZE_DEFAULT = 100;
+
+  /**
+   * Used by {@link LakeFormationAwsClientFactory}. The expiry time of the 
cached lakeformation
+   * credentials in milliseconds, default to 30 minutes.
+   */
+  public static final String LAKE_FORMATION_CACHE_EXPIRATION_INTERVAL_MS =
+      "lakeformation.cache.expiration-interval-ms";
+
+  public static final long LAKE_FORMATION_CACHE_EXPIRATION_INTERVAL_MS_DEFAULT 
= 30 * 60 * 1000;
+
+  /**
+   * Used by {@link LakeFormationAwsClientFactory}. The expiry lead time of 
the lakeformation
+   * credentials cache, default to 1 minute.
+   */
+  public static final String LAKE_FORMATION_CACHE_EXPIRY_LEAD_TIME_MS =

Review Comment:
   the name and config name is not matching, `REFRESH_LEAD_TIME_MS`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to