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

export interface AutoExportPolicyArgs extends core.SchemaArgs {
  events?: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class AutoExportPolicy extends core.Schema<AutoExportPolicyArgs> {
  @core.attr(String, { computed: true, kind: "array" })
  public events?: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export interface AutoImportPolicyArgs extends core.SchemaArgs {
  events?: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class AutoImportPolicy extends core.Schema<AutoImportPolicyArgs> {
  @core.attr(String, { computed: true, kind: "array" })
  public events?: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export interface S3Args extends core.SchemaArgs {
  autoExportPolicy?: AutoExportPolicy;

  autoImportPolicy?: AutoImportPolicy;
}

export class S3 extends core.Schema<S3Args> {
  @core.attr(AutoExportPolicy, { computed: true })
  public autoExportPolicy?: AutoExportPolicy;

  @core.attr(AutoImportPolicy, { computed: true })
  public autoImportPolicy?: AutoImportPolicy;
}

export interface DataRepositoryAssociationArgs extends core.ResourceArgs {
  batchImportMetaDataOnCreate?: boolean | core.BooleanOut;

  dataRepositoryPath: string | core.StringOut;

  deleteDataInFilesystem?: boolean | core.BooleanOut;

  fileSystemId: string | core.StringOut;

  fileSystemPath: string | core.StringOut;

  importedFileChunkSize?: number | core.NumberOut;

  s3?: S3;

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

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

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

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

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

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

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

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

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

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

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

  @core.attr(S3, { computed: true })
  public s3?: S3;

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

  constructor(name: string, args?: DataRepositoryAssociationArgs) {
    super(name, "aws_fsx_data_repository_association", args);
  }

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