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

export interface InterclusterArgs extends core.SchemaArgs {
  dnsName: string | core.StringOut;

  ipAddresses: core.Array<string> | core.ArrayOut<core.StringOut>;
}

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

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

export interface ManagementArgs extends core.SchemaArgs {
  dnsName: string | core.StringOut;

  ipAddresses: core.Array<string> | core.ArrayOut<core.StringOut>;
}

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

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

export interface EndpointsArgs extends core.SchemaArgs {
  intercluster: core.Array<Intercluster> | core.ArrayOut<Intercluster>;

  management: core.Array<Management> | core.ArrayOut<Management>;
}

export class Endpoints extends core.Schema<EndpointsArgs> {
  @core.attr(Intercluster, { computed: true, kind: "array" })
  public intercluster!: core.Array<Intercluster> | core.ArrayOut<Intercluster>;

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

export interface DiskIopsConfigurationArgs extends core.SchemaArgs {
  iops?: number | core.NumberOut;

  mode?: string | core.StringOut;
}

export class DiskIopsConfiguration extends core.Schema<DiskIopsConfigurationArgs> {
  @core.attr(Number, { computed: true })
  public iops?: number | core.NumberOut;

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

export interface OntapFileSystemArgs extends core.ResourceArgs {
  automaticBackupRetentionDays?: number | core.NumberOut;

  dailyAutomaticBackupStartTime?: string | core.StringOut;

  deploymentType: string | core.StringOut;

  diskIopsConfiguration?: DiskIopsConfiguration;

  endpointIpAddressRange?: string | core.StringOut;

  fsxAdminPassword?: string | core.StringOut;

  kmsKeyId?: string | core.StringOut;

  preferredSubnetId: string | core.StringOut;

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

  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>;

  throughputCapacity: number | core.NumberOut;

  weeklyMaintenanceStartTime?: string | core.StringOut;
}

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

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

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

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

  @core.attr(DiskIopsConfiguration, { computed: true })
  public diskIopsConfiguration?: DiskIopsConfiguration;

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

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

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

  @core.attr(String)
  public fsxAdminPassword?: 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(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(String)
  public preferredSubnetId!: string | core.StringOut;

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

  @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(Number)
  public throughputCapacity!: number | core.NumberOut;

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

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

  constructor(name: string, args?: OntapFileSystemArgs) {
    super(name, "aws_fsx_ontap_file_system", args);
  }

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