You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::DeviceFarm::Types::Rule

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Rule as input to an Aws::Client method, you can use a vanilla Hash:

{
  attribute: "ARN", # accepts ARN, PLATFORM, FORM_FACTOR, MANUFACTURER, REMOTE_ACCESS_ENABLED, REMOTE_DEBUG_ENABLED, APPIUM_VERSION, INSTANCE_ARN, INSTANCE_LABELS, FLEET_TYPE
  operator: "EQUALS", # accepts EQUALS, LESS_THAN, GREATER_THAN, IN, NOT_IN, CONTAINS
  value: "String",
}

Represents a condition for a device pool. It is passed in as the rules parameter to CreateDevicePool and UpdateDevicePool.

Instance Attribute Summary collapse

Instance Attribute Details

#attributeString

The rule\'s attribute. It is the aspect of a device such as platform or model used as selection criteria to create or update a device pool.

Allowed values include:

  • ARN: The Amazon Resource Name (ARN) of a device. For example, \"arn:aws:devicefarm:us-west-2::device:12345Example\".

  • PLATFORM: The device platform. Valid values are \"ANDROID\" or \"IOS\".

  • FORM_FACTOR: The device form factor. Valid values are \"PHONE\" or \"TABLET\".

  • MANUFACTURER: The device manufacturer. For example, \"Apple\".

  • REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access. Valid values are \"TRUE\" or \"FALSE\".

  • REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging. Valid values are \"TRUE\" or \"FALSE\".

  • APPIUM_VERSION: The Appium version for the test.

  • INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.

  • INSTANCE_LABELS: The label of the device instance.

  • FLEET_TYPE: The fleet type. Valid values are \"PUBLIC\" or \"PRIVATE\".

    Possible values:

    • ARN
    • PLATFORM
    • FORM_FACTOR
    • MANUFACTURER
    • REMOTE_ACCESS_ENABLED
    • REMOTE_DEBUG_ENABLED
    • APPIUM_VERSION
    • INSTANCE_ARN
    • INSTANCE_LABELS
    • FLEET_TYPE

Returns:

  • (String)

    The rule\'s attribute.

#operatorString

The rule\'s operator.

  • EQUALS: The equals operator.

  • GREATER_THAN: The greater-than operator.

  • IN: The in operator.

  • LESS_THAN: The less-than operator.

  • NOT_IN: The not-in operator.

  • CONTAINS: The contains operator.

    Possible values:

    • EQUALS
    • LESS_THAN
    • GREATER_THAN
    • IN
    • NOT_IN
    • CONTAINS

Returns:

  • (String)

    The rule\'s operator.

#valueString

The rule\'s value.

The value must be passed in as a string using escaped quotes.

For example:

\"value\": \"\\"ANDROID\\"\"

Returns:

  • (String)

    The rule\'s value.