SecurityAgent / Paginator / ListThreats
ListThreats¶
- class SecurityAgent.Paginator.ListThreats¶
paginator = client.get_paginator('list_threats')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
SecurityAgent.Client.list_threats().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( threatJobId='string', agentSpaceId='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
threatJobId (string) –
[REQUIRED]
The unique identifier of the threat model job to list threats for.
agentSpaceId (string) –
[REQUIRED]
The unique identifier of the agent space.
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
{ 'threats': [ { 'threatId': 'string', 'threatJobId': 'string', 'title': 'string', 'statement': 'string', 'severity': 'CRITICAL'|'HIGH'|'MEDIUM'|'LOW'|'INFO', 'status': 'OPEN'|'RESOLVED'|'DISMISSED', 'stride': [ 'SPOOFING'|'TAMPERING'|'REPUDIATION'|'INFORMATION_DISCLOSURE'|'DENIAL_OF_SERVICE'|'ELEVATION_OF_PRIVILEGE', ], 'createdBy': 'CUSTOMER'|'AGENT', 'updatedBy': 'CUSTOMER'|'AGENT', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) }, ], 'NextToken': 'string' }
Response Structure
(dict) –
Output for the ListThreats operation.
threats (list) –
The list of threat summaries.
(dict) –
Contains summary information about a threat.
threatId (string) –
The unique identifier of the threat.
threatJobId (string) –
The unique identifier of the threat model job that produced the threat.
title (string) –
A short title summarizing the threat.
statement (string) –
The natural-language threat statement.
severity (string) –
The severity level of the threat.
status (string) –
The current status of the threat.
stride (list) –
The STRIDE categories applicable to this threat.
(string) –
STRIDE threat classification category.
createdBy (string) –
Who created this threat.
updatedBy (string) –
Who last updated this threat.
createdAt (datetime) –
The date and time the threat was created, in UTC format.
updatedAt (datetime) –
The date and time the threat was last updated, in UTC format.
NextToken (string) –
A token to resume pagination.