[{"data":1,"prerenderedAt":32},["ShallowReactive",2],{"snippet-http-api-parameter-mapping-for-remove-action":3},{"id":4,"title":5,"contributors":6,"description":8,"extension":9,"gitHub":10,"introBox":13,"languages":17,"meta":19,"resources":20,"services":21,"snippets":23,"stem":28,"tags":29,"type":30,"__hash__":31},"snippets\u002Fsnippets\u002Fhttp-api-parameter-mapping-for-remove-action.json","HTTP API parameter mapping for Remove action",[7],"content\u002Fcontributors\u002Fabhishek-agawane.json","Using this aws cli command syntax we can add parameter mapping such as removing custom headers from incoming request in HTTP API","json",{"template":11},{"repoURL":12},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-snippets\u002Ftree\u002Fmain\u002Fhttp-api-parameter-mapping-for-remove-action",{"headline":14,"text":15},"How it works",[16],"The quotes inside the json payload are escaped using slashes to form a correct syntax for the mapping",[18],"AWS CLI",{},null,[22],"apigw",[24],{"title":25,"language":26,"code":27},"Parameter mapping to remove custom headers from Request and Response","cli","aws apigatewayv2 update-integration \\\n    --api-id $API \n    --integration-id $INTEGRATION_ID \n    --request-parameters {\\\"remove:header.custom_headerA\\\":\\\"\\'\\'\\\"} \\\n    --response-parameters {\\\"200\\\":{\\\"remove:header.headerB\\\":\\\"\\'\\'\\\"}}","snippets\u002Fhttp-api-parameter-mapping-for-remove-action",[],"Integration","RSLLjmgbJv3JDRpc_M8hGT133yUWN8hVp3xzjbIGKqM",1792578864315]