Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Describes the termination policies supported by Amazon EC2 Auto Scaling.
For more information, see Controlling which Auto Scaling instances terminate during scale in in the Amazon EC2 Auto Scaling User Guide.
Synopsis
- data DescribeTerminationPolicyTypes = DescribeTerminationPolicyTypes' {
- newDescribeTerminationPolicyTypes :: DescribeTerminationPolicyTypes
- data DescribeTerminationPolicyTypesResponse = DescribeTerminationPolicyTypesResponse' {
- terminationPolicyTypes :: Maybe [Text]
- httpStatus :: Int
- newDescribeTerminationPolicyTypesResponse :: Int -> DescribeTerminationPolicyTypesResponse
- describeTerminationPolicyTypesResponse_terminationPolicyTypes :: Lens' DescribeTerminationPolicyTypesResponse (Maybe [Text])
- describeTerminationPolicyTypesResponse_httpStatus :: Lens' DescribeTerminationPolicyTypesResponse Int
Creating a Request
data DescribeTerminationPolicyTypes Source #
See: newDescribeTerminationPolicyTypes
smart constructor.
Instances
newDescribeTerminationPolicyTypes :: DescribeTerminationPolicyTypes Source #
Create a value of DescribeTerminationPolicyTypes
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data DescribeTerminationPolicyTypesResponse Source #
See: newDescribeTerminationPolicyTypesResponse
smart constructor.
DescribeTerminationPolicyTypesResponse' | |
|
Instances
newDescribeTerminationPolicyTypesResponse Source #
Create a value of DescribeTerminationPolicyTypesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:terminationPolicyTypes:DescribeTerminationPolicyTypesResponse'
, describeTerminationPolicyTypesResponse_terminationPolicyTypes
- The termination policies supported by Amazon EC2 Auto Scaling:
OldestInstance
, OldestLaunchConfiguration
, NewestInstance
,
ClosestToNextInstanceHour
, Default
, OldestLaunchTemplate
, and
AllocationStrategy
.
$sel:httpStatus:DescribeTerminationPolicyTypesResponse'
, describeTerminationPolicyTypesResponse_httpStatus
- The response's http status code.
Response Lenses
describeTerminationPolicyTypesResponse_terminationPolicyTypes :: Lens' DescribeTerminationPolicyTypesResponse (Maybe [Text]) Source #
The termination policies supported by Amazon EC2 Auto Scaling:
OldestInstance
, OldestLaunchConfiguration
, NewestInstance
,
ClosestToNextInstanceHour
, Default
, OldestLaunchTemplate
, and
AllocationStrategy
.
describeTerminationPolicyTypesResponse_httpStatus :: Lens' DescribeTerminationPolicyTypesResponse Int Source #
The response's http status code.