File tree 1 file changed +2
-1
lines changed
src/main/java/com/amazonaws/encryptionsdk/kms
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 42
42
import com .amazonaws .handlers .RequestHandler2 ;
43
43
import com .amazonaws .regions .Region ;
44
44
import com .amazonaws .regions .Regions ;
45
+ import com .amazonaws .regions .RegionUtils ;
45
46
import com .amazonaws .services .kms .AWSKMS ;
46
47
import com .amazonaws .services .kms .AWSKMSClient ;
47
48
import com .amazonaws .services .kms .AWSKMSClientBuilder ;
@@ -560,7 +561,7 @@ public KmsMasterKeyProvider withGrantTokens(String... grantTokens) {
560
561
private static Region getStartingRegion (final String keyArn ) {
561
562
final String region = parseRegionfromKeyArn (keyArn );
562
563
if (region != null ) {
563
- return Region .getRegion (Regions . fromName ( region ) );
564
+ return RegionUtils .getRegion (region );
564
565
}
565
566
final Region currentRegion = Regions .getCurrentRegion ();
566
567
if (currentRegion != null ) {
You can’t perform that action at this time.
0 commit comments