Viewing docs for bytepluscc v0.0.31
published on Monday, Jun 1, 2026 by Byteplus
published on Monday, Jun 1, 2026 by Byteplus
Viewing docs for bytepluscc v0.0.31
published on Monday, Jun 1, 2026 by Byteplus
published on Monday, Jun 1, 2026 by Byteplus
Data Source schema for Byteplus::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: pulumi.Input[Optional[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: bytepluscc:iam/getRole:getRole
arguments:
# arguments dictionarydata "bytepluscc_iam_getrole" "name" {
# arguments
}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 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 - Role creation time
- Description string
- Role description, maximum length 128
- Display
Name string - Role display name, maximum length 64
- Id string
- Uniquely identifies the resource.
- Is
Service intLinked Role - Service-linked role or not: 0 for No, 1 for Yes
- Max
Session intDuration - Maximum session duration for the role. Maximum session duration for the role. Limits the maximum validity period of temporary security credentials generated by role assumption. Value range: 3600–43200, unit: seconds, default is 43200
- Policies
List<Byteplus.
Get Role Policy> - Role Strategy
- Role
Id int - Role ID
- Role
Name string - Role name, length 1–64, supports English letters, numbers, and .-_ characters
- Service
Name string - Service associated with the service-linked role to be created.
-
List<Byteplus.
Get Role Tag> - Tag
- Trn string
- Role TRN
- Trust
Policy stringDocument - Role trust policy. The trust policy follows resource-based policy rules in IAM policy syntax.
- Update
Date string - Role update time
- Create
Date string - Role creation time
- Description string
- Role description, maximum length 128
- Display
Name string - Role display name, maximum length 64
- Id string
- Uniquely identifies the resource.
- Is
Service intLinked Role - Service-linked role or not: 0 for No, 1 for Yes
- Max
Session intDuration - Maximum session duration for the role. Maximum session duration for the role. Limits the maximum validity period of temporary security credentials generated by role assumption. Value range: 3600–43200, unit: seconds, default is 43200
- Policies
[]Get
Role Policy - Role Strategy
- Role
Id int - Role ID
- Role
Name string - Role name, length 1–64, supports English letters, numbers, and .-_ characters
- Service
Name string - Service associated with the service-linked role to be created.
-
[]Get
Role Tag - Tag
- Trn string
- Role TRN
- Trust
Policy stringDocument - Role trust policy. The trust policy follows resource-based policy rules in IAM policy syntax.
- Update
Date string - Role update time
- create_
date string - Role creation time
- description string
- Role description, maximum length 128
- display_
name string - Role display name, maximum length 64
- id string
- Uniquely identifies the resource.
- is_
service_ numberlinked_ role - Service-linked role or not: 0 for No, 1 for Yes
- max_
session_ numberduration - Maximum session duration for the role. Maximum session duration for the role. Limits the maximum validity period of temporary security credentials generated by role assumption. Value range: 3600–43200, unit: seconds, default is 43200
- policies list(object)
- Role Strategy
- role_
id number - Role ID
- role_
name string - Role name, length 1–64, supports English letters, numbers, and .-_ characters
- service_
name string - Service associated with the service-linked role to be created.
- list(object)
- Tag
- trn string
- Role TRN
- trust_
policy_ stringdocument - Role trust policy. The trust policy follows resource-based policy rules in IAM policy syntax.
- update_
date string - Role update time
- create
Date String - Role creation time
- description String
- Role description, maximum length 128
- display
Name String - Role display name, maximum length 64
- id String
- Uniquely identifies the resource.
- is
Service IntegerLinked Role - Service-linked role or not: 0 for No, 1 for Yes
- max
Session IntegerDuration - Maximum session duration for the role. Maximum session duration for the role. Limits the maximum validity period of temporary security credentials generated by role assumption. Value range: 3600–43200, unit: seconds, default is 43200
- policies
List<Get
Role Policy> - Role Strategy
- role
Id Integer - Role ID
- role
Name String - Role name, length 1–64, supports English letters, numbers, and .-_ characters
- service
Name String - Service associated with the service-linked role to be created.
-
List<Get
Role Tag> - Tag
- trn String
- Role TRN
- trust
Policy StringDocument - Role trust policy. The trust policy follows resource-based policy rules in IAM policy syntax.
- update
Date String - Role update time
- create
Date string - Role creation time
- description string
- Role description, maximum length 128
- display
Name string - Role display name, maximum length 64
- id string
- Uniquely identifies the resource.
- is
Service numberLinked Role - Service-linked role or not: 0 for No, 1 for Yes
- max
Session numberDuration - Maximum session duration for the role. Maximum session duration for the role. Limits the maximum validity period of temporary security credentials generated by role assumption. Value range: 3600–43200, unit: seconds, default is 43200
- policies
Get
Role Policy[] - Role Strategy
- role
Id number - Role ID
- role
Name string - Role name, length 1–64, supports English letters, numbers, and .-_ characters
- service
Name string - Service associated with the service-linked role to be created.
-
Get
Role Tag[] - Tag
- trn string
- Role TRN
- trust
Policy stringDocument - Role trust policy. The trust policy follows resource-based policy rules in IAM policy syntax.
- update
Date string - Role update time
- create_
date str - Role creation time
- description str
- Role description, maximum length 128
- display_
name str - Role display name, maximum length 64
- id str
- Uniquely identifies the resource.
- is_
service_ intlinked_ role - Service-linked role or not: 0 for No, 1 for Yes
- max_
session_ intduration - Maximum session duration for the role. Maximum session duration for the role. Limits the maximum validity period of temporary security credentials generated by role assumption. Value range: 3600–43200, unit: seconds, default is 43200
- policies
Sequence[Get
Role Policy] - Role Strategy
- role_
id int - Role ID
- role_
name str - Role name, length 1–64, supports English letters, numbers, and .-_ characters
- service_
name str - Service associated with the service-linked role to be created.
-
Sequence[Get
Role Tag] - Tag
- trn str
- Role TRN
- trust_
policy_ strdocument - Role trust policy. The trust policy follows resource-based policy rules in IAM policy syntax.
- update_
date str - Role update time
- create
Date String - Role creation time
- description String
- Role description, maximum length 128
- display
Name String - Role display name, maximum length 64
- id String
- Uniquely identifies the resource.
- is
Service NumberLinked Role - Service-linked role or not: 0 for No, 1 for Yes
- max
Session NumberDuration - Maximum session duration for the role. Maximum session duration for the role. Limits the maximum validity period of temporary security credentials generated by role assumption. Value range: 3600–43200, unit: seconds, default is 43200
- policies List<Property Map>
- Role Strategy
- role
Id Number - Role ID
- role
Name String - Role name, length 1–64, supports English letters, numbers, and .-_ characters
- service
Name String - Service associated with the service-linked role to be created.
- List<Property Map>
- Tag
- trn String
- Role TRN
- trust
Policy StringDocument - Role trust policy. The trust policy follows resource-based policy rules in IAM policy syntax.
- update
Date String - Role update time
Supporting Types
GetRolePolicy
- Attach
Date string - Policy binding time.
- Description string
- Policy description.
- Policy
Name string - Policy name
- Policy
Scopes List<Byteplus.Get Role Policy Policy Scope> - Policy authorization scope, specifically refers to the project scope.
- Policy
Trn string - Policy TRN.
- Policy
Type string - Policy type. Policy type. System indicates a system preset policy; Custom indicates a custom policy.
- Attach
Date string - Policy binding time.
- Description string
- Policy description.
- Policy
Name string - Policy name
- Policy
Scopes []GetRole Policy Policy Scope - Policy authorization scope, specifically refers to the project scope.
- Policy
Trn string - Policy TRN.
- Policy
Type string - Policy type. Policy type. System indicates a system preset policy; Custom indicates a custom policy.
- attach_
date string - Policy binding time.
- description string
- Policy description.
- policy_
name string - Policy name
- policy_
scopes list(object) - Policy authorization scope, specifically refers to the project scope.
- policy_
trn string - Policy TRN.
- policy_
type string - Policy type. Policy type. System indicates a system preset policy; Custom indicates a custom policy.
- attach
Date String - Policy binding time.
- description String
- Policy description.
- policy
Name String - Policy name
- policy
Scopes List<GetRole Policy Policy Scope> - Policy authorization scope, specifically refers to the project scope.
- policy
Trn String - Policy TRN.
- policy
Type String - Policy type. Policy type. System indicates a system preset policy; Custom indicates a custom policy.
- attach
Date string - Policy binding time.
- description string
- Policy description.
- policy
Name string - Policy name
- policy
Scopes GetRole Policy Policy Scope[] - Policy authorization scope, specifically refers to the project scope.
- policy
Trn string - Policy TRN.
- policy
Type string - Policy type. Policy type. System indicates a system preset policy; Custom indicates a custom policy.
- attach_
date str - Policy binding time.
- description str
- Policy description.
- policy_
name str - Policy name
- policy_
scopes Sequence[GetRole Policy Policy Scope] - Policy authorization scope, specifically refers to the project scope.
- policy_
trn str - Policy TRN.
- policy_
type str - Policy type. Policy type. System indicates a system preset policy; Custom indicates a custom policy.
- attach
Date String - Policy binding time.
- description String
- Policy description.
- policy
Name String - Policy name
- policy
Scopes List<Property Map> - Policy authorization scope, specifically refers to the project scope.
- policy
Trn String - Policy TRN.
- policy
Type String - Policy type. Policy type. System indicates a system preset policy; Custom indicates a custom policy.
GetRolePolicyPolicyScope
- Attach
Date string - Project authorization time.
- Policy
Scope stringType - Authorization type. Global means global authorization (not limited to any project), Project means project-based authorization.
- Project
Display stringName - Project display name for project-based authorization.
- Project
Name string - Project name for project-based authorization.
- Attach
Date string - Project authorization time.
- Policy
Scope stringType - Authorization type. Global means global authorization (not limited to any project), Project means project-based authorization.
- Project
Display stringName - Project display name for project-based authorization.
- Project
Name string - Project name for project-based authorization.
- attach_
date string - Project authorization time.
- policy_
scope_ stringtype - Authorization type. Global means global authorization (not limited to any project), Project means project-based authorization.
- project_
display_ stringname - Project display name for project-based authorization.
- project_
name string - Project name for project-based authorization.
- attach
Date String - Project authorization time.
- policy
Scope StringType - Authorization type. Global means global authorization (not limited to any project), Project means project-based authorization.
- project
Display StringName - Project display name for project-based authorization.
- project
Name String - Project name for project-based authorization.
- attach
Date string - Project authorization time.
- policy
Scope stringType - Authorization type. Global means global authorization (not limited to any project), Project means project-based authorization.
- project
Display stringName - Project display name for project-based authorization.
- project
Name string - Project name for project-based authorization.
- attach_
date str - Project authorization time.
- policy_
scope_ strtype - Authorization type. Global means global authorization (not limited to any project), Project means project-based authorization.
- project_
display_ strname - Project display name for project-based authorization.
- project_
name str - Project name for project-based authorization.
- attach
Date String - Project authorization time.
- policy
Scope StringType - Authorization type. Global means global authorization (not limited to any project), Project means project-based authorization.
- project
Display StringName - Project display name for project-based authorization.
- project
Name String - Project name for project-based authorization.
GetRoleTag
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
Viewing docs for bytepluscc v0.0.31
published on Monday, Jun 1, 2026 by Byteplus
published on Monday, Jun 1, 2026 by Byteplus