import * as core from "@terrascript/core";

export interface AclArgs extends core.ResourceArgs {
  name?: string | core.StringOut;

  namePrefix?: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  userNames?: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class Acl extends core.Resource<AclArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public minimumEngineVersion!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public name?: string | core.StringOut;

  @core.attr(String, { computed: true })
  public namePrefix?: string | core.StringOut;

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { kind: "array" })
  public userNames?: core.Array<string> | core.ArrayOut<core.StringOut>;

  constructor(name: string, args?: AclArgs) {
    super(name, "aws_memorydb_acl", args);
  }

  public override getNamespace(): string {
    return "aws_memorydb";
  }
}
