Skip to content

Resource: awsDevicefarmDevicePool

Provides a resource to manage AWS Device Farm Device Pools.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.devicefarmDevicePool.DevicefarmDevicePool(this, "example", {
  name: "example",
  projectArn: "${aws_devicefarm_project.example.arn}",
  rule: [
    {
      attribute: "OS_VERSION",
      operator: "EQUALS",
      value: '"AVAILABLE"',
    },
  ],
});

Argument Reference

  • name - (Required) The name of the Device Pool
  • projectArn - (Required) The ARN of the project for the device pool.
  • rule - (Required) The device pool's rules. See Rule.
  • description - (Optional) The device pool's description.
  • maxDevices - (Optional) The number of devices that Device Farm can add to your device pool.
  • tags - (Optional) A map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Rule

  • attribute - (Optional) The rule's stringified attribute. Valid values are: APPIUM_VERSION, arn, availability, FLEET_TYPE, FORM_FACTOR, INSTANCE_ARN, INSTANCE_LABELS, manufacturer, model, OS_VERSION, platform, REMOTE_ACCESS_ENABLED, REMOTE_DEBUG_ENABLED.
  • operator - (Optional) Specifies how Device Farm compares the rule's attribute to the value. For the operators that are supported by each attribute. Valid values are: equals, NOT_IN, in, GREATER_THAN, GREATER_THAN_OR_EQUALS, LESS_THAN, LESS_THAN_OR_EQUALS, contains.
  • value - (Optional) The rule's value.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - The Amazon Resource Name of this Device Pool
  • tagsAll - A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

Import

DeviceFarm Device Pools can be imported by their arn:

$ terraform import aws_devicefarm_device_pool.example arn:aws:devicefarm:us-west-2:123456789012:devicepool:4fa784c7-ccb4-4dbf-ba4f-02198320daa1/4fa784c7-ccb4-4dbf-ba4f-02198320daa1