Skip to content

Commit

Permalink
Allow configuration to be serialized
Browse files Browse the repository at this point in the history
  • Loading branch information
damccorm committed Dec 20, 2024
1 parent d278434 commit 1b79da4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public PTransform<PCollection<byte[]>, KinesisIO.Write.Result> buildExternal(
.withClientConfiguration(
ClientConfiguration.builder()
.credentialsProvider(provider)
.region(Regions.fromName(configuration.region))
.region(Region.of(configuration.region))
.endpoint(endpoint)
.build())
.withPartitioner(p -> configuration.partitionKey)
Expand Down Expand Up @@ -230,7 +230,7 @@ public PTransform<PBegin, PCollection<byte[]>> buildExternal(
.withClientConfiguration(
ClientConfiguration.builder()
.credentialsProvider(provider)
.region(Regions.fromName(configuration.region))
.region(Region.of(configuration.region))
.endpoint(endpoint)
.build());

Expand Down

0 comments on commit 1b79da4

Please sign in to comment.