Change config related classes from v1 to v2

Apache 2.0

Change config related classes from v1 to v2.

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

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 name com.amazonaws.ClientConfiguration withRequestTimeout(int) to withApiCallAttemptTimeout
  2. Change method name com.amazonaws.ClientConfiguration setRequestTimeout(int) to withApiCallAttemptTimeout
  3. Convert the method parameter from numeric type to duration com.amazonaws.ClientConfiguration withApiCallAttemptTimeout(int)
  4. Change method name com.amazonaws.ClientConfiguration withClientExecutionTimeout(int) to withApiCallTimeout
  5. Change method name com.amazonaws.ClientConfiguration setClientExecutionTimeout(int) to withApiCallTimeout
  6. Convert the method parameter from numeric type to duration com.amazonaws.ClientConfiguration withApiCallTimeout(int)
  7. Convert the method parameter from numeric type to duration com.amazonaws.ClientConfiguration withConnectionTimeout(int)
  8. Convert the method parameter from numeric type to duration com.amazonaws.ClientConfiguration withSocketTimeout(int)
  9. Change method name com.amazonaws.ClientConfiguration withConnectionMaxIdleMillis(long) to withConnectionMaxIdleTime
  10. Convert the method parameter from numeric type to duration com.amazonaws.ClientConfiguration withConnectionMaxIdleTime(long)
  11. Change method name com.amazonaws.ClientConfiguration withConnectionTTL(long) to withConnectionTimeToLive
  12. Convert the method parameter from numeric type to duration com.amazonaws.ClientConfiguration withConnectionTimeToLive(long)
  13. Change method name com.amazonaws.ClientConfiguration withRetryMode(..) to withRetryPolicy
  14. Change method name com.amazonaws.ClientConfiguration setRetryMode(..) to withRetryPolicy
  15. Change method name com.amazonaws.ClientConfiguration withHeader(String, String) to withPutHeader
  16. Change method name com.amazonaws.ClientConfiguration setHeader(String, String) to withPutHeader
  17. Add a comment to a method
  18. Add a comment to a method
  19. Add a comment to a method
  20. Add a comment to a method
  21. Add a comment to a method
  22. Add a comment to a method
  23. Add a comment to a method
  24. Add a comment to a method
  25. Add a comment to a method
  26. Add a comment to a method
  27. Add a comment to a method
  28. Add a comment to a method
  29. Add a comment to a method
  30. Add a comment to a method
  31. Add a comment to a method
  32. Add a comment to a method
  33. Add a comment to a method
  34. Add a comment to a method
  35. Add a comment to a method
  36. Add a comment to a method
  37. Add a comment to a method
  38. Add a comment to a method
  39. Add a comment to a method
  40. Add a comment to a method
  41. Change type ClientConfiguration to ClientOverrideConfiguration
  42. Change type com.amazonaws.retry.RetryMode to software.amazon.awssdk.core.retry.RetryMode
  43. Change type AmazonWebServiceClient to AwsClient
  44. Change type com.amazonaws.client.builder.AwsSyncClientBuilder to software.amazon.awssdk.awscore.client.builder.AwsSyncClientBuilder
  45. Change type AwsClientBuilder to AwsSyncClientBuilder
  46. Change type AwsAsyncClientBuilder to AwsSyncClientBuilder