Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Deprecated: volcengine.iam.Tags has been deprecated in favor of volcengine.iam.getTags
Use this data source to query detailed information of iam tags
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.iam.getTags({
resourceType: "Role",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.iam.get_tags(resource_type="Role")
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.GetTags(ctx, &iam.GetTagsArgs{
ResourceType: "Role",
}, 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.GetTags.Invoke(new()
{
ResourceType = "Role",
});
});
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.GetTagsArgs;
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.getTags(GetTagsArgs.builder()
.resourceType("Role")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:iam:getTags
Arguments:
resourceType: Role
Using Tags
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 tags(args: TagsArgs, opts?: InvokeOptions): Promise<TagsResult>
function tagsOutput(args: TagsOutputArgs, opts?: InvokeOptions): Output<TagsResult>def tags(output_file: Optional[str] = None,
resource_names: Optional[Sequence[str]] = None,
resource_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> TagsResult
def tags_output(output_file: Optional[pulumi.Input[str]] = None,
resource_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
resource_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[TagsResult]func Tags(ctx *Context, args *TagsArgs, opts ...InvokeOption) (*TagsResult, error)
func TagsOutput(ctx *Context, args *TagsOutputArgs, opts ...InvokeOption) TagsResultOutputpublic static class Tags
{
public static Task<TagsResult> InvokeAsync(TagsArgs args, InvokeOptions? opts = null)
public static Output<TagsResult> Invoke(TagsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<TagsResult> tags(TagsArgs args, InvokeOptions options)
public static Output<TagsResult> tags(TagsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:iam:Tags
arguments:
# arguments dictionaryThe following arguments are supported:
- Resource
Type string - The type of the resource. Valid values: User, Role.
- Output
File string - File name where to save data source results.
- Resource
Names List<string> - The names of the resource.
- Resource
Type string - The type of the resource. Valid values: User, Role.
- Output
File string - File name where to save data source results.
- Resource
Names []string - The names of the resource.
- resource
Type String - The type of the resource. Valid values: User, Role.
- output
File String - File name where to save data source results.
- resource
Names List<String> - The names of the resource.
- resource
Type string - The type of the resource. Valid values: User, Role.
- output
File string - File name where to save data source results.
- resource
Names string[] - The names of the resource.
- resource_
type str - The type of the resource. Valid values: User, Role.
- output_
file str - File name where to save data source results.
- resource_
names Sequence[str] - The names of the resource.
- resource
Type String - The type of the resource. Valid values: User, Role.
- output
File String - File name where to save data source results.
- resource
Names List<String> - The names of the resource.
Tags Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Next
Token string - The next token of query.
-
List<Tags
Resource Tag> - The collection of query.
- Resource
Type string - The type of the resource.
- Total
Count int - The total count of query.
- Output
File string - Resource
Names List<string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Next
Token string - The next token of query.
-
[]Tags
Resource Tag - The collection of query.
- Resource
Type string - The type of the resource.
- Total
Count int - The total count of query.
- Output
File string - Resource
Names []string
- id String
- The provider-assigned unique ID for this managed resource.
- next
Token String - The next token of query.
-
List<Tags
Resource Tag> - The collection of query.
- resource
Type String - The type of the resource.
- total
Count Integer - The total count of query.
- output
File String - resource
Names List<String>
- id string
- The provider-assigned unique ID for this managed resource.
- next
Token string - The next token of query.
-
Tags
Resource Tag[] - The collection of query.
- resource
Type string - The type of the resource.
- total
Count number - The total count of query.
- output
File string - resource
Names string[]
- id str
- The provider-assigned unique ID for this managed resource.
- next_
token str - The next token of query.
-
Sequence[Tags
Resource Tag] - The collection of query.
- resource_
type str - The type of the resource.
- total_
count int - The total count of query.
- output_
file str - resource_
names Sequence[str]
- id String
- The provider-assigned unique ID for this managed resource.
- next
Token String - The next token of query.
- List<Property Map>
- The collection of query.
- resource
Type String - The type of the resource.
- total
Count Number - The total count of query.
- output
File String - resource
Names List<String>
Supporting Types
TagsResourceTag
- Resource
Name string - The name of the resource.
- Resource
Type string - The type of the resource. Valid values: User, Role.
- Tag
Key string - The key of the tag.
- Tag
Value string - The value of the tag.
- Resource
Name string - The name of the resource.
- Resource
Type string - The type of the resource. Valid values: User, Role.
- Tag
Key string - The key of the tag.
- Tag
Value string - The value of the tag.
- resource
Name String - The name of the resource.
- resource
Type String - The type of the resource. Valid values: User, Role.
- tag
Key String - The key of the tag.
- tag
Value String - The value of the tag.
- resource
Name string - The name of the resource.
- resource
Type string - The type of the resource. Valid values: User, Role.
- tag
Key string - The key of the tag.
- tag
Value string - The value of the tag.
- resource_
name str - The name of the resource.
- resource_
type str - The type of the resource. Valid values: User, Role.
- tag_
key str - The key of the tag.
- tag_
value str - The value of the tag.
- resource
Name String - The name of the resource.
- resource
Type String - The type of the resource. Valid values: User, Role.
- tag
Key String - The key of the tag.
- tag
Value String - The value of the tag.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
