Package software.amazon.awscdk
Class CfnLambdaHook.StackFiltersProperty.Builder
java.lang.Object
software.amazon.awscdk.CfnLambdaHook.StackFiltersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLambdaHook.StackFiltersProperty>
- Enclosing interface:
CfnLambdaHook.StackFiltersProperty
@Stability(Stable)
public static final class CfnLambdaHook.StackFiltersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLambdaHook.StackFiltersProperty>
A builder for
CfnLambdaHook.StackFiltersProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.filteringCriteria(String filteringCriteria) Sets the value ofCfnLambdaHook.StackFiltersProperty.getFilteringCriteria()stackNames(CfnLambdaHook.StackNamesProperty stackNames) Sets the value ofCfnLambdaHook.StackFiltersProperty.getStackNames()stackNames(IResolvable stackNames) Sets the value ofCfnLambdaHook.StackFiltersProperty.getStackNames()stackRoles(CfnLambdaHook.StackRolesProperty stackRoles) Sets the value ofCfnLambdaHook.StackFiltersProperty.getStackRoles()stackRoles(IResolvable stackRoles) Sets the value ofCfnLambdaHook.StackFiltersProperty.getStackRoles()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
filteringCriteria
@Stability(Stable) public CfnLambdaHook.StackFiltersProperty.Builder filteringCriteria(String filteringCriteria) Sets the value ofCfnLambdaHook.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 CfnLambdaHook.StackFiltersProperty.Builder stackNames(IResolvable stackNames) Sets the value ofCfnLambdaHook.StackFiltersProperty.getStackNames()- Parameters:
stackNames- Includes or excludes specific stacks from Hook invocations.- Returns:
this
-
stackNames
@Stability(Stable) public CfnLambdaHook.StackFiltersProperty.Builder stackNames(CfnLambdaHook.StackNamesProperty stackNames) Sets the value ofCfnLambdaHook.StackFiltersProperty.getStackNames()- Parameters:
stackNames- Includes or excludes specific stacks from Hook invocations.- Returns:
this
-
stackRoles
@Stability(Stable) public CfnLambdaHook.StackFiltersProperty.Builder stackRoles(IResolvable stackRoles) Sets the value ofCfnLambdaHook.StackFiltersProperty.getStackRoles()- Parameters:
stackRoles- Includes or excludes specific stacks from Hook invocations based on their associated IAM roles.- Returns:
this
-
stackRoles
@Stability(Stable) public CfnLambdaHook.StackFiltersProperty.Builder stackRoles(CfnLambdaHook.StackRolesProperty stackRoles) Sets the value ofCfnLambdaHook.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<CfnLambdaHook.StackFiltersProperty>- Returns:
- a new instance of
CfnLambdaHook.StackFiltersProperty - Throws:
NullPointerException- if any required attribute was not provided
-