Migrate AWS SDK v1 S3 bucket lifecycle configurations
Apache 2.0Runs before software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2. A v1 BucketLifecycleConfiguration and its Rules become a generated mutable BucketLifecycleConfiguration with v1's accessors; getBucketLifecycleConfiguration and setBucketLifecycleConfiguration go through its get and set, which convert to and from v2's LifecycleRules, and a prefix LifecycleFilter becomes a v2 LifecycleRuleFilter. Projects using rule settings it does not carry, such as transitions, are left to v2-migration.
org. openrewrite. aws. sdk. MigrateS3BucketLifecycleConfigurationOptional
Whether to generate the helper classes that the changes use. Compositions that limit where helpers are generated set it to false and generate them with org.openrewrite.aws.sdk.GenerateAwsSdkV2Helpers. Defaults to true.
mod run . --recipe= org. openrewrite. aws. sdk. MigrateS3BucketLifecycleConfigurationInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.