get_unfiltered_table_metadata
async
¶
get_unfiltered_table_metadata(
catalog_id: CatalogIdString,
database_name: NameString,
name: NameString,
supported_permission_types: PermissionTypeList,
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
region: Optional[ValueString] = None,
audit_context: Optional[AuditContext] = None,
parent_resource_arn: Optional[ArnString] = None,
root_resource_arn: Optional[ArnString] = None,
supported_dialect: Optional[SupportedDialect] = None,
permissions: Optional[PermissionList] = None,
query_session_context: Optional[QuerySessionContext] = None,
) -> GetUnfilteredTableMetadataResponse
Allows a third-party analytical engine to retrieve unfiltered table metadata from the Data Catalog.
For IAM authorization, the public IAM action associated with this API is glue:GetTable.
Parameters:
-
region(Optional[ValueString], default:None) –Specified only if the base tables belong to a different Amazon Web Services Region.
-
catalog_id(CatalogIdString) –The catalog ID where the table resides.
-
database_name(NameString) –(Required) Specifies the name of a database that contains the table.
-
name(NameString) –(Required) Specifies the name of a table for which you are requesting metadata.
-
audit_context(Optional[AuditContext], default:None) –A structure containing Lake Formation audit context information.
-
supported_permission_types(PermissionTypeList) –Indicates the level of filtering a third-party analytical engine is capable of enforcing when calling the
GetUnfilteredTableMetadataAPI operation. Accepted values are:-
COLUMN_PERMISSION- Column permissions ensure that users can access only specific columns in the table. If there are particular columns contain sensitive data, data lake administrators can define column filters that exclude access to specific columns. -
CELL_FILTER_PERMISSION- Cell-level filtering combines column filtering (include or exclude columns) and row filter expressions to restrict access to individual elements in the table. -
NESTED_PERMISSION- Nested permissions combines cell-level filtering and nested column filtering to restrict access to columns and/or nested columns in specific rows based on row filter expressions. -
NESTED_CELL_PERMISSION- Nested cell permissions combines nested permission with nested cell-level filtering. This allows different subsets of nested columns to be restricted based on an array of row filter expressions.
Note: Each of these permission types follows a hierarchical order where each subsequent permission type includes all permission of the previous type.
Important: If you provide a supported permission type that doesn't match the user's level of permissions on the table, then Lake Formation raises an exception. For example, if the third-party engine calling the
GetUnfilteredTableMetadataoperation can enforce only column-level filtering, and the user has nested cell filtering applied on the table, Lake Formation throws an exception, and will not return unfiltered table metadata and data access credentials. -
-
parent_resource_arn(Optional[ArnString], default:None) –The resource ARN of the view.
-
root_resource_arn(Optional[ArnString], default:None) –The resource ARN of the root view in a chain of nested views.
-
supported_dialect(Optional[SupportedDialect], default:None) –A structure specifying the dialect and dialect version used by the query engine.
-
permissions(Optional[PermissionList], default:None) –The Lake Formation data permissions of the caller on the table. Used to authorize the call when no view context is found.
-
query_session_context(Optional[QuerySessionContext], default:None) –A structure used as a protocol between query engines and Lake Formation or Glue. Contains both a Lake Formation generated authorization identifier and information from the request's authorization context.
Raises:
-
EntityNotFoundException–A specified entity does not exist
-
FederationSourceException–A federation source failed.
-
FederationSourceRetryableException–A federation source failed, but the operation may be retried.
-
GlueEncryptionException–An encryption operation failed.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
PermissionTypeMismatchException–The operation timed out.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/async_glue.py
12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 | |