Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Modifies the specified EC2 Fleet.
While the EC2 Fleet is being modified, it is in the modifying
state.
- modifyFleet :: Text -> TargetCapacitySpecificationRequest -> ModifyFleet
- data ModifyFleet
- mfExcessCapacityTerminationPolicy :: Lens' ModifyFleet (Maybe FleetExcessCapacityTerminationPolicy)
- mfDryRun :: Lens' ModifyFleet (Maybe Bool)
- mfFleetId :: Lens' ModifyFleet Text
- mfTargetCapacitySpecification :: Lens' ModifyFleet TargetCapacitySpecificationRequest
- modifyFleetResponse :: Int -> ModifyFleetResponse
- data ModifyFleetResponse
- mfrsReturn :: Lens' ModifyFleetResponse (Maybe Bool)
- mfrsResponseStatus :: Lens' ModifyFleetResponse Int
Creating a Request
Creates a value of ModifyFleet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mfExcessCapacityTerminationPolicy
- Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.mfDryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.mfFleetId
- The ID of the EC2 Fleet.mfTargetCapacitySpecification
- The size of the EC2 Fleet.
data ModifyFleet Source #
See: modifyFleet
smart constructor.
Request Lenses
mfExcessCapacityTerminationPolicy :: Lens' ModifyFleet (Maybe FleetExcessCapacityTerminationPolicy) Source #
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
mfDryRun :: Lens' ModifyFleet (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
mfTargetCapacitySpecification :: Lens' ModifyFleet TargetCapacitySpecificationRequest Source #
The size of the EC2 Fleet.
Destructuring the Response
Creates a value of ModifyFleetResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mfrsReturn
- Istrue
if the request succeeds, and an error otherwise.mfrsResponseStatus
- -- | The response status code.
data ModifyFleetResponse Source #
See: modifyFleetResponse
smart constructor.
Response Lenses
mfrsReturn :: Lens' ModifyFleetResponse (Maybe Bool) Source #
Is true
if the request succeeds, and an error otherwise.
mfrsResponseStatus :: Lens' ModifyFleetResponse Int Source #
- - | The response status code.