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.
A deployment lifecycle hook runs custom logic at specific stages of the deployment process. Currently, you can use Lambda functions as hook targets.
For more information, see Lifecycle hooks for Amazon ECS service deployments in the Amazon Elastic Container Service Developer Guide.
Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z
public class DeploymentLifecycleHook
The DeploymentLifecycleHook type exposes the following members
Name | Description | |
---|---|---|
![]() |
DeploymentLifecycleHook() |
Name | Type | Description | |
---|---|---|---|
![]() |
HookDetails | Amazon.Runtime.Documents.Document |
Gets and sets the property HookDetails. Use this field to specify custom parameters that Amazon ECS will pass to your hook target invocations (such as a Lambda function). |
![]() |
HookTargetArn | System.String |
Gets and sets the property HookTargetArn. The Amazon Resource Name (ARN) of the hook target. Currently, only Lambda function ARNs are supported. You must provide this parameter when configuring a deployment lifecycle hook. |
![]() |
LifecycleStages | System.Collections.Generic.List<System.String> |
Gets and sets the property LifecycleStages. The lifecycle stages at which to run the hook. Choose from these valid values:
You must provide this parameter when configuring a deployment lifecycle hook. |
![]() |
RoleArn | System.String |
Gets and sets the property RoleArn. The Amazon Resource Name (ARN) of the IAM role that grants Amazon ECS permission to call Lambda functions on your behalf. For more information, see Permissions required for Lambda functions in Amazon ECS blue/green deployments in the Amazon Elastic Container Service Developer Guide. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5