volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine
volcenginecc.iam.getRole
volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine
Data Source schema for Volcengine::IAM::Role
Using getRole
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRole(args: GetRoleArgs, opts?: InvokeOptions): Promise<GetRoleResult>
function getRoleOutput(args: GetRoleOutputArgs, opts?: InvokeOptions): Output<GetRoleResult>
def get_role(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRoleResult
def get_role_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRoleResult]
func LookupRole(ctx *Context, args *LookupRoleArgs, opts ...InvokeOption) (*LookupRoleResult, error)
func LookupRoleOutput(ctx *Context, args *LookupRoleOutputArgs, opts ...InvokeOption) LookupRoleResultOutput
> Note: This function is named LookupRole
in the Go SDK.
public static class GetRole
{
public static Task<GetRoleResult> InvokeAsync(GetRoleArgs args, InvokeOptions? opts = null)
public static Output<GetRoleResult> Invoke(GetRoleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRoleResult> getRole(GetRoleArgs args, InvokeOptions options)
public static Output<GetRoleResult> getRole(GetRoleArgs args, InvokeOptions options)
fn::invoke:
function: volcenginecc:iam/getRole:getRole
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Uniquely identifies the resource.
- Id string
- Uniquely identifies the resource.
- id String
- Uniquely identifies the resource.
- id string
- Uniquely identifies the resource.
- id str
- Uniquely identifies the resource.
- id String
- Uniquely identifies the resource.
getRole Result
The following output properties are available:
- Create
Date string - 角色创建时间。
- Description string
- 角色描述,长度不超过128。
- Display
Name string - 角色显示名,长度不超过64。
- Id string
- Uniquely identifies the resource.
- Is
Service intLinked Role - 是否是服务关联角色, 0否,1是。
- Max
Session intDuration - 角色最大会话时间,角色最大会话时间。用于限制角色扮演产生的临时安全凭证的有效期的最大范围。取值范围:3600~43200,单位为秒,默认为43200。
- Policies
List<Volcengine.
Get Role Policy> - Role
Id int - 角色ID。
- Role
Name string - 角色名,长度1~64,支持英文、数字和.-_符号。
- List<Volcengine.
Get Role Tag> - Trn string
- 角色TRN。
- Trust
Policy stringDocument - 角色信任策略,信任策略遵循IAM的策略语法中基于资源的策略规则。
- Update
Date string - 角色更新时间。
- Create
Date string - 角色创建时间。
- Description string
- 角色描述,长度不超过128。
- Display
Name string - 角色显示名,长度不超过64。
- Id string
- Uniquely identifies the resource.
- Is
Service intLinked Role - 是否是服务关联角色, 0否,1是。
- Max
Session intDuration - 角色最大会话时间,角色最大会话时间。用于限制角色扮演产生的临时安全凭证的有效期的最大范围。取值范围:3600~43200,单位为秒,默认为43200。
- Policies
[]Get
Role Policy - Role
Id int - 角色ID。
- Role
Name string - 角色名,长度1~64,支持英文、数字和.-_符号。
- []Get
Role Tag - Trn string
- 角色TRN。
- Trust
Policy stringDocument - 角色信任策略,信任策略遵循IAM的策略语法中基于资源的策略规则。
- Update
Date string - 角色更新时间。
- create
Date String - 角色创建时间。
- description String
- 角色描述,长度不超过128。
- display
Name String - 角色显示名,长度不超过64。
- id String
- Uniquely identifies the resource.
- is
Service IntegerLinked Role - 是否是服务关联角色, 0否,1是。
- max
Session IntegerDuration - 角色最大会话时间,角色最大会话时间。用于限制角色扮演产生的临时安全凭证的有效期的最大范围。取值范围:3600~43200,单位为秒,默认为43200。
- policies
List<Get
Role Policy> - role
Id Integer - 角色ID。
- role
Name String - 角色名,长度1~64,支持英文、数字和.-_符号。
- List<Get
Role Tag> - trn String
- 角色TRN。
- trust
Policy StringDocument - 角色信任策略,信任策略遵循IAM的策略语法中基于资源的策略规则。
- update
Date String - 角色更新时间。
- create
Date string - 角色创建时间。
- description string
- 角色描述,长度不超过128。
- display
Name string - 角色显示名,长度不超过64。
- id string
- Uniquely identifies the resource.
- is
Service numberLinked Role - 是否是服务关联角色, 0否,1是。
- max
Session numberDuration - 角色最大会话时间,角色最大会话时间。用于限制角色扮演产生的临时安全凭证的有效期的最大范围。取值范围:3600~43200,单位为秒,默认为43200。
- policies
Get
Role Policy[] - role
Id number - 角色ID。
- role
Name string - 角色名,长度1~64,支持英文、数字和.-_符号。
- Get
Role Tag[] - trn string
- 角色TRN。
- trust
Policy stringDocument - 角色信任策略,信任策略遵循IAM的策略语法中基于资源的策略规则。
- update
Date string - 角色更新时间。
- create_
date str - 角色创建时间。
- description str
- 角色描述,长度不超过128。
- display_
name str - 角色显示名,长度不超过64。
- id str
- Uniquely identifies the resource.
- is_
service_ intlinked_ role - 是否是服务关联角色, 0否,1是。
- max_
session_ intduration - 角色最大会话时间,角色最大会话时间。用于限制角色扮演产生的临时安全凭证的有效期的最大范围。取值范围:3600~43200,单位为秒,默认为43200。
- policies
Sequence[Get
Role Policy] - role_
id int - 角色ID。
- role_
name str - 角色名,长度1~64,支持英文、数字和.-_符号。
- Sequence[Get
Role Tag] - trn str
- 角色TRN。
- trust_
policy_ strdocument - 角色信任策略,信任策略遵循IAM的策略语法中基于资源的策略规则。
- update_
date str - 角色更新时间。
- create
Date String - 角色创建时间。
- description String
- 角色描述,长度不超过128。
- display
Name String - 角色显示名,长度不超过64。
- id String
- Uniquely identifies the resource.
- is
Service NumberLinked Role - 是否是服务关联角色, 0否,1是。
- max
Session NumberDuration - 角色最大会话时间,角色最大会话时间。用于限制角色扮演产生的临时安全凭证的有效期的最大范围。取值范围:3600~43200,单位为秒,默认为43200。
- policies List<Property Map>
- role
Id Number - 角色ID。
- role
Name String - 角色名,长度1~64,支持英文、数字和.-_符号。
- List<Property Map>
- trn String
- 角色TRN。
- trust
Policy StringDocument - 角色信任策略,信任策略遵循IAM的策略语法中基于资源的策略规则。
- update
Date String - 角色更新时间。
Supporting Types
GetRolePolicy
- Policy
Name string - 策略名。
- Policy
Type string - 策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
- Policy
Name string - 策略名。
- Policy
Type string - 策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy
Name String - 策略名。
- policy
Type String - 策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy
Name string - 策略名。
- policy
Type string - 策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy_
name str - 策略名。
- policy_
type str - 策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
- policy
Name String - 策略名。
- policy
Type String - 策略类型,策略类型。System代表系统预设策略,Custom代表自定义策略。
GetRoleTag
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcenginecc
Terraform Provider.
volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine