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

********************
update_approval_team
********************



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

  

  Updates an approval team. You can request to update the team description, approval threshold, and approvers in the team.

   

  .. note::

    

    **Updates require team approval**

     

    Updates to an active team must be approved by the team.

    

  

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


  **Request Syntax**
  ::

    response = client.update_approval_team(
        ApprovalStrategy={
            'MofN': {
                'MinApprovalsRequired': 123
            }
        },
        Approvers=[
            {
                'PrimaryIdentityId': 'string',
                'PrimaryIdentitySourceArn': 'string'
            },
        ],
        Description='string',
        Arn='string',
        UpdateActions=[
            'SYNCHRONIZE_MFA_DEVICES',
        ]
    )
    
  :type ApprovalStrategy: dict
  :param ApprovalStrategy: 

    An ``ApprovalStrategy`` object. Contains details for how the team grants approval.

    .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``MofN``. 

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

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

      

    
      - **MinApprovalsRequired** *(integer) --* **[REQUIRED]** 

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

        

      
    
  
  :type Approvers: list
  :param Approvers: 

    An array of ``ApprovalTeamRequestApprover`` objects. Contains details for the approvers in the team.

    

  
    - *(dict) --* 

      Contains details for an approver.

      

    
      - **PrimaryIdentityId** *(string) --* **[REQUIRED]** 

        ID for the user.

        

      
      - **PrimaryIdentitySourceArn** *(string) --* **[REQUIRED]** 

        Amazon Resource Name (ARN) for the identity source. The identity source manages the user authentication for approvers.

        

      
    

  :type Description: string
  :param Description: 

    Description for the team.

    

  
  :type Arn: string
  :param Arn: **[REQUIRED]** 

    Amazon Resource Name (ARN) for the team.

    

  
  :type UpdateActions: list
  :param UpdateActions: 

    A list of ``UpdateAction`` to perform when updating the team.

    

  
    - *(string) --* 

      Actions that can be taken when updating an approval team

       

      
      * ``SYNCHRONIZE_MFA_DEVICES``: Synchronize MFA devices for all approvers on the team
      

      

    

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

    
    ::

      {
          'VersionId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **VersionId** *(string) --* 

        Version ID for the team that was created. When an approval team is updated, the version ID changes.

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

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

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

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

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

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

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

  