1. Packages
  2. Volcenginecc Provider
  3. API Docs
  4. autoscaling
  5. getScalingLifecycleHook
Viewing docs for volcenginecc v0.0.29
published on Thursday, Apr 2, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.29
published on Thursday, Apr 2, 2026 by Volcengine

    Data Source schema for Volcengine::AutoScaling::ScalingLifecycleHook

    Using getScalingLifecycleHook

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getScalingLifecycleHook(args: GetScalingLifecycleHookArgs, opts?: InvokeOptions): Promise<GetScalingLifecycleHookResult>
    function getScalingLifecycleHookOutput(args: GetScalingLifecycleHookOutputArgs, opts?: InvokeOptions): Output<GetScalingLifecycleHookResult>
    def get_scaling_lifecycle_hook(id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetScalingLifecycleHookResult
    def get_scaling_lifecycle_hook_output(id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetScalingLifecycleHookResult]
    func LookupScalingLifecycleHook(ctx *Context, args *LookupScalingLifecycleHookArgs, opts ...InvokeOption) (*LookupScalingLifecycleHookResult, error)
    func LookupScalingLifecycleHookOutput(ctx *Context, args *LookupScalingLifecycleHookOutputArgs, opts ...InvokeOption) LookupScalingLifecycleHookResultOutput

    > Note: This function is named LookupScalingLifecycleHook in the Go SDK.

    public static class GetScalingLifecycleHook 
    {
        public static Task<GetScalingLifecycleHookResult> InvokeAsync(GetScalingLifecycleHookArgs args, InvokeOptions? opts = null)
        public static Output<GetScalingLifecycleHookResult> Invoke(GetScalingLifecycleHookInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScalingLifecycleHookResult> getScalingLifecycleHook(GetScalingLifecycleHookArgs args, InvokeOptions options)
    public static Output<GetScalingLifecycleHookResult> getScalingLifecycleHook(GetScalingLifecycleHookArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcenginecc:autoscaling/getScalingLifecycleHook:getScalingLifecycleHook
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Uniquely identifies the resource.
    Id string
    Uniquely identifies the resource.
    id String
    Uniquely identifies the resource.
    id string
    Uniquely identifies the resource.
    id str
    Uniquely identifies the resource.
    id String
    Uniquely identifies the resource.

    getScalingLifecycleHook Result

    The following output properties are available:

    Id string
    Uniquely identifies the resource.
    LifecycleCommand Volcengine.GetScalingLifecycleHookLifecycleCommand
    Cloud Assistant command information.
    LifecycleHookId string
    Lifecycle hook ID.
    LifecycleHookName string
    Lifecycle hook name, cannot be modified after creation. Values: Cannot start with a digit, hyphen, or underscore. Can only contain Chinese characters, letters, digits, underscores, and hyphens. Length must be between 1 and 128 characters.
    LifecycleHookPolicy string
    Policy executed after the instance suspension ends. Values: CONTINUE: Continue execution. REJECT: Abort subsequent actions. ROLLBACK: For elastic scale-in activities, the release of ECS instances is rejected and rollback is performed; for elastic scale-out activities, the effect is the same as REJECT.
    LifecycleHookTimeout int
    Duration for which the ECS instance remains suspended. After timeout, the suspended state ends automatically and scaling actions continue according to the execution policy. Please evaluate the processing time for custom operations and set an appropriate timeout. Values: 30 to 21600 (6 hours), unit: s, must be an integer.
    LifecycleHookType string
    Type of scaling activity. When a specified type of scaling activity occurs, the lifecycle hook is triggered and the ECS instance is suspended. Values: SCALEIN: Elastic scale-in activity. SCALEOUT: Elastic scale-out activity.
    ScalingGroupId string
    Scaling group ID.
    Id string
    Uniquely identifies the resource.
    LifecycleCommand GetScalingLifecycleHookLifecycleCommand
    Cloud Assistant command information.
    LifecycleHookId string
    Lifecycle hook ID.
    LifecycleHookName string
    Lifecycle hook name, cannot be modified after creation. Values: Cannot start with a digit, hyphen, or underscore. Can only contain Chinese characters, letters, digits, underscores, and hyphens. Length must be between 1 and 128 characters.
    LifecycleHookPolicy string
    Policy executed after the instance suspension ends. Values: CONTINUE: Continue execution. REJECT: Abort subsequent actions. ROLLBACK: For elastic scale-in activities, the release of ECS instances is rejected and rollback is performed; for elastic scale-out activities, the effect is the same as REJECT.
    LifecycleHookTimeout int
    Duration for which the ECS instance remains suspended. After timeout, the suspended state ends automatically and scaling actions continue according to the execution policy. Please evaluate the processing time for custom operations and set an appropriate timeout. Values: 30 to 21600 (6 hours), unit: s, must be an integer.
    LifecycleHookType string
    Type of scaling activity. When a specified type of scaling activity occurs, the lifecycle hook is triggered and the ECS instance is suspended. Values: SCALEIN: Elastic scale-in activity. SCALEOUT: Elastic scale-out activity.
    ScalingGroupId string
    Scaling group ID.
    id String
    Uniquely identifies the resource.
    lifecycleCommand GetScalingLifecycleHookLifecycleCommand
    Cloud Assistant command information.
    lifecycleHookId String
    Lifecycle hook ID.
    lifecycleHookName String
    Lifecycle hook name, cannot be modified after creation. Values: Cannot start with a digit, hyphen, or underscore. Can only contain Chinese characters, letters, digits, underscores, and hyphens. Length must be between 1 and 128 characters.
    lifecycleHookPolicy String
    Policy executed after the instance suspension ends. Values: CONTINUE: Continue execution. REJECT: Abort subsequent actions. ROLLBACK: For elastic scale-in activities, the release of ECS instances is rejected and rollback is performed; for elastic scale-out activities, the effect is the same as REJECT.
    lifecycleHookTimeout Integer
    Duration for which the ECS instance remains suspended. After timeout, the suspended state ends automatically and scaling actions continue according to the execution policy. Please evaluate the processing time for custom operations and set an appropriate timeout. Values: 30 to 21600 (6 hours), unit: s, must be an integer.
    lifecycleHookType String
    Type of scaling activity. When a specified type of scaling activity occurs, the lifecycle hook is triggered and the ECS instance is suspended. Values: SCALEIN: Elastic scale-in activity. SCALEOUT: Elastic scale-out activity.
    scalingGroupId String
    Scaling group ID.
    id string
    Uniquely identifies the resource.
    lifecycleCommand GetScalingLifecycleHookLifecycleCommand
    Cloud Assistant command information.
    lifecycleHookId string
    Lifecycle hook ID.
    lifecycleHookName string
    Lifecycle hook name, cannot be modified after creation. Values: Cannot start with a digit, hyphen, or underscore. Can only contain Chinese characters, letters, digits, underscores, and hyphens. Length must be between 1 and 128 characters.
    lifecycleHookPolicy string
    Policy executed after the instance suspension ends. Values: CONTINUE: Continue execution. REJECT: Abort subsequent actions. ROLLBACK: For elastic scale-in activities, the release of ECS instances is rejected and rollback is performed; for elastic scale-out activities, the effect is the same as REJECT.
    lifecycleHookTimeout number
    Duration for which the ECS instance remains suspended. After timeout, the suspended state ends automatically and scaling actions continue according to the execution policy. Please evaluate the processing time for custom operations and set an appropriate timeout. Values: 30 to 21600 (6 hours), unit: s, must be an integer.
    lifecycleHookType string
    Type of scaling activity. When a specified type of scaling activity occurs, the lifecycle hook is triggered and the ECS instance is suspended. Values: SCALEIN: Elastic scale-in activity. SCALEOUT: Elastic scale-out activity.
    scalingGroupId string
    Scaling group ID.
    id str
    Uniquely identifies the resource.
    lifecycle_command GetScalingLifecycleHookLifecycleCommand
    Cloud Assistant command information.
    lifecycle_hook_id str
    Lifecycle hook ID.
    lifecycle_hook_name str
    Lifecycle hook name, cannot be modified after creation. Values: Cannot start with a digit, hyphen, or underscore. Can only contain Chinese characters, letters, digits, underscores, and hyphens. Length must be between 1 and 128 characters.
    lifecycle_hook_policy str
    Policy executed after the instance suspension ends. Values: CONTINUE: Continue execution. REJECT: Abort subsequent actions. ROLLBACK: For elastic scale-in activities, the release of ECS instances is rejected and rollback is performed; for elastic scale-out activities, the effect is the same as REJECT.
    lifecycle_hook_timeout int
    Duration for which the ECS instance remains suspended. After timeout, the suspended state ends automatically and scaling actions continue according to the execution policy. Please evaluate the processing time for custom operations and set an appropriate timeout. Values: 30 to 21600 (6 hours), unit: s, must be an integer.
    lifecycle_hook_type str
    Type of scaling activity. When a specified type of scaling activity occurs, the lifecycle hook is triggered and the ECS instance is suspended. Values: SCALEIN: Elastic scale-in activity. SCALEOUT: Elastic scale-out activity.
    scaling_group_id str
    Scaling group ID.
    id String
    Uniquely identifies the resource.
    lifecycleCommand Property Map
    Cloud Assistant command information.
    lifecycleHookId String
    Lifecycle hook ID.
    lifecycleHookName String
    Lifecycle hook name, cannot be modified after creation. Values: Cannot start with a digit, hyphen, or underscore. Can only contain Chinese characters, letters, digits, underscores, and hyphens. Length must be between 1 and 128 characters.
    lifecycleHookPolicy String
    Policy executed after the instance suspension ends. Values: CONTINUE: Continue execution. REJECT: Abort subsequent actions. ROLLBACK: For elastic scale-in activities, the release of ECS instances is rejected and rollback is performed; for elastic scale-out activities, the effect is the same as REJECT.
    lifecycleHookTimeout Number
    Duration for which the ECS instance remains suspended. After timeout, the suspended state ends automatically and scaling actions continue according to the execution policy. Please evaluate the processing time for custom operations and set an appropriate timeout. Values: 30 to 21600 (6 hours), unit: s, must be an integer.
    lifecycleHookType String
    Type of scaling activity. When a specified type of scaling activity occurs, the lifecycle hook is triggered and the ECS instance is suspended. Values: SCALEIN: Elastic scale-in activity. SCALEOUT: Elastic scale-out activity.
    scalingGroupId String
    Scaling group ID.

    Supporting Types

    GetScalingLifecycleHookLifecycleCommand

    CommandId string
    Cloud Assistant command ID, indicates that after the lifecycle hook is triggered, the Cloud Assistant command is executed on the instance. If the command executes successfully, the post-suspend policy is executed according to CONTINUE. If the command fails, times out, or the lifecycle hook times out, the post-suspend policy is executed according to the LifecycleHookPolicy parameter configuration.
    Parameters string
    Parameters and values in the Cloud Assistant command. The number of parameters ranges from 0 to 60. Note: Parameters cannot be empty strings and can have up to 64 characters. Values can be empty strings. After Base64 encoding, the combined length of parameters and the original command content must not exceed 16 KB. The set of parameter names must be a subset of the parameter set defined when creating the command. Default values are used for parameters not provided.
    CommandId string
    Cloud Assistant command ID, indicates that after the lifecycle hook is triggered, the Cloud Assistant command is executed on the instance. If the command executes successfully, the post-suspend policy is executed according to CONTINUE. If the command fails, times out, or the lifecycle hook times out, the post-suspend policy is executed according to the LifecycleHookPolicy parameter configuration.
    Parameters string
    Parameters and values in the Cloud Assistant command. The number of parameters ranges from 0 to 60. Note: Parameters cannot be empty strings and can have up to 64 characters. Values can be empty strings. After Base64 encoding, the combined length of parameters and the original command content must not exceed 16 KB. The set of parameter names must be a subset of the parameter set defined when creating the command. Default values are used for parameters not provided.
    commandId String
    Cloud Assistant command ID, indicates that after the lifecycle hook is triggered, the Cloud Assistant command is executed on the instance. If the command executes successfully, the post-suspend policy is executed according to CONTINUE. If the command fails, times out, or the lifecycle hook times out, the post-suspend policy is executed according to the LifecycleHookPolicy parameter configuration.
    parameters String
    Parameters and values in the Cloud Assistant command. The number of parameters ranges from 0 to 60. Note: Parameters cannot be empty strings and can have up to 64 characters. Values can be empty strings. After Base64 encoding, the combined length of parameters and the original command content must not exceed 16 KB. The set of parameter names must be a subset of the parameter set defined when creating the command. Default values are used for parameters not provided.
    commandId string
    Cloud Assistant command ID, indicates that after the lifecycle hook is triggered, the Cloud Assistant command is executed on the instance. If the command executes successfully, the post-suspend policy is executed according to CONTINUE. If the command fails, times out, or the lifecycle hook times out, the post-suspend policy is executed according to the LifecycleHookPolicy parameter configuration.
    parameters string
    Parameters and values in the Cloud Assistant command. The number of parameters ranges from 0 to 60. Note: Parameters cannot be empty strings and can have up to 64 characters. Values can be empty strings. After Base64 encoding, the combined length of parameters and the original command content must not exceed 16 KB. The set of parameter names must be a subset of the parameter set defined when creating the command. Default values are used for parameters not provided.
    command_id str
    Cloud Assistant command ID, indicates that after the lifecycle hook is triggered, the Cloud Assistant command is executed on the instance. If the command executes successfully, the post-suspend policy is executed according to CONTINUE. If the command fails, times out, or the lifecycle hook times out, the post-suspend policy is executed according to the LifecycleHookPolicy parameter configuration.
    parameters str
    Parameters and values in the Cloud Assistant command. The number of parameters ranges from 0 to 60. Note: Parameters cannot be empty strings and can have up to 64 characters. Values can be empty strings. After Base64 encoding, the combined length of parameters and the original command content must not exceed 16 KB. The set of parameter names must be a subset of the parameter set defined when creating the command. Default values are used for parameters not provided.
    commandId String
    Cloud Assistant command ID, indicates that after the lifecycle hook is triggered, the Cloud Assistant command is executed on the instance. If the command executes successfully, the post-suspend policy is executed according to CONTINUE. If the command fails, times out, or the lifecycle hook times out, the post-suspend policy is executed according to the LifecycleHookPolicy parameter configuration.
    parameters String
    Parameters and values in the Cloud Assistant command. The number of parameters ranges from 0 to 60. Note: Parameters cannot be empty strings and can have up to 64 characters. Values can be empty strings. After Base64 encoding, the combined length of parameters and the original command content must not exceed 16 KB. The set of parameter names must be a subset of the parameter set defined when creating the command. Default values are used for parameters not provided.

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.29
    published on Thursday, Apr 2, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.