def list_discoverers(
self,
*,
config_overrides: Optional[schemasClientConfig] = None,
discoverer_id_prefix: Optional["capo_schemas.types.__string.__string"] = None,
limit: Optional["capo_schemas.types.__integer.__integer"] = None,
next_token: Optional["capo_schemas.types.__string.__string"] = None,
source_arn_prefix: Optional["capo_schemas.types.__string.__string"] = None,
) -> "capo_schemas.types.list_discoverers_response.ListDiscoverersResponse":
"""<p>List the discoverers.</p>
Args:
discoverer_id_prefix: <p>Specifying this limits the results to only those discoverer IDs that start with the specified prefix.</p>
next_token: <p>The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.</p>
source_arn_prefix: <p>Specifying this limits the results to only those ARNs that start with the specified prefix.</p>
Raises:
capo_schemas.errors.bad_request_exception.BadRequestException
capo_schemas.errors.forbidden_exception.ForbiddenException
capo_schemas.errors.internal_server_error_exception.InternalServerErrorException
capo_schemas.errors.service_unavailable_exception.ServiceUnavailableException
capo_schemas.errors.unauthorized_exception.UnauthorizedException
capo_schemas.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_schemas.types.list_discoverers_request.ListDiscoverersRequest]",
) -> OperationResponse[
"capo_schemas.types.list_discoverers_response.ListDiscoverersResponse"
]:
import capo_schemas._operations.schemas.list_discoverers
output, http_response = (
capo_schemas._operations.schemas.list_discoverers.list_discoverers(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListDiscoverers")
)
input_: capo_schemas.types.list_discoverers_request.ListDiscoverersRequest = {}
if discoverer_id_prefix is not None:
input_["discoverer_id_prefix"] = discoverer_id_prefix
if limit is not None:
input_["limit"] = limit
if next_token is not None:
input_["next_token"] = next_token
if source_arn_prefix is not None:
input_["source_arn_prefix"] = source_arn_prefix
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output