Inspector2 / Paginator / ListAccountPermissions
ListAccountPermissions#
- class Inspector2.Paginator.ListAccountPermissions#
paginator = client.get_paginator('list_account_permissions')
- paginate(**kwargs)#
Creates an iterator that will paginate through responses from
Inspector2.Client.list_account_permissions()
.See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( service='EC2'|'ECR'|'LAMBDA', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
service (string) – The service scan type to check permissions for.
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
NextToken
will 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
NextToken
from a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'permissions': [ { 'operation': 'ENABLE_SCANNING'|'DISABLE_SCANNING'|'ENABLE_REPOSITORY'|'DISABLE_REPOSITORY', 'service': 'EC2'|'ECR'|'LAMBDA' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
permissions (list) –
Contains details on the permissions an account has to configure Amazon Inspector.
(dict) –
Contains information on the permissions an account has within Amazon Inspector.
operation (string) –
The operations that can be performed with the given permissions.
service (string) –
The services that the permissions allow an account to perform the given operations for.
NextToken (string) –
A token to resume pagination.