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 #

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 #

See: createInstanceProfile smart constructor.

Instances

Eq CreateInstanceProfile # 
Data CreateInstanceProfile # 

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 # 
Show CreateInstanceProfile # 
Generic CreateInstanceProfile # 
Hashable CreateInstanceProfile # 
ToJSON CreateInstanceProfile # 
NFData CreateInstanceProfile # 

Methods

rnf :: CreateInstanceProfile -> () #

AWSRequest CreateInstanceProfile # 
ToHeaders CreateInstanceProfile # 
ToPath CreateInstanceProfile # 
ToQuery CreateInstanceProfile # 
type Rep CreateInstanceProfile # 
type Rep CreateInstanceProfile = D1 * (MetaData "CreateInstanceProfile" "Network.AWS.DeviceFarm.CreateInstanceProfile" "amazonka-devicefarm-1.6.0-1RE2Lvq2vKT750159tw1bo" 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 # 

Request Lenses

cipRebootAfterUse :: Lens' CreateInstanceProfile (Maybe Bool) #

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

cipPackageCleanup :: Lens' CreateInstanceProfile (Maybe Bool) #

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] #

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) #

The description of your instance profile.

cipName :: Lens' CreateInstanceProfile Text #

The name of your instance profile.

Destructuring the Response

createInstanceProfileResponse #

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 #

See: createInstanceProfileResponse smart constructor.

Instances

Eq CreateInstanceProfileResponse # 
Data CreateInstanceProfileResponse # 

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 # 
Show CreateInstanceProfileResponse # 
Generic CreateInstanceProfileResponse # 
NFData CreateInstanceProfileResponse # 
type Rep CreateInstanceProfileResponse # 
type Rep CreateInstanceProfileResponse = D1 * (MetaData "CreateInstanceProfileResponse" "Network.AWS.DeviceFarm.CreateInstanceProfile" "amazonka-devicefarm-1.6.0-1RE2Lvq2vKT750159tw1bo" 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) #

An object containing information about your instance profile.