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

export interface ReservationPlanSettingsArgs extends core.SchemaArgs {
  commitment: string | core.StringOut;

  renewalType: string | core.StringOut;

  reservedSlots: number | core.NumberOut;
}

export class ReservationPlanSettings extends core.Schema<ReservationPlanSettingsArgs> {
  @core.attr(String)
  public commitment!: string | core.StringOut;

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

  @core.attr(Number)
  public reservedSlots!: number | core.NumberOut;
}

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

  name: string | core.StringOut;

  pricingPlan?: string | core.StringOut;

  reservationPlanSettings?: ReservationPlanSettings;

  status?: string | core.StringOut;

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

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

export class MediaConvertQueue extends core.Resource<MediaConvertQueueArgs> {
  @core.attr(String, { computed: true })
  public arn!: 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(String)
  public pricingPlan?: string | core.StringOut;

  @core.attr(ReservationPlanSettings, { computed: true })
  public reservationPlanSettings?: ReservationPlanSettings;

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

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

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