Class LifecycleHookArgs


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

      • autoscalingGroupName

        public com.pulumi.core.Output<java.lang.String> autoscalingGroupName()
        Returns:
        Name of the Auto Scaling group to which you want to assign the lifecycle hook
      • defaultResult

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> defaultResult()
        Returns:
        Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The value for this parameter can be either CONTINUE or ABANDON. The default value for this parameter is ABANDON.
      • heartbeatTimeout

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> heartbeatTimeout()
        Returns:
        Defines the amount of time, in seconds, that can elapse before the lifecycle hook times out. When the lifecycle hook times out, Auto Scaling performs the action defined in the DefaultResult parameter
      • lifecycleTransition

        public com.pulumi.core.Output<java.lang.String> lifecycleTransition()
        Returns:
        Instance state to which you want to attach the lifecycle hook. For a list of lifecycle hook types, see [describe-lifecycle-hook-types](https://docs.aws.amazon.com/cli/latest/reference/autoscaling/describe-lifecycle-hook-types.html#examples)
      • name

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()
        Returns:
        Name of the lifecycle hook.
      • notificationMetadata

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> notificationMetadata()
        Returns:
        Contains additional information that you want to include any time Auto Scaling sends a message to the notification target.
      • notificationTargetArn

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> notificationTargetArn()
        Returns:
        ARN of the notification target that Auto Scaling will use to notify you when an instance is in the transition state for the lifecycle hook. This ARN target can be either an SQS queue, an SNS topic, or a Lambda function.
      • region

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • roleArn

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> roleArn()
        Returns:
        ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.