

# SageMaker IAM

An authentication plugin that uses IAM credentials to connect to Amazon Athena through SageMaker Unified Studio. This plugin authenticates using IAM credentials (static access key/secret key or the AWS default credential chain) and retrieves Athena environment credentials via the SageMaker connection service.

## Authentication Type
<a name="odbc-v4-driver-sagemaker-iam-authentication-type"></a>



| **Connection string name** | **Parameter type** | **Default value** | **Connection string example** | 
| --- | --- | --- | --- | 
| AuthenticationType | Required | IAM Credentials | AuthenticationType=SageMakerIam; | 

## SageMaker domain ID
<a name="odbc-v4-driver-sagemaker-iam-domain-id"></a>

The identifier of the SageMaker Unified Studio domain to use.



| **Connection string name** | **Parameter type** | **Default value** | **Connection string example** | 
| --- | --- | --- | --- | 
| SageMakerDomainId | Required | none | SageMakerDomainId=dzd-abcdef1234; | 

## SageMaker project ID
<a name="odbc-v4-driver-sagemaker-iam-project-id"></a>

The identifier of the SageMaker project to use.



| **Connection string name** | **Parameter type** | **Default value** | **Connection string example** | 
| --- | --- | --- | --- | 
| SageMakerProjectId | Required | none | SageMakerProjectId=p-abcdef1234; | 

## SageMaker domain region
<a name="odbc-v4-driver-sagemaker-iam-domain-region"></a>

The AWS Region where your SageMaker domain is provisioned.



| **Connection string name** | **Parameter type** | **Default value** | **Connection string example** | 
| --- | --- | --- | --- | 
| SageMakerDomainRegion | Required | none | SageMakerDomainRegion=us-east-1; | 

## User ID
<a name="odbc-v4-driver-sagemaker-iam-user-id"></a>

Your AWS access key ID. If not specified, the driver uses the AWS default credential chain. For more information about access keys, see [AWS security credentials](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html) in the *IAM User Guide*.

In the connection string example, replace the placeholder with the value for your connection.



| **Connection string name** | **Parameter type** | **Default value** | **Connection string example** | 
| --- | --- | --- | --- | 
| UID | Optional | none | UID={{access-key-id}}; | 

## Password
<a name="odbc-v4-driver-sagemaker-iam-password"></a>

Your AWS secret access key. Required if `UID` is specified.

In the connection string example, replace the placeholder with the value for your connection.



| **Connection string name** | **Parameter type** | **Default value** | **Connection string example** | 
| --- | --- | --- | --- | 
| PWD | Optional | none | PWD={{secret-access-key}}; | 