AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Sets the result of a Lambda validation function. The function validates one or both lifecycle events (BeforeAllowTraffic and AfterAllowTraffic) and returns Succeeded or Failed.


For .NET Core and PCL this operation is only available in asynchronous form. Please refer to PutLifecycleEventHookExecutionStatusAsync.

Namespace: Amazon.CodeDeploy
Assembly: AWSSDK.CodeDeploy.dll
Version: 3.x.y.z


public abstract PutLifecycleEventHookExecutionStatusResponse PutLifecycleEventHookExecutionStatus(
         PutLifecycleEventHookExecutionStatusRequest request
Type: Amazon.CodeDeploy.Model.PutLifecycleEventHookExecutionStatusRequest

Container for the necessary parameters to execute the PutLifecycleEventHookExecutionStatus service method.

Return Value
The response from the PutLifecycleEventHookExecutionStatus service method, as returned by CodeDeploy.


DeploymentDoesNotExistException The deployment does not exist with the applicable IAM user or AWS account.
DeploymentIdRequiredException At least one deployment ID must be specified.
InvalidDeploymentIdException At least one of the deployment IDs was specified in an invalid format.
InvalidLifecycleEventHookExecutionIdException A lifecycle event hook is invalid. Review the hooks section in your AppSpec file to ensure the lifecycle events and hooks functions are valid.
InvalidLifecycleEventHookExecutionStatusException The result of a Lambda validation function that verifies a lifecycle event is invalid. It should return Succeeded or Failed.
LifecycleEventAlreadyCompletedException An attempt to return the status of an already completed lifecycle event occurred.
UnsupportedActionForDeploymentTypeException A call was submitted that is not supported for the specified deployment type.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also