update_application_layer_automatic_response
¶
update_application_layer_automatic_response(
resource_arn: ResourceArn,
action: ResponseAction,
*,
config_overrides: Optional[ShieldClientConfig] = None,
) -> UpdateApplicationLayerAutomaticResponseResponse
Updates an existing Shield Advanced automatic application layer DDoS mitigation configuration for the specified resource.
Parameters:
-
resource_arn(ResourceArn) –The ARN (Amazon Resource Name) of the resource.
-
action(ResponseAction) –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.
Raises:
-
InternalErrorException–Exception that indicates that a problem occurred with the service infrastructure. You can retry the request.
-
InvalidOperationException–Exception that indicates that the operation would not cause any change to occur.
-
InvalidParameterException–Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties.
-
OptimisticLockException–Exception that indicates that the resource state has been modified by another client. Retrieve the resource and then retry your request.
-
ResourceNotFoundException–Exception indicating the specified resource does not exist. If available, this exception includes details in additional properties.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_shield/_services/shield.py
2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 | |