GlueClient.get_entity_records
rboto-glue==0.4.0 · Service index · Types
Model summary (excerpt): 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...
Install and imports
from rboto import GlueClient
from collections.abc import Sequence
from rboto_glue.types import (
GetEntityRecordsOutput,
)
Signature
async def get_entity_records(
*,
entity_name: str,
limit: int,
connection_name: str | None = None,
catalog_id: str | None = None,
next_token: str | None = None,
data_store_api_version: str | None = None,
connection_options: dict[str, str] | None = None,
filter_predicate: str | None = None,
order_by: str | None = None,
selected_fields: Sequence[str] | None = None,
) -> GetEntityRecordsOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
entity_name |
Yes | Name of the entity that we want to query the preview data from the given connection type. |
limit |
Yes | Limits the number of records fetched with the request. |
connection_name |
No | The name of the connection that contains the connection type credentials. |
catalog_id |
No | 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. |
next_token |
No | A continuation token, included if this is a continuation call. |
data_store_api_version |
No | The API version of the SaaS connector. |
connection_options |
No | Connector options that are required to query the data. |
filter_predicate |
No | A filter predicate that you can apply in the query request. |
order_by |
No | A parameter that orders the response preview data. |
selected_fields |
No | List of fields that we want to fetch as part of preview data. |
Output
GetEntityRecordsOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
records |
list[JSONValue] | None |
Always present | JSONValue |
next_token |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.get_entity_records(...) accepts the same arguments and returns AsyncIterator[GetEntityRecordsOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: limit.
No output stream.
Errors
Import from rboto_glue.exceptions:
AccessDeniedError, EntityNotFoundError, FederationSourceError, GlueEncryptionError, InvalidInputError, OperationTimeoutError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.