:doc:`Shield <../../shield>` / Client / update_application_layer_automatic_response

*******************************************
update_application_layer_automatic_response
*******************************************



.. py:method:: Shield.Client.update_application_layer_automatic_response(**kwargs)

  

  Updates an existing Shield Advanced automatic application layer DDoS mitigation configuration for the specified resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/UpdateApplicationLayerAutomaticResponse>`_  


  **Request Syntax**
  ::

    response = client.update_application_layer_automatic_response(
        ResourceArn='string',
        Action={
            'Block': {}
            ,
            'Count': {}
            
        }
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    The ARN (Amazon Resource Name) of the resource.

    

  
  :type Action: dict
  :param Action: **[REQUIRED]** 

    Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.

    

  
    - **Block** *(dict) --* 

      Specifies that Shield Advanced should configure its WAF rules with the WAF ``Block`` action.

       

      You must specify exactly one action, either ``Block`` or ``Count``.

      

    
    
    - **Count** *(dict) --* 

      Specifies that Shield Advanced should configure its WAF rules with the WAF ``Count`` action.

       

      You must specify exactly one action, either ``Block`` or ``Count``.

      

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Shield.Client.exceptions.InternalErrorException`

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

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

  
  *   :py:class:`Shield.Client.exceptions.OptimisticLockException`

  
  *   :py:class:`Shield.Client.exceptions.InvalidOperationException`

  