LakeFormation / Client / get_glue_function_session_context

get_glue_function_session_context

LakeFormation.Client.get_glue_function_session_context(**kwargs)

Returns a session context for one or more user-defined functions that an integrated analytics engine runs together in a job. You must have the EXECUTE permission on every function in the list.

While the session context is in use, if you don’t have full SELECT permission on a table, the job can read the table only if every function in the session has the SELECT permission on it. Lake Formation enforces this check.

To use this operation, you must have the lakeformation:GetDataAccess permission.

See also: AWS API Documentation

Request Syntax

response = client.get_glue_function_session_context(
    UserDefinedFunctionArns=[
        'string',
    ],
    DurationSeconds=123
)
Parameters:
  • UserDefinedFunctionArns (list) –

    [REQUIRED]

    The ARNs of one or more user-defined functions to include in the session context, each in the format ``arn:aws:glue:region:account-id:userDefinedFunction/database-name/function-name ``.

    • (string) –

  • DurationSeconds (integer) – The number of seconds the session context is valid. The default is 86,400 (24 hours).

Return type:

dict

Returns:

Response Syntax

{
    'SessionContextId': 'string',
    'Expiration': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • SessionContextId (string) –

      The ID of the session context.

    • Expiration (datetime) –

      The date and time when the session context expires.

Exceptions