{% autoescape false %} # {{ type_name }} {% if schema.description %} {{ schema.description }} {% endif %} ## 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" : {
{% if schema.properties %}
{% for propname, prop in schema.properties.items() %}
{% if not prop.readonly %}
"{{ propname }}" : {{ prop.jsontype }}{% if not loop.last %},{% endif %}
{% endif %}
{% endfor %}
{% endif %}
}
}
}
}
{% if schema.properties %}
## Properties
{% for propname, prop in schema.properties.items() %}
{% if not prop.readonly %}
#### {{ propname }}
{% if prop.description %}
{{ prop.description }}
{% endif %}
{% if schema.required is defined and propname in schema.required %}
_Required_: Yes
{% else %}
_Required_: No
{% endif %}
_Type_: {{ prop.longformtype }}
{% if prop.allowedvalues %}
_Allowed Values_: {% for allowedvalue in prop.allowedvalues %}{{ allowedvalue }}{% if not loop.last %} | {% endif %}{% endfor %}
{% endif %}
{% if prop.minLength %}
_Minimum Length_: {{ prop.minLength }}
{% endif %}
{% if prop.maxLength %}
_Maximum Length_: {{ prop.maxLength }}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
---
## Targets
{% for target_name in target_names %}
* `{{ target_name }}`
{% endfor %}
---
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.
{% endautoescape %}