CfnDevicePoolProps

class aws_cdk.aws_devicefarm.CfnDevicePoolProps(*, name, project_arn, rules, description=None, max_devices=None, tags=None)

Bases: object

Properties for defining a CfnDevicePool.

Parameters:
  • name (str) – The device pool’s name.

  • project_arn (str) – The ARN of the project for the device pool.

  • rules (Union[IResolvable, Sequence[Union[IResolvable, RuleProperty, Dict[str, Any]]]]) – The device pool’s rules.

  • description (Optional[str]) – The device pool’s description.

  • max_devices (Union[int, float, None]) – 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.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – An array of key-value pairs to apply to this resource. For more information, see Tag in the guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devicefarm-devicepool.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_devicefarm as devicefarm

cfn_device_pool_props = devicefarm.CfnDevicePoolProps(
    name="name",
    project_arn="projectArn",
    rules=[devicefarm.CfnDevicePool.RuleProperty(
        attribute="attribute",
        operator="operator",
        value="value"
    )],

    # the properties below are optional
    description="description",
    max_devices=123,
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

description

The device pool’s description.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devicefarm-devicepool.html#cfn-devicefarm-devicepool-description

max_devices

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devicefarm-devicepool.html#cfn-devicefarm-devicepool-maxdevices

name

The device pool’s name.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devicefarm-devicepool.html#cfn-devicefarm-devicepool-name

project_arn

The ARN of the project for the device pool.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devicefarm-devicepool.html#cfn-devicefarm-devicepool-projectarn

rules

The device pool’s rules.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devicefarm-devicepool.html#cfn-devicefarm-devicepool-rules

tags

An array of key-value pairs to apply to this resource.

For more information, see Tag in the guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devicefarm-devicepool.html#cfn-devicefarm-devicepool-tags