amazonka-devicefarm-1.6.0: Amazon Device Farm SDK.

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

Network.AWS.DeviceFarm.UpdateDevicePool

Contents

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

Creating a Request

updateDevicePool Source #

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

Eq UpdateDevicePool Source # 
Data UpdateDevicePool Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateDevicePool -> c UpdateDevicePool #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateDevicePool #

toConstr :: UpdateDevicePool -> Constr #

dataTypeOf :: UpdateDevicePool -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateDevicePool) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateDevicePool) #

gmapT :: (forall b. Data b => b -> b) -> UpdateDevicePool -> UpdateDevicePool #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateDevicePool -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateDevicePool -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateDevicePool -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateDevicePool -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateDevicePool -> m UpdateDevicePool #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateDevicePool -> m UpdateDevicePool #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateDevicePool -> m UpdateDevicePool #

Read UpdateDevicePool Source # 
Show UpdateDevicePool Source # 
Generic UpdateDevicePool Source # 
Hashable UpdateDevicePool Source # 
ToJSON UpdateDevicePool Source # 
NFData UpdateDevicePool Source # 

Methods

rnf :: UpdateDevicePool -> () #

AWSRequest UpdateDevicePool Source # 
ToHeaders UpdateDevicePool Source # 
ToPath UpdateDevicePool Source # 
ToQuery UpdateDevicePool Source # 
type Rep UpdateDevicePool Source # 
type Rep UpdateDevicePool = D1 * (MetaData "UpdateDevicePool" "Network.AWS.DeviceFarm.UpdateDevicePool" "amazonka-devicefarm-1.6.0-LqJtWXKo19D7xA5rnFdJ7y" False) (C1 * (MetaCons "UpdateDevicePool'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_udpRules") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Rule]))) (S1 * (MetaSel (Just Symbol "_udpName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_udpDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_udpArn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs UpdateDevicePool Source # 

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 #

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:

data UpdateDevicePoolResponse Source #

Represents the result of an update device pool request.

See: updateDevicePoolResponse smart constructor.

Instances

Eq UpdateDevicePoolResponse Source # 
Data UpdateDevicePoolResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateDevicePoolResponse -> c UpdateDevicePoolResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateDevicePoolResponse #

toConstr :: UpdateDevicePoolResponse -> Constr #

dataTypeOf :: UpdateDevicePoolResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateDevicePoolResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateDevicePoolResponse) #

gmapT :: (forall b. Data b => b -> b) -> UpdateDevicePoolResponse -> UpdateDevicePoolResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateDevicePoolResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateDevicePoolResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateDevicePoolResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateDevicePoolResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateDevicePoolResponse -> m UpdateDevicePoolResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateDevicePoolResponse -> m UpdateDevicePoolResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateDevicePoolResponse -> m UpdateDevicePoolResponse #

Read UpdateDevicePoolResponse Source # 
Show UpdateDevicePoolResponse Source # 
Generic UpdateDevicePoolResponse Source # 
NFData UpdateDevicePoolResponse Source # 
type Rep UpdateDevicePoolResponse Source # 
type Rep UpdateDevicePoolResponse = D1 * (MetaData "UpdateDevicePoolResponse" "Network.AWS.DeviceFarm.UpdateDevicePool" "amazonka-devicefarm-1.6.0-LqJtWXKo19D7xA5rnFdJ7y" False) (C1 * (MetaCons "UpdateDevicePoolResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_udprsDevicePool") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe DevicePool))) (S1 * (MetaSel (Just Symbol "_udprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

udprsDevicePool :: Lens' UpdateDevicePoolResponse (Maybe DevicePool) Source #

The device pool you just updated.