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
10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 | |