For similar capabilities to Amazon Timestream for LiveAnalytics, consider Amazon Timestream for InfluxDB. It offers simplified data ingestion and single-digit millisecond query response times for real-time analytics. Learn more here.
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 Amazon 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 Amazon config file.The default is
NONE.
Amazon IAM authentication options
-
UIDorAccessKeyId– The Amazon user access key id. If bothUIDandAccessKeyIdare provided in the connection string, theUIDvalue will be used unless it is empty.The default is
NONE. -
PWDorSecretKey– The AWS user secret access key. If bothPWDandSecretKeyare provided in the connection string, thePWDvalue 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. -
UIDorIdPUserName– The user name for the specified IdP account. If bothUIDandIdPUserNameare provided in the connection string, theUIDvalue will be used unless it's empty.The default is
NONE. -
PWDorIdPPassword– The password for the specified IdP account. If bothPWDandIdPPasswordare provided in the connection string, thePWDvalue 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 theentityIDfield 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
-
UIDorIdPUserName– The user name for the specified IdP account..The default is
NONE. -
PWDorIdPPassword– 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.
Amazon SDK (advanced) Options
-
RequestTimeout– The time in milliseconds that the Amazon 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 Amazon 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_dirfrom the functiongetpwuid(getuid())return value.
SDK logging options
The Amazon 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:
OFFERRORWARNINFODEBUGTRACEFATAL
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, eitherhttporhttps. -
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.