

# QuerySessionContext
<a name="API_QuerySessionContext"></a>

A structure used as a protocol between query engines and Lake Formation or AWS Glue. Contains both a Lake Formation generated authorization identifier and information from the request's authorization context.

For more information about how to utilize QuerySessionContext, see [Lake Formation workflow for application integration API operations](https://docs.aws.amazon.com/lake-formation/latest/dg/api-overview.html) in the developer guide.

## Contents
<a name="API_QuerySessionContext_Contents"></a>

 ** AdditionalContext **   <a name="lakeformation-Type-QuerySessionContext-AdditionalContext"></a>
An opaque string-string map passed by the query engine.  
Type: String to string map  
Key Length Constraints: Minimum length of 1. Maximum length of 128.  
Value Length Constraints: Minimum length of 0. Maximum length of 256.  
Required: No

 ** ClusterId **   <a name="lakeformation-Type-QuerySessionContext-ClusterId"></a>
An identifier string for the consumer cluster.  
Type: String  
Required: No

 ** QueryAuthorizationId **   <a name="lakeformation-Type-QuerySessionContext-QueryAuthorizationId"></a>
A cryptographically generated query identifier generated by AWS Glue or Lake Formation.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*`   
Required: No

 ** QueryId **   <a name="lakeformation-Type-QuerySessionContext-QueryId"></a>
A unique identifier generated by the query engine for the query.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*`   
Required: No

 ** QueryStartTime **   <a name="lakeformation-Type-QuerySessionContext-QueryStartTime"></a>
A timestamp provided by the query engine for when the query started.  
Type: Timestamp  
Required: No

## See Also
<a name="API_QuerySessionContext_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/lakeformation-2017-03-31/QuerySessionContext) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/lakeformation-2017-03-31/QuerySessionContext) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/lakeformation-2017-03-31/QuerySessionContext) 