From ade9fa7d107c1a0165ad58b529f73ec85acaa957 Mon Sep 17 00:00:00 2001 From: Nihal Potdar Date: Fri, 11 Aug 2023 10:49:39 -0700 Subject: [PATCH] change region metadata provider to partitions loader --- .../msk/auth/iam/internals/AuthenticationRequestParams.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/software/amazon/msk/auth/iam/internals/AuthenticationRequestParams.java b/src/main/java/software/amazon/msk/auth/iam/internals/AuthenticationRequestParams.java index c8b14f2..b7ebe6e 100644 --- a/src/main/java/software/amazon/msk/auth/iam/internals/AuthenticationRequestParams.java +++ b/src/main/java/software/amazon/msk/auth/iam/internals/AuthenticationRequestParams.java @@ -18,7 +18,7 @@ import com.amazonaws.auth.AWSCredentials; import com.amazonaws.regions.Region; import com.amazonaws.regions.RegionMetadata; -import com.amazonaws.regions.RegionMetadataFactory; +import com.amazonaws.partitions.PartitionsLoader; import com.amazonaws.regions.Regions; import lombok.AccessLevel; import lombok.AllArgsConstructor; @@ -38,7 +38,7 @@ class AuthenticationRequestParams { private static final String VERSION_1 = "2020_10_22"; private static final String SERVICE_SCOPE = "kafka-cluster"; - private static RegionMetadata regionMetadata = RegionMetadataFactory.create(); + private static RegionMetadata regionMetadata = new RegionMetadata(new PartitionsLoader().build()); @NonNull private final String version;