Skip to content

list_entities async

list_entities(
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    connection_name: Optional[NameString] = None,
    catalog_id: Optional[CatalogIdString] = None,
    parent_entity_name: Optional[EntityName] = None,
    next_token: Optional[NextToken] = None,
    data_store_api_version: Optional[ApiVersion] = None,
) -> ListEntitiesResponse

Returns the available entities supported by the connection type.

Parameters:

  • connection_name (Optional[NameString], default: None ) –

    A name for the connection that has required credentials to query any connection type.

  • catalog_id (Optional[CatalogIdString], default: None ) –

    The catalog ID of the catalog that contains the connection. This can be null, By default, the Amazon Web Services Account ID is the catalog ID.

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

    Name of the parent entity for which you want to list the children. This parameter takes a fully-qualified path of the entity in order to list the child entities.

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

    A continuation token, included if this is a continuation call.

  • data_store_api_version (Optional[ApiVersion], default: None ) –

    The API version of the SaaS connector.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def list_entities(
    self,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
    connection_name: Optional["capo_glue.types.name_string.NameString"] = None,
    catalog_id: Optional[
        "capo_glue.types.catalog_id_string.CatalogIdString"
    ] = None,
    parent_entity_name: Optional["capo_glue.types.entity_name.EntityName"] = None,
    next_token: Optional["capo_glue.types.next_token.NextToken"] = None,
    data_store_api_version: Optional[
        "capo_glue.types.api_version.ApiVersion"
    ] = None,
) -> "capo_glue.types.list_entities_response.ListEntitiesResponse":
    """<p>Returns the available entities supported by the connection type. </p>

    Args:
        connection_name: <p>A name for the connection that has required credentials to query any connection type.</p>
        catalog_id: <p>The catalog ID of the catalog that contains the connection. This can be null, By default, the Amazon Web Services Account ID is the catalog ID.</p>
        parent_entity_name: <p>Name of the parent entity for which you want to list the children. This parameter takes a fully-qualified path of the entity in order to list the child entities.</p>
        next_token: <p>A continuation token, included if this is a continuation call.</p>
        data_store_api_version: <p>The API version of the SaaS connector.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        capo_glue.errors.federation_source_exception.FederationSourceException: <p>A federation source failed.</p>
        capo_glue.errors.glue_encryption_exception.GlueEncryptionException: <p>An encryption operation failed.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
        capo_glue.errors.validation_exception.ValidationException: <p>A value could not be validated.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_glue.types.list_entities_request.ListEntitiesRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.list_entities_response.ListEntitiesResponse"
    ]:
        import capo_glue._operations.aws_glue.list_entities

        (
            output,
            http_response,
        ) = await capo_glue._operations.aws_glue.list_entities.async_list_entities(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListEntities")
    )
    input_: capo_glue.types.list_entities_request.ListEntitiesRequest = {}
    if connection_name is not None:
        input_["connection_name"] = connection_name
    if catalog_id is not None:
        input_["catalog_id"] = catalog_id
    if parent_entity_name is not None:
        input_["parent_entity_name"] = parent_entity_name
    if next_token is not None:
        input_["next_token"] = next_token
    if data_store_api_version is not None:
        input_["data_store_api_version"] = data_store_api_version

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