Class LifecycleHookState.Builder
- java.lang.Object
-
- com.pulumi.aws.autoscaling.inputs.LifecycleHookState.Builder
-
- Enclosing class:
- LifecycleHookState
public static final class LifecycleHookState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(LifecycleHookState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LifecycleHookState.Builder
autoscalingGroupName(com.pulumi.core.Output<java.lang.String> autoscalingGroupName)
LifecycleHookState.Builder
autoscalingGroupName(java.lang.String autoscalingGroupName)
LifecycleHookState
build()
LifecycleHookState.Builder
defaultResult(com.pulumi.core.Output<java.lang.String> defaultResult)
LifecycleHookState.Builder
defaultResult(java.lang.String defaultResult)
LifecycleHookState.Builder
heartbeatTimeout(com.pulumi.core.Output<java.lang.Integer> heartbeatTimeout)
LifecycleHookState.Builder
heartbeatTimeout(java.lang.Integer heartbeatTimeout)
LifecycleHookState.Builder
lifecycleTransition(com.pulumi.core.Output<java.lang.String> lifecycleTransition)
LifecycleHookState.Builder
lifecycleTransition(java.lang.String lifecycleTransition)
LifecycleHookState.Builder
name(com.pulumi.core.Output<java.lang.String> name)
LifecycleHookState.Builder
name(java.lang.String name)
LifecycleHookState.Builder
notificationMetadata(com.pulumi.core.Output<java.lang.String> notificationMetadata)
LifecycleHookState.Builder
notificationMetadata(java.lang.String notificationMetadata)
LifecycleHookState.Builder
notificationTargetArn(com.pulumi.core.Output<java.lang.String> notificationTargetArn)
LifecycleHookState.Builder
notificationTargetArn(java.lang.String notificationTargetArn)
LifecycleHookState.Builder
roleArn(com.pulumi.core.Output<java.lang.String> roleArn)
LifecycleHookState.Builder
roleArn(java.lang.String roleArn)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(LifecycleHookState defaults)
-
-
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
-
build
public LifecycleHookState build()
-
-