Show a list of the predictive inbox placement tests that you've performed, regardless of their statuses. For predictive inbox placement tests that are complete, you can use the GetDeliverabilityTestReport operation to view the results.
Parameters:
-
next_token
(Optional[NextToken], default:
None
)
–
A token returned from a previous call to ListDeliverabilityTestReports to indicate the position in the list of predictive inbox placement tests.
-
page_size
(Optional[MaxItems], default:
None
)
–
The number of results to show in a single call to ListDeliverabilityTestReports. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.
The value you specify has to be at least 0, and can be no more than 1000.
Raises:
Source code in docs_src/capo_pinpoint_email/_services/async_pinpoint_email.py
| async def list_deliverability_test_reports(
self,
*,
config_overrides: Optional[AsyncPinpointEmailClientConfig] = None,
next_token: Optional["capo_pinpoint_email.types.next_token.NextToken"] = None,
page_size: Optional["capo_pinpoint_email.types.max_items.MaxItems"] = None,
) -> "capo_pinpoint_email.types.list_deliverability_test_reports_response.ListDeliverabilityTestReportsResponse":
"""<p>Show a list of the predictive inbox placement tests that you've performed, regardless of their statuses. For predictive inbox placement tests that are complete, you can use the <code>GetDeliverabilityTestReport</code> operation to view the results.</p>
Args:
next_token: <p>A token returned from a previous call to <code>ListDeliverabilityTestReports</code> to indicate the position in the list of predictive inbox placement tests.</p>
page_size: <p>The number of results to show in a single call to <code>ListDeliverabilityTestReports</code>. If the number of results is larger than the number you specified in this parameter, then the response includes a <code>NextToken</code> element, which you can use to obtain additional results.</p> <p>The value you specify has to be at least 0, and can be no more than 1000.</p>
Raises:
capo_pinpoint_email.errors.bad_request_exception.BadRequestException: <p>The input you provided is invalid.</p>
capo_pinpoint_email.errors.not_found_exception.NotFoundException: <p>The resource you attempted to access doesn't exist.</p>
capo_pinpoint_email.errors.too_many_requests_exception.TooManyRequestsException: <p>Too many requests have been made to the operation.</p>
capo_pinpoint_email.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_pinpoint_email.types.list_deliverability_test_reports_request.ListDeliverabilityTestReportsRequest]",
) -> AsyncOperationResponse[
"capo_pinpoint_email.types.list_deliverability_test_reports_response.ListDeliverabilityTestReportsResponse"
]:
import capo_pinpoint_email._operations.amazon_pinpoint_email_service.list_deliverability_test_reports
(
output,
http_response,
) = await capo_pinpoint_email._operations.amazon_pinpoint_email_service.list_deliverability_test_reports.async_list_deliverability_test_reports(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListDeliverabilityTestReports")
)
input_: capo_pinpoint_email.types.list_deliverability_test_reports_request.ListDeliverabilityTestReportsRequest = {}
if next_token is not None:
input_["next_token"] = next_token
if page_size is not None:
input_["page_size"] = page_size
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|