Skip to content

DeviceFarmClient#

Index > DeviceFarm > DeviceFarmClient

Auto-generated documentation for DeviceFarm type annotations stubs module mypy-boto3-devicefarm.

DeviceFarmClient#

Type annotations and code completion for boto3.client("devicefarm"). boto3 documentation

# DeviceFarmClient usage example

from boto3.session import Session
from mypy_boto3_devicefarm.client import DeviceFarmClient

def get_devicefarm_client() -> DeviceFarmClient:
    return Session().client("devicefarm")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("devicefarm").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("devicefarm")

try:
    do_something(client)
except (
    client.exceptions.ArgumentException,
    client.exceptions.CannotDeleteException,
    client.exceptions.ClientError,
    client.exceptions.IdempotencyException,
    client.exceptions.InternalServiceException,
    client.exceptions.InvalidOperationException,
    client.exceptions.LimitExceededException,
    client.exceptions.NotEligibleException,
    client.exceptions.NotFoundException,
    client.exceptions.ServiceAccountException,
    client.exceptions.TagOperationException,
    client.exceptions.TagPolicyException,
    client.exceptions.TooManyTagsException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_devicefarm.client import Exceptions

def handle_error(exc: Exceptions.ArgumentException) -> None:
    ...

Methods#

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("devicefarm").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("devicefarm").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

create_device_pool#

Creates a device pool.

Type annotations and code completion for boto3.client("devicefarm").create_device_pool method. boto3 documentation

# create_device_pool method definition

def create_device_pool(
    self,
    *,
    projectArn: str,
    name: str,
    rules: Sequence[RuleTypeDef],  # (1)
    description: str = ...,
    maxDevices: int = ...,
) -> CreateDevicePoolResultTypeDef:  # (2)
    ...
  1. See RuleTypeDef
  2. See CreateDevicePoolResultTypeDef
# create_device_pool method usage example with argument unpacking

kwargs: CreateDevicePoolRequestRequestTypeDef = {  # (1)
    "projectArn": ...,
    "name": ...,
    "rules": ...,
}

parent.create_device_pool(**kwargs)
  1. See CreateDevicePoolRequestRequestTypeDef

create_instance_profile#

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

Type annotations and code completion for boto3.client("devicefarm").create_instance_profile method. boto3 documentation

# create_instance_profile method definition

def create_instance_profile(
    self,
    *,
    name: str,
    description: str = ...,
    packageCleanup: bool = ...,
    excludeAppPackagesFromCleanup: Sequence[str] = ...,
    rebootAfterUse: bool = ...,
) -> CreateInstanceProfileResultTypeDef:  # (1)
    ...
  1. See CreateInstanceProfileResultTypeDef
# create_instance_profile method usage example with argument unpacking

kwargs: CreateInstanceProfileRequestRequestTypeDef = {  # (1)
    "name": ...,
}

parent.create_instance_profile(**kwargs)
  1. See CreateInstanceProfileRequestRequestTypeDef

create_network_profile#

Creates a network profile.

Type annotations and code completion for boto3.client("devicefarm").create_network_profile method. boto3 documentation

# create_network_profile method definition

def create_network_profile(
    self,
    *,
    projectArn: str,
    name: str,
    description: str = ...,
    type: NetworkProfileTypeType = ...,  # (1)
    uplinkBandwidthBits: int = ...,
    downlinkBandwidthBits: int = ...,
    uplinkDelayMs: int = ...,
    downlinkDelayMs: int = ...,
    uplinkJitterMs: int = ...,
    downlinkJitterMs: int = ...,
    uplinkLossPercent: int = ...,
    downlinkLossPercent: int = ...,
) -> CreateNetworkProfileResultTypeDef:  # (2)
    ...
  1. See NetworkProfileTypeType
  2. See CreateNetworkProfileResultTypeDef
# create_network_profile method usage example with argument unpacking

kwargs: CreateNetworkProfileRequestRequestTypeDef = {  # (1)
    "projectArn": ...,
    "name": ...,
}

parent.create_network_profile(**kwargs)
  1. See CreateNetworkProfileRequestRequestTypeDef

create_project#

Creates a project.

Type annotations and code completion for boto3.client("devicefarm").create_project method. boto3 documentation

# create_project method definition

def create_project(
    self,
    *,
    name: str,
    defaultJobTimeoutMinutes: int = ...,
    vpcConfig: VpcConfigTypeDef = ...,  # (1)
) -> CreateProjectResultTypeDef:  # (2)
    ...
  1. See VpcConfigTypeDef
  2. See CreateProjectResultTypeDef
# create_project method usage example with argument unpacking

kwargs: CreateProjectRequestRequestTypeDef = {  # (1)
    "name": ...,
}

parent.create_project(**kwargs)
  1. See CreateProjectRequestRequestTypeDef

create_remote_access_session#

Specifies and starts a remote access session.

Type annotations and code completion for boto3.client("devicefarm").create_remote_access_session method. boto3 documentation

# create_remote_access_session method definition

def create_remote_access_session(
    self,
    *,
    projectArn: str,
    deviceArn: str,
    instanceArn: str = ...,
    sshPublicKey: str = ...,
    remoteDebugEnabled: bool = ...,
    remoteRecordEnabled: bool = ...,
    remoteRecordAppArn: str = ...,
    name: str = ...,
    clientId: str = ...,
    configuration: CreateRemoteAccessSessionConfigurationTypeDef = ...,  # (1)
    interactionMode: InteractionModeType = ...,  # (2)
    skipAppResign: bool = ...,
) -> CreateRemoteAccessSessionResultTypeDef:  # (3)
    ...
  1. See CreateRemoteAccessSessionConfigurationTypeDef
  2. See InteractionModeType
  3. See CreateRemoteAccessSessionResultTypeDef
# create_remote_access_session method usage example with argument unpacking

kwargs: CreateRemoteAccessSessionRequestRequestTypeDef = {  # (1)
    "projectArn": ...,
    "deviceArn": ...,
}

parent.create_remote_access_session(**kwargs)
  1. See CreateRemoteAccessSessionRequestRequestTypeDef

create_test_grid_project#

Creates a Selenium testing project.

Type annotations and code completion for boto3.client("devicefarm").create_test_grid_project method. boto3 documentation

# create_test_grid_project method definition

def create_test_grid_project(
    self,
    *,
    name: str,
    description: str = ...,
    vpcConfig: TestGridVpcConfigTypeDef = ...,  # (1)
) -> CreateTestGridProjectResultTypeDef:  # (2)
    ...
  1. See TestGridVpcConfigTypeDef
  2. See CreateTestGridProjectResultTypeDef
# create_test_grid_project method usage example with argument unpacking

kwargs: CreateTestGridProjectRequestRequestTypeDef = {  # (1)
    "name": ...,
}

parent.create_test_grid_project(**kwargs)
  1. See CreateTestGridProjectRequestRequestTypeDef

create_test_grid_url#

Creates a signed, short-term URL that can be passed to a Selenium RemoteWebDriver constructor.

Type annotations and code completion for boto3.client("devicefarm").create_test_grid_url method. boto3 documentation

# create_test_grid_url method definition

def create_test_grid_url(
    self,
    *,
    projectArn: str,
    expiresInSeconds: int,
) -> CreateTestGridUrlResultTypeDef:  # (1)
    ...
  1. See CreateTestGridUrlResultTypeDef
# create_test_grid_url method usage example with argument unpacking

kwargs: CreateTestGridUrlRequestRequestTypeDef = {  # (1)
    "projectArn": ...,
    "expiresInSeconds": ...,
}

parent.create_test_grid_url(**kwargs)
  1. See CreateTestGridUrlRequestRequestTypeDef

create_upload#

Uploads an app or test scripts.

Type annotations and code completion for boto3.client("devicefarm").create_upload method.