:doc:`PartnerCentralAccountAPI <../../partnercentral-account>` / Client / update_connection_preferences

*****************************
update_connection_preferences
*****************************



.. py:method:: PartnerCentralAccountAPI.Client.update_connection_preferences(**kwargs)

  

  Updates the connection preferences for a partner account, modifying access settings and exclusions.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/partnercentral-account-2025-04-04/UpdateConnectionPreferences>`_  


  **Request Syntax**
  ::

    response = client.update_connection_preferences(
        Catalog='string',
        Revision=123,
        AccessType='ALLOW_ALL'|'DENY_ALL'|'ALLOW_BY_DEFAULT_DENY_SOME',
        ExcludedParticipantIdentifiers=[
            'string',
        ]
    )
    
  :type Catalog: string
  :param Catalog: **[REQUIRED]** 

    The catalog identifier for the partner account.

    

  
  :type Revision: integer
  :param Revision: **[REQUIRED]** 

    The revision number of the connection preferences for optimistic locking.

    

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

    The access type setting for connections (e.g., open, restricted, invitation-only).

    

  
  :type ExcludedParticipantIdentifiers: list
  :param ExcludedParticipantIdentifiers: 

    The updated list of participant identifiers to exclude from connections.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'Catalog': 'string',
          'Arn': 'string',
          'AccessType': 'ALLOW_ALL'|'DENY_ALL'|'ALLOW_BY_DEFAULT_DENY_SOME',
          'ExcludedParticipantIds': [
              'string',
          ],
          'UpdatedAt': datetime(2015, 1, 1),
          'Revision': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Catalog** *(string) --* 

        The catalog identifier for the partner account.

        
      

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

        The Amazon Resource Name (ARN) of the updated connection preferences.

        
      

      - **AccessType** *(string) --* 

        The updated access type setting for connections.

        
      

      - **ExcludedParticipantIds** *(list) --* 

        A list of participant IDs that are excluded from connection requests or interactions.

        
        

        - *(string) --* 
    
      

      - **UpdatedAt** *(datetime) --* 

        The timestamp when the connection preferences were last updated.

        
      

      - **Revision** *(integer) --* 

        The updated revision number of the connection preferences.

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

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

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

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

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

  