list_artifacts
async
¶
list_artifacts(
arn: AmazonResourceName,
type: ArtifactCategory,
*,
config_overrides: Optional[AsyncDeviceFarmClientConfig] = None,
next_token: Optional[PaginationToken] = None,
) -> ListArtifactsResult
Gets information about artifacts.
Parameters:
-
arn(AmazonResourceName) –The run, job, suite, or test ARN.
-
type(ArtifactCategory) –The artifacts' type.
Allowed values include:
-
FILE
-
LOG
-
SCREENSHOT
-
-
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:
-
ArgumentException–An invalid argument was specified.
-
LimitExceededException–A limit was exceeded.
-
NotFoundException–The specified entity was not found.
-
ServiceAccountException–There was a problem with the service account.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To list artifacts for a resource The following example lists screenshot artifacts for a specific run.
>>> await client.list_artifacts(arn='arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456', type='SCREENSHOT')
Source code in docs_src/capo_device_farm/_services/async_device_farm.py
2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 | |