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

Amazonka.DeviceFarm.CreateDevicePool

Description

Creates a device pool.

Synopsis

Creating a Request

data CreateDevicePool Source #

Represents a request to the create device pool operation.

See: newCreateDevicePool smart constructor.

Constructors

CreateDevicePool' 

Fields

  • maxDevices :: Maybe Int

    The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and meet the criteria that you assign for the rules parameter. Depending on how many devices meet these constraints, your device pool might contain fewer devices than the value for this parameter.

    By specifying the maximum number of devices, you can control the costs that you incur by running tests.

  • description :: Maybe Text

    The device pool's description.

  • projectArn :: Text

    The ARN of the project for the device pool.

  • name :: Text

    The device pool's name.

  • rules :: [Rule]

    The device pool's rules.

Instances

Instances details
Eq CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Read CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Show CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Generic CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Associated Types

type Rep CreateDevicePool :: Type -> Type #

NFData CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Methods

rnf :: CreateDevicePool -> () #

Hashable CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

ToJSON CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

AWSRequest CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Associated Types

type AWSResponse CreateDevicePool #

ToHeaders CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

ToPath CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

ToQuery CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

type Rep CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

type Rep CreateDevicePool = D1 ('MetaData "CreateDevicePool" "Amazonka.DeviceFarm.CreateDevicePool" "libZSservicesZSamazonka-devicefarmZSamazonka-devicefarm" 'False) (C1 ('MetaCons "CreateDevicePool'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxDevices") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "projectArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "rules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Rule])))))
type AWSResponse CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

newCreateDevicePool Source #

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

$sel:maxDevices:CreateDevicePool', createDevicePool_maxDevices - The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and meet the criteria that you assign for the rules parameter. Depending on how many devices meet these constraints, your device pool might contain fewer devices than the value for this parameter.

By specifying the maximum number of devices, you can control the costs that you incur by running tests.

$sel:description:CreateDevicePool', createDevicePool_description - The device pool's description.

$sel:projectArn:CreateDevicePool', createDevicePool_projectArn - The ARN of the project for the device pool.

$sel:name:CreateDevicePool', createDevicePool_name - The device pool's name.

$sel:rules:CreateDevicePool', createDevicePool_rules - The device pool's rules.

Request Lenses

createDevicePool_maxDevices :: Lens' CreateDevicePool (Maybe Int) Source #

The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and meet the criteria that you assign for the rules parameter. Depending on how many devices meet these constraints, your device pool might contain fewer devices than the value for this parameter.

By specifying the maximum number of devices, you can control the costs that you incur by running tests.

createDevicePool_projectArn :: Lens' CreateDevicePool Text Source #

The ARN of the project for the device pool.

Destructuring the Response

data CreateDevicePoolResponse Source #

Represents the result of a create device pool request.

See: newCreateDevicePoolResponse smart constructor.

Constructors

CreateDevicePoolResponse' 

Fields

Instances

Instances details
Eq CreateDevicePoolResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Read CreateDevicePoolResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Show CreateDevicePoolResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Generic CreateDevicePoolResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Associated Types

type Rep CreateDevicePoolResponse :: Type -> Type #

NFData CreateDevicePoolResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

type Rep CreateDevicePoolResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

type Rep CreateDevicePoolResponse = D1 ('MetaData "CreateDevicePoolResponse" "Amazonka.DeviceFarm.CreateDevicePool" "libZSservicesZSamazonka-devicefarmZSamazonka-devicefarm" 'False) (C1 ('MetaCons "CreateDevicePoolResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "devicePool") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DevicePool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateDevicePoolResponse Source #

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

$sel:devicePool:CreateDevicePoolResponse', createDevicePoolResponse_devicePool - The newly created device pool.

$sel:httpStatus:CreateDevicePoolResponse', createDevicePoolResponse_httpStatus - The response's http status code.

Response Lenses