Continuum / Client / list_decision_evidence

list_decision_evidence

Continuum.Client.list_decision_evidence(**kwargs)

Returns the immutable evidence recorded for one decision: which baseline, rules, and policy exceptions applied to the package. Never re-evaluates.

See also: AWS API Documentation

Request Syntax

response = client.list_decision_evidence(
    decisionId='string',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • decisionId (string) –

    [REQUIRED]

    The ID of the decision, as returned by CreatePackageDecision.

  • maxResults (integer) – The maximum number of evidence items to return, from 1 to 100.

  • nextToken (string) – The token returned by a previous call, to get the next page of evidence.

Return type:

dict

Returns:

Response Syntax

{
    'evidence': [
        {
            'mandatoryBaseline': {
                'baselineArn': 'string',
                'vulnerabilityIds': [
                    'string',
                ]
            },
            'policyRuleMatch': {
                'policyArn': 'string',
                'ruleId': 'string',
                'enforcementMode': 'NONE'|'AUDIT'|'ENFORCE'
            },
            'policyException': {
                'exceptionArn': 'string',
                'policyArn': 'string',
                'ruleIds': [
                    'string',
                ]
            }
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    Output for ListDecisionEvidence.

    • evidence (list) –

      The evidence recorded for the decision.

      • (dict) –

        One item of evidence recorded for a decision. Exactly one member is set.

        Note

        This is a Tagged Union structure. Only one of the following top level keys will be set: mandatoryBaseline, policyRuleMatch, policyException. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

        'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
        
        • mandatoryBaseline (dict) –

          The service-managed malicious-package baseline matched the package.

          • baselineArn (string) –

            The ARN of the service-managed policy that matched.

          • vulnerabilityIds (list) –

            The vulnerability IDs that Amazon Inspector associated with the package at evaluation time, returned unchanged. The list doesn’t say which ID caused the malicious verdict. Pass any of them to GetVulnerability.

            • (string) –

              Vulnerability identifier assigned by the vulnerability source, such as CVE-2024-1234, GHSA-xxxx-xxxx-xxxx, or IN-MAL-NPM-2026-782. Any ID in MandatoryBaselineEvidence.vulnerabilityIds is accepted. It is not generated by this service.

        • policyRuleMatch (dict) –

          A rule in one of your policies matched the package.

          • policyArn (string) –

            The ARN of the policy.

          • ruleId (string) –

            The ID of the rule that matched.

          • enforcementMode (string) –

            The enforcement mode of the rule.

        • policyException (dict) –

          A policy exception suppressed one or more matching rules.

          • exceptionArn (string) –

            The ARN of the policy exception.

          • policyArn (string) –

            The ARN of the policy that the exception applies to.

          • ruleIds (list) –

            The IDs of the rules that the exception suppressed.

            • (string) –

              The ID of a rule within a policy.

    • nextToken (string) –

      The token to pass in the next call to get the next page of evidence. Absent when there is no more evidence.

Exceptions