1. Packages
  2. Logdna Provider
  3. API Docs
  4. Member
logdna 1.16.0 published on Monday, Apr 14, 2025 by logdna

logdna.Member

Explore with Pulumi AI

logdna logo
logdna 1.16.0 published on Monday, Apr 14, 2025 by logdna

    # Resource: logdna.Member

    This resource allows you to manage the team members of an organization.

    Example

    import * as pulumi from "@pulumi/pulumi";
    import * as logdna from "@pulumi/logdna";
    
    const adminUser = new logdna.Member("adminUser", {
        email: "user@domain.jp.co",
        role: "admin",
    });
    
    import pulumi
    import pulumi_logdna as logdna
    
    admin_user = logdna.Member("adminUser",
        email="user@domain.jp.co",
        role="admin")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/logdna/logdna"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := logdna.NewMember(ctx, "adminUser", &logdna.MemberArgs{
    			Email: pulumi.String("user@domain.jp.co"),
    			Role:  pulumi.String("admin"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Logdna = Pulumi.Logdna;
    
    return await Deployment.RunAsync(() => 
    {
        var adminUser = new Logdna.Member("adminUser", new()
        {
            Email = "user@domain.jp.co",
            Role = "admin",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.logdna.Member;
    import com.pulumi.logdna.MemberArgs;
    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 adminUser = new Member("adminUser", MemberArgs.builder()
                .email("user@domain.jp.co")
                .role("admin")
                .build());
    
        }
    }
    
    resources:
      adminUser:
        type: logdna:Member
        properties:
          email: user@domain.jp.co
          role: admin
    

    Create Member Resource

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

    Constructor syntax

    new Member(name: string, args: MemberArgs, opts?: CustomResourceOptions);
    @overload
    def Member(resource_name: str,
               args: MemberArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Member(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               email: Optional[str] = None,
               role: Optional[str] = None,
               groups: Optional[Sequence[str]] = None,
               member_id: Optional[str] = None)
    func NewMember(ctx *Context, name string, args MemberArgs, opts ...ResourceOption) (*Member, error)
    public Member(string name, MemberArgs args, CustomResourceOptions? opts = null)
    public Member(String name, MemberArgs args)
    public Member(String name, MemberArgs args, CustomResourceOptions options)
    
    type: logdna:Member
    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 MemberArgs
    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 MemberArgs
    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 MemberArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MemberArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MemberArgs
    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 memberResource = new Logdna.Member("memberResource", new()
    {
        Email = "string",
        Role = "string",
        Groups = new[]
        {
            "string",
        },
        MemberId = "string",
    });
    
    example, err := logdna.NewMember(ctx, "memberResource", &logdna.MemberArgs{
    	Email: pulumi.String("string"),
    	Role:  pulumi.String("string"),
    	Groups: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	MemberId: pulumi.String("string"),
    })
    
    var memberResource = new Member("memberResource", MemberArgs.builder()
        .email("string")
        .role("string")
        .groups("string")
        .memberId("string")
        .build());
    
    member_resource = logdna.Member("memberResource",
        email="string",
        role="string",
        groups=["string"],
        member_id="string")
    
    const memberResource = new logdna.Member("memberResource", {
        email: "string",
        role: "string",
        groups: ["string"],
        memberId: "string",
    });
    
    type: logdna:Member
    properties:
        email: string
        groups:
            - string
        memberId: string
        role: string
    

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

    Email string
    string (Required) The email of the user. If a user with that email does not exist, they will be invited to join Mezmo.
    Role string
    string (Required) The role of this user. Can be one of admin, member, and readonly. owner roles can only be changed through the UI.
    Groups List<string>
    string[] (Optional) The id of the groups the user belongs to. Defaults to an empty list.
    MemberId string
    Email string
    string (Required) The email of the user. If a user with that email does not exist, they will be invited to join Mezmo.
    Role string
    string (Required) The role of this user. Can be one of admin, member, and readonly. owner roles can only be changed through the UI.
    Groups []string
    string[] (Optional) The id of the groups the user belongs to. Defaults to an empty list.
    MemberId string
    email String
    string (Required) The email of the user. If a user with that email does not exist, they will be invited to join Mezmo.
    role String
    string (Required) The role of this user. Can be one of admin, member, and readonly. owner roles can only be changed through the UI.
    groups List<String>
    string[] (Optional) The id of the groups the user belongs to. Defaults to an empty list.
    memberId String
    email string
    string (Required) The email of the user. If a user with that email does not exist, they will be invited to join Mezmo.
    role string
    string (Required) The role of this user. Can be one of admin, member, and readonly. owner roles can only be changed through the UI.
    groups string[]
    string[] (Optional) The id of the groups the user belongs to. Defaults to an empty list.
    memberId string
    email str
    string (Required) The email of the user. If a user with that email does not exist, they will be invited to join Mezmo.
    role str
    string (Required) The role of this user. Can be one of admin, member, and readonly. owner roles can only be changed through the UI.
    groups Sequence[str]
    string[] (Optional) The id of the groups the user belongs to. Defaults to an empty list.
    member_id str
    email String
    string (Required) The email of the user. If a user with that email does not exist, they will be invited to join Mezmo.
    role String
    string (Required) The role of this user. Can be one of admin, member, and readonly. owner roles can only be changed through the UI.
    groups List<String>
    string[] (Optional) The id of the groups the user belongs to. Defaults to an empty list.
    memberId String

    Outputs

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

    Get an existing Member 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?: MemberState, opts?: CustomResourceOptions): Member
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            email: Optional[str] = None,
            groups: Optional[Sequence[str]] = None,
            member_id: Optional[str] = None,
            role: Optional[str] = None) -> Member
    func GetMember(ctx *Context, name string, id IDInput, state *MemberState, opts ...ResourceOption) (*Member, error)
    public static Member Get(string name, Input<string> id, MemberState? state, CustomResourceOptions? opts = null)
    public static Member get(String name, Output<String> id, MemberState state, CustomResourceOptions options)
    resources:  _:    type: logdna:Member    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:
    Email string
    string (Required) The email of the user. If a user with that email does not exist, they will be invited to join Mezmo.
    Groups List<string>
    string[] (Optional) The id of the groups the user belongs to. Defaults to an empty list.
    MemberId string
    Role string
    string (Required) The role of this user. Can be one of admin, member, and readonly. owner roles can only be changed through the UI.
    Email string
    string (Required) The email of the user. If a user with that email does not exist, they will be invited to join Mezmo.
    Groups []string
    string[] (Optional) The id of the groups the user belongs to. Defaults to an empty list.
    MemberId string
    Role string
    string (Required) The role of this user. Can be one of admin, member, and readonly. owner roles can only be changed through the UI.
    email String
    string (Required) The email of the user. If a user with that email does not exist, they will be invited to join Mezmo.
    groups List<String>
    string[] (Optional) The id of the groups the user belongs to. Defaults to an empty list.
    memberId String
    role String
    string (Required) The role of this user. Can be one of admin, member, and readonly. owner roles can only be changed through the UI.
    email string
    string (Required) The email of the user. If a user with that email does not exist, they will be invited to join Mezmo.
    groups string[]
    string[] (Optional) The id of the groups the user belongs to. Defaults to an empty list.
    memberId string
    role string
    string (Required) The role of this user. Can be one of admin, member, and readonly. owner roles can only be changed through the UI.
    email str
    string (Required) The email of the user. If a user with that email does not exist, they will be invited to join Mezmo.
    groups Sequence[str]
    string[] (Optional) The id of the groups the user belongs to. Defaults to an empty list.
    member_id str
    role str
    string (Required) The role of this user. Can be one of admin, member, and readonly. owner roles can only be changed through the UI.
    email String
    string (Required) The email of the user. If a user with that email does not exist, they will be invited to join Mezmo.
    groups List<String>
    string[] (Optional) The id of the groups the user belongs to. Defaults to an empty list.
    memberId String
    role String
    string (Required) The role of this user. Can be one of admin, member, and readonly. owner roles can only be changed through the UI.

    Import

    A member can be imported using their email, e.g.,

    $ pulumi import logdna:index/member:Member user1 <email>
    

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

    Package Details

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