This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::S3::Bucket ObjectLockConfiguration
Places an Object Lock configuration on the specified bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket. For more information, see Locking Objects.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "ObjectLockEnabled" :String, "Rule" :ObjectLockRule}
YAML
ObjectLockEnabled:StringRule:ObjectLockRule
Properties
- ObjectLockEnabled
- 
                    Indicates whether this bucket has an Object Lock configuration enabled. Enable ObjectLockEnabledwhen you applyObjectLockConfigurationto a bucket.Required: No Type: String Allowed values: EnabledUpdate requires: No interruption 
- Rule
- 
                    Specifies the Object Lock rule for the specified object. Enable this rule when you apply ObjectLockConfigurationto a bucket. If Object Lock is turned on, bucket settings require bothModeand a period of eitherDaysorYears. You cannot specifyDaysandYearsat the same time. For more information, see ObjectLockRule and DefaultRetention.Required: Conditional Type: ObjectLockRule Update requires: No interruption 
See also
- 
                    AWS::S3::Bucket Examples