Skip to content

Commit

Permalink
remove conflicting validations
Browse files Browse the repository at this point in the history
  • Loading branch information
anGie44 committed Feb 1, 2022
1 parent 8dd9b64 commit c82ae87
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions internal/service/s3/bucket_lifecycle_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,14 @@ func ResourceBucketLifecycleConfiguration() *schema.Resource {
ValidateFunc: verify.ValidUTCTimestamp,
},
"days": {
Type: schema.TypeInt,
Optional: true,
Default: 0, // API returns 0
ValidateFunc: validation.IntAtLeast(1),
Type: schema.TypeInt,
Optional: true,
Default: 0, // API returns 0
},
"expired_object_delete_marker": {
Type: schema.TypeBool,
Optional: true,
Computed: true, // API returns false
Computed: true, // API returns false; conflicts with date and days
},
},
},
Expand Down Expand Up @@ -115,16 +114,14 @@ func ResourceBucketLifecycleConfiguration() *schema.Resource {
},
},
"object_size_greater_than": {
Type: schema.TypeInt,
Optional: true,
Default: 0, // API returns 0
ValidateFunc: validation.IntAtLeast(0),
Type: schema.TypeInt,
Optional: true,
Default: 0, // API returns 0
},
"object_size_less_than": {
Type: schema.TypeInt,
Optional: true,
Default: 0, // API returns 0
ValidateFunc: validation.IntAtLeast(1),
Type: schema.TypeInt,
Optional: true,
Default: 0, // API returns 0
},
"prefix": {
Type: schema.TypeString,
Expand Down

0 comments on commit c82ae87

Please sign in to comment.