Skip to content

S3Client.getBucketNotificationConfiguration(GetBucketNotificationConfigurationRequest getBucketNotificationRequest) is throwing UnsupportedOperationException #4035

@virenshekhawat

Description

@virenshekhawat

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)

Metadata

Metadata

Assignees

Labels

closed-for-stalenessdocumentationThis is a problem with documentation.p3This is a minor priority issueresponse-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 10 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions