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

export interface BackupPolicyBlkArgs extends core.SchemaArgs {
  status: string | core.StringOut;
}

export class BackupPolicyBlk extends core.Schema<BackupPolicyBlkArgs> {
  @core.attr(String)
  public status!: string | core.StringOut;
}

export interface BackupPolicyArgs extends core.ResourceArgs {
  backupPolicy: BackupPolicyBlk;

  fileSystemId: string | core.StringOut;
}

export class BackupPolicy extends core.Resource<BackupPolicyArgs> {
  @core.attr(BackupPolicyBlk)
  public backupPolicy!: BackupPolicyBlk;

  @core.attr(String)
  public fileSystemId!: string | core.StringOut;

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

  constructor(name: string, args?: BackupPolicyArgs) {
    super(name, "aws_efs_backup_policy", args);
  }

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