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

export interface NamespaceArgs extends core.ResourceArgs {
  adminUserPassword?: string | core.StringOut;

  adminUsername?: string | core.StringOut;

  dbName?: string | core.StringOut;

  defaultIamRoleArn?: string | core.StringOut;

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

  kmsKeyId?: string | core.StringOut;

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

  namespaceName: string | core.StringOut;

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

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

export class Namespace extends core.Resource<NamespaceArgs> {
  @core.attr(String)
  public adminUserPassword?: string | core.StringOut;

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

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

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

  @core.attr(String)
  public defaultIamRoleArn?: string | core.StringOut;

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

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

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

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

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

  @core.attr(String)
  public namespaceName!: 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>;

  constructor(name: string, args?: NamespaceArgs) {
    super(name, "aws_redshiftserverless_namespace", args);
  }

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