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

export interface TieringPolicyArgs extends core.SchemaArgs {
  coolingPeriod?: number | core.NumberOut;

  name?: string | core.StringOut;
}

export class TieringPolicy extends core.Schema<TieringPolicyArgs> {
  @core.attr(Number)
  public coolingPeriod?: number | core.NumberOut;

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

export interface OntapVolumeArgs extends core.ResourceArgs {
  junctionPath: string | core.StringOut;

  name: string | core.StringOut;

  securityStyle?: string | core.StringOut;

  sizeInMegabytes: number | core.NumberOut;

  storageEfficiencyEnabled: boolean | core.BooleanOut;

  storageVirtualMachineId: string | core.StringOut;

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

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

  tieringPolicy?: TieringPolicy;

  volumeType?: string | core.StringOut;
}

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

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

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

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

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

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

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

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

  @core.attr(Number)
  public sizeInMegabytes!: number | core.NumberOut;

  @core.attr(Boolean)
  public storageEfficiencyEnabled!: boolean | core.BooleanOut;

  @core.attr(String)
  public storageVirtualMachineId!: 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(TieringPolicy)
  public tieringPolicy?: TieringPolicy;

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

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

  constructor(name: string, args?: OntapVolumeArgs) {
    super(name, "aws_fsx_ontap_volume", args);
  }

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