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

export interface DsExportArgs {
  accepts?: string | core.StringOut;

  exportType: string | core.StringOut;

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

  restApiId: string | core.StringOut;

  stageName: string | core.StringOut;
}

export class DsExport extends core.Data<DsExportArgs> {
  @core.attr(String)
  public accepts?: string | core.StringOut;

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsExportArgs) {
    super(name, "aws_api_gateway_export", args);
  }

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