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

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

  contentType: string | core.StringOut;

  description?: string | core.StringOut;

  name: string | core.StringOut;

  schema: string | core.StringOut;
}

export class Model extends core.Resource<ModelArgs> {
  @core.attr(String)
  public apiId!: string | core.StringOut;

  @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 schema!: string | core.StringOut;

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

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