CfnLifecycleHookProps

class aws_cdk.aws_autoscaling.CfnLifecycleHookProps(*, auto_scaling_group_name, default_result=None, heartbeat_timeout=None, lifecycle_hook_name=None, lifecycle_transition, notification_metadata=None, notification_target_arn=None, role_arn=None)

Bases: object

Properties for defining a AWS::AutoScaling::LifecycleHook.

Parameters
  • auto_scaling_group_name (str) – AWS::AutoScaling::LifecycleHook.AutoScalingGroupName.

  • default_result (Optional[str]) – AWS::AutoScaling::LifecycleHook.DefaultResult.

  • heartbeat_timeout (Union[int, float, None]) – AWS::AutoScaling::LifecycleHook.HeartbeatTimeout.

  • lifecycle_hook_name (Optional[str]) – AWS::AutoScaling::LifecycleHook.LifecycleHookName.

  • lifecycle_transition (str) – AWS::AutoScaling::LifecycleHook.LifecycleTransition.

  • notification_metadata (Optional[str]) – AWS::AutoScaling::LifecycleHook.NotificationMetadata.

  • notification_target_arn (Optional[str]) – AWS::AutoScaling::LifecycleHook.NotificationTargetARN.

  • role_arn (Optional[str]) – AWS::AutoScaling::LifecycleHook.RoleARN.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_autoscaling as autoscaling

cfn_lifecycle_hook_props = autoscaling.CfnLifecycleHookProps(
    auto_scaling_group_name="autoScalingGroupName",
    lifecycle_transition="lifecycleTransition",

    # the properties below are optional
    default_result="defaultResult",
    heartbeat_timeout=123,
    lifecycle_hook_name="lifecycleHookName",
    notification_metadata="notificationMetadata",
    notification_target_arn="notificationTargetArn",
    role_arn="roleArn"
)

Attributes

auto_scaling_group_name

AWS::AutoScaling::LifecycleHook.AutoScalingGroupName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-autoscalinggroupname

Return type

str

default_result

AWS::AutoScaling::LifecycleHook.DefaultResult.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-defaultresult

Return type

Optional[str]

heartbeat_timeout

AWS::AutoScaling::LifecycleHook.HeartbeatTimeout.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-heartbeattimeout

Return type

Union[int, float, None]

lifecycle_hook_name

AWS::AutoScaling::LifecycleHook.LifecycleHookName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-lifecyclehookname

Return type

Optional[str]

lifecycle_transition

AWS::AutoScaling::LifecycleHook.LifecycleTransition.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-lifecycletransition

Return type

str

notification_metadata

AWS::AutoScaling::LifecycleHook.NotificationMetadata.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-notificationmetadata

Return type

Optional[str]

notification_target_arn

AWS::AutoScaling::LifecycleHook.NotificationTargetARN.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-notificationtargetarn

Return type

Optional[str]

role_arn

AWS::AutoScaling::LifecycleHook.RoleARN.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-rolearn

Return type

Optional[str]