Deletes the specified IP address filter.
For information about managing IP address filters, see the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
Parameters:
Raises:
Examples:
DeleteReceiptFilter
The following example deletes an IP address filter:
>>> await client.delete_receipt_filter(filter_name='MyFilter')
Source code in docs_src/capo_ses/_services/async_ses.py
| async def delete_receipt_filter(
self,
filter_name: "capo_ses.types.receipt_filter_name.ReceiptFilterName",
*,
config_overrides: Optional[AsyncSESClientConfig] = None,
) -> "capo_ses.types.delete_receipt_filter_response.DeleteReceiptFilterResponse":
"""<p>Deletes the specified IP address filter.</p> <p>For information about managing IP address filters, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/receiving-email-ip-filtering-console-walkthrough.html">Amazon SES Developer Guide</a>.</p> <p>You can execute this operation no more than once per second.</p>
Args:
filter_name: <p>The name of the IP address filter to delete.</p>
Raises:
capo_ses.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
DeleteReceiptFilter
The following example deletes an IP address filter:
>>> await client.delete_receipt_filter(filter_name='MyFilter')
"""
async def _handler(
req: "AsyncOperationRequest[capo_ses.types.delete_receipt_filter_request.DeleteReceiptFilterRequest]",
) -> AsyncOperationResponse[
"capo_ses.types.delete_receipt_filter_response.DeleteReceiptFilterResponse"
]:
import capo_ses._operations.simple_email_service.delete_receipt_filter
(
output,
http_response,
) = await capo_ses._operations.simple_email_service.delete_receipt_filter.async_delete_receipt_filter(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteReceiptFilter")
)
input_: capo_ses.types.delete_receipt_filter_request.DeleteReceiptFilterRequest = {
"filter_name": filter_name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|