list_assessments
async
¶
list_assessments(
catalog: Catalog,
*,
config_overrides: Optional[AsyncMarketplaceCatalogClientConfig] = None,
framework_id: Optional[FrameworkId] = None,
assessment_target_filter: Optional[AssessmentTargetFilter] = None,
framework_filters: Optional[FrameworkFilters] = None,
max_results: Optional[ListAssessmentsMaxResultInteger] = None,
next_token: Optional[NextToken] = None,
) -> ListAssessmentsResponse
Returns a paginated list of assessments associated with an entity or change set in AWS Marketplace. An assessment is the result of evaluating a product or change set against a framework, such as AMI Security or Container Security.
Use the AssessmentTargetFilter to scope results to a specific entity or change set, and use FrameworkFilters to scope results to a single framework. To retrieve detailed control-level results for an individual assessment, use the DescribeAssessment action.
Results are sorted by assessment creation time in descending order.
Parameters:
-
catalog(Catalog) –The catalog related to the request. Fixed value:
AWSMarketplace -
framework_id(Optional[FrameworkId], default:None) –The unique identifier of a framework. When specified, only assessments performed against this framework are returned. For example,
AMISecurity. -
assessment_target_filter(Optional[AssessmentTargetFilter], default:None) –Filters the list of assessments to those performed against a specific entity or change set.
-
framework_filters(Optional[FrameworkFilters], default:None) –Framework-specific filters. Set exactly one member to filter results to assessments performed against that framework.
-
max_results(Optional[ListAssessmentsMaxResultInteger], default:None) –Specifies the upper limit of the elements on a single page. If a value isn't provided, the default value is 20. Valid values range from 1 to 100.
-
next_token(Optional[NextToken], default:None) –The value of the next token, if it exists.
nullif there are no more results.
Raises:
-
AccessDeniedException–Access is denied.
HTTP status code: 403
-
InternalServiceException–There was an internal service exception.
HTTP status code: 500
-
ThrottlingException–Too many requests.
HTTP status code: 429
-
ValidationException–An error occurred during validation.
HTTP status code: 422
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_marketplace_catalog/_services/async_marketplace_catalog.py
612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 | |