:doc:`ECR <../../ecr>` / Client / put_account_setting

*******************
put_account_setting
*******************



.. py:method:: ECR.Client.put_account_setting(**kwargs)

  

  Allows you to change the basic scan type version or registry policy scope.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutAccountSetting>`_  


  **Request Syntax**
  ::

    response = client.put_account_setting(
        name='string',
        value='string'
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    The name of the account setting, such as ``BASIC_SCAN_TYPE_VERSION`` or ``REGISTRY_POLICY_SCOPE``.

    

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

    Setting value that is specified. The following are valid values for the basic scan type being used: ``AWS_NATIVE`` or ``CLAIR``. The following are valid values for the registry policy scope being used: ``V1`` or ``V2``.

    

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

    
    ::

      {
          'name': 'string',
          'value': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        Retrieves the name of the account setting.

        
      

      - **value** *(string) --* 

        Retrieves the value of the specified account setting.

        
  
  **Exceptions**
  
  *   :py:class:`ECR.Client.exceptions.ServerException`

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

  
  *   :py:class:`ECR.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`ECR.Client.exceptions.LimitExceededException`

  