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.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFormation
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnGuardHook.StackRolesProperty : CfnGuardHook.IStackRolesProperty
Syntax (vb)
Public Class CfnGuardHook.StackRolesProperty 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
StackRolesProperty() | Specifies the stack roles for the |
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()
Specifies the stack roles for the StackFilters
property type to include or exclude specific stacks from Hook invocations based on their associated IAM roles.
public StackRolesProperty()
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" }
};
Properties
Exclude
The IAM role ARNs for stacks you want to exclude.
public string[]? Exclude { get; set; }
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.
public string[]? Include { get; set; }
Property Value
string[]
Remarks
Only stack operations initiated by these roles will invoke the Hook.