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 |
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
- mhAutoPlacement :: Lens' ModifyHosts AutoPlacement
- mhHostIds :: Lens' ModifyHosts [Text]
- 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:
mhAutoPlacement
- Specify whether to enable or disable auto-placement.mhHostIds
- The host IDs of the Dedicated Hosts you want to modify.
data ModifyHosts Source #
Contains the parameters for ModifyHosts.
See: modifyHosts
smart constructor.
Request Lenses
mhAutoPlacement :: Lens' ModifyHosts AutoPlacement Source #
Specify whether to enable or disable auto-placement.
mhHostIds :: Lens' ModifyHosts [Text] Source #
The host IDs of the Dedicated Hosts you want to modify.
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:
mhrsUnsuccessful
- The IDs of the Dedicated Hosts that could not be modified. Check whether the setting you requested can be used.mhrsSuccessful
- The IDs of the Dedicated Hosts that were successfully modified.mhrsResponseStatus
- -- | The response status code.
data ModifyHostsResponse Source #
Contains the output of ModifyHosts.
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.