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
9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 | |