interface StackRolesProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.CfnLambdaHook.StackRolesProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2#CfnLambdaHook_StackRolesProperty |
Java | software.amazon.awscdk.CfnLambdaHook.StackRolesProperty |
Python | aws_cdk.CfnLambdaHook.StackRolesProperty |
TypeScript | aws-cdk-lib » CfnLambdaHook » StackRolesProperty |
Specifies the stack roles for the StackFilters
property type to include or exclude specific stacks from Hook invocations based on their associated IAM roles.
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 * as cdk from 'aws-cdk-lib';
const stackRolesProperty: cdk.CfnLambdaHook.StackRolesProperty = {
exclude: ['exclude'],
include: ['include'],
};
Properties
Name | Type | Description |
---|---|---|
exclude? | string[] | The IAM role ARNs for stacks you want to exclude. |
include? | string[] | The IAM role ARNs to target stacks associated with these roles. |
exclude?
Type:
string[]
(optional)
The IAM role ARNs for stacks you want to exclude.
The Hook will be invoked on all stacks except those initiated by the specified roles.
include?
Type:
string[]
(optional)
The IAM role ARNs to target stacks associated with these roles.
Only stack operations initiated by these roles will invoke the Hook.