

# Basic connection parameters

The following sections describe the basic connection parameters for the JDBC 4.x driver.

## Region
<a name="jdbc-v4-driver-region"></a>

The AWS Region where queries will be run. For a list of regions, see [Amazon Athena endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/athena.html).

Set `Region` explicitly when using `AzureAD`, `Okta`, `Ping`, `ADFS`, `BrowserAzureAD`, or `BrowserSaml`. `DataZoneIdc` also requires an explicit query Region when connecting through an environment; its project connection does not require this parameter.



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| Region | AwsRegion (deprecated) | Set explicitly for authentication providers that require it; otherwise the SDK client resolves the Region | none | 

## Catalog
<a name="jdbc-v4-driver-catalog"></a>

The catalog that contains the databases and the tables that will be accessed with the driver. For information about catalogs, see [DataCatalog](https://docs.aws.amazon.com/athena/latest/APIReference/API_DataCatalog.html).



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| Catalog | none | Optional | AwsDataCatalog | 

## Database
<a name="jdbc-v4-driver-database"></a>

The database name that the driver includes in the query execution context. For information about this context, see [QueryExecutionContext](https://docs.aws.amazon.com/athena/latest/APIReference/API_QueryExecutionContext.html).



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| Database | Schema | Optional | default | 

## Workgroup
<a name="jdbc-v4-driver-workgroup"></a>

The workgroup in which queries will run. For information about workgroups, see [WorkGroup](https://docs.aws.amazon.com/athena/latest/APIReference/API_WorkGroup.html).



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| WorkGroup | none | Optional | primary | 

## Output location
<a name="jdbc-v4-driver-output-location"></a>

The location in Amazon S3 where query results will be stored. For information about output location, see [ResultConfiguration](https://docs.aws.amazon.com/athena/latest/APIReference/API_ResultConfiguration.html).



| Parameter name | Alias | Parameter type | Default value | 
| --- | --- | --- | --- | 
| OutputLocation | S3OutputLocation (deprecated) | Optional for Athena-managed query results; for S3 results, configure the output location in the connection or workgroup | none | 

## EngineVersion
<a name="jdbc-v4-driver-engine-version"></a>

The optional `EngineVersion` parameter accepts `DuckDB` and `Athena engine version 3`. It selects the corresponding dialect and names the engine in query submissions; result storage still comes from the workgroup.

Leave this parameter unset when first connecting to a workgroup configured for the engine you want to use.