Change S3EventNotification methods to v2.

Apache 2.0

Change S3EventNotification methods to v2.

software.amazon.awssdk.v2migration.S3EventNotificationMethodsToV2
mod run . --recipe=software.amazon.awssdk.v2migration.S3EventNotificationMethodsToV2

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change method invocation return type
  2. Change method name com.amazonaws.services.s3.event.S3EventNotification.GlacierEventDataEntity getRestoreEventDataEntity() to getRestoreEventData
  3. Change method name com.amazonaws.services.s3.event.S3EventNotification.S3EventNotificationRecord getEventNameAsEnum() to getEventName
  4. Change method name com.amazonaws.services.s3.event.S3EventNotification.S3EventNotificationRecord getReplicationEventDataEntity() to getReplicationEventData
  5. Change method name com.amazonaws.services.s3.event.S3EventNotification parseJson(String) to fromJson