# StackNamesProperty

Specifies the stack names for the `StackFilters` property type to include or exclude specific stacks from Hook invocations.

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

- Source: Generated code
- Type last changed: v2.168.0 · 20 Nov 2024

## 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 stackNamesProperty: cdk.CfnGuardHook.StackNamesProperty = {
  exclude: ['exclude'],
  include: ['include'],
};
```

## Properties

- `exclude`: string[] — The stack names to exclude.

  All stacks except those listed here will invoke the Hook.

- `include`: string[] — The stack names to include.

  Only the stacks specified in this list will invoke the Hook.
