Disable the Shield Advanced automatic application layer DDoS mitigation feature for the protected resource. This stops Shield Advanced from creating, verifying, and applying WAF rules for attacks that it detects for the resource.
Parameters:
-
resource_arn
(ResourceArn)
–
The ARN (Amazon Resource Name) of the protected 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
| def disable_application_layer_automatic_response(
self,
resource_arn: "capo_shield.types.resource_arn.ResourceArn",
*,
config_overrides: Optional[ShieldClientConfig] = None,
) -> "capo_shield.types.disable_application_layer_automatic_response_response.DisableApplicationLayerAutomaticResponseResponse":
"""<p>Disable the Shield Advanced automatic application layer DDoS mitigation feature for the protected resource. This stops Shield Advanced from creating, verifying, and applying WAF rules for attacks that it detects for the resource. </p>
Args:
resource_arn: <p>The ARN (Amazon Resource Name) of the protected resource.</p>
Raises:
capo_shield.errors.internal_error_exception.InternalErrorException: <p>Exception that indicates that a problem occurred with the service infrastructure. You can retry the request.</p>
capo_shield.errors.invalid_operation_exception.InvalidOperationException: <p>Exception that indicates that the operation would not cause any change to occur.</p>
capo_shield.errors.invalid_parameter_exception.InvalidParameterException: <p>Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties. </p>
capo_shield.errors.optimistic_lock_exception.OptimisticLockException: <p>Exception that indicates that the resource state has been modified by another client. Retrieve the resource and then retry your request.</p>
capo_shield.errors.resource_not_found_exception.ResourceNotFoundException: <p>Exception indicating the specified resource does not exist. If available, this exception includes details in additional properties. </p>
capo_shield.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_shield.types.disable_application_layer_automatic_response_request.DisableApplicationLayerAutomaticResponseRequest]",
) -> OperationResponse[
"capo_shield.types.disable_application_layer_automatic_response_response.DisableApplicationLayerAutomaticResponseResponse"
]:
import capo_shield._operations.aws_shield_20160616.disable_application_layer_automatic_response
output, http_response = (
capo_shield._operations.aws_shield_20160616.disable_application_layer_automatic_response.disable_application_layer_automatic_response(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("DisableApplicationLayerAutomaticResponse"),
)
input_: capo_shield.types.disable_application_layer_automatic_response_request.DisableApplicationLayerAutomaticResponseRequest = {
"resource_arn": resource_arn
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|