interface StackNamesProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFormation.CfnGuardHook.StackNamesProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscloudformation#CfnGuardHook_StackNamesProperty |
![]() | software.amazon.awscdk.services.cloudformation.CfnGuardHook.StackNamesProperty |
![]() | aws_cdk.aws_cloudformation.CfnGuardHook.StackNamesProperty |
![]() | aws-cdk-lib » aws_cloudformation » CfnGuardHook » StackNamesProperty |
Specifies the stack names for the StackFilters
property type to include or exclude specific stacks from Hook invocations.
For more information, see AWS CloudFormation Hooks stack level filters .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudformation as cloudformation } from 'aws-cdk-lib';
const stackNamesProperty: cloudformation.CfnGuardHook.StackNamesProperty = {
exclude: ['exclude'],
include: ['include'],
};
Properties
Name | Type | Description |
---|---|---|
exclude? | string[] | The stack names to exclude. |
include? | string[] | The stack names to include. |
exclude?
Type:
string[]
(optional)
The stack names to exclude.
All stacks except those listed here will invoke the Hook.
include?
Type:
string[]
(optional)
The stack names to include.
Only the stacks specified in this list will invoke the Hook.