# MyCompany::EC2::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" : {
                "instancetype" : String
            }
        }
    }
}
## Properties #### instancetype Type of EC2 instance allowed _Required_: No _Type_: String --- ## Targets * `AWS::EC2::Instance` ---

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.