Acl

class Acl : KotlinCustomResource

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

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.memorydb.Acl("example", {
name: "my-acl",
userNames: [
"my-user-1",
"my-user-2",
],
});
import pulumi
import pulumi_aws as aws
example = aws.memorydb.Acl("example",
name="my-acl",
user_names=[
"my-user-1",
"my-user-2",
])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.MemoryDb.Acl("example", new()
{
Name = "my-acl",
UserNames = new[]
{
"my-user-1",
"my-user-2",
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/memorydb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := memorydb.NewAcl(ctx, "example", &memorydb.AclArgs{
Name: pulumi.String("my-acl"),
UserNames: pulumi.StringArray{
pulumi.String("my-user-1"),
pulumi.String("my-user-2"),
},
})
if err != nil {
return err
}
return nil
})
}
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()
.name("my-acl")
.userNames(
"my-user-1",
"my-user-2")
.build());
}
}
resources:
example:
type: aws:memorydb:Acl
properties:
name: my-acl
userNames:
- my-user-1
- my-user-2

Import

Using pulumi import, import an ACL using the name. For example:

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

Properties

Link copied to clipboard
val arn: Output<String>

The ARN of the ACL.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The minimum engine version supported by the ACL.

Link copied to clipboard
val name: Output<String>

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>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

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 tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val userNames: Output<List<String>>?

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