Skip to content

list_provider_services async

list_provider_services(
    *,
    config_overrides: Optional[AsyncEntityResolutionClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[int] = None,
    provider_name: Optional[EntityName] = None,
) -> ListProviderServicesOutput

Returns a list of all the ProviderServices that are available in this Amazon Web Services Region.

Parameters:

  • next_token (Optional[NextToken], default: None ) –

    The pagination token from the previous API call.

  • max_results (Optional[int], default: None ) –

    The maximum number of objects returned per page.

  • provider_name (Optional[EntityName], default: None ) –

    The name of the provider. This name is typically the company name.

Raises:

Source code in docs_src/capo_entityresolution/_services/async_entity_resolution.py
async def list_provider_services(
    self,
    *,
    config_overrides: Optional[AsyncEntityResolutionClientConfig] = None,
    next_token: Optional["capo_entityresolution.types.next_token.NextToken"] = None,
    max_results: Optional[int] = None,
    provider_name: Optional[
        "capo_entityresolution.types.entity_name.EntityName"
    ] = None,
) -> "capo_entityresolution.types.list_provider_services_output.ListProviderServicesOutput":
    """<p>Returns a list of all the <code>ProviderServices</code> that are available in this Amazon Web Services Region.</p>

    Args:
        next_token: <p>The pagination token from the previous API call.</p>
        max_results: <p>The maximum number of objects returned per page.</p>
        provider_name: <p>The name of the provider. This name is typically the company name.</p>

    Raises:
        capo_entityresolution.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action. </p>
        capo_entityresolution.errors.internal_server_exception.InternalServerException: <p>This exception occurs when there is an internal failure in the Entity Resolution service. </p>
        capo_entityresolution.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling. </p>
        capo_entityresolution.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by Entity Resolution. </p>
        capo_entityresolution.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_entityresolution.types.list_provider_services_input.ListProviderServicesInput]",
    ) -> AsyncOperationResponse[
        "capo_entityresolution.types.list_provider_services_output.ListProviderServicesOutput"
    ]:
        import capo_entityresolution._operations.aws_venice_service.list_provider_services

        (
            output,
            http_response,
        ) = await capo_entityresolution._operations.aws_venice_service.list_provider_services.async_list_provider_services(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListProviderServices")
    )
    input_: capo_entityresolution.types.list_provider_services_input.ListProviderServicesInput = {}
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results
    if provider_name is not None:
        input_["provider_name"] = provider_name

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output