DefaultEventHoldProperty Struct
The default Object Lock event hold duration that you want to apply to new objects placed in the specified bucket, unless an object's upload request specifies its own Object Lock settings.
New object versions are placed under an event hold and remain protected while the hold is active. When the event hold is released, Amazon S3 retains the object version for this duration, measured from the time the hold is released. The DefaultEventHold duration can be specified in either Days or Years, but you must select one. You can't specify Days and Years at the same time.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const defaultEventHoldProperty: s3.CfnBucket.DefaultEventHoldProperty = {
days: 123,
years: 123,
};
Properties
The number of days that you want to specify for the default event hold duration.
Valid values are 1 to 36500 days. You must specify either Days or Years, but not both.
yearsoptionalnumberyearsoptionalint | floatyearsoptionalNumberYearsoptionaldoubleYearsoptional*float64#The number of years that you want to specify for the default event hold duration.
Valid values are 1 to 100 years. You must specify either Days or Years, but not both.