Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.64 KB

sam-property-function-requestparameter.md

File metadata and controls

45 lines (31 loc) · 1.64 KB

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 SAM template, use the following syntax:

YAML

  [Caching](#sam-function-requestparameter-caching): Boolean
  [Required](#sam-function-requestparameter-required): Boolean

Properties

Caching Adds cacheKeyParameters section to the API Gateway OpenApi definition
Type: 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