Class CfnLifecycleHookProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.autoscaling.CfnLifecycleHookProps.Jsii$Proxy
All Implemented Interfaces:
CfnLifecycleHookProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
CfnLifecycleHookProps

@Stability(Stable) @Internal public static final class CfnLifecycleHookProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnLifecycleHookProps
An implementation for CfnLifecycleHookProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(CfnLifecycleHookProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CfnLifecycleHookProps.Builder.
  • Method Details

    • getAutoScalingGroupName

      public final String getAutoScalingGroupName()
      Description copied from interface: CfnLifecycleHookProps
      The name of the Auto Scaling group.
      Specified by:
      getAutoScalingGroupName in interface CfnLifecycleHookProps
    • getLifecycleTransition

      public final String getLifecycleTransition()
      Description copied from interface: CfnLifecycleHookProps
      The lifecycle transition. For Auto Scaling groups, there are two major lifecycle transitions.

      • To create a lifecycle hook for scale-out events, specify autoscaling:EC2_INSTANCE_LAUNCHING .
      • To create a lifecycle hook for scale-in events, specify autoscaling:EC2_INSTANCE_TERMINATING .
      Specified by:
      getLifecycleTransition in interface CfnLifecycleHookProps
    • getDefaultResult

      public final String getDefaultResult()
      Description copied from interface: CfnLifecycleHookProps
      The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs.

      The default value is ABANDON .

      Valid values: CONTINUE | ABANDON

      Specified by:
      getDefaultResult in interface CfnLifecycleHookProps
    • getHeartbeatTimeout

      public final Number getHeartbeatTimeout()
      Description copied from interface: CfnLifecycleHookProps
      The maximum time, in seconds, that can elapse before the lifecycle hook times out.

      The range is from 30 to 7200 seconds. The default value is 3600 seconds (1 hour).

      Specified by:
      getHeartbeatTimeout in interface CfnLifecycleHookProps
    • getLifecycleHookName

      public final String getLifecycleHookName()
      Description copied from interface: CfnLifecycleHookProps
      The name of the lifecycle hook.
      Specified by:
      getLifecycleHookName in interface CfnLifecycleHookProps
    • getNotificationMetadata

      public final String getNotificationMetadata()
      Description copied from interface: CfnLifecycleHookProps
      Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.
      Specified by:
      getNotificationMetadata in interface CfnLifecycleHookProps
    • getNotificationTargetArn

      public final String getNotificationTargetArn()
      Description copied from interface: CfnLifecycleHookProps
      The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling sends notifications to when an instance is in a wait state for the lifecycle hook.

      You can specify an Amazon SNS topic or an Amazon SQS queue.

      Specified by:
      getNotificationTargetArn in interface CfnLifecycleHookProps
    • getRoleArn

      public final String getRoleArn()
      Description copied from interface: CfnLifecycleHookProps
      The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.

      For information about creating this role, see Configure a notification target for a lifecycle hook in the Amazon EC2 Auto Scaling User Guide .

      Valid only if the notification target is an Amazon SNS topic or an Amazon SQS queue.

      Specified by:
      getRoleArn in interface CfnLifecycleHookProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object