1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. IdentityGroupMembershipV3
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.IdentityGroupMembershipV3

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a User Group Membership resource within FlexibleEngine IAM service.

    You must have admin privileges in your FlexibleEngine cloud to use this resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const group1 = new flexibleengine.IdentityGroupV3("group1", {description: "This is a test group"});
    const user1 = new flexibleengine.IdentityUserV3("user1", {
        enabled: true,
        password: "password12345!",
    });
    const user2 = new flexibleengine.IdentityUserV3("user2", {
        enabled: true,
        password: "password12345!",
    });
    const membership1 = new flexibleengine.IdentityGroupMembershipV3("membership1", {
        group: group1.identityGroupV3Id,
        users: [
            user1.identityUserV3Id,
            user2.identityUserV3Id,
        ],
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    group1 = flexibleengine.IdentityGroupV3("group1", description="This is a test group")
    user1 = flexibleengine.IdentityUserV3("user1",
        enabled=True,
        password="password12345!")
    user2 = flexibleengine.IdentityUserV3("user2",
        enabled=True,
        password="password12345!")
    membership1 = flexibleengine.IdentityGroupMembershipV3("membership1",
        group=group1.identity_group_v3_id,
        users=[
            user1.identity_user_v3_id,
            user2.identity_user_v3_id,
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		group1, err := flexibleengine.NewIdentityGroupV3(ctx, "group1", &flexibleengine.IdentityGroupV3Args{
    			Description: pulumi.String("This is a test group"),
    		})
    		if err != nil {
    			return err
    		}
    		user1, err := flexibleengine.NewIdentityUserV3(ctx, "user1", &flexibleengine.IdentityUserV3Args{
    			Enabled:  pulumi.Bool(true),
    			Password: pulumi.String("password12345!"),
    		})
    		if err != nil {
    			return err
    		}
    		user2, err := flexibleengine.NewIdentityUserV3(ctx, "user2", &flexibleengine.IdentityUserV3Args{
    			Enabled:  pulumi.Bool(true),
    			Password: pulumi.String("password12345!"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewIdentityGroupMembershipV3(ctx, "membership1", &flexibleengine.IdentityGroupMembershipV3Args{
    			Group: group1.IdentityGroupV3Id,
    			Users: pulumi.StringArray{
    				user1.IdentityUserV3Id,
    				user2.IdentityUserV3Id,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var group1 = new Flexibleengine.IdentityGroupV3("group1", new()
        {
            Description = "This is a test group",
        });
    
        var user1 = new Flexibleengine.IdentityUserV3("user1", new()
        {
            Enabled = true,
            Password = "password12345!",
        });
    
        var user2 = new Flexibleengine.IdentityUserV3("user2", new()
        {
            Enabled = true,
            Password = "password12345!",
        });
    
        var membership1 = new Flexibleengine.IdentityGroupMembershipV3("membership1", new()
        {
            Group = group1.IdentityGroupV3Id,
            Users = new[]
            {
                user1.IdentityUserV3Id,
                user2.IdentityUserV3Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.IdentityGroupV3;
    import com.pulumi.flexibleengine.IdentityGroupV3Args;
    import com.pulumi.flexibleengine.IdentityUserV3;
    import com.pulumi.flexibleengine.IdentityUserV3Args;
    import com.pulumi.flexibleengine.IdentityGroupMembershipV3;
    import com.pulumi.flexibleengine.IdentityGroupMembershipV3Args;
    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 group1 = new IdentityGroupV3("group1", IdentityGroupV3Args.builder()
                .description("This is a test group")
                .build());
    
            var user1 = new IdentityUserV3("user1", IdentityUserV3Args.builder()
                .enabled(true)
                .password("password12345!")
                .build());
    
            var user2 = new IdentityUserV3("user2", IdentityUserV3Args.builder()
                .enabled(true)
                .password("password12345!")
                .build());
    
            var membership1 = new IdentityGroupMembershipV3("membership1", IdentityGroupMembershipV3Args.builder()
                .group(group1.identityGroupV3Id())
                .users(            
                    user1.identityUserV3Id(),
                    user2.identityUserV3Id())
                .build());
    
        }
    }
    
    resources:
      group1:
        type: flexibleengine:IdentityGroupV3
        properties:
          description: This is a test group
      user1:
        type: flexibleengine:IdentityUserV3
        properties:
          enabled: true
          password: password12345!
      user2:
        type: flexibleengine:IdentityUserV3
        properties:
          enabled: true
          password: password12345!
      membership1:
        type: flexibleengine:IdentityGroupMembershipV3
        properties:
          group: ${group1.identityGroupV3Id}
          users:
            - ${user1.identityUserV3Id}
            - ${user2.identityUserV3Id}
    

    Create IdentityGroupMembershipV3 Resource

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

    Constructor syntax

    new IdentityGroupMembershipV3(name: string, args: IdentityGroupMembershipV3Args, opts?: CustomResourceOptions);
    @overload
    def IdentityGroupMembershipV3(resource_name: str,
                                  args: IdentityGroupMembershipV3Args,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def IdentityGroupMembershipV3(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  group: Optional[str] = None,
                                  users: Optional[Sequence[str]] = None,
                                  identity_group_membership_v3_id: Optional[str] = None)
    func NewIdentityGroupMembershipV3(ctx *Context, name string, args IdentityGroupMembershipV3Args, opts ...ResourceOption) (*IdentityGroupMembershipV3, error)
    public IdentityGroupMembershipV3(string name, IdentityGroupMembershipV3Args args, CustomResourceOptions? opts = null)
    public IdentityGroupMembershipV3(String name, IdentityGroupMembershipV3Args args)
    public IdentityGroupMembershipV3(String name, IdentityGroupMembershipV3Args args, CustomResourceOptions options)
    
    type: flexibleengine:IdentityGroupMembershipV3
    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 IdentityGroupMembershipV3Args
    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 IdentityGroupMembershipV3Args
    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 IdentityGroupMembershipV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IdentityGroupMembershipV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IdentityGroupMembershipV3Args
    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 identityGroupMembershipV3Resource = new Flexibleengine.IdentityGroupMembershipV3("identityGroupMembershipV3Resource", new()
    {
        Group = "string",
        Users = new[]
        {
            "string",
        },
        IdentityGroupMembershipV3Id = "string",
    });
    
    example, err := flexibleengine.NewIdentityGroupMembershipV3(ctx, "identityGroupMembershipV3Resource", &flexibleengine.IdentityGroupMembershipV3Args{
    	Group: pulumi.String("string"),
    	Users: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IdentityGroupMembershipV3Id: pulumi.String("string"),
    })
    
    var identityGroupMembershipV3Resource = new IdentityGroupMembershipV3("identityGroupMembershipV3Resource", IdentityGroupMembershipV3Args.builder()
        .group("string")
        .users("string")
        .identityGroupMembershipV3Id("string")
        .build());
    
    identity_group_membership_v3_resource = flexibleengine.IdentityGroupMembershipV3("identityGroupMembershipV3Resource",
        group="string",
        users=["string"],
        identity_group_membership_v3_id="string")
    
    const identityGroupMembershipV3Resource = new flexibleengine.IdentityGroupMembershipV3("identityGroupMembershipV3Resource", {
        group: "string",
        users: ["string"],
        identityGroupMembershipV3Id: "string",
    });
    
    type: flexibleengine:IdentityGroupMembershipV3
    properties:
        group: string
        identityGroupMembershipV3Id: string
        users:
            - string
    

    IdentityGroupMembershipV3 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 IdentityGroupMembershipV3 resource accepts the following input properties:

    Group string
    The group ID of this membership. Changing this will create a new resource.
    Users List<string>
    A List of user IDs to associate to the group.
    IdentityGroupMembershipV3Id string
    Group string
    The group ID of this membership. Changing this will create a new resource.
    Users []string
    A List of user IDs to associate to the group.
    IdentityGroupMembershipV3Id string
    group String
    The group ID of this membership. Changing this will create a new resource.
    users List<String>
    A List of user IDs to associate to the group.
    identityGroupMembershipV3Id String
    group string
    The group ID of this membership. Changing this will create a new resource.
    users string[]
    A List of user IDs to associate to the group.
    identityGroupMembershipV3Id string
    group str
    The group ID of this membership. Changing this will create a new resource.
    users Sequence[str]
    A List of user IDs to associate to the group.
    identity_group_membership_v3_id str
    group String
    The group ID of this membership. Changing this will create a new resource.
    users List<String>
    A List of user IDs to associate to the group.
    identityGroupMembershipV3Id String

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing IdentityGroupMembershipV3 Resource

    Get an existing IdentityGroupMembershipV3 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?: IdentityGroupMembershipV3State, opts?: CustomResourceOptions): IdentityGroupMembershipV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            group: Optional[str] = None,
            identity_group_membership_v3_id: Optional[str] = None,
            users: Optional[Sequence[str]] = None) -> IdentityGroupMembershipV3
    func GetIdentityGroupMembershipV3(ctx *Context, name string, id IDInput, state *IdentityGroupMembershipV3State, opts ...ResourceOption) (*IdentityGroupMembershipV3, error)
    public static IdentityGroupMembershipV3 Get(string name, Input<string> id, IdentityGroupMembershipV3State? state, CustomResourceOptions? opts = null)
    public static IdentityGroupMembershipV3 get(String name, Output<String> id, IdentityGroupMembershipV3State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:IdentityGroupMembershipV3    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:
    Group string
    The group ID of this membership. Changing this will create a new resource.
    IdentityGroupMembershipV3Id string
    Users List<string>
    A List of user IDs to associate to the group.
    Group string
    The group ID of this membership. Changing this will create a new resource.
    IdentityGroupMembershipV3Id string
    Users []string
    A List of user IDs to associate to the group.
    group String
    The group ID of this membership. Changing this will create a new resource.
    identityGroupMembershipV3Id String
    users List<String>
    A List of user IDs to associate to the group.
    group string
    The group ID of this membership. Changing this will create a new resource.
    identityGroupMembershipV3Id string
    users string[]
    A List of user IDs to associate to the group.
    group str
    The group ID of this membership. Changing this will create a new resource.
    identity_group_membership_v3_id str
    users Sequence[str]
    A List of user IDs to associate to the group.
    group String
    The group ID of this membership. Changing this will create a new resource.
    identityGroupMembershipV3Id String
    users List<String>
    A List of user IDs to associate to the group.

    Import

    IAM group membership can be imported using the group membership ID, e.g.

    $ pulumi import flexibleengine:index/identityGroupMembershipV3:IdentityGroupMembershipV3 membership_1 89c60255-9bd6-460c-822a-e2b959ede9d2
    

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud