| 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 |
Network.AWS.DeviceFarm.UpdateDevicePool
Description
Modifies the name, description, and rules in a device pool given the attributes and the pool ARN. Rule updates are all-or-nothing, meaning they can only be updated as a whole (or not at all).
Synopsis
- updateDevicePool :: Text -> UpdateDevicePool
- data UpdateDevicePool
- udpRules :: Lens' UpdateDevicePool [Rule]
- udpName :: Lens' UpdateDevicePool (Maybe Text)
- udpDescription :: Lens' UpdateDevicePool (Maybe Text)
- udpArn :: Lens' UpdateDevicePool Text
- updateDevicePoolResponse :: Int -> UpdateDevicePoolResponse
- data UpdateDevicePoolResponse
- udprsDevicePool :: Lens' UpdateDevicePoolResponse (Maybe DevicePool)
- udprsResponseStatus :: Lens' UpdateDevicePoolResponse Int
Creating a Request
Arguments
| :: Text | |
| -> UpdateDevicePool |
Creates a value of UpdateDevicePool with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
udpRules- Represents the rules you wish to modify for the device pool. Updating rules is optional; however, if you choose to update rules for your request, the update will replace the existing rules.udpName- A string representing the name of the device pool you wish to update.udpDescription- A description of the device pool you wish to update.udpArn- The Amazon Resourc Name (ARN) of the Device Farm device pool you wish to update.
data UpdateDevicePool Source #
Represents a request to the update device pool operation.
See: updateDevicePool smart constructor.
Instances
Request Lenses
udpRules :: Lens' UpdateDevicePool [Rule] Source #
Represents the rules you wish to modify for the device pool. Updating rules is optional; however, if you choose to update rules for your request, the update will replace the existing rules.
udpName :: Lens' UpdateDevicePool (Maybe Text) Source #
A string representing the name of the device pool you wish to update.
udpDescription :: Lens' UpdateDevicePool (Maybe Text) Source #
A description of the device pool you wish to update.
udpArn :: Lens' UpdateDevicePool Text Source #
The Amazon Resourc Name (ARN) of the Device Farm device pool you wish to update.
Destructuring the Response
updateDevicePoolResponse Source #
Arguments
| :: Int | |
| -> UpdateDevicePoolResponse |
Creates a value of UpdateDevicePoolResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
udprsDevicePool- The device pool you just updated.udprsResponseStatus- -- | The response status code.
data UpdateDevicePoolResponse Source #
Represents the result of an update device pool request.
See: updateDevicePoolResponse smart constructor.
Instances
Response Lenses
udprsDevicePool :: Lens' UpdateDevicePoolResponse (Maybe DevicePool) Source #
The device pool you just updated.
udprsResponseStatus :: Lens' UpdateDevicePoolResponse Int Source #
- - | The response status code.