async def list_trust_stores(
self,
*,
config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
marker: Optional["capo_cloudfront.types.string.string"] = None,
max_items: Optional["capo_cloudfront.types.integer.integer"] = None,
) -> "capo_cloudfront.types.list_trust_stores_result.ListTrustStoresResult":
"""<p>Lists trust stores.</p>
Args:
marker: <p>Use this field when paginating results to indicate where to begin in your list. The response includes items in the list that occur after the marker. To get the next page of the list, set this field's value to the value of <code>NextMarker</code> from the current page's response.</p>
max_items: <p>The maximum number of trust stores that you want returned in the response.</p>
Raises:
capo_cloudfront.errors.access_denied.AccessDenied: <p>Access denied.</p>
capo_cloudfront.errors.entity_not_found.EntityNotFound: <p>The entity was not found.</p>
capo_cloudfront.errors.invalid_argument.InvalidArgument: <p>An argument is invalid.</p>
capo_cloudfront.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cloudfront.types.list_trust_stores_request.ListTrustStoresRequest]",
) -> AsyncOperationResponse[
"capo_cloudfront.types.list_trust_stores_result.ListTrustStoresResult"
]:
import capo_cloudfront._operations.cloudfront2020_05_31.list_trust_stores
(
output,
http_response,
) = await capo_cloudfront._operations.cloudfront2020_05_31.list_trust_stores.async_list_trust_stores(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListTrustStores")
)
input_: capo_cloudfront.types.list_trust_stores_request.ListTrustStoresRequest = {}
if marker is not None:
input_["marker"] = marker
if max_items is not None:
input_["max_items"] = max_items
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output