lifecycle_event_hook_execution_status
Creates, updates, deletes, gets or lists a lifecycle_event_hook_execution_status resource.
Overview
| Name | lifecycle_event_hook_execution_status |
| Type | Resource |
| Id | aws.codedeploy.lifecycle_event_hook_execution_status |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
put_lifecycle_event_hook_execution_status | replace | region | Sets the result of a Lambda validation function. The function validates lifecycle hooks during a deployment that uses the Lambda or Amazon ECS compute platform. For Lambda deployments, the available lifecycle hooks are BeforeAllowTraffic and AfterAllowTraffic. For Amazon ECS deployments, the available lifecycle hooks are BeforeInstall, AfterInstall, AfterAllowTestTraffic, BeforeAllowTraffic, and AfterAllowTraffic. Lambda validation functions return Succeeded or Failed. For more information, see AppSpec 'hooks' Section for an Lambda Deployment and AppSpec 'hooks' Section for an Amazon ECS Deployment. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
REPLACE examples
- put_lifecycle_event_hook_execution_status
Sets the result of a Lambda validation function. The function validates lifecycle hooks during a deployment that uses the Lambda or Amazon ECS compute platform. For Lambda deployments, the available lifecycle hooks are BeforeAllowTraffic and AfterAllowTraffic. For Amazon ECS deployments, the available lifecycle hooks are BeforeInstall, AfterInstall, AfterAllowTestTraffic, BeforeAllowTraffic, and AfterAllowTraffic. Lambda validation functions return Succeeded or Failed. For more information, see AppSpec 'hooks' Section for an Lambda Deployment and AppSpec 'hooks' Section for an Amazon ECS Deployment.
REPLACE aws.codedeploy.lifecycle_event_hook_execution_status
SET
deploymentId = '{{ deploymentId }}',
lifecycleEventHookExecutionId = '{{ lifecycleEventHookExecutionId }}',
status = '{{ status }}'
WHERE
region = '{{ region }}' --required
RETURNING
lifecycle_event_hook_execution_id;