:doc:`Inspector2 <../../inspector2>` / Paginator / ListUsageTotals

***************
ListUsageTotals
***************



.. py:class:: Inspector2.Paginator.ListUsageTotals

  ::

    
    paginator = client.get_paginator('list_usage_totals')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`Inspector2.Client.list_usage_totals`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/ListUsageTotals>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          accountIds=[
              'string',
          ],
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type accountIds: list
    :param accountIds: 

      The Amazon Web Services account IDs to retrieve usage totals for.

      

    
      - *(string) --* 

      
  
    :type PaginationConfig: dict
    :param PaginationConfig: 

      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.

        

      
    
    
    :rtype: dict
    :returns: 
      
      **Response Syntax**

      
      ::

        {
            'totals': [
                {
                    'accountId': 'string',
                    'usage': [
                        {
                            'type': 'EC2_INSTANCE_HOURS'|'ECR_INITIAL_SCAN'|'ECR_RESCAN'|'LAMBDA_FUNCTION_HOURS'|'LAMBDA_FUNCTION_CODE_HOURS'|'CODE_REPOSITORY_SAST'|'CODE_REPOSITORY_IAC'|'CODE_REPOSITORY_SCA'|'EC2_AGENTLESS_INSTANCE_HOURS',
                            'total': 123.0,
                            'estimatedMonthlyCost': 123.0,
                            'currency': 'USD'
                        },
                    ]
                },
            ],
            'NextToken': 'string'
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **totals** *(list) --* 

          An object with details on the total usage for the requested account.

          
          

          - *(dict) --* 

            The total of usage for an account ID.

            
            

            - **accountId** *(string) --* 

              The account ID of the account that usage data was retrieved for.

              
            

            - **usage** *(list) --* 

              An object representing the total usage for an account.

              
              

              - *(dict) --* 

                Contains usage information about the cost of Amazon Inspector operation.

                
                

                - **type** *(string) --* 

                  The type scan.

                  
                

                - **total** *(float) --* 

                  The total of usage.

                  
                

                - **estimatedMonthlyCost** *(float) --* 

                  The estimated monthly cost of Amazon Inspector.

                  
                

                - **currency** *(string) --* 

                  The currency type used when calculating usage data.

                  
            
          
        
      
        

        - **NextToken** *(string) --* 

          A token to resume pagination.

          
    