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

export interface LogConfigurationArgs extends core.SchemaArgs {
  destination?: string | core.StringOut;

  level?: string | core.StringOut;
}

export class LogConfiguration extends core.Schema<LogConfigurationArgs> {
  @core.attr(String, { computed: true })
  public destination?: string | core.StringOut;

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

export interface LustreFileSystemArgs extends core.ResourceArgs {
  autoImportPolicy?: string | core.StringOut;

  automaticBackupRetentionDays?: number | core.NumberOut;

  backupId?: string | core.StringOut;

  copyTagsToBackups?: boolean | core.BooleanOut;

  dailyAutomaticBackupStartTime?: string | core.StringOut;

  dataCompressionType?: string | core.StringOut;

  deploymentType?: string | core.StringOut;

  driveCacheType?: string | core.StringOut;

  exportPath?: string | core.StringOut;

  fileSystemTypeVersion?: string | core.StringOut;

  importPath?: string | core.StringOut;

  importedFileChunkSize?: number | core.NumberOut;

  kmsKeyId?: string | core.StringOut;

  logConfiguration?: LogConfiguration;

  perUnitStorageThroughput?: number | core.NumberOut;

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

  storageCapacity?: number | core.NumberOut;

  storageType?: string | core.StringOut;

  subnetIds: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

  weeklyMaintenanceStartTime?: string | core.StringOut;
}

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

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

  @core.attr(Number, { computed: true })
  public automaticBackupRetentionDays?: number | core.NumberOut;

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

  @core.attr(Boolean)
  public copyTagsToBackups?: boolean | core.BooleanOut;

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

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

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

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

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

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

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

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

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

  @core.attr(Number, { computed: true })
  public importedFileChunkSize?: number | core.NumberOut;

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

  @core.attr(LogConfiguration, { computed: true })
  public logConfiguration?: LogConfiguration;

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

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

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

  @core.attr(Number)
  public perUnitStorageThroughput?: number | core.NumberOut;

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

  @core.attr(Number)
  public storageCapacity?: number | core.NumberOut;

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

  @core.attr(String, { kind: "array" })
  public subnetIds!: core.Array<string> | core.ArrayOut<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, { computed: true })
  public vpcId!: string | core.StringOut;

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

  constructor(name: string, args?: LustreFileSystemArgs) {
    super(name, "aws_fsx_lustre_file_system", args);
  }

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