{
  "info": {
    "_postman_id": "c2eb2c2c-9d8f-4ad8-8d8f-1dc20e5c9b0c",
    "name": "Auto Scaling #Action=AttachInstances #Action=AttachInstances #Action=SetInstanceProtection API",
    "description": "<fullname>Amazon EC2 Auto Scaling</fullname> <p>Amazon EC2 Auto Scaling is designed to automatically launch and terminate EC2 instances based on user-defined scaling policies, scheduled actions, and health checks.</p> <p>For more information, see the <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/\">Amazon EC2 Auto Scaling User Guide</a> and the <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/APIReference/Welcome.html\">Amazon EC2 Auto Scaling API Reference</a>.</p>\n\nContact Support:\n Name: Mike Ralphson\n Email: mike.ralphson@gmail.com",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T10:20:06.000Z",
    "updatedAt": "2026-07-28T10:20:06.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-c2eb2c2c-9d8f-4ad8-8d8f-1dc20e5c9b0c"
  },
  "item": [
    {
      "name": "#Action=SetInstanceProtection",
      "item": [
        {
          "name": "Amazon EC2 Auto Scaling GET_ Set Instance Protection",
          "id": "34ca2095-dbf6-48bf-a2c2-65f83b5ba816",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-Amz-Content-Sha256",
                "value": "<string>"
              },
              {
                "key": "X-Amz-Date",
                "value": "<string>"
              },
              {
                "key": "X-Amz-Algorithm",
                "value": "<string>"
              },
              {
                "key": "X-Amz-Credential",
                "value": "<string>"
              },
              {
                "key": "X-Amz-Security-Token",
                "value": "<string>"
              },
              {
                "key": "X-Amz-Signature",
                "value": "<string>"
              },
              {
                "key": "X-Amz-SignedHeaders",
                "value": "<string>"
              },
              {
                "key": "Accept",
                "value": "text/xml"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/?InstanceIds=<string>&InstanceIds=<string>&AutoScalingGroupName=<string>&ProtectedFromScaleIn=<boolean>&Action=SetInstanceProtection&Version=2011-01-01#Action=SetInstanceProtection",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                ""
              ],
              "query": [
                {
                  "description": "(Required) One or more instance IDs. You can specify up to 50 instances.",
                  "key": "InstanceIds",
                  "value": "<string>"
                },
                {
                  "description": "(Required) One or more instance IDs. You can specify up to 50 instances.",
                  "key": "InstanceIds",
                  "value": "<string>"
                },
                {
                  "description": "(Required) The name of the Auto Scaling group.",
                  "key": "AutoScalingGroupName",
                  "value": "<string>"
                },
                {
                  "description": "(Required) Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.",
                  "key": "ProtectedFromScaleIn",
                  "value": "<boolean>"
                },
                {
                  "description": "(Required) ",
                  "key": "Action",
                  "value": "SetInstanceProtection"
                },
                {
                  "description": "(Required) ",
                  "key": "Version",
                  "value": "2011-01-01"
                }
              ],
              "hash": "Action=SetInstanceProtection"
            },
            "description": "<p>Updates the instance protection settings of the specified instances. This operation cannot be called on instances in a warm pool.</p> <p>For more information about preventing instances that are part of an Auto Scaling group from terminating on scale in, see <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html\">Using instance scale-in protection</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p> <p>If you exceed your maximum limit of instance IDs, which is 50 per Auto Scaling group, the call fails.</p>"
          },
          "response": [
            {
              "id": "948bc91c-e5e6-4a4f-8d8b-4c6bf487f735",
              "name": "Success",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Amz-Content-Sha256",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Date",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Algorithm",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Credential",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Security-Token",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Signature",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-SignedHeaders",
                    "value": "<string>"
                  },
                  {
                    "key": "Accept",
                    "value": "text/xml"
                  },
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "Authorization",
                    "value": "<API Key>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/?InstanceIds=<string>&AutoScalingGroupName=<string>&ProtectedFromScaleIn=<boolean>&Action=SetInstanceProtection&Version=2011-01-01#Action=SetInstanceProtection",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    ""
                  ],
                  "query": [
                    {
                      "description": "(Required) One or more instance IDs. You can specify up to 50 instances.",
                      "key": "InstanceIds",
                      "value": "<string>"
                    },
                    {
                      "description": "(Required) The name of the Auto Scaling group.",
                      "key": "AutoScalingGroupName",
                      "value": "<string>"
                    },
                    {
                      "description": "(Required) Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.",
                      "key": "ProtectedFromScaleIn",
                      "value": "<boolean>"
                    },
                    {
                      "description": "(Required) ",
                      "key": "Action",
                      "value": "SetInstanceProtection"
                    },
                    {
                      "description": "(Required) ",
                      "key": "Version",
                      "value": "2011-01-01"
                    }
                  ],
                  "hash": "Action=SetInstanceProtection"
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "xml",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "text/xml"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<element>\n</element>",
              "createdAt": "2026-07-28T10:20:07.000Z",
              "updatedAt": "2026-07-28T10:20:07.000Z",
              "uid": "35240-948bc91c-e5e6-4a4f-8d8b-4c6bf487f735"
            },
            {
              "id": "3fa0eae1-1968-442d-b57b-2a4b4264d1b8",
              "name": "LimitExceededFault",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Amz-Content-Sha256",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Date",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Algorithm",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Credential",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Security-Token",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Signature",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-SignedHeaders",
                    "value": "<string>"
                  },
                  {
                    "key": "Accept",
                    "value": "text/xml"
                  },
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "Authorization",
                    "value": "<API Key>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/?InstanceIds=<string>&AutoScalingGroupName=<string>&ProtectedFromScaleIn=<boolean>&Action=SetInstanceProtection&Version=2011-01-01#Action=SetInstanceProtection",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    ""
                  ],
                  "query": [
                    {
                      "description": "(Required) One or more instance IDs. You can specify up to 50 instances.",
                      "key": "InstanceIds",
                      "value": "<string>"
                    },
                    {
                      "description": "(Required) The name of the Auto Scaling group.",
                      "key": "AutoScalingGroupName",
                      "value": "<string>"
                    },
                    {
                      "description": "(Required) Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.",
                      "key": "ProtectedFromScaleIn",
                      "value": "<boolean>"
                    },
                    {
                      "description": "(Required) ",
                      "key": "Action",
                      "value": "SetInstanceProtection"
                    },
                    {
                      "description": "(Required) ",
                      "key": "Version",
                      "value": "2011-01-01"
                    }
                  ],
                  "hash": "Action=SetInstanceProtection"
                }
              },
              "_postman_previewlanguage": "xml",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "text/xml"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "",
              "createdAt": "2026-07-28T10:20:07.000Z",
              "updatedAt": "2026-07-28T10:20:07.000Z",
              "uid": "35240-3fa0eae1-1968-442d-b57b-2a4b4264d1b8"
            },
            {
              "id": "11f53fb3-bc58-452b-9c08-f69c9200a37e",
              "name": "ResourceContentionFault",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-Amz-Content-Sha256",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Date",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Algorithm",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Credential",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Security-Token",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Signature",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-SignedHeaders",
                    "value": "<string>"
                  },
                  {
                    "key": "Accept",
                    "value": "text/xml"
                  },
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "Authorization",
                    "value": "<API Key>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/?InstanceIds=<string>&AutoScalingGroupName=<string>&ProtectedFromScaleIn=<boolean>&Action=SetInstanceProtection&Version=2011-01-01#Action=SetInstanceProtection",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    ""
                  ],
                  "query": [
                    {
                      "description": "(Required) One or more instance IDs. You can specify up to 50 instances.",
                      "key": "InstanceIds",
                      "value": "<string>"
                    },
                    {
                      "description": "(Required) The name of the Auto Scaling group.",
                      "key": "AutoScalingGroupName",
                      "value": "<string>"
                    },
                    {
                      "description": "(Required) Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.",
                      "key": "ProtectedFromScaleIn",
                      "value": "<boolean>"
                    },
                    {
                      "description": "(Required) ",
                      "key": "Action",
                      "value": "SetInstanceProtection"
                    },
                    {
                      "description": "(Required) ",
                      "key": "Version",
                      "value": "2011-01-01"
                    }
                  ],
                  "hash": "Action=SetInstanceProtection"
                }
              },
              "_postman_previewlanguage": "xml",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "text/xml"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "",
              "createdAt": "2026-07-28T10:20:07.000Z",
              "updatedAt": "2026-07-28T10:20:07.000Z",
              "uid": "35240-11f53fb3-bc58-452b-9c08-f69c9200a37e"
            }
          ],
          "createdAt": "2026-07-28T10:20:07.000Z",
          "updatedAt": "2026-07-28T10:20:07.000Z",
          "uid": "35240-34ca2095-dbf6-48bf-a2c2-65f83b5ba816"
        },
        {
          "name": "Amazon EC2 Auto Scaling POST_ Set Instance Protection",
          "id": "217c1597-e4af-48d9-9a12-8acb1ae48fa0",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-Amz-Content-Sha256",
                "value": "<string>"
              },
              {
                "key": "X-Amz-Date",
                "value": "<string>"
              },
              {
                "key": "X-Amz-Algorithm",
                "value": "<string>"
              },
              {
                "key": "X-Amz-Credential",
                "value": "<string>"
              },
              {
                "key": "X-Amz-Security-Token",
                "value": "<string>"
              },
              {
                "key": "X-Amz-Signature",
                "value": "<string>"
              },
              {
                "key": "X-Amz-SignedHeaders",
                "value": "<string>"
              },
              {
                "key": "Content-Type",
                "value": "text/xml"
              },
              {
                "key": "Accept",
                "value": "text/xml"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<element>\n  <InstanceIds>(string)</InstanceIds>\n  <InstanceIds>(string)</InstanceIds>\n  <AutoScalingGroupName>(string)</AutoScalingGroupName>\n  <ProtectedFromScaleIn>(boolean)</ProtectedFromScaleIn>\n</element>",
              "options": {
                "raw": {
                  "headerFamily": "xml",
                  "language": "xml"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/?Action=SetInstanceProtection&Version=2011-01-01#Action=SetInstanceProtection",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                ""
              ],
              "query": [
                {
                  "description": "(Required) ",
                  "key": "Action",
                  "value": "SetInstanceProtection"
                },
                {
                  "description": "(Required) ",
                  "key": "Version",
                  "value": "2011-01-01"
                }
              ],
              "hash": "Action=SetInstanceProtection"
            },
            "description": "<p>Updates the instance protection settings of the specified instances. This operation cannot be called on instances in a warm pool.</p> <p>For more information about preventing instances that are part of an Auto Scaling group from terminating on scale in, see <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html\">Using instance scale-in protection</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p> <p>If you exceed your maximum limit of instance IDs, which is 50 per Auto Scaling group, the call fails.</p>"
          },
          "response": [
            {
              "id": "b1d0c343-c6f2-4704-80aa-f76a113ec4e3",
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "X-Amz-Content-Sha256",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Date",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Algorithm",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Credential",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Security-Token",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Signature",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-SignedHeaders",
                    "value": "<string>"
                  },
                  {
                    "key": "Content-Type",
                    "value": "text/xml"
                  },
                  {
                    "key": "Accept",
                    "value": "text/xml"
                  },
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "Authorization",
                    "value": "<API Key>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<element>\n  <InstanceIds>(string)</InstanceIds>\n  <InstanceIds>(string)</InstanceIds>\n  <AutoScalingGroupName>(string)</AutoScalingGroupName>\n  <ProtectedFromScaleIn>(boolean)</ProtectedFromScaleIn>\n</element>",
                  "options": {
                    "raw": {
                      "headerFamily": "xml",
                      "language": "xml"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/?Action=SetInstanceProtection&Version=2011-01-01#Action=SetInstanceProtection",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    ""
                  ],
                  "query": [
                    {
                      "description": "(Required) ",
                      "key": "Action",
                      "value": "SetInstanceProtection"
                    },
                    {
                      "description": "(Required) ",
                      "key": "Version",
                      "value": "2011-01-01"
                    }
                  ],
                  "hash": "Action=SetInstanceProtection"
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "xml",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "text/xml"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<element>\n</element>",
              "createdAt": "2026-07-28T10:20:07.000Z",
              "updatedAt": "2026-07-28T10:20:07.000Z",
              "uid": "35240-b1d0c343-c6f2-4704-80aa-f76a113ec4e3"
            },
            {
              "id": "13b040cc-447a-4ff9-a525-006d463b7a36",
              "name": "LimitExceededFault",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "X-Amz-Content-Sha256",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Date",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Algorithm",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Credential",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Security-Token",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Signature",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-SignedHeaders",
                    "value": "<string>"
                  },
                  {
                    "key": "Content-Type",
                    "value": "text/xml"
                  },
                  {
                    "key": "Accept",
                    "value": "text/xml"
                  },
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "Authorization",
                    "value": "<API Key>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<element>\n  <InstanceIds>(string)</InstanceIds>\n  <InstanceIds>(string)</InstanceIds>\n  <AutoScalingGroupName>(string)</AutoScalingGroupName>\n  <ProtectedFromScaleIn>(boolean)</ProtectedFromScaleIn>\n</element>",
                  "options": {
                    "raw": {
                      "headerFamily": "xml",
                      "language": "xml"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/?Action=SetInstanceProtection&Version=2011-01-01#Action=SetInstanceProtection",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    ""
                  ],
                  "query": [
                    {
                      "description": "(Required) ",
                      "key": "Action",
                      "value": "SetInstanceProtection"
                    },
                    {
                      "description": "(Required) ",
                      "key": "Version",
                      "value": "2011-01-01"
                    }
                  ],
                  "hash": "Action=SetInstanceProtection"
                }
              },
              "_postman_previewlanguage": "xml",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "text/xml"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "",
              "createdAt": "2026-07-28T10:20:07.000Z",
              "updatedAt": "2026-07-28T10:20:07.000Z",
              "uid": "35240-13b040cc-447a-4ff9-a525-006d463b7a36"
            },
            {
              "id": "2cf659cd-4e1d-44c8-803e-f90211797836",
              "name": "ResourceContentionFault",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "X-Amz-Content-Sha256",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Date",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Algorithm",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Credential",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Security-Token",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-Signature",
                    "value": "<string>"
                  },
                  {
                    "key": "X-Amz-SignedHeaders",
                    "value": "<string>"
                  },
                  {
                    "key": "Content-Type",
                    "value": "text/xml"
                  },
                  {
                    "key": "Accept",
                    "value": "text/xml"
                  },
                  {
                    "description": "Added as a part of security scheme: apikey",
                    "key": "Authorization",
                    "value": "<API Key>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<element>\n  <InstanceIds>(string)</InstanceIds>\n  <InstanceIds>(string)</InstanceIds>\n  <AutoScalingGroupName>(string)</AutoScalingGroupName>\n  <ProtectedFromScaleIn>(boolean)</ProtectedFromScaleIn>\n</element>",
                  "options": {
                    "raw": {
                      "headerFamily": "xml",
                      "language": "xml"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/?Action=SetInstanceProtection&Version=2011-01-01#Action=SetInstanceProtection",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    ""
                  ],
                  "query": [
                    {
                      "description": "(Required) ",
                      "key": "Action",
                      "value": "SetInstanceProtection"
                    },
                    {
                      "description": "(Required) ",
                      "key": "Version",
                      "value": "2011-01-01"
                    }
                  ],
                  "hash": "Action=SetInstanceProtection"
                }
              },
              "_postman_previewlanguage": "xml",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "text/xml"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "",
              "createdAt": "2026-07-28T10:20:07.000Z",
              "updatedAt": "2026-07-28T10:20:07.000Z",
              "uid": "35240-2cf659cd-4e1d-44c8-803e-f90211797836"
            }
          ],
          "createdAt": "2026-07-28T10:20:07.000Z",
          "updatedAt": "2026-07-28T10:20:07.000Z",
          "uid": "35240-217c1597-e4af-48d9-9a12-8acb1ae48fa0"
        }
      ],
      "id": "a11b08ff-2d1d-4079-8027-68df3a1bf110",
      "createdAt": "2026-07-28T10:20:07.000Z",
      "updatedAt": "2026-07-28T10:20:07.000Z",
      "uid": "35240-a11b08ff-2d1d-4079-8027-68df3a1bf110"
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "Authorization",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "region",
      "value": "us-east-1"
    },
    {
      "key": "baseUrl",
      "value": "http://autoscaling.{{region}}.amazonaws.com"
    }
  ]
}