We recommend new projects start with resources from the AWS provider.
aws-native.cloudformation.LambdaHook
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
This is a CloudFormation resource for the first-party AWS::Hooks::LambdaHook.
Create LambdaHook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LambdaHook(name: string, args: LambdaHookArgs, opts?: CustomResourceOptions);
@overload
def LambdaHook(resource_name: str,
args: LambdaHookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LambdaHook(resource_name: str,
opts: Optional[ResourceOptions] = None,
alias: Optional[str] = None,
execution_role: Optional[str] = None,
failure_mode: Optional[LambdaHookFailureMode] = None,
hook_status: Optional[LambdaHookHookStatus] = None,
lambda_function: Optional[str] = None,
target_operations: Optional[Sequence[LambdaHookTargetOperation]] = None,
stack_filters: Optional[StackFiltersPropertiesArgs] = None,
target_filters: Optional[Union[TargetFilters0PropertiesArgs, TargetFilters1PropertiesArgs]] = None)
func NewLambdaHook(ctx *Context, name string, args LambdaHookArgs, opts ...ResourceOption) (*LambdaHook, error)
public LambdaHook(string name, LambdaHookArgs args, CustomResourceOptions? opts = null)
public LambdaHook(String name, LambdaHookArgs args)
public LambdaHook(String name, LambdaHookArgs args, CustomResourceOptions options)
type: aws-native:cloudformation:LambdaHook
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LambdaHookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LambdaHookArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LambdaHookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LambdaHookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LambdaHookArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
LambdaHook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LambdaHook resource accepts the following input properties:
- Alias string
- The typename alias for the hook.
- Execution
Role string - The execution role ARN assumed by Hooks to invoke Lambda.
- Failure
Mode Pulumi.Aws Native. Cloud Formation. Lambda Hook Failure Mode - Attribute to specify CloudFormation behavior on hook failure.
- Hook
Status Pulumi.Aws Native. Cloud Formation. Lambda Hook Hook Status - Attribute to specify which stacks this hook applies to or should get invoked for
- Lambda
Function string - Amazon Resource Name (ARN), Partial ARN, name, version, or alias of the Lambda function to invoke with this hook.
- Target
Operations List<Pulumi.Aws Native. Cloud Formation. Lambda Hook Target Operation> - Which operations should this Hook run against? Resource changes, stacks or change sets.
- Stack
Filters Pulumi.Aws Native. Cloud Formation. Inputs. Stack Filters Properties - Filters to allow hooks to target specific stack attributes
- Target
Filters Pulumi.Aws | Pulumi.Native. Cloud Formation. Inputs. Target Filters0Properties Aws Native. Cloud Formation. Inputs. Target Filters1Properties - Attribute to specify which targets should invoke the hook
- Alias string
- The typename alias for the hook.
- Execution
Role string - The execution role ARN assumed by Hooks to invoke Lambda.
- Failure
Mode LambdaHook Failure Mode - Attribute to specify CloudFormation behavior on hook failure.
- Hook
Status LambdaHook Hook Status - Attribute to specify which stacks this hook applies to or should get invoked for
- Lambda
Function string - Amazon Resource Name (ARN), Partial ARN, name, version, or alias of the Lambda function to invoke with this hook.
- Target
Operations []LambdaHook Target Operation - Which operations should this Hook run against? Resource changes, stacks or change sets.
- Stack
Filters StackFilters Properties Args - Filters to allow hooks to target specific stack attributes
- Target
Filters TargetFilters0Properties | TargetArgs Filters1Properties Args - Attribute to specify which targets should invoke the hook
- alias String
- The typename alias for the hook.
- execution
Role String - The execution role ARN assumed by Hooks to invoke Lambda.
- failure
Mode LambdaHook Failure Mode - Attribute to specify CloudFormation behavior on hook failure.
- hook
Status LambdaHook Hook Status - Attribute to specify which stacks this hook applies to or should get invoked for
- lambda
Function String - Amazon Resource Name (ARN), Partial ARN, name, version, or alias of the Lambda function to invoke with this hook.
- target
Operations List<LambdaHook Target Operation> - Which operations should this Hook run against? Resource changes, stacks or change sets.
- stack
Filters StackFilters Properties - Filters to allow hooks to target specific stack attributes
- target
Filters TargetFilters0Properties | TargetFilters1Properties - Attribute to specify which targets should invoke the hook
- alias string
- The typename alias for the hook.
- execution
Role string - The execution role ARN assumed by Hooks to invoke Lambda.
- failure
Mode LambdaHook Failure Mode - Attribute to specify CloudFormation behavior on hook failure.
- hook
Status LambdaHook Hook Status - Attribute to specify which stacks this hook applies to or should get invoked for
- lambda
Function string - Amazon Resource Name (ARN), Partial ARN, name, version, or alias of the Lambda function to invoke with this hook.
- target
Operations LambdaHook Target Operation[] - Which operations should this Hook run against? Resource changes, stacks or change sets.
- stack
Filters StackFilters Properties - Filters to allow hooks to target specific stack attributes
- target
Filters TargetFilters0Properties | TargetFilters1Properties - Attribute to specify which targets should invoke the hook
- alias str
- The typename alias for the hook.
- execution_
role str - The execution role ARN assumed by Hooks to invoke Lambda.
- failure_
mode LambdaHook Failure Mode - Attribute to specify CloudFormation behavior on hook failure.
- hook_
status LambdaHook Hook Status - Attribute to specify which stacks this hook applies to or should get invoked for
- lambda_
function str - Amazon Resource Name (ARN), Partial ARN, name, version, or alias of the Lambda function to invoke with this hook.
- target_
operations Sequence[LambdaHook Target Operation] - Which operations should this Hook run against? Resource changes, stacks or change sets.
- stack_
filters StackFilters Properties Args - Filters to allow hooks to target specific stack attributes
- target_
filters TargetFilters0Properties | TargetArgs Filters1Properties Args - Attribute to specify which targets should invoke the hook
- alias String
- The typename alias for the hook.
- execution
Role String - The execution role ARN assumed by Hooks to invoke Lambda.
- failure
Mode "FAIL" | "WARN" - Attribute to specify CloudFormation behavior on hook failure.
- hook
Status "ENABLED" | "DISABLED" - Attribute to specify which stacks this hook applies to or should get invoked for
- lambda
Function String - Amazon Resource Name (ARN), Partial ARN, name, version, or alias of the Lambda function to invoke with this hook.
- target
Operations List<"RESOURCE" | "STACK" | "CHANGE_SET"> - Which operations should this Hook run against? Resource changes, stacks or change sets.
- stack
Filters Property Map - Filters to allow hooks to target specific stack attributes
- target
Filters Property Map | Property Map - Attribute to specify which targets should invoke the hook
Outputs
All input properties are implicitly available as output properties. Additionally, the LambdaHook resource produces the following output properties:
Supporting Types
LambdaHookAction, LambdaHookActionArgs
- Create
- CREATE
- Update
- UPDATE
- Delete
- DELETE
- Lambda
Hook Action Create - CREATE
- Lambda
Hook Action Update - UPDATE
- Lambda
Hook Action Delete - DELETE
- Create
- CREATE
- Update
- UPDATE
- Delete
- DELETE
- Create
- CREATE
- Update
- UPDATE
- Delete
- DELETE
- CREATE
- CREATE
- UPDATE
- UPDATE
- DELETE
- DELETE
- "CREATE"
- CREATE
- "UPDATE"
- UPDATE
- "DELETE"
- DELETE
LambdaHookFailureMode, LambdaHookFailureModeArgs
- Fail
- FAIL
- Warn
- WARN
- Lambda
Hook Failure Mode Fail - FAIL
- Lambda
Hook Failure Mode Warn - WARN
- Fail
- FAIL
- Warn
- WARN
- Fail
- FAIL
- Warn
- WARN
- FAIL
- FAIL
- WARN
- WARN
- "FAIL"
- FAIL
- "WARN"
- WARN
LambdaHookHookStatus, LambdaHookHookStatusArgs
- Enabled
- ENABLED
- Disabled
- DISABLED
- Lambda
Hook Hook Status Enabled - ENABLED
- Lambda
Hook Hook Status Disabled - DISABLED
- Enabled
- ENABLED
- Disabled
- DISABLED
- Enabled
- ENABLED
- Disabled
- DISABLED
- ENABLED
- ENABLED
- DISABLED
- DISABLED
- "ENABLED"
- ENABLED
- "DISABLED"
- DISABLED
LambdaHookHookTarget, LambdaHookHookTargetArgs
LambdaHookInvocationPoint, LambdaHookInvocationPointArgs
- Pre
Provision - PRE_PROVISION
- Lambda
Hook Invocation Point Pre Provision - PRE_PROVISION
- Pre
Provision - PRE_PROVISION
- Pre
Provision - PRE_PROVISION
- PRE_PROVISION
- PRE_PROVISION
- "PRE_PROVISION"
- PRE_PROVISION
LambdaHookStackFiltersPropertiesFilteringCriteria, LambdaHookStackFiltersPropertiesFilteringCriteriaArgs
- All
- ALL
- Any
- ANY
- Lambda
Hook Stack Filters Properties Filtering Criteria All - ALL
- Lambda
Hook Stack Filters Properties Filtering Criteria Any - ANY
- All
- ALL
- Any
- ANY
- All
- ALL
- Any
- ANY
- ALL
- ALL
- ANY
- ANY
- "ALL"
- ALL
- "ANY"
- ANY
LambdaHookTargetOperation, LambdaHookTargetOperationArgs
- Resource
- RESOURCE
- Stack
- STACK
- Change
Set - CHANGE_SET
- Lambda
Hook Target Operation Resource - RESOURCE
- Lambda
Hook Target Operation Stack - STACK
- Lambda
Hook Target Operation Change Set - CHANGE_SET
- Resource
- RESOURCE
- Stack
- STACK
- Change
Set - CHANGE_SET
- Resource
- RESOURCE
- Stack
- STACK
- Change
Set - CHANGE_SET
- RESOURCE
- RESOURCE
- STACK
- STACK
- CHANGE_SET
- CHANGE_SET
- "RESOURCE"
- RESOURCE
- "STACK"
- STACK
- "CHANGE_SET"
- CHANGE_SET
StackFiltersProperties, StackFiltersPropertiesArgs
- Filtering
Criteria Pulumi.Aws Native. Cloud Formation. Lambda Hook Stack Filters Properties Filtering Criteria - Attribute to specify the filtering behavior. ANY will make the Hook pass if one filter matches. ALL will make the Hook pass if all filters match
- Stack
Names Pulumi.Aws Native. Cloud Formation. Inputs. Stack Filters Properties Stack Names Properties - List of stack names as filters
- Stack
Roles Pulumi.Aws Native. Cloud Formation. Inputs. Stack Filters Properties Stack Roles Properties - List of stack roles that are performing the stack operations.
- Filtering
Criteria LambdaHook Stack Filters Properties Filtering Criteria - Attribute to specify the filtering behavior. ANY will make the Hook pass if one filter matches. ALL will make the Hook pass if all filters match
- Stack
Names StackFilters Properties Stack Names Properties - List of stack names as filters
- Stack
Roles StackFilters Properties Stack Roles Properties - List of stack roles that are performing the stack operations.
- filtering
Criteria LambdaHook Stack Filters Properties Filtering Criteria - Attribute to specify the filtering behavior. ANY will make the Hook pass if one filter matches. ALL will make the Hook pass if all filters match
- stack
Names StackFilters Properties Stack Names Properties - List of stack names as filters
- stack
Roles StackFilters Properties Stack Roles Properties - List of stack roles that are performing the stack operations.
- filtering
Criteria LambdaHook Stack Filters Properties Filtering Criteria - Attribute to specify the filtering behavior. ANY will make the Hook pass if one filter matches. ALL will make the Hook pass if all filters match
- stack
Names StackFilters Properties Stack Names Properties - List of stack names as filters
- stack
Roles StackFilters Properties Stack Roles Properties - List of stack roles that are performing the stack operations.
- filtering_
criteria LambdaHook Stack Filters Properties Filtering Criteria - Attribute to specify the filtering behavior. ANY will make the Hook pass if one filter matches. ALL will make the Hook pass if all filters match
- stack_
names StackFilters Properties Stack Names Properties - List of stack names as filters
- stack_
roles StackFilters Properties Stack Roles Properties - List of stack roles that are performing the stack operations.
- filtering
Criteria "ALL" | "ANY" - Attribute to specify the filtering behavior. ANY will make the Hook pass if one filter matches. ALL will make the Hook pass if all filters match
- stack
Names Property Map - List of stack names as filters
- stack
Roles Property Map - List of stack roles that are performing the stack operations.
StackFiltersPropertiesStackNamesProperties, StackFiltersPropertiesStackNamesPropertiesArgs
StackFiltersPropertiesStackRolesProperties, StackFiltersPropertiesStackRolesPropertiesArgs
TargetFilters0Properties, TargetFilters0PropertiesArgs
- Actions
List<Pulumi.
Aws Native. Cloud Formation. Lambda Hook Action> - List of actions that the hook is going to target
- Invocation
Points List<Pulumi.Aws Native. Cloud Formation. Lambda Hook Invocation Point> - List of invocation points that the hook is going to target
- Target
Names List<string> - List of type names that the hook is going to target
- Actions
[]Lambda
Hook Action - List of actions that the hook is going to target
- Invocation
Points []LambdaHook Invocation Point - List of invocation points that the hook is going to target
- Target
Names []string - List of type names that the hook is going to target
- actions
List<Lambda
Hook Action> - List of actions that the hook is going to target
- invocation
Points List<LambdaHook Invocation Point> - List of invocation points that the hook is going to target
- target
Names List<String> - List of type names that the hook is going to target
- actions
Lambda
Hook Action[] - List of actions that the hook is going to target
- invocation
Points LambdaHook Invocation Point[] - List of invocation points that the hook is going to target
- target
Names string[] - List of type names that the hook is going to target
- actions
Sequence[Lambda
Hook Action] - List of actions that the hook is going to target
- invocation_
points Sequence[LambdaHook Invocation Point] - List of invocation points that the hook is going to target
- target_
names Sequence[str] - List of type names that the hook is going to target
- actions List<"CREATE" | "UPDATE" | "DELETE">
- List of actions that the hook is going to target
- invocation
Points List<"PRE_PROVISION"> - List of invocation points that the hook is going to target
- target
Names List<String> - List of type names that the hook is going to target
TargetFilters1Properties, TargetFilters1PropertiesArgs
- Targets
List<Pulumi.
Aws Native. Cloud Formation. Inputs. Lambda Hook Hook Target> - List of hook targets
- Targets
[]Lambda
Hook Hook Target - List of hook targets
- targets
List<Lambda
Hook Hook Target> - List of hook targets
- targets
Lambda
Hook Hook Target[] - List of hook targets
- targets
Sequence[Lambda
Hook Hook Target] - List of hook targets
- targets List<Property Map>
- List of hook targets
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.