Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
When you no longer want to use an On-Demand 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, for example, to modify the host.
You must stop or terminate all instances on a host before it can be
released.
When Dedicated Hosts are released, it may take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated Hosts. Wait a few minutes and then try again.
Released hosts still appear in a DescribeHosts response.
Synopsis
- data ReleaseHosts = ReleaseHosts' {}
- newReleaseHosts :: ReleaseHosts
- releaseHosts_hostIds :: Lens' ReleaseHosts [Text]
- data ReleaseHostsResponse = ReleaseHostsResponse' {
- successful :: Maybe [Text]
- unsuccessful :: Maybe [UnsuccessfulItem]
- httpStatus :: Int
- newReleaseHostsResponse :: Int -> ReleaseHostsResponse
- releaseHostsResponse_successful :: Lens' ReleaseHostsResponse (Maybe [Text])
- releaseHostsResponse_unsuccessful :: Lens' ReleaseHostsResponse (Maybe [UnsuccessfulItem])
- releaseHostsResponse_httpStatus :: Lens' ReleaseHostsResponse Int
Creating a Request
data ReleaseHosts Source #
See: newReleaseHosts
smart constructor.
Instances
newReleaseHosts :: ReleaseHosts Source #
Create a value of ReleaseHosts
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:hostIds:ReleaseHosts'
, releaseHosts_hostIds
- The IDs of the Dedicated Hosts to release.
Request Lenses
releaseHosts_hostIds :: Lens' ReleaseHosts [Text] Source #
The IDs of the Dedicated Hosts to release.
Destructuring the Response
data ReleaseHostsResponse Source #
See: newReleaseHostsResponse
smart constructor.
ReleaseHostsResponse' | |
|
Instances
newReleaseHostsResponse Source #
Create a value of ReleaseHostsResponse
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:successful:ReleaseHostsResponse'
, releaseHostsResponse_successful
- The IDs of the Dedicated Hosts that were successfully released.
$sel:unsuccessful:ReleaseHostsResponse'
, releaseHostsResponse_unsuccessful
- The IDs of the Dedicated Hosts that could not be released, including an
error message.
$sel:httpStatus:ReleaseHostsResponse'
, releaseHostsResponse_httpStatus
- The response's http status code.
Response Lenses
releaseHostsResponse_successful :: Lens' ReleaseHostsResponse (Maybe [Text]) Source #
The IDs of the Dedicated Hosts that were successfully released.
releaseHostsResponse_unsuccessful :: Lens' ReleaseHostsResponse (Maybe [UnsuccessfulItem]) Source #
The IDs of the Dedicated Hosts that could not be released, including an error message.
releaseHostsResponse_httpStatus :: Lens' ReleaseHostsResponse Int Source #
The response's http status code.