:doc:`MultipartyApproval <../../mpa>` / Client / list_approval_teams

*******************
list_approval_teams
*******************



.. py:method:: MultipartyApproval.Client.list_approval_teams(**kwargs)

  

  Returns a list of approval teams.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mpa-2022-07-26/ListApprovalTeams>`_  


  **Request Syntax**
  ::

    response = client.list_approval_teams(
        MaxResults=123,
        NextToken='string'
    )
    
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of items to return in the response. If more results exist than the specified ``MaxResults`` value, a token is included in the response so that you can retrieve the remaining results.

    

  
  :type NextToken: string
  :param NextToken: 

    If present, indicates that more output is available than is included in the current response. Use this value in the ``NextToken`` request parameter in a next call to the operation to get more output. You can repeat this until the ``NextToken`` response element returns ``null``.

    

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

    
    ::

      {
          'NextToken': 'string',
          'ApprovalTeams': [
              {
                  'CreationTime': datetime(2015, 1, 1),
                  'ApprovalStrategy': {
                      'MofN': {
                          'MinApprovalsRequired': 123
                      }
                  },
                  'NumberOfApprovers': 123,
                  'Arn': 'string',
                  'Name': 'string',
                  'Description': 'string',
                  'Status': 'ACTIVE'|'INACTIVE'|'DELETING'|'PENDING',
                  'StatusCode': 'VALIDATING'|'PENDING_ACTIVATION'|'FAILED_VALIDATION'|'FAILED_ACTIVATION'|'UPDATE_PENDING_APPROVAL'|'UPDATE_PENDING_ACTIVATION'|'UPDATE_FAILED_APPROVAL'|'UPDATE_FAILED_ACTIVATION'|'UPDATE_FAILED_VALIDATION'|'DELETE_PENDING_APPROVAL'|'DELETE_FAILED_APPROVAL'|'DELETE_FAILED_VALIDATION',
                  'StatusMessage': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        If present, indicates that more output is available than is included in the current response. Use this value in the ``NextToken`` request parameter in a next call to the operation to get more output. You can repeat this until the ``NextToken`` response element returns ``null``.

        
      

      - **ApprovalTeams** *(list) --* 

        An array of ``ListApprovalTeamsResponseApprovalTeam`` objects. Contains details for approval teams.

        
        

        - *(dict) --* 

          Contains details for an approval team

          
          

          - **CreationTime** *(datetime) --* 

            Timestamp when the team was created.

            
          

          - **ApprovalStrategy** *(dict) --* 

            An ``ApprovalStrategyResponse`` object. Contains details for how an approval team grants approval.

            .. note::    This is a Tagged Union structure. Only one of the     following top level keys will be set: ``MofN``.     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'}


          
            

            - **MofN** *(dict) --* 

              Minimum number of approvals (M) required for a total number of approvers (N).

              
              

              - **MinApprovalsRequired** *(integer) --* 

                Minimum number of approvals (M) required for a total number of approvers (N).

                
          
        
          

          - **NumberOfApprovers** *(integer) --* 

            Total number of approvers in the team.

            
          

          - **Arn** *(string) --* 

            Amazon Resource Name (ARN) for the team.

            
          

          - **Name** *(string) --* 

            Name of the team.

            
          

          - **Description** *(string) --* 

            Description for the team.

            
          

          - **Status** *(string) --* 

            Status for the team. For more information, see `Team health <https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html>`__ in the *Multi-party approval User Guide*.

            
          

          - **StatusCode** *(string) --* 

            Status code for the team. For more information, see `Team health <https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html>`__ in the *Multi-party approval User Guide*.

            
          

          - **StatusMessage** *(string) --* 

            Message describing the status for the team.

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

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

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

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

  