get_temporary_glue_table_credentials
async
¶
get_temporary_glue_table_credentials(
table_arn: ResourceArnString,
*,
config_overrides: Optional[AsyncLakeFormationClientConfig] = 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/async_lake_formation.py
2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 | |