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
  operator: "EQUALS", # accepts EQUALS, LESS_THAN, GREATER_THAN, IN, NOT_IN, CONTAINS
  value: "String",
}

Represents a condition for a device pool.

Instance Attribute Summary collapse

Instance Attribute Details

#attributeString

The rule\'s stringified attribute. For example, specify the value as "\"abc\"".

Allowed values include:

  • ARN: The ARN.

  • FORM_FACTOR: The form factor (for example, phone or tablet).

  • MANUFACTURER: The manufacturer.

  • PLATFORM: The platform (for example, Android or iOS).

  • REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.

  • APPIUM_VERSION: The Appium version for the test.

    Possible values:

    • ARN
    • PLATFORM
    • FORM_FACTOR
    • MANUFACTURER
    • REMOTE_ACCESS_ENABLED
    • REMOTE_DEBUG_ENABLED
    • APPIUM_VERSION

Returns:

  • (String)

    The rule\'s stringified 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.

Returns:

  • (String)

    The rule\'s value.