# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import builtins
import copy
import warnings
import sys
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
if sys.version_info >= (3, 11):
    from typing import NotRequired, TypedDict, TypeAlias
else:
    from typing_extensions import NotRequired, TypedDict, TypeAlias
from .. import _utilities
from . import outputs
from ._inputs import *

__all__ = ['ScalingLifecycleHookArgs', 'ScalingLifecycleHook']

@pulumi.input_type
class ScalingLifecycleHookArgs:
    def __init__(__self__, *,
                 lifecycle_hook_name: pulumi.Input[builtins.str],
                 lifecycle_hook_policy: pulumi.Input[builtins.str],
                 lifecycle_hook_timeout: pulumi.Input[builtins.int],
                 lifecycle_hook_type: pulumi.Input[builtins.str],
                 scaling_group_id: pulumi.Input[builtins.str],
                 lifecycle_command: Optional[pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs']] = None):
        """
        The set of arguments for constructing a ScalingLifecycleHook resource.
        :param pulumi.Input[builtins.str] lifecycle_hook_name: 生命周期挂钩名称，创建后不可修改。取值：不能以数字、中划线、下划线开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1 ~ 128个字符之间。
        :param pulumi.Input[builtins.str] lifecycle_hook_policy: 实例挂起状态结束后执行的策略。取值：CONTINUE：继续执行。REJECT：中止后续操作。ROLLBACK：针对弹性收缩活动，会拒绝释放ECS实例，进行回滚；针对弹性扩张活动，效果同REJECT一样。
        :param pulumi.Input[builtins.int] lifecycle_hook_timeout: ECS实例保持挂起状态的时间，超时后，自动结束挂起状态，根据执行策略继续执行扩缩容行为。 请您评估自定义操作的处理时间后，设置合适的超时时间。取值：30 ～ 21600（6小时），单位 s，且必须为整数。
        :param pulumi.Input[builtins.str] lifecycle_hook_type: 伸缩活动的类型，发生指定类型的伸缩活动时，生命周期挂钩会被触发并挂起ECS实例。取值：SCALE*IN：弹性收缩活动。SCALE*OUT：弹性扩张活动。
        :param pulumi.Input[builtins.str] scaling_group_id: 伸缩组ID。
        :param pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs'] lifecycle_command: 云助手相关命令信息。
        """
        pulumi.set(__self__, "lifecycle_hook_name", lifecycle_hook_name)
        pulumi.set(__self__, "lifecycle_hook_policy", lifecycle_hook_policy)
        pulumi.set(__self__, "lifecycle_hook_timeout", lifecycle_hook_timeout)
        pulumi.set(__self__, "lifecycle_hook_type", lifecycle_hook_type)
        pulumi.set(__self__, "scaling_group_id", scaling_group_id)
        if lifecycle_command is not None:
            pulumi.set(__self__, "lifecycle_command", lifecycle_command)

    @property
    @pulumi.getter(name="lifecycleHookName")
    def lifecycle_hook_name(self) -> pulumi.Input[builtins.str]:
        """
        生命周期挂钩名称，创建后不可修改。取值：不能以数字、中划线、下划线开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1 ~ 128个字符之间。
        """
        return pulumi.get(self, "lifecycle_hook_name")

    @lifecycle_hook_name.setter
    def lifecycle_hook_name(self, value: pulumi.Input[builtins.str]):
        pulumi.set(self, "lifecycle_hook_name", value)

    @property
    @pulumi.getter(name="lifecycleHookPolicy")
    def lifecycle_hook_policy(self) -> pulumi.Input[builtins.str]:
        """
        实例挂起状态结束后执行的策略。取值：CONTINUE：继续执行。REJECT：中止后续操作。ROLLBACK：针对弹性收缩活动，会拒绝释放ECS实例，进行回滚；针对弹性扩张活动，效果同REJECT一样。
        """
        return pulumi.get(self, "lifecycle_hook_policy")

    @lifecycle_hook_policy.setter
    def lifecycle_hook_policy(self, value: pulumi.Input[builtins.str]):
        pulumi.set(self, "lifecycle_hook_policy", value)

    @property
    @pulumi.getter(name="lifecycleHookTimeout")
    def lifecycle_hook_timeout(self) -> pulumi.Input[builtins.int]:
        """
        ECS实例保持挂起状态的时间，超时后，自动结束挂起状态，根据执行策略继续执行扩缩容行为。 请您评估自定义操作的处理时间后，设置合适的超时时间。取值：30 ～ 21600（6小时），单位 s，且必须为整数。
        """
        return pulumi.get(self, "lifecycle_hook_timeout")

    @lifecycle_hook_timeout.setter
    def lifecycle_hook_timeout(self, value: pulumi.Input[builtins.int]):
        pulumi.set(self, "lifecycle_hook_timeout", value)

    @property
    @pulumi.getter(name="lifecycleHookType")
    def lifecycle_hook_type(self) -> pulumi.Input[builtins.str]:
        """
        伸缩活动的类型，发生指定类型的伸缩活动时，生命周期挂钩会被触发并挂起ECS实例。取值：SCALE*IN：弹性收缩活动。SCALE*OUT：弹性扩张活动。
        """
        return pulumi.get(self, "lifecycle_hook_type")

    @lifecycle_hook_type.setter
    def lifecycle_hook_type(self, value: pulumi.Input[builtins.str]):
        pulumi.set(self, "lifecycle_hook_type", value)

    @property
    @pulumi.getter(name="scalingGroupId")
    def scaling_group_id(self) -> pulumi.Input[builtins.str]:
        """
        伸缩组ID。
        """
        return pulumi.get(self, "scaling_group_id")

    @scaling_group_id.setter
    def scaling_group_id(self, value: pulumi.Input[builtins.str]):
        pulumi.set(self, "scaling_group_id", value)

    @property
    @pulumi.getter(name="lifecycleCommand")
    def lifecycle_command(self) -> Optional[pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs']]:
        """
        云助手相关命令信息。
        """
        return pulumi.get(self, "lifecycle_command")

    @lifecycle_command.setter
    def lifecycle_command(self, value: Optional[pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs']]):
        pulumi.set(self, "lifecycle_command", value)


@pulumi.input_type
class _ScalingLifecycleHookState:
    def __init__(__self__, *,
                 lifecycle_command: Optional[pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs']] = None,
                 lifecycle_hook_id: Optional[pulumi.Input[builtins.str]] = None,
                 lifecycle_hook_name: Optional[pulumi.Input[builtins.str]] = None,
                 lifecycle_hook_policy: Optional[pulumi.Input[builtins.str]] = None,
                 lifecycle_hook_timeout: Optional[pulumi.Input[builtins.int]] = None,
                 lifecycle_hook_type: Optional[pulumi.Input[builtins.str]] = None,
                 scaling_group_id: Optional[pulumi.Input[builtins.str]] = None):
        """
        Input properties used for looking up and filtering ScalingLifecycleHook resources.
        :param pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs'] lifecycle_command: 云助手相关命令信息。
        :param pulumi.Input[builtins.str] lifecycle_hook_id: 生命周期挂钩ID。
        :param pulumi.Input[builtins.str] lifecycle_hook_name: 生命周期挂钩名称，创建后不可修改。取值：不能以数字、中划线、下划线开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1 ~ 128个字符之间。
        :param pulumi.Input[builtins.str] lifecycle_hook_policy: 实例挂起状态结束后执行的策略。取值：CONTINUE：继续执行。REJECT：中止后续操作。ROLLBACK：针对弹性收缩活动，会拒绝释放ECS实例，进行回滚；针对弹性扩张活动，效果同REJECT一样。
        :param pulumi.Input[builtins.int] lifecycle_hook_timeout: ECS实例保持挂起状态的时间，超时后，自动结束挂起状态，根据执行策略继续执行扩缩容行为。 请您评估自定义操作的处理时间后，设置合适的超时时间。取值：30 ～ 21600（6小时），单位 s，且必须为整数。
        :param pulumi.Input[builtins.str] lifecycle_hook_type: 伸缩活动的类型，发生指定类型的伸缩活动时，生命周期挂钩会被触发并挂起ECS实例。取值：SCALE*IN：弹性收缩活动。SCALE*OUT：弹性扩张活动。
        :param pulumi.Input[builtins.str] scaling_group_id: 伸缩组ID。
        """
        if lifecycle_command is not None:
            pulumi.set(__self__, "lifecycle_command", lifecycle_command)
        if lifecycle_hook_id is not None:
            pulumi.set(__self__, "lifecycle_hook_id", lifecycle_hook_id)
        if lifecycle_hook_name is not None:
            pulumi.set(__self__, "lifecycle_hook_name", lifecycle_hook_name)
        if lifecycle_hook_policy is not None:
            pulumi.set(__self__, "lifecycle_hook_policy", lifecycle_hook_policy)
        if lifecycle_hook_timeout is not None:
            pulumi.set(__self__, "lifecycle_hook_timeout", lifecycle_hook_timeout)
        if lifecycle_hook_type is not None:
            pulumi.set(__self__, "lifecycle_hook_type", lifecycle_hook_type)
        if scaling_group_id is not None:
            pulumi.set(__self__, "scaling_group_id", scaling_group_id)

    @property
    @pulumi.getter(name="lifecycleCommand")
    def lifecycle_command(self) -> Optional[pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs']]:
        """
        云助手相关命令信息。
        """
        return pulumi.get(self, "lifecycle_command")

    @lifecycle_command.setter
    def lifecycle_command(self, value: Optional[pulumi.Input['ScalingLifecycleHookLifecycleCommandArgs']]):
        pulumi.set(self, "lifecycle_command", value)

    @property
    @pulumi.getter(name="lifecycleHookId")
    def lifecycle_hook_id(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        生命周期挂钩ID。
        """
        return pulumi.get(self, "lifecycle_hook_id")

    @lifecycle_hook_id.setter
    def lifecycle_hook_id(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "lifecycle_hook_id", value)

    @property
    @pulumi.getter(name="lifecycleHookName")
    def lifecycle_hook_name(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        生命周期挂钩名称，创建后不可修改。取值：不能以数字、中划线、下划线开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1 ~ 128个字符之间。
        """
        return pulumi.get(self, "lifecycle_hook_name")

    @lifecycle_hook_name.setter
    def lifecycle_hook_name(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "lifecycle_hook_name", value)

    @property
    @pulumi.getter(name="lifecycleHookPolicy")
    def lifecycle_hook_policy(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        实例挂起状态结束后执行的策略。取值：CONTINUE：继续执行。REJECT：中止后续操作。ROLLBACK：针对弹性收缩活动，会拒绝释放ECS实例，进行回滚；针对弹性扩张活动，效果同REJECT一样。
        """
        return pulumi.get(self, "lifecycle_hook_policy")

    @lifecycle_hook_policy.setter
    def lifecycle_hook_policy(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "lifecycle_hook_policy", value)

    @property
    @pulumi.getter(name="lifecycleHookTimeout")
    def lifecycle_hook_timeout(self) -> Optional[pulumi.Input[builtins.int]]:
        """
        ECS实例保持挂起状态的时间，超时后，自动结束挂起状态，根据执行策略继续执行扩缩容行为。 请您评估自定义操作的处理时间后，设置合适的超时时间。取值：30 ～ 21600（6小时），单位 s，且必须为整数。
        """
        return pulumi.get(self, "lifecycle_hook_timeout")

    @lifecycle_hook_timeout.setter
    def lifecycle_hook_timeout(self, value: Optional[pulumi.Input[builtins.int]]):
        pulumi.set(self, "lifecycle_hook_timeout", value)

    @property
    @pulumi.getter(name="lifecycleHookType")
    def lifecycle_hook_type(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        伸缩活动的类型，发生指定类型的伸缩活动时，生命周期挂钩会被触发并挂起ECS实例。取值：SCALE*IN：弹性收缩活动。SCALE*OUT：弹性扩张活动。
        """
        return pulumi.get(self, "lifecycle_hook_type")

    @lifecycle_hook_type.setter
    def lifecycle_hook_type(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "lifecycle_hook_type", value)

    @property
    @pulumi.getter(name="scalingGroupId")
    def scaling_group_id(self) -> Optional[pulumi.Input[builtins.str]]:
        """
        伸缩组ID。
        """
        return pulumi.get(self, "scaling_group_id")

    @scaling_group_id.setter
    def scaling_group_id(self, value: Optional[pulumi.Input[builtins.str]]):
        pulumi.set(self, "scaling_group_id", value)


@pulumi.type_token("bytepluscc:autoscaling/scalingLifecycleHook:ScalingLifecycleHook")
class ScalingLifecycleHook(pulumi.CustomResource):
    @overload
    def __init__(__self__,
                 resource_name: str,
                 opts: Optional[pulumi.ResourceOptions] = None,
                 lifecycle_command: Optional[pulumi.Input[Union['ScalingLifecycleHookLifecycleCommandArgs', 'ScalingLifecycleHookLifecycleCommandArgsDict']]] = None,
                 lifecycle_hook_name: Optional[pulumi.Input[builtins.str]] = None,
                 lifecycle_hook_policy: Optional[pulumi.Input[builtins.str]] = None,
                 lifecycle_hook_timeout: Optional[pulumi.Input[builtins.int]] = None,
                 lifecycle_hook_type: Optional[pulumi.Input[builtins.str]] = None,
                 scaling_group_id: Optional[pulumi.Input[builtins.str]] = None,
                 __props__=None):
        """
        伸缩组触发伸缩规则、健康检查、实例数量检查后，生命周期挂钩可以将“加入中”、“移出中”、“停用中”实例的状态挂起，进入 加入/移出挂起中 状态，此时实例处于等待状态，您可以在这段时间内进行自定义操作，直至生命周期挂钩超时或您手动结束挂起。

        ## Import

        ```sh
        $ pulumi import bytepluscc:autoscaling/scalingLifecycleHook:ScalingLifecycleHook example "scaling_group_id|lifecycle_hook_id"
        ```

        :param str resource_name: The name of the resource.
        :param pulumi.ResourceOptions opts: Options for the resource.
        :param pulumi.Input[Union['ScalingLifecycleHookLifecycleCommandArgs', 'ScalingLifecycleHookLifecycleCommandArgsDict']] lifecycle_command: 云助手相关命令信息。
        :param pulumi.Input[builtins.str] lifecycle_hook_name: 生命周期挂钩名称，创建后不可修改。取值：不能以数字、中划线、下划线开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1 ~ 128个字符之间。
        :param pulumi.Input[builtins.str] lifecycle_hook_policy: 实例挂起状态结束后执行的策略。取值：CONTINUE：继续执行。REJECT：中止后续操作。ROLLBACK：针对弹性收缩活动，会拒绝释放ECS实例，进行回滚；针对弹性扩张活动，效果同REJECT一样。
        :param pulumi.Input[builtins.int] lifecycle_hook_timeout: ECS实例保持挂起状态的时间，超时后，自动结束挂起状态，根据执行策略继续执行扩缩容行为。 请您评估自定义操作的处理时间后，设置合适的超时时间。取值：30 ～ 21600（6小时），单位 s，且必须为整数。
        :param pulumi.Input[builtins.str] lifecycle_hook_type: 伸缩活动的类型，发生指定类型的伸缩活动时，生命周期挂钩会被触发并挂起ECS实例。取值：SCALE*IN：弹性收缩活动。SCALE*OUT：弹性扩张活动。
        :param pulumi.Input[builtins.str] scaling_group_id: 伸缩组ID。
        """
        ...
    @overload
    def __init__(__self__,
                 resource_name: str,
                 args: ScalingLifecycleHookArgs,
                 opts: Optional[pulumi.ResourceOptions] = None):
        """
        伸缩组触发伸缩规则、健康检查、实例数量检查后，生命周期挂钩可以将“加入中”、“移出中”、“停用中”实例的状态挂起，进入 加入/移出挂起中 状态，此时实例处于等待状态，您可以在这段时间内进行自定义操作，直至生命周期挂钩超时或您手动结束挂起。

        ## Import

        ```sh
        $ pulumi import bytepluscc:autoscaling/scalingLifecycleHook:ScalingLifecycleHook example "scaling_group_id|lifecycle_hook_id"
        ```

        :param str resource_name: The name of the resource.
        :param ScalingLifecycleHookArgs args: The arguments to use to populate this resource's properties.
        :param pulumi.ResourceOptions opts: Options for the resource.
        """
        ...
    def __init__(__self__, resource_name: str, *args, **kwargs):
        resource_args, opts = _utilities.get_resource_args_opts(ScalingLifecycleHookArgs, pulumi.ResourceOptions, *args, **kwargs)
        if resource_args is not None:
            __self__._internal_init(resource_name, opts, **resource_args.__dict__)
        else:
            __self__._internal_init(resource_name, *args, **kwargs)

    def _internal_init(__self__,
                 resource_name: str,
                 opts: Optional[pulumi.ResourceOptions] = None,
                 lifecycle_command: Optional[pulumi.Input[Union['ScalingLifecycleHookLifecycleCommandArgs', 'ScalingLifecycleHookLifecycleCommandArgsDict']]] = None,
                 lifecycle_hook_name: Optional[pulumi.Input[builtins.str]] = None,
                 lifecycle_hook_policy: Optional[pulumi.Input[builtins.str]] = None,
                 lifecycle_hook_timeout: Optional[pulumi.Input[builtins.int]] = None,
                 lifecycle_hook_type: Optional[pulumi.Input[builtins.str]] = None,
                 scaling_group_id: Optional[pulumi.Input[builtins.str]] = None,
                 __props__=None):
        opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
        if not isinstance(opts, pulumi.ResourceOptions):
            raise TypeError('Expected resource options to be a ResourceOptions instance')
        if opts.id is None:
            if __props__ is not None:
                raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
            __props__ = ScalingLifecycleHookArgs.__new__(ScalingLifecycleHookArgs)

            __props__.__dict__["lifecycle_command"] = lifecycle_command
            if lifecycle_hook_name is None and not opts.urn:
                raise TypeError("Missing required property 'lifecycle_hook_name'")
            __props__.__dict__["lifecycle_hook_name"] = lifecycle_hook_name
            if lifecycle_hook_policy is None and not opts.urn:
                raise TypeError("Missing required property 'lifecycle_hook_policy'")
            __props__.__dict__["lifecycle_hook_policy"] = lifecycle_hook_policy
            if lifecycle_hook_timeout is None and not opts.urn:
                raise TypeError("Missing required property 'lifecycle_hook_timeout'")
            __props__.__dict__["lifecycle_hook_timeout"] = lifecycle_hook_timeout
            if lifecycle_hook_type is None and not opts.urn:
                raise TypeError("Missing required property 'lifecycle_hook_type'")
            __props__.__dict__["lifecycle_hook_type"] = lifecycle_hook_type
            if scaling_group_id is None and not opts.urn:
                raise TypeError("Missing required property 'scaling_group_id'")
            __props__.__dict__["scaling_group_id"] = scaling_group_id
            __props__.__dict__["lifecycle_hook_id"] = None
        super(ScalingLifecycleHook, __self__).__init__(
            'bytepluscc:autoscaling/scalingLifecycleHook:ScalingLifecycleHook',
            resource_name,
            __props__,
            opts)

    @staticmethod
    def get(resource_name: str,
            id: pulumi.Input[str],
            opts: Optional[pulumi.ResourceOptions] = None,
            lifecycle_command: Optional[pulumi.Input[Union['ScalingLifecycleHookLifecycleCommandArgs', 'ScalingLifecycleHookLifecycleCommandArgsDict']]] = None,
            lifecycle_hook_id: Optional[pulumi.Input[builtins.str]] = None,
            lifecycle_hook_name: Optional[pulumi.Input[builtins.str]] = None,
            lifecycle_hook_policy: Optional[pulumi.Input[builtins.str]] = None,
            lifecycle_hook_timeout: Optional[pulumi.Input[builtins.int]] = None,
            lifecycle_hook_type: Optional[pulumi.Input[builtins.str]] = None,
            scaling_group_id: Optional[pulumi.Input[builtins.str]] = None) -> 'ScalingLifecycleHook':
        """
        Get an existing ScalingLifecycleHook resource's state with the given name, id, and optional extra
        properties used to qualify the lookup.

        :param str resource_name: The unique name of the resulting resource.
        :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
        :param pulumi.ResourceOptions opts: Options for the resource.
        :param pulumi.Input[Union['ScalingLifecycleHookLifecycleCommandArgs', 'ScalingLifecycleHookLifecycleCommandArgsDict']] lifecycle_command: 云助手相关命令信息。
        :param pulumi.Input[builtins.str] lifecycle_hook_id: 生命周期挂钩ID。
        :param pulumi.Input[builtins.str] lifecycle_hook_name: 生命周期挂钩名称，创建后不可修改。取值：不能以数字、中划线、下划线开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1 ~ 128个字符之间。
        :param pulumi.Input[builtins.str] lifecycle_hook_policy: 实例挂起状态结束后执行的策略。取值：CONTINUE：继续执行。REJECT：中止后续操作。ROLLBACK：针对弹性收缩活动，会拒绝释放ECS实例，进行回滚；针对弹性扩张活动，效果同REJECT一样。
        :param pulumi.Input[builtins.int] lifecycle_hook_timeout: ECS实例保持挂起状态的时间，超时后，自动结束挂起状态，根据执行策略继续执行扩缩容行为。 请您评估自定义操作的处理时间后，设置合适的超时时间。取值：30 ～ 21600（6小时），单位 s，且必须为整数。
        :param pulumi.Input[builtins.str] lifecycle_hook_type: 伸缩活动的类型，发生指定类型的伸缩活动时，生命周期挂钩会被触发并挂起ECS实例。取值：SCALE*IN：弹性收缩活动。SCALE*OUT：弹性扩张活动。
        :param pulumi.Input[builtins.str] scaling_group_id: 伸缩组ID。
        """
        opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))

        __props__ = _ScalingLifecycleHookState.__new__(_ScalingLifecycleHookState)

        __props__.__dict__["lifecycle_command"] = lifecycle_command
        __props__.__dict__["lifecycle_hook_id"] = lifecycle_hook_id
        __props__.__dict__["lifecycle_hook_name"] = lifecycle_hook_name
        __props__.__dict__["lifecycle_hook_policy"] = lifecycle_hook_policy
        __props__.__dict__["lifecycle_hook_timeout"] = lifecycle_hook_timeout
        __props__.__dict__["lifecycle_hook_type"] = lifecycle_hook_type
        __props__.__dict__["scaling_group_id"] = scaling_group_id
        return ScalingLifecycleHook(resource_name, opts=opts, __props__=__props__)

    @property
    @pulumi.getter(name="lifecycleCommand")
    def lifecycle_command(self) -> pulumi.Output['outputs.ScalingLifecycleHookLifecycleCommand']:
        """
        云助手相关命令信息。
        """
        return pulumi.get(self, "lifecycle_command")

    @property
    @pulumi.getter(name="lifecycleHookId")
    def lifecycle_hook_id(self) -> pulumi.Output[builtins.str]:
        """
        生命周期挂钩ID。
        """
        return pulumi.get(self, "lifecycle_hook_id")

    @property
    @pulumi.getter(name="lifecycleHookName")
    def lifecycle_hook_name(self) -> pulumi.Output[builtins.str]:
        """
        生命周期挂钩名称，创建后不可修改。取值：不能以数字、中划线、下划线开头。只能包含中文、字母、数字、下划线和中划线。长度限制在1 ~ 128个字符之间。
        """
        return pulumi.get(self, "lifecycle_hook_name")

    @property
    @pulumi.getter(name="lifecycleHookPolicy")
    def lifecycle_hook_policy(self) -> pulumi.Output[builtins.str]:
        """
        实例挂起状态结束后执行的策略。取值：CONTINUE：继续执行。REJECT：中止后续操作。ROLLBACK：针对弹性收缩活动，会拒绝释放ECS实例，进行回滚；针对弹性扩张活动，效果同REJECT一样。
        """
        return pulumi.get(self, "lifecycle_hook_policy")

    @property
    @pulumi.getter(name="lifecycleHookTimeout")
    def lifecycle_hook_timeout(self) -> pulumi.Output[builtins.int]:
        """
        ECS实例保持挂起状态的时间，超时后，自动结束挂起状态，根据执行策略继续执行扩缩容行为。 请您评估自定义操作的处理时间后，设置合适的超时时间。取值：30 ～ 21600（6小时），单位 s，且必须为整数。
        """
        return pulumi.get(self, "lifecycle_hook_timeout")

    @property
    @pulumi.getter(name="lifecycleHookType")
    def lifecycle_hook_type(self) -> pulumi.Output[builtins.str]:
        """
        伸缩活动的类型，发生指定类型的伸缩活动时，生命周期挂钩会被触发并挂起ECS实例。取值：SCALE*IN：弹性收缩活动。SCALE*OUT：弹性扩张活动。
        """
        return pulumi.get(self, "lifecycle_hook_type")

    @property
    @pulumi.getter(name="scalingGroupId")
    def scaling_group_id(self) -> pulumi.Output[builtins.str]:
        """
        伸缩组ID。
        """
        return pulumi.get(self, "scaling_group_id")

