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

  • description :: Maybe Text

    The device pool's description.

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

  • 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
ToJSON CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.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

AWSRequest CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Associated Types

type AWSResponse CreateDevicePool #

Generic CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Associated Types

type Rep CreateDevicePool :: Type -> Type #

Read CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Show CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

NFData CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Methods

rnf :: CreateDevicePool -> () #

Eq CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Hashable CreateDevicePool Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

type AWSResponse 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" "amazonka-devicefarm-2.0-2e4KvZvQ9bT8TNjEPvmW9Q" 'False) (C1 ('MetaCons "CreateDevicePool'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxDevices") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (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])))))

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:

CreateDevicePool, createDevicePool_description - The device pool's description.

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:projectArn:CreateDevicePool', createDevicePool_projectArn - The ARN of the project for the device pool.

CreateDevicePool, createDevicePool_name - The device pool's name.

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
Generic CreateDevicePoolResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Associated Types

type Rep CreateDevicePoolResponse :: Type -> Type #

Read CreateDevicePoolResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Show CreateDevicePoolResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

NFData CreateDevicePoolResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateDevicePool

Eq 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" "amazonka-devicefarm-2.0-2e4KvZvQ9bT8TNjEPvmW9Q" '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