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

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

  restApiId: string | core.StringOut;

  version: string | core.StringOut;
}

export class DocumentationVersion extends core.Resource<DocumentationVersionArgs> {
  @core.attr(String)
  public description?: string | core.StringOut;

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

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

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

  constructor(name: string, args?: DocumentationVersionArgs) {
    super(name, "aws_api_gateway_documentation_version", args);
  }

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