# AWSSamples::S3BucketLoggingCompliance::Hook ## Activation To activate a hook in your account, use the following JSON as the `Configuration` request parameter for [`SetTypeConfiguration`](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html) API request. ### Configuration
{
"CloudFormationConfiguration": {
"HookConfiguration": {
"TargetStacks": "ALL" | "NONE",
"FailureMode": "FAIL" | "WARN" ,
"Properties" : {
"LoggingBucket" : String
}
}
}
}
## Properties
#### LoggingBucket
The bucket for where access logs are sent
_Required_: No
_Type_: String
---
## Targets
* `AWS::S3::Bucket`
---
Please note that the enum values for TargetStacks and FailureMode might go out of date, please refer to their official documentation page for up-to-date values.