

# SageMaker IAM
<a name="odbc-v2-driver-sagemaker-iam"></a>

使用 IAM 凭证通过 SageMaker Unified Studio 连接到 Amazon Athena 的身份验证插件。此插件使用 IAM 凭证（静态访问密钥/密钥或 AWS 默认凭证链）进行身份验证，并通过 SageMaker 连接服务检索 Athena 环境凭证。

## 身份验证类型
<a name="odbc-v2-driver-sagemaker-iam-authentication-type"></a>


****  

| **连接字符串名称** | **参数类型** | **默认值** | **连接字符串示例** | 
| --- | --- | --- | --- | 
| AuthenticationType | 必填 | none | AuthenticationType=SageMakerIam; | 

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

要使用的 SageMaker 域的标识符。


****  

| **连接字符串名称** | **参数类型** | **默认值** | **连接字符串示例** | 
| --- | --- | --- | --- | 
| SageMakerDomainId | 必填 | none | SageMakerDomainId=d-abcdef1234; | 

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

要使用的 SageMaker 项目的标识符。


****  

| **连接字符串名称** | **参数类型** | **默认值** | **连接字符串示例** | 
| --- | --- | --- | --- | 
| SageMakerProjectId | 必填 | none | SageMakerProjectId=p-abcdef1234; | 

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

预置您的 SageMaker 域的 AWS 区域。


****  

| **连接字符串名称** | **参数类型** | **默认值** | **连接字符串示例** | 
| --- | --- | --- | --- | 
| SageMakerDomainRegion | 必填 | none | SageMakerDomainRegion=us-east-1; | 

## 用户 ID
<a name="odbc-v2-driver-sagemaker-iam-user-id"></a>

您的 AWS 访问密钥 ID。如果未指定，则驱动程序会使用 AWS 默认凭证链。有关访问密钥的更多信息，请参阅《*IAM 用户指南*》中的 [AWS 安全凭证](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html)。


****  

| **连接字符串名称** | **参数类型** | **默认值** | **连接字符串示例** | 
| --- | --- | --- | --- | 
| UID | 可选 | none | UID=AKIAIOSFODNN7EXAMPLE; | 

## 密码
<a name="odbc-v2-driver-sagemaker-iam-password"></a>

您的 AWS 秘密访问密钥。在指定 `UID` 时是必需的。


****  

| **连接字符串名称** | **参数类型** | **默认值** | **连接字符串示例** | 
| --- | --- | --- | --- | 
| PWD | 可选 | none | PWD=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY; | 