:doc:`BedrockRuntime <../../bedrock-runtime>` / Client / list_async_invokes

******************
list_async_invokes
******************



.. py:method:: BedrockRuntime.Client.list_async_invokes(**kwargs)

  

  Lists asynchronous invocations.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/ListAsyncInvokes>`_  


  **Request Syntax**
  ::

    response = client.list_async_invokes(
        submitTimeAfter=datetime(2015, 1, 1),
        submitTimeBefore=datetime(2015, 1, 1),
        statusEquals='InProgress'|'Completed'|'Failed',
        maxResults=123,
        nextToken='string',
        sortBy='SubmissionTime',
        sortOrder='Ascending'|'Descending'
    )
    
  :type submitTimeAfter: datetime
  :param submitTimeAfter: 

    Include invocations submitted after this time.

    

  
  :type submitTimeBefore: datetime
  :param submitTimeBefore: 

    Include invocations submitted before this time.

    

  
  :type statusEquals: string
  :param statusEquals: 

    Filter invocations by status.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of invocations to return in one page of results.

    

  
  :type nextToken: string
  :param nextToken: 

    Specify the pagination token from a previous request to retrieve the next page of results.

    

  
  :type sortBy: string
  :param sortBy: 

    How to sort the response.

    

  
  :type sortOrder: string
  :param sortOrder: 

    The sorting order for the response.

    

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

    
    ::

      {
          'nextToken': 'string',
          'asyncInvokeSummaries': [
              {
                  'invocationArn': 'string',
                  'modelArn': 'string',
                  'clientRequestToken': 'string',
                  'status': 'InProgress'|'Completed'|'Failed',
                  'failureMessage': 'string',
                  'submitTime': datetime(2015, 1, 1),
                  'lastModifiedTime': datetime(2015, 1, 1),
                  'endTime': datetime(2015, 1, 1),
                  'outputDataConfig': {
                      's3OutputDataConfig': {
                          's3Uri': 'string',
                          'kmsKeyId': 'string',
                          'bucketOwner': 'string'
                      }
                  }
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **nextToken** *(string) --* 

        Specify the pagination token from a previous request to retrieve the next page of results.

        
      

      - **asyncInvokeSummaries** *(list) --* 

        A list of invocation summaries.

        
        

        - *(dict) --* 

          A summary of an asynchronous invocation.

          
          

          - **invocationArn** *(string) --* 

            The invocation's ARN.

            
          

          - **modelArn** *(string) --* 

            The invoked model's ARN.

            
          

          - **clientRequestToken** *(string) --* 

            The invocation's idempotency token.

            
          

          - **status** *(string) --* 

            The invocation's status.

            
          

          - **failureMessage** *(string) --* 

            An error message.

            
          

          - **submitTime** *(datetime) --* 

            When the invocation was submitted.

            
          

          - **lastModifiedTime** *(datetime) --* 

            When the invocation was last modified.

            
          

          - **endTime** *(datetime) --* 

            When the invocation ended.

            
          

          - **outputDataConfig** *(dict) --* 

            The invocation's output data settings.

            .. note::    This is a Tagged Union structure. Only one of the     following top level keys will be set: ``s3OutputDataConfig``.     If a client receives an unknown member it will     set ``SDK_UNKNOWN_MEMBER`` as the top level key,     which maps to the name or tag of the unknown     member. The structure of ``SDK_UNKNOWN_MEMBER`` is     as follows::

                        'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}


          
            

            - **s3OutputDataConfig** *(dict) --* 

              A storage location for the output data in an S3 bucket

              
              

              - **s3Uri** *(string) --* 

                An object URI starting with ``s3://``.

                
              

              - **kmsKeyId** *(string) --* 

                A KMS encryption key ID.

                
              

              - **bucketOwner** *(string) --* 

                If the bucket belongs to another AWS account, specify that account's ID.

                
          
        
      
    
  
  **Exceptions**
  
  *   :py:class:`BedrockRuntime.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`BedrockRuntime.Client.exceptions.ThrottlingException`

  
  *   :py:class:`BedrockRuntime.Client.exceptions.InternalServerException`

  
  *   :py:class:`BedrockRuntime.Client.exceptions.ValidationException`

  