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 |
Allocates a Dedicated Host to your account. At minimum you need to specify the instance size type, Availability Zone, and quantity of hosts you want to allocate.
- allocateHosts :: Text -> Int -> Text -> AllocateHosts
- data AllocateHosts
- ahClientToken :: Lens' AllocateHosts (Maybe Text)
- ahAutoPlacement :: Lens' AllocateHosts (Maybe AutoPlacement)
- ahInstanceType :: Lens' AllocateHosts Text
- ahQuantity :: Lens' AllocateHosts Int
- ahAvailabilityZone :: Lens' AllocateHosts Text
- allocateHostsResponse :: Int -> AllocateHostsResponse
- data AllocateHostsResponse
- ahrsHostIds :: Lens' AllocateHostsResponse [Text]
- ahrsResponseStatus :: Lens' AllocateHostsResponse Int
Creating a Request
Creates a value of AllocateHosts
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AllocateHosts Source #
Contains the parameters for AllocateHosts.
See: allocateHosts
smart constructor.
Request Lenses
ahClientToken :: Lens' AllocateHosts (Maybe Text) Source #
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.
ahAutoPlacement :: Lens' AllocateHosts (Maybe AutoPlacement) Source #
This is enabled by default. This property allows instances to be automatically placed onto available Dedicated Hosts, when you are launching instances without specifying a host ID.
Default: Enabled
ahInstanceType :: Lens' AllocateHosts Text Source #
Specify the instance type that you want your Dedicated Hosts to be configured for. When you specify the instance type, that is the only instance type that you can launch onto that host.
ahQuantity :: Lens' AllocateHosts Int Source #
The number of Dedicated Hosts you want to allocate to your account with these parameters.
ahAvailabilityZone :: Lens' AllocateHosts Text Source #
The Availability Zone for the Dedicated Hosts.
Destructuring the Response
allocateHostsResponse Source #
Creates a value of AllocateHostsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AllocateHostsResponse Source #
Contains the output of AllocateHosts.
See: allocateHostsResponse
smart constructor.
Response Lenses
ahrsHostIds :: Lens' AllocateHostsResponse [Text] Source #
The ID of the allocated Dedicated Host. This is used when you want to launch an instance onto a specific host.
ahrsResponseStatus :: Lens' AllocateHostsResponse Int Source #
The response status code.