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

export interface BackupArgs extends core.ResourceArgs {
  fileSystemId?: string | core.StringOut;

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

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

  volumeId?: string | core.StringOut;
}

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

  @core.attr(String)
  public fileSystemId?: string | 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, { computed: true })
  public ownerId!: string | core.StringOut;

  @core.attr(String, { computed: true, 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, { computed: true })
  public type!: string | core.StringOut;

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

  constructor(name: string, args?: BackupArgs) {
    super(name, "aws_fsx_backup", args);
  }

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