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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-devicefarm/lib/aws-sdk-devicefarm/types.rb

Overview

Note:

When making an API call, you may pass Rule data as a hash:

{
  attribute: "ARN", # accepts ARN, PLATFORM, FORM_FACTOR, MANUFACTURER, REMOTE_ACCESS_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.

Returns:

  • (String)


3192
3193
3194
3195
3196
3197
# File 'gems/aws-sdk-devicefarm/lib/aws-sdk-devicefarm/types.rb', line 3192

class Rule < Struct.new(
  :attribute,
  :operator,
  :value)
  include Aws::Structure
end

#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.

Returns:

  • (String)


3192
3193
3194
3195
3196
3197
# File 'gems/aws-sdk-devicefarm/lib/aws-sdk-devicefarm/types.rb', line 3192

class Rule < Struct.new(
  :attribute,
  :operator,
  :value)
  include Aws::Structure
end

#valueString

The rule's value.

Returns:

  • (String)


3192
3193
3194
3195
3196
3197
# File 'gems/aws-sdk-devicefarm/lib/aws-sdk-devicefarm/types.rb', line 3192

class Rule < Struct.new(
  :attribute,
  :operator,
  :value)
  include Aws::Structure
end