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 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.

Note:

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

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

Syntax

C#
public virtual PutLifecycleEventHookExecutionStatusResponse PutLifecycleEventHookExecutionStatus(
         PutLifecycleEventHookExecutionStatusRequest request
)

Parameters

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.

Exceptions

ExceptionCondition
DeploymentDoesNotExistException The deployment with the user or Amazon Web Services account does not exist.
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

See Also