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

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

  apiMappingKey?: string | core.StringOut;

  domainName: string | core.StringOut;

  stage: string | core.StringOut;
}

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

  @core.attr(String)
  public apiMappingKey?: 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 stage!: string | core.StringOut;

  constructor(name: string, args?: ApiMappingArgs) {
    super(name, "aws_apigatewayv2_api_mapping", args);
  }

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