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.

CreateDevicePoolInput

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

type CreateDevicePoolInput struct { Description *string `locationName:"description" type:"string"` MaxDevices *int64 `locationName:"maxDevices" type:"integer"` Name *string `locationName:"name" type:"string" required:"true"` ProjectArn *string `locationName:"projectArn" min:"32" type:"string" required:"true"` Rules []*Rule `locationName:"rules" type:"list" required:"true"` }

Represents a request to the create device pool operation.

Description

Type: *string

The device pool's description.

MaxDevices

Type: *int64

The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and that meet the criteria that you assign for the rules parameter. Depending on how many devices meet these constraints, your device pool might contain fewer devices than the value for this parameter.

By specifying the maximum number of devices, you can control the costs that you incur by running tests.

Name

Type: *string

The device pool's name.

Name is a required field

ProjectArn

Type: *string

The ARN of the project for the device pool.

ProjectArn is a required field

Rules

Represents a condition for a device pool.

Method

GoString

func (s CreateDevicePoolInput) GoString() string

GoString returns the string representation

SetDescription

func (s *CreateDevicePoolInput) SetDescription(v string) *CreateDevicePoolInput

SetDescription sets the Description field's value.

SetMaxDevices

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

SetMaxDevices sets the MaxDevices field's value.

SetName

func (s *CreateDevicePoolInput) SetName(v string) *CreateDevicePoolInput

SetName sets the Name field's value.

SetProjectArn

func (s *CreateDevicePoolInput) SetProjectArn(v string) *CreateDevicePoolInput

SetProjectArn sets the ProjectArn field's value.

SetRules

func (s *CreateDevicePoolInput) SetRules(v []*Rule) *CreateDevicePoolInput

SetRules sets the Rules field's value.

String

func (s CreateDevicePoolInput) String() string

String returns the string representation

Validate

func (s *CreateDevicePoolInput) Validate() error

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

On this page: