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

export interface ScopeArgs extends core.SchemaArgs {
  complianceResourceIds: core.Array<string> | core.ArrayOut<core.StringOut>;

  complianceResourceTypes: core.Array<string> | core.ArrayOut<core.StringOut>;

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

export class Scope extends core.Schema<ScopeArgs> {
  @core.attr(String, { computed: true, kind: "array" })
  public complianceResourceIds!:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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

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

export interface InputParameterArgs extends core.SchemaArgs {
  name: string | core.StringOut;

  value: string | core.StringOut;
}

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

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

export interface ControlArgs extends core.SchemaArgs {
  inputParameter: core.Array<InputParameter> | core.ArrayOut<InputParameter>;

  name: string | core.StringOut;

  scope: core.Array<Scope> | core.ArrayOut<Scope>;
}

export class Control extends core.Schema<ControlArgs> {
  @core.attr(InputParameter, { computed: true, kind: "array" })
  public inputParameter!:
    | core.Array<InputParameter>
    | core.ArrayOut<InputParameter>;

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

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

export interface DsFrameworkArgs {
  name: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsFrameworkArgs) {
    super(name, "aws_backup_framework", args);
  }

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