Show / Hide Table of Contents

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
object
CfnGuardHook.StackRolesProperty
Implements
CfnGuardHook.IStackRolesProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-guardhook-stackroles.html

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 StackFilters property type to include or exclude specific stacks from Hook invocations based on their associated IAM roles.

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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-guardhook-stackroles.html

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-guardhook-stackroles.html#cfn-cloudformation-guardhook-stackroles-exclude

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-guardhook-stackroles.html#cfn-cloudformation-guardhook-stackroles-include

Implements

CfnGuardHook.IStackRolesProperty
Back to top Generated by DocFX