{
  "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": "<p>The lifecycle transition. For Auto Scaling groups, there are two major lifecycle transitions.</p> <ul> <li> <p>To create a lifecycle hook for scale-out events, specify <code>autoscaling:EC2_INSTANCE_LAUNCHING</code>.</p> </li> <li> <p>To create a lifecycle hook for scale-in events, specify <code>autoscaling:EC2_INSTANCE_TERMINATING</code>.</p> </li> </ul> <p>Required for new lifecycle hooks, but optional when updating existing hooks.</p>"
              },
              {
                "name": "RoleARN",
                "value": "",
                "type": "query",
                "description": "<p>The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.</p> <p>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.</p>"
              },
              {
                "name": "NotificationTargetARN",
                "value": "",
                "type": "query",
                "description": "<p>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.</p> <p>If you specify an empty string, this overrides the current ARN.</p> <p>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.</p> <p>When you specify a notification target, Amazon EC2 Auto Scaling sends it a test message. Test messages contain the following additional key-value pair: <code>\"Event\": \"autoscaling:TEST_NOTIFICATION\"</code>.</p>"
              },
              {
                "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 <code>30</code> to <code>7200</code> seconds. The default value is <code>3600</code> seconds (1 hour)."
              },
              {
                "name": "DefaultResult",
                "value": "",
                "type": "query",
                "description": "<p>The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs. The default value is <code>ABANDON</code>.</p> <p>Valid values: <code>CONTINUE</code> | <code>ABANDON</code> </p>"
              },
              {
                "name": "Action",
                "value": "",
                "type": "query"
              },
              {
                "name": "Version",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "<p>Creates or updates a lifecycle hook for the specified Auto Scaling group.</p> <p>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.</p> <p>This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:</p> <ol> <li> <p>(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": "<p>Creates or updates a lifecycle hook for the specified Auto Scaling group.</p> <p>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.</p> <p>This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:</p> <ol> <li> <p>(Optional) Create a launch template or launch configuration with a user data script that runs while an"
        }
      ]
    }
  ],
  "bundled": true
}