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

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

  s3BucketName: string | core.StringOut;

  s3KeyPrefix: string | core.StringOut;
}

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

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

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

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

  numberOfFrameworks: number | core.NumberOut;

  reportTemplate: string | core.StringOut;
}

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

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

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

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

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

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

  @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(ReportDeliveryChannel, { computed: true, kind: "array" })
  public reportDeliveryChannel!:
    | core.Array<ReportDeliveryChannel>
    | core.ArrayOut<ReportDeliveryChannel>;

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

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

  constructor(name: string, args?: DsReportPlanArgs) {
    super(name, "aws_backup_report_plan", args);
  }

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