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

export interface VideoArgs extends core.SchemaArgs {
  aspectRatio?: string | core.StringOut;

  bitRate?: string | core.StringOut;

  codec?: string | core.StringOut;

  displayAspectRatio?: string | core.StringOut;

  fixedGop?: string | core.StringOut;

  frameRate?: string | core.StringOut;

  keyframesMaxDist?: string | core.StringOut;

  maxFrameRate?: string | core.StringOut;

  maxHeight?: string | core.StringOut;

  maxWidth?: string | core.StringOut;

  paddingPolicy?: string | core.StringOut;

  resolution?: string | core.StringOut;

  sizingPolicy?: string | core.StringOut;
}

export class Video extends core.Schema<VideoArgs> {
  @core.attr(String)
  public aspectRatio?: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

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

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

export interface AudioCodecOptionsArgs extends core.SchemaArgs {
  bitDepth?: string | core.StringOut;

  bitOrder?: string | core.StringOut;

  profile?: string | core.StringOut;

  signed?: string | core.StringOut;
}

export class AudioCodecOptions extends core.Schema<AudioCodecOptionsArgs> {
  @core.attr(String, { computed: true })
  public bitDepth?: string | core.StringOut;

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

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

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

export interface VideoWatermarksArgs extends core.SchemaArgs {
  horizontalAlign?: string | core.StringOut;

  horizontalOffset?: string | core.StringOut;

  id?: string | core.StringOut;

  maxHeight?: string | core.StringOut;

  maxWidth?: string | core.StringOut;

  opacity?: string | core.StringOut;

  sizingPolicy?: string | core.StringOut;

  target?: string | core.StringOut;

  verticalAlign?: string | core.StringOut;

  verticalOffset?: string | core.StringOut;
}

export class VideoWatermarks extends core.Schema<VideoWatermarksArgs> {
  @core.attr(String)
  public horizontalAlign?: string | core.StringOut;

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

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

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

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

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

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

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

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

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

export interface AudioArgs extends core.SchemaArgs {
  audioPackingMode?: string | core.StringOut;

  bitRate?: string | core.StringOut;

  channels?: string | core.StringOut;

  codec?: string | core.StringOut;

  sampleRate?: string | core.StringOut;
}

export class Audio extends core.Schema<AudioArgs> {
  @core.attr(String)
  public audioPackingMode?: string | core.StringOut;

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

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

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

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

export interface ThumbnailsArgs extends core.SchemaArgs {
  aspectRatio?: string | core.StringOut;

  format?: string | core.StringOut;

  interval?: string | core.StringOut;

  maxHeight?: string | core.StringOut;

  maxWidth?: string | core.StringOut;

  paddingPolicy?: string | core.StringOut;

  resolution?: string | core.StringOut;

  sizingPolicy?: string | core.StringOut;
}

export class Thumbnails extends core.Schema<ThumbnailsArgs> {
  @core.attr(String)
  public aspectRatio?: string | core.StringOut;

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

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

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

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

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

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

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

export interface PresetArgs extends core.ResourceArgs {
  audio?: Audio;

  audioCodecOptions?: AudioCodecOptions;

  container: string | core.StringOut;

  description?: string | core.StringOut;

  name?: string | core.StringOut;

  thumbnails?: Thumbnails;

  type?: string | core.StringOut;

  video?: Video;

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

  videoWatermarks?:
    | core.Array<VideoWatermarks>
    | core.ArrayOut<VideoWatermarks>;
}

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

  @core.attr(Audio)
  public audio?: Audio;

  @core.attr(AudioCodecOptions, { computed: true })
  public audioCodecOptions?: AudioCodecOptions;

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

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

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

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

  @core.attr(Thumbnails)
  public thumbnails?: Thumbnails;

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

  @core.attr(Video)
  public video?: Video;

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

  @core.attr(VideoWatermarks, { kind: "array" })
  public videoWatermarks?:
    | core.Array<VideoWatermarks>
    | core.ArrayOut<VideoWatermarks>;

  constructor(name: string, args?: PresetArgs) {
    super(name, "aws_elastictranscoder_preset", args);
  }

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