---
type: resource-type
title: LambdaHook
description: aws resource type AWS::CloudFormation::LambdaHook
name: LambdaHook
lexicon: aws
resource_type: AWS::CloudFormation::LambdaHook
---
`AWS::CloudFormation::LambdaHook`, a resource type of the aws lexicon.

## Properties

- `Alias` (`string`, required): The typename alias for the hook.
- `ExecutionRole` (`string`, required): The execution role ARN assumed by Hooks to invoke Lambda.
- `FailureMode` (`"FAIL" | "WARN"`, required): Attribute to specify CloudFormation behavior on hook failure.
- `HookStatus` (`"DISABLED" | "ENABLED"`, required): Attribute to specify which stacks this hook applies to or should get invoked for
- `LambdaFunction` (`string`, required): Amazon Resource Name (ARN), Partial ARN, name, version, or alias of the Lambda function to invoke with this hook.
- `TargetOperations` (`LambdaHook_TargetOperation[]`, required): Which operations should this Hook run against? Resource changes, stacks or change sets.
- `AutoUpdate` (`boolean`, optional): Whether to automatically update the extension in this account and Region when a new minor version is published by the extension publisher.
- `HookArn` (`string`, optional): The Amazon Resource Name (ARN) of the activated hook
- `LoggingConfig` (`LambdaHook_LoggingConfig`, optional): Contains logging configuration information for the hook.
- `StackFilters` (`Record<string, unknown>`, optional): Filters to allow hooks to target specific stack attributes
- `TargetFilters` (`any`, optional): Attribute to specify which targets should invoke the hook

## Attributes

- `HookArn`
