RequestParameter
Configure Request Parameter for a specific Api+Path+Method.
Either Required or Caching property needs to be specified for request parameter
Syntax
To declare this entity in your AWS Serverless Application Model (AWS SAM) template, use the following syntax.
Properties
- 
                Caching
- 
                Adds cacheKeyParameterssection to the API Gateway OpenApi definitionType: Boolean Required: Conditional AWS CloudFormation compatibility: This property is unique to AWS SAM and doesn't have an AWS CloudFormation equivalent. 
- 
                Required
- 
                This field specifies whether a parameter is required Type: Boolean Required: Conditional AWS CloudFormation compatibility: This property is unique to AWS SAM and doesn't have an AWS CloudFormation equivalent. 
Examples
Request Parameter
Example of setting Request Parameters
YAML
RequestParameters: - method.request.header.Authorization: Required: true Caching: true