:doc:`Proton <../../proton>` / Client / update_account_settings

***********************
update_account_settings
***********************



.. py:method:: Proton.Client.update_account_settings(**kwargs)

  

  Update Proton settings that are used for multiple services in the Amazon Web Services account.

  

  .. danger::

        This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.


  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateAccountSettings>`_  


  **Request Syntax**
  ::

    response = client.update_account_settings(
        deletePipelineProvisioningRepository=True|False,
        pipelineCodebuildRoleArn='string',
        pipelineProvisioningRepository={
            'branch': 'string',
            'name': 'string',
            'provider': 'GITHUB'|'GITHUB_ENTERPRISE'|'BITBUCKET'
        },
        pipelineServiceRoleArn='string'
    )
    
  :type deletePipelineProvisioningRepository: boolean
  :param deletePipelineProvisioningRepository: 

    Set to ``true`` to remove a configured pipeline repository from the account settings. Don't set this field if you are updating the configured pipeline repository.

    

  
  :type pipelineCodebuildRoleArn: string
  :param pipelineCodebuildRoleArn: 

    The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Proton assumes this role for CodeBuild-based provisioning.

    

  
  :type pipelineProvisioningRepository: dict
  :param pipelineProvisioningRepository: 

    A linked repository for pipeline provisioning. Specify it if you have environments configured for self-managed provisioning with services that include pipelines. A linked repository is a repository that has been registered with Proton. For more information, see  CreateRepository.

     

    To remove a previously configured repository, set ``deletePipelineProvisioningRepository`` to ``true``, and don't set ``pipelineProvisioningRepository``.

    

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

      The repository branch.

      

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

      The repository name.

      

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

      The repository provider.

      

    
  
  :type pipelineServiceRoleArn: string
  :param pipelineServiceRoleArn: 

    The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by Proton for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed provisioning.

     

    To remove a previously configured ARN, specify an empty string.

    

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

    
    ::

      {
          'accountSettings': {
              'pipelineCodebuildRoleArn': 'string',
              'pipelineProvisioningRepository': {
                  'arn': 'string',
                  'branch': 'string',
                  'name': 'string',
                  'provider': 'GITHUB'|'GITHUB_ENTERPRISE'|'BITBUCKET'
              },
              'pipelineServiceRoleArn': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **accountSettings** *(dict) --* 

        The Proton pipeline service role and repository data shared across the Amazon Web Services account.

        
        

        - **pipelineCodebuildRoleArn** *(string) --* 

          The Amazon Resource Name (ARN) of the service role that Proton uses for provisioning pipelines. Proton assumes this role for CodeBuild-based provisioning.

          
        

        - **pipelineProvisioningRepository** *(dict) --* 

          The linked repository for pipeline provisioning. Required if you have environments configured for self-managed provisioning with services that include pipelines. A linked repository is a repository that has been registered with Proton. For more information, see  CreateRepository.

          
          

          - **arn** *(string) --* 

            The Amazon Resource Name (ARN) of the linked repository.

            
          

          - **branch** *(string) --* 

            The repository branch.

            
          

          - **name** *(string) --* 

            The repository name.

            
          

          - **provider** *(string) --* 

            The repository provider.

            
      
        

        - **pipelineServiceRoleArn** *(string) --* 

          The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by Proton for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed provisioning.

          
    
  
  **Exceptions**
  
  *   :py:class:`Proton.Client.exceptions.ValidationException`

  
  *   :py:class:`Proton.Client.exceptions.AccessDeniedException`

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

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

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

  