Package software.amazon.awscdk
Class CfnLambdaHook
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.CfnLambdaHook
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:55.679Z")
@Stability(Stable)
public class CfnLambdaHook
extends CfnResource
implements IInspectable
This is a CloudFormation resource for the first-party AWS::Hooks::LambdaHook.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; CfnLambdaHook cfnLambdaHook = CfnLambdaHook.Builder.create(this, "MyCfnLambdaHook") .alias("alias") .executionRole("executionRole") .failureMode("failureMode") .hookStatus("hookStatus") .lambdaFunction("lambdaFunction") .targetOperations(List.of("targetOperations")) // the properties below are optional .stackFilters(StackFiltersProperty.builder() .filteringCriteria("filteringCriteria") // the properties below are optional .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")) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnLambdaHook
.static interface
Filters to allow hooks to target specific stack attributes.static interface
List of stack names as filters.static interface
List of stack roles that are performing the stack operations.static interface
Example:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnLambdaHook
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnLambdaHook
(software.amazon.jsii.JsiiObjectRef objRef) CfnLambdaHook
(software.constructs.Construct scope, String id, CfnLambdaHookProps props) -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()
The typename alias for the hook.The Amazon Resource Name (ARN) of the activated hook.IAM Role ARN.Attribute to specify CloudFormation behavior on hook failure.Attribute to specify which stacks this hook applies to or should get invoked for.Amazon Resource Name (ARN), Partial ARN, name, version, or alias of the Lambda function to invoke with this hook.Filters to allow hooks to target specific stack attributes.Which operations should this Hook run against?void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The typename alias for the hook.void
setExecutionRole
(String value) IAM Role ARN.void
setFailureMode
(String value) Attribute to specify CloudFormation behavior on hook failure.void
setHookStatus
(String value) Attribute to specify which stacks this hook applies to or should get invoked for.void
setLambdaFunction
(String value) Amazon Resource Name (ARN), Partial ARN, name, version, or alias of the Lambda function to invoke with this hook.void
Filters to allow hooks to target specific stack attributes.void
setStackFilters
(IResolvable value) Filters to allow hooks to target specific stack attributes.void
void
setTargetFilters
(IResolvable value) void
setTargetOperations
(List<String> value) Which operations should this Hook run against?Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnLambdaHook
protected CfnLambdaHook(software.amazon.jsii.JsiiObjectRef objRef) -
CfnLambdaHook
protected CfnLambdaHook(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnLambdaHook
@Stability(Stable) public CfnLambdaHook(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnLambdaHookProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrHookArn
The Amazon Resource Name (ARN) of the activated hook. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getAlias
The typename alias for the hook. -
setAlias
The typename alias for the hook. -
getExecutionRole
IAM Role ARN. -
setExecutionRole
IAM Role ARN. -
getFailureMode
Attribute to specify CloudFormation behavior on hook failure. -
setFailureMode
Attribute to specify CloudFormation behavior on hook failure. -
getHookStatus
Attribute to specify which stacks this hook applies to or should get invoked for. -
setHookStatus
Attribute to specify which stacks this hook applies to or should get invoked for. -
getLambdaFunction
Amazon Resource Name (ARN), Partial ARN, name, version, or alias of the Lambda function to invoke with this hook. -
setLambdaFunction
Amazon Resource Name (ARN), Partial ARN, name, version, or alias of the Lambda function to invoke with this hook. -
getTargetOperations
Which operations should this Hook run against? -
setTargetOperations
Which operations should this Hook run against? -
getStackFilters
Filters to allow hooks to target specific stack attributes. -
setStackFilters
Filters to allow hooks to target specific stack attributes. -
setStackFilters
Filters to allow hooks to target specific stack attributes. -
getTargetFilters
-
setTargetFilters
-
setTargetFilters
@Stability(Stable) public void setTargetFilters(@Nullable CfnLambdaHook.TargetFiltersProperty value)
-