1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. cloudidentity
  6. PermissionSetAssignment
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine

    After you create a Cloud Identity Center user, you need to grant the user login access to each account. When users require access to Volcano Engine cloud resources with permissions that share abstractable characteristics, such as network operations permissions or security management permissions, you can predefine permission sets in the Cloud Identity Center as templates. You can achieve centralized authorization based on these permission sets. The Cloud Identity Center will synchronize and distribute permission sets to each account, reducing enterprise permission management costs.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
    
    const cloudIdentityPermissionSetAssignmentDemo = new volcenginecc.cloudidentity.PermissionSetAssignment("CloudIdentityPermissionSetAssignmentDemo", {
        permissionSetId: "897569*****",
        principalId: "899471*****",
        principalType: "User",
        targetId: "21036*****",
    });
    
    import pulumi
    import pulumi_volcenginecc as volcenginecc
    
    cloud_identity_permission_set_assignment_demo = volcenginecc.cloudidentity.PermissionSetAssignment("CloudIdentityPermissionSetAssignmentDemo",
        permission_set_id="897569*****",
        principal_id="899471*****",
        principal_type="User",
        target_id="21036*****")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/cloudidentity"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudidentity.NewPermissionSetAssignment(ctx, "CloudIdentityPermissionSetAssignmentDemo", &cloudidentity.PermissionSetAssignmentArgs{
    			PermissionSetId: pulumi.String("897569*****"),
    			PrincipalId:     pulumi.String("899471*****"),
    			PrincipalType:   pulumi.String("User"),
    			TargetId:        pulumi.String("21036*****"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
    
    return await Deployment.RunAsync(() => 
    {
        var cloudIdentityPermissionSetAssignmentDemo = new Volcenginecc.Cloudidentity.PermissionSetAssignment("CloudIdentityPermissionSetAssignmentDemo", new()
        {
            PermissionSetId = "897569*****",
            PrincipalId = "899471*****",
            PrincipalType = "User",
            TargetId = "21036*****",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.volcengine.volcenginecc.cloudidentity.PermissionSetAssignment;
    import com.volcengine.volcenginecc.cloudidentity.PermissionSetAssignmentArgs;
    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) {
            var cloudIdentityPermissionSetAssignmentDemo = new PermissionSetAssignment("cloudIdentityPermissionSetAssignmentDemo", PermissionSetAssignmentArgs.builder()
                .permissionSetId("897569*****")
                .principalId("899471*****")
                .principalType("User")
                .targetId("21036*****")
                .build());
    
        }
    }
    
    resources:
      cloudIdentityPermissionSetAssignmentDemo:
        type: volcenginecc:cloudidentity:PermissionSetAssignment
        name: CloudIdentityPermissionSetAssignmentDemo
        properties:
          permissionSetId: 897569*****
          principalId: 899471*****
          principalType: User
          targetId: 21036*****
    

    Create PermissionSetAssignment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PermissionSetAssignment(name: string, args: PermissionSetAssignmentArgs, opts?: CustomResourceOptions);
    @overload
    def PermissionSetAssignment(resource_name: str,
                                args: PermissionSetAssignmentArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def PermissionSetAssignment(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                permission_set_id: Optional[str] = None,
                                principal_id: Optional[str] = None,
                                principal_type: Optional[str] = None,
                                target_id: Optional[str] = None)
    func NewPermissionSetAssignment(ctx *Context, name string, args PermissionSetAssignmentArgs, opts ...ResourceOption) (*PermissionSetAssignment, error)
    public PermissionSetAssignment(string name, PermissionSetAssignmentArgs args, CustomResourceOptions? opts = null)
    public PermissionSetAssignment(String name, PermissionSetAssignmentArgs args)
    public PermissionSetAssignment(String name, PermissionSetAssignmentArgs args, CustomResourceOptions options)
    
    type: volcenginecc:cloudidentity:PermissionSetAssignment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PermissionSetAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PermissionSetAssignmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PermissionSetAssignmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PermissionSetAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PermissionSetAssignmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var permissionSetAssignmentResource = new Volcenginecc.Cloudidentity.PermissionSetAssignment("permissionSetAssignmentResource", new()
    {
        PermissionSetId = "string",
        PrincipalId = "string",
        PrincipalType = "string",
        TargetId = "string",
    });
    
    example, err := cloudidentity.NewPermissionSetAssignment(ctx, "permissionSetAssignmentResource", &cloudidentity.PermissionSetAssignmentArgs{
    	PermissionSetId: pulumi.String("string"),
    	PrincipalId:     pulumi.String("string"),
    	PrincipalType:   pulumi.String("string"),
    	TargetId:        pulumi.String("string"),
    })
    
    var permissionSetAssignmentResource = new PermissionSetAssignment("permissionSetAssignmentResource", PermissionSetAssignmentArgs.builder()
        .permissionSetId("string")
        .principalId("string")
        .principalType("string")
        .targetId("string")
        .build());
    
    permission_set_assignment_resource = volcenginecc.cloudidentity.PermissionSetAssignment("permissionSetAssignmentResource",
        permission_set_id="string",
        principal_id="string",
        principal_type="string",
        target_id="string")
    
    const permissionSetAssignmentResource = new volcenginecc.cloudidentity.PermissionSetAssignment("permissionSetAssignmentResource", {
        permissionSetId: "string",
        principalId: "string",
        principalType: "string",
        targetId: "string",
    });
    
    type: volcenginecc:cloudidentity:PermissionSetAssignment
    properties:
        permissionSetId: string
        principalId: string
        principalType: string
        targetId: string
    

    PermissionSetAssignment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The PermissionSetAssignment resource accepts the following input properties:

    PermissionSetId string
    Permission set ID
    PrincipalId string
    Cloud Identity Center object ID
    PrincipalType string
    Cloud Identity Center object type: User or Group
    TargetId string
    Authorized account ID
    PermissionSetId string
    Permission set ID
    PrincipalId string
    Cloud Identity Center object ID
    PrincipalType string
    Cloud Identity Center object type: User or Group
    TargetId string
    Authorized account ID
    permissionSetId String
    Permission set ID
    principalId String
    Cloud Identity Center object ID
    principalType String
    Cloud Identity Center object type: User or Group
    targetId String
    Authorized account ID
    permissionSetId string
    Permission set ID
    principalId string
    Cloud Identity Center object ID
    principalType string
    Cloud Identity Center object type: User or Group
    targetId string
    Authorized account ID
    permission_set_id str
    Permission set ID
    principal_id str
    Cloud Identity Center object ID
    principal_type str
    Cloud Identity Center object type: User or Group
    target_id str
    Authorized account ID
    permissionSetId String
    Permission set ID
    principalId String
    Cloud Identity Center object ID
    principalType String
    Cloud Identity Center object type: User or Group
    targetId String
    Authorized account ID

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PermissionSetAssignment resource produces the following output properties:

    CreatedTime string
    Authorization creation time
    Id string
    The provider-assigned unique ID for this managed resource.
    PermissionSetName string
    Permission set name
    PrincipalName string
    Cloud Identity Center object name
    TargetName string
    Authorized account name
    CreatedTime string
    Authorization creation time
    Id string
    The provider-assigned unique ID for this managed resource.
    PermissionSetName string
    Permission set name
    PrincipalName string
    Cloud Identity Center object name
    TargetName string
    Authorized account name
    createdTime String
    Authorization creation time
    id String
    The provider-assigned unique ID for this managed resource.
    permissionSetName String
    Permission set name
    principalName String
    Cloud Identity Center object name
    targetName String
    Authorized account name
    createdTime string
    Authorization creation time
    id string
    The provider-assigned unique ID for this managed resource.
    permissionSetName string
    Permission set name
    principalName string
    Cloud Identity Center object name
    targetName string
    Authorized account name
    created_time str
    Authorization creation time
    id str
    The provider-assigned unique ID for this managed resource.
    permission_set_name str
    Permission set name
    principal_name str
    Cloud Identity Center object name
    target_name str
    Authorized account name
    createdTime String
    Authorization creation time
    id String
    The provider-assigned unique ID for this managed resource.
    permissionSetName String
    Permission set name
    principalName String
    Cloud Identity Center object name
    targetName String
    Authorized account name

    Look up Existing PermissionSetAssignment Resource

    Get an existing PermissionSetAssignment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: PermissionSetAssignmentState, opts?: CustomResourceOptions): PermissionSetAssignment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_time: Optional[str] = None,
            permission_set_id: Optional[str] = None,
            permission_set_name: Optional[str] = None,
            principal_id: Optional[str] = None,
            principal_name: Optional[str] = None,
            principal_type: Optional[str] = None,
            target_id: Optional[str] = None,
            target_name: Optional[str] = None) -> PermissionSetAssignment
    func GetPermissionSetAssignment(ctx *Context, name string, id IDInput, state *PermissionSetAssignmentState, opts ...ResourceOption) (*PermissionSetAssignment, error)
    public static PermissionSetAssignment Get(string name, Input<string> id, PermissionSetAssignmentState? state, CustomResourceOptions? opts = null)
    public static PermissionSetAssignment get(String name, Output<String> id, PermissionSetAssignmentState state, CustomResourceOptions options)
    resources:  _:    type: volcenginecc:cloudidentity:PermissionSetAssignment    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreatedTime string
    Authorization creation time
    PermissionSetId string
    Permission set ID
    PermissionSetName string
    Permission set name
    PrincipalId string
    Cloud Identity Center object ID
    PrincipalName string
    Cloud Identity Center object name
    PrincipalType string
    Cloud Identity Center object type: User or Group
    TargetId string
    Authorized account ID
    TargetName string
    Authorized account name
    CreatedTime string
    Authorization creation time
    PermissionSetId string
    Permission set ID
    PermissionSetName string
    Permission set name
    PrincipalId string
    Cloud Identity Center object ID
    PrincipalName string
    Cloud Identity Center object name
    PrincipalType string
    Cloud Identity Center object type: User or Group
    TargetId string
    Authorized account ID
    TargetName string
    Authorized account name
    createdTime String
    Authorization creation time
    permissionSetId String
    Permission set ID
    permissionSetName String
    Permission set name
    principalId String
    Cloud Identity Center object ID
    principalName String
    Cloud Identity Center object name
    principalType String
    Cloud Identity Center object type: User or Group
    targetId String
    Authorized account ID
    targetName String
    Authorized account name
    createdTime string
    Authorization creation time
    permissionSetId string
    Permission set ID
    permissionSetName string
    Permission set name
    principalId string
    Cloud Identity Center object ID
    principalName string
    Cloud Identity Center object name
    principalType string
    Cloud Identity Center object type: User or Group
    targetId string
    Authorized account ID
    targetName string
    Authorized account name
    created_time str
    Authorization creation time
    permission_set_id str
    Permission set ID
    permission_set_name str
    Permission set name
    principal_id str
    Cloud Identity Center object ID
    principal_name str
    Cloud Identity Center object name
    principal_type str
    Cloud Identity Center object type: User or Group
    target_id str
    Authorized account ID
    target_name str
    Authorized account name
    createdTime String
    Authorization creation time
    permissionSetId String
    Permission set ID
    permissionSetName String
    Permission set name
    principalId String
    Cloud Identity Center object ID
    principalName String
    Cloud Identity Center object name
    principalType String
    Cloud Identity Center object type: User or Group
    targetId String
    Authorized account ID
    targetName String
    Authorized account name

    Import

    $ pulumi import volcenginecc:cloudidentity/permissionSetAssignment:PermissionSetAssignment example "target_id|principal_id|permission_set_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.32
    published on Thursday, Apr 23, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.