Copyright | (c) 2013-2021 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 |
Creates a device pool.
Synopsis
- data CreateDevicePool = CreateDevicePool' {
- maxDevices :: Maybe Int
- description :: Maybe Text
- projectArn :: Text
- name :: Text
- rules :: [Rule]
- newCreateDevicePool :: Text -> Text -> CreateDevicePool
- createDevicePool_maxDevices :: Lens' CreateDevicePool (Maybe Int)
- createDevicePool_description :: Lens' CreateDevicePool (Maybe Text)
- createDevicePool_projectArn :: Lens' CreateDevicePool Text
- createDevicePool_name :: Lens' CreateDevicePool Text
- createDevicePool_rules :: Lens' CreateDevicePool [Rule]
- data CreateDevicePoolResponse = CreateDevicePoolResponse' {}
- newCreateDevicePoolResponse :: Int -> CreateDevicePoolResponse
- createDevicePoolResponse_devicePool :: Lens' CreateDevicePoolResponse (Maybe DevicePool)
- createDevicePoolResponse_httpStatus :: Lens' CreateDevicePoolResponse Int
Creating a Request
data CreateDevicePool Source #
Represents a request to the create device pool operation.
See: newCreateDevicePool
smart constructor.
CreateDevicePool' | |
|
Instances
Create a value of CreateDevicePool
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:maxDevices:CreateDevicePool'
, createDevicePool_maxDevices
- The number of devices that Device Farm can add to your device pool.
Device Farm adds devices that are available and meet the criteria that
you assign for the rules
parameter. Depending on how many devices meet
these constraints, your device pool might contain fewer devices than the
value for this parameter.
By specifying the maximum number of devices, you can control the costs that you incur by running tests.
$sel:description:CreateDevicePool'
, createDevicePool_description
- The device pool's description.
$sel:projectArn:CreateDevicePool'
, createDevicePool_projectArn
- The ARN of the project for the device pool.
$sel:name:CreateDevicePool'
, createDevicePool_name
- The device pool's name.
$sel:rules:CreateDevicePool'
, createDevicePool_rules
- The device pool's rules.
Request Lenses
createDevicePool_maxDevices :: Lens' CreateDevicePool (Maybe Int) Source #
The number of devices that Device Farm can add to your device pool.
Device Farm adds devices that are available and meet the criteria that
you assign for the rules
parameter. Depending on how many devices meet
these constraints, your device pool might contain fewer devices than the
value for this parameter.
By specifying the maximum number of devices, you can control the costs that you incur by running tests.
createDevicePool_description :: Lens' CreateDevicePool (Maybe Text) Source #
The device pool's description.
createDevicePool_projectArn :: Lens' CreateDevicePool Text Source #
The ARN of the project for the device pool.
createDevicePool_name :: Lens' CreateDevicePool Text Source #
The device pool's name.
createDevicePool_rules :: Lens' CreateDevicePool [Rule] Source #
The device pool's rules.
Destructuring the Response
data CreateDevicePoolResponse Source #
Represents the result of a create device pool request.
See: newCreateDevicePoolResponse
smart constructor.
CreateDevicePoolResponse' | |
|
Instances
newCreateDevicePoolResponse Source #
Create a value of CreateDevicePoolResponse
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:devicePool:CreateDevicePoolResponse'
, createDevicePoolResponse_devicePool
- The newly created device pool.
$sel:httpStatus:CreateDevicePoolResponse'
, createDevicePoolResponse_httpStatus
- The response's http status code.
Response Lenses
createDevicePoolResponse_devicePool :: Lens' CreateDevicePoolResponse (Maybe DevicePool) Source #
The newly created device pool.
createDevicePoolResponse_httpStatus :: Lens' CreateDevicePoolResponse Int Source #
The response's http status code.