Interface CfnLambdaHook.IStackRolesProperty
Specifies the stack roles for the StackFilters property type to include or exclude specific stacks from Hook invocations based on their associated IAM roles.
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnLambdaHook.IStackRolesProperty
Syntax (vb)
Public Interface CfnLambdaHook.IStackRolesProperty
Remarks
For more information, see CloudFormation Hooks stack level filters .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var stackRolesProperty = new StackRolesProperty {
Exclude = new [] { "exclude" },
Include = new [] { "include" }
};
Synopsis
Properties
| Exclude | The IAM role ARNs for stacks you want to exclude. |
| Include | The IAM role ARNs to target stacks associated with these roles. |
Properties
Exclude
The IAM role ARNs for stacks you want to exclude.
string[]? Exclude { get; }
Property Value
string[]
Remarks
The Hook will be invoked on all stacks except those initiated by the specified roles.
Include
The IAM role ARNs to target stacks associated with these roles.
string[]? Include { get; }
Property Value
string[]
Remarks
Only stack operations initiated by these roles will invoke the Hook.