# CfnDevicePoolProps

Properties for defining a `CfnDevicePool`.

Used as props by: [CfnDevicePool](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_devicefarm.CfnDevicePool.html)

- Source: Generated at build time
- Type last changed: v2.63.0 · 31 Jan 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devicefarm as devicefarm } from 'aws-cdk-lib';
const cfnDevicePoolProps: devicefarm.CfnDevicePoolProps = {
  name: 'name',
  projectArn: 'projectArn',
  rules: [{
    attribute: 'attribute',
    operator: 'operator',
    value: 'value',
  }],

  // the properties below are optional
  description: 'description',
  maxDevices: 123,
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# 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"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.devicefarm.*;

CfnDevicePoolProps cfnDevicePoolProps = CfnDevicePoolProps.builder()
        .name("name")
        .projectArn("projectArn")
        .rules(List.of(RuleProperty.builder()
                .attribute("attribute")
                .operator("operator")
                .value("value")
                .build()))

        // the properties below are optional
        .description("description")
        .maxDevices(123)
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DeviceFarm;

var cfnDevicePoolProps = new CfnDevicePoolProps {
    Name = "name",
    ProjectArn = "projectArn",
    Rules = new [] { new RuleProperty {
        Attribute = "attribute",
        Operator = "operator",
        Value = "value"
    } },

    // the properties below are optional
    Description = "description",
    MaxDevices = 123,
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnDevicePoolProps := &CfnDevicePoolProps{
	Name: jsii.String("name"),
	ProjectArn: jsii.String("projectArn"),
	Rules: []interface{}{
		&RuleProperty{
			Attribute: jsii.String("attribute"),
			Operator: jsii.String("operator"),
			Value: jsii.String("value"),
		},
	},

	// the properties below are optional
	Description: jsii.String("description"),
	MaxDevices: jsii.Number(123),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `description`: string — The device pool's description.

- `maxDevices`: number — 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.

- `name`: string (required) — The device pool's name.

- `projectArn`: string (required) — The ARN of the project for the device pool.

- `rules`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDevicePool.RuleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_devicefarm.CfnDevicePool.RuleProperty.html)[] (required) — The device pool's rules.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.

  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) in the *guide* .
