1. Packages
  2. Volcengine
  3. API Docs
  4. iam
  5. UserGroupPolicyAttachments
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
volcengine logo
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
    Deprecated: volcengine.iam.UserGroupPolicyAttachments has been deprecated in favor of volcengine.iam.getUserGroupPolicyAttachments

    Use this data source to query detailed information of iam user group policy attachments

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.iam.getUserGroupPolicyAttachments({
        userGroupName: "xRqElT",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.iam.get_user_group_policy_attachments(user_group_name="xRqElT")
    
    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.GetUserGroupPolicyAttachments(ctx, &iam.GetUserGroupPolicyAttachmentsArgs{
    			UserGroupName: "xRqElT",
    		}, 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.GetUserGroupPolicyAttachments.Invoke(new()
        {
            UserGroupName = "xRqElT",
        });
    
    });
    
    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.GetUserGroupPolicyAttachmentsArgs;
    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.getUserGroupPolicyAttachments(GetUserGroupPolicyAttachmentsArgs.builder()
                .userGroupName("xRqElT")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:iam:getUserGroupPolicyAttachments
          Arguments:
            userGroupName: xRqElT
    

    Using UserGroupPolicyAttachments

    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 userGroupPolicyAttachments(args: UserGroupPolicyAttachmentsArgs, opts?: InvokeOptions): Promise<UserGroupPolicyAttachmentsResult>
    function userGroupPolicyAttachmentsOutput(args: UserGroupPolicyAttachmentsOutputArgs, opts?: InvokeOptions): Output<UserGroupPolicyAttachmentsResult>
    def user_group_policy_attachments(output_file: Optional[str] = None,
                                      user_group_name: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> UserGroupPolicyAttachmentsResult
    def user_group_policy_attachments_output(output_file: Optional[pulumi.Input[str]] = None,
                                      user_group_name: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[UserGroupPolicyAttachmentsResult]
    func UserGroupPolicyAttachments(ctx *Context, args *UserGroupPolicyAttachmentsArgs, opts ...InvokeOption) (*UserGroupPolicyAttachmentsResult, error)
    func UserGroupPolicyAttachmentsOutput(ctx *Context, args *UserGroupPolicyAttachmentsOutputArgs, opts ...InvokeOption) UserGroupPolicyAttachmentsResultOutput
    public static class UserGroupPolicyAttachments 
    {
        public static Task<UserGroupPolicyAttachmentsResult> InvokeAsync(UserGroupPolicyAttachmentsArgs args, InvokeOptions? opts = null)
        public static Output<UserGroupPolicyAttachmentsResult> Invoke(UserGroupPolicyAttachmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<UserGroupPolicyAttachmentsResult> userGroupPolicyAttachments(UserGroupPolicyAttachmentsArgs args, InvokeOptions options)
    public static Output<UserGroupPolicyAttachmentsResult> userGroupPolicyAttachments(UserGroupPolicyAttachmentsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:iam:UserGroupPolicyAttachments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    UserGroupName string
    A name of user group.
    OutputFile string
    File name where to save data source results.
    UserGroupName string
    A name of user group.
    OutputFile string
    File name where to save data source results.
    userGroupName String
    A name of user group.
    outputFile String
    File name where to save data source results.
    userGroupName string
    A name of user group.
    outputFile string
    File name where to save data source results.
    user_group_name str
    A name of user group.
    output_file str
    File name where to save data source results.
    userGroupName String
    A name of user group.
    outputFile String
    File name where to save data source results.

    UserGroupPolicyAttachments Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Policies List<UserGroupPolicyAttachmentsPolicy>
    The collection of query.
    TotalCount int
    The total count of query.
    UserGroupName string
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    Policies []UserGroupPolicyAttachmentsPolicy
    The collection of query.
    TotalCount int
    The total count of query.
    UserGroupName string
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    policies List<UserGroupPolicyAttachmentsPolicy>
    The collection of query.
    totalCount Integer
    The total count of query.
    userGroupName String
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    policies UserGroupPolicyAttachmentsPolicy[]
    The collection of query.
    totalCount number
    The total count of query.
    userGroupName string
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    policies Sequence[UserGroupPolicyAttachmentsPolicy]
    The collection of query.
    total_count int
    The total count of query.
    user_group_name str
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    policies List<Property Map>
    The collection of query.
    totalCount Number
    The total count of query.
    userGroupName String
    outputFile String

    Supporting Types

    UserGroupPolicyAttachmentsPolicy

    AttachDate string
    The attach date of the policy scope.
    Description string
    The description.
    PolicyName string
    Name of the policy.
    PolicyScopes List<UserGroupPolicyAttachmentsPolicyPolicyScope>
    The scope of the policy.
    PolicyTrn string
    Resource name of the strategy.
    PolicyType string
    The type of the policy.
    AttachDate string
    The attach date of the policy scope.
    Description string
    The description.
    PolicyName string
    Name of the policy.
    PolicyScopes []UserGroupPolicyAttachmentsPolicyPolicyScope
    The scope of the policy.
    PolicyTrn string
    Resource name of the strategy.
    PolicyType string
    The type of the policy.
    attachDate String
    The attach date of the policy scope.
    description String
    The description.
    policyName String
    Name of the policy.
    policyScopes List<UserGroupPolicyAttachmentsPolicyPolicyScope>
    The scope of the policy.
    policyTrn String
    Resource name of the strategy.
    policyType String
    The type of the policy.
    attachDate string
    The attach date of the policy scope.
    description string
    The description.
    policyName string
    Name of the policy.
    policyScopes UserGroupPolicyAttachmentsPolicyPolicyScope[]
    The scope of the policy.
    policyTrn string
    Resource name of the strategy.
    policyType string
    The type of the policy.
    attach_date str
    The attach date of the policy scope.
    description str
    The description.
    policy_name str
    Name of the policy.
    policy_scopes Sequence[UserGroupPolicyAttachmentsPolicyPolicyScope]
    The scope of the policy.
    policy_trn str
    Resource name of the strategy.
    policy_type str
    The type of the policy.
    attachDate String
    The attach date of the policy scope.
    description String
    The description.
    policyName String
    Name of the policy.
    policyScopes List<Property Map>
    The scope of the policy.
    policyTrn String
    Resource name of the strategy.
    policyType String
    The type of the policy.

    UserGroupPolicyAttachmentsPolicyPolicyScope

    AttachDate string
    The attach date of the policy scope.
    PolicyScopeType string
    The type of the policy scope.
    ProjectDisplayName string
    The display name of the project.
    ProjectName string
    The name of the project.
    AttachDate string
    The attach date of the policy scope.
    PolicyScopeType string
    The type of the policy scope.
    ProjectDisplayName string
    The display name of the project.
    ProjectName string
    The name of the project.
    attachDate String
    The attach date of the policy scope.
    policyScopeType String
    The type of the policy scope.
    projectDisplayName String
    The display name of the project.
    projectName String
    The name of the project.
    attachDate string
    The attach date of the policy scope.
    policyScopeType string
    The type of the policy scope.
    projectDisplayName string
    The display name of the project.
    projectName string
    The name of the project.
    attach_date str
    The attach date of the policy scope.
    policy_scope_type str
    The type of the policy scope.
    project_display_name str
    The display name of the project.
    project_name str
    The name of the project.
    attachDate String
    The attach date of the policy scope.
    policyScopeType String
    The type of the policy scope.
    projectDisplayName String
    The display name of the project.
    projectName 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 volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate