list_artifacts
¶
list_artifacts(
arn: AmazonResourceName,
type: ArtifactCategory,
*,
config_overrides: Optional[DeviceFarmClientConfig] = 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.
>>> 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/device_farm.py
2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 | |