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.

DeviceFarm

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

type DeviceFarm struct { *client.Client }

DeviceFarm provides the API operation methods for making requests to AWS Device Farm. See this package's package overview docs for details on the service.

DeviceFarm methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

Client

Type: *client.Client

Method

CreateDevicePool

func (c *DeviceFarm) CreateDevicePool(input *CreateDevicePoolInput) (*CreateDevicePoolOutput, error)

CreateDevicePool API operation for AWS Device Farm.

Creates a device pool.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation CreateDevicePool for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateDevicePool

Example

DeviceFarm CreateDevicePool shared00

To create a new device pool

The following example creates a new device pool named MyDevicePool inside an existing project.

{ svc := devicefarm.New(session.New()) input := &devicefarm.CreateDevicePoolInput{ Description: aws.String("My Android devices"), Name: aws.String("MyDevicePool"), ProjectArn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"), } result, err := svc.CreateDevicePool(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

CreateDevicePoolRequest

func (c *DeviceFarm) CreateDevicePoolRequest(input *CreateDevicePoolInput) (req *request.Request, output *CreateDevicePoolOutput)

CreateDevicePoolRequest generates a "aws/request.Request" representing the client's request for the CreateDevicePool operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateDevicePool for more information on using the CreateDevicePool API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateDevicePoolRequest method. req, resp := client.CreateDevicePoolRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateDevicePool

CreateDevicePoolWithContext

func (c *DeviceFarm) CreateDevicePoolWithContext(ctx aws.Context, input *CreateDevicePoolInput, opts ...request.Option) (*CreateDevicePoolOutput, error)

CreateDevicePoolWithContext is the same as CreateDevicePool with the addition of the ability to pass a context and additional request options.

See CreateDevicePool for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateInstanceProfile

func (c *DeviceFarm) CreateInstanceProfile(input *CreateInstanceProfileInput) (*CreateInstanceProfileOutput, error)

CreateInstanceProfile API operation for AWS Device Farm.

Creates a profile that can be applied to one or more private fleet device instances.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation CreateInstanceProfile for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateInstanceProfile

CreateInstanceProfileRequest

func (c *DeviceFarm) CreateInstanceProfileRequest(input *CreateInstanceProfileInput) (req *request.Request, output *CreateInstanceProfileOutput)

CreateInstanceProfileRequest generates a "aws/request.Request" representing the client's request for the CreateInstanceProfile operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateInstanceProfile for more information on using the CreateInstanceProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateInstanceProfileRequest method. req, resp := client.CreateInstanceProfileRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateInstanceProfile

CreateInstanceProfileWithContext

func (c *DeviceFarm) CreateInstanceProfileWithContext(ctx aws.Context, input *CreateInstanceProfileInput, opts ...request.Option) (*CreateInstanceProfileOutput, error)

CreateInstanceProfileWithContext is the same as CreateInstanceProfile with the addition of the ability to pass a context and additional request options.

See CreateInstanceProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateNetworkProfile

func (c *DeviceFarm) CreateNetworkProfile(input *CreateNetworkProfileInput) (*CreateNetworkProfileOutput, error)

CreateNetworkProfile API operation for AWS Device Farm.

Creates a network profile.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation CreateNetworkProfile for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateNetworkProfile

CreateNetworkProfileRequest

func (c *DeviceFarm) CreateNetworkProfileRequest(input *CreateNetworkProfileInput) (req *request.Request, output *CreateNetworkProfileOutput)

CreateNetworkProfileRequest generates a "aws/request.Request" representing the client's request for the CreateNetworkProfile operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateNetworkProfile for more information on using the CreateNetworkProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateNetworkProfileRequest method. req, resp := client.CreateNetworkProfileRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateNetworkProfile

CreateNetworkProfileWithContext

func (c *DeviceFarm) CreateNetworkProfileWithContext(ctx aws.Context, input *CreateNetworkProfileInput, opts ...request.Option) (*CreateNetworkProfileOutput, error)

CreateNetworkProfileWithContext is the same as CreateNetworkProfile with the addition of the ability to pass a context and additional request options.

See CreateNetworkProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateProject

func (c *DeviceFarm) CreateProject(input *CreateProjectInput) (*CreateProjectOutput, error)

CreateProject API operation for AWS Device Farm.

Creates a new project.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation CreateProject for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateProject

Example

DeviceFarm CreateProject shared00

To create a new project

The following example creates a new project named MyProject.

{ svc := devicefarm.New(session.New()) input := &devicefarm.CreateProjectInput{ Name: aws.String("MyProject"), } result, err := svc.CreateProject(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

CreateProjectRequest

func (c *DeviceFarm) CreateProjectRequest(input *CreateProjectInput) (req *request.Request, output *CreateProjectOutput)

CreateProjectRequest generates a "aws/request.Request" representing the client's request for the CreateProject operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateProject for more information on using the CreateProject API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateProjectRequest method. req, resp := client.CreateProjectRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateProject

CreateProjectWithContext

func (c *DeviceFarm) CreateProjectWithContext(ctx aws.Context, input *CreateProjectInput, opts ...request.Option) (*CreateProjectOutput, error)

CreateProjectWithContext is the same as CreateProject with the addition of the ability to pass a context and additional request options.

See CreateProject for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateRemoteAccessSession

func (c *DeviceFarm) CreateRemoteAccessSession(input *CreateRemoteAccessSessionInput) (*CreateRemoteAccessSessionOutput, error)

CreateRemoteAccessSession API operation for AWS Device Farm.

Specifies and starts a remote access session.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation CreateRemoteAccessSession for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateRemoteAccessSession

Example

DeviceFarm CreateRemoteAccessSession shared00

To create a remote access session

The following example creates a remote access session named MySession.

{ svc := devicefarm.New(session.New()) input := &devicefarm.CreateRemoteAccessSessionInput{ Configuration: &devicefarm.CreateRemoteAccessSessionConfiguration{ BillingMethod: aws.String("METERED"), }, DeviceArn: aws.String("arn:aws:devicefarm:us-west-2::device:123EXAMPLE"), Name: aws.String("MySession"), ProjectArn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"), } result, err := svc.CreateRemoteAccessSession(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

CreateRemoteAccessSessionRequest

func (c *DeviceFarm) CreateRemoteAccessSessionRequest(input *CreateRemoteAccessSessionInput) (req *request.Request, output *CreateRemoteAccessSessionOutput)

CreateRemoteAccessSessionRequest generates a "aws/request.Request" representing the client's request for the CreateRemoteAccessSession operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateRemoteAccessSession for more information on using the CreateRemoteAccessSession API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateRemoteAccessSessionRequest method. req, resp := client.CreateRemoteAccessSessionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateRemoteAccessSession

CreateRemoteAccessSessionWithContext

func (c *DeviceFarm) CreateRemoteAccessSessionWithContext(ctx aws.Context, input *CreateRemoteAccessSessionInput, opts ...request.Option) (*CreateRemoteAccessSessionOutput, error)

CreateRemoteAccessSessionWithContext is the same as CreateRemoteAccessSession with the addition of the ability to pass a context and additional request options.

See CreateRemoteAccessSession for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateUpload

func (c *DeviceFarm) CreateUpload(input *CreateUploadInput) (*CreateUploadOutput, error)

CreateUpload API operation for AWS Device Farm.

Uploads an app or test scripts.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation CreateUpload for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateUpload

Example

DeviceFarm CreateUpload shared00

To create a new test package upload

The following example creates a new Appium Python test package upload inside an existing project.

{ svc := devicefarm.New(session.New()) input := &devicefarm.CreateUploadInput{ Name: aws.String("MyAppiumPythonUpload"), ProjectArn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"), Type: aws.String("APPIUM_PYTHON_TEST_PACKAGE"), } result, err := svc.CreateUpload(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

CreateUploadRequest

func (c *DeviceFarm) CreateUploadRequest(input *CreateUploadInput) (req *request.Request, output *CreateUploadOutput)

CreateUploadRequest generates a "aws/request.Request" representing the client's request for the CreateUpload operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateUpload for more information on using the CreateUpload API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateUploadRequest method. req, resp := client.CreateUploadRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateUpload

CreateUploadWithContext

func (c *DeviceFarm) CreateUploadWithContext(ctx aws.Context, input *CreateUploadInput, opts ...request.Option) (*CreateUploadOutput, error)

CreateUploadWithContext is the same as CreateUpload with the addition of the ability to pass a context and additional request options.

See CreateUpload for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateVPCEConfiguration

func (c *DeviceFarm) CreateVPCEConfiguration(input *CreateVPCEConfigurationInput) (*CreateVPCEConfigurationOutput, error)

CreateVPCEConfiguration API operation for AWS Device Farm.

Creates a configuration record in Device Farm for your Amazon Virtual Private Cloud (VPC) endpoint.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation CreateVPCEConfiguration for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateVPCEConfiguration

CreateVPCEConfigurationRequest

func (c *DeviceFarm) CreateVPCEConfigurationRequest(input *CreateVPCEConfigurationInput) (req *request.Request, output *CreateVPCEConfigurationOutput)

CreateVPCEConfigurationRequest generates a "aws/request.Request" representing the client's request for the CreateVPCEConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateVPCEConfiguration for more information on using the CreateVPCEConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateVPCEConfigurationRequest method. req, resp := client.CreateVPCEConfigurationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateVPCEConfiguration

CreateVPCEConfigurationWithContext

func (c *DeviceFarm) CreateVPCEConfigurationWithContext(ctx aws.Context, input *CreateVPCEConfigurationInput, opts ...request.Option) (*CreateVPCEConfigurationOutput, error)

CreateVPCEConfigurationWithContext is the same as CreateVPCEConfiguration with the addition of the ability to pass a context and additional request options.

See CreateVPCEConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteDevicePool

func (c *DeviceFarm) DeleteDevicePool(input *DeleteDevicePoolInput) (*DeleteDevicePoolOutput, error)

DeleteDevicePool API operation for AWS Device Farm.

Deletes a device pool given the pool ARN. Does not allow deletion of curated pools owned by the system.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation DeleteDevicePool for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteDevicePool

Example

DeviceFarm DeleteDevicePool shared00

To delete a device pool

The following example deletes a specific device pool.

{ svc := devicefarm.New(session.New()) input := &devicefarm.DeleteDevicePoolInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2::devicepool:123-456-EXAMPLE-GUID"), } result, err := svc.DeleteDevicePool(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DeleteDevicePoolRequest

func (c *DeviceFarm) DeleteDevicePoolRequest(input *DeleteDevicePoolInput) (req *request.Request, output *DeleteDevicePoolOutput)

DeleteDevicePoolRequest generates a "aws/request.Request" representing the client's request for the DeleteDevicePool operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteDevicePool for more information on using the DeleteDevicePool API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteDevicePoolRequest method. req, resp := client.DeleteDevicePoolRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteDevicePool

DeleteDevicePoolWithContext

func (c *DeviceFarm) DeleteDevicePoolWithContext(ctx aws.Context, input *DeleteDevicePoolInput, opts ...request.Option) (*DeleteDevicePoolOutput, error)

DeleteDevicePoolWithContext is the same as DeleteDevicePool with the addition of the ability to pass a context and additional request options.

See DeleteDevicePool for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteInstanceProfile

func (c *DeviceFarm) DeleteInstanceProfile(input *DeleteInstanceProfileInput) (*DeleteInstanceProfileOutput, error)

DeleteInstanceProfile API operation for AWS Device Farm.

Deletes a profile that can be applied to one or more private device instances.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation DeleteInstanceProfile for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteInstanceProfile

DeleteInstanceProfileRequest

func (c *DeviceFarm) DeleteInstanceProfileRequest(input *DeleteInstanceProfileInput) (req *request.Request, output *DeleteInstanceProfileOutput)

DeleteInstanceProfileRequest generates a "aws/request.Request" representing the client's request for the DeleteInstanceProfile operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteInstanceProfile for more information on using the DeleteInstanceProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteInstanceProfileRequest method. req, resp := client.DeleteInstanceProfileRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteInstanceProfile

DeleteInstanceProfileWithContext

func (c *DeviceFarm) DeleteInstanceProfileWithContext(ctx aws.Context, input *DeleteInstanceProfileInput, opts ...request.Option) (*DeleteInstanceProfileOutput, error)

DeleteInstanceProfileWithContext is the same as DeleteInstanceProfile with the addition of the ability to pass a context and additional request options.

See DeleteInstanceProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteNetworkProfile

func (c *DeviceFarm) DeleteNetworkProfile(input *DeleteNetworkProfileInput) (*DeleteNetworkProfileOutput, error)

DeleteNetworkProfile API operation for AWS Device Farm.

Deletes a network profile.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation DeleteNetworkProfile for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteNetworkProfile

DeleteNetworkProfileRequest

func (c *DeviceFarm) DeleteNetworkProfileRequest(input *DeleteNetworkProfileInput) (req *request.Request, output *DeleteNetworkProfileOutput)

DeleteNetworkProfileRequest generates a "aws/request.Request" representing the client's request for the DeleteNetworkProfile operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteNetworkProfile for more information on using the DeleteNetworkProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteNetworkProfileRequest method. req, resp := client.DeleteNetworkProfileRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteNetworkProfile

DeleteNetworkProfileWithContext

func (c *DeviceFarm) DeleteNetworkProfileWithContext(ctx aws.Context, input *DeleteNetworkProfileInput, opts ...request.Option) (*DeleteNetworkProfileOutput, error)

DeleteNetworkProfileWithContext is the same as DeleteNetworkProfile with the addition of the ability to pass a context and additional request options.

See DeleteNetworkProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteProject

func (c *DeviceFarm) DeleteProject(input *DeleteProjectInput) (*DeleteProjectOutput, error)

DeleteProject API operation for AWS Device Farm.

Deletes an AWS Device Farm project, given the project ARN.

Note Deleting this resource does not stop an in-progress run.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation DeleteProject for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteProject

Example

DeviceFarm DeleteProject shared00

To delete a project

The following example deletes a specific project.

{ svc := devicefarm.New(session.New()) input := &devicefarm.DeleteProjectInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"), } result, err := svc.DeleteProject(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DeleteProjectRequest

func (c *DeviceFarm) DeleteProjectRequest(input *DeleteProjectInput) (req *request.Request, output *DeleteProjectOutput)

DeleteProjectRequest generates a "aws/request.Request" representing the client's request for the DeleteProject operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteProject for more information on using the DeleteProject API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteProjectRequest method. req, resp := client.DeleteProjectRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteProject

DeleteProjectWithContext

func (c *DeviceFarm) DeleteProjectWithContext(ctx aws.Context, input *DeleteProjectInput, opts ...request.Option) (*DeleteProjectOutput, error)

DeleteProjectWithContext is the same as DeleteProject with the addition of the ability to pass a context and additional request options.

See DeleteProject for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteRemoteAccessSession

func (c *DeviceFarm) DeleteRemoteAccessSession(input *DeleteRemoteAccessSessionInput) (*DeleteRemoteAccessSessionOutput, error)

DeleteRemoteAccessSession API operation for AWS Device Farm.

Deletes a completed remote access session and its results.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation DeleteRemoteAccessSession for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteRemoteAccessSession

Example

DeviceFarm DeleteRemoteAccessSession shared00

To delete a specific remote access session

The following example deletes a specific remote access session.

{ svc := devicefarm.New(session.New()) input := &devicefarm.DeleteRemoteAccessSessionInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456"), } result, err := svc.DeleteRemoteAccessSession(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DeleteRemoteAccessSessionRequest

func (c *DeviceFarm) DeleteRemoteAccessSessionRequest(input *DeleteRemoteAccessSessionInput) (req *request.Request, output *DeleteRemoteAccessSessionOutput)

DeleteRemoteAccessSessionRequest generates a "aws/request.Request" representing the client's request for the DeleteRemoteAccessSession operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteRemoteAccessSession for more information on using the DeleteRemoteAccessSession API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteRemoteAccessSessionRequest method. req, resp := client.DeleteRemoteAccessSessionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteRemoteAccessSession

DeleteRemoteAccessSessionWithContext

func (c *DeviceFarm) DeleteRemoteAccessSessionWithContext(ctx aws.Context, input *DeleteRemoteAccessSessionInput, opts ...request.Option) (*DeleteRemoteAccessSessionOutput, error)

DeleteRemoteAccessSessionWithContext is the same as DeleteRemoteAccessSession with the addition of the ability to pass a context and additional request options.

See DeleteRemoteAccessSession for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteRun

func (c *DeviceFarm) DeleteRun(input *DeleteRunInput) (*DeleteRunOutput, error)

DeleteRun API operation for AWS Device Farm.

Deletes the run, given the run ARN.

Note Deleting this resource does not stop an in-progress run.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation DeleteRun for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteRun

Example

DeviceFarm DeleteRun shared00

To delete a run

The following example deletes a specific test run.

{ svc := devicefarm.New(session.New()) input := &devicefarm.DeleteRunInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456"), } result, err := svc.DeleteRun(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DeleteRunRequest

func (c *DeviceFarm) DeleteRunRequest(input *DeleteRunInput) (req *request.Request, output *DeleteRunOutput)

DeleteRunRequest generates a "aws/request.Request" representing the client's request for the DeleteRun operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteRun for more information on using the DeleteRun API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteRunRequest method. req, resp := client.DeleteRunRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteRun

DeleteRunWithContext

func (c *DeviceFarm) DeleteRunWithContext(ctx aws.Context, input *DeleteRunInput, opts ...request.Option) (*DeleteRunOutput, error)

DeleteRunWithContext is the same as DeleteRun with the addition of the ability to pass a context and additional request options.

See DeleteRun for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteUpload

func (c *DeviceFarm) DeleteUpload(input *DeleteUploadInput) (*DeleteUploadOutput, error)

DeleteUpload API operation for AWS Device Farm.

Deletes an upload given the upload ARN.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation DeleteUpload for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteUpload

Example

DeviceFarm DeleteUpload shared00

To delete a specific upload

The following example deletes a specific upload.

{ svc := devicefarm.New(session.New()) input := &devicefarm.DeleteUploadInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:upload:EXAMPLE-GUID-123-456"), } result, err := svc.DeleteUpload(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DeleteUploadRequest

func (c *DeviceFarm) DeleteUploadRequest(input *DeleteUploadInput) (req *request.Request, output *DeleteUploadOutput)

DeleteUploadRequest generates a "aws/request.Request" representing the client's request for the DeleteUpload operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteUpload for more information on using the DeleteUpload API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteUploadRequest method. req, resp := client.DeleteUploadRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteUpload

DeleteUploadWithContext

func (c *DeviceFarm) DeleteUploadWithContext(ctx aws.Context, input *DeleteUploadInput, opts ...request.Option) (*DeleteUploadOutput, error)

DeleteUploadWithContext is the same as DeleteUpload with the addition of the ability to pass a context and additional request options.

See DeleteUpload for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteVPCEConfiguration

func (c *DeviceFarm) DeleteVPCEConfiguration(input *DeleteVPCEConfigurationInput) (*DeleteVPCEConfigurationOutput, error)

DeleteVPCEConfiguration API operation for AWS Device Farm.

Deletes a configuration for your Amazon Virtual Private Cloud (VPC) endpoint.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation DeleteVPCEConfiguration for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

  • ErrCodeInvalidOperationException "InvalidOperationException" There was an error with the update request, or you do not have sufficient permissions to update this VPC endpoint configuration.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteVPCEConfiguration

DeleteVPCEConfigurationRequest

func (c *DeviceFarm) DeleteVPCEConfigurationRequest(input *DeleteVPCEConfigurationInput) (req *request.Request, output *DeleteVPCEConfigurationOutput)

DeleteVPCEConfigurationRequest generates a "aws/request.Request" representing the client's request for the DeleteVPCEConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteVPCEConfiguration for more information on using the DeleteVPCEConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteVPCEConfigurationRequest method. req, resp := client.DeleteVPCEConfigurationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteVPCEConfiguration

DeleteVPCEConfigurationWithContext

func (c *DeviceFarm) DeleteVPCEConfigurationWithContext(ctx aws.Context, input *DeleteVPCEConfigurationInput, opts ...request.Option) (*DeleteVPCEConfigurationOutput, error)

DeleteVPCEConfigurationWithContext is the same as DeleteVPCEConfiguration with the addition of the ability to pass a context and additional request options.

See DeleteVPCEConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetAccountSettings

func (c *DeviceFarm) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error)

GetAccountSettings API operation for AWS Device Farm.

Returns the number of unmetered iOS and/or unmetered Android devices that have been purchased by the account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetAccountSettings for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetAccountSettings

Example

DeviceFarm GetAccountSettings shared00

To get information about account settings

The following example returns information about your Device Farm account settings.

{ svc := devicefarm.New(session.New()) input := &devicefarm.GetAccountSettingsInput{} result, err := svc.GetAccountSettings(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

GetAccountSettingsRequest

func (c *DeviceFarm) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput)

GetAccountSettingsRequest generates a "aws/request.Request" representing the client's request for the GetAccountSettings operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetAccountSettings for more information on using the GetAccountSettings API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetAccountSettingsRequest method. req, resp := client.GetAccountSettingsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetAccountSettings

GetAccountSettingsWithContext

func (c *DeviceFarm) GetAccountSettingsWithContext(ctx aws.Context, input *GetAccountSettingsInput, opts ...request.Option) (*GetAccountSettingsOutput, error)

GetAccountSettingsWithContext is the same as GetAccountSettings with the addition of the ability to pass a context and additional request options.

See GetAccountSettings for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetDevice

func (c *DeviceFarm) GetDevice(input *GetDeviceInput) (*GetDeviceOutput, error)

GetDevice API operation for AWS Device Farm.

Gets information about a unique device type.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetDevice for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevice

Example

DeviceFarm GetDevice shared00

To get information about a device

The following example returns information about a specific device.

{ svc := devicefarm.New(session.New()) input := &devicefarm.GetDeviceInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2::device:123EXAMPLE"), } result, err := svc.GetDevice(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

GetDeviceInstance

func (c *DeviceFarm) GetDeviceInstance(input *GetDeviceInstanceInput) (*GetDeviceInstanceOutput, error)

GetDeviceInstance API operation for AWS Device Farm.

Returns information about a device instance belonging to a private device fleet.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetDeviceInstance for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDeviceInstance

GetDeviceInstanceRequest

func (c *DeviceFarm) GetDeviceInstanceRequest(input *GetDeviceInstanceInput) (req *request.Request, output *GetDeviceInstanceOutput)

GetDeviceInstanceRequest generates a "aws/request.Request" representing the client's request for the GetDeviceInstance operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetDeviceInstance for more information on using the GetDeviceInstance API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetDeviceInstanceRequest method. req, resp := client.GetDeviceInstanceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDeviceInstance

GetDeviceInstanceWithContext

func (c *DeviceFarm) GetDeviceInstanceWithContext(ctx aws.Context, input *GetDeviceInstanceInput, opts ...request.Option) (*GetDeviceInstanceOutput, error)

GetDeviceInstanceWithContext is the same as GetDeviceInstance with the addition of the ability to pass a context and additional request options.

See GetDeviceInstance for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetDevicePool

func (c *DeviceFarm) GetDevicePool(input *GetDevicePoolInput) (*GetDevicePoolOutput, error)

GetDevicePool API operation for AWS Device Farm.

Gets information about a device pool.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetDevicePool for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePool

Example

DeviceFarm GetDevicePool shared00

To get information about a device pool

The following example returns information about a specific device pool, given a project ARN.

{ svc := devicefarm.New(session.New()) input := &devicefarm.GetDevicePoolInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"), } result, err := svc.GetDevicePool(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

GetDevicePoolCompatibility

func (c *DeviceFarm) GetDevicePoolCompatibility(input *GetDevicePoolCompatibilityInput) (*GetDevicePoolCompatibilityOutput, error)

GetDevicePoolCompatibility API operation for AWS Device Farm.

Gets information about compatibility with a device pool.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetDevicePoolCompatibility for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePoolCompatibility

Example

DeviceFarm GetDevicePoolCompatibility shared00

To get information about the compatibility of a device pool

The following example returns information about the compatibility of a specific device pool, given its ARN.

{ svc := devicefarm.New(session.New()) input := &devicefarm.GetDevicePoolCompatibilityInput{ AppArn: aws.String("arn:aws:devicefarm:us-west-2::app:123-456-EXAMPLE-GUID"), DevicePoolArn: aws.String("arn:aws:devicefarm:us-west-2::devicepool:123-456-EXAMPLE-GUID"), TestType: aws.String("APPIUM_PYTHON"), } result, err := svc.GetDevicePoolCompatibility(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

GetDevicePoolCompatibilityRequest

func (c *DeviceFarm) GetDevicePoolCompatibilityRequest(input *GetDevicePoolCompatibilityInput) (req *request.Request, output *GetDevicePoolCompatibilityOutput)

GetDevicePoolCompatibilityRequest generates a "aws/request.Request" representing the client's request for the GetDevicePoolCompatibility operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetDevicePoolCompatibility for more information on using the GetDevicePoolCompatibility API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetDevicePoolCompatibilityRequest method. req, resp := client.GetDevicePoolCompatibilityRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePoolCompatibility

GetDevicePoolCompatibilityWithContext

func (c *DeviceFarm) GetDevicePoolCompatibilityWithContext(ctx aws.Context, input *GetDevicePoolCompatibilityInput, opts ...request.Option) (*GetDevicePoolCompatibilityOutput, error)

GetDevicePoolCompatibilityWithContext is the same as GetDevicePoolCompatibility with the addition of the ability to pass a context and additional request options.

See GetDevicePoolCompatibility for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetDevicePoolRequest

func (c *DeviceFarm) GetDevicePoolRequest(input *GetDevicePoolInput) (req *request.Request, output *GetDevicePoolOutput)

GetDevicePoolRequest generates a "aws/request.Request" representing the client's request for the GetDevicePool operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetDevicePool for more information on using the GetDevicePool API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetDevicePoolRequest method. req, resp := client.GetDevicePoolRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePool

GetDevicePoolWithContext

func (c *DeviceFarm) GetDevicePoolWithContext(ctx aws.Context, input *GetDevicePoolInput, opts ...request.Option) (*GetDevicePoolOutput, error)

GetDevicePoolWithContext is the same as GetDevicePool with the addition of the ability to pass a context and additional request options.

See GetDevicePool for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetDeviceRequest

func (c *DeviceFarm) GetDeviceRequest(input *GetDeviceInput) (req *request.Request, output *GetDeviceOutput)

GetDeviceRequest generates a "aws/request.Request" representing the client's request for the GetDevice operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetDevice for more information on using the GetDevice API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetDeviceRequest method. req, resp := client.GetDeviceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevice

GetDeviceWithContext

func (c *DeviceFarm) GetDeviceWithContext(ctx aws.Context, input *GetDeviceInput, opts ...request.Option) (*GetDeviceOutput, error)

GetDeviceWithContext is the same as GetDevice with the addition of the ability to pass a context and additional request options.

See GetDevice for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetInstanceProfile

func (c *DeviceFarm) GetInstanceProfile(input *GetInstanceProfileInput) (*GetInstanceProfileOutput, error)

GetInstanceProfile API operation for AWS Device Farm.

Returns information about the specified instance profile.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetInstanceProfile for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetInstanceProfile

GetInstanceProfileRequest

func (c *DeviceFarm) GetInstanceProfileRequest(input *GetInstanceProfileInput) (req *request.Request, output *GetInstanceProfileOutput)

GetInstanceProfileRequest generates a "aws/request.Request" representing the client's request for the GetInstanceProfile operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetInstanceProfile for more information on using the GetInstanceProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetInstanceProfileRequest method. req, resp := client.GetInstanceProfileRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetInstanceProfile

GetInstanceProfileWithContext

func (c *DeviceFarm) GetInstanceProfileWithContext(ctx aws.Context, input *GetInstanceProfileInput, opts ...request.Option) (*GetInstanceProfileOutput, error)

GetInstanceProfileWithContext is the same as GetInstanceProfile with the addition of the ability to pass a context and additional request options.

See GetInstanceProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetJob

func (c *DeviceFarm) GetJob(input *GetJobInput) (*GetJobOutput, error)

GetJob API operation for AWS Device Farm.

Gets information about a job.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetJob for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetJob

Example

DeviceFarm GetJob shared00

To get information about a job

The following example returns information about a specific job.

{ svc := devicefarm.New(session.New()) input := &devicefarm.GetJobInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2::job:123-456-EXAMPLE-GUID"), } result, err := svc.GetJob(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

GetJobRequest

func (c *DeviceFarm) GetJobRequest(input *GetJobInput) (req *request.Request, output *GetJobOutput)

GetJobRequest generates a "aws/request.Request" representing the client's request for the GetJob operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetJob for more information on using the GetJob API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetJobRequest method. req, resp := client.GetJobRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetJob

GetJobWithContext

func (c *DeviceFarm) GetJobWithContext(ctx aws.Context, input *GetJobInput, opts ...request.Option) (*GetJobOutput, error)

GetJobWithContext is the same as GetJob with the addition of the ability to pass a context and additional request options.

See GetJob for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetNetworkProfile

func (c *DeviceFarm) GetNetworkProfile(input *GetNetworkProfileInput) (*GetNetworkProfileOutput, error)

GetNetworkProfile API operation for AWS Device Farm.

Returns information about a network profile.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetNetworkProfile for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetNetworkProfile

GetNetworkProfileRequest

func (c *DeviceFarm) GetNetworkProfileRequest(input *GetNetworkProfileInput) (req *request.Request, output *GetNetworkProfileOutput)

GetNetworkProfileRequest generates a "aws/request.Request" representing the client's request for the GetNetworkProfile operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetNetworkProfile for more information on using the GetNetworkProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetNetworkProfileRequest method. req, resp := client.GetNetworkProfileRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetNetworkProfile

GetNetworkProfileWithContext

func (c *DeviceFarm) GetNetworkProfileWithContext(ctx aws.Context, input *GetNetworkProfileInput, opts ...request.Option) (*GetNetworkProfileOutput, error)

GetNetworkProfileWithContext is the same as GetNetworkProfile with the addition of the ability to pass a context and additional request options.

See GetNetworkProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetOfferingStatus

func (c *DeviceFarm) GetOfferingStatus(input *GetOfferingStatusInput) (*GetOfferingStatusOutput, error)

GetOfferingStatus API operation for AWS Device Farm.

Gets the current status and future status of all offerings purchased by an AWS account. The response indicates how many offerings are currently available and the offerings that will be available in the next period. The API returns a NotEligible error if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com (mailto:aws-devicefarm-support@amazon.com) if you believe that you should be able to invoke this operation.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetOfferingStatus for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeNotEligibleException "NotEligibleException" Exception gets thrown when a user is not eligible to perform the specified transaction.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetOfferingStatus

Example

DeviceFarm GetOfferingStatus shared00

To get status information about device offerings

The following example returns information about Device Farm offerings available to your account.

{ svc := devicefarm.New(session.New()) input := &devicefarm.GetOfferingStatusInput{ NextToken: aws.String("RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE="), } result, err := svc.GetOfferingStatus(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeNotEligibleException: fmt.Println(devicefarm.ErrCodeNotEligibleException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

GetOfferingStatusPages

func (c *DeviceFarm) GetOfferingStatusPages(input *GetOfferingStatusInput, fn func(*GetOfferingStatusOutput, bool) bool) error

GetOfferingStatusPages iterates over the pages of a GetOfferingStatus operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See GetOfferingStatus method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a GetOfferingStatus operation. pageNum := 0 err := client.GetOfferingStatusPages(params, func(page *GetOfferingStatusOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

GetOfferingStatusPagesWithContext

func (c *DeviceFarm) GetOfferingStatusPagesWithContext(ctx aws.Context, input *GetOfferingStatusInput, fn func(*GetOfferingStatusOutput, bool) bool, opts ...request.Option) error

GetOfferingStatusPagesWithContext same as GetOfferingStatusPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetOfferingStatusRequest

func (c *DeviceFarm) GetOfferingStatusRequest(input *GetOfferingStatusInput) (req *request.Request, output *GetOfferingStatusOutput)

GetOfferingStatusRequest generates a "aws/request.Request" representing the client's request for the GetOfferingStatus operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetOfferingStatus for more information on using the GetOfferingStatus API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetOfferingStatusRequest method. req, resp := client.GetOfferingStatusRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetOfferingStatus

GetOfferingStatusWithContext

func (c *DeviceFarm) GetOfferingStatusWithContext(ctx aws.Context, input *GetOfferingStatusInput, opts ...request.Option) (*GetOfferingStatusOutput, error)

GetOfferingStatusWithContext is the same as GetOfferingStatus with the addition of the ability to pass a context and additional request options.

See GetOfferingStatus for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetProject

func (c *DeviceFarm) GetProject(input *GetProjectInput) (*GetProjectOutput, error)

GetProject API operation for AWS Device Farm.

Gets information about a project.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetProject for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetProject

Example

DeviceFarm GetProject shared00

To get information about a project

The following example gets information about a specific project.

{ svc := devicefarm.New(session.New()) input := &devicefarm.GetProjectInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE"), } result, err := svc.GetProject(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

GetProjectRequest

func (c *DeviceFarm) GetProjectRequest(input *GetProjectInput) (req *request.Request, output *GetProjectOutput)

GetProjectRequest generates a "aws/request.Request" representing the client's request for the GetProject operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetProject for more information on using the GetProject API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetProjectRequest method. req, resp := client.GetProjectRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetProject

GetProjectWithContext

func (c *DeviceFarm) GetProjectWithContext(ctx aws.Context, input *GetProjectInput, opts ...request.Option) (*GetProjectOutput, error)

GetProjectWithContext is the same as GetProject with the addition of the ability to pass a context and additional request options.

See GetProject for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetRemoteAccessSession

func (c *DeviceFarm) GetRemoteAccessSession(input *GetRemoteAccessSessionInput) (*GetRemoteAccessSessionOutput, error)

GetRemoteAccessSession API operation for AWS Device Farm.

Returns a link to a currently running remote access session.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetRemoteAccessSession for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetRemoteAccessSession

Example

DeviceFarm GetRemoteAccessSession shared00

To get a remote access session

The following example gets a specific remote access session.

{ svc := devicefarm.New(session.New()) input := &devicefarm.GetRemoteAccessSessionInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456"), } result, err := svc.GetRemoteAccessSession(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

GetRemoteAccessSessionRequest

func (c *DeviceFarm) GetRemoteAccessSessionRequest(input *GetRemoteAccessSessionInput) (req *request.Request, output *GetRemoteAccessSessionOutput)

GetRemoteAccessSessionRequest generates a "aws/request.Request" representing the client's request for the GetRemoteAccessSession operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetRemoteAccessSession for more information on using the GetRemoteAccessSession API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetRemoteAccessSessionRequest method. req, resp := client.GetRemoteAccessSessionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetRemoteAccessSession

GetRemoteAccessSessionWithContext

func (c *DeviceFarm) GetRemoteAccessSessionWithContext(ctx aws.Context, input *GetRemoteAccessSessionInput, opts ...request.Option) (*GetRemoteAccessSessionOutput, error)

GetRemoteAccessSessionWithContext is the same as GetRemoteAccessSession with the addition of the ability to pass a context and additional request options.

See GetRemoteAccessSession for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetRun

func (c *DeviceFarm) GetRun(input *GetRunInput) (*GetRunOutput, error)

GetRun API operation for AWS Device Farm.

Gets information about a run.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetRun for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetRun

Example

DeviceFarm GetRun shared00

To get information about a test run

The following example gets information about a specific test run.

{ svc := devicefarm.New(session.New()) input := &devicefarm.GetRunInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE"), } result, err := svc.GetRun(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

GetRunRequest

func (c *DeviceFarm) GetRunRequest(input *GetRunInput) (req *request.Request, output *GetRunOutput)

GetRunRequest generates a "aws/request.Request" representing the client's request for the GetRun operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetRun for more information on using the GetRun API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetRunRequest method. req, resp := client.GetRunRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetRun

GetRunWithContext

func (c *DeviceFarm) GetRunWithContext(ctx aws.Context, input *GetRunInput, opts ...request.Option) (*GetRunOutput, error)

GetRunWithContext is the same as GetRun with the addition of the ability to pass a context and additional request options.

See GetRun for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetSuite

func (c *DeviceFarm) GetSuite(input *GetSuiteInput) (*GetSuiteOutput, error)

GetSuite API operation for AWS Device Farm.

Gets information about a suite.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetSuite for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetSuite

Example

DeviceFarm GetSuite shared00

To get information about a test suite

The following example gets information about a specific test suite.

{ svc := devicefarm.New(session.New()) input := &devicefarm.GetSuiteInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:suite:EXAMPLE-GUID-123-456"), } result, err := svc.GetSuite(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

GetSuiteRequest

func (c *DeviceFarm) GetSuiteRequest(input *GetSuiteInput) (req *request.Request, output *GetSuiteOutput)

GetSuiteRequest generates a "aws/request.Request" representing the client's request for the GetSuite operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetSuite for more information on using the GetSuite API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetSuiteRequest method. req, resp := client.GetSuiteRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetSuite

GetSuiteWithContext

func (c *DeviceFarm) GetSuiteWithContext(ctx aws.Context, input *GetSuiteInput, opts ...request.Option) (*GetSuiteOutput, error)

GetSuiteWithContext is the same as GetSuite with the addition of the ability to pass a context and additional request options.

See GetSuite for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetTest

func (c *DeviceFarm) GetTest(input *GetTestInput) (*GetTestOutput, error)

GetTest API operation for AWS Device Farm.

Gets information about a test.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetTest for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetTest

Example

DeviceFarm GetTest shared00

To get information about a specific test

The following example gets information about a specific test.

{ svc := devicefarm.New(session.New()) input := &devicefarm.GetTestInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:test:EXAMPLE-GUID-123-456"), } result, err := svc.GetTest(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

GetTestRequest

func (c *DeviceFarm) GetTestRequest(input *GetTestInput) (req *request.Request, output *GetTestOutput)

GetTestRequest generates a "aws/request.Request" representing the client's request for the GetTest operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetTest for more information on using the GetTest API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetTestRequest method. req, resp := client.GetTestRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetTest

GetTestWithContext

func (c *DeviceFarm) GetTestWithContext(ctx aws.Context, input *GetTestInput, opts ...request.Option) (*GetTestOutput, error)

GetTestWithContext is the same as GetTest with the addition of the ability to pass a context and additional request options.

See GetTest for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetUpload

func (c *DeviceFarm) GetUpload(input *GetUploadInput) (*GetUploadOutput, error)

GetUpload API operation for AWS Device Farm.

Gets information about an upload.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetUpload for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetUpload

Example

DeviceFarm GetUpload shared00

To get information about a specific upload

The following example gets information about a specific upload.

{ svc := devicefarm.New(session.New()) input := &devicefarm.GetUploadInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:upload:EXAMPLE-GUID-123-456"), } result, err := svc.GetUpload(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

GetUploadRequest

func (c *DeviceFarm) GetUploadRequest(input *GetUploadInput) (req *request.Request, output *GetUploadOutput)

GetUploadRequest generates a "aws/request.Request" representing the client's request for the GetUpload operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetUpload for more information on using the GetUpload API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetUploadRequest method. req, resp := client.GetUploadRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetUpload

GetUploadWithContext

func (c *DeviceFarm) GetUploadWithContext(ctx aws.Context, input *GetUploadInput, opts ...request.Option) (*GetUploadOutput, error)

GetUploadWithContext is the same as GetUpload with the addition of the ability to pass a context and additional request options.

See GetUpload for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetVPCEConfiguration

func (c *DeviceFarm) GetVPCEConfiguration(input *GetVPCEConfigurationInput) (*GetVPCEConfigurationOutput, error)

GetVPCEConfiguration API operation for AWS Device Farm.

Returns information about the configuration settings for your Amazon Virtual Private Cloud (VPC) endpoint.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation GetVPCEConfiguration for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetVPCEConfiguration

GetVPCEConfigurationRequest

func (c *DeviceFarm) GetVPCEConfigurationRequest(input *GetVPCEConfigurationInput) (req *request.Request, output *GetVPCEConfigurationOutput)

GetVPCEConfigurationRequest generates a "aws/request.Request" representing the client's request for the GetVPCEConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetVPCEConfiguration for more information on using the GetVPCEConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetVPCEConfigurationRequest method. req, resp := client.GetVPCEConfigurationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetVPCEConfiguration

GetVPCEConfigurationWithContext

func (c *DeviceFarm) GetVPCEConfigurationWithContext(ctx aws.Context, input *GetVPCEConfigurationInput, opts ...request.Option) (*GetVPCEConfigurationOutput, error)

GetVPCEConfigurationWithContext is the same as GetVPCEConfiguration with the addition of the ability to pass a context and additional request options.

See GetVPCEConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

InstallToRemoteAccessSession

func (c *DeviceFarm) InstallToRemoteAccessSession(input *InstallToRemoteAccessSessionInput) (*InstallToRemoteAccessSessionOutput, error)

InstallToRemoteAccessSession API operation for AWS Device Farm.

Installs an application to the device in a remote access session. For Android applications, the file must be in .apk format. For iOS applications, the file must be in .ipa format.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation InstallToRemoteAccessSession for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/InstallToRemoteAccessSession

Example

DeviceFarm InstallToRemoteAccessSession shared00

To install to a remote access session

The following example installs a specific app to a device in a specific remote access session.

{ svc := devicefarm.New(session.New()) input := &devicefarm.InstallToRemoteAccessSessionInput{ AppArn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:app:EXAMPLE-GUID-123-456"), RemoteAccessSessionArn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456"), } result, err := svc.InstallToRemoteAccessSession(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

InstallToRemoteAccessSessionRequest

func (c *DeviceFarm) InstallToRemoteAccessSessionRequest(input *InstallToRemoteAccessSessionInput) (req *request.Request, output *InstallToRemoteAccessSessionOutput)

InstallToRemoteAccessSessionRequest generates a "aws/request.Request" representing the client's request for the InstallToRemoteAccessSession operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See InstallToRemoteAccessSession for more information on using the InstallToRemoteAccessSession API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the InstallToRemoteAccessSessionRequest method. req, resp := client.InstallToRemoteAccessSessionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/InstallToRemoteAccessSession

InstallToRemoteAccessSessionWithContext

func (c *DeviceFarm) InstallToRemoteAccessSessionWithContext(ctx aws.Context, input *InstallToRemoteAccessSessionInput, opts ...request.Option) (*InstallToRemoteAccessSessionOutput, error)

InstallToRemoteAccessSessionWithContext is the same as InstallToRemoteAccessSession with the addition of the ability to pass a context and additional request options.

See InstallToRemoteAccessSession for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListArtifacts

func (c *DeviceFarm) ListArtifacts(input *ListArtifactsInput) (*ListArtifactsOutput, error)

ListArtifacts API operation for AWS Device Farm.

Gets information about artifacts.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListArtifacts for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListArtifacts

Example

DeviceFarm ListArtifacts shared00

To list artifacts for a resource

The following example lists screenshot artifacts for a specific run.

{ svc := devicefarm.New(session.New()) input := &devicefarm.ListArtifactsInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456"), Type: aws.String("SCREENSHOT"), } result, err := svc.ListArtifacts(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ListArtifactsPages

func (c *DeviceFarm) ListArtifactsPages(input *ListArtifactsInput, fn func(*ListArtifactsOutput, bool) bool) error

ListArtifactsPages iterates over the pages of a ListArtifacts operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListArtifacts method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListArtifacts operation. pageNum := 0 err := client.ListArtifactsPages(params, func(page *ListArtifactsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListArtifactsPagesWithContext

func (c *DeviceFarm) ListArtifactsPagesWithContext(ctx aws.Context, input *ListArtifactsInput, fn func(*ListArtifactsOutput, bool) bool, opts ...request.Option) error

ListArtifactsPagesWithContext same as ListArtifactsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListArtifactsRequest

func (c *DeviceFarm) ListArtifactsRequest(input *ListArtifactsInput) (req *request.Request, output *ListArtifactsOutput)

ListArtifactsRequest generates a "aws/request.Request" representing the client's request for the ListArtifacts operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListArtifacts for more information on using the ListArtifacts API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListArtifactsRequest method. req, resp := client.ListArtifactsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListArtifacts

ListArtifactsWithContext

func (c *DeviceFarm) ListArtifactsWithContext(ctx aws.Context, input *ListArtifactsInput, opts ...request.Option) (*ListArtifactsOutput, error)

ListArtifactsWithContext is the same as ListArtifacts with the addition of the ability to pass a context and additional request options.

See ListArtifacts for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListDeviceInstances

func (c *DeviceFarm) ListDeviceInstances(input *ListDeviceInstancesInput) (*ListDeviceInstancesOutput, error)

ListDeviceInstances API operation for AWS Device Farm.

Returns information about the private device instances associated with one or more AWS accounts.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListDeviceInstances for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDeviceInstances

ListDeviceInstancesRequest

func (c *DeviceFarm) ListDeviceInstancesRequest(input *ListDeviceInstancesInput) (req *request.Request, output *ListDeviceInstancesOutput)

ListDeviceInstancesRequest generates a "aws/request.Request" representing the client's request for the ListDeviceInstances operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListDeviceInstances for more information on using the ListDeviceInstances API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListDeviceInstancesRequest method. req, resp := client.ListDeviceInstancesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDeviceInstances

ListDeviceInstancesWithContext

func (c *DeviceFarm) ListDeviceInstancesWithContext(ctx aws.Context, input *ListDeviceInstancesInput, opts ...request.Option) (*ListDeviceInstancesOutput, error)

ListDeviceInstancesWithContext is the same as ListDeviceInstances with the addition of the ability to pass a context and additional request options.

See ListDeviceInstances for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListDevicePools

func (c *DeviceFarm) ListDevicePools(input *ListDevicePoolsInput) (*ListDevicePoolsOutput, error)

ListDevicePools API operation for AWS Device Farm.

Gets information about device pools.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListDevicePools for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDevicePools

Example

DeviceFarm ListDevicePools shared00

To get information about device pools

The following example returns information about the private device pools in a specific project.

{ svc := devicefarm.New(session.New()) input := &devicefarm.ListDevicePoolsInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"), Type: aws.String("PRIVATE"), } result, err := svc.ListDevicePools(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ListDevicePoolsPages

func (c *DeviceFarm) ListDevicePoolsPages(input *ListDevicePoolsInput, fn func(*ListDevicePoolsOutput, bool) bool) error

ListDevicePoolsPages iterates over the pages of a ListDevicePools operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListDevicePools method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListDevicePools operation. pageNum := 0 err := client.ListDevicePoolsPages(params, func(page *ListDevicePoolsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListDevicePoolsPagesWithContext

func (c *DeviceFarm) ListDevicePoolsPagesWithContext(ctx aws.Context, input *ListDevicePoolsInput, fn func(*ListDevicePoolsOutput, bool) bool, opts ...request.Option) error

ListDevicePoolsPagesWithContext same as ListDevicePoolsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListDevicePoolsRequest

func (c *DeviceFarm) ListDevicePoolsRequest(input *ListDevicePoolsInput) (req *request.Request, output *ListDevicePoolsOutput)

ListDevicePoolsRequest generates a "aws/request.Request" representing the client's request for the ListDevicePools operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListDevicePools for more information on using the ListDevicePools API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListDevicePoolsRequest method. req, resp := client.ListDevicePoolsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDevicePools

ListDevicePoolsWithContext

func (c *DeviceFarm) ListDevicePoolsWithContext(ctx aws.Context, input *ListDevicePoolsInput, opts ...request.Option) (*ListDevicePoolsOutput, error)

ListDevicePoolsWithContext is the same as ListDevicePools with the addition of the ability to pass a context and additional request options.

See ListDevicePools for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListDevices

func (c *DeviceFarm) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error)

ListDevices API operation for AWS Device Farm.

Gets information about unique device types.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListDevices for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDevices

Example

DeviceFarm ListDevices shared00

To get information about devices

The following example returns information about the available devices in a specific project.

{ svc := devicefarm.New(session.New()) input := &devicefarm.ListDevicesInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"), } result, err := svc.ListDevices(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ListDevicesPages

func (c *DeviceFarm) ListDevicesPages(input *ListDevicesInput, fn func(*ListDevicesOutput, bool) bool) error

ListDevicesPages iterates over the pages of a ListDevices operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListDevices method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListDevices operation. pageNum := 0 err := client.ListDevicesPages(params, func(page *ListDevicesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListDevicesPagesWithContext

func (c *DeviceFarm) ListDevicesPagesWithContext(ctx aws.Context, input *ListDevicesInput, fn func(*ListDevicesOutput, bool) bool, opts ...request.Option) error

ListDevicesPagesWithContext same as ListDevicesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListDevicesRequest

func (c *DeviceFarm) ListDevicesRequest(input *ListDevicesInput) (req *request.Request, output *ListDevicesOutput)

ListDevicesRequest generates a "aws/request.Request" representing the client's request for the ListDevices operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListDevices for more information on using the ListDevices API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListDevicesRequest method. req, resp := client.ListDevicesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDevices

ListDevicesWithContext

func (c *DeviceFarm) ListDevicesWithContext(ctx aws.Context, input *ListDevicesInput, opts ...request.Option) (*ListDevicesOutput, error)

ListDevicesWithContext is the same as ListDevices with the addition of the ability to pass a context and additional request options.

See ListDevices for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListInstanceProfiles

func (c *DeviceFarm) ListInstanceProfiles(input *ListInstanceProfilesInput) (*ListInstanceProfilesOutput, error)

ListInstanceProfiles API operation for AWS Device Farm.

Returns information about all the instance profiles in an AWS account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListInstanceProfiles for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListInstanceProfiles

ListInstanceProfilesRequest

func (c *DeviceFarm) ListInstanceProfilesRequest(input *ListInstanceProfilesInput) (req *request.Request, output *ListInstanceProfilesOutput)

ListInstanceProfilesRequest generates a "aws/request.Request" representing the client's request for the ListInstanceProfiles operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListInstanceProfiles for more information on using the ListInstanceProfiles API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListInstanceProfilesRequest method. req, resp := client.ListInstanceProfilesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListInstanceProfiles

ListInstanceProfilesWithContext

func (c *DeviceFarm) ListInstanceProfilesWithContext(ctx aws.Context, input *ListInstanceProfilesInput, opts ...request.Option) (*ListInstanceProfilesOutput, error)

ListInstanceProfilesWithContext is the same as ListInstanceProfiles with the addition of the ability to pass a context and additional request options.

See ListInstanceProfiles for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListJobs

func (c *DeviceFarm) ListJobs(input *ListJobsInput) (*ListJobsOutput, error)

ListJobs API operation for AWS Device Farm.

Gets information about jobs for a given test run.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListJobs for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListJobs

Example

DeviceFarm ListJobs shared00

To get information about jobs

The following example returns information about jobs in a specific project.

{ svc := devicefarm.New(session.New()) input := &devicefarm.ListJobsInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"), } result, err := svc.ListJobs(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ListJobsPages

func (c *DeviceFarm) ListJobsPages(input *ListJobsInput, fn func(*ListJobsOutput, bool) bool) error

ListJobsPages iterates over the pages of a ListJobs operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListJobs method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListJobs operation. pageNum := 0 err := client.ListJobsPages(params, func(page *ListJobsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListJobsPagesWithContext

func (c *DeviceFarm) ListJobsPagesWithContext(ctx aws.Context, input *ListJobsInput, fn func(*ListJobsOutput, bool) bool, opts ...request.Option) error

ListJobsPagesWithContext same as ListJobsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListJobsRequest

func (c *DeviceFarm) ListJobsRequest(input *ListJobsInput) (req *request.Request, output *ListJobsOutput)

ListJobsRequest generates a "aws/request.Request" representing the client's request for the ListJobs operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListJobs for more information on using the ListJobs API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListJobsRequest method. req, resp := client.ListJobsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListJobs

ListJobsWithContext

func (c *DeviceFarm) ListJobsWithContext(ctx aws.Context, input *ListJobsInput, opts ...request.Option) (*ListJobsOutput, error)

ListJobsWithContext is the same as ListJobs with the addition of the ability to pass a context and additional request options.

See ListJobs for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListNetworkProfiles

func (c *DeviceFarm) ListNetworkProfiles(input *ListNetworkProfilesInput) (*ListNetworkProfilesOutput, error)

ListNetworkProfiles API operation for AWS Device Farm.

Returns the list of available network profiles.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListNetworkProfiles for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListNetworkProfiles

ListNetworkProfilesRequest

func (c *DeviceFarm) ListNetworkProfilesRequest(input *ListNetworkProfilesInput) (req *request.Request, output *ListNetworkProfilesOutput)

ListNetworkProfilesRequest generates a "aws/request.Request" representing the client's request for the ListNetworkProfiles operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListNetworkProfiles for more information on using the ListNetworkProfiles API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListNetworkProfilesRequest method. req, resp := client.ListNetworkProfilesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListNetworkProfiles

ListNetworkProfilesWithContext

func (c *DeviceFarm) ListNetworkProfilesWithContext(ctx aws.Context, input *ListNetworkProfilesInput, opts ...request.Option) (*ListNetworkProfilesOutput, error)

ListNetworkProfilesWithContext is the same as ListNetworkProfiles with the addition of the ability to pass a context and additional request options.

See ListNetworkProfiles for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListOfferingPromotions

func (c *DeviceFarm) ListOfferingPromotions(input *ListOfferingPromotionsInput) (*ListOfferingPromotionsOutput, error)

ListOfferingPromotions API operation for AWS Device Farm.

Returns a list of offering promotions. Each offering promotion record contains the ID and description of the promotion. The API returns a NotEligible error if the caller is not permitted to invoke the operation. Contact aws-devicefarm-support@amazon.com (mailto:aws-devicefarm-support@amazon.com) if you believe that you should be able to invoke this operation.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListOfferingPromotions for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeNotEligibleException "NotEligibleException" Exception gets thrown when a user is not eligible to perform the specified transaction.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferingPromotions

ListOfferingPromotionsRequest

func (c *DeviceFarm) ListOfferingPromotionsRequest(input *ListOfferingPromotionsInput) (req *request.Request, output *ListOfferingPromotionsOutput)

ListOfferingPromotionsRequest generates a "aws/request.Request" representing the client's request for the ListOfferingPromotions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListOfferingPromotions for more information on using the ListOfferingPromotions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListOfferingPromotionsRequest method. req, resp := client.ListOfferingPromotionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferingPromotions

ListOfferingPromotionsWithContext

func (c *DeviceFarm) ListOfferingPromotionsWithContext(ctx aws.Context, input *ListOfferingPromotionsInput, opts ...request.Option) (*ListOfferingPromotionsOutput, error)

ListOfferingPromotionsWithContext is the same as ListOfferingPromotions with the addition of the ability to pass a context and additional request options.

See ListOfferingPromotions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListOfferingTransactions

func (c *DeviceFarm) ListOfferingTransactions(input *ListOfferingTransactionsInput) (*ListOfferingTransactionsOutput, error)

ListOfferingTransactions API operation for AWS Device Farm.

Returns a list of all historical purchases, renewals, and system renewal transactions for an AWS account. The list is paginated and ordered by a descending timestamp (most recent transactions are first). The API returns a NotEligible error if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com (mailto:aws-devicefarm-support@amazon.com) if you believe that you should be able to invoke this operation.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListOfferingTransactions for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeNotEligibleException "NotEligibleException" Exception gets thrown when a user is not eligible to perform the specified transaction.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferingTransactions

Example

DeviceFarm ListOfferingTransactions shared00

To get information about device offering transactions

The following example returns information about Device Farm offering transactions.

{ svc := devicefarm.New(session.New()) input := &devicefarm.ListOfferingTransactionsInput{ NextToken: aws.String("RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE="), } result, err := svc.ListOfferingTransactions(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeNotEligibleException: fmt.Println(devicefarm.ErrCodeNotEligibleException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ListOfferingTransactionsPages

func (c *DeviceFarm) ListOfferingTransactionsPages(input *ListOfferingTransactionsInput, fn func(*ListOfferingTransactionsOutput, bool) bool) error

ListOfferingTransactionsPages iterates over the pages of a ListOfferingTransactions operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListOfferingTransactions method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListOfferingTransactions operation. pageNum := 0 err := client.ListOfferingTransactionsPages(params, func(page *ListOfferingTransactionsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListOfferingTransactionsPagesWithContext

func (c *DeviceFarm) ListOfferingTransactionsPagesWithContext(ctx aws.Context, input *ListOfferingTransactionsInput, fn func(*ListOfferingTransactionsOutput, bool) bool, opts ...request.Option) error

ListOfferingTransactionsPagesWithContext same as ListOfferingTransactionsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListOfferingTransactionsRequest

func (c *DeviceFarm) ListOfferingTransactionsRequest(input *ListOfferingTransactionsInput) (req *request.Request, output *ListOfferingTransactionsOutput)

ListOfferingTransactionsRequest generates a "aws/request.Request" representing the client's request for the ListOfferingTransactions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListOfferingTransactions for more information on using the ListOfferingTransactions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListOfferingTransactionsRequest method. req, resp := client.ListOfferingTransactionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferingTransactions

ListOfferingTransactionsWithContext

func (c *DeviceFarm) ListOfferingTransactionsWithContext(ctx aws.Context, input *ListOfferingTransactionsInput, opts ...request.Option) (*ListOfferingTransactionsOutput, error)

ListOfferingTransactionsWithContext is the same as ListOfferingTransactions with the addition of the ability to pass a context and additional request options.

See ListOfferingTransactions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListOfferings

func (c *DeviceFarm) ListOfferings(input *ListOfferingsInput) (*ListOfferingsOutput, error)

ListOfferings API operation for AWS Device Farm.

Returns a list of products or offerings that the user can manage through the API. Each offering record indicates the recurring price per unit and the frequency for that offering. The API returns a NotEligible error if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com (mailto:aws-devicefarm-support@amazon.com) if you believe that you should be able to invoke this operation.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListOfferings for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeNotEligibleException "NotEligibleException" Exception gets thrown when a user is not eligible to perform the specified transaction.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferings

Example

DeviceFarm ListOfferings shared00

To get information about device offerings

The following example returns information about available device offerings.

{ svc := devicefarm.New(session.New()) input := &devicefarm.ListOfferingsInput{ NextToken: aws.String("RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE="), } result, err := svc.ListOfferings(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeNotEligibleException: fmt.Println(devicefarm.ErrCodeNotEligibleException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ListOfferingsPages

func (c *DeviceFarm) ListOfferingsPages(input *ListOfferingsInput, fn func(*ListOfferingsOutput, bool) bool) error

ListOfferingsPages iterates over the pages of a ListOfferings operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListOfferings method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListOfferings operation. pageNum := 0 err := client.ListOfferingsPages(params, func(page *ListOfferingsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListOfferingsPagesWithContext

func (c *DeviceFarm) ListOfferingsPagesWithContext(ctx aws.Context, input *ListOfferingsInput, fn func(*ListOfferingsOutput, bool) bool, opts ...request.Option) error

ListOfferingsPagesWithContext same as ListOfferingsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListOfferingsRequest

func (c *DeviceFarm) ListOfferingsRequest(input *ListOfferingsInput) (req *request.Request, output *ListOfferingsOutput)

ListOfferingsRequest generates a "aws/request.Request" representing the client's request for the ListOfferings operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListOfferings for more information on using the ListOfferings API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListOfferingsRequest method. req, resp := client.ListOfferingsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferings

ListOfferingsWithContext

func (c *DeviceFarm) ListOfferingsWithContext(ctx aws.Context, input *ListOfferingsInput, opts ...request.Option) (*ListOfferingsOutput, error)

ListOfferingsWithContext is the same as ListOfferings with the addition of the ability to pass a context and additional request options.

See ListOfferings for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListProjects

func (c *DeviceFarm) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error)

ListProjects API operation for AWS Device Farm.

Gets information about projects.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListProjects for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListProjects

Example

DeviceFarm ListProjects shared00

To get information about a Device Farm project

The following example returns information about the specified project in Device Farm.

{ svc := devicefarm.New(session.New()) input := &devicefarm.ListProjectsInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:7ad300ed-8183-41a7-bf94-12345EXAMPLE"), NextToken: aws.String("RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"), } result, err := svc.ListProjects(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ListProjectsPages

func (c *DeviceFarm) ListProjectsPages(input *ListProjectsInput, fn func(*ListProjectsOutput, bool) bool) error

ListProjectsPages iterates over the pages of a ListProjects operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListProjects method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListProjects operation. pageNum := 0 err := client.ListProjectsPages(params, func(page *ListProjectsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListProjectsPagesWithContext

func (c *DeviceFarm) ListProjectsPagesWithContext(ctx aws.Context, input *ListProjectsInput, fn func(*ListProjectsOutput, bool) bool, opts ...request.Option) error

ListProjectsPagesWithContext same as ListProjectsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListProjectsRequest

func (c *DeviceFarm) ListProjectsRequest(input *ListProjectsInput) (req *request.Request, output *ListProjectsOutput)

ListProjectsRequest generates a "aws/request.Request" representing the client's request for the ListProjects operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListProjects for more information on using the ListProjects API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListProjectsRequest method. req, resp := client.ListProjectsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListProjects

ListProjectsWithContext

func (c *DeviceFarm) ListProjectsWithContext(ctx aws.Context, input *ListProjectsInput, opts ...request.Option) (*ListProjectsOutput, error)

ListProjectsWithContext is the same as ListProjects with the addition of the ability to pass a context and additional request options.

See ListProjects for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListRemoteAccessSessions

func (c *DeviceFarm) ListRemoteAccessSessions(input *ListRemoteAccessSessionsInput) (*ListRemoteAccessSessionsOutput, error)

ListRemoteAccessSessions API operation for AWS Device Farm.

Returns a list of all currently running remote access sessions.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListRemoteAccessSessions for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListRemoteAccessSessions

Example

DeviceFarm ListRemoteAccessSessions shared00

To get information about a remote access session

The following example returns information about a specific Device Farm remote access session.

{ svc := devicefarm.New(session.New()) input := &devicefarm.ListRemoteAccessSessionsInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456"), NextToken: aws.String("RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE="), } result, err := svc.ListRemoteAccessSessions(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ListRemoteAccessSessionsRequest

func (c *DeviceFarm) ListRemoteAccessSessionsRequest(input *ListRemoteAccessSessionsInput) (req *request.Request, output *ListRemoteAccessSessionsOutput)

ListRemoteAccessSessionsRequest generates a "aws/request.Request" representing the client's request for the ListRemoteAccessSessions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListRemoteAccessSessions for more information on using the ListRemoteAccessSessions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListRemoteAccessSessionsRequest method. req, resp := client.ListRemoteAccessSessionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListRemoteAccessSessions

ListRemoteAccessSessionsWithContext

func (c *DeviceFarm) ListRemoteAccessSessionsWithContext(ctx aws.Context, input *ListRemoteAccessSessionsInput, opts ...request.Option) (*ListRemoteAccessSessionsOutput, error)

ListRemoteAccessSessionsWithContext is the same as ListRemoteAccessSessions with the addition of the ability to pass a context and additional request options.

See ListRemoteAccessSessions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListRuns

func (c *DeviceFarm) ListRuns(input *ListRunsInput) (*ListRunsOutput, error)

ListRuns API operation for AWS Device Farm.

Gets information about runs, given an AWS Device Farm project ARN.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListRuns for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListRuns

Example

DeviceFarm ListRuns shared00

To get information about a test run

The following example returns information about a specific test run.

{ svc := devicefarm.New(session.New()) input := &devicefarm.ListRunsInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE"), NextToken: aws.String("RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"), } result, err := svc.ListRuns(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ListRunsPages

func (c *DeviceFarm) ListRunsPages(input *ListRunsInput, fn func(*ListRunsOutput, bool) bool) error

ListRunsPages iterates over the pages of a ListRuns operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListRuns method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListRuns operation. pageNum := 0 err := client.ListRunsPages(params, func(page *ListRunsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListRunsPagesWithContext

func (c *DeviceFarm) ListRunsPagesWithContext(ctx aws.Context, input *ListRunsInput, fn func(*ListRunsOutput, bool) bool, opts ...request.Option) error

ListRunsPagesWithContext same as ListRunsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListRunsRequest

func (c *DeviceFarm) ListRunsRequest(input *ListRunsInput) (req *request.Request, output *ListRunsOutput)

ListRunsRequest generates a "aws/request.Request" representing the client's request for the ListRuns operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListRuns for more information on using the ListRuns API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListRunsRequest method. req, resp := client.ListRunsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListRuns

ListRunsWithContext

func (c *DeviceFarm) ListRunsWithContext(ctx aws.Context, input *ListRunsInput, opts ...request.Option) (*ListRunsOutput, error)

ListRunsWithContext is the same as ListRuns with the addition of the ability to pass a context and additional request options.

See ListRuns for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListSamples

func (c *DeviceFarm) ListSamples(input *ListSamplesInput) (*ListSamplesOutput, error)

ListSamples API operation for AWS Device Farm.

Gets information about samples, given an AWS Device Farm job ARN.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListSamples for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListSamples

Example

DeviceFarm ListSamples shared00

To get information about samples

The following example returns information about samples, given a specific Device Farm project.

{ svc := devicefarm.New(session.New()) input := &devicefarm.ListSamplesInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"), NextToken: aws.String("RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"), } result, err := svc.ListSamples(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ListSamplesPages

func (c *DeviceFarm) ListSamplesPages(input *ListSamplesInput, fn func(*ListSamplesOutput, bool) bool) error

ListSamplesPages iterates over the pages of a ListSamples operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListSamples method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListSamples operation. pageNum := 0 err := client.ListSamplesPages(params, func(page *ListSamplesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListSamplesPagesWithContext

func (c *DeviceFarm) ListSamplesPagesWithContext(ctx aws.Context, input *ListSamplesInput, fn func(*ListSamplesOutput, bool) bool, opts ...request.Option) error

ListSamplesPagesWithContext same as ListSamplesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListSamplesRequest

func (c *DeviceFarm) ListSamplesRequest(input *ListSamplesInput) (req *request.Request, output *ListSamplesOutput)

ListSamplesRequest generates a "aws/request.Request" representing the client's request for the ListSamples operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListSamples for more information on using the ListSamples API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListSamplesRequest method. req, resp := client.ListSamplesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListSamples

ListSamplesWithContext

func (c *DeviceFarm) ListSamplesWithContext(ctx aws.Context, input *ListSamplesInput, opts ...request.Option) (*ListSamplesOutput, error)

ListSamplesWithContext is the same as ListSamples with the addition of the ability to pass a context and additional request options.

See ListSamples for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListSuites

func (c *DeviceFarm) ListSuites(input *ListSuitesInput) (*ListSuitesOutput, error)

ListSuites API operation for AWS Device Farm.

Gets information about test suites for a given job.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListSuites for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListSuites

Example

DeviceFarm ListSuites shared00

To get information about suites

The following example returns information about suites, given a specific Device Farm project.

{ svc := devicefarm.New(session.New()) input := &devicefarm.ListSuitesInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"), NextToken: aws.String("RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"), } result, err := svc.ListSuites(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ListSuitesPages

func (c *DeviceFarm) ListSuitesPages(input *ListSuitesInput, fn func(*ListSuitesOutput, bool) bool) error

ListSuitesPages iterates over the pages of a ListSuites operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListSuites method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListSuites operation. pageNum := 0 err := client.ListSuitesPages(params, func(page *ListSuitesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListSuitesPagesWithContext

func (c *DeviceFarm) ListSuitesPagesWithContext(ctx aws.Context, input *ListSuitesInput, fn func(*ListSuitesOutput, bool) bool, opts ...request.Option) error

ListSuitesPagesWithContext same as ListSuitesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListSuitesRequest

func (c *DeviceFarm) ListSuitesRequest(input *ListSuitesInput) (req *request.Request, output *ListSuitesOutput)

ListSuitesRequest generates a "aws/request.Request" representing the client's request for the ListSuites operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListSuites for more information on using the ListSuites API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListSuitesRequest method. req, resp := client.ListSuitesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListSuites

ListSuitesWithContext

func (c *DeviceFarm) ListSuitesWithContext(ctx aws.Context, input *ListSuitesInput, opts ...request.Option) (*ListSuitesOutput, error)

ListSuitesWithContext is the same as ListSuites with the addition of the ability to pass a context and additional request options.

See ListSuites for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListTests

func (c *DeviceFarm) ListTests(input *ListTestsInput) (*ListTestsOutput, error)

ListTests API operation for AWS Device Farm.

Gets information about tests in a given test suite.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListTests for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListTests

Example

DeviceFarm ListTests shared00

To get information about tests

The following example returns information about tests, given a specific Device Farm project.

{ svc := devicefarm.New(session.New()) input := &devicefarm.ListTestsInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"), NextToken: aws.String("RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"), } result, err := svc.ListTests(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ListTestsPages

func (c *DeviceFarm) ListTestsPages(input *ListTestsInput, fn func(*ListTestsOutput, bool) bool) error

ListTestsPages iterates over the pages of a ListTests operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListTests method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListTests operation. pageNum := 0 err := client.ListTestsPages(params, func(page *ListTestsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListTestsPagesWithContext

func (c *DeviceFarm) ListTestsPagesWithContext(ctx aws.Context, input *ListTestsInput, fn func(*ListTestsOutput, bool) bool, opts ...request.Option) error

ListTestsPagesWithContext same as ListTestsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListTestsRequest

func (c *DeviceFarm) ListTestsRequest(input *ListTestsInput) (req *request.Request, output *ListTestsOutput)

ListTestsRequest generates a "aws/request.Request" representing the client's request for the ListTests operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListTests for more information on using the ListTests API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListTestsRequest method. req, resp := client.ListTestsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListTests

ListTestsWithContext

func (c *DeviceFarm) ListTestsWithContext(ctx aws.Context, input *ListTestsInput, opts ...request.Option) (*ListTestsOutput, error)

ListTestsWithContext is the same as ListTests with the addition of the ability to pass a context and additional request options.

See ListTests for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListUniqueProblems

func (c *DeviceFarm) ListUniqueProblems(input *ListUniqueProblemsInput) (*ListUniqueProblemsOutput, error)

ListUniqueProblems API operation for AWS Device Farm.

Gets information about unique problems.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListUniqueProblems for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListUniqueProblems

Example

DeviceFarm ListUniqueProblems shared00

To get information about unique problems

The following example returns information about unique problems, given a specific Device Farm project.

{ svc := devicefarm.New(session.New()) input := &devicefarm.ListUniqueProblemsInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"), NextToken: aws.String("RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"), } result, err := svc.ListUniqueProblems(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ListUniqueProblemsPages

func (c *DeviceFarm) ListUniqueProblemsPages(input *ListUniqueProblemsInput, fn func(*ListUniqueProblemsOutput, bool) bool) error

ListUniqueProblemsPages iterates over the pages of a ListUniqueProblems operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListUniqueProblems method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListUniqueProblems operation. pageNum := 0 err := client.ListUniqueProblemsPages(params, func(page *ListUniqueProblemsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListUniqueProblemsPagesWithContext

func (c *DeviceFarm) ListUniqueProblemsPagesWithContext(ctx aws.Context, input *ListUniqueProblemsInput, fn func(*ListUniqueProblemsOutput, bool) bool, opts ...request.Option) error

ListUniqueProblemsPagesWithContext same as ListUniqueProblemsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListUniqueProblemsRequest

func (c *DeviceFarm) ListUniqueProblemsRequest(input *ListUniqueProblemsInput) (req *request.Request, output *ListUniqueProblemsOutput)

ListUniqueProblemsRequest generates a "aws/request.Request" representing the client's request for the ListUniqueProblems operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListUniqueProblems for more information on using the ListUniqueProblems API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListUniqueProblemsRequest method. req, resp := client.ListUniqueProblemsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListUniqueProblems

ListUniqueProblemsWithContext

func (c *DeviceFarm) ListUniqueProblemsWithContext(ctx aws.Context, input *ListUniqueProblemsInput, opts ...request.Option) (*ListUniqueProblemsOutput, error)

ListUniqueProblemsWithContext is the same as ListUniqueProblems with the addition of the ability to pass a context and additional request options.

See ListUniqueProblems for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListUploads

func (c *DeviceFarm) ListUploads(input *ListUploadsInput) (*ListUploadsOutput, error)

ListUploads API operation for AWS Device Farm.

Gets information about uploads, given an AWS Device Farm project ARN.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListUploads for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListUploads

Example

DeviceFarm ListUploads shared00

To get information about uploads

The following example returns information about uploads, given a specific Device Farm project.

{ svc := devicefarm.New(session.New()) input := &devicefarm.ListUploadsInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"), NextToken: aws.String("RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"), } result, err := svc.ListUploads(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ListUploadsPages

func (c *DeviceFarm) ListUploadsPages(input *ListUploadsInput, fn func(*ListUploadsOutput, bool) bool) error

ListUploadsPages iterates over the pages of a ListUploads operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListUploads method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListUploads operation. pageNum := 0 err := client.ListUploadsPages(params, func(page *ListUploadsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListUploadsPagesWithContext

func (c *DeviceFarm) ListUploadsPagesWithContext(ctx aws.Context, input *ListUploadsInput, fn func(*ListUploadsOutput, bool) bool, opts ...request.Option) error

ListUploadsPagesWithContext same as ListUploadsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListUploadsRequest

func (c *DeviceFarm) ListUploadsRequest(input *ListUploadsInput) (req *request.Request, output *ListUploadsOutput)

ListUploadsRequest generates a "aws/request.Request" representing the client's request for the ListUploads operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListUploads for more information on using the ListUploads API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListUploadsRequest method. req, resp := client.ListUploadsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListUploads

ListUploadsWithContext

func (c *DeviceFarm) ListUploadsWithContext(ctx aws.Context, input *ListUploadsInput, opts ...request.Option) (*ListUploadsOutput, error)

ListUploadsWithContext is the same as ListUploads with the addition of the ability to pass a context and additional request options.

See ListUploads for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListVPCEConfigurations

func (c *DeviceFarm) ListVPCEConfigurations(input *ListVPCEConfigurationsInput) (*ListVPCEConfigurationsOutput, error)

ListVPCEConfigurations API operation for AWS Device Farm.

Returns information about all Amazon Virtual Private Cloud (VPC) endpoint configurations in the AWS account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ListVPCEConfigurations for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListVPCEConfigurations

ListVPCEConfigurationsRequest

func (c *DeviceFarm) ListVPCEConfigurationsRequest(input *ListVPCEConfigurationsInput) (req *request.Request, output *ListVPCEConfigurationsOutput)

ListVPCEConfigurationsRequest generates a "aws/request.Request" representing the client's request for the ListVPCEConfigurations operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListVPCEConfigurations for more information on using the ListVPCEConfigurations API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListVPCEConfigurationsRequest method. req, resp := client.ListVPCEConfigurationsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListVPCEConfigurations

ListVPCEConfigurationsWithContext

func (c *DeviceFarm) ListVPCEConfigurationsWithContext(ctx aws.Context, input *ListVPCEConfigurationsInput, opts ...request.Option) (*ListVPCEConfigurationsOutput, error)

ListVPCEConfigurationsWithContext is the same as ListVPCEConfigurations with the addition of the ability to pass a context and additional request options.

See ListVPCEConfigurations for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

PurchaseOffering

func (c *DeviceFarm) PurchaseOffering(input *PurchaseOfferingInput) (*PurchaseOfferingOutput, error)

PurchaseOffering API operation for AWS Device Farm.

Immediately purchases offerings for an AWS account. Offerings renew with the latest total purchased quantity for an offering, unless the renewal was overridden. The API returns a NotEligible error if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com (mailto:aws-devicefarm-support@amazon.com) if you believe that you should be able to invoke this operation.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation PurchaseOffering for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeNotEligibleException "NotEligibleException" Exception gets thrown when a user is not eligible to perform the specified transaction.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/PurchaseOffering

Example

DeviceFarm PurchaseOffering shared00

To purchase a device slot offering

The following example purchases a specific device slot offering.

{ svc := devicefarm.New(session.New()) input := &devicefarm.PurchaseOfferingInput{ OfferingId: aws.String("D68B3C05-1BA6-4360-BC69-12345EXAMPLE"), Quantity: aws.Int64(1), } result, err := svc.PurchaseOffering(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeNotEligibleException: fmt.Println(devicefarm.ErrCodeNotEligibleException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

PurchaseOfferingRequest

func (c *DeviceFarm) PurchaseOfferingRequest(input *PurchaseOfferingInput) (req *request.Request, output *PurchaseOfferingOutput)

PurchaseOfferingRequest generates a "aws/request.Request" representing the client's request for the PurchaseOffering operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PurchaseOffering for more information on using the PurchaseOffering API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PurchaseOfferingRequest method. req, resp := client.PurchaseOfferingRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/PurchaseOffering

PurchaseOfferingWithContext

func (c *DeviceFarm) PurchaseOfferingWithContext(ctx aws.Context, input *PurchaseOfferingInput, opts ...request.Option) (*PurchaseOfferingOutput, error)

PurchaseOfferingWithContext is the same as PurchaseOffering with the addition of the ability to pass a context and additional request options.

See PurchaseOffering for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RenewOffering

func (c *DeviceFarm) RenewOffering(input *RenewOfferingInput) (*RenewOfferingOutput, error)

RenewOffering API operation for AWS Device Farm.

Explicitly sets the quantity of devices to renew for an offering, starting from the effectiveDate of the next period. The API returns a NotEligible error if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com (mailto:aws-devicefarm-support@amazon.com) if you believe that you should be able to invoke this operation.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation RenewOffering for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeNotEligibleException "NotEligibleException" Exception gets thrown when a user is not eligible to perform the specified transaction.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/RenewOffering

Example

DeviceFarm RenewOffering shared00

To renew a device slot offering

The following example renews a specific device slot offering.

{ svc := devicefarm.New(session.New()) input := &devicefarm.RenewOfferingInput{ OfferingId: aws.String("D68B3C05-1BA6-4360-BC69-12345EXAMPLE"), Quantity: aws.Int64(1), } result, err := svc.RenewOffering(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeNotEligibleException: fmt.Println(devicefarm.ErrCodeNotEligibleException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

RenewOfferingRequest

func (c *DeviceFarm) RenewOfferingRequest(input *RenewOfferingInput) (req *request.Request, output *RenewOfferingOutput)

RenewOfferingRequest generates a "aws/request.Request" representing the client's request for the RenewOffering operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RenewOffering for more information on using the RenewOffering API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RenewOfferingRequest method. req, resp := client.RenewOfferingRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/RenewOffering

RenewOfferingWithContext

func (c *DeviceFarm) RenewOfferingWithContext(ctx aws.Context, input *RenewOfferingInput, opts ...request.Option) (*RenewOfferingOutput, error)

RenewOfferingWithContext is the same as RenewOffering with the addition of the ability to pass a context and additional request options.

See RenewOffering for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ScheduleRun

func (c *DeviceFarm) ScheduleRun(input *ScheduleRunInput) (*ScheduleRunOutput, error)

ScheduleRun API operation for AWS Device Farm.

Schedules a run.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation ScheduleRun for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeIdempotencyException "IdempotencyException" An entity with the same name already exists.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ScheduleRun

Example

DeviceFarm ScheduleRun shared00

To schedule a test run

The following example schedules a test run named MyRun.

{ svc := devicefarm.New(session.New()) input := &devicefarm.ScheduleRunInput{ DevicePoolArn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:pool:EXAMPLE-GUID-123-456"), Name: aws.String("MyRun"), ProjectArn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"), Test: &devicefarm.ScheduleRunTest{ TestPackageArn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:test:EXAMPLE-GUID-123-456"), Type: aws.String("APPIUM_JAVA_JUNIT"), }, } result, err := svc.ScheduleRun(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeIdempotencyException: fmt.Println(devicefarm.ErrCodeIdempotencyException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ScheduleRunRequest

func (c *DeviceFarm) ScheduleRunRequest(input *ScheduleRunInput) (req *request.Request, output *ScheduleRunOutput)

ScheduleRunRequest generates a "aws/request.Request" representing the client's request for the ScheduleRun operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ScheduleRun for more information on using the ScheduleRun API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ScheduleRunRequest method. req, resp := client.ScheduleRunRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ScheduleRun

ScheduleRunWithContext

func (c *DeviceFarm) ScheduleRunWithContext(ctx aws.Context, input *ScheduleRunInput, opts ...request.Option) (*ScheduleRunOutput, error)

ScheduleRunWithContext is the same as ScheduleRun with the addition of the ability to pass a context and additional request options.

See ScheduleRun for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

StopJob

func (c *DeviceFarm) StopJob(input *StopJobInput) (*StopJobOutput, error)

StopJob API operation for AWS Device Farm.

Initiates a stop request for the current job. AWS Device Farm will immediately stop the job on the device where tests have not started executing, and you will not be billed for this device. On the device where tests have started executing, Setup Suite and Teardown Suite tests will run to completion before stopping execution on the device. You will be billed for Setup, Teardown, and any tests that were in progress or already completed.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation StopJob for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopJob

StopJobRequest

func (c *DeviceFarm) StopJobRequest(input *StopJobInput) (req *request.Request, output *StopJobOutput)

StopJobRequest generates a "aws/request.Request" representing the client's request for the StopJob operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StopJob for more information on using the StopJob API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StopJobRequest method. req, resp := client.StopJobRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopJob

StopJobWithContext

func (c *DeviceFarm) StopJobWithContext(ctx aws.Context, input *StopJobInput, opts ...request.Option) (*StopJobOutput, error)

StopJobWithContext is the same as StopJob with the addition of the ability to pass a context and additional request options.

See StopJob for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

StopRemoteAccessSession

func (c *DeviceFarm) StopRemoteAccessSession(input *StopRemoteAccessSessionInput) (*StopRemoteAccessSessionOutput, error)

StopRemoteAccessSession API operation for AWS Device Farm.

Ends a specified remote access session.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation StopRemoteAccessSession for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopRemoteAccessSession

StopRemoteAccessSessionRequest

func (c *DeviceFarm) StopRemoteAccessSessionRequest(input *StopRemoteAccessSessionInput) (req *request.Request, output *StopRemoteAccessSessionOutput)

StopRemoteAccessSessionRequest generates a "aws/request.Request" representing the client's request for the StopRemoteAccessSession operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StopRemoteAccessSession for more information on using the StopRemoteAccessSession API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StopRemoteAccessSessionRequest method. req, resp := client.StopRemoteAccessSessionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopRemoteAccessSession

StopRemoteAccessSessionWithContext

func (c *DeviceFarm) StopRemoteAccessSessionWithContext(ctx aws.Context, input *StopRemoteAccessSessionInput, opts ...request.Option) (*StopRemoteAccessSessionOutput, error)

StopRemoteAccessSessionWithContext is the same as StopRemoteAccessSession with the addition of the ability to pass a context and additional request options.

See StopRemoteAccessSession for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

StopRun

func (c *DeviceFarm) StopRun(input *StopRunInput) (*StopRunOutput, error)

StopRun API operation for AWS Device Farm.

Initiates a stop request for the current test run. AWS Device Farm will immediately stop the run on devices where tests have not started executing, and you will not be billed for these devices. On devices where tests have started executing, Setup Suite and Teardown Suite tests will run to completion before stopping execution on those devices. You will be billed for Setup, Teardown, and any tests that were in progress or already completed.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation StopRun for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopRun

Example

DeviceFarm StopRun shared00

To stop a test run

The following example stops a specific test run.

{ svc := devicefarm.New(session.New()) input := &devicefarm.StopRunInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456"), } result, err := svc.StopRun(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

StopRunRequest

func (c *DeviceFarm) StopRunRequest(input *StopRunInput) (req *request.Request, output *StopRunOutput)

StopRunRequest generates a "aws/request.Request" representing the client's request for the StopRun operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StopRun for more information on using the StopRun API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StopRunRequest method. req, resp := client.StopRunRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopRun

StopRunWithContext

func (c *DeviceFarm) StopRunWithContext(ctx aws.Context, input *StopRunInput, opts ...request.Option) (*StopRunOutput, error)

StopRunWithContext is the same as StopRun with the addition of the ability to pass a context and additional request options.

See StopRun for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateDeviceInstance

func (c *DeviceFarm) UpdateDeviceInstance(input *UpdateDeviceInstanceInput) (*UpdateDeviceInstanceOutput, error)

UpdateDeviceInstance API operation for AWS Device Farm.

Updates information about an existing private device instance.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation UpdateDeviceInstance for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateDeviceInstance

UpdateDeviceInstanceRequest

func (c *DeviceFarm) UpdateDeviceInstanceRequest(input *UpdateDeviceInstanceInput) (req *request.Request, output *UpdateDeviceInstanceOutput)

UpdateDeviceInstanceRequest generates a "aws/request.Request" representing the client's request for the UpdateDeviceInstance operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateDeviceInstance for more information on using the UpdateDeviceInstance API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateDeviceInstanceRequest method. req, resp := client.UpdateDeviceInstanceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateDeviceInstance

UpdateDeviceInstanceWithContext

func (c *DeviceFarm) UpdateDeviceInstanceWithContext(ctx aws.Context, input *UpdateDeviceInstanceInput, opts ...request.Option) (*UpdateDeviceInstanceOutput, error)

UpdateDeviceInstanceWithContext is the same as UpdateDeviceInstance with the addition of the ability to pass a context and additional request options.

See UpdateDeviceInstance for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateDevicePool

func (c *DeviceFarm) UpdateDevicePool(input *UpdateDevicePoolInput) (*UpdateDevicePoolOutput, error)

UpdateDevicePool API operation for AWS Device Farm.

Modifies the name, description, and rules in a device pool given the attributes and the pool ARN. Rule updates are all-or-nothing, meaning they can only be updated as a whole (or not at all).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation UpdateDevicePool for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateDevicePool

Example

DeviceFarm UpdateDevicePool shared00

To update a device pool

The following example updates the specified device pool with a new name and description. It also enables remote access of devices in the device pool.

{ svc := devicefarm.New(session.New()) input := &devicefarm.UpdateDevicePoolInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2::devicepool:082d10e5-d7d7-48a5-ba5c-12345EXAMPLE"), Description: aws.String("NewDescription"), Name: aws.String("NewName"), Rules: []*devicefarm.Rule{ { Attribute: aws.String("REMOTE_ACCESS_ENABLED"), Operator: aws.String("EQUALS"), Value: aws.String("True"), }, }, } result, err := svc.UpdateDevicePool(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

UpdateDevicePoolRequest

func (c *DeviceFarm) UpdateDevicePoolRequest(input *UpdateDevicePoolInput) (req *request.Request, output *UpdateDevicePoolOutput)

UpdateDevicePoolRequest generates a "aws/request.Request" representing the client's request for the UpdateDevicePool operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateDevicePool for more information on using the UpdateDevicePool API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateDevicePoolRequest method. req, resp := client.UpdateDevicePoolRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateDevicePool

UpdateDevicePoolWithContext

func (c *DeviceFarm) UpdateDevicePoolWithContext(ctx aws.Context, input *UpdateDevicePoolInput, opts ...request.Option) (*UpdateDevicePoolOutput, error)

UpdateDevicePoolWithContext is the same as UpdateDevicePool with the addition of the ability to pass a context and additional request options.

See UpdateDevicePool for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateInstanceProfile

func (c *DeviceFarm) UpdateInstanceProfile(input *UpdateInstanceProfileInput) (*UpdateInstanceProfileOutput, error)

UpdateInstanceProfile API operation for AWS Device Farm.

Updates information about an existing private device instance profile.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation UpdateInstanceProfile for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateInstanceProfile

UpdateInstanceProfileRequest

func (c *DeviceFarm) UpdateInstanceProfileRequest(input *UpdateInstanceProfileInput) (req *request.Request, output *UpdateInstanceProfileOutput)

UpdateInstanceProfileRequest generates a "aws/request.Request" representing the client's request for the UpdateInstanceProfile operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateInstanceProfile for more information on using the UpdateInstanceProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateInstanceProfileRequest method. req, resp := client.UpdateInstanceProfileRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateInstanceProfile

UpdateInstanceProfileWithContext

func (c *DeviceFarm) UpdateInstanceProfileWithContext(ctx aws.Context, input *UpdateInstanceProfileInput, opts ...request.Option) (*UpdateInstanceProfileOutput, error)

UpdateInstanceProfileWithContext is the same as UpdateInstanceProfile with the addition of the ability to pass a context and additional request options.

See UpdateInstanceProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateNetworkProfile

func (c *DeviceFarm) UpdateNetworkProfile(input *UpdateNetworkProfileInput) (*UpdateNetworkProfileOutput, error)

UpdateNetworkProfile API operation for AWS Device Farm.

Updates the network profile with specific settings.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation UpdateNetworkProfile for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateNetworkProfile

UpdateNetworkProfileRequest

func (c *DeviceFarm) UpdateNetworkProfileRequest(input *UpdateNetworkProfileInput) (req *request.Request, output *UpdateNetworkProfileOutput)

UpdateNetworkProfileRequest generates a "aws/request.Request" representing the client's request for the UpdateNetworkProfile operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateNetworkProfile for more information on using the UpdateNetworkProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateNetworkProfileRequest method. req, resp := client.UpdateNetworkProfileRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateNetworkProfile

UpdateNetworkProfileWithContext

func (c *DeviceFarm) UpdateNetworkProfileWithContext(ctx aws.Context, input *UpdateNetworkProfileInput, opts ...request.Option) (*UpdateNetworkProfileOutput, error)

UpdateNetworkProfileWithContext is the same as UpdateNetworkProfile with the addition of the ability to pass a context and additional request options.

See UpdateNetworkProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateProject

func (c *DeviceFarm) UpdateProject(input *UpdateProjectInput) (*UpdateProjectOutput, error)

UpdateProject API operation for AWS Device Farm.

Modifies the specified project name, given the project ARN and a new name.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation UpdateProject for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateProject

Example

DeviceFarm UpdateProject shared00

To update a device pool

The following example updates the specified project with a new name.

{ svc := devicefarm.New(session.New()) input := &devicefarm.UpdateProjectInput{ Arn: aws.String("arn:aws:devicefarm:us-west-2:123456789101:project:8f75187d-101e-4625-accc-12345EXAMPLE"), Name: aws.String("NewName"), } result, err := svc.UpdateProject(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case devicefarm.ErrCodeArgumentException: fmt.Println(devicefarm.ErrCodeArgumentException, aerr.Error()) case devicefarm.ErrCodeNotFoundException: fmt.Println(devicefarm.ErrCodeNotFoundException, aerr.Error()) case devicefarm.ErrCodeLimitExceededException: fmt.Println(devicefarm.ErrCodeLimitExceededException, aerr.Error()) case devicefarm.ErrCodeServiceAccountException: fmt.Println(devicefarm.ErrCodeServiceAccountException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

UpdateProjectRequest

func (c *DeviceFarm) UpdateProjectRequest(input *UpdateProjectInput) (req *request.Request, output *UpdateProjectOutput)

UpdateProjectRequest generates a "aws/request.Request" representing the client's request for the UpdateProject operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateProject for more information on using the UpdateProject API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateProjectRequest method. req, resp := client.UpdateProjectRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateProject

UpdateProjectWithContext

func (c *DeviceFarm) UpdateProjectWithContext(ctx aws.Context, input *UpdateProjectInput, opts ...request.Option) (*UpdateProjectOutput, error)

UpdateProjectWithContext is the same as UpdateProject with the addition of the ability to pass a context and additional request options.

See UpdateProject for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateUpload

func (c *DeviceFarm) UpdateUpload(input *UpdateUploadInput) (*UpdateUploadOutput, error)

UpdateUpload API operation for AWS Device Farm.

Update an uploaded test specification (test spec).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation UpdateUpload for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeLimitExceededException "LimitExceededException" A limit was exceeded.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateUpload

UpdateUploadRequest

func (c *DeviceFarm) UpdateUploadRequest(input *UpdateUploadInput) (req *request.Request, output *UpdateUploadOutput)

UpdateUploadRequest generates a "aws/request.Request" representing the client's request for the UpdateUpload operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateUpload for more information on using the UpdateUpload API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateUploadRequest method. req, resp := client.UpdateUploadRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateUpload

UpdateUploadWithContext

func (c *DeviceFarm) UpdateUploadWithContext(ctx aws.Context, input *UpdateUploadInput, opts ...request.Option) (*UpdateUploadOutput, error)

UpdateUploadWithContext is the same as UpdateUpload with the addition of the ability to pass a context and additional request options.

See UpdateUpload for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateVPCEConfiguration

func (c *DeviceFarm) UpdateVPCEConfiguration(input *UpdateVPCEConfigurationInput) (*UpdateVPCEConfigurationOutput, error)

UpdateVPCEConfiguration API operation for AWS Device Farm.

Updates information about an existing Amazon Virtual Private Cloud (VPC) endpoint configuration.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Device Farm's API operation UpdateVPCEConfiguration for usage and error information.

Returned Error Codes:

  • ErrCodeArgumentException "ArgumentException" An invalid argument was specified.

  • ErrCodeNotFoundException "NotFoundException" The specified entity was not found.

  • ErrCodeServiceAccountException "ServiceAccountException" There was a problem with the service account.

  • ErrCodeInvalidOperationException "InvalidOperationException" There was an error with the update request, or you do not have sufficient permissions to update this VPC endpoint configuration.

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateVPCEConfiguration

UpdateVPCEConfigurationRequest

func (c *DeviceFarm) UpdateVPCEConfigurationRequest(input *UpdateVPCEConfigurationInput) (req *request.Request, output *UpdateVPCEConfigurationOutput)

UpdateVPCEConfigurationRequest generates a "aws/request.Request" representing the client's request for the UpdateVPCEConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateVPCEConfiguration for more information on using the UpdateVPCEConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateVPCEConfigurationRequest method. req, resp := client.UpdateVPCEConfigurationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateVPCEConfiguration

UpdateVPCEConfigurationWithContext

func (c *DeviceFarm) UpdateVPCEConfigurationWithContext(ctx aws.Context, input *UpdateVPCEConfigurationInput, opts ...request.Option) (*UpdateVPCEConfigurationOutput, error)

UpdateVPCEConfigurationWithContext is the same as UpdateVPCEConfiguration with the addition of the ability to pass a context and additional request options.

See UpdateVPCEConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

On this page: