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

export interface SizeInBytesArgs extends core.SchemaArgs {
  value: number | core.NumberOut;

  valueInIa: number | core.NumberOut;

  valueInStandard: number | core.NumberOut;
}

export class SizeInBytes extends core.Schema<SizeInBytesArgs> {
  @core.attr(Number, { computed: true })
  public value!: number | core.NumberOut;

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

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

export interface LifecyclePolicyArgs extends core.SchemaArgs {
  transitionToIa?: string | core.StringOut;

  transitionToPrimaryStorageClass?: string | core.StringOut;
}

export class LifecyclePolicy extends core.Schema<LifecyclePolicyArgs> {
  @core.attr(String)
  public transitionToIa?: string | core.StringOut;

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

export interface FileSystemArgs extends core.ResourceArgs {
  availabilityZoneName?: string | core.StringOut;

  creationToken?: string | core.StringOut;

  encrypted?: boolean | core.BooleanOut;

  kmsKeyId?: string | core.StringOut;

  lifecyclePolicy?:
    | core.Array<LifecyclePolicy>
    | core.ArrayOut<LifecyclePolicy>;

  performanceMode?: string | core.StringOut;

  provisionedThroughputInMibps?: number | core.NumberOut;

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

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

  throughputMode?: string | core.StringOut;
}

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

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

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

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

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

  @core.attr(Boolean, { computed: true })
  public encrypted?: boolean | core.BooleanOut;

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

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

  @core.attr(LifecyclePolicy, { kind: "array" })
  public lifecyclePolicy?:
    | core.Array<LifecyclePolicy>
    | core.ArrayOut<LifecyclePolicy>;

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

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

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

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

  @core.attr(SizeInBytes, { computed: true, kind: "array" })
  public sizeInBytes!: core.Array<SizeInBytes> | core.ArrayOut<SizeInBytes>;

  @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)
  public throughputMode?: string | core.StringOut;

  constructor(name: string, args?: FileSystemArgs) {
    super(name, "aws_efs_file_system", args);
  }

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