Skip to content

list_unique_problems async

list_unique_problems(
    arn: AmazonResourceName,
    *,
    config_overrides: Optional[AsyncDeviceFarmClientConfig] = None,
    next_token: Optional[PaginationToken] = None,
) -> ListUniqueProblemsResult

Gets information about unique problems, such as exceptions or crashes.

Unique problems are defined as a single instance of an error across a run, job, or suite. For example, if a call in your application consistently raises an exception (OutOfBoundsException in MyActivity.java:386), ListUniqueProblems returns a single entry instead of many individual entries for that exception.

Parameters:

  • arn (AmazonResourceName) –

    The unique problems' ARNs.

  • next_token (Optional[PaginationToken], default: None ) –

    An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

Raises:

Examples:

To get information about unique problems The following example returns information about unique problems, given a specific Device Farm project.

>>> await client.list_unique_problems(arn='arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456', next_token='RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE')
Source code in docs_src/capo_device_farm/_services/async_device_farm.py
async def list_unique_problems(
    self,
    arn: "capo_device_farm.types.amazon_resource_name.AmazonResourceName",
    *,
    config_overrides: Optional[AsyncDeviceFarmClientConfig] = None,
    next_token: Optional[
        "capo_device_farm.types.pagination_token.PaginationToken"
    ] = None,
) -> "capo_device_farm.types.list_unique_problems_result.ListUniqueProblemsResult":
    """<p>Gets information about unique problems, such as exceptions or crashes.</p> <p>Unique problems are defined as a single instance of an error across a run, job, or suite. For example, if a call in your application consistently raises an exception (<code>OutOfBoundsException in MyActivity.java:386</code>), <code>ListUniqueProblems</code> returns a single entry instead of many individual entries for that exception.</p>

    Args:
        arn: <p>The unique problems' ARNs.</p>
        next_token: <p>An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.</p>

    Raises:
        capo_device_farm.errors.argument_exception.ArgumentException: <p>An invalid argument was specified.</p>
        capo_device_farm.errors.limit_exceeded_exception.LimitExceededException: <p>A limit was exceeded.</p>
        capo_device_farm.errors.not_found_exception.NotFoundException: <p>The specified entity was not found.</p>
        capo_device_farm.errors.service_account_exception.ServiceAccountException: <p>There was a problem with the service account.</p>
        capo_device_farm.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        To get information about unique problems
        The following example returns information about unique problems, given a specific Device Farm project.

        >>> await client.list_unique_problems(arn='arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456', next_token='RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_device_farm.types.list_unique_problems_request.ListUniqueProblemsRequest]",
    ) -> AsyncOperationResponse[
        "capo_device_farm.types.list_unique_problems_result.ListUniqueProblemsResult"
    ]:
        import capo_device_farm._operations.device_farm_20150623.list_unique_problems

        (
            output,
            http_response,
        ) = await capo_device_farm._operations.device_farm_20150623.list_unique_problems.async_list_unique_problems(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListUniqueProblems")
    )
    input_: capo_device_farm.types.list_unique_problems_request.ListUniqueProblemsRequest = {
        "arn": arn
    }
    if next_token is not None:
        input_["next_token"] = next_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output