UserGroupArgs

data class UserGroupArgs(val engine: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val userGroupId: Output<String>? = null, val userIds: Output<List<String>>? = null) : ConvertibleToJava<UserGroupArgs>

Provides an ElastiCache user group resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.elasticache.User;
import com.pulumi.aws.elasticache.UserArgs;
import com.pulumi.aws.elasticache.UserGroup;
import com.pulumi.aws.elasticache.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 testUser = new User("testUser", UserArgs.builder()
.userId("testUserId")
.userName("default")
.accessString("on ~app::* -@all +@read +@hash +@bitmap +@geo -setbit -bitfield -hset -hsetnx -hmset -hincrby -hincrbyfloat -hdel -bitop -geoadd -georadius -georadiusbymember")
.engine("REDIS")
.passwords("password123456789")
.build());
var testUserGroup = new UserGroup("testUserGroup", UserGroupArgs.builder()
.engine("REDIS")
.userGroupId("userGroupId")
.userIds(testUser.userId())
.build());
}
}

Import

ElastiCache user groups can be imported using the user_group_id, e.g.,

$ pulumi import aws:elasticache/userGroup:UserGroup my_user_group userGoupId1

Constructors

Link copied to clipboard
constructor(engine: Output<String>? = null, tags: Output<Map<String, String>>? = null, userGroupId: Output<String>? = null, userIds: Output<List<String>>? = null)

Properties

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

The current supported value is REDIS.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

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

The ID of the user group. The following arguments are optional:

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

The list of user IDs that belong to the user group.

Functions

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