chore(elasticache): put restoreCacheCluster's Javadoc back on its method (#5297)

The regionOf helper was inserted between restoreCacheCluster's Javadoc
and the method, so the block describing how a cache cluster is restored
documented regionOf instead, and restoreCacheCluster had none. The
helper now sits above that Javadoc. No behaviour changes.
This commit is contained in:
Hector Ventura authored and GitHub committed 2026-10-08 07:21:48 -04:00
1 parent ea77da8a2a
commit c09c7ae62b
1 file changed
+5 -5
@@ -749,6 +749,11 @@ public class ElastiCacheService implements ResourceProvider {
}
}
/** The region in a restored resource's ARN; one recorded without an ARN counts as the default region's. */
private String regionOf(String arn) {
return AwsArnUtils.regionOrDefault(arn, regionResolver.getDefaultRegion());
}
/**
* Restarts the container and auth proxy behind a standalone Redis or Valkey cache cluster,
* the same pair {@link #provisionCacheCluster} creates. The cache comes back empty, as it
@@ -763,11 +768,6 @@ public class ElastiCacheService implements ResourceProvider {
* monitor and re-reads the record, because a delete taken while the container started has
* already removed it.
*/
/** The region in a restored resource's ARN; one recorded without an ARN counts as the default region's. */
private String regionOf(String arn) {
return AwsArnUtils.regionOrDefault(arn, regionResolver.getDefaultRegion());
}
private void restoreCacheCluster(CacheCluster cluster) {
String clusterId = cluster.getCacheClusterId();
String image = config.services().elasticache().defaultImage();