AclArgs

data class AclArgs(val name: Output<String>? = null, val namePrefix: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val userNames: Output<List<String>>? = null) : ConvertibleToJava<AclArgs>

Provides a MemoryDB ACL. More information about users and ACL-s can be found in the MemoryDB User Guide.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.memorydb.Acl;
import com.pulumi.aws.memorydb.AclArgs;
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 example = new Acl("example", AclArgs.builder()
.userNames(
"my-user-1",
"my-user-2")
.build());
}
}

Import

Use the name to import an ACL. For example

$ pulumi import aws:memorydb/acl:Acl example my-acl

Constructors

Link copied to clipboard
constructor(name: Output<String>? = null, namePrefix: Output<String>? = null, tags: Output<Map<String, String>>? = null, userNames: Output<List<String>>? = null)

Properties

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

Name of the ACL. If omitted, the provider will assign a random, unique name. Conflicts with name_prefix.

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

Creates a unique name beginning with the specified prefix. Conflicts with name.

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

A map of tags to assign to the resource. 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 userNames: Output<List<String>>? = null

Set of MemoryDB user names to be included in this ACL.

Functions

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