All Products
Search
Document Center

Platform For AI:CredentialConfig

Last Updated:Oct 21, 2025

Parameter

Type

Description

Example

object

The credential configuration.

Enable

boolean

Specifies whether to enable credential injection.

true

AliyunEnvRoleKey

string

The key of the environment variable role.

0

Configs

array

The list of configurations.

object

Key

string

The key that identifies the configuration.

0

Type

string

The configuration type. Valid values: Role (role assumption) and RoleChain (chained role assumption).

Role

Roles

array

The list of configured roles.

object

RoleArn

string

The Alibaba Cloud Resource Name (ARN) of the RAM role.

acs:ram::123******:role/****

RoleType

string

The type of entity that assumes the role. Valid values: service (assumed by a service) and user (assumed by a regular user).

service

AssumeRoleFor

string

The entity that assumes the role.

123******

Policy

string

The access policy that further restricts the permissions of the role.

{}

UserInfo

object

The user information for the proxy.

Id

string

The user ID.

456******

Type

string

The user type. Valid values include the following:

  • customer: an Alibaba Cloud account

  • sub: a RAM user

  • AssumedRoleUser: a RAM role

S

AccessKeyId

string

The AccessKey ID.

LT********

SecurityToken

string

The security token.

********