We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi
aws-native.autoscaling.getLifecycleHook
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi
Resource Type definition for AWS::AutoScaling::LifecycleHook
Using getLifecycleHook
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 getLifecycleHook(args: GetLifecycleHookArgs, opts?: InvokeOptions): Promise<GetLifecycleHookResult>
function getLifecycleHookOutput(args: GetLifecycleHookOutputArgs, opts?: InvokeOptions): Output<GetLifecycleHookResult>
def get_lifecycle_hook(auto_scaling_group_name: Optional[str] = None,
lifecycle_hook_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLifecycleHookResult
def get_lifecycle_hook_output(auto_scaling_group_name: Optional[pulumi.Input[str]] = None,
lifecycle_hook_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLifecycleHookResult]
func LookupLifecycleHook(ctx *Context, args *LookupLifecycleHookArgs, opts ...InvokeOption) (*LookupLifecycleHookResult, error)
func LookupLifecycleHookOutput(ctx *Context, args *LookupLifecycleHookOutputArgs, opts ...InvokeOption) LookupLifecycleHookResultOutput
> Note: This function is named LookupLifecycleHook
in the Go SDK.
public static class GetLifecycleHook
{
public static Task<GetLifecycleHookResult> InvokeAsync(GetLifecycleHookArgs args, InvokeOptions? opts = null)
public static Output<GetLifecycleHookResult> Invoke(GetLifecycleHookInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLifecycleHookResult> getLifecycleHook(GetLifecycleHookArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:autoscaling:getLifecycleHook
arguments:
# arguments dictionary
The following arguments are supported:
- Auto
Scaling stringGroup Name - The name of the Auto Scaling group for the lifecycle hook.
- Lifecycle
Hook stringName - The name of the lifecycle hook.
- Auto
Scaling stringGroup Name - The name of the Auto Scaling group for the lifecycle hook.
- Lifecycle
Hook stringName - The name of the lifecycle hook.
- auto
Scaling StringGroup Name - The name of the Auto Scaling group for the lifecycle hook.
- lifecycle
Hook StringName - The name of the lifecycle hook.
- auto
Scaling stringGroup Name - The name of the Auto Scaling group for the lifecycle hook.
- lifecycle
Hook stringName - The name of the lifecycle hook.
- auto_
scaling_ strgroup_ name - The name of the Auto Scaling group for the lifecycle hook.
- lifecycle_
hook_ strname - The name of the lifecycle hook.
- auto
Scaling StringGroup Name - The name of the Auto Scaling group for the lifecycle hook.
- lifecycle
Hook StringName - The name of the lifecycle hook.
getLifecycleHook Result
The following output properties are available:
- Default
Result string - The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON (default).
- Heartbeat
Timeout int - 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). If the lifecycle hook times out, Amazon EC2 Auto Scaling performs the action that you specified in the DefaultResult property.
- Lifecycle
Transition string - The instance state to which you want to attach the lifecycle hook.
- Notification
Metadata string - Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.
- Notification
Target stringArn - The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an instance is in the transition state for the lifecycle hook. You can specify an Amazon SQS queue or an Amazon SNS topic. The notification message includes the following information: lifecycle action token, user account ID, Auto Scaling group name, lifecycle hook name, instance ID, lifecycle transition, and notification metadata.
- Role
Arn string - The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.
- Default
Result string - The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON (default).
- Heartbeat
Timeout int - 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). If the lifecycle hook times out, Amazon EC2 Auto Scaling performs the action that you specified in the DefaultResult property.
- Lifecycle
Transition string - The instance state to which you want to attach the lifecycle hook.
- Notification
Metadata string - Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.
- Notification
Target stringArn - The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an instance is in the transition state for the lifecycle hook. You can specify an Amazon SQS queue or an Amazon SNS topic. The notification message includes the following information: lifecycle action token, user account ID, Auto Scaling group name, lifecycle hook name, instance ID, lifecycle transition, and notification metadata.
- Role
Arn string - The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.
- default
Result String - The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON (default).
- heartbeat
Timeout Integer - 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). If the lifecycle hook times out, Amazon EC2 Auto Scaling performs the action that you specified in the DefaultResult property.
- lifecycle
Transition String - The instance state to which you want to attach the lifecycle hook.
- notification
Metadata String - Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.
- notification
Target StringArn - The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an instance is in the transition state for the lifecycle hook. You can specify an Amazon SQS queue or an Amazon SNS topic. The notification message includes the following information: lifecycle action token, user account ID, Auto Scaling group name, lifecycle hook name, instance ID, lifecycle transition, and notification metadata.
- role
Arn String - The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.
- default
Result string - The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON (default).
- heartbeat
Timeout number - 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). If the lifecycle hook times out, Amazon EC2 Auto Scaling performs the action that you specified in the DefaultResult property.
- lifecycle
Transition string - The instance state to which you want to attach the lifecycle hook.
- notification
Metadata string - Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.
- notification
Target stringArn - The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an instance is in the transition state for the lifecycle hook. You can specify an Amazon SQS queue or an Amazon SNS topic. The notification message includes the following information: lifecycle action token, user account ID, Auto Scaling group name, lifecycle hook name, instance ID, lifecycle transition, and notification metadata.
- role
Arn string - The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.
- default_
result str - The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON (default).
- heartbeat_
timeout int - 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). If the lifecycle hook times out, Amazon EC2 Auto Scaling performs the action that you specified in the DefaultResult property.
- lifecycle_
transition str - The instance state to which you want to attach the lifecycle hook.
- notification_
metadata str - Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.
- notification_
target_ strarn - The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an instance is in the transition state for the lifecycle hook. You can specify an Amazon SQS queue or an Amazon SNS topic. The notification message includes the following information: lifecycle action token, user account ID, Auto Scaling group name, lifecycle hook name, instance ID, lifecycle transition, and notification metadata.
- role_
arn str - The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.
- default
Result String - The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs. The valid values are CONTINUE and ABANDON (default).
- heartbeat
Timeout Number - 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). If the lifecycle hook times out, Amazon EC2 Auto Scaling performs the action that you specified in the DefaultResult property.
- lifecycle
Transition String - The instance state to which you want to attach the lifecycle hook.
- notification
Metadata String - Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.
- notification
Target StringArn - The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an instance is in the transition state for the lifecycle hook. You can specify an Amazon SQS queue or an Amazon SNS topic. The notification message includes the following information: lifecycle action token, user account ID, Auto Scaling group name, lifecycle hook name, instance ID, lifecycle transition, and notification metadata.
- role
Arn String - The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi