Class LifecycleHookState.Builder

  • Enclosing class:
    LifecycleHookState

    public static final class LifecycleHookState.Builder
    extends java.lang.Object
    • Method Detail

      • autoscalingGroupName

        public LifecycleHookState.Builder autoscalingGroupName​(@Nullable
                                                               com.pulumi.core.Output<java.lang.String> autoscalingGroupName)
        Parameters:
        autoscalingGroupName - Name of the Auto Scaling group to which you want to assign the lifecycle hook
        Returns:
        builder
      • autoscalingGroupName

        public LifecycleHookState.Builder autoscalingGroupName​(java.lang.String autoscalingGroupName)
        Parameters:
        autoscalingGroupName - Name of the Auto Scaling group to which you want to assign the lifecycle hook
        Returns:
        builder
      • defaultResult

        public LifecycleHookState.Builder defaultResult​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> defaultResult)
        Parameters:
        defaultResult - 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.
        Returns:
        builder
      • defaultResult

        public LifecycleHookState.Builder defaultResult​(java.lang.String defaultResult)
        Parameters:
        defaultResult - 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.
        Returns:
        builder
      • heartbeatTimeout

        public LifecycleHookState.Builder heartbeatTimeout​(@Nullable
                                                           com.pulumi.core.Output<java.lang.Integer> heartbeatTimeout)
        Parameters:
        heartbeatTimeout - 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
        Returns:
        builder
      • heartbeatTimeout

        public LifecycleHookState.Builder heartbeatTimeout​(java.lang.Integer heartbeatTimeout)
        Parameters:
        heartbeatTimeout - 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
        Returns:
        builder
      • lifecycleTransition

        public LifecycleHookState.Builder lifecycleTransition​(@Nullable
                                                              com.pulumi.core.Output<java.lang.String> lifecycleTransition)
        Parameters:
        lifecycleTransition - 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)
        Returns:
        builder
      • lifecycleTransition

        public LifecycleHookState.Builder lifecycleTransition​(java.lang.String lifecycleTransition)
        Parameters:
        lifecycleTransition - 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)
        Returns:
        builder
      • name

        public LifecycleHookState.Builder name​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Name of the lifecycle hook.
        Returns:
        builder
      • name

        public LifecycleHookState.Builder name​(java.lang.String name)
        Parameters:
        name - Name of the lifecycle hook.
        Returns:
        builder
      • notificationMetadata

        public LifecycleHookState.Builder notificationMetadata​(@Nullable
                                                               com.pulumi.core.Output<java.lang.String> notificationMetadata)
        Parameters:
        notificationMetadata - Contains additional information that you want to include any time Auto Scaling sends a message to the notification target.
        Returns:
        builder
      • notificationMetadata

        public LifecycleHookState.Builder notificationMetadata​(java.lang.String notificationMetadata)
        Parameters:
        notificationMetadata - Contains additional information that you want to include any time Auto Scaling sends a message to the notification target.
        Returns:
        builder
      • notificationTargetArn

        public LifecycleHookState.Builder notificationTargetArn​(@Nullable
                                                                com.pulumi.core.Output<java.lang.String> notificationTargetArn)
        Parameters:
        notificationTargetArn - 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 or an SNS topic.
        Returns:
        builder
      • notificationTargetArn

        public LifecycleHookState.Builder notificationTargetArn​(java.lang.String notificationTargetArn)
        Parameters:
        notificationTargetArn - 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 or an SNS topic.
        Returns:
        builder
      • roleArn

        public LifecycleHookState.Builder roleArn​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> roleArn)
        Parameters:
        roleArn - ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.
        Returns:
        builder
      • roleArn

        public LifecycleHookState.Builder roleArn​(java.lang.String roleArn)
        Parameters:
        roleArn - ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.
        Returns:
        builder