Assurance / Client / get_evidence

get_evidence

Assurance.Client.get_evidence(**kwargs)

Retrieves metadata for an evidence item.

See also: AWS API Documentation

Request Syntax

response = client.get_evidence(
    environmentArn='string',
    evidenceId='string',
    evidenceVersion=123,
    project='string'
)
Parameters:
  • environmentArn (string) –

    [REQUIRED]

    The ARN of this governance environment.

  • evidenceId (string) –

    [REQUIRED]

    The unique identifier of the evidence item.

  • evidenceVersion (integer) – Specifies the version. Omit to get the latest version.

  • project (string) –

    [REQUIRED]

    The name of the project.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • 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.

    • description (string) –

      The optional description of the evidence.

    • createdAt (datetime) –

      The timestamp when the evidence was created.

    • updatedAt (datetime) –

      The timestamp when the evidence was last updated.

    • status (string) –

      The lifecycle status of the evidence.

    • checksum (string) –

      The checksum of the evidence content. Uploaded and Amazon S3 evidence use SHA-256. GitHub evidence uses SHA-1, because GitHub reports content hashes only in SHA-1.

    • reference (string) –

      The external reference URI if this is reference-based evidence.

    • 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.

    • 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.

Exceptions