cfn-api-gateway-method-response
Version:
Custom::ApiGatewayMethodResponse | AWS CloudFormation Custom Lambda Resource | API Gateway MethodResponse
62 lines (61 loc) • 1.18 kB
JSON
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"StatusCode",
"HttpMethod",
"ResourceId",
"RestApiId"
],
"additionalProperties": false,
"properties": {
"StatusCode": {
"type": "string",
"pattern": "^\\d{3}$"
},
"HttpMethod": {
"type": "string",
"enum": [
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"PATCH",
"POST",
"PUT"
]
},
"ResourceId": {
"type": "string",
"pattern": "^[a-z0-9]+$"
},
"RestApiId": {
"type": "string",
"pattern": "^[a-z0-9]{10}$"
},
"ResponseModels": {
"type": "object",
"properties": {},
"patternProperties": {
".+": {
"type": "string"
}
},
"additionalProperties": false
},
"ResponseParameters": {
"type": "object",
"properties": {},
"patternProperties": {
"^method\\.response\\.header\\..+$": {
"type": "string",
"enum": [
"true",
"false"
]
}
},
"additionalProperties": false
}
}
}