AutoScaling / Paginator / DescribeWarmPool
DescribeWarmPool#
- class AutoScaling.Paginator.DescribeWarmPool#
- paginator = client.get_paginator('describe_warm_pool') - paginate(**kwargs)#
- Creates an iterator that will paginate through responses from - AutoScaling.Client.describe_warm_pool().- See also: AWS API Documentation - Request Syntax- response_iterator = paginator.paginate( AutoScalingGroupName='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) - Parameters:
- AutoScalingGroupName (string) – - [REQUIRED] - The name of the Auto Scaling group. 
- PaginationConfig (dict) – - A dictionary that provides parameters to control pagination. - MaxItems (integer) – - The total number of items to return. If the total number of items available is more than the value specified in max-items then a - NextTokenwill be provided in the output that you can use to resume pagination.
- PageSize (integer) – - The size of each page. 
- StartingToken (string) – - A token to specify where to start paginating. This is the - NextTokenfrom a previous response.
 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'WarmPoolConfiguration': { 'MaxGroupPreparedCapacity': 123, 'MinSize': 123, 'PoolState': 'Stopped'|'Running'|'Hibernated', 'Status': 'PendingDelete', 'InstanceReusePolicy': { 'ReuseOnScaleIn': True|False } }, 'Instances': [ { 'InstanceId': 'string', 'InstanceType': 'string', 'AvailabilityZone': 'string', 'LifecycleState': 'Pending'|'Pending:Wait'|'Pending:Proceed'|'Quarantined'|'InService'|'Terminating'|'Terminating:Wait'|'Terminating:Proceed'|'Terminated'|'Detaching'|'Detached'|'EnteringStandby'|'Standby'|'Warmed:Pending'|'Warmed:Pending:Wait'|'Warmed:Pending:Proceed'|'Warmed:Terminating'|'Warmed:Terminating:Wait'|'Warmed:Terminating:Proceed'|'Warmed:Terminated'|'Warmed:Stopped'|'Warmed:Running'|'Warmed:Hibernated', 'HealthStatus': 'string', 'LaunchConfigurationName': 'string', 'LaunchTemplate': { 'LaunchTemplateId': 'string', 'LaunchTemplateName': 'string', 'Version': 'string' }, 'ProtectedFromScaleIn': True|False, 'WeightedCapacity': 'string' }, ], } - Response Structure- (dict) – - WarmPoolConfiguration (dict) – - The warm pool configuration details. - MaxGroupPreparedCapacity (integer) – - The maximum number of instances that are allowed to be in the warm pool or in any state except - Terminatedfor the Auto Scaling group.
- MinSize (integer) – - The minimum number of instances to maintain in the warm pool. 
- PoolState (string) – - The instance state to transition to after the lifecycle actions are complete. 
- Status (string) – - The status of a warm pool that is marked for deletion. 
- InstanceReusePolicy (dict) – - The instance reuse policy. - ReuseOnScaleIn (boolean) – - Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in. 
 
 
- Instances (list) – - The instances that are currently in the warm pool. - (dict) – - Describes an EC2 instance. - InstanceId (string) – - The ID of the instance. 
- InstanceType (string) – - The instance type of the EC2 instance. 
- AvailabilityZone (string) – - The Availability Zone in which the instance is running. 
- LifecycleState (string) – - A description of the current lifecycle state. The - Quarantinedstate is not used. For more information, see Amazon EC2 Auto Scaling instance lifecycle in the Amazon EC2 Auto Scaling User Guide.
- HealthStatus (string) – - The last reported health status of the instance. - Healthymeans that the instance is healthy and should remain in service.- Unhealthymeans that the instance is unhealthy and that Amazon EC2 Auto Scaling should terminate and replace it.
- LaunchConfigurationName (string) – - The launch configuration associated with the instance. 
- LaunchTemplate (dict) – - The launch template for the instance. - LaunchTemplateId (string) – - The ID of the launch template. To get the template ID, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API. - Conditional: You must specify either a - LaunchTemplateIdor a- LaunchTemplateName.
- LaunchTemplateName (string) – - The name of the launch template. To get the template name, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API. - Conditional: You must specify either a - LaunchTemplateIdor a- LaunchTemplateName.
- Version (string) – - The version number, - $Latest, or- $Default. To get the version number, use the Amazon EC2 DescribeLaunchTemplateVersions API operation. New launch template versions can be created using the Amazon EC2 CreateLaunchTemplateVersion API. If the value is- $Latest, Amazon EC2 Auto Scaling selects the latest version of the launch template when launching instances. If the value is- $Default, Amazon EC2 Auto Scaling selects the default version of the launch template when launching instances. The default value is- $Default.
 
- ProtectedFromScaleIn (boolean) – - Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in. 
- WeightedCapacity (string) – - The number of capacity units contributed by the instance based on its instance type. - Valid Range: Minimum value of 1. Maximum value of 999.