Class CfnGuardHook.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.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CloudFormation
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class StackRolesProperty : Object, CfnGuardHook.IStackRolesProperty
Syntax (vb)
Public Class StackRolesProperty
Inherits Object
Implements CfnGuardHook.IStackRolesProperty
Remarks
For more information, see AWS 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.AWS.CloudFormation;
var stackRolesProperty = new StackRolesProperty {
Exclude = new [] { "exclude" },
Include = new [] { "include" }
};
Synopsis
Constructors
Stack |
Properties
Exclude | The IAM role ARNs for stacks you want to exclude. |
Include | The IAM role ARNs to target stacks associated with these roles. |
Constructors
StackRolesProperty()
public StackRolesProperty()
Properties
Exclude
The IAM role ARNs for stacks you want to exclude.
public string[] Exclude { get; set; }
Property Value
System.
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.
public string[] Include { get; set; }
Property Value
System.
Remarks
Only stack operations initiated by these roles will invoke the Hook.