ServiceDeploymentConfigurationLifecycleHook constructor

const ServiceDeploymentConfigurationLifecycleHook({
  1. Input<String?>? hookDetails,
  2. required Input<String> hookTargetArn,
  3. required Input<List<String>> lifecycleStages,
  4. required Input<String> roleArn,
})

Creates a new ServiceDeploymentConfigurationLifecycleHook. hookDetails Custom parameters that Amazon ECS will pass to the hook target invocations (such as a Lambda function). hookTargetArn ARN of the Lambda function to invoke for the lifecycle hook. lifecycleStages Stages during the deployment when the hook should be invoked. Valid values: RECONCILE_SERVICE, PRE_SCALE_UP, POST_SCALE_UP, TEST_TRAFFIC_SHIFT, POST_TEST_TRAFFIC_SHIFT, PRODUCTION_TRAFFIC_SHIFT, POST_PRODUCTION_TRAFFIC_SHIFT. roleArn ARN of the IAM role that grants the service permission to invoke the Lambda function.

Implementation

const ServiceDeploymentConfigurationLifecycleHook({
  this.hookDetails,
  required this.hookTargetArn,
  required this.lifecycleStages,
  required this.roleArn,
});