:doc:`OpenSearchServiceServerless <../../opensearchserverless>` / Client / update_account_settings

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



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

  

  Update the OpenSearch Serverless settings for the current Amazon Web Services account. For more information, see `Managing capacity limits for Amazon OpenSearch Serverless <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/UpdateAccountSettings>`_  


  **Request Syntax**
  ::

    response = client.update_account_settings(
        capacityLimits={
            'maxIndexingCapacityInOCU': 123,
            'maxSearchCapacityInOCU': 123
        }
    )
    
  :type capacityLimits: dict
  :param capacityLimits: 

    The maximum capacity limits for all OpenSearch Serverless collections, in OpenSearch Compute Units (OCUs). These limits are used to scale your collections based on the current workload. For more information, see `Managing capacity limits for Amazon OpenSearch Serverless <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html>`__.

    

  
    - **maxIndexingCapacityInOCU** *(integer) --* 

      The maximum indexing capacity for collections.

      

    
    - **maxSearchCapacityInOCU** *(integer) --* 

      The maximum search capacity for collections.

      

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

    
    ::

      {
          'accountSettingsDetail': {
              'capacityLimits': {
                  'maxIndexingCapacityInOCU': 123,
                  'maxSearchCapacityInOCU': 123
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **accountSettingsDetail** *(dict) --* 

        OpenSearch Serverless-related settings for the current Amazon Web Services account.

        
        

        - **capacityLimits** *(dict) --* 

          The maximum capacity limits for all OpenSearch Serverless collections, in OpenSearch Compute Units (OCUs). These limits are used to scale your collections based on the current workload. For more information, see `Managing capacity limits for Amazon OpenSearch Serverless <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-scaling.html>`__.

          
          

          - **maxIndexingCapacityInOCU** *(integer) --* 

            The maximum indexing capacity for collections.

            
          

          - **maxSearchCapacityInOCU** *(integer) --* 

            The maximum search capacity for collections.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.InternalServerException`

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

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

  