Shield / Client / update_application_layer_automatic_response

update_application_layer_automatic_response#

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

Request Syntax

response = client.update_application_layer_automatic_response(
    ResourceArn='string',
    Action={
        'Block': {}
        ,
        'Count': {}

    }
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

    The ARN (Amazon Resource Name) of the resource.

  • Action (dict) –

    [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.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions