get_entity_records
¶
get_entity_records(
entity_name: EntityName,
limit: Limit,
*,
config_overrides: Optional[GlueClientConfig] = 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/glue.py
9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 | |