Interface CfnService.DeploymentLifecycleHookProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnService.DeploymentLifecycleHookProperty.Jsii$Proxy
Enclosing class:
CfnService

@Stability(Stable) public static interface CfnService.DeploymentLifecycleHookProperty extends software.amazon.jsii.JsiiSerializable
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 .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ecs.*;
 DeploymentLifecycleHookProperty deploymentLifecycleHookProperty = DeploymentLifecycleHookProperty.builder()
         .hookTargetArn("hookTargetArn")
         .lifecycleStages(List.of("lifecycleStages"))
         .roleArn("roleArn")
         .build();
 

See Also: