Retrieve a list of the blacklists that your dedicated IP addresses appear on.
Parameters:
-
blacklist_item_names
(BlacklistItemNames)
–
A list of IP addresses that you want to retrieve blacklist information about. You can only specify the dedicated IP addresses that you use to send email using Amazon SES or Amazon Pinpoint.
Raises:
Source code in docs_src/capo_sesv2/_services/se_sv2.py
| def get_blacklist_reports(
self,
blacklist_item_names: "capo_sesv2.types.blacklist_item_names.BlacklistItemNames",
*,
config_overrides: Optional[SESv2ClientConfig] = None,
) -> "capo_sesv2.types.get_blacklist_reports_response.GetBlacklistReportsResponse":
"""<p>Retrieve a list of the blacklists that your dedicated IP addresses appear on.</p>
Args:
blacklist_item_names: <p>A list of IP addresses that you want to retrieve blacklist information about. You can only specify the dedicated IP addresses that you use to send email using Amazon SES or Amazon Pinpoint.</p>
Raises:
capo_sesv2.errors.bad_request_exception.BadRequestException: <p>The input you provided is invalid.</p>
capo_sesv2.errors.not_found_exception.NotFoundException: <p>The resource you attempted to access doesn't exist.</p>
capo_sesv2.errors.too_many_requests_exception.TooManyRequestsException: <p>Too many requests have been made to the operation.</p>
capo_sesv2.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_sesv2.types.get_blacklist_reports_request.GetBlacklistReportsRequest]",
) -> OperationResponse[
"capo_sesv2.types.get_blacklist_reports_response.GetBlacklistReportsResponse"
]:
import capo_sesv2._operations.simple_email_service_v2.get_blacklist_reports
output, http_response = (
capo_sesv2._operations.simple_email_service_v2.get_blacklist_reports.get_blacklist_reports(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetBlacklistReports")
)
input_: capo_sesv2.types.get_blacklist_reports_request.GetBlacklistReportsRequest = {
"blacklist_item_names": blacklist_item_names
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|