AuditManager / Client / get_evidence

get_evidence#

AuditManager.Client.get_evidence(**kwargs)#

Returns evidence from Audit Manager.

See also: AWS API Documentation

Request Syntax

response = client.get_evidence(
    assessmentId='string',
    controlSetId='string',
    evidenceFolderId='string',
    evidenceId='string'
)
Parameters:
  • assessmentId (string) –

    [REQUIRED]

    The unique identifier for the assessment.

  • controlSetId (string) –

    [REQUIRED]

    The unique identifier for the control set.

  • evidenceFolderId (string) –

    [REQUIRED]

    The unique identifier for the folder that the evidence is stored in.

  • evidenceId (string) –

    [REQUIRED]

    The unique identifier for the evidence.

Return type:

dict

Returns:

Response Syntax

{
    'evidence': {
        'dataSource': 'string',
        'evidenceAwsAccountId': 'string',
        'time': datetime(2015, 1, 1),
        'eventSource': 'string',
        'eventName': 'string',
        'evidenceByType': 'string',
        'resourcesIncluded': [
            {
                'arn': 'string',
                'value': 'string',
                'complianceCheck': 'string'
            },
        ],
        'attributes': {
            'string': 'string'
        },
        'iamId': 'string',
        'complianceCheck': 'string',
        'awsOrganization': 'string',
        'awsAccountId': 'string',
        'evidenceFolderId': 'string',
        'id': 'string',
        'assessmentReportSelection': 'string'
    }
}

Response Structure

  • (dict) –

    • evidence (dict) –

      The evidence that the GetEvidence API returned.

      • dataSource (string) –

        The data source where the evidence was collected from.

      • evidenceAwsAccountId (string) –

        The identifier for the Amazon Web Services account.

      • time (datetime) –

        The timestamp that represents when the evidence was collected.

      • eventSource (string) –

        The Amazon Web Service that the evidence is collected from.

      • eventName (string) –

        The name of the evidence event.

      • evidenceByType (string) –

        The type of automated evidence.

      • resourcesIncluded (list) –

        The list of resources that are assessed to generate the evidence.

        • (dict) –

          A system asset that’s evaluated in an Audit Manager assessment.

          • arn (string) –

            The Amazon Resource Name (ARN) for the resource.

          • value (string) –

            The value of the resource.

          • complianceCheck (string) –

            The evaluation status for a resource that was assessed when collecting compliance check evidence.

            • Audit Manager classes the resource as non-compliant if Security Hub reports a Fail result, or if Config reports a Non-compliant result.

            • Audit Manager classes the resource as compliant if Security Hub reports a Pass result, or if Config reports a Compliant result.

            • If a compliance check isn’t available or applicable, then no compliance evaluation can be made for that resource. This is the case if a resource assessment uses Config or Security Hub as the underlying data source type, but those services aren’t enabled. This is also the case if the resource assessment uses an underlying data source type that doesn’t support compliance checks (such as manual evidence, Amazon Web Services API calls, or CloudTrail).

      • attributes (dict) –

        The names and values that are used by the evidence event. This includes an attribute name (such as allowUsersToChangePassword) and value (such as true or false).

        • (string) –

          • (string) –

      • iamId (string) –

        The unique identifier for the user or role that’s associated with the evidence.

      • complianceCheck (string) –

        The evaluation status for automated evidence that falls under the compliance check category.

        • Audit Manager classes evidence as non-compliant if Security Hub reports a Fail result, or if Config reports a Non-compliant result.

        • Audit Manager classes evidence as compliant if Security Hub reports a Pass result, or if Config reports a Compliant result.

        • If a compliance check isn’t available or applicable, then no compliance evaluation can be made for that evidence. This is the case if the evidence uses Config or Security Hub as the underlying data source type, but those services aren’t enabled. This is also the case if the evidence uses an underlying data source type that doesn’t support compliance checks (such as manual evidence, Amazon Web Services API calls, or CloudTrail).

      • awsOrganization (string) –

        The Amazon Web Services account that the evidence is collected from, and its organization path.

      • awsAccountId (string) –

        The identifier for the Amazon Web Services account.

      • evidenceFolderId (string) –

        The identifier for the folder that the evidence is stored in.

      • id (string) –

        The identifier for the evidence.

      • assessmentReportSelection (string) –

        Specifies whether the evidence is included in the assessment report.

Exceptions

  • AuditManager.Client.exceptions.ResourceNotFoundException

  • AuditManager.Client.exceptions.ValidationException

  • AuditManager.Client.exceptions.AccessDeniedException

  • AuditManager.Client.exceptions.InternalServerException