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

export interface CurReportDefinitionArgs extends core.ResourceArgs {
  additionalArtifacts?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

  compression: string | core.StringOut;

  format: string | core.StringOut;

  refreshClosedReports?: boolean | core.BooleanOut;

  reportName: string | core.StringOut;

  reportVersioning?: string | core.StringOut;

  s3Bucket: string | core.StringOut;

  s3Prefix?: string | core.StringOut;

  s3Region: string | core.StringOut;

  timeUnit: string | core.StringOut;
}

export class CurReportDefinition extends core.Resource<CurReportDefinitionArgs> {
  @core.attr(String, { kind: "array" })
  public additionalArtifacts?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: CurReportDefinitionArgs) {
    super(name, "aws_cur_report_definition", args);
  }

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