UsergroupArgs

data class UsergroupArgs(val channels: Output<List<String>>? = null, val description: Output<String>? = null, val handle: Output<String>? = null, val name: Output<String>? = null, val users: Output<List<String>>? = null) : ConvertibleToJava<UsergroupArgs>

Manages a Slack User Group.

Required scopes

This resource requires the following scopes:

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.slack.Usergroup;
import com.pulumi.slack.UsergroupArgs;
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 myGroup = new Usergroup("myGroup", UsergroupArgs.builder()
.channels("CHANNEL00")
.description("Test user group")
.handle("test")
.users("USER00")
.build());
}
}

Import

slack_usergroup can be imported using the ID of the group, e.g.

$ pulumi import slack:index/usergroup:Usergroup my_group S022GE79E9G

Constructors

Link copied to clipboard
fun UsergroupArgs(channels: Output<List<String>>? = null, description: Output<String>? = null, handle: Output<String>? = null, name: Output<String>? = null, users: Output<List<String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): UsergroupArgs

Properties

Link copied to clipboard
val channels: Output<List<String>>? = null

channel IDs for which the User Group uses as a default.

Link copied to clipboard
val description: Output<String>? = null

a short description of the User Group.

Link copied to clipboard
val handle: Output<String>? = null

a mention handle. Must be unique among channels, users and User Groups.

Link copied to clipboard
val name: Output<String>? = null

a name for the User Group. Must be unique among User Groups.

Link copied to clipboard
val users: Output<List<String>>? = null

user IDs that represent the entire list of users for the User Group.