AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

DeviceSelectionConfiguration

import "github.com/aws/aws-sdk-go/service/devicefarm"

type DeviceSelectionConfiguration struct { Filters []*DeviceFilter `locationName:"filters" type:"list" required:"true"` MaxDevices *int64 `locationName:"maxDevices" type:"integer" required:"true"` }

Represents the device filters used in a test run as well as the maximum number of devices to be included in the run. It is passed in as the deviceSelectionConfiguration request parameter in ScheduleRun.

Filters

Represents a device filter used to select a set of devices to be included in a test run. This data structure is passed in as the deviceSelectionConfiguration parameter to ScheduleRun. For an example of the JSON request syntax, see ScheduleRun.

It is also passed in as the filters parameter to ListDevices. For an example of the JSON request syntax, see ListDevices.

MaxDevices

Type: *int64

The maximum number of devices to be included in a test run.

MaxDevices is a required field

Method

GoString

func (s DeviceSelectionConfiguration) GoString() string

GoString returns the string representation

SetFilters

func (s *DeviceSelectionConfiguration) SetFilters(v []*DeviceFilter) *DeviceSelectionConfiguration

SetFilters sets the Filters field's value.

SetMaxDevices

func (s *DeviceSelectionConfiguration) SetMaxDevices(v int64) *DeviceSelectionConfiguration

SetMaxDevices sets the MaxDevices field's value.

String

func (s DeviceSelectionConfiguration) String() string

String returns the string representation

Validate

func (s *DeviceSelectionConfiguration) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: