# GroupPolicyScaleInAction

## Properties

| Name                    | Type                                                                                                                            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Notes                         |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| **amount**              | **Float**                                                                                                                       | 'amountType=ABSOLUTE' specifies the absolute number of VMs that are added or removed. The value must be between 1 to 10. 'amountType=PERCENTAGE' specifies the percentage value that is applied to the current 'targetReplicaCount' of the autoscaling group. The value must be between 1 to 200. At least one VM is always added or removed. Note that for 'SCALE\_IN' operations, volumes are not deleted after the server is deleted.                                                    |                               |
| **amount\_type**        | [**ActionAmount**](https://docs.ionos.com/sections-test/ruby-sdk/vm-autoscaling-ruby-sdk/models/actionamount)                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                               |
| **cooldown\_period**    | **String**                                                                                                                      | The minimum time that elapses after the start of this scaling action until the next scaling action is started. With a scaling action in progress, no second scaling action is started for the same Auto Scaling group. Instead, the metric is re-evaluated after the current scaling action completes (either successfully or with errors). This is currently validated with a minimum value of 2 minutes and a maximum value of 24 hours. The default value is 5 minutes if not specified. | \[optional]\[default to '5m'] |
| **termination\_policy** | [**TerminationPolicyType**](https://docs.ionos.com/sections-test/ruby-sdk/vm-autoscaling-ruby-sdk/models/terminationpolicytype) |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | \[optional]                   |
| **delete\_volumes**     | **Boolean**                                                                                                                     | If set to \`true\`, when deleting an replica during scale in, any attached volume will also be deleted. When set to \`false\`, all volumes remain in the datacenter and must be deleted manually. **Note**, that every scale-out creates new volumes. When they are not deleted, they will eventually use all of your contracts resource limits. At this point, scaling out would not be possible anymore.                                                                                  |                               |

## Example

```ruby
require 'ionoscloud-vm-autoscaling'

instance = IonoscloudVmAutoscaling::GroupPolicyScaleInAction.new(
  amount: 1,
  amount_type: null,
  cooldown_period: 5m,
  termination_policy: null,
  delete_volumes: true
)
```
