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.RolePolicyAttachments has been deprecated in favor of volcengine.iam.getRolePolicyAttachments
Use this data source to query detailed information of iam role policy attachments
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.iam.getRolePolicyAttachments({
roleName: "CustomRoleForPatchManager",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.iam.get_role_policy_attachments(role_name="CustomRoleForPatchManager")
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.GetRolePolicyAttachments(ctx, &iam.GetRolePolicyAttachmentsArgs{
RoleName: "CustomRoleForPatchManager",
}, 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.GetRolePolicyAttachments.Invoke(new()
{
RoleName = "CustomRoleForPatchManager",
});
});
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.GetRolePolicyAttachmentsArgs;
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.getRolePolicyAttachments(GetRolePolicyAttachmentsArgs.builder()
.roleName("CustomRoleForPatchManager")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:iam:getRolePolicyAttachments
Arguments:
roleName: CustomRoleForPatchManager
Using RolePolicyAttachments
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 rolePolicyAttachments(args: RolePolicyAttachmentsArgs, opts?: InvokeOptions): Promise<RolePolicyAttachmentsResult>
function rolePolicyAttachmentsOutput(args: RolePolicyAttachmentsOutputArgs, opts?: InvokeOptions): Output<RolePolicyAttachmentsResult>def role_policy_attachments(role_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> RolePolicyAttachmentsResult
def role_policy_attachments_output(role_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[RolePolicyAttachmentsResult]func RolePolicyAttachments(ctx *Context, args *RolePolicyAttachmentsArgs, opts ...InvokeOption) (*RolePolicyAttachmentsResult, error)
func RolePolicyAttachmentsOutput(ctx *Context, args *RolePolicyAttachmentsOutputArgs, opts ...InvokeOption) RolePolicyAttachmentsResultOutputpublic static class RolePolicyAttachments
{
public static Task<RolePolicyAttachmentsResult> InvokeAsync(RolePolicyAttachmentsArgs args, InvokeOptions? opts = null)
public static Output<RolePolicyAttachmentsResult> Invoke(RolePolicyAttachmentsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<RolePolicyAttachmentsResult> rolePolicyAttachments(RolePolicyAttachmentsArgs args, InvokeOptions options)
public static Output<RolePolicyAttachmentsResult> rolePolicyAttachments(RolePolicyAttachmentsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:iam:RolePolicyAttachments
arguments:
# arguments dictionaryThe following arguments are supported:
- Role
Name string - The name of the role.
- Role
Name string - The name of the role.
- role
Name String - The name of the role.
- role
Name string - The name of the role.
- role_
name str - The name of the role.
- role
Name String - The name of the role.
RolePolicyAttachments Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Policies
List<Role
Policy Attachments Policy> - The collection of policies.
- Role
Name string
- Id string
- The provider-assigned unique ID for this managed resource.
- Policies
[]Role
Policy Attachments Policy - The collection of policies.
- Role
Name string
- id String
- The provider-assigned unique ID for this managed resource.
- policies
List<Role
Policy Attachments Policy> - The collection of policies.
- role
Name String
- id string
- The provider-assigned unique ID for this managed resource.
- policies
Role
Policy Attachments Policy[] - The collection of policies.
- role
Name string
- id str
- The provider-assigned unique ID for this managed resource.
- policies
Sequence[Role
Policy Attachments Policy] - The collection of policies.
- role_
name str
- id String
- The provider-assigned unique ID for this managed resource.
- policies List<Property Map>
- The collection of policies.
- role
Name String
Supporting Types
RolePolicyAttachmentsPolicy
- Attach
Date string - The attach date of the policy scope.
- Description string
- The description of the policy.
- Policy
Name string - The name of the policy.
- Policy
Scopes List<RolePolicy Attachments Policy Policy Scope> - The scope of the policy.
- Policy
Trn string - The trn of the policy.
- Policy
Type string - The type of the policy.
- Attach
Date string - The attach date of the policy scope.
- Description string
- The description of the policy.
- Policy
Name string - The name of the policy.
- Policy
Scopes []RolePolicy Attachments Policy Policy Scope - The scope of the policy.
- Policy
Trn string - The trn of the policy.
- Policy
Type string - The type of the policy.
- attach
Date String - The attach date of the policy scope.
- description String
- The description of the policy.
- policy
Name String - The name of the policy.
- policy
Scopes List<RolePolicy Attachments Policy Policy Scope> - The scope of the policy.
- policy
Trn String - The trn of the policy.
- policy
Type String - The type of the policy.
- attach
Date string - The attach date of the policy scope.
- description string
- The description of the policy.
- policy
Name string - The name of the policy.
- policy
Scopes RolePolicy Attachments Policy Policy Scope[] - The scope of the policy.
- policy
Trn string - The trn of the policy.
- policy
Type string - The type of the policy.
- attach_
date str - The attach date of the policy scope.
- description str
- The description of the policy.
- policy_
name str - The name of the policy.
- policy_
scopes Sequence[RolePolicy Attachments Policy Policy Scope] - The scope of the policy.
- policy_
trn str - The trn of the policy.
- policy_
type str - The type of the policy.
- attach
Date String - The attach date of the policy scope.
- description String
- The description of the policy.
- policy
Name String - The name of the policy.
- policy
Scopes List<Property Map> - The scope of the policy.
- policy
Trn String - The trn of the policy.
- policy
Type String - The type of the policy.
RolePolicyAttachmentsPolicyPolicyScope
- Attach
Date string - The attach date of the policy scope.
- Policy
Scope stringType - The type of the policy scope.
- Project
Display stringName - The display name of the project.
- Project
Name string - The name of the project.
- Attach
Date string - The attach date of the policy scope.
- Policy
Scope stringType - The type of the policy scope.
- Project
Display stringName - The display name of the project.
- Project
Name string - The name of the project.
- attach
Date String - The attach date of the policy scope.
- policy
Scope StringType - The type of the policy scope.
- project
Display StringName - The display name of the project.
- project
Name String - The name of the project.
- attach
Date string - The attach date of the policy scope.
- policy
Scope stringType - The type of the policy scope.
- project
Display stringName - The display name of the project.
- project
Name string - The name of the project.
- attach_
date str - The attach date of the policy scope.
- policy_
scope_ strtype - The type of the policy scope.
- project_
display_ strname - The display name of the project.
- project_
name str - The name of the project.
- attach
Date String - The attach date of the policy scope.
- policy
Scope StringType - The type of the policy scope.
- project
Display StringName - The display name of the project.
- project
Name String - The name of the project.
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
