:doc:`OpenSearchService <../../opensearch>` / Client / put_default_application_setting

*******************************
put_default_application_setting
*******************************



.. py:method:: OpenSearchService.Client.put_default_application_setting(**kwargs)

  

  Sets the default application to the application with the specified ARN.

   

  To remove the default application, use the ``GetDefaultApplicationSetting`` operation to get the current default and then call the ``PutDefaultApplicationSetting`` with the current applications ARN and the ``setAsDefault`` parameter set to ``false``.

  

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


  **Request Syntax**
  ::

    response = client.put_default_application_setting(
        applicationArn='string',
        setAsDefault=True|False
    )
    
  :type applicationArn: string
  :param applicationArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the domain. See `Identifiers for IAM Entities <https://docs.aws.amazon.com/IAM/latest/UserGuide/index.html>`__ in *Using Amazon Web Services Identity and Access Management* for more information.

    

  
  :type setAsDefault: boolean
  :param setAsDefault: **[REQUIRED]** 

    Set to true to set the specified ARN as the default application. Set to false to clear the default application.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **applicationArn** *(string) --* 

        The Amazon Resource Name (ARN) of the domain. See `Identifiers for IAM Entities <https://docs.aws.amazon.com/IAM/latest/UserGuide/index.html>`__ in *Using Amazon Web Services Identity and Access Management* for more information.

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

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

  
  *   :py:class:`OpenSearchService.Client.exceptions.InternalException`

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

  