1. Packages
  2. Platform Provider
  3. API Docs
  4. GroupMembers
platform 2.2.1 published on Friday, Mar 7, 2025 by jfrog

platform.GroupMembers

Explore with Pulumi AI

platform logo
platform 2.2.1 published on Friday, Mar 7, 2025 by jfrog

    Provides a resource to manage group membership. See JFrog documentation for more details.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as platform from "@pulumi/platform";
    
    const my_group = new platform.Group("my-group", {
        description: "My group",
        externalId: "My Azure ID",
        autoJoin: true,
        adminPrivileges: false,
    });
    const my_group_members = new platform.GroupMembers("my-group-members", {members: ["admin"]});
    
    import pulumi
    import pulumi_platform as platform
    
    my_group = platform.Group("my-group",
        description="My group",
        external_id="My Azure ID",
        auto_join=True,
        admin_privileges=False)
    my_group_members = platform.GroupMembers("my-group-members", members=["admin"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/platform/v2/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := platform.NewGroup(ctx, "my-group", &platform.GroupArgs{
    			Description:     pulumi.String("My group"),
    			ExternalId:      pulumi.String("My Azure ID"),
    			AutoJoin:        pulumi.Bool(true),
    			AdminPrivileges: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = platform.NewGroupMembers(ctx, "my-group-members", &platform.GroupMembersArgs{
    			Members: pulumi.StringArray{
    				pulumi.String("admin"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Platform = Pulumi.Platform;
    
    return await Deployment.RunAsync(() => 
    {
        var my_group = new Platform.Group("my-group", new()
        {
            Description = "My group",
            ExternalId = "My Azure ID",
            AutoJoin = true,
            AdminPrivileges = false,
        });
    
        var my_group_members = new Platform.GroupMembers("my-group-members", new()
        {
            Members = new[]
            {
                "admin",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.platform.Group;
    import com.pulumi.platform.GroupArgs;
    import com.pulumi.platform.GroupMembers;
    import com.pulumi.platform.GroupMembersArgs;
    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 my_group = new Group("my-group", GroupArgs.builder()
                .description("My group")
                .externalId("My Azure ID")
                .autoJoin(true)
                .adminPrivileges(false)
                .build());
    
            var my_group_members = new GroupMembers("my-group-members", GroupMembersArgs.builder()
                .members("admin")
                .build());
    
        }
    }
    
    resources:
      my-group:
        type: platform:Group
        properties:
          description: My group
          externalId: My Azure ID
          autoJoin: true
          adminPrivileges: false
      my-group-members:
        type: platform:GroupMembers
        properties:
          members:
            - admin
    

    Create GroupMembers Resource

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

    Constructor syntax

    new GroupMembers(name: string, args: GroupMembersArgs, opts?: CustomResourceOptions);
    @overload
    def GroupMembers(resource_name: str,
                     args: GroupMembersArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def GroupMembers(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     members: Optional[Sequence[str]] = None,
                     name: Optional[str] = None)
    func NewGroupMembers(ctx *Context, name string, args GroupMembersArgs, opts ...ResourceOption) (*GroupMembers, error)
    public GroupMembers(string name, GroupMembersArgs args, CustomResourceOptions? opts = null)
    public GroupMembers(String name, GroupMembersArgs args)
    public GroupMembers(String name, GroupMembersArgs args, CustomResourceOptions options)
    
    type: platform:GroupMembers
    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 GroupMembersArgs
    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 GroupMembersArgs
    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 GroupMembersArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GroupMembersArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GroupMembersArgs
    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 groupMembersResource = new Platform.GroupMembers("groupMembersResource", new()
    {
        Members = new[]
        {
            "string",
        },
        Name = "string",
    });
    
    example, err := platform.NewGroupMembers(ctx, "groupMembersResource", &platform.GroupMembersArgs{
    Members: pulumi.StringArray{
    pulumi.String("string"),
    },
    Name: pulumi.String("string"),
    })
    
    var groupMembersResource = new GroupMembers("groupMembersResource", GroupMembersArgs.builder()
        .members("string")
        .name("string")
        .build());
    
    group_members_resource = platform.GroupMembers("groupMembersResource",
        members=["string"],
        name="string")
    
    const groupMembersResource = new platform.GroupMembers("groupMembersResource", {
        members: ["string"],
        name: "string",
    });
    
    type: platform:GroupMembers
    properties:
        members:
            - string
        name: string
    

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

    Members List<string>
    List of users assigned to the group.
    Name string
    Name of the group.
    Members []string
    List of users assigned to the group.
    Name string
    Name of the group.
    members List<String>
    List of users assigned to the group.
    name String
    Name of the group.
    members string[]
    List of users assigned to the group.
    name string
    Name of the group.
    members Sequence[str]
    List of users assigned to the group.
    name str
    Name of the group.
    members List<String>
    List of users assigned to the group.
    name String
    Name of the group.

    Outputs

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

    Get an existing GroupMembers 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?: GroupMembersState, opts?: CustomResourceOptions): GroupMembers
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            members: Optional[Sequence[str]] = None,
            name: Optional[str] = None) -> GroupMembers
    func GetGroupMembers(ctx *Context, name string, id IDInput, state *GroupMembersState, opts ...ResourceOption) (*GroupMembers, error)
    public static GroupMembers Get(string name, Input<string> id, GroupMembersState? state, CustomResourceOptions? opts = null)
    public static GroupMembers get(String name, Output<String> id, GroupMembersState state, CustomResourceOptions options)
    resources:  _:    type: platform:GroupMembers    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:
    Members List<string>
    List of users assigned to the group.
    Name string
    Name of the group.
    Members []string
    List of users assigned to the group.
    Name string
    Name of the group.
    members List<String>
    List of users assigned to the group.
    name String
    Name of the group.
    members string[]
    List of users assigned to the group.
    name string
    Name of the group.
    members Sequence[str]
    List of users assigned to the group.
    name str
    Name of the group.
    members List<String>
    List of users assigned to the group.
    name String
    Name of the group.

    Package Details

    Repository
    platform jfrog/terraform-provider-platform
    License
    Notes
    This Pulumi package is based on the platform Terraform Provider.
    platform logo
    platform 2.2.1 published on Friday, Mar 7, 2025 by jfrog