1. Packages
  2. Doppler
  3. API Docs
  4. GroupMember
Doppler v0.9.0 published on Tuesday, Aug 27, 2024 by Pulumiverse

doppler.GroupMember

Explore with Pulumi AI

Manage a Doppler user/group membership.

Note: You can also exclusively manage all memberships in a group with a single resource. See the doppler.GroupMembers resource for more information.

Create GroupMember Resource

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

Constructor syntax

new GroupMember(name: string, args: GroupMemberArgs, opts?: CustomResourceOptions);
@overload
def GroupMember(resource_name: str,
                args: GroupMemberArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def GroupMember(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                group_slug: Optional[str] = None,
                user_slug: Optional[str] = None)
func NewGroupMember(ctx *Context, name string, args GroupMemberArgs, opts ...ResourceOption) (*GroupMember, error)
public GroupMember(string name, GroupMemberArgs args, CustomResourceOptions? opts = null)
public GroupMember(String name, GroupMemberArgs args)
public GroupMember(String name, GroupMemberArgs args, CustomResourceOptions options)
type: doppler:GroupMember
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. GroupMemberArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. GroupMemberArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. GroupMemberArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GroupMemberArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. GroupMemberArgs
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 groupMemberResource = new Doppler.GroupMember("groupMemberResource", new()
{
    GroupSlug = "string",
    UserSlug = "string",
});
Copy
example, err := doppler.NewGroupMember(ctx, "groupMemberResource", &doppler.GroupMemberArgs{
	GroupSlug: pulumi.String("string"),
	UserSlug:  pulumi.String("string"),
})
Copy
var groupMemberResource = new GroupMember("groupMemberResource", GroupMemberArgs.builder()
    .groupSlug("string")
    .userSlug("string")
    .build());
Copy
group_member_resource = doppler.GroupMember("groupMemberResource",
    group_slug="string",
    user_slug="string")
Copy
const groupMemberResource = new doppler.GroupMember("groupMemberResource", {
    groupSlug: "string",
    userSlug: "string",
});
Copy
type: doppler:GroupMember
properties:
    groupSlug: string
    userSlug: string
Copy

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

GroupSlug
This property is required.
Changes to this property will trigger replacement.
string
The slug of the Doppler group
UserSlug
This property is required.
Changes to this property will trigger replacement.
string
The slug of the Doppler workplace user
GroupSlug
This property is required.
Changes to this property will trigger replacement.
string
The slug of the Doppler group
UserSlug
This property is required.
Changes to this property will trigger replacement.
string
The slug of the Doppler workplace user
groupSlug
This property is required.
Changes to this property will trigger replacement.
String
The slug of the Doppler group
userSlug
This property is required.
Changes to this property will trigger replacement.
String
The slug of the Doppler workplace user
groupSlug
This property is required.
Changes to this property will trigger replacement.
string
The slug of the Doppler group
userSlug
This property is required.
Changes to this property will trigger replacement.
string
The slug of the Doppler workplace user
group_slug
This property is required.
Changes to this property will trigger replacement.
str
The slug of the Doppler group
user_slug
This property is required.
Changes to this property will trigger replacement.
str
The slug of the Doppler workplace user
groupSlug
This property is required.
Changes to this property will trigger replacement.
String
The slug of the Doppler group
userSlug
This property is required.
Changes to this property will trigger replacement.
String
The slug of the Doppler workplace user

Outputs

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

Get an existing GroupMember 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?: GroupMemberState, opts?: CustomResourceOptions): GroupMember
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        group_slug: Optional[str] = None,
        user_slug: Optional[str] = None) -> GroupMember
func GetGroupMember(ctx *Context, name string, id IDInput, state *GroupMemberState, opts ...ResourceOption) (*GroupMember, error)
public static GroupMember Get(string name, Input<string> id, GroupMemberState? state, CustomResourceOptions? opts = null)
public static GroupMember get(String name, Output<String> id, GroupMemberState state, CustomResourceOptions options)
resources:  _:    type: doppler:GroupMember    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
GroupSlug Changes to this property will trigger replacement. string
The slug of the Doppler group
UserSlug Changes to this property will trigger replacement. string
The slug of the Doppler workplace user
GroupSlug Changes to this property will trigger replacement. string
The slug of the Doppler group
UserSlug Changes to this property will trigger replacement. string
The slug of the Doppler workplace user
groupSlug Changes to this property will trigger replacement. String
The slug of the Doppler group
userSlug Changes to this property will trigger replacement. String
The slug of the Doppler workplace user
groupSlug Changes to this property will trigger replacement. string
The slug of the Doppler group
userSlug Changes to this property will trigger replacement. string
The slug of the Doppler workplace user
group_slug Changes to this property will trigger replacement. str
The slug of the Doppler group
user_slug Changes to this property will trigger replacement. str
The slug of the Doppler workplace user
groupSlug Changes to this property will trigger replacement. String
The slug of the Doppler group
userSlug Changes to this property will trigger replacement. String
The slug of the Doppler workplace user

Import

import using the group slug from the URL:

https://dashboard.doppler.com/workplace/[workplace-slug]/team/groups/[group-slug]

and the user slug from the URL:

https://dashboard.doppler.com/workplace/[workplace-slug]/team/users/[user-slug]

$ pulumi import doppler:index/groupMember:GroupMember default <group-slug>.workplace_user.<user-slug>
Copy

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

Package Details

Repository
doppler pulumiverse/pulumi-doppler
License
Apache-2.0
Notes
This Pulumi package is based on the doppler Terraform Provider.