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

export interface ModelArgs extends core.ResourceArgs {
  contentType: string | core.StringOut;

  description?: string | core.StringOut;

  name: string | core.StringOut;

  restApiId: string | core.StringOut;

  schema?: string | core.StringOut;
}

export class Model extends core.Resource<ModelArgs> {
  @core.attr(String)
  public contentType!: 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 restApiId!: string | core.StringOut;

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

  constructor(name: string, args?: ModelArgs) {
    super(name, "aws_api_gateway_model", args);
  }

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