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

export interface ExcludesArgs extends core.SchemaArgs {
  filterType?: string | core.StringOut;

  value?: string | core.StringOut;
}

export class Excludes extends core.Schema<ExcludesArgs> {
  @core.attr(String)
  public filterType?: string | core.StringOut;

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

export interface IncludesArgs extends core.SchemaArgs {
  filterType?: string | core.StringOut;

  value?: string | core.StringOut;
}

export class Includes extends core.Schema<IncludesArgs> {
  @core.attr(String)
  public filterType?: string | core.StringOut;

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

export interface ScheduleArgs extends core.SchemaArgs {
  scheduleExpression: string | core.StringOut;
}

export class Schedule extends core.Schema<ScheduleArgs> {
  @core.attr(String)
  public scheduleExpression!: string | core.StringOut;
}

export interface OptionsArgs extends core.SchemaArgs {
  atime?: string | core.StringOut;

  bytesPerSecond?: number | core.NumberOut;

  gid?: string | core.StringOut;

  logLevel?: string | core.StringOut;

  mtime?: string | core.StringOut;

  overwriteMode?: string | core.StringOut;

  posixPermissions?: string | core.StringOut;

  preserveDeletedFiles?: string | core.StringOut;

  preserveDevices?: string | core.StringOut;

  taskQueueing?: string | core.StringOut;

  transferMode?: string | core.StringOut;

  uid?: string | core.StringOut;

  verifyMode?: string | core.StringOut;
}

export class Options extends core.Schema<OptionsArgs> {
  @core.attr(String)
  public atime?: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

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

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

export interface TaskArgs extends core.ResourceArgs {
  cloudwatchLogGroupArn?: string | core.StringOut;

  destinationLocationArn: string | core.StringOut;

  excludes?: Excludes;

  includes?: Includes;

  name?: string | core.StringOut;

  options?: Options;

  schedule?: Schedule;

  sourceLocationArn: string | core.StringOut;

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

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

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

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

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

  @core.attr(Excludes)
  public excludes?: Excludes;

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

  @core.attr(Includes)
  public includes?: Includes;

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

  @core.attr(Options)
  public options?: Options;

  @core.attr(Schedule)
  public schedule?: Schedule;

  @core.attr(String)
  public sourceLocationArn!: 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>;

  constructor(name: string, args?: TaskArgs) {
    super(name, "aws_datasync_task", args);
  }

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