# AWSSamples::EksClusterPublicApi::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" : {
}
}
}
}
---
## Targets
* `AWS::EKS::Cluster`
---
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.