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, { kind: "array" })
  public formats?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

  @core.attr(String)
  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, { kind: "array" })
  public frameworkArns?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

export interface ReportPlanArgs extends core.ResourceArgs {
  description?: string | core.StringOut;

  name: string | core.StringOut;

  reportDeliveryChannel: ReportDeliveryChannel;

  reportSetting: ReportSetting;

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

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

export class ReportPlan extends core.Resource<ReportPlanArgs> {
  @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)
  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)
  public reportDeliveryChannel!: ReportDeliveryChannel;

  @core.attr(ReportSetting)
  public reportSetting!: ReportSetting;

  @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?: ReportPlanArgs) {
    super(name, "aws_backup_report_plan", args);
  }

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