Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
When you no longer want to use a Dedicated host it can be released. On-Demand billing is stopped and the host goes into released
state. The host ID of Dedicated hosts that have been released can no longer be specified in another request, e.g., ModifyHosts. You must stop or terminate all instances on a host before it can be released.
When Dedicated hosts are released, it make take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated hosts. Try waiting a few minutes, and then try again.
Released hosts will still appear in a DescribeHosts response.
- releaseHosts :: ReleaseHosts
- data ReleaseHosts
- rhHostIds :: Lens' ReleaseHosts [Text]
- releaseHostsResponse :: Int -> ReleaseHostsResponse
- data ReleaseHostsResponse
- rhrsUnsuccessful :: Lens' ReleaseHostsResponse [UnsuccessfulItem]
- rhrsSuccessful :: Lens' ReleaseHostsResponse [Text]
- rhrsResponseStatus :: Lens' ReleaseHostsResponse Int
Creating a Request
releaseHosts :: ReleaseHosts Source #
Creates a value of ReleaseHosts
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ReleaseHosts Source #
Contains the parameters for ReleaseHosts.
See: releaseHosts
smart constructor.
Request Lenses
Destructuring the Response
Creates a value of ReleaseHostsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ReleaseHostsResponse Source #
Contains the output of ReleaseHosts.
See: releaseHostsResponse
smart constructor.
Response Lenses
rhrsUnsuccessful :: Lens' ReleaseHostsResponse [UnsuccessfulItem] Source #
The IDs of the Dedicated hosts that could not be released, including an error message.
rhrsSuccessful :: Lens' ReleaseHostsResponse [Text] Source #
The IDs of the Dedicated hosts that were successfully released.
rhrsResponseStatus :: Lens' ReleaseHostsResponse Int Source #
The response status code.