# AWSSamples::IamPolicyDoesNotGiveAdmin::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::IAM::Group` * `AWS::IAM::Policy` * `AWS::IAM::Role` * `AWS::IAM::User` ---
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.