Class ServiceDeploymentConfigurationLifecycleHookArgs


  • public final class ServiceDeploymentConfigurationLifecycleHookArgs
    extends com.pulumi.resources.ResourceArgs
    • Method Detail

      • hookDetails

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> hookDetails()
        Returns:
        Custom parameters that Amazon ECS will pass to the hook target invocations (such as a Lambda function).
      • hookTargetArn

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> hookTargetArn()
        Returns:
        ARN of the Lambda function to invoke for the lifecycle hook. Required when `targetType` is `AWS_LAMBDA`. Not used when `targetType` is `PAUSE`.
      • lifecycleStages

        public com.pulumi.core.Output<java.util.List<java.lang.String>> lifecycleStages()
        Returns:
        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

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> roleArn()
        Returns:
        ARN of the IAM role that grants the service permission to invoke the Lambda function. Required when `targetType` is `AWS_LAMBDA`. Not used when `targetType` is `PAUSE`.
      • targetType

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> targetType()
        Returns:
        Type of hook target. Valid values: `AWS_LAMBDA`, `PAUSE`. Default: `AWS_LAMBDA`. `PAUSE` hooks cannot use the `TEST_TRAFFIC_SHIFT` or `PRODUCTION_TRAFFIC_SHIFT` lifecycle stages.