HTTP API parameter mapping for Remove action

Using this aws cli command syntax we can add parameter mapping such as removing custom headers from incoming request in HTTP API

The quotes inside the json payload are escaped using slashes to form a correct syntax for the mapping

Parameter mapping to remove custom headers from Request and Response

aws apigatewayv2 update-integration \
    --api-id $API 
    --integration-id $INTEGRATION_ID 
    --request-parameters {\"remove:header.custom_headerA\":\"\'\'\"} \
    --response-parameters {\"200\":{\"remove:header.headerB\":\"\'\'\"}}
                                


Created by:

Abhishek Agawane

Abhishek Agawane

Abhishek is a Security Consultant at Amazon Web Services with more than 9 years of industry experience. He helps organizations architect resilient, secure, and efficient cloud environments, guiding them through complex challenges and large-scale infrastructure transformations. He has helped numerous organizations enhance their cloud operations through targeted optimizations, robust architectures, and best-practice implementations.