Continuum / Client / list_package_decisions

list_package_decisions

Continuum.Client.list_package_decisions(**kwargs)

Lists the package decisions made for the calling account, newest first by completedAt. Decisions are retained for 45 days.

See also: AWS API Documentation

Request Syntax

response = client.list_package_decisions(
    completedAfter=datetime(2015, 1, 1),
    completedBefore=datetime(2015, 1, 1),
    maxResults=123,
    nextToken='string'
)
Parameters:
  • completedAfter (datetime) – Only return decisions completed at or after this time.

  • completedBefore (datetime) – Only return decisions completed before this time.

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

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

Return type:

dict

Returns:

Response Syntax

{
    'decisions': [
        {
            'decisionId': 'string',
            'evaluatedAt': datetime(2015, 1, 1),
            'completedAt': datetime(2015, 1, 1),
            'canonicalPurl': 'string',
            'evaluatedAction': 'ALLOW'|'DENY',
            'enforcementAction': 'ALLOW'|'DENY',
            'enforcementMode': 'NONE'|'AUDIT'|'ENFORCE',
            'reason': 'NO_DENY_MATCH'|'MALICIOUS_PACKAGE'|'POLICY_RULE_MATCHED'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    Output for ListPackageDecisions.

    • decisions (list) –

      The decisions, newest first.

      • (dict) –

        A package decision returned by ListPackageDecisions.

        • decisionId (string) –

          The ID of the decision.

        • evaluatedAt (datetime) –

          The time the package was evaluated. Policy exceptions are applied based on this time.

        • completedAt (datetime) –

          The time the decision was recorded.

        • canonicalPurl (string) –

          The package URL (purl) that was evaluated, as accepted by the service.

        • evaluatedAction (string) –

          The result of policy evaluation: DENY when the malicious-package baseline or a deny rule matched and no policy exception suppressed it, otherwise ALLOW.

        • enforcementAction (string) –

          The action the caller was told to take. It differs from evaluatedAction only when enforcementMode is AUDIT.

        • enforcementMode (string) –

          The strongest enforcement mode among matches that a policy exception didn’t suppress: ENFORCE for the malicious-package baseline or an enforced rule, AUDIT for an audit-mode rule. NONE when there is no such match, including when policy exceptions suppressed every match.

        • reason (string) –

          Why the decision was made.

    • nextToken (string) –

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

Exceptions