import * as core from "@terrascript/core"; export interface RequestValidatorArgs extends core.ResourceArgs { /** * (Required) The name of the request validator */ name: string | core.StringOut; /** * (Required) The ID of the associated Rest API */ restApiId: string | core.StringOut; /** * (Optional) Boolean whether to validate request body. Defaults to `false`. */ validateRequestBody?: boolean | core.BooleanOut; /** * (Optional) Boolean whether to validate request parameters. Defaults to `false`. */ validateRequestParameters?: boolean | core.BooleanOut; } export class RequestValidator extends core.Resource { /** * The unique ID of the request validator */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the request validator */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The ID of the associated Rest API */ @core.attr(String) public restApiId!: string | core.StringOut; /** * (Optional) Boolean whether to validate request body. Defaults to `false`. */ @core.attr(Boolean) public validateRequestBody?: boolean | core.BooleanOut; /** * (Optional) Boolean whether to validate request parameters. Defaults to `false`. */ @core.attr(Boolean) public validateRequestParameters?: boolean | core.BooleanOut; constructor(name: string, args?: RequestValidatorArgs) { super(name, "aws_api_gateway_request_validator", args); } public override getNamespace(): string { return "aws_api_gateway"; } }