Assurance / Client / list_evidence

list_evidence

Assurance.Client.list_evidence(**kwargs)

Lists evidence items (paginated).

See also: AWS API Documentation

Request Syntax

response = client.list_evidence(
    environmentArn='string',
    maxResults=123,
    nextToken='string',
    project='string',
    filters=[
        {
            'name': 'evidence-id'|'status'|'framework'|'framework-version'|'control-id'|'purpose'|'connection-type',
            'values': [
                'string',
            ]
        },
    ]
)
Parameters:
  • environmentArn (string) –

    [REQUIRED]

    The ARN of this governance environment.

  • maxResults (integer) – The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • nextToken (string) – The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

  • project (string) –

    [REQUIRED]

    The project to list evidence for. Each request is scoped to one project.

  • filters (list) –

    The response filter criteria. Optional. See EvidenceFilterName for the filterable attributes. A result must match every attribute you name, and matches if it equals any of the values you give for that attribute. Omitting filters returns every evidence item in scope.

    The framework, framework-version, and control-id filters match an evidence item when one of its linked controls matches all of them.

    • (dict) –

      One ListEvidence filter criterion.

      A result matches if it equals any of the values you give for one attribute, and must match every attribute you name. Repeating an attribute name combines its value lists.

      • name (string) – [REQUIRED]

        The evidence attribute to match on.

      • values (list) – [REQUIRED]

        The values to match the attribute against, compared for exact equality.

        • (string) –

          A value to match against a filter attribute. The match is exact. Wildcards aren’t supported.

Return type:

dict

Returns:

Response Syntax

{
    'evidence': [
        {
            'evidenceId': 'string',
            'version': 123,
            'title': 'string',
            'project': 'string',
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1),
            'status': 'VALID'|'SCANNING'|'QUARANTINED'|'SCAN_FAILED'|'NOT_AUTO_ANALYZED'|'VALID_AUTO_ANALYZED',
            'linkedControls': [
                {
                    'framework': 'string',
                    'frameworkVersion': 'string',
                    'controlId': 'string',
                    'linkSource': 'AUTO'|'MANUAL'
                },
            ],
            'uploadedBy': 'string',
            'connectionType': 's3'|'github'|'sharepoint',
            'linkMode': 'AUTO'|'MANUAL'|'DISABLED',
            'purpose': 'CONTROL_EVIDENCE'|'SCAN_EVIDENCE'|'FRAMEWORK_SOURCE',
            'lastAutoAnalysisStartedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • evidence (list) –

      The list of evidence summaries returned.

      • (dict) –

        Summary view of an evidence item in list results.

        • evidenceId (string) –

          The unique identifier of the evidence item.

        • version (integer) –

          The version number of the evidence.

        • title (string) –

          The human-readable title of the evidence.

        • project (string) –

          The name of the project.

        • createdAt (datetime) –

          The timestamp when the evidence was created.

        • updatedAt (datetime) –

          The timestamp when the evidence was last updated.

        • status (string) –

          The current status of the evidence item.

        • linkedControls (list) –

          The controls this evidence is linked to.

          • (dict) –

            A control that an evidence item is linked to, and how the link was created.

            • framework (string) –

              The framework identifier.

            • frameworkVersion (string) –

              The framework version.

            • controlId (string) –

              The control identifier within the framework.

            • linkSource (string) –

              The source of the link. The value is one of the following:

              • AUTO – AWS Assurance added the link based on the evidence content.

              • MANUAL – You added the link.

        • uploadedBy (string) –

          The principal that supplied this evidence.

        • connectionType (string) –

          The environment connection type used to read this reference evidence. Absent for direct uploads.

        • linkMode (string) –

          The auto-linking mode in effect for the evidence. AWS Assurance sets it when you add the evidence, or sets it to AUTO when you start a new analysis with UpdateEvidence.

        • purpose (string) –

          What the evidence is for. AWS Assurance sets the purpose when you add the evidence.

        • lastAutoAnalysisStartedAt (datetime) –

          The time when the most recent automatic linking analysis of this evidence version started. For the result, see status. This field is absent if no analysis of this version has started.

    • nextToken (string) –

      The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Exceptions