Class CfnLambdaHookMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLambdaHookMixinProps>
- Enclosing interface:
CfnLambdaHookMixinProps
CfnLambdaHookMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnLambdaHookMixinProps.getAlias()build()Builds the configured instance.executionRole(String executionRole) Sets the value ofCfnLambdaHookMixinProps.getExecutionRole()failureMode(String failureMode) Sets the value ofCfnLambdaHookMixinProps.getFailureMode()hookStatus(String hookStatus) Sets the value ofCfnLambdaHookMixinProps.getHookStatus()lambdaFunction(String lambdaFunction) Sets the value ofCfnLambdaHookMixinProps.getLambdaFunction()stackFilters(CfnLambdaHookPropsMixin.StackFiltersProperty stackFilters) Sets the value ofCfnLambdaHookMixinProps.getStackFilters()stackFilters(IResolvable stackFilters) Sets the value ofCfnLambdaHookMixinProps.getStackFilters()targetFilters(CfnLambdaHookPropsMixin.TargetFiltersProperty targetFilters) Sets the value ofCfnLambdaHookMixinProps.getTargetFilters()targetFilters(IResolvable targetFilters) Sets the value ofCfnLambdaHookMixinProps.getTargetFilters()targetOperations(List<String> targetOperations) Sets the value ofCfnLambdaHookMixinProps.getTargetOperations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alias
Sets the value ofCfnLambdaHookMixinProps.getAlias()- Parameters:
alias- The type name alias for the Hook. This alias must be unique per account and Region. The alias must be in the formName1::Name2::Name3and must not begin withAWS. For example,Private::Lambda::MyTestHook.- Returns:
this
-
executionRole
Sets the value ofCfnLambdaHookMixinProps.getExecutionRole()- Parameters:
executionRole- The IAM role that the Hook assumes to invoke your Lambda function.- Returns:
this
-
failureMode
Sets the value ofCfnLambdaHookMixinProps.getFailureMode()- Parameters:
failureMode- Specifies how the Hook responds when the Lambda function invoked by the Hook returns aFAILEDresponse.FAIL: Prevents the action from proceeding. This is helpful for enforcing strict compliance or security policies.WARN: Issues warnings to users but allows actions to continue. This is useful for non-critical validations or informational checks.
- Returns:
this
-
hookStatus
Sets the value ofCfnLambdaHookMixinProps.getHookStatus()- Parameters:
hookStatus- Specifies if the Hook isENABLEDorDISABLED.- Returns:
this
-
lambdaFunction
Sets the value ofCfnLambdaHookMixinProps.getLambdaFunction()- Parameters:
lambdaFunction- Specifies the Lambda function for the Hook. You can use:.- The full Amazon Resource Name (ARN) without a suffix.
- A qualified ARN with a version or alias suffix.
- Returns:
this
-
stackFilters
Sets the value ofCfnLambdaHookMixinProps.getStackFilters()- Parameters:
stackFilters- Specifies the stack level filters for the Hook. Example stack level filter in JSON:"StackFilters": {"FilteringCriteria": "ALL", "StackNames": {"Exclude": [ "stack-1", "stack-2"]}}Example stack level filter in YAML:
StackFilters: FilteringCriteria: ALL StackNames: Exclude: - stack-1 - stack-2- Returns:
this
-
stackFilters
@Stability(Stable) public CfnLambdaHookMixinProps.Builder stackFilters(CfnLambdaHookPropsMixin.StackFiltersProperty stackFilters) Sets the value ofCfnLambdaHookMixinProps.getStackFilters()- Parameters:
stackFilters- Specifies the stack level filters for the Hook. Example stack level filter in JSON:"StackFilters": {"FilteringCriteria": "ALL", "StackNames": {"Exclude": [ "stack-1", "stack-2"]}}Example stack level filter in YAML:
StackFilters: FilteringCriteria: ALL StackNames: Exclude: - stack-1 - stack-2- Returns:
this
-
targetFilters
Sets the value ofCfnLambdaHookMixinProps.getTargetFilters()- Parameters:
targetFilters- Specifies the target filters for the Hook. Example target filter in JSON:"TargetFilters": {"Actions": [ "CREATE", "UPDATE", "DELETE" ]}Example target filter in YAML:
TargetFilters: Actions: - CREATE - UPDATE - DELETE- Returns:
this
-
targetFilters
@Stability(Stable) public CfnLambdaHookMixinProps.Builder targetFilters(CfnLambdaHookPropsMixin.TargetFiltersProperty targetFilters) Sets the value ofCfnLambdaHookMixinProps.getTargetFilters()- Parameters:
targetFilters- Specifies the target filters for the Hook. Example target filter in JSON:"TargetFilters": {"Actions": [ "CREATE", "UPDATE", "DELETE" ]}Example target filter in YAML:
TargetFilters: Actions: - CREATE - UPDATE - DELETE- Returns:
this
-
targetOperations
@Stability(Stable) public CfnLambdaHookMixinProps.Builder targetOperations(List<String> targetOperations) Sets the value ofCfnLambdaHookMixinProps.getTargetOperations()- Parameters:
targetOperations- Specifies the list of operations the Hook is run against. For more information, see Hook targets in the CloudFormation Hooks User Guide .Valid values:
STACK|RESOURCE|CHANGE_SET|CLOUD_CONTROL- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLambdaHookMixinProps>- Returns:
- a new instance of
CfnLambdaHookMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-