amazonka-devicefarm-2.0: Amazon Device Farm SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DeviceFarm.CreateInstanceProfile

Description

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

Synopsis

Creating a Request

data CreateInstanceProfile Source #

See: newCreateInstanceProfile smart constructor.

Constructors

CreateInstanceProfile' 

Fields

  • description :: Maybe Text

    The description of your instance profile.

  • excludeAppPackagesFromCleanup :: Maybe [Text]

    An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.

    The list of packages is considered only if you set packageCleanup to true.

  • packageCleanup :: Maybe Bool

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

  • rebootAfterUse :: Maybe Bool

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

  • name :: Text

    The name of your instance profile.

Instances

Instances details
ToJSON CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

ToHeaders CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

ToPath CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

ToQuery CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

AWSRequest CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

Associated Types

type AWSResponse CreateInstanceProfile #

Generic CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

Associated Types

type Rep CreateInstanceProfile :: Type -> Type #

Read CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

Show CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

NFData CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

Methods

rnf :: CreateInstanceProfile -> () #

Eq CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

Hashable CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

type AWSResponse CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

type Rep CreateInstanceProfile Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

type Rep CreateInstanceProfile = D1 ('MetaData "CreateInstanceProfile" "Amazonka.DeviceFarm.CreateInstanceProfile" "amazonka-devicefarm-2.0-2e4KvZvQ9bT8TNjEPvmW9Q" 'False) (C1 ('MetaCons "CreateInstanceProfile'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "excludeAppPackagesFromCleanup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "packageCleanup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "rebootAfterUse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateInstanceProfile Source #

Create a value of CreateInstanceProfile 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:

CreateInstanceProfile, createInstanceProfile_description - The description of your instance profile.

CreateInstanceProfile, createInstanceProfile_excludeAppPackagesFromCleanup - An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.

The list of packages is considered only if you set packageCleanup to true.

CreateInstanceProfile, createInstanceProfile_packageCleanup - When set to true, Device Farm removes app packages after a test run. The default value is false for private devices.

CreateInstanceProfile, createInstanceProfile_rebootAfterUse - When set to true, Device Farm reboots the instance after a test run. The default value is true.

CreateInstanceProfile, createInstanceProfile_name - The name of your instance profile.

Request Lenses

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

The description of your instance profile.

createInstanceProfile_excludeAppPackagesFromCleanup :: Lens' CreateInstanceProfile (Maybe [Text]) Source #

An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.

The list of packages is considered only if you set packageCleanup to true.

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

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

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

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

createInstanceProfile_name :: Lens' CreateInstanceProfile Text Source #

The name of your instance profile.

Destructuring the Response

data CreateInstanceProfileResponse Source #

See: newCreateInstanceProfileResponse smart constructor.

Constructors

CreateInstanceProfileResponse' 

Fields

Instances

Instances details
Generic CreateInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

Associated Types

type Rep CreateInstanceProfileResponse :: Type -> Type #

Read CreateInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

Show CreateInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

NFData CreateInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

Eq CreateInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

type Rep CreateInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateInstanceProfile

type Rep CreateInstanceProfileResponse = D1 ('MetaData "CreateInstanceProfileResponse" "Amazonka.DeviceFarm.CreateInstanceProfile" "amazonka-devicefarm-2.0-2e4KvZvQ9bT8TNjEPvmW9Q" 'False) (C1 ('MetaCons "CreateInstanceProfileResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceProfile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceProfile)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateInstanceProfileResponse Source #

Create a value of CreateInstanceProfileResponse 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:

CreateInstanceProfileResponse, createInstanceProfileResponse_instanceProfile - An object that contains information about your instance profile.

$sel:httpStatus:CreateInstanceProfileResponse', createInstanceProfileResponse_httpStatus - The response's http status code.

Response Lenses

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

An object that contains information about your instance profile.