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

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

  modelSelectionExpression?: string | core.StringOut;

  responseModels?: core.Map<string, string> | core.MapOut<core.StringOut>;

  routeId: string | core.StringOut;

  routeResponseKey: string | core.StringOut;
}

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

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

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

  @core.attr(String, { kind: "map" })
  public responseModels?:
    | core.Map<string, string>
    | core.MapOut<core.StringOut>;

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

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

  constructor(name: string, args?: RouteResponseArgs) {
    super(name, "aws_apigatewayv2_route_response", args);
  }

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