amazonka-ec2-1.3.7: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.ModifyHosts

Contents

Description

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.

See: AWS API Reference for ModifyHosts.

Synopsis

Creating a Request

modifyHosts Source

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:

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

modifyHostsResponse Source

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:

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.