Continuum / Paginator / ListPackageDecisions
ListPackageDecisions¶
- class Continuum.Paginator.ListPackageDecisions¶
paginator = client.get_paginator('list_package_decisions')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
Continuum.Client.list_package_decisions().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( completedAfter=datetime(2015, 1, 1), completedBefore=datetime(2015, 1, 1), PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
completedAfter (datetime) – Only return decisions completed at or after this time.
completedBefore (datetime) – Only return decisions completed before this time.
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextTokenwill be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextTokenfrom a previous response.
- 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) –
A token to resume pagination.