General data source properties
This topic describes the general properties of data sources.
Region
Parameter | Type | Example | Description |
regionId | String | cn-shanghai | The ID of the region where the instance used by the data source resides. Examples: cn-shanghai (China (Shanghai)), cn-beijing (China (Beijing)). |
Access identity
Parameter | Type | Example | Description |
authType | String | Executor | The identity used to access the data source. Valid values (not case-sensitive): Executor, TaskOwner, PrimaryAccount, SubAccount, RamRole, HadoopUser, Ak. For cross-account access, set this parameter to RamRole. |
authIdentity | String | 115069803496\*\*\*\* | The ID of the RAM user or RAM role. Required when |
crossAccountOwnerId | String | 115069803496\*\*\*\* | The ID of the other Alibaba Cloud account. Required for cross-account access. Set |
crossAccountRoleName | String | mc-accross-role-name | The name of the RAM role assumed by the other Alibaba Cloud account. Required for cross-account access. Set |
accessId | String | \*\*\*\* | The AccessKey ID. Required when |
accessKey | String | \*\*\*\* | The AccessKey secret. Required when |
The following table describes the valid values of authType.
Value | Description |
Executor | The executor. |
TaskOwner | The task owner. |
PrimaryAccount | The Alibaba Cloud account. |
SubAccount | The specified RAM user. Set |
RamRole | The specified RAM role. Required for cross-account access. If using the current account's RAM role, set |
HadoopUser | The mapped Hadoop user in an E-MapReduce (EMR) or Hadoop cluster. |
Ak | The AccessKey pair. Set |
Username and password
Required when accessing relational databases.
Parameter | Type | Example | Description |
username | String | \*\*\*\* | The username. |
password | String | \*\*\*\* | The password. |
Environment
Parameter | Type | Example | Description |
envType | String | Dev | The environment of the data source. Valid values: Dev (development environment), Prod (production environment). |