get_entity_records
async
¶
get_entity_records(
entity_name: EntityName,
limit: Limit,
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
connection_name: Optional[NameString] = None,
catalog_id: Optional[CatalogIdString] = None,
next_token: Optional[NextToken] = None,
data_store_api_version: Optional[ApiVersion] = None,
connection_options: Optional[ConnectionOptions] = None,
filter_predicate: Optional[FilterPredicate] = None,
order_by: Optional[str] = None,
selected_fields: Optional[SelectedFields] = None,
) -> GetEntityRecordsResponse
This API is used to query preview data from a given connection type or from a native Amazon S3 based Glue Data Catalog.
Returns records as an array of JSON blobs. Each record is formatted using Jackson JsonNode based on the field type defined by the DescribeEntity API.
Spark connectors generate schemas according to the same data type mapping as in the DescribeEntity API. Spark connectors convert data to the appropriate data types matching the schema when returning rows.
Parameters:
-
connection_name(Optional[NameString], default:None) –The name of the connection that contains the connection type credentials.
-
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.
-
entity_name(EntityName) –Name of the entity that we want to query the preview data from the given connection type.
-
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.
-
connection_options(Optional[ConnectionOptions], default:None) –Connector options that are required to query the data.
-
filter_predicate(Optional[FilterPredicate], default:None) –A filter predicate that you can apply in the query request.
-
limit(Limit) –Limits the number of records fetched with the request.
-
order_by(Optional[str], default:None) –A parameter that orders the response preview data.
-
selected_fields(Optional[SelectedFields], default:None) –List of fields that we want to fetch as part of preview data.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
EntityNotFoundException–A specified entity does not exist
-
FederationSourceException–A federation source failed.
-
GlueEncryptionException–An encryption operation failed.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
ValidationException–A value could not be validated.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/async_glue.py
9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 | |