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

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

  basePath?: string | core.StringOut;

  domainName: string | core.StringOut;

  stageName?: string | core.StringOut;
}

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

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

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

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

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

  constructor(name: string, args?: BasePathMappingArgs) {
    super(name, "aws_api_gateway_base_path_mapping", args);
  }

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