Inspector2 / Client / list_account_permissions

list_account_permissions#

Inspector2.Client.list_account_permissions(**kwargs)#

Lists the permissions an account has to configure Amazon Inspector.

See also: AWS API Documentation

Request Syntax

response = client.list_account_permissions(
    maxResults=123,
    nextToken='string',
    service='EC2'|'ECR'|'LAMBDA'
)
Parameters:
  • maxResults (integer) – The maximum number of results to return in the response.

  • nextToken (string) – A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

  • service (string) – The service scan type to check permissions for.

Return type:

dict

Returns:

Response Syntax

{
    'nextToken': 'string',
    'permissions': [
        {
            'operation': 'ENABLE_SCANNING'|'DISABLE_SCANNING'|'ENABLE_REPOSITORY'|'DISABLE_REPOSITORY',
            'service': 'EC2'|'ECR'|'LAMBDA'
        },
    ]
}

Response Structure

  • (dict) –

    • nextToken (string) –

      A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

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

Exceptions

  • Inspector2.Client.exceptions.ValidationException

  • Inspector2.Client.exceptions.AccessDeniedException

  • Inspector2.Client.exceptions.ThrottlingException

  • Inspector2.Client.exceptions.InternalServerException