General data source properties

Updated at:

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 authType is set to SubAccount (RAM user ID) or RamRole within the current Alibaba Cloud account (RAM role ID). In other scenarios, do not configure this parameter.

crossAccountOwnerId

String

115069803496\*\*\*\*

The ID of the other Alibaba Cloud account. Required for cross-account access. Set authType to RamRole when using this parameter.

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 authType to RamRole when using this parameter.

accessId

String

\*\*\*\*

The AccessKey ID. Required when authType is set to Ak.

accessKey

String

\*\*\*\*

The AccessKey secret. Required when authType is set to Ak.

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 authIdentity to the RAM user ID.

RamRole

The specified RAM role. Required for cross-account access. If using the current account's RAM role, set authIdentity to the RAM role ID.

HadoopUser

The mapped Hadoop user in an E-MapReduce (EMR) or Hadoop cluster.

Ak

The AccessKey pair. Set accessId and accessKey accordingly.

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).