Class CfnGuardHook.StackRolesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudformation.CfnGuardHook.StackRolesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardHook.StackRolesProperty>
- Enclosing interface:
CfnGuardHook.StackRolesProperty
@Stability(Stable)
public static final class CfnGuardHook.StackRolesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardHook.StackRolesProperty>
A builder for
CfnGuardHook.StackRolesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnGuardHook.StackRolesProperty.getExclude()Sets the value ofCfnGuardHook.StackRolesProperty.getInclude()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
exclude
Sets the value ofCfnGuardHook.StackRolesProperty.getExclude()- Parameters:
exclude- 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.- Returns:
this
-
include
Sets the value ofCfnGuardHook.StackRolesProperty.getInclude()- Parameters:
include- The IAM role ARNs to target stacks associated with these roles. Only stack operations initiated by these roles will invoke the Hook.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGuardHook.StackRolesProperty>- Returns:
- a new instance of
CfnGuardHook.StackRolesProperty - Throws:
NullPointerException- if any required attribute was not provided
-