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.
This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginPutLifecycleEventHookExecutionStatus and EndPutLifecycleEventHookExecutionStatus.
Namespace: Amazon.CodeDeploy
Assembly: AWSSDK.CodeDeploy.dll
Version: 3.x.y.z
public abstract Task<PutLifecycleEventHookExecutionStatusResponse> PutLifecycleEventHookExecutionStatusAsync( PutLifecycleEventHookExecutionStatusRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the PutLifecycleEventHookExecutionStatus service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exception | Condition |
---|---|
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. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5