Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: required argument for aws_s3_bucket_lifecycle_configuration incorrectly set as optional #40796

Merged
2 changes: 1 addition & 1 deletion internal/service/s3/bucket_lifecycle_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func resourceBucketLifecycleConfiguration() *schema.Resource {
},
"noncurrent_days": {
Type: schema.TypeInt,
Optional: true,
Required: true,
ValidateFunc: validation.IntAtLeast(1),
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ The `filter` configuration block supports the following arguments:
The `noncurrent_version_expiration` configuration block supports the following arguments:

* `newer_noncurrent_versions` - (Optional) Number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.
* `noncurrent_days` - (Optional) Number of days an object is noncurrent before Amazon S3 can perform the associated action. Must be a positive integer.
* `noncurrent_days` - (Required) Number of days an object is noncurrent before Amazon S3 can perform the associated action. Must be a positive integer.

### noncurrent_version_transition

Expand Down Expand Up @@ -568,4 +568,4 @@ If the owner (account ID) of the source bucket differs from the account used to
% terraform import aws_s3_bucket_lifecycle_configuration.example bucket-name,123456789012
```

<!-- cache-key: cdktf-0.20.8 input-c95dc436a65282b17bd38e70a9fb7719b5cd9a189d52ee0b82481d9c1dbf66e3 -->
<!-- cache-key: cdktf-0.20.8 input-c95dc436a65282b17bd38e70a9fb7719b5cd9a189d52ee0b82481d9c1dbf66e3 -->
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ The `filter` configuration block supports the following arguments:
The `noncurrent_version_expiration` configuration block supports the following arguments:

* `newer_noncurrent_versions` - (Optional) Number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.
* `noncurrent_days` - (Optional) Number of days an object is noncurrent before Amazon S3 can perform the associated action. Must be a positive integer.
* `noncurrent_days` - (Required) Number of days an object is noncurrent before Amazon S3 can perform the associated action. Must be a positive integer.

### noncurrent_version_transition

Expand Down
Loading