We are trying to get bucket notification configuration from S3Client but the method S3Client.getBucketNotificationConfiguration(GetBucketNotificationConfigurationRequest getBucketNotificationRequest) is throwing UnsupportedOperationException!
There is one more method getBucketNotificationConfiguration(Consumer<GetBucketNotificationConfigurationRequest.Builder) but we are not sure whether we can use this method as inside this method multiple casting is happening(this.getBucketNotificationConfiguration((GetBucketNotificationConfigurationRequest)((GetBucketNotificationConfigurationRequest.Builder)GetBucketNotificationConfigurationRequest.builder().applyMutation(getBucketNotificationConfigurationRequest)).build());)
We also observed that there is no method support to get NotificationConfiguration in GetBucketNotificationConfigurationResponse class(similar to BucketNotificationConfiguration.getConfigurationByName(String) from AWS SDK 1.X)
@spfink @debora-ito @millems
Links
https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/s3/S3Client.html#getBucketNotificationConfiguration(software.amazon.awssdk.services.s3.model.GetBucketNotificationConfigurationRequest)