DescribeTerminationPolicyTypes - Amazon EC2 Auto Scaling
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

DescribeTerminationPolicyTypes

Describes the termination policies supported by Amazon EC2 Auto Scaling.

For more information, see Work with Amazon EC2 Auto Scaling termination policies in the Amazon EC2 Auto Scaling User Guide.

Response Elements

The following element is returned by the service.

TerminationPolicyTypes.member.N

The termination policies supported by Amazon EC2 Auto Scaling: OldestInstance, OldestLaunchConfiguration, NewestInstance, ClosestToNextInstanceHour, Default, OldestLaunchTemplate, and AllocationStrategy.

Type: Array of strings

Length Constraints: Minimum length of 1. Maximum length of 1600.

Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Errors

For information about the errors that are common to all actions, see Common Errors.

ResourceContention

You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, instance, or load balancer).

HTTP Status Code: 500

Examples

Example

This example illustrates one usage of DescribeTerminationPolicyTypes.

Sample Request

https://autoscaling.amazonaws.com/?Action=DescribeTerminationPolicyTypes &Version=2011-01-01 &AUTHPARAMS

Sample Response

<DescribeTerminationPolicyTypesResponse xmlns="https://autoscaling.amazonaws.com/doc/2011-01-01/"> <DescribeTerminationPolicyTypesResult> <TerminationPolicyTypes> <member>AllocationStrategy</member> <member>ClosestToNextInstanceHour</member> <member>Default</member> <member>NewestInstance</member> <member>OldestInstance</member> <member>OldestLaunchConfiguration</member> <member>OldestLaunchTemplate</member> </TerminationPolicyTypes> </DescribeTerminationPolicyTypesResult> <ResponseMetadata> <RequestId>7c6e177f-f082-11e1-ac58-3714bEXAMPLE</RequestId> </ResponseMetadata> </DescribeTerminationPolicyTypesResponse>

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: