nav-img
Advanced

x-apigateway-backend-policies

Meaning: API backend policy.

Example:

paths:
'/users/{userId}':
get:
produces:
- "application/json"
responses:
default:
description: "default response"
x-apigateway-request-type: "public"
x-apigateway-backend:
type: "backend endpoint type"
x-apigateway-backend-policies:
- type: "backend endpoint type"
name: "backend policy name"
conditions:
- type: "equal/enum/pattern",
value: "string",
origin: "source/request_parameter",
parameter_name: "string"
Table 1 Parameter description

Parameter

Mandatory

Type

Description

x-apigateway-backend-policies

No

x-apigateway-backend-policies

Backend policies.

type

Yes

String

Backend service type. The options include HTTP, HTTP-VPC, FUNCTION, and MOCK.

name

Yes

String

Backend policy name.

parameters

No

Backend parameters.

httpEndpoints

No

HTTP service definition.

httpVpcEndpoints

No

HTTP-VPC service definition.

functionEndpoints

No

Function service definition.

mockEndpoints

No

Mock service definition.

conditions

Yes

Policy condition array.