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

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

  transitionToPrimaryStorageClass: string | core.StringOut;
}

export class LifecyclePolicy extends core.Schema<LifecyclePolicyArgs> {
  @core.attr(String, { computed: true })
  public transitionToIa!: string | core.StringOut;

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

export interface DsFileSystemArgs {
  creationToken?: string | core.StringOut;

  fileSystemId?: string | core.StringOut;

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

export class DsFileSystem extends core.Data<DsFileSystemArgs> {
  @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 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(LifecyclePolicy, { computed: true, kind: "array" })
  public lifecyclePolicy!:
    | core.Array<LifecyclePolicy>
    | core.ArrayOut<LifecyclePolicy>;

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

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

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

  @core.attr(String, { computed: true, kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

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

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