Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
Deprecated: volcengine.iam.Roles has been deprecated in favor of volcengine.iam.getRoles
Use this data source to query detailed information of iam roles
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.iam.getRoles({
query: "CustomRoleForOOS",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.iam.get_roles(query="CustomRoleForOOS")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/iam"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iam.GetRoles(ctx, &iam.GetRolesArgs{
Query: pulumi.StringRef("CustomRoleForOOS"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Iam.GetRoles.Invoke(new()
{
Query = "CustomRoleForOOS",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.iam.IamFunctions;
import com.pulumi.volcengine.iam.inputs.GetRolesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var default = IamFunctions.getRoles(GetRolesArgs.builder()
.query("CustomRoleForOOS")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:iam:getRoles
Arguments:
query: CustomRoleForOOS
Using Roles
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 roles(args: RolesArgs, opts?: InvokeOptions): Promise<RolesResult>
function rolesOutput(args: RolesOutputArgs, opts?: InvokeOptions): Output<RolesResult>def roles(name_regex: Optional[str] = None,
output_file: Optional[str] = None,
query: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> RolesResult
def roles_output(name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
query: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[RolesResult]func Roles(ctx *Context, args *RolesArgs, opts ...InvokeOption) (*RolesResult, error)
func RolesOutput(ctx *Context, args *RolesOutputArgs, opts ...InvokeOption) RolesResultOutputpublic static class Roles
{
public static Task<RolesResult> InvokeAsync(RolesArgs args, InvokeOptions? opts = null)
public static Output<RolesResult> Invoke(RolesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<RolesResult> roles(RolesArgs args, InvokeOptions options)
public static Output<RolesResult> roles(RolesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:iam:Roles
arguments:
# arguments dictionaryThe following arguments are supported:
- Name
Regex string - A Name Regex of Role.
- Output
File string - File name where to save data source results.
- Query string
- Fuzzy query. Can query by role name, display name or description.
- Name
Regex string - A Name Regex of Role.
- Output
File string - File name where to save data source results.
- Query string
- Fuzzy query. Can query by role name, display name or description.
- name
Regex String - A Name Regex of Role.
- output
File String - File name where to save data source results.
- query String
- Fuzzy query. Can query by role name, display name or description.
- name
Regex string - A Name Regex of Role.
- output
File string - File name where to save data source results.
- query string
- Fuzzy query. Can query by role name, display name or description.
- name_
regex str - A Name Regex of Role.
- output_
file str - File name where to save data source results.
- query str
- Fuzzy query. Can query by role name, display name or description.
- name
Regex String - A Name Regex of Role.
- output
File String - File name where to save data source results.
- query String
- Fuzzy query. Can query by role name, display name or description.
Roles Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Roles
List<Roles
Role> - The collection of Role query.
- Total
Count int - The total count of Role query.
- Name
Regex string - Output
File string - Query string
- Id string
- The provider-assigned unique ID for this managed resource.
- Roles
[]Roles
Role - The collection of Role query.
- Total
Count int - The total count of Role query.
- Name
Regex string - Output
File string - Query string
- id String
- The provider-assigned unique ID for this managed resource.
- roles
List<Roles
Role> - The collection of Role query.
- total
Count Integer - The total count of Role query.
- name
Regex String - output
File String - query String
- id string
- The provider-assigned unique ID for this managed resource.
- roles
Roles
Role[] - The collection of Role query.
- total
Count number - The total count of Role query.
- name
Regex string - output
File string - query string
- id str
- The provider-assigned unique ID for this managed resource.
- roles
Sequence[Roles
Role] - The collection of Role query.
- total_
count int - The total count of Role query.
- name_
regex str - output_
file str - query str
- id String
- The provider-assigned unique ID for this managed resource.
- roles List<Property Map>
- The collection of Role query.
- total
Count Number - The total count of Role query.
- name
Regex String - output
File String - query String
Supporting Types
RolesRole
- Create
Date string - The create time of the Role.
- Description string
- The description of the Role.
- Display
Name string - The display name of the Role.
- Is
Service intLinked Role - Whether the Role is a service linked role.
- Max
Session intDuration - The max session duration of the Role.
- Role
Id int - The id of the Role.
- Role
Name string - The name of the Role.
-
List<Roles
Role Tag> - Tags.
- Trn string
- The resource name of the Role.
- Trust
Policy stringDocument - The trust policy document of the Role.
- Update
Date string - The update time of the Role.
- Create
Date string - The create time of the Role.
- Description string
- The description of the Role.
- Display
Name string - The display name of the Role.
- Is
Service intLinked Role - Whether the Role is a service linked role.
- Max
Session intDuration - The max session duration of the Role.
- Role
Id int - The id of the Role.
- Role
Name string - The name of the Role.
-
[]Roles
Role Tag - Tags.
- Trn string
- The resource name of the Role.
- Trust
Policy stringDocument - The trust policy document of the Role.
- Update
Date string - The update time of the Role.
- create
Date String - The create time of the Role.
- description String
- The description of the Role.
- display
Name String - The display name of the Role.
- is
Service IntegerLinked Role - Whether the Role is a service linked role.
- max
Session IntegerDuration - The max session duration of the Role.
- role
Id Integer - The id of the Role.
- role
Name String - The name of the Role.
-
List<Roles
Role Tag> - Tags.
- trn String
- The resource name of the Role.
- trust
Policy StringDocument - The trust policy document of the Role.
- update
Date String - The update time of the Role.
- create
Date string - The create time of the Role.
- description string
- The description of the Role.
- display
Name string - The display name of the Role.
- is
Service numberLinked Role - Whether the Role is a service linked role.
- max
Session numberDuration - The max session duration of the Role.
- role
Id number - The id of the Role.
- role
Name string - The name of the Role.
-
Roles
Role Tag[] - Tags.
- trn string
- The resource name of the Role.
- trust
Policy stringDocument - The trust policy document of the Role.
- update
Date string - The update time of the Role.
- create_
date str - The create time of the Role.
- description str
- The description of the Role.
- display_
name str - The display name of the Role.
- is_
service_ intlinked_ role - Whether the Role is a service linked role.
- max_
session_ intduration - The max session duration of the Role.
- role_
id int - The id of the Role.
- role_
name str - The name of the Role.
-
Sequence[Roles
Role Tag] - Tags.
- trn str
- The resource name of the Role.
- trust_
policy_ strdocument - The trust policy document of the Role.
- update_
date str - The update time of the Role.
- create
Date String - The create time of the Role.
- description String
- The description of the Role.
- display
Name String - The display name of the Role.
- is
Service NumberLinked Role - Whether the Role is a service linked role.
- max
Session NumberDuration - The max session duration of the Role.
- role
Id Number - The id of the Role.
- role
Name String - The name of the Role.
- List<Property Map>
- Tags.
- trn String
- The resource name of the Role.
- trust
Policy StringDocument - The trust policy document of the Role.
- update
Date String - The update time of the Role.
RolesRoleTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
