

# s3-bucket-default-lock-enabled
<a name="s3-bucket-default-lock-enabled"></a>

Checks if the S3 bucket has lock enabled, by default. The rule is NON\$1COMPLIANT if the lock is not enabled. 



**Identifier:** S3\$1BUCKET\$1DEFAULT\$1LOCK\$1ENABLED

**Resource Types:** AWS::S3::Bucket

**Trigger type:** Configuration changes

**AWS Region:** All supported AWS regions

**Parameters:**

mode (Optional)Type: String  
mode: (optional): A mode parameter with valid values of GOVERNANCE or COMPLIANCE.

## AWS CloudFormation template
<a name="w2aac20c16c17b7e1381c19"></a>

To create AWS Config managed rules with AWS CloudFormation templates, see [Creating AWS Config Managed Rules With AWS CloudFormation Templates](aws-config-managed-rules-cloudformation-templates.md).