Interface CfnLambdaHookMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLambdaHookMixinProps.Jsii$Proxy
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.cloudformation.*;
CfnLambdaHookMixinProps cfnLambdaHookMixinProps = CfnLambdaHookMixinProps.builder()
.alias("alias")
.executionRole("executionRole")
.failureMode("failureMode")
.hookStatus("hookStatus")
.lambdaFunction("lambdaFunction")
.stackFilters(StackFiltersProperty.builder()
.filteringCriteria("filteringCriteria")
.stackNames(StackNamesProperty.builder()
.exclude(List.of("exclude"))
.include(List.of("include"))
.build())
.stackRoles(StackRolesProperty.builder()
.exclude(List.of("exclude"))
.include(List.of("include"))
.build())
.build())
.targetFilters(TargetFiltersProperty.builder()
.actions(List.of("actions"))
.invocationPoints(List.of("invocationPoints"))
.targetNames(List.of("targetNames"))
.targets(List.of(HookTargetProperty.builder()
.action("action")
.invocationPoint("invocationPoint")
.targetName("targetName")
.build()))
.build())
.targetOperations(List.of("targetOperations"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLambdaHookMixinPropsstatic final classAn implementation forCfnLambdaHookMixinProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringgetAlias()The type name alias for the Hook.default StringThe IAM role that the Hook assumes to invoke your Lambda function.default StringSpecifies how the Hook responds when the Lambda function invoked by the Hook returns aFAILEDresponse.default StringSpecifies if the Hook isENABLEDorDISABLED.default StringSpecifies the Lambda function for the Hook.default ObjectSpecifies the stack level filters for the Hook.default ObjectSpecifies the target filters for the Hook.Specifies the list of operations the Hook is run against.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAlias
The type name alias for the Hook. This alias must be unique per account and Region.The alias must be in the form
Name1::Name2::Name3and must not begin withAWS. For example,Private::Lambda::MyTestHook.- See Also:
-
getExecutionRole
The IAM role that the Hook assumes to invoke your Lambda function.- See Also:
-
getFailureMode
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.
- See Also:
-
getHookStatus
Specifies if the Hook isENABLEDorDISABLED.Default: - "ENABLED"
- See Also:
-
getLambdaFunction
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.
- See Also:
-
getStackFilters
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-2Returns union: either
IResolvableorCfnLambdaHookPropsMixin.StackFiltersProperty- See Also:
-
getTargetFilters
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 - DELETEReturns union: either
IResolvableorCfnLambdaHookPropsMixin.TargetFiltersProperty- See Also:
-
getTargetOperations
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- See Also:
-
builder
- Returns:
- a
CfnLambdaHookMixinProps.BuilderofCfnLambdaHookMixinProps
-