Class SecretCacheVersion

java.lang.Object
com.amazonaws.secretsmanager.caching.cache.SecretCacheObject<software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse>
com.amazonaws.secretsmanager.caching.cache.SecretCacheVersion

public class SecretCacheVersion extends SecretCacheObject<software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse>
The cached secret version item which contains information from the GetSecretValue AWS Secrets Manager request.
  • Constructor Details

    • SecretCacheVersion

      public SecretCacheVersion(String secretId, String versionId, software.amazon.awssdk.services.secretsmanager.SecretsManagerClient client, SecretCacheConfiguration config)
      Construct a new cached version for the secret.
      Parameters:
      secretId - The secret identifier. This identifier could be the full ARN or the friendly name for the secret.
      versionId - The version identifier that should be used when requesting the secret value from AWS Secrets Manager.
      client - The AWS Secrets Manager client to use for requesting the secret.
      config - The secret cache configuration.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in class SecretCacheObject<software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class SecretCacheObject<software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse>
    • toString

      public String toString()
      Specified by:
      toString in class SecretCacheObject<software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse>
    • executeRefresh

      protected software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse executeRefresh()
      Execute the logic to perform the actual refresh of the item.
      Specified by:
      executeRefresh in class SecretCacheObject<software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse>
      Returns:
      The result from AWS Secrets Manager for the refresh.
    • getSecretValue

      protected software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse getSecretValue(software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse gsvResult)
      Return the cached result from AWS Secrets Manager for GetSecretValue.
      Specified by:
      getSecretValue in class SecretCacheObject<software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse>
      Parameters:
      gsvResult - The result of the Get Secret Value request to AWS Secrets Manager.
      Returns:
      The cached GetSecretValue result.