put_lifecycle_event_hook_execution_status(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.put_lifecycle_event_hook_execution_status(
deploymentId='string',
lifecycleEventHookExecutionId='string',
status='Pending'|'InProgress'|'Succeeded'|'Failed'|'Skipped'|'Unknown'
)
hooks section of the AppSpec file.Succeeded and Failed can be passed successfully in your API call.dict
Response Syntax
{
'lifecycleEventHookExecutionId': 'string'
}
Response Structure
(dict) --
lifecycleEventHookExecutionId (string) --
The execution ID of the lifecycle event hook. A hook is specified in the hooks section of the deployment's AppSpec file.
Exceptions
CodeDeploy.Client.exceptions.InvalidLifecycleEventHookExecutionStatusExceptionCodeDeploy.Client.exceptions.InvalidLifecycleEventHookExecutionIdExceptionCodeDeploy.Client.exceptions.LifecycleEventAlreadyCompletedExceptionCodeDeploy.Client.exceptions.DeploymentIdRequiredExceptionCodeDeploy.Client.exceptions.DeploymentDoesNotExistExceptionCodeDeploy.Client.exceptions.InvalidDeploymentIdExceptionCodeDeploy.Client.exceptions.UnsupportedActionForDeploymentTypeException