1. Packages
  2. Selectel Provider
  3. API Docs
  4. IamGroupMembershipV1
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

selectel.IamGroupMembershipV1

Explore with Pulumi AI

selectel logo
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

    Manages group membership for Selectel products using public API v1. Selectel products support Identity and Access Management (IAM). For more information about groups, see the official Selectel documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const groupMembership1 = new selectel.IamGroupMembershipV1("groupMembership1", {
        groupId: selectel_iam_group_v1.group_1.id,
        userIds: [
            selectel_iam_user_v1.user_1.keystone_id,
            selectel_iam_serviceuser_v1.serviceuser_1.id,
        ],
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    group_membership1 = selectel.IamGroupMembershipV1("groupMembership1",
        group_id=selectel_iam_group_v1["group_1"]["id"],
        user_ids=[
            selectel_iam_user_v1["user_1"]["keystone_id"],
            selectel_iam_serviceuser_v1["serviceuser_1"]["id"],
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewIamGroupMembershipV1(ctx, "groupMembership1", &selectel.IamGroupMembershipV1Args{
    			GroupId: pulumi.Any(selectel_iam_group_v1.Group_1.Id),
    			UserIds: pulumi.StringArray{
    				selectel_iam_user_v1.User_1.Keystone_id,
    				selectel_iam_serviceuser_v1.Serviceuser_1.Id,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var groupMembership1 = new Selectel.IamGroupMembershipV1("groupMembership1", new()
        {
            GroupId = selectel_iam_group_v1.Group_1.Id,
            UserIds = new[]
            {
                selectel_iam_user_v1.User_1.Keystone_id,
                selectel_iam_serviceuser_v1.Serviceuser_1.Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.IamGroupMembershipV1;
    import com.pulumi.selectel.IamGroupMembershipV1Args;
    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 groupMembership1 = new IamGroupMembershipV1("groupMembership1", IamGroupMembershipV1Args.builder()
                .groupId(selectel_iam_group_v1.group_1().id())
                .userIds(            
                    selectel_iam_user_v1.user_1().keystone_id(),
                    selectel_iam_serviceuser_v1.serviceuser_1().id())
                .build());
    
        }
    }
    
    resources:
      groupMembership1:
        type: selectel:IamGroupMembershipV1
        properties:
          groupId: ${selectel_iam_group_v1.group_1.id}
          userIds:
            - ${selectel_iam_user_v1.user_1.keystone_id}
            - ${selectel_iam_serviceuser_v1.serviceuser_1.id}
    

    Create IamGroupMembershipV1 Resource

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

    Constructor syntax

    new IamGroupMembershipV1(name: string, args: IamGroupMembershipV1Args, opts?: CustomResourceOptions);
    @overload
    def IamGroupMembershipV1(resource_name: str,
                             args: IamGroupMembershipV1Args,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def IamGroupMembershipV1(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             group_id: Optional[str] = None,
                             user_ids: Optional[Sequence[str]] = None,
                             iam_group_membership_v1_id: Optional[str] = None)
    func NewIamGroupMembershipV1(ctx *Context, name string, args IamGroupMembershipV1Args, opts ...ResourceOption) (*IamGroupMembershipV1, error)
    public IamGroupMembershipV1(string name, IamGroupMembershipV1Args args, CustomResourceOptions? opts = null)
    public IamGroupMembershipV1(String name, IamGroupMembershipV1Args args)
    public IamGroupMembershipV1(String name, IamGroupMembershipV1Args args, CustomResourceOptions options)
    
    type: selectel:IamGroupMembershipV1
    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 IamGroupMembershipV1Args
    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 IamGroupMembershipV1Args
    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 IamGroupMembershipV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IamGroupMembershipV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IamGroupMembershipV1Args
    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 iamGroupMembershipV1Resource = new Selectel.IamGroupMembershipV1("iamGroupMembershipV1Resource", new()
    {
        GroupId = "string",
        UserIds = new[]
        {
            "string",
        },
        IamGroupMembershipV1Id = "string",
    });
    
    example, err := selectel.NewIamGroupMembershipV1(ctx, "iamGroupMembershipV1Resource", &selectel.IamGroupMembershipV1Args{
    	GroupId: pulumi.String("string"),
    	UserIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IamGroupMembershipV1Id: pulumi.String("string"),
    })
    
    var iamGroupMembershipV1Resource = new IamGroupMembershipV1("iamGroupMembershipV1Resource", IamGroupMembershipV1Args.builder()
        .groupId("string")
        .userIds("string")
        .iamGroupMembershipV1Id("string")
        .build());
    
    iam_group_membership_v1_resource = selectel.IamGroupMembershipV1("iamGroupMembershipV1Resource",
        group_id="string",
        user_ids=["string"],
        iam_group_membership_v1_id="string")
    
    const iamGroupMembershipV1Resource = new selectel.IamGroupMembershipV1("iamGroupMembershipV1Resource", {
        groupId: "string",
        userIds: ["string"],
        iamGroupMembershipV1Id: "string",
    });
    
    type: selectel:IamGroupMembershipV1
    properties:
        groupId: string
        iamGroupMembershipV1Id: string
        userIds:
            - string
    

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

    GroupId string
    Unique identifier of the group. Retrieved from the selectel.IamGroupV1 resource.
    UserIds List<string>
    List of unique Keystone identifiers of users. Retrieved from the selectel.IamServiceuserV1 and selectel.IamUserV1 resources.
    IamGroupMembershipV1Id string
    GroupId string
    Unique identifier of the group. Retrieved from the selectel.IamGroupV1 resource.
    UserIds []string
    List of unique Keystone identifiers of users. Retrieved from the selectel.IamServiceuserV1 and selectel.IamUserV1 resources.
    IamGroupMembershipV1Id string
    groupId String
    Unique identifier of the group. Retrieved from the selectel.IamGroupV1 resource.
    userIds List<String>
    List of unique Keystone identifiers of users. Retrieved from the selectel.IamServiceuserV1 and selectel.IamUserV1 resources.
    iamGroupMembershipV1Id String
    groupId string
    Unique identifier of the group. Retrieved from the selectel.IamGroupV1 resource.
    userIds string[]
    List of unique Keystone identifiers of users. Retrieved from the selectel.IamServiceuserV1 and selectel.IamUserV1 resources.
    iamGroupMembershipV1Id string
    group_id str
    Unique identifier of the group. Retrieved from the selectel.IamGroupV1 resource.
    user_ids Sequence[str]
    List of unique Keystone identifiers of users. Retrieved from the selectel.IamServiceuserV1 and selectel.IamUserV1 resources.
    iam_group_membership_v1_id str
    groupId String
    Unique identifier of the group. Retrieved from the selectel.IamGroupV1 resource.
    userIds List<String>
    List of unique Keystone identifiers of users. Retrieved from the selectel.IamServiceuserV1 and selectel.IamUserV1 resources.
    iamGroupMembershipV1Id String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IamGroupMembershipV1 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 IamGroupMembershipV1 Resource

    Get an existing IamGroupMembershipV1 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?: IamGroupMembershipV1State, opts?: CustomResourceOptions): IamGroupMembershipV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            group_id: Optional[str] = None,
            iam_group_membership_v1_id: Optional[str] = None,
            user_ids: Optional[Sequence[str]] = None) -> IamGroupMembershipV1
    func GetIamGroupMembershipV1(ctx *Context, name string, id IDInput, state *IamGroupMembershipV1State, opts ...ResourceOption) (*IamGroupMembershipV1, error)
    public static IamGroupMembershipV1 Get(string name, Input<string> id, IamGroupMembershipV1State? state, CustomResourceOptions? opts = null)
    public static IamGroupMembershipV1 get(String name, Output<String> id, IamGroupMembershipV1State state, CustomResourceOptions options)
    resources:  _:    type: selectel:IamGroupMembershipV1    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:
    GroupId string
    Unique identifier of the group. Retrieved from the selectel.IamGroupV1 resource.
    IamGroupMembershipV1Id string
    UserIds List<string>
    List of unique Keystone identifiers of users. Retrieved from the selectel.IamServiceuserV1 and selectel.IamUserV1 resources.
    GroupId string
    Unique identifier of the group. Retrieved from the selectel.IamGroupV1 resource.
    IamGroupMembershipV1Id string
    UserIds []string
    List of unique Keystone identifiers of users. Retrieved from the selectel.IamServiceuserV1 and selectel.IamUserV1 resources.
    groupId String
    Unique identifier of the group. Retrieved from the selectel.IamGroupV1 resource.
    iamGroupMembershipV1Id String
    userIds List<String>
    List of unique Keystone identifiers of users. Retrieved from the selectel.IamServiceuserV1 and selectel.IamUserV1 resources.
    groupId string
    Unique identifier of the group. Retrieved from the selectel.IamGroupV1 resource.
    iamGroupMembershipV1Id string
    userIds string[]
    List of unique Keystone identifiers of users. Retrieved from the selectel.IamServiceuserV1 and selectel.IamUserV1 resources.
    group_id str
    Unique identifier of the group. Retrieved from the selectel.IamGroupV1 resource.
    iam_group_membership_v1_id str
    user_ids Sequence[str]
    List of unique Keystone identifiers of users. Retrieved from the selectel.IamServiceuserV1 and selectel.IamUserV1 resources.
    groupId String
    Unique identifier of the group. Retrieved from the selectel.IamGroupV1 resource.
    iamGroupMembershipV1Id String
    userIds List<String>
    List of unique Keystone identifiers of users. Retrieved from the selectel.IamServiceuserV1 and selectel.IamUserV1 resources.

    Package Details

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