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': {}
}
)
[REQUIRED]
The ARN (Amazon Resource Name) of the resource.
[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.
Specifies that Shield Advanced should configure its WAF rules with the WAF Block
action.
You must specify exactly one action, either Block
or Count
.
Specifies that Shield Advanced should configure its WAF rules with the WAF Count
action.
You must specify exactly one action, either Block
or Count
.
dict
Response Syntax
{}
Response Structure
Exceptions
Shield.Client.exceptions.InternalErrorException
Shield.Client.exceptions.ResourceNotFoundException
Shield.Client.exceptions.InvalidParameterException
Shield.Client.exceptions.OptimisticLockException
Shield.Client.exceptions.InvalidOperationException