Skip to content

Commit

Permalink
add comment to diffsupression addition
Browse files Browse the repository at this point in the history
  • Loading branch information
anGie44 committed Mar 18, 2022
1 parent 4ebd34b commit 8e68327
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/service/s3/bucket_lifecycle_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,12 @@ func ResourceBucketLifecycleConfiguration() *schema.Resource {
},
},
"filter": {
Type: schema.TypeList,
Optional: true,
Type: schema.TypeList,
Optional: true,
// If neither the filter block nor the prefix parameter in the rule are specified,
// we apply the Default behavior from v3.x of the provider (Filter with empty string Prefix),
// which will thus return a Filter in the GetBucketLifecycleConfiguration request and
// require diff suppression.
DiffSuppressFunc: verify.SuppressMissingOptionalConfigurationBlock,
MaxItems: 1,
Elem: &schema.Resource{
Expand Down

0 comments on commit 8e68327

Please sign in to comment.