Continuum / Client / get_package_decision

get_package_decision

Continuum.Client.get_package_decision(**kwargs)

Returns one package decision owned by the calling account. Never re-evaluates. Use ListDecisionEvidence to read the evidence recorded for the decision.

See also: AWS API Documentation

Request Syntax

response = client.get_package_decision(
    decisionId='string'
)
Parameters:

decisionId (string) –

[REQUIRED]

The ID of the decision, as returned by CreatePackageDecision.

Return type:

dict

Returns:

Response Syntax

{
    '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'
}

Response Structure

  • (dict) –

    Output for GetPackageDecision.

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

Exceptions