

# DeploymentLifecycleHookTimeoutConfiguration
<a name="API_DeploymentLifecycleHookTimeoutConfiguration"></a>

The timeout configuration for a deployment lifecycle hook. This determines how long Amazon ECS waits for the hook to complete before taking the specified timeout action.

## Contents
<a name="API_DeploymentLifecycleHookTimeoutConfiguration_Contents"></a>

 ** action **   <a name="ECS-Type-DeploymentLifecycleHookTimeoutConfiguration-action"></a>
The action Amazon ECS takes when the lifecycle hook times out. Valid values are:  
+  `CONTINUE` - Proceeds the deployment to the next lifecycle stage.
+  `ROLLBACK` - Rolls back the deployment to the previous service revision.
Type: String  
Valid Values: `ROLLBACK | CONTINUE`   
Required: No

 ** timeoutInMinutes **   <a name="ECS-Type-DeploymentLifecycleHookTimeoutConfiguration-timeoutInMinutes"></a>
The number of minutes Amazon ECS waits for the lifecycle hook to complete before taking the timeout action.  
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 20160.  
Required: No

## See Also
<a name="API_DeploymentLifecycleHookTimeoutConfiguration_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/ecs-2014-11-13/DeploymentLifecycleHookTimeoutConfiguration) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/ecs-2014-11-13/DeploymentLifecycleHookTimeoutConfiguration) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/ecs-2014-11-13/DeploymentLifecycleHookTimeoutConfiguration) 