AutoScaling / Client / describe_termination_policy_types
describe_termination_policy_types#
- AutoScaling.Client.describe_termination_policy_types()#
Describes the termination policies supported by Amazon EC2 Auto Scaling.
For more information, see Configure termination policies for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
See also: AWS API Documentation
Request Syntax
response = client.describe_termination_policy_types()
- Return type:
dict
- Returns:
Response Syntax
{ 'TerminationPolicyTypes': [ 'string', ] }
Response Structure
(dict) –
TerminationPolicyTypes (list) –
The termination policies supported by Amazon EC2 Auto Scaling:
OldestInstance
,OldestLaunchConfiguration
,NewestInstance
,ClosestToNextInstanceHour
,Default
,OldestLaunchTemplate
, andAllocationStrategy
.(string) –
Exceptions
AutoScaling.Client.exceptions.ResourceContentionFault
Examples
This example describes the available termination policy types.
response = client.describe_termination_policy_types( ) print(response)
Expected Output:
{ 'TerminationPolicyTypes': [ 'ClosestToNextInstanceHour', 'Default', 'NewestInstance', 'OldestInstance', 'OldestLaunchConfiguration', ], 'ResponseMetadata': { '...': '...', }, }