# TargetFiltersProperty

The `TargetFilters` property type specifies the target filters for the Hook.

For more information, see [CloudFormation Hook target filters](https://docs.aws.amazon.com/cloudformation-cli/latest/hooks-userguide/hooks-target-filtering.html) .

- Source: Generated code
- Type last changed: v2.182.0 · 5 Mar 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const targetFiltersProperty: cdk.CfnGuardHook.TargetFiltersProperty = {
  targets: [{
    action: 'action',
    invocationPoint: 'invocationPoint',
    targetName: 'targetName',
  }],

  // the properties below are optional
  actions: ['actions'],
  invocationPoints: ['invocationPoints'],
  targetNames: ['targetNames'],
};
```

## Properties

- `actions`: string[] — List of actions that the hook is going to target.

- `invocationPoints`: string[] — List of invocation points that the hook is going to target.

- `targetNames`: string[] — List of type names that the hook is going to target.

- `targets`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGuardHook.HookTargetProperty](/cdk/api/v2/docs/aws-cdk-lib.CfnGuardHook.HookTargetProperty.html)[] (required) — List of hook targets.
