forked from rook/rook
migrate bucket provisioner from aws sdk v1 to v2. replace awserr.Error type assertions with smithy.APIError using errors.As for v2-style error handling. switch setBucketPolicy and setBucketLifecycle to use the v2 s3 client (ClientV2) directly with context. replace v1 s3 types (BucketLifecycleConfiguration, GetBucketLifecycleConfigurationOutput) with v2 equivalents from s3types and s3v2 packages. add cmpopts.IgnoreUnexported to cmp.Diff calls to handle unexported noSmithyDocumentSerde fields in v2 sdk types. add nil guard on lifecycle output before accessing rules to prevent nil dereference when get returns an error. depends on #17414 Signed-off-by: Oded Viner <oviner@redhat.com>