Skip to content
v2.275.0

StackNamesProperty Struct ​

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 .

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 ​

excludeoptionalstring[]excludeoptionaltyping.List[str]excludeoptionalList<String>Excludeoptionalstring[]Excludeoptional*[]*string#
The stack names to exclude.

All stacks except those listed here will invoke the Hook.

includeoptionalstring[]includeoptionaltyping.List[str]includeoptionalList<String>Includeoptionalstring[]Includeoptional*[]*string#
The stack names to include.

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