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.CreateInstanceProfile

Contents

Description

Creates a profile that can be applied to one or more private fleet device instances.

Synopsis

Creating a Request

createInstanceProfile Source #

Creates a value of CreateInstanceProfile with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cipRebootAfterUse - When set to true , Device Farm will reboot the instance after a test run. The default value is true .
  • cipPackageCleanup - When set to true , Device Farm will remove app packages after a test run. The default value is false for private devices.
  • cipExcludeAppPackagesFromCleanup - An array of strings specifying the list of app packages that should not be cleaned up from the device after a test run is over. The list of packages is only considered if you set packageCleanup to true .
  • cipDescription - The description of your instance profile.
  • cipName - The name of your instance profile.

data CreateInstanceProfile Source #

See: createInstanceProfile smart constructor.

Instances

Eq CreateInstanceProfile Source # 
Data CreateInstanceProfile Source # 

Methods

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

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

toConstr :: CreateInstanceProfile -> Constr #

dataTypeOf :: CreateInstanceProfile -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: CreateInstanceProfile -> () #

AWSRequest CreateInstanceProfile Source # 
ToHeaders CreateInstanceProfile Source # 
ToPath CreateInstanceProfile Source # 
ToQuery CreateInstanceProfile Source # 
type Rep CreateInstanceProfile Source # 
type Rep CreateInstanceProfile = D1 * (MetaData "CreateInstanceProfile" "Network.AWS.DeviceFarm.CreateInstanceProfile" "amazonka-devicefarm-1.6.0-LqJtWXKo19D7xA5rnFdJ7y" False) (C1 * (MetaCons "CreateInstanceProfile'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cipRebootAfterUse") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_cipPackageCleanup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cipExcludeAppPackagesFromCleanup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cipDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cipName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs CreateInstanceProfile Source # 

Request Lenses

cipRebootAfterUse :: Lens' CreateInstanceProfile (Maybe Bool) Source #

When set to true , Device Farm will reboot the instance after a test run. The default value is true .

cipPackageCleanup :: Lens' CreateInstanceProfile (Maybe Bool) Source #

When set to true , Device Farm will remove app packages after a test run. The default value is false for private devices.

cipExcludeAppPackagesFromCleanup :: Lens' CreateInstanceProfile [Text] Source #

An array of strings specifying the list of app packages that should not be cleaned up from the device after a test run is over. The list of packages is only considered if you set packageCleanup to true .

cipDescription :: Lens' CreateInstanceProfile (Maybe Text) Source #

The description of your instance profile.

cipName :: Lens' CreateInstanceProfile Text Source #

The name of your instance profile.

Destructuring the Response

createInstanceProfileResponse Source #

Creates a value of CreateInstanceProfileResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateInstanceProfileResponse Source #

See: createInstanceProfileResponse smart constructor.

Instances

Eq CreateInstanceProfileResponse Source # 
Data CreateInstanceProfileResponse Source # 

Methods

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

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

toConstr :: CreateInstanceProfileResponse -> Constr #

dataTypeOf :: CreateInstanceProfileResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Response Lenses

ciprsInstanceProfile :: Lens' CreateInstanceProfileResponse (Maybe InstanceProfile) Source #

An object containing information about your instance profile.