Connection string syntax and options for the ODBC driver
The syntax for specifying connection-string options for the ODBC driver is as follows:
DRIVER={Amazon Timestream ODBC Driver};
(option)
=(value)
;
Available options are as follows:
Driver connection options
-
Driver
(required) – The driver being used with ODBC.The default is Amazon Timestream.
-
DSN
– The data source name (DSN) to use for configuring the connection.The default is
NONE
. -
Auth
– The authentication mode. This must be one of the following:AWS_PROFILE
– Use the default credential chain.IAM
– Use AWS IAM credentials.AAD
– Use the Azure Active Directory (AD) identity provider.OKTA
– Use the Okta identity provider.
The default is
AWS_PROFILE
.
Endpoint configuration options
-
EndpointOverride
– The endpoint override for the Timestream for LiveAnalytics service. This is an advanced option that overrides the region. For example:query-cell2.timestream.us-east-1.amazonaws.com
-
Region
– The signing region for the Timestream for LiveAnalytics service endpoint.The default is
us-east-1
.
Credentials provider option
-
ProfileName
– The profile name in the AWS config file.The default is
NONE
.
AWS IAM authentication options
-
UID
orAccessKeyId
– The AWS user access key id. If bothUID
andAccessKeyId
are provided in the connection string, theUID
value will be used unless it is empty.The default is
NONE
. -
PWD
orSecretKey
– The AWS user secret access key. If bothPWD
andSecretKey
are provided in the connection string, thePWD
value with will be used unless it's empty.The default is
NONE
. -
SessionToken
– The temporary session token required to access a database with multi-factor authentication (MFA) enabled. Do not include a trailing=
in the input.The default is
NONE
.
SAML-based authentication options for Okta
-
IdPHost
– The hostname of the specified IdP.The default is
NONE
. -
UID
orIdPUserName
– The user name for the specified IdP account. If bothUID
andIdPUserName
are provided in the connection string, theUID
value will be used unless it's empty.The default is
NONE
. -
PWD
orIdPPassword
– The password for the specified IdP account. If bothPWD
andIdPPassword
are provided in the connection string, thePWD
value will be used unless it's empty.The default is
NONE
. -
OktaApplicationID
– The unique Okta-provided ID associated with the Timestream for LiveAnalytics application. A place to find the application ID (AppId) is in theentityID
field provided in the application metadata. An example is:entityID="http://www.okta.com//
(IdPAppID)
The default is
NONE
. -
RoleARN
– The Amazon Resource Name (ARN) of the role that the caller is assuming.The default is
NONE
. -
IdPARN
– The Amazon Resource Name (ARN) of the SAML provider in IAM that describes the IdP.The default is
NONE
.
SAML-based authentication options for Azure Active Directory
-
UID
orIdPUserName
– The user name for the specified IdP account..The default is
NONE
. -
PWD
orIdPPassword
– The password for the specified IdP account.The default is
NONE
. -
AADApplicationID
– The unique id of the registered application on Azure AD.The default is
NONE
. -
AADClientSecret
– The client secret associated with the registered application on Azure AD used to authorize fetching tokens.The default is
NONE
. -
AADTenant
– The Azure AD Tenant ID.The default is
NONE
. -
RoleARN
– The Amazon Resource Name (ARN) of the role that the caller is assuming.The default is
NONE
. -
IdPARN
– The Amazon Resource Name (ARN) of the SAML provider in IAM that describes the IdP.The default is
NONE
.
AWS SDK (advanced) Options
-
RequestTimeout
– The time in milliseconds that the AWS SDK waits for a query request before timing out. Any non-positive value disables the request timeout.The default is
3000
. -
ConnectionTimeout
– The time in milliseconds that the AWS SDK waits for data to be transferred over an open connection before timing out. A value of 0 disables the connection timeout. This value must not be negative.The default is
1000
. -
MaxRetryCountClient
– The maximum number of retry attempts for retryable errors with 5xx error codes in the SDK. The value must not be negative.The default is
0
. -
MaxConnections
– The maximum number of allowed concurrently open HTTP connections to the Timestream service. The value must be positive.The default is
25
.
ODBC driver logging Options
-
LogLevel
– The log level for driver logging. Must be one of:0 (OFF).
1 (ERROR).
2 (WARNING).
3 (INFO).
4 (DEBUG).
The default is
1
(ERROR).Warning: personal information could be logged by the driver when using the DEBUG logging mode.
-
LogOutput
– Folder in which to store the log file.The default is:
Windows:
%USERPROFILE%
, or if not available,%HOMEDRIVE%%HOMEPATH%
.macOS and Linux:
$HOME
, or if not available, the fieldpw_dir
from the functiongetpwuid(getuid())
return value.
SDK logging options
The AWS SDK log level is separate from the Timestream for LiveAnalytics ODBC driver log level. Setting one does not affect the other.
The SDK Log Level is set using the environment variable TS_AWS_LOG_LEVEL
.
Valid values are:
OFF
ERROR
WARN
INFO
DEBUG
TRACE
FATAL
If TS_AWS_LOG_LEVEL
is not set, the SDK log level is set to the default,
which is WARN
.
Connecting through a proxy
The ODBC driver supports connecting to Amazon Timestream for LiveAnalytics through a proxy. To use this feature, configure the following environment variables based on your proxy setting:
-
TS_PROXY_HOST
– the proxy host. -
TS_PROXY_PORT
– The proxy port number. -
TS_PROXY_SCHEME
– The proxy scheme, eitherhttp
orhttps
. -
TS_PROXY_USER
– The user name for proxy authentication. -
TS_PROXY_PASSWORD
– The user password for proxy authentication. -
TS_PROXY_SSL_CERT_PATH
– The SSL Certificate file to use for connecting to an HTTPS proxy. -
TS_PROXY_SSL_CERT_TYPE
– The type of the proxy client SSL certificate. -
TS_PROXY_SSL_KEY_PATH
– The private key file to use for connecting to an HTTPS proxy. -
TS_PROXY_SSL_KEY_TYPE
– The type of the private key file used to connect to an HTTPS proxy. -
TS_PROXY_SSL_KEY_PASSWORD
– The passphrase to the private key file used to connect to an HTTPS proxy.