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 |
Modify the auto-placement setting of a Dedicated host. When
auto-placement is enabled, AWS will place instances that you launch with
a tenancy of host
, but without targeting a specific host ID, onto any
available Dedicated host in your account which has auto-placement
enabled. When auto-placement is disabled, you need to provide a host ID
if you want the instance to launch onto a specific host. If no host ID
is provided, the instance will be launched onto a suitable host which
has auto-placement enabled.
- modifyHosts :: AutoPlacement -> ModifyHosts
- data ModifyHosts
- mhHostIds :: Lens' ModifyHosts [Text]
- mhAutoPlacement :: Lens' ModifyHosts AutoPlacement
- modifyHostsResponse :: Int -> ModifyHostsResponse
- data ModifyHostsResponse
- mhrsUnsuccessful :: Lens' ModifyHostsResponse [UnsuccessfulItem]
- mhrsSuccessful :: Lens' ModifyHostsResponse [Text]
- mhrsResponseStatus :: Lens' ModifyHostsResponse Int
Creating a Request
Creates a value of ModifyHosts
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ModifyHosts Source
See: modifyHosts
smart constructor.
Request Lenses
mhHostIds :: Lens' ModifyHosts [Text] Source
The host IDs of the Dedicated hosts you want to modify.
mhAutoPlacement :: Lens' ModifyHosts AutoPlacement Source
Specify whether to enable or disable auto-placement.
Destructuring the Response
Creates a value of ModifyHostsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ModifyHostsResponse Source
See: modifyHostsResponse
smart constructor.
Response Lenses
mhrsUnsuccessful :: Lens' ModifyHostsResponse [UnsuccessfulItem] Source
The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.
mhrsSuccessful :: Lens' ModifyHostsResponse [Text] Source
The IDs of the Dedicated hosts that were successfully modified.
mhrsResponseStatus :: Lens' ModifyHostsResponse Int Source
The response status code.