get_temporary_glue_table_credentials
¶
get_temporary_glue_table_credentials(
table_arn: ResourceArnString,
*,
config_overrides: Optional[LakeFormationClientConfig] = None,
permissions: Optional[PermissionList] = None,
duration_seconds: Optional[CredentialTimeoutDurationSecondInteger] = None,
audit_context: Optional[AuditContext] = None,
supported_permission_types: Optional[PermissionTypeList] = None,
s3_path: Optional[PathString] = None,
query_session_context: Optional[QuerySessionContext] = None,
) -> GetTemporaryGlueTableCredentialsResponse
Allows a caller in a secure environment to assume a role with permission to access Amazon S3. In order to vend such credentials, Lake Formation assumes the role associated with a registered location, for example an Amazon S3 bucket, with a scope down policy which restricts the access to a single prefix.
To call this API, the role that the service assumes must have lakeformation:GetDataAccess permission on the resource.
Parameters:
-
table_arn(ResourceArnString) –The ARN identifying a table in the Data Catalog for the temporary credentials request.
-
permissions(Optional[PermissionList], default:None) –Filters the request based on the user having been granted a list of specified permissions on the requested resource(s).
-
duration_seconds(Optional[CredentialTimeoutDurationSecondInteger], default:None) –The time period, between 900 and 21,600 seconds, for the timeout of the temporary credentials.
-
audit_context(Optional[AuditContext], default:None) –A structure representing context to access a resource (column names, query ID, etc).
-
supported_permission_types(Optional[PermissionTypeList], default:None) –A list of supported permission types for the table. Valid values are
COLUMN_PERMISSIONandCELL_FILTER_PERMISSION. -
s3_path(Optional[PathString], default:None) –The Amazon S3 path for the table.
-
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:
-
AccessDeniedException–Access to a resource was denied.
-
EntityNotFoundException–A specified entity does not exist.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
PermissionTypeMismatchException–The engine does not support filtering data based on the enforced permissions. For example, if you call the
GetTemporaryGlueTableCredentialsoperation withSupportedPermissionTypeequal toColumnPermission, but cell-level permissions exist on the table, this exception is thrown. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lakeformation/_services/lake_formation.py
2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 | |