{ "opencollection": "1.0.0", "info": { "name": "Auto Scaling #Action=AttachInstances #Action=AttachInstances #Action=PutLifecycleHook API", "version": "1.0.0" }, "request": { "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "items": [ { "info": { "name": "#Action=PutLifecycleHook", "type": "folder" }, "items": [ { "info": { "name": "Amazon EC2 Auto Scaling GET_ Put Lifecycle Hook", "type": "http" }, "http": { "method": "GET", "url": "http://autoscaling.{region}.amazonaws.com/#Action=PutLifecycleHook", "headers": [ { "name": "X-Amz-Content-Sha256", "value": "" }, { "name": "X-Amz-Date", "value": "" }, { "name": "X-Amz-Algorithm", "value": "" }, { "name": "X-Amz-Credential", "value": "" }, { "name": "X-Amz-Security-Token", "value": "" }, { "name": "X-Amz-Signature", "value": "" }, { "name": "X-Amz-SignedHeaders", "value": "" } ], "params": [ { "name": "LifecycleHookName", "value": "", "type": "query", "description": "The name of the lifecycle hook." }, { "name": "AutoScalingGroupName", "value": "", "type": "query", "description": "The name of the Auto Scaling group." }, { "name": "LifecycleTransition", "value": "", "type": "query", "description": "

The lifecycle transition. For Auto Scaling groups, there are two major lifecycle transitions.

Required for new lifecycle hooks, but optional when updating existing hooks.

" }, { "name": "RoleARN", "value": "", "type": "query", "description": "

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.

Valid only if the notification target is an Amazon SNS topic or an Amazon SQS queue. Required for new lifecycle hooks, but optional when updating existing hooks.

" }, { "name": "NotificationTargetARN", "value": "", "type": "query", "description": "

The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling uses to notify you when an instance is in a wait state for the lifecycle hook. You can specify either an Amazon SNS topic or an Amazon SQS queue.

If you specify an empty string, this overrides the current ARN.

This operation uses the JSON format when sending notifications to an Amazon SQS queue, and an email key-value pair format when sending notifications to an Amazon SNS topic.

When you specify a notification target, Amazon EC2 Auto Scaling sends it a test message. Test messages contain the following additional key-value pair: \"Event\": \"autoscaling:TEST_NOTIFICATION\".

" }, { "name": "NotificationMetadata", "value": "", "type": "query", "description": "Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target." }, { "name": "HeartbeatTimeout", "value": "", "type": "query", "description": "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)." }, { "name": "DefaultResult", "value": "", "type": "query", "description": "

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

" }, { "name": "Action", "value": "", "type": "query" }, { "name": "Version", "value": "", "type": "query" } ] }, "docs": "

Creates or updates a lifecycle hook for the specified Auto Scaling group.

Lifecycle hooks let you create solutions that are aware of events in the Auto Scaling instance lifecycle, and then perform a custom action on instances when the corresponding lifecycle event occurs.

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a launch template or launch configuration with a user data script that runs while an" }, { "info": { "name": "Amazon EC2 Auto Scaling POST_ Put Lifecycle Hook", "type": "http" }, "http": { "method": "POST", "url": "http://autoscaling.{region}.amazonaws.com/#Action=PutLifecycleHook", "headers": [ { "name": "X-Amz-Content-Sha256", "value": "" }, { "name": "X-Amz-Date", "value": "" }, { "name": "X-Amz-Algorithm", "value": "" }, { "name": "X-Amz-Credential", "value": "" }, { "name": "X-Amz-Security-Token", "value": "" }, { "name": "X-Amz-Signature", "value": "" }, { "name": "X-Amz-SignedHeaders", "value": "" } ], "params": [ { "name": "Action", "value": "", "type": "query" }, { "name": "Version", "value": "", "type": "query" } ] }, "docs": "

    Creates or updates a lifecycle hook for the specified Auto Scaling group.

    Lifecycle hooks let you create solutions that are aware of events in the Auto Scaling instance lifecycle, and then perform a custom action on instances when the corresponding lifecycle event occurs.

    This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

    1. (Optional) Create a launch template or launch configuration with a user data script that runs while an" } ] } ], "bundled": true }