import { Value } from '../../cloudformation/Value';
import { InstanceReusePolicyProps } from './warmpool/InstanceReusePolicyProps';
import { AwsResource } from '../../cloudformation/resources/AwsResource';
/**
  The <code>AWS::AutoScaling::WarmPool</code> resource creates a pool of pre-initialized EC2 instances that sits alongside the Auto Scaling group. Whenever your application needs to scale out, the Auto Scaling group can draw on the warm pool to meet its new desired capacity.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-warmpool.html">the AWS Docs</a>
*/
export type WarmPool = AwsResource<'AWS::AutoScaling::WarmPool', WarmPoolProperties>;
export declare function warmPool(warmPoolProps: WarmPoolProperties): WarmPool;
/**
  The <code>AWS::AutoScaling::WarmPool</code> resource creates a pool of pre-initialized EC2 instances that sits alongside the Auto Scaling group. Whenever your application needs to scale out, the Auto Scaling group can draw on the warm pool to meet its new desired capacity.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-warmpool.html">the AWS Docs</a>
*/
export interface WarmPoolProperties {
    /** <code>MinSize</code>  <a name="cfn-autoscaling-warmpool-minsize"></a>
  Specifies the minimum number of instances to maintain in the warm pool. This helps you to ensure that there is always a certain number of warmed instances available to handle traffic spikes. Defaults to 0 if not specified.<br />
  
  Required: No<br />
  
  Minimum: <code>0</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    minSize?: Value<number>;
    /** <code>MaxGroupPreparedCapacity</code>  <a name="cfn-autoscaling-warmpool-maxgrouppreparedcapacity"></a>
  Specifies the maximum number of instances that are allowed to be in the warm pool or in any state except <code>Terminated</code> for the Auto Scaling group. This is an optional property. Specify it only if you do not want the warm pool size to be determined by the difference between the group’s maximum capacity and its desired capacity.<br />
  If a value for <code>MaxGroupPreparedCapacity</code> is not specified, Amazon EC2 Auto Scaling launches and maintains the difference between the group’s maximum capacity and its desired capacity. If you specify a value for <code>MaxGroupPreparedCapacity</code>, Amazon EC2 Auto Scaling uses the difference between the <code>MaxGroupPreparedCapacity</code> and the desired capacity instead.<br />
  The size of the warm pool is dynamic. Only when <code>MaxGroupPreparedCapacity</code> and <code>MinSize</code> are set to the same value does the warm pool have an absolute size.
  If the desired capacity of the Auto Scaling group is higher than the <code>MaxGroupPreparedCapacity</code>, the capacity of the warm pool is 0, unless you specify a value for <code>MinSize</code>. To remove a value that you previously set, include the property but specify -1 for the value.<br />
  
  Required: No<br />
  
  Minimum: <code>-1</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    maxGroupPreparedCapacity?: Value<number>;
    /** <code>AutoScalingGroupName</code>  <a name="cfn-autoscaling-warmpool-autoscalinggroupname"></a>
  The name of the Auto Scaling group.<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    autoScalingGroupName: Value<string>;
    /** <code>PoolState</code>  <a name="cfn-autoscaling-warmpool-poolstate"></a>
  Sets the instance state to transition to after the lifecycle actions are complete. Default is <code>Stopped</code>.<br />
  
  Required: No<br />
  
  Allowed values: <code>Hibernated | Running | Stopped</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    poolState?: Value<'Hibernated' | 'Running' | 'Stopped'>;
    /** <code>InstanceReusePolicy</code>  <a name="cfn-autoscaling-warmpool-instancereusepolicy"></a>
  Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in. The default is to terminate instances in the Auto Scaling group when the group scales in.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    instanceReusePolicy?: InstanceReusePolicyProps;
}
