Package software.amazon.awscdk
Class CfnGuardHook.StackFiltersProperty.Builder
java.lang.Object
software.amazon.awscdk.CfnGuardHook.StackFiltersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardHook.StackFiltersProperty>
- Enclosing interface:
CfnGuardHook.StackFiltersProperty
@Stability(Stable)
public static final class CfnGuardHook.StackFiltersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardHook.StackFiltersProperty>
A builder for
CfnGuardHook.StackFiltersProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.filteringCriteria(String filteringCriteria) Sets the value ofCfnGuardHook.StackFiltersProperty.getFilteringCriteria()stackNames(CfnGuardHook.StackNamesProperty stackNames) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackNames()stackNames(IResolvable stackNames) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackNames()stackRoles(CfnGuardHook.StackRolesProperty stackRoles) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackRoles()stackRoles(IResolvable stackRoles) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackRoles()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
filteringCriteria
@Stability(Stable) public CfnGuardHook.StackFiltersProperty.Builder filteringCriteria(String filteringCriteria) Sets the value ofCfnGuardHook.StackFiltersProperty.getFilteringCriteria()- Parameters:
filteringCriteria- The filtering criteria. This parameter is required.- All stack names and stack roles (
All): The Hook will only be invoked when all specified filters match. - Any stack names and stack roles (
Any): The Hook will be invoked if at least one of the specified filters match.
- All stack names and stack roles (
- Returns:
this
-
stackNames
@Stability(Stable) public CfnGuardHook.StackFiltersProperty.Builder stackNames(IResolvable stackNames) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackNames()- Parameters:
stackNames- Includes or excludes specific stacks from Hook invocations.- Returns:
this
-
stackNames
@Stability(Stable) public CfnGuardHook.StackFiltersProperty.Builder stackNames(CfnGuardHook.StackNamesProperty stackNames) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackNames()- Parameters:
stackNames- Includes or excludes specific stacks from Hook invocations.- Returns:
this
-
stackRoles
@Stability(Stable) public CfnGuardHook.StackFiltersProperty.Builder stackRoles(IResolvable stackRoles) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackRoles()- Parameters:
stackRoles- Includes or excludes specific stacks from Hook invocations based on their associated IAM roles.- Returns:
this
-
stackRoles
@Stability(Stable) public CfnGuardHook.StackFiltersProperty.Builder stackRoles(CfnGuardHook.StackRolesProperty stackRoles) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackRoles()- Parameters:
stackRoles- Includes or excludes specific stacks from Hook invocations based on their associated IAM roles.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGuardHook.StackFiltersProperty>- Returns:
- a new instance of
CfnGuardHook.StackFiltersProperty - Throws:
NullPointerException- if any required attribute was not provided
-