SecurityAgent / Paginator / ListPentests
ListPentests¶
- class SecurityAgent.Paginator.ListPentests¶
paginator = client.get_paginator('list_pentests')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
SecurityAgent.Client.list_pentests().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( agentSpaceId='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
agentSpaceId (string) –
[REQUIRED]
ID of the agent space where the pentest exists
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
{ 'pentestSummaries': [ { 'pentestId': 'string', 'agentSpaceId': 'string', 'title': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) }, ], 'NextToken': 'string' }
Response Structure
(dict) –
Output for the ListPentests operation
pentestSummaries (list) –
List of pentest summaries matching the filter criteria
(dict) –
Summary information for a pentest
pentestId (string) –
Unique identifier for the pentest
agentSpaceId (string) –
ID of the agent space where the pentest exists
title (string) –
Title or name of the pentest
createdAt (datetime) –
Timestamp when the pentest was created
updatedAt (datetime) –
Timestamp when the pentest was last updated
NextToken (string) –
A token to resume pagination.