File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/com/amazonaws/encryptionsdk/kms Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 4242import com .amazonaws .handlers .RequestHandler2 ;
4343import com .amazonaws .regions .Region ;
4444import com .amazonaws .regions .Regions ;
45+ import com .amazonaws .regions .RegionUtils ;
4546import com .amazonaws .services .kms .AWSKMS ;
4647import com .amazonaws .services .kms .AWSKMSClient ;
4748import com .amazonaws .services .kms .AWSKMSClientBuilder ;
@@ -560,7 +561,7 @@ public KmsMasterKeyProvider withGrantTokens(String... grantTokens) {
560561 private static Region getStartingRegion (final String keyArn ) {
561562 final String region = parseRegionfromKeyArn (keyArn );
562563 if (region != null ) {
563- return Region .getRegion (Regions . fromName ( region ) );
564+ return RegionUtils .getRegion (region );
564565 }
565566 final Region currentRegion = Regions .getCurrentRegion ();
566567 if (currentRegion != null ) {
You can’t perform that action at this time.
0 commit comments