Class CfnLambdaHookProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudformation.CfnLambdaHookProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLambdaHookProps>
- Enclosing interface:
CfnLambdaHookProps
@Stability(Stable)
public static final class CfnLambdaHookProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLambdaHookProps>
A builder for
CfnLambdaHookProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnLambdaHookProps.getAlias()build()Builds the configured instance.executionRole(String executionRole) Sets the value ofCfnLambdaHookProps.getExecutionRole()failureMode(String failureMode) Sets the value ofCfnLambdaHookProps.getFailureMode()hookStatus(String hookStatus) Sets the value ofCfnLambdaHookProps.getHookStatus()lambdaFunction(String lambdaFunction) Sets the value ofCfnLambdaHookProps.getLambdaFunction()stackFilters(IResolvable stackFilters) Sets the value ofCfnLambdaHookProps.getStackFilters()stackFilters(CfnLambdaHook.StackFiltersProperty stackFilters) Sets the value ofCfnLambdaHookProps.getStackFilters()targetFilters(IResolvable targetFilters) Sets the value ofCfnLambdaHookProps.getTargetFilters()targetFilters(CfnLambdaHook.TargetFiltersProperty targetFilters) Sets the value ofCfnLambdaHookProps.getTargetFilters()targetOperations(List<String> targetOperations) Sets the value ofCfnLambdaHookProps.getTargetOperations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alias
Sets the value ofCfnLambdaHookProps.getAlias()- Parameters:
alias- The typename alias for the hook. This parameter is required.- Returns:
this
-
executionRole
Sets the value ofCfnLambdaHookProps.getExecutionRole()- Parameters:
executionRole- IAM Role ARN. This parameter is required.- Returns:
this
-
failureMode
Sets the value ofCfnLambdaHookProps.getFailureMode()- Parameters:
failureMode- Attribute to specify CloudFormation behavior on hook failure. This parameter is required.- Returns:
this
-
hookStatus
Sets the value ofCfnLambdaHookProps.getHookStatus()- Parameters:
hookStatus- Attribute to specify which stacks this hook applies to or should get invoked for. This parameter is required.- Returns:
this
-
lambdaFunction
Sets the value ofCfnLambdaHookProps.getLambdaFunction()- Parameters:
lambdaFunction- Amazon Resource Name (ARN), Partial ARN, name, version, or alias of the Lambda function to invoke with this hook. This parameter is required.- Returns:
this
-
targetOperations
@Stability(Stable) public CfnLambdaHookProps.Builder targetOperations(List<String> targetOperations) Sets the value ofCfnLambdaHookProps.getTargetOperations()- Parameters:
targetOperations- Which operations should this Hook run against?. This parameter is required. Resource changes, stacks or change sets.- Returns:
this
-
stackFilters
Sets the value ofCfnLambdaHookProps.getStackFilters()- Parameters:
stackFilters- Filters to allow hooks to target specific stack attributes.- Returns:
this
-
stackFilters
@Stability(Stable) public CfnLambdaHookProps.Builder stackFilters(CfnLambdaHook.StackFiltersProperty stackFilters) Sets the value ofCfnLambdaHookProps.getStackFilters()- Parameters:
stackFilters- Filters to allow hooks to target specific stack attributes.- Returns:
this
-
targetFilters
Sets the value ofCfnLambdaHookProps.getTargetFilters()- Parameters:
targetFilters- the value to be set.- Returns:
this
-
targetFilters
@Stability(Stable) public CfnLambdaHookProps.Builder targetFilters(CfnLambdaHook.TargetFiltersProperty targetFilters) Sets the value ofCfnLambdaHookProps.getTargetFilters()- Parameters:
targetFilters- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLambdaHookProps>- Returns:
- a new instance of
CfnLambdaHookProps - Throws:
NullPointerException- if any required attribute was not provided
-